/* =================================================================
   JP RECORDS — Foglio di stile
   Dark mode neon · mobile-first · responsive
   ================================================================= */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;        /* smooth scroll di fallback */
  scroll-padding-top: 84px;       /* compensa l'header fisso per le ancore */
  -webkit-text-size-adjust: 100%;
}

/* ---------- 2. VARIABILI DI TEMA (palette neon) ---------- */
:root {
  --bg: #0B0B14;              /* base dark indigo */
  --surface: #14141F;         /* pannelli / card */
  --surface-2: #1C1C2B;       /* card in evidenza / hover */
  --accent: #7C3AED;          /* viola elettrico */
  --accent-2: #A78BFA;        /* viola chiaro (testo su scuro) */
  --glow: #22D3EE;            /* cyan glow */
  --cta: #22C55E;             /* verde "play" */
  --cta-hover: #16A34A;
  --text: #F8FAFC;            /* testo principale */
  --muted: #A1A1B5;           /* testo secondario */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 20px 45px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px var(--border), 0 18px 50px -18px rgba(124, 58, 237, 0.55);

  --font-display: "Righteous", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;                 /* min 16px su mobile (no zoom iOS) */
  overflow-x: hidden;              /* previene lo scroll orizzontale */
  -webkit-font-smoothing: antialiased;
}

/* Sfondo con leggeri bagliori neon */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(50% 50% at 100% 20%, rgba(34, 211, 238, 0.12), transparent 60%);
  pointer-events: none;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- 3. UTILITY ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 72px; }

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.eyebrow-center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: 0.5px;
}

.section-lead {
  color: var(--muted);
  max-width: 60ch;               /* line-length leggibile */
  margin-top: 14px;
  margin-inline: auto;           /* centra il blocco sotto il titolo */
}

/* Titolo forzato su una sola riga (da tablet/desktop in su) */
.title-oneline { white-space: normal; }
@media (min-width: 768px) {
  .title-oneline {
    white-space: nowrap;
    font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  }
}

.section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 48px;
}

.text-gradient {
  background: linear-gradient(100deg, var(--accent-2), var(--glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Link "salta al contenuto" */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus visibile per la navigazione da tastiera */
a:focus-visible,
button:focus-visible,
iframe:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. BOTTONI ---------- */
.btn {
  --btn-bg: var(--surface-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-cta {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, 0.6);
}
.btn-cta:hover { background: #6D28D9; box-shadow: 0 14px 34px -8px rgba(124, 58, 237, 0.8); }

.btn-ghost { background: transparent; }
.btn-ghost:hover {
  border-color: var(--glow);
  box-shadow: 0 0 24px -6px rgba(34, 211, 238, 0.5);
  color: #fff;
}

.btn:active { transform: translateY(1px); }

/* ---------- 5. HEADER & NAV ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
/* Stato "scrolled": sfondo semi-trasparente con blur */
.site-header.scrolled {
  background: rgba(11, 11, 20, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 12px 30px -20px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}
.logo-text { color: var(--text); }
.logo-accent { color: var(--accent-2); }

/* Navigazione desktop */
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
}
.nav-link {
  position: relative;
  color: var(--text);          /* testo menu in bianco */
  font-weight: 500;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--glow));
  transition: width 0.25s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible { color: var(--accent-2); }
.nav-link:hover::after { width: 100%; }

/* Hamburger (nascosto su desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;                     /* touch target 44px */
  height: 44px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
/* Animazione hamburger -> X quando aperto */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 60px;
  /* Immagine di sfondo di uno studio di registrazione */
  background: url("https://images.unsplash.com/photo-1598653222000-6b7b7a552625?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat fixed;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 20, 0.55) 0%, rgba(11, 11, 20, 0.82) 55%, var(--bg) 100%),
    radial-gradient(70% 60% at 20% 30%, rgba(124, 58, 237, 0.35), transparent 60%);
}
.hero-content { position: relative; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  color: var(--glow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.25);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.5px;
}
.hero-subtitle {
  margin-top: 20px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: #D8D8E4;
  max-width: 56ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin-top: 48px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* ---------- 7. CHI SIAMO / SEZIONI A DUE COLONNE ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.two-col-media img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.two-col-text p { color: var(--muted); margin-top: 16px; }
.two-col-text strong { color: var(--text); }

.checklist {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent), var(--glow));
  /* segno di spunta disegnato con un mask non è affidabile ovunque: uso box-shadow + pseudo */
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid #04140A;
  border-bottom: 2px solid #04140A;
  transform: rotate(-45deg);
}

/* ---------- 8. STRUMENTAZIONE (spec grid) ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
/* Variante a 3 box: 3 colonne da tablet/desktop in su */
@media (min-width: 768px) {
  .specs-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  /* transizione smooth su tutte le proprietà animate all'hover */
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease),
              box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
}
.spec-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  background: var(--surface-2);
  box-shadow: var(--shadow-glow);
}
.spec-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  color: var(--glow);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease),
              background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* Icona che si illumina in modo fluido al passaggio del cursore */
