/**
 * Artsupp Redesign - Footer V1
 * Coerente con il Dark Design System (Space Grotesk, Inter, Deep Navy #011019, Card #031c26, Teal #01D8C0, Blue #2677A7)
 */

.as-footer {
  background: #010d14;
  background: linear-gradient(180deg, rgba(1, 16, 25, 0.98) 0%, #010a10 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Inter', var(--font-ui, system-ui, sans-serif);
  padding: 56px 0 28px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.as-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── RIGA SUPERIORE: LOGO, PAYOFF & SOCIAL ──────────────── */
.as-footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.as-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.as-footer-logo {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.as-footer-logo:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.as-footer-logo img {
  height: 30px;
  width: auto;
  display: block;
}

.as-footer-tagline {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  letter-spacing: 0.2px;
}

/* Social icons pills */
.as-footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.as-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-social-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.as-social-btn:hover {
  background: rgba(1, 216, 192, 0.15);
  border-color: rgba(1, 216, 192, 0.5);
  color: #01d8c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 216, 192, 0.25);
}

/* ── GRIGLIA 5 COLONNE ──────────────────────────────────── */
.as-footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.as-footer-col {
  display: flex;
  flex-direction: column;
}

.as-footer-col-title {
  font-family: 'Space Grotesk', 'Inter', var(--font-display, sans-serif);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
}

.as-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.as-footer-list li {
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

/* Link attivi */
.as-footer-link {
  font-family: 'Inter', var(--font-ui, sans-serif);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.as-footer-link::before {
  content: "•";
  color: rgba(1, 216, 192, 0.5);
  font-size: 14px;
  line-height: 1;
  transition: color 0.2s ease;
}

.as-footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.as-footer-link:hover::before {
  color: #01d8c0;
}

.as-footer-link-arrow {
  color: #01d8c0;
  font-weight: 600;
}

/* Elementi non linkati (Community & Partner, Servizi B2B, Investor Relations) */
.as-footer-unlinked {
  font-family: 'Inter', var(--font-ui, sans-serif);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.38);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: none;
}

.as-footer-unlinked::before {
  content: "•";
  color: rgba(255, 255, 255, 0.2);
  font-size: 14px;
  line-height: 1;
}

/* Bottone CTA B2B Richiedi Demo */
.as-footer-btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(38, 119, 167, 0.18);
  border: 1px solid rgba(38, 119, 167, 0.45);
  color: #5bc0de !important;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  margin-top: 6px;
  width: fit-content;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.as-footer-btn-demo:hover {
  background: rgba(38, 119, 167, 0.35);
  border-color: #01d8c0;
  color: #01d8c0 !important;
  box-shadow: 0 4px 12px rgba(1, 216, 192, 0.2);
  transform: translateY(-1px);
}

/* ── SUB-FOOTER ─────────────────────────────────────────── */
.as-subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.as-subfooter-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.as-subfooter-company-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.as-subfooter-company {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.as-subfooter-rights {
  color: rgba(255, 255, 255, 0.45);
}

.as-subfooter-links-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.as-subfooter-divider {
  color: rgba(255, 255, 255, 0.18);
  font-size: 11px;
}

.as-subfooter-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 12.5px;
  transition: color 0.2s ease;
}

.as-subfooter-link:hover {
  color: #01d8c0;
}

/* ── SELETTORE LINGUA SUB-FOOTER (Stile Header Upward) ──── */
.as-subfooter-right {
  display: flex;
  align-items: center;
}

.as-subfooter .as-header-lang {
  position: relative;
  display: flex;
  align-items: center;
}

.as-subfooter .as-lang-dropdown-up {
  top: auto !important;
  bottom: calc(100% + 8px) !important;
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.7) !important;
}

/* ── RESPONSIVE RULES ───────────────────────────────────── */
@media (max-width: 991.98px) {
  .as-footer-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .as-footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .as-footer-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  
  .as-subfooter {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .as-footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── FASCIA SEO: mostre e musei nelle città (richiesta SEO/GEO prelancio) ── */
.as-footer-seo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin: 0 0 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.as-footer-list-seo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
@media (max-width: 640px) {
  .as-footer-seo { grid-template-columns: 1fr; gap: 24px; }
}
/* selettore lingua: voci ora sono link <a> */
.as-lang-option { text-decoration: none; display: block; }