.spec-card:hover .spec-icon {
  transform: translateY(-2px) scale(1.08);
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--glow));
  box-shadow: 0 10px 24px -6px rgba(34, 211, 238, 0.6);
}
.spec-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.spec-card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 9. SERVIZI (griglia 3 colonne) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.service-media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.service-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-media img { transform: scale(1.06); }
/* Corpo in flex-column: permette di allineare i link in fondo, sulla stessa riga */
.service-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.service-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-body p { color: var(--muted); }
.service-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;          /* spinge il link in basso: link allineati tra le card */
  padding-top: 18px;
  font-weight: 600;
  color: var(--glow);
  transition: gap 0.2s var(--ease), color 0.2s var(--ease);
}
.service-link:hover { gap: 12px; color: #fff; }

/* ---------- 10. RECENSIONI ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 64px;
}
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.review-stars { display: flex; gap: 3px; color: #FACC15; margin-bottom: 14px; }
.review-card blockquote {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
}
.review-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.review-card figcaption img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}
/* Avatar con icona utente classica (al posto della foto) */
.review-card figcaption .review-avatar {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--accent-2);
  background: rgba(124, 58, 237, 0.14);
  border: 2px solid var(--accent);
}
.review-card figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.review-card figcaption small { color: var(--muted); }

/* ---------- SLIDER CLIENTI (6 card, 3 visibili, autoplay) ---------- */
.clients-slider { overflow: hidden; margin-bottom: 64px; }
.clients-track { display: flex; will-change: transform; }

/* Numero di card visibili: 1 (mobile) → 2 (tablet) → 3 (desktop) */
.client-card {
  flex: 0 0 100%;
  padding: 0 10px;
  box-sizing: border-box;
}
@media (min-width: 640px) { .client-card { flex-basis: 50%; } }
@media (min-width: 900px) { .client-card { flex-basis: 33.3333%; } }

/* Card = immagine grande verticale con testo in sovraimpressione */
.client-inner {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.client-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.client-card:hover .client-photo { transform: scale(1.06); }

/* Sfumatura scura + contenuti in basso a sinistra */
.client-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 20px;
  background: linear-gradient(to top, rgba(6, 6, 12, 0.92) 0%, rgba(6, 6, 12, 0.4) 38%, transparent 68%);
  transition: background 0.3s var(--ease);
}
.client-stars { display: flex; gap: 3px; color: #FACC15; margin-bottom: 8px; }
.client-review {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease),
              transform 0.4s var(--ease), margin 0.4s var(--ease);
}
.client-review blockquote { color: #fff; font-size: 0.92rem; line-height: 1.5; }
.client-id { display: flex; flex-direction: column; }
.client-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.1;
  color: #fff;
}
.client-role { color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; margin-top: 3px; }

/* La recensione compare all'hover / focus su dispositivi con puntatore */
@media (hover: hover) {
  .client-card:hover .client-overlay,
  .client-card:focus-within .client-overlay {
    background: linear-gradient(to top, rgba(6, 6, 12, 0.96) 0%, rgba(6, 6, 12, 0.72) 45%, rgba(6, 6, 12, 0.25) 100%);
  }
  .client-card:hover .client-review,
  .client-card:focus-within .client-review {
    max-height: 220px;
    opacity: 1;
    transform: none;
    margin-bottom: 14px;
  }
}
/* Su touch (nessun hover) la recensione resta sempre visibile */
@media (hover: none) {
  .client-review { max-height: 220px; opacity: 1; transform: none; margin-bottom: 14px; }
}

/* Fallback per movimento ridotto: le card diventano una griglia statica */
.clients-slider.is-static { overflow: visible; }
.clients-slider.is-static .clients-track { flex-wrap: wrap; transform: none !important; }
.clients-slider.is-static .client-card { margin-bottom: 20px; }

/* Blocco "Dalla demo al Master" */
.growth {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 28px;
  position: relative;
  overflow: hidden;
}
.growth::before {
  content: "";
  position: absolute;
  top: -35%;
  left: 50%;
  width: 80%;
  height: 340px;
  transform: translateX(-50%);        /* bagliore centrato dietro il titolo */
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.16), transparent 70%);
  pointer-events: none;
}
.growth-head { text-align: center; max-width: 640px; margin: 0 auto 40px; position: relative; }
.growth-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
}
.growth-lead { color: var(--muted); margin-top: 12px; }

.growth-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  position: relative;
}
.growth-step {
  background: rgba(11, 11, 20, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.growth-after { border-color: rgba(34, 211, 238, 0.4); box-shadow: 0 0 40px -18px rgba(34, 211, 238, 0.6); }
.growth-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  margin-bottom: 14px;
}
.growth-badge-accent { background: rgba(34, 211, 238, 0.15); color: var(--glow); }
.growth-step h4 { font-size: 1.2rem; margin-bottom: 8px; }
.growth-step p { color: var(--muted); font-size: 0.95rem; }

.growth-arrow {
  display: grid;
  place-items: center;
  color: var(--accent-2);
  transform: rotate(90deg);        /* freccia verticale su mobile */
}

/* Onde audio decorative (prima/dopo) */
.wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  margin-top: 20px;
}
.wave span {
  flex: 1;
  border-radius: 3px;
  background: currentColor;
}
.wave-flat { color: var(--muted); }
.wave-flat span { height: 22%; opacity: 0.5; }
.wave-full { color: var(--glow); }
.wave-full span { height: 30%; }
.wave-full span:nth-child(1) { height: 40%; }
.wave-full span:nth-child(2) { height: 70%; }
.wave-full span:nth-child(3) { height: 55%; }
.wave-full span:nth-child(4) { height: 90%; }
.wave-full span:nth-child(5) { height: 65%; }
.wave-full span:nth-child(6) { height: 100%; }
.wave-full span:nth-child(7) { height: 50%; }
.wave-full span:nth-child(8) { height: 80%; }
.wave-full span:nth-child(9) { height: 45%; }
.wave-full span:nth-child(10){ height: 60%; }

.growth-quote {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-top: 36px;
  color: var(--text);
  position: relative;
}

/* ---------- 11. DOVE SIAMO (mappa) ---------- */
.map-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.map-frame {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-frame iframe { width: 100%; height: 100%; display: block; filter: grayscale(0.2) contrast(1.05); }

.directions-list { list-style: none; padding: 0; display: grid; gap: 18px; }
.directions-list li { display: flex; gap: 14px; align-items: flex-start; }
.dir-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
}
.directions-list strong { display: block; }
.directions-list p { color: var(--muted); font-size: 0.95rem; }
.directions .btn { margin-top: 26px; }

/* ---------- 12. CTA FINALE ---------- */
.final-cta { text-align: center; }
.final-cta-inner {
  max-width: 640px;
  margin-inline: auto;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.18), rgba(34, 211, 238, 0.08));
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 56px 28px;
}
.final-cta .hero-actions { justify-content: center; }

/* ---------- 13. FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #08080F;
  padding-top: 56px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer-tagline { color: var(--muted); margin-top: 14px; max-width: 40ch; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-contacts li { color: #C9C9D6; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--glow); }

/* Social */
.socials { list-style: none; padding: 0; display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
              background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.socials a:hover {
  color: var(--glow);
  border-color: var(--glow);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-legal { list-style: none; padding: 0; display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--glow); }

/* ---------- 14. STICKY WHATSAPP ---------- */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;      /* icona perfettamente centrata nel cerchio */
  gap: 0;
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  color: #fff;
  background: #25D366;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: width 0.3s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
/* All'hover il cerchio si allunga a pillola e mostra la label */
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  width: 176px;
  gap: 10px;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -8px rgba(37, 211, 102, 0.8);
}
.whatsapp-fab svg { flex-shrink: 0; }
.whatsapp-label {
  font-weight: 600;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s var(--ease), opacity 0.2s var(--ease);
}
.whatsapp-fab:hover .whatsapp-label,
.whatsapp-fab:focus-visible .whatsapp-label {
  max-width: 120px;
  opacity: 1;
}

/* ---------- 15. SCROLL REVEAL (animazione ingresso) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);   /* stagger impostato via JS */
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Varianti direzionali per un ingresso più dinamico */
.reveal--left  { transform: translateX(-42px); }
.reveal--right { transform: translateX(42px); }
.reveal--scale { transform: scale(0.92); }
.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible { transform: none; }

/* =================================================================
   16. RESPONSIVE — breakpoint (mobile-first, poi tablet/desktop)
   ================================================================= */

/* Tablet (>= 640px) */
@media (min-width: 640px) {
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .growth { padding: 48px 40px; }
}

/* Desktop (>= 768px): mostra la nav, nasconde l'hamburger */
@media (min-width: 768px) {
  .section { padding-block: 96px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .map-wrap { grid-template-columns: 1.4fr 1fr; align-items: center; }

  /* Percorso demo->master su 3 colonne con freccia orizzontale */
  .growth-track { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .growth-arrow { transform: none; }
}

/* Desktop large (>= 1024px) */
@media (min-width: 1024px) {
  .specs-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Navigazione mobile (< 768px): menu a scomparsa ---- */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 20px;
    background: rgba(11, 11, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);

    /* nascosto di default: scivola fuori e non riceve focus */
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease), visibility 0.25s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav-link {
    padding: 12px 8px;
    border-radius: 10px;
    color: var(--text);
  }
  .nav-link:hover { background: var(--surface); }
  .nav-link::after { display: none; }
  .nav-cta { width: 100%; justify-content: center; margin-top: 8px; }

  .hero { background-attachment: scroll; }  /* niente parallax fisso su mobile */
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* =================================================================
   17. ACCESSIBILITÀ — rispetta prefers-reduced-motion
   ================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }  /* contenuto sempre visibile */
  .hero { background-attachment: scroll; }
}
