/* ============================================================
   NOVA ACADEMY 2.0 — Design System
   Warm editorial premium + AI-forward energy
   ============================================================ */

:root {
  /* color — warm cream (tono pop, fresco; un filo meno giallo dell'originale) */
  --paper:      #F2F0EB;   /* warm cream base */
  --paper-2:    #E8E5DE;   /* slightly deeper cream */
  --card:       #FBFAF6;   /* raised surface */
  --ink:        #18140F;   /* warm near-black */
  --ink-2:      #3B342B;   /* secondary text */
  --ink-3:      #756B5C;   /* muted */
  --line:       #D7D2C8;   /* hairlines on paper */
  --line-soft:  #E6E1D7;

  /* dark surfaces (AI + footer) */
  --night:      #14110D;
  --night-2:    #1E1A14;
  --night-line: #322B22;
  --cream-on-night: #F4EEE4;

  /* accent — senape (giallo ocra caldo), colore primario approvato */
  --accent:      #C68A14;
  --accent-deep: #9C6B08;
  --accent-soft: #EEDBA6;
  --accent-tint: #F8EFD4;
  --accent-glow: #E6AE3E;
  --on-accent:   #FFFFFF;   /* testo sopra il fondo accent (bottoni, marquee) */

  /* semantic "go" green — green light (independent of accent) */
  --go:      #4F8A52;
  --go-deep: #356039;
  --go-soft: #CADDBF;
  --go-tint: #E7EFE1;

  /* fonts */
  --display: "Instrument Serif", Georgia, serif;
  --display-weight: 100;
  --sans:    "DM Sans", system-ui, sans-serif;
  --mono:    "Geist Mono", ui-monospace, monospace;

  /* metrics */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* fluid type */
  --fs-overline: 0.78rem;
}

/* ---------- palette versions (accent only; warm base stays constant) ----------
   Le 4 palette approvate dal grafico, applicate via [data-palette] su <html>
   dal pannello Tweaks. Senape = primario, Ottanio = secondario; Senape Oro
   (variante oro) e Ottone (bronzo-oro) come metallici. */
:root[data-palette="Senape"]     { --accent:#C68A14; --accent-deep:#9C6B08; --accent-glow:#E6AE3E; --accent-soft:#EEDBA6; --accent-tint:#F8EFD4; --on-accent:#FFFFFF; }
:root[data-palette="Senape Oro"] { --accent:#CBA01C; --accent-deep:#A07A0E; --accent-glow:#EBC24A; --accent-soft:#EFE1A6; --accent-tint:#F9F2D6; --on-accent:#FFFFFF; }
:root[data-palette="Ottanio"]    { --accent:#1F6E78; --accent-deep:#134E56; --accent-glow:#52A6B0; --accent-soft:#B4D9DD; --accent-tint:#E0F2F4; --on-accent:#FFFFFF; }
:root[data-palette="Ottone"]     { --accent:#9C7C30; --accent-deep:#75591E; --accent-glow:#C5A85E; --accent-soft:#DECBA0; --accent-tint:#F1E9D4; --on-accent:#FFFFFF; }

/* Toggle accessibilità (Tweaks): scurisce i testi-accento e mette testo scuro sui bottoni oro → AA/AAA.
   Default (toggle off) = brillantezza piena. */
:root[data-a11y="on"][data-palette="Senape"]     { --accent-deep:#7A5208; --on-accent:#18140F; }
:root[data-a11y="on"][data-palette="Senape Oro"] { --accent-deep:#7A5C0A; --on-accent:#18140F; }
:root[data-a11y="on"][data-palette="Ottanio"]    { --accent-deep:#134E56; --on-accent:#FFFFFF; }
:root[data-a11y="on"][data-palette="Ottone"]     { --accent-deep:#5F4814; --on-accent:#18140F; }
:root[data-a11y="on"] .dg-title .hl { color: var(--accent-deep); }

/* test toni sfondo (pannello Tweaks) — dal più caldo al più neutro/freddo. I testi restano ≥ AA su tutti. */
:root[data-bg="caldo"]  { --paper:#F4EEE4; --paper-2:#EDE5D6; --card:#FBF8F2; --line:#DAD0BE; --line-soft:#E7DECE; }
:root[data-bg="soft"]   { --paper:#F2F0EB; --paper-2:#E8E5DE; --card:#FBFAF6; --line:#D7D2C8; --line-soft:#E6E1D7; }
:root[data-bg="neutro"] { --paper:#F0F0EE; --paper-2:#E5E4E0; --card:#FAFAF8; --line:#D3D1CB; --line-soft:#E2E0DA; }
:root[data-bg="freddo"] { --paper:#EFEFEE; --paper-2:#E4E4E2; --card:#FAFAFA; --line:#D2D2CF; --line-soft:#E1E1DE; }
:root.pal-switching * { transition: none !important; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* Niente grassetto/corsivo "sintetico": Instrument Serif esiste solo in 400
     (+ italico vero) e il bold finto lo impasta. Ereditato da tutti gli
     elementi; i font con pesi reali (DM Sans, Bricolage…) non sono toccati. */
  font-synthesis: none;
  font-synthesis-weight: none;
}

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

::selection { background: var(--accent); color: #fff; }

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

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

/* ------------------------------------------------------------
   REGOLA GENERALE — niente bold "finto" sui titoli.
   Instrument Serif esiste solo in 400 (+ italico): se un titolo
   chiede il 700 il browser lo sintetizza in grassetto e impasta
   il font, perdendo leggibilità. Disattivando la sintesi del peso,
   con Instrument Serif i titoli tornano al 400 nitido; con un font
   che HA il bold reale (Bricolage, Space Grotesk) il grassetto
   resta vero. Vale per tutte le pagine.
   ------------------------------------------------------------ */
h1, h2, h3, h4,
.display-xl, .display-lg, .display-md, .display-sm,
.ai-headline, .hc-title, .dg-title, .nl-title, .founder-name,
.wn-lead h2, .index-word, .testi .t-title, .statement .big {
  font-synthesis: none;
  font-synthesis-weight: none;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 132px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.stack-sm > * + * { margin-top: 14px; }
.stack-md > * + * { margin-top: 22px; }

/* ---------- typography helpers ---------- */
.overline {
  font-family: var(--mono);
  font-size: var(--fs-overline);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.overline::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}
.overline--plain::before { display: none; }
.overline--light { color: var(--accent-glow); }

.display-xl { font-size: clamp(2.6rem, 7vw, 5.6rem); }
.display-lg { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.display-md { font-size: clamp(1.7rem, 3.4vw, 2.7rem); }
.display-sm { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-3); }
.accent-text { color: var(--accent-deep); }

.serif-accent { font-style: italic; font-family: var(--display); font-weight: 500; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--bg);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, box-shadow .25s;
  text-transform: lowercase;
  white-space: nowrap;
}
.btn .arrow { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--accent { --fg: var(--on-accent, #fff); background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); background: transparent; }
.btn--light { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); }
.btn--lg { padding: 19px 36px; font-size: 1.08rem; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2);
  font-weight: 500;
}
.pill--ai {
  border-color: transparent;
  background: linear-gradient(95deg, var(--accent), var(--accent-glow));
  color: #fff;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill--ai .dot { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.6)} 70%{box-shadow:0 0 0 7px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, color .3s, padding .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
/* transparent state over the cover (no background fill — a gradient clipped to the
   header box leaves a faint step at its bottom edge; legibility on bright covers
   is handled by the text-shadow rule below instead) */
.site-header.over-hero {
  background: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 78px; position: relative; }
/* Desktop: tre zone su griglia SIMMETRICA — il menu è ancorato al centro
   geometrico dell'header e il logo al bordo sinistro, così restano fermi da
   pagina a pagina anche quando il CTA a destra cambia larghezza di testo. */
@media (min-width: 901px) {
  /* minmax(max-content, 1fr): con spazio abbondante i due lati sono uguali
     (menu al centro esatto, logo fermo); quando lo spazio stringe degradano
     alla larghezza del contenuto invece di collassare a 0. */
  .header-inner { display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
  .header-inner .logo { justify-self: start; }
  .header-inner .nav { justify-self: center; }
  .header-inner .header-cta { justify-self: end; }
}
/* Sollievo desktop-stretto (globale, come già faceva la pagina Dal Vivo):
   sotto i 1180px si nasconde l'eventuale coda del CTA (.hdr-cta-ext),
   sotto i 1020px anche "accedi" (resta nel menu mobile sotto i 900px). */
@media (max-width: 1180px) and (min-width: 901px) {
  .header-cta .btn .hdr-cta-ext { display: none; }
}
@media (max-width: 1020px) and (min-width: 901px) {
  .header-cta .login { display: none; }
}
.logo { display: inline-flex; align-items: center; position: relative; }
.logo img { height: 26px; width: auto; transition: opacity .3s; }
.logo .logo-white { position: absolute; left: 0; top: 0; opacity: 0; }
.site-header.over-hero .logo .logo-ink { opacity: 0; }
.site-header.over-hero .logo .logo-white { opacity: 1; }
.site-header.over-hero .nav-link { color: rgba(255,255,255,.82); }
.site-header.over-hero .nav-link:hover,
.site-header.over-hero .nav-item:hover .nav-link { color: #fff; background: rgba(255,255,255,.14); }
.site-header.over-hero .header-cta .login { color: #fff; border-color: rgba(255,255,255,.42); }
.site-header.over-hero .header-cta .login:hover { border-color: var(--accent-glow); color: #fff; background: color-mix(in srgb, var(--accent-glow) 26%, transparent); }
.site-header.over-hero .header-cta .login:hover svg { opacity: 1; }
.site-header.over-hero .menu-toggle { background: transparent; border-color: transparent; color: #fff; }
/* Cover pages: hold the transparent header look from the very first frame (before
   JS toggles .over-hero) and for as long as we're on the cover, so the baseline
   hairline only appears once we've scrolled past the cover — never on it. */
body:has(.hero-cover) .site-header:not(.scrolled) {
  background: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
/* Legibility for the transparent header over (possibly bright) covers — a soft
   text/icon shadow keeps nav + logo readable WITHOUT a background fill, so there
   is no clipped-gradient step under the menu. */
.site-header.over-hero .nav-link,
.site-header.over-hero .logo,
body:has(.hero-cover) .site-header:not(.scrolled) .nav-link,
body:has(.hero-cover) .site-header:not(.scrolled) .logo {
  text-shadow: 0 1px 14px rgba(8,6,4,.55), 0 1px 3px rgba(8,6,4,.4);
}
.site-header.over-hero .logo img,
body:has(.hero-cover) .site-header:not(.scrolled) .logo img {
  filter: drop-shadow(0 1px 10px rgba(8,6,4,.5));
}
body:has(.hero-cover) .site-header:not(.scrolled) .logo .logo-ink { opacity: 0; }
body:has(.hero-cover) .site-header:not(.scrolled) .logo .logo-white { opacity: 1; }
body:has(.hero-cover) .site-header:not(.scrolled) .nav-link { color: rgba(255,255,255,.82); }
body:has(.hero-cover) .site-header:not(.scrolled) .nav-link:hover,
body:has(.hero-cover) .site-header:not(.scrolled) .nav-item:hover .nav-link { color: #fff; background: rgba(255,255,255,.14); }
body:has(.hero-cover) .site-header:not(.scrolled) .header-cta .login { color: #fff; border-color: rgba(255,255,255,.42); }
body:has(.hero-cover) .site-header:not(.scrolled) .header-cta .login:hover { border-color: var(--accent-glow); color: #fff; background: color-mix(in srgb, var(--accent-glow) 26%, transparent); }
body:has(.hero-cover) .site-header:not(.scrolled) .menu-toggle { background: transparent; border-color: transparent; color: #fff; }
/* Baseline hairline on cover pages: shown ONLY once the header has fully cleared
   the cover (.hdr-past-cover is toggled in nova-menu.js when the cover's bottom
   has scrolled above the header) — so it never sits over the cover itself. */
body:has(.hero-cover) .site-header:not(.hdr-past-cover) { border-bottom-color: transparent !important; }
body:has(.hero-cover) .site-header.hdr-past-cover { border-bottom-color: var(--line); }
/* ---------- header sopra sezioni scure (.on-night, toggled da nova-menu.js) ----------
   Sulle sezioni notte la crema traslucida diventava un velo grigio sporco e la
   highlight (crema scura) spariva. Qui la barra prende un tono notte PROPRIO,
   un filo più chiaro della pagina, con hairline chiara e highlight bianca. */
.site-header.on-night:not(.over-hero) {
  background: color-mix(in srgb, #2C261C 92%, transparent);
  border-bottom-color: rgba(244,238,228,.22);
  box-shadow: 0 16px 34px -18px rgba(0,0,0,.6);
}
body:has(.hero-cover) .site-header.on-night.hdr-past-cover { border-bottom-color: rgba(244,238,228,.22); }
.site-header.on-night:not(.over-hero) .logo .logo-ink { opacity: 0; }
.site-header.on-night:not(.over-hero) .logo .logo-white { opacity: 1; }
.site-header.on-night:not(.over-hero) .nav-link { color: rgba(255,255,255,.86); }
.site-header.on-night:not(.over-hero) .nav-link:hover,
.site-header.on-night:not(.over-hero) .nav-item:hover .nav-link { color: #fff; background: rgba(255,255,255,.16); }
.site-header.on-night:not(.over-hero) .header-cta .login { color: #fff; border-color: rgba(255,255,255,.42); }
.site-header.on-night:not(.over-hero) .header-cta .login:hover { border-color: var(--accent-glow); background: color-mix(in srgb, var(--accent-glow) 26%, transparent); }
.site-header.on-night:not(.over-hero) .header-cta .login:hover svg { opacity: 1; }
.site-header.on-night:not(.over-hero) .menu-toggle { background: transparent; border-color: transparent; color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  padding: 10px 14px; border-radius: 12px; cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-item:hover .nav-link { color: var(--ink); background: var(--paper-2); }
.nav-link svg { width: 12px; height: 12px; opacity: .6; transition: transform .25s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 8px; min-width: 240px;
  box-shadow: 0 24px 50px -20px rgba(24,20,15,.35); z-index: 24;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
.nav-item:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 500; font-size: 0.95rem; transition: background .15s; }
.submenu a:hover { background: var(--paper-2); }
.submenu a small { display: block; color: var(--ink-3); font-weight: 400; font-size: 0.8rem; margin-top: 2px; }

/* ---------- submenu raggruppato ("Corsi") — etichette di categoria + divisore ---------- */
.submenu--corsi { min-width: 296px; padding: 10px; }
.submenu--corsi a { font-weight: 600; }
.submenu .sub-lab {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); padding: 8px 14px 4px;
}
.submenu .sub-lab:first-child { padding-top: 4px; }
.submenu .sub-div { height: 1px; background: var(--line-soft); margin: 8px 6px; }

/* ---------- submenu scuro ("Mentoring & AI") — la vetrina premium, con voce propria ---------- */
.submenu--night {
  background: var(--night); border-color: var(--night-line);
  padding: 12px; min-width: 312px;
  box-shadow: 0 34px 70px -30px rgba(0,0,0,.55);
}
.submenu--night a.feat { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 11px; color: var(--cream-on-night); }
.submenu--night a.feat:hover { background: var(--night-2); }
.submenu--night a.feat + a.feat { margin-top: 2px; }

/* tendine sopra contesti scuri (header .on-night o trasparente sulla cover):
   la vetrina notte si solleva dal nero della pagina invece di confondersi */
.site-header.on-night .submenu,
.site-header.over-hero .submenu {
  box-shadow: 0 34px 70px -24px rgba(0,0,0,.66), 0 0 0 1px rgba(0,0,0,.25);
}
.site-header.on-night .submenu--night,
.site-header.over-hero .submenu--night {
  background: var(--night-2);
  border-color: rgba(244,238,228,.17);
}
.site-header.on-night .submenu--night a.feat:hover,
.site-header.over-hero .submenu--night a.feat:hover { background: rgba(255,255,255,.09); }

/* ---------- mega menu (LEGACY — usato solo dalle vecchie varianti/backup) ----------
   Le pagine correnti usano i due submenu qui sopra (Corsi + Mentoring & AI).
   .feat/.feat-ic/.feat-tag restano condivisi con .submenu--night e il drawer. */
.nav-item--mega { position: static; }
.mega {
  position: absolute; top: calc(100% + 6px); left: var(--gutter);
  display: flex; flex-wrap: wrap; gap: 10px; padding: 16px;
  max-width: calc(100vw - var(--gutter) * 2);
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 60px -24px rgba(24,20,15,.4);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s; z-index: 20;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
.nav-item--mega:hover .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-cols { display: flex; gap: 4px; }
.mega-col { width: 214px; padding: 6px; }
.mega-h {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-3); padding: 4px 12px 10px;
}
.mega-col > a {
  display: block; padding: 11px 12px; border-radius: 10px;
  font-weight: 600; font-size: .95rem; color: var(--ink); transition: background .15s;
}
.mega-col > a:hover { background: var(--paper-2); }
.mega-col > a small { display: block; color: var(--ink-3); font-weight: 400; font-size: .8rem; margin-top: 2px; }
.mega-feat { width: 266px; padding: 14px; border-radius: 14px; background: var(--night); align-self: stretch; }
.mega-feat .mega-h { color: var(--accent-glow); }
.feat {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 11px; color: var(--cream-on-night); transition: background .15s;
}
.feat + .feat { margin-top: 2px; }
.feat:hover { background: var(--night-2); }
.feat-ic {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent-glow); border: 1px solid color-mix(in srgb, var(--accent-glow) 34%, transparent);
}
.feat-ic svg { width: 20px; height: 20px; }
.feat b { display: block; font-weight: 600; font-size: .95rem; color: #fff; }
.feat small { display: block; color: #B8AE9E; font-size: .8rem; margin-top: 3px; line-height: 1.4; }
.feat-tag {
  display: inline-block; white-space: nowrap; vertical-align: middle;
  font-family: var(--mono); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--night); background: var(--accent-glow); border-radius: 999px; padding: 2px 6px; margin-left: 6px;
}
/* ---------- badge/richiami nelle voci di menu (configurabili da Dashboard) ----------
   Iniettati a runtime da nova-apply.js accanto al link del corso, in desktop e
   nel drawer mobile. 4 toni; "novita" ricalca lo stile del tag "AI Powered" così
   resta leggibile sia sui submenu chiari (Corsi) sia su quelli scuri (Mentoring). */
.nav-badge {
  display: inline-flex; align-items: center; vertical-align: middle;
  font-family: var(--mono); font-size: .5rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; line-height: 1; white-space: nowrap;
  padding: 3px 6px; border-radius: 999px; margin-left: 8px; position: relative; top: -1px;
}
.nav-badge--novita  { background: var(--accent-glow); color: var(--night); }
.nav-badge--accent  { background: var(--accent); color: var(--on-accent, #fff); }
.nav-badge--neutro  { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 40%, transparent); opacity: .85; }
.nav-badge--urgente { background: #E0463C; color: #fff; }
/* nel drawer mobile le righe sono più grandi → badge un filo più leggibile */
.mnav .nav-badge { font-size: .54rem; margin-left: 9px; }
.header-cta { display: flex; align-items: center; gap: 14px; }
/* CTA button matches the "accedi" login pill exactly — colour alone sets it apart */
.header-cta .btn { padding: 11px 20px; font-size: 0.95rem; gap: 8px; }
.header-cta .login {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
  padding: 11px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  transition: border-color .2s, background .2s, color .2s;
}
.header-cta .login svg { width: 16px; height: 16px; opacity: .8; }
.header-cta .login:hover {
  border-color: var(--accent); color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--accent) 55%, transparent);
}
.header-cta .login:hover svg { opacity: 1; }
/* Spotlight: hovering "accedi" dims the rest of the header */
.logo, .nav, .header-cta .btn { transition: opacity .25s ease; }
.site-header:has(.header-cta .login:hover) .logo,
.site-header:has(.header-cta .login:hover) .nav,
.site-header:has(.header-cta .login:hover) .header-cta .btn { opacity: .32; }
.menu-toggle { display: none; }

/* ---------- mobile menu (drawer) ---------- */
.mnav-backdrop {
  position: fixed; inset: 0; z-index: 998;
  background: color-mix(in srgb, var(--ink) 46%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility .28s ease;
}
.mnav {
  position: fixed; top: 0; right: 0; z-index: 999;
  width: min(86vw, 380px); height: 100dvh;
  background: var(--card); border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px -30px rgba(0,0,0,.4);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,.0,.2,1);
  overflow-y: auto; overscroll-behavior: contain;
}
body.mnav-open .mnav-backdrop { opacity: 1; visibility: visible; }
body.mnav-open .mnav { transform: translateX(0); }
body.mnav-open { overflow: hidden; }
.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--line-soft);
}
.mnav-title { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.mnav-close {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 0; background: transparent;
  color: var(--ink); cursor: pointer; transition: opacity .15s;
}
.mnav-close:hover { background: transparent; opacity: .55; }
.mnav-list { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.mnav-link, .mnav-grouphead {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 14px 12px; border-radius: 12px;
  font-family: var(--display); font-size: 1.18rem; font-weight: 600; color: var(--ink);
  background: none; border: none; cursor: pointer; transition: background .15s;
}
.mnav-link:hover, .mnav-grouphead:hover { background: var(--paper-2); }
.mnav-grouphead svg { width: 18px; height: 18px; opacity: .55; transition: transform .26s ease; }
.mnav-group.open .mnav-grouphead svg { transform: rotate(180deg); }
.mnav-sub {
  display: block; max-height: 0;
  transition: max-height .32s ease; overflow: hidden;
}
.mnav-group.open .mnav-sub { max-height: 640px; }
.mnav-sub > * { min-height: 0; }
.mnav-sub a {
  display: block; position: static; padding: 11px 14px; margin: 0 8px;
  border-left: 2px solid var(--line); color: var(--ink-2);
  font-size: 1rem; font-weight: 500; transition: color .15s, border-color .15s;
}
.mnav-sub a:first-child { margin-top: 2px; }
.mnav-sub a:last-child { margin-bottom: 6px; }
.mnav-sub a:hover { color: var(--accent); border-color: var(--accent); }
.mnav-sub a small { display: block; color: var(--ink-3); font-weight: 400; font-size: .82rem; margin-top: 2px; }
/* consolidated "Corsi" accordion — category sub-labels */
.mnav-sublab {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); padding: 12px 14px 4px;
}
.mnav-sublab:first-child { padding-top: 6px; }
/* featured block (Dal vivo + Assistenti AI) — always visible, dark */
.mnav-feat { margin: 8px 10px 4px; padding: 12px; background: var(--night); border-radius: 14px; }
.mnav-feat-lab {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-glow); padding: 4px 6px 10px;
}
.mnav-feat .feat { padding: 10px 8px; }
.mnav-feat .feat + .feat { margin-top: 2px; }
/* blocco scuro DENTRO la fisarmonica ("Mentoring & AI") — neutralizza gli stili link di .mnav-sub */
.mnav-sub .mnav-feat { margin: 6px 10px 10px; }
.mnav-sub .mnav-feat a { display: flex; border-left: 0; margin: 0; padding: 10px 8px; color: var(--cream-on-night); }
.mnav-sub .mnav-feat a:first-child { margin-top: 0; }
.mnav-sub .mnav-feat a:last-child { margin-bottom: 0; }
.mnav-sub .mnav-feat a:hover { color: var(--cream-on-night); }
.mnav-sub .mnav-feat a small { color: #B8AE9E; }
.mnav-actions {
  margin-top: auto; padding: 18px 22px 26px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-direction: column; gap: 14px;
}
.mnav-cta { width: 100%; justify-content: center; }
.mnav-loginlink {
  text-align: center; font-size: .95rem; font-weight: 500; color: var(--ink-2);
}
.mnav-loginlink:hover { color: var(--accent); }
@media (min-width: 901px) {
  .mnav, .mnav-backdrop { display: none; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; border-block: 1px solid var(--ink); background: var(--ink); }
.marquee--accent { background: var(--accent); border-color: var(--accent); }
.marquee__track { display: flex; width: max-content; padding-block: 16px; animation: marquee 30s linear infinite; }
.marquee__set { display: flex; align-items: center; gap: 28px; min-width: 100vw; justify-content: space-around; flex-shrink: 0; }
.marquee__track span {
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper);
  display: inline-flex; align-items: center; gap: 28px;
}
.marquee__track span::after { content: "✦"; color: var(--accent); font-size: .8em; }
.marquee--accent .marquee__track span { color: var(--on-accent, #fff); }
.marquee--accent .marquee__track span::after { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   COVER — editorial portrait, framed & cinematic (2026 cut)
   ============================================================ */
.hero-cover {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-cover__media { position: absolute; inset: 0; z-index: -2; background: #0c0906; }
.hero-cover__img, .hero-cover__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: filter .6s ease;
}
.hero-cover__img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.05); } to { transform: scale(1.18) translateY(-2%); } }
.hero-cover__video { opacity: 0; transition: opacity .8s; }
.hero-cover__video.ready { opacity: 1; }

/* directional cinematic grade — lighter & warmer than a flat black scrim */
.hero-cover__grade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(102deg, rgba(8,5,3,.82) 0%, rgba(8,5,3,.46) 36%, rgba(8,5,3,.08) 62%, rgba(8,5,3,.26) 100%),
    linear-gradient(to top, rgba(8,5,3,.80) 0%, rgba(8,5,3,.10) 44%, transparent 70%),
    radial-gradient(78% 60% at 6% 96%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%);
}
.hero-cover__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 3px 3px; mix-blend-mode: overlay;
}
/* black & white cinematic grade */
.hero-cover[data-grade="mono"] .hero-cover__img,
.hero-cover[data-grade="mono"] .hero-cover__video { filter: grayscale(1) contrast(1.06) brightness(.92); }
.hero-cover[data-grade="mono"] .hero-cover__grade {
  background:
    linear-gradient(102deg, rgba(6,6,7,.84) 0%, rgba(6,6,7,.48) 36%, rgba(6,6,7,.10) 62%, rgba(6,6,7,.30) 100%),
    linear-gradient(to top, rgba(6,6,7,.82) 0%, rgba(6,6,7,.10) 44%, transparent 70%),
    radial-gradient(78% 60% at 6% 96%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
}

/* inset print frame + corner ticks */
.hero-frame {
  position: absolute; inset: clamp(14px, 1.8vw, 26px);
  border: 1px solid rgba(255,255,255,.22); pointer-events: none; z-index: 3;
  /* The frame stays drawn all the way round (incl. the top edge and its corner
     ticks). Only its TOP edge fades out across the menu — roughly from the logo
     to just past the CTA — so the nav stays legible. Two mask layers are unioned
     (mask-composite:add): the first drops a band along the very top; the second
     keeps the left/right margins. A pixel survives if it is BELOW the top band
     OR within a side margin — so only the top-centre is cut, leaving the corners
     and the whole bottom + sides intact. */
  --frame-fade:
    linear-gradient(to bottom, transparent 0, transparent 60px, #000 128px),
    linear-gradient(to right,
      #000 0, #000 30px,
      transparent max(72px, calc(50% - 560px)),
      transparent min(calc(100% - 72px), calc(50% + 560px)),
      #000 calc(100% - 30px), #000 100%);
  -webkit-mask-image: var(--frame-fade);
          mask-image: var(--frame-fade);
  -webkit-mask-composite: source-over;
          mask-composite: add;
}
.hero-frame .tick { position: absolute; width: 13px; height: 13px; }
.hero-frame .tick::before, .hero-frame .tick::after { content: ""; position: absolute; background: rgba(255,255,255,.7); }
.hero-frame .tick::before { width: 13px; height: 1px; }
.hero-frame .tick::after { height: 13px; width: 1px; }
.hero-frame .tl { top: -1px; left: -1px; }
.hero-frame .tr { top: -1px; right: -1px; }
.hero-frame .bl { bottom: -1px; left: -1px; }
.hero-frame .br { bottom: -1px; right: -1px; }
.hero-frame .tr::before, .hero-frame .tr::after { right: 0; }
.hero-frame .bl::before, .hero-frame .bl::after { bottom: 0; }
.hero-frame .br::before, .hero-frame .br::after { right: 0; bottom: 0; }

/* vertical edge signature */
.hero-edge {
  position: absolute; right: clamp(22px, 2.6vw, 38px); top: 50%;
  transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255,255,255,.5); z-index: 3; pointer-events: none;
}

/* content — three-zone vertical rhythm */
.hero-cover__content {
  position: relative; z-index: 1; flex: 1;
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gutter);
  padding-top: clamp(108px, 15vh, 150px);
  padding-bottom: clamp(38px, 7vh, 72px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}

/* top — status chip */
.hc-status {
  display: inline-flex; align-items: center; gap: 9px; align-self: flex-start;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; padding: 9px 15px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); backdrop-filter: blur(8px);
}
.hc-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-glow); animation: pulse 2s infinite; }

/* middle — headline block */
.hc-mid { max-width: 980px; }
.hc-eyebrow {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.72); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.hc-eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--accent-glow); }
.hc-title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 5.6vw, 5.1rem); line-height: .98; letter-spacing: -.025em;
  color: #fff; text-wrap: balance; text-shadow: 0 2px 44px rgba(0,0,0,.38);
}
.hc-title em {
  font-style: italic; font-family: "Instrument Serif", Georgia, serif; font-weight: 400;
  color: var(--accent-glow); letter-spacing: -.01em;
}
.hc-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: rgba(255,255,255,.84);
  max-width: 46ch; margin-top: 28px; line-height: 1.55;
}
.hc-sub strong { color: #fff; font-weight: 600; }
.hc-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 36px; }
.hc-play {
  display: inline-flex; align-items: center; gap: 13px; cursor: pointer;
  background: none; border: 0; color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1rem;
}
.hc-play .pl {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.45); backdrop-filter: blur(6px);
  transition: transform .3s, background .3s, border-color .3s;
}
.hc-play:hover .pl { background: var(--accent); border-color: var(--accent); transform: scale(1.07); }
.hc-play .pl svg { width: 15px; height: 15px; margin-left: 2px; fill: #fff; }

/* bottom — single hairline baseline row */
.hc-base {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.16); padding-top: 24px;
}
.hc-trust { display: flex; align-items: center; gap: 14px; }
.hc-trust .avatars span { border-color: rgba(255,255,255,.32); width: 36px; height: 36px; }
.hc-trust .stars { color: var(--accent-glow); letter-spacing: 2px; font-size: .9rem; }
.hc-trust small { color: rgba(255,255,255,.72); font-size: .84rem; display: block; }
.hc-trust strong { color: #fff; }

/* inline mono countdown */
.hc-count { display: inline-flex; align-items: baseline; gap: 14px; }
.hc-count-label {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 8px;
}
.hc-count-label .blink { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-glow); animation: pulse 2s infinite; }
.hc-count-time { display: inline-flex; align-items: baseline; color: #fff; }
.hc-count-time b { font-family: var(--display); font-weight: 600; font-size: 1.55rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hc-count-time i { font-style: normal; font-family: var(--mono); font-size: .66rem; color: rgba(255,255,255,.5); margin: 0 9px 0 2px; align-self: center; }
.hero-cover[data-countdown="off"] .hc-count { display: none; }

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: clamp(24px, 4vh, 44px); left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55);
}
.scroll-cue .line { width: 1px; height: 38px; background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent); animation: cueline 2s ease-in-out infinite; transform-origin: top; }
@keyframes cueline { 0%,100%{ transform: scaleY(.4); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* staggered entrance */
@media (prefers-reduced-motion: no-preference) {
  .hc-status, .hc-eyebrow, .hc-title, .hc-sub, .hc-actions, .hc-base {
    animation: coverUp .9s cubic-bezier(.2,.8,.2,1) backwards;
  }
  .hc-eyebrow { animation-delay: .10s; }
  .hc-title   { animation-delay: .18s; }
  .hc-sub     { animation-delay: .32s; }
  .hc-actions { animation-delay: .42s; }
  .hc-base    { animation-delay: .54s; }
}
@keyframes coverUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .hero-edge { display: none; }
  .hero-cover__content { padding-top: 102px; }
  .hc-base { flex-direction: column; align-items: flex-start; gap: 16px; }
  .scroll-cue { display: none; }
}
@media (max-height: 740px) {
  .hero-cover__content { padding-top: 92px; gap: 16px; }
  .hc-title { font-size: clamp(2.5rem, 6vw, 4.4rem); }
  .hc-sub { margin-top: 16px; }
  .hc-actions { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cover__img { animation: none; }
  .scroll-cue .line { animation: none; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 64px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.04; }
.hero h1 .hl { color: var(--accent-deep); }
.hero .lead { margin-top: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 4/5; background: var(--paper-2);
  box-shadow: 0 40px 80px -30px rgba(24,20,15,.4);
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }

/* countdown card */
.countdown {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 24px 50px -20px rgba(24,20,15,.4);
  min-width: 230px;
}
.countdown .cd-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); display:flex; align-items:center; gap:7px; }
.countdown .cd-label .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.cd-timer { display: flex; gap: 10px; margin-top: 10px; }
.cd-unit { text-align: center; }
.cd-unit b { font-family: var(--display); font-size: 1.5rem; display: block; line-height: 1; }
.cd-unit span { font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cd-unit + .cd-unit { border-left: 1px solid var(--line-soft); padding-left: 10px; }

.hero-trust { display: flex; align-items: center; gap: 16px; margin-top: 26px; }
.avatars { display: flex; }
.avatars span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--paper); margin-left: -10px; background-size: cover; background-position: center; }
.avatars span:first-child { margin-left: 0; }
.hero-trust .stars { color: var(--accent); letter-spacing: 2px; font-size: .9rem; }
.hero-trust small { color: var(--ink-3); font-size: .85rem; }

/* ---------- generic section head ---------- */
.section-head { max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .overline { margin-bottom: 18px; }
.section-head p { margin-top: 16px; }

/* ---------- intro statement ---------- */
.statement { max-width: var(--maxw); }
.statement .big { max-width: 60ch; }
.statement .big { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.02em; }
.statement .big em { font-style: italic; color: var(--accent-deep); }

/* ---------- problem section ---------- */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.problem-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/2; box-shadow: 0 30px 70px -34px rgba(24,20,15,.45); }
.problem-media img { width: 100%; height: 100%; object-fit: cover; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.check-list li:last-child { border-bottom: none; }
.check-list .ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.check-list .ic.x { background: var(--accent-tint); color: var(--accent-deep); }
.check-list .ic.v { background: var(--ink); color: var(--paper); }
.check-list .ic svg { width: 13px; height: 13px; }
.callout {
  margin-top: 22px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-family: var(--display); font-size: 1.12rem; line-height: 1.4; font-weight: 500;
}
.callout em { color: var(--accent-glow); font-style: normal; }

/* ---------- devices / academy ---------- */
.academy { text-align: center; padding-bottom: 0; }

/* ---------- video band ---------- */
.video-band .vb-head { text-align: center; margin-bottom: 36px; }
.vb-frame {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: var(--ink); box-shadow: 0 40px 90px -44px rgba(24,20,15,.55);
  border: 1px solid var(--line);
}
.vb-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--ink); }
.vb-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(to top, rgba(10,8,5,.45), transparent 46%);
  transition: opacity .4s; opacity: 1;
}
.vb-frame.playing::after { opacity: 0; }
.vb-play {
  position: absolute; inset: 0; z-index: 2; margin: auto;
  display: grid; place-items: center; gap: 16px;
  width: 100%; height: 100%; border: 0; cursor: pointer; color: #fff;
  background: rgba(10,8,5,.18); transition: background .4s, opacity .4s;
}
.vb-play:hover { background: rgba(10,8,5,.30); }
.vb-frame.playing .vb-play { opacity: 0; pointer-events: none; }
.vb-play .disc {
  width: clamp(70px, 7vw, 96px); height: clamp(70px, 7vw, 96px); border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12);
  border: 1.5px solid rgba(255,255,255,.6); backdrop-filter: blur(8px);
  transition: transform .3s, background .3s, border-color .3s;
}
.vb-play:hover .disc { background: var(--accent); border-color: var(--accent); transform: scale(1.06); }
.vb-play .disc svg { width: 30%; height: 30%; margin-left: 6%; fill: #fff; }
.vb-play .vb-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.92); }

.academy .device-shot { max-width: 920px; margin: 38px auto 0; border-radius: var(--radius-lg); overflow: hidden; }

/* full-bleed stats band — cream (matches the section above), big impressive numbers */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(56px, 7vw, 96px);
  width: 100vw; margin-inline: calc(50% - 50vw);
  background: var(--line);
  border-top: 1px solid var(--accent);
  position: relative; overflow: hidden;
}
.stat {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 20px;
  text-align: center;
  background: var(--paper);
  transition: background .3s;
}
.stat:hover { background: var(--paper-2); }
.stat b {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(4rem, 8.5vw, 7.5rem);
  display: inline-flex; align-items: flex-start; gap: .03em;
  line-height: .88; color: var(--ink);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.stat b .num { font-size: 1em; }
.stat b .plus { color: var(--accent); font-size: .4em; margin-top: .1em; font-weight: 600; }
.stat > span {
  display: block; margin-top: 18px;
  font-family: var(--mono);
  font-size: clamp(.72rem, .9vw, .84rem); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}

/* ---------- AI section (dark) ---------- */
.ai {
  background: var(--night); color: var(--cream-on-night);
  position: relative; overflow: hidden;
}
.ai::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 80% 0%, rgba(255,122,71,.22), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(219,90,45,.16), transparent 60%);
  pointer-events: none;
}
.ai .wrap { position: relative; z-index: 1; }
.ai h2 { color: #fff; }
.ai .lead { color: #C9C0B2; }
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ai-headline { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1; }
.ai-headline .grad {
  background: linear-gradient(95deg, var(--accent-glow), #FFB088);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-features { display: grid; gap: 14px; }
.ai-feat {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius);
  background: var(--night-2); border: 1px solid var(--night-line);
  transition: transform .3s, border-color .3s;
}
.ai-feat:hover { transform: translateX(6px); border-color: rgba(255,122,71,.5); }
.ai-feat .ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; }
.ai-feat .ic svg { width: 22px; height: 22px; }
.ai-feat h4 { font-size: 1.12rem; color: #fff; margin-bottom: 4px; }
.ai-feat p { font-size: .95rem; color: #ABA294; line-height: 1.5; }
.ai-orbit { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.ai-orbit .core {
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-glow), var(--accent-deep));
  box-shadow: 0 0 80px -10px rgba(255,122,71,.7), inset 0 0 40px rgba(0,0,0,.25);
  display: grid; place-items: center;
  animation: float 6s ease-in-out infinite;
}
.ai-orbit .core span { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,3vw,2.4rem); color: #fff; letter-spacing: -.02em; }
.ai-orbit .ring { position: absolute; inset: 0; border: 1px dashed rgba(255,122,71,.3); border-radius: 50%; }
.ai-orbit .ring.r2 { inset: 14%; border-color: rgba(255,122,71,.18); }
.ai-orbit .ring.r3 { inset: 28%; border-color: rgba(255,122,71,.12); }
.ai-orbit .chip {
  position: absolute; background: var(--night-2); border: 1px solid var(--night-line);
  border-radius: var(--radius-pill); padding: 9px 15px; font-size: .8rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
}
.ai-orbit .chip .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-glow); }
.ai-orbit .chip.c1 { top: 8%; left: 50%; transform: translateX(-50%); animation: float 5s ease-in-out infinite; }
.ai-orbit .chip.c2 { top: 44%; right: -4%; animation: float 6.5s ease-in-out infinite .4s; }
.ai-orbit .chip.c3 { bottom: 10%; left: 2%; animation: float 5.6s ease-in-out infinite .8s; }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
.ai-orbit .chip.c1 { animation-name: floatx; }
@keyframes floatx { 0%,100%{ transform: translate(-50%, 0) } 50%{ transform: translate(-50%, -12px) } }

/* ---- AI orbit: scroll-in entrance + radar ping ---- */
.ai-orbit .core { position: relative; }
.ai-orbit .core span { white-space: nowrap; font-size: clamp(1.15rem, 2.5vw, 2rem); }
.ai-orbit .core, .ai-orbit .ring, .ai-orbit .chip { opacity: 0; }
.ai-orbit:not(.in) .core { transform: scale(.45); }
.ai-orbit:not(.in) .ring { transform: scale(.55); }

.ai-orbit.in .core { opacity: 1; animation: orbCoreIn .85s cubic-bezier(.18,.9,.28,1.25) backwards, float 6s ease-in-out infinite 1.2s; }
.ai-orbit.in .ring { opacity: 1; animation: orbRingIn .9s cubic-bezier(.2,.8,.25,1) backwards; }
.ai-orbit.in .ring.r1 { animation-delay: .12s; }
.ai-orbit.in .ring.r2 { animation-delay: .26s; }
.ai-orbit.in .ring.r3 { animation-delay: .40s; }
.ai-orbit.in .chip { opacity: 1; }
.ai-orbit.in .chip.c1 { animation: orbChipInC1 .6s cubic-bezier(.2,.9,.3,1.3) backwards .60s, floatx 5s ease-in-out infinite 1.25s; }
.ai-orbit.in .chip.c2 { animation: orbChipIn .6s cubic-bezier(.2,.9,.3,1.3) backwards .74s, float 6.5s ease-in-out infinite 1.45s; }
.ai-orbit.in .chip.c3 { animation: orbChipIn .6s cubic-bezier(.2,.9,.3,1.3) backwards .88s, float 5.6s ease-in-out infinite 1.60s; }

/* radar ping emanating from the core */
.ai-orbit .core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent-glow); opacity: 0; pointer-events: none;
}
.ai-orbit.in .core::after { animation: radarPing 3.4s ease-out infinite 1.4s; }

@keyframes orbCoreIn { from { opacity: 0; transform: scale(.45); } to { opacity: 1; transform: scale(1); } }
@keyframes orbRingIn { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
@keyframes orbChipIn { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes orbChipInC1 { from { opacity: 0; transform: translate(-50%,16px) scale(.9); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }
@keyframes radarPing { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.3); } }

.ai-note {
  margin-top: 40px; display: flex; align-items: center; gap: 18px;
  padding: 24px 28px; border-radius: 16px;
  border: 1px solid var(--night-line);
  background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 3%, transparent) 72%);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.14; letter-spacing: -.01em;
  color: #fff; text-wrap: balance;
}
.ai-note svg { width: 30px; height: 30px; flex: none; }
.ai-note .hl { color: var(--accent-glow); }

/* ---------- percorsi (numbered list) ---------- */
.percorsi-list { border-top: 1px solid var(--line); margin-top: 40px; }
.percorso {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 28px; align-items: center;
  padding: 34px 8px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding-inline .3s;
}
.percorso:hover { background: var(--card); }
.percorso .num { font-family: var(--display); font-size: 2.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.percorso .pc-body h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.percorso .pc-body p { margin-top: 8px; color: var(--ink-2); max-width: 620px; }
.percorso .pc-go { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.percorso:hover .pc-go { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
.percorso .tag { display: inline-block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 8px; }

/* ---------- why split (feature panel + reasons list) ---------- */
.why-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 60px); margin-top: 48px; align-items: stretch; }

.why-feature {
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius-lg); padding: clamp(30px, 3vw, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden; isolation: isolate;
}
.why-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 18% 120%, color-mix(in srgb, var(--accent-glow) 26%, transparent), transparent 62%); }
.why-feature .wf-top { display: flex; align-items: center; gap: 14px; }
.why-feature .wc-ic { width: 52px; height: 52px; border-radius: 15px; background: color-mix(in srgb, var(--accent-glow) 18%, transparent); color: var(--accent-glow); display: grid; place-items: center; flex: none; }
.why-feature .wc-ic svg { width: 26px; height: 26px; }
.why-feature .wf-kicker { font-family: var(--mono, monospace); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-glow); }
.why-feature .wf-body h3 { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.08; letter-spacing: -0.01em; color: #fff; }
.why-feature .wf-body p { color: #C9C0B2; font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.55; margin-top: 16px; max-width: 34ch; }

.why-list { display: flex; flex-direction: column; }
.why-row { display: grid; grid-template-columns: 52px 1fr; gap: 24px; padding: 26px 4px; border-top: 1px solid var(--line); align-items: start; transition: padding-left .25s ease; }
.why-row:first-child { border-top: 0; padding-top: 4px; }
.why-row:last-child { padding-bottom: 0; }
.why-row:hover { padding-left: 12px; }
.why-row .wr-ic { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-tint); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.why-row .wr-ic svg { width: 22px; height: 22px; }
.why-row .wr-text h4 { font-family: var(--display); font-size: 1.32rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.why-row .wr-text p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 52ch; }

/* ---------- course cards ---------- */
.courses-block + .courses-block { margin-top: clamp(40px, 6vw, 72px); }
.courses-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.course-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.course-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4/3; color: #fff; isolation: isolate;
  box-shadow: 0 18px 40px -30px rgba(24,20,15,.28);
}
.course-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.course-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15,12,8,.92) 0%, rgba(15,12,8,.35) 48%, rgba(15,12,8,.05) 100%); }
.course-card:hover img { transform: scale(1.06); }
.course-card .cc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.course-card .cc-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-glow); }
.course-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: #fff; }
.course-card p { font-size: .92rem; color: rgba(255,255,255,.82); line-height: 1.5; max-width: 90%; }
.course-card .cc-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; margin-top: 4px; color: #fff; }
.course-card .cc-link svg { width: 16px; height: 16px; transition: transform .25s; }
.course-card:hover .cc-link svg { transform: translateX(4px); }

/* product-showcase variant — light card with packaging render */
.course-card--product {
  color: var(--ink);
  background:
    radial-gradient(130% 120% at 16% 0%, #FDFDFC 0%, #F3F3F2 82%);
  display: flex;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease;
  will-change: transform;
}
.course-card--product::after { display: none; }
.course-card--product .cc-content {
  position: relative; z-index: 2;
  width: 52%; height: 100%;
  padding: 30px 8px 30px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.course-card--product .cc-tag { color: var(--accent-deep); }
.course-card--product h3 { color: var(--ink); }
.course-card--product p { color: var(--ink-2); max-width: 100%; }
.course-card--product .cc-link { color: var(--accent-deep); }
.course-card--product .cc-box {
  position: absolute; top: 50%; left: auto;
  right: 9%; bottom: auto;
  transform: translateY(-50%);
  width: auto; height: 54%;
  object-fit: contain; object-position: center;
  z-index: 1;
  filter: none;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.course-card--product:hover .cc-box { transform: translateY(-50%) scale(1.04); }
/* block highlight on hover — soft accent border overlay (come nelle altre pagine) */
.course-card--product::before {
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; border: 1px solid var(--accent);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.course-card--product:hover::before { opacity: .55; }
.course-card--product:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px -32px rgba(24,20,15,.3);
}
@media (max-width: 560px) {
  .course-card--product { aspect-ratio: auto; }
}
/* Product-card su mobile: impilate (box sopra, testo sotto) come la sezione
   "in presenza" — così il render del packaging non copre più il testo. */
@media (max-width: 900px) {
  .course-card--product { flex-direction: column; aspect-ratio: auto; }
  .course-card--product .cc-box {
    position: static; transform: none; order: -1;
    width: 100%; height: auto; max-height: 280px;
    object-fit: contain; object-position: center; padding: 26px 26px 0;
  }
  .course-card--product:hover .cc-box { transform: none; }
  .course-card--product .cc-content { width: 100%; height: auto; padding: 22px 26px 28px; }
}

/* ---------- presence (Roberto 1:1) ---------- */
.presence { background: var(--ink); color: var(--paper); }
.presence h2 { color: #fff; }
.presence .lead { color: #C9C0B2; }
.presence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.pres-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 3/4; isolation: isolate; }
.pres-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.pres-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,8,5,.92), rgba(10,8,5,.1) 70%); }
.pres-card:hover img { transform: scale(1.05); }
.pres-card .pc-in { position: absolute; bottom: 0; padding: 24px; }
.pres-card h4 { font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
.pres-card p { font-size: .9rem; color: rgba(255,255,255,.8); line-height: 1.5; }
.pres-wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* product-showcase variant — packaging render on a warm dark panel */
.pres-card--product { background: linear-gradient(165deg, #2c2720 0%, #16120e 72%); display: flex; flex-direction: column; transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; will-change: transform; }
.pres-card--product::after { display: none; }
.pres-card--product .pc-box {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 30px 26px 4px;
}
.pres-card--product .pc-box::before {
  content: ""; position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%);
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 68%);
}
.pres-card--product .pc-box img {
  position: relative; inset: auto; width: auto; height: 100%; max-height: 215px;
  object-fit: contain; z-index: 1;
  filter: drop-shadow(0 26px 44px rgba(0,0,0,.55));
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.pres-card--product:hover .pc-box img { transform: translateY(-6px) scale(1.04); }
.pres-card--product::before {
  content: ""; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; border: 1px solid var(--accent-glow);
  opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.pres-card--product:hover::before { opacity: .5; }
.pres-card--product:hover {
  transform: translateY(-6px);
  box-shadow: 0 44px 80px -32px rgba(0,0,0,.62);
}
.pres-card--product .pc-in { position: relative; bottom: auto; padding: 4px 26px 26px; }
@media (min-width: 880px){ .presence-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- comparison ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.compare { border-radius: var(--radius-lg); padding: 34px; }
.compare h3 { font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; display: flex; align-items: center; gap: 10px; }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li { display: flex; gap: 13px; padding: 14px 0; border-top: 1px solid; align-items: flex-start; font-size: .98rem; line-height: 1.45; }
.compare .mk { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.compare .mk svg { width: 12px; height: 12px; }
.compare.without { background: var(--paper-2); border: 1px solid var(--line); }
.compare.without h3 { color: var(--ink-3); }
.compare.without li { border-color: var(--line); color: var(--ink-2); }
.compare.without .mk { background: #E4D8C6; color: #9A8B76; }
.compare.with { background: var(--ink); color: var(--paper); }
.compare.with h3 { color: #8FC47E; }
.compare.with li { border-color: var(--night-line); }
.compare.with .mk { background: var(--go); color: #fff; }

/* ---------- testimonials ---------- */
.testi-wall { margin-top: 44px; columns: 4; column-gap: 18px; }
.testi { break-inside: avoid; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.testi .t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.testi .t-av { width: 42px; height: 42px; border-radius: 50%; background-size: cover; background-position: center; flex: none; }
.testi .t-name { font-weight: 700; font-size: .95rem; }
.testi .t-handle { color: var(--ink-3); font-size: .8rem; }
.testi .t-stars { color: var(--accent); font-size: .8rem; letter-spacing: 1px; margin-bottom: 8px; }
.testi .t-title { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); margin-bottom: 7px; }
.testi p { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.testi-fade { position: relative; }
.testi-fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(to top, var(--paper-2), transparent); pointer-events: none; }
.testi-more { display: flex; justify-content: center; margin-top: 28px; position: relative; z-index: 2; }

/* ---------- fit list (perfetti per te) ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.fit { border-radius: var(--radius-lg); padding: 34px; }
.fit.yes { background: var(--go-tint); border: 1px solid var(--go-soft); }
.fit.no { background: var(--card); border: 1px solid var(--line); }
.fit h3 { font-size: 1.55rem; margin-bottom: 22px; }
.fit.yes h3 { color: var(--go-deep); }
.fit ul { list-style: none; margin: 0; padding: 0; }
.fit li { display: flex; gap: 14px; padding: 15px 0; align-items: flex-start; font-size: 1.1rem; line-height: 1.5; border-top: 1px solid; }
.fit.yes li { border-color: var(--go-soft); }
.fit.no li { border-color: var(--line-soft); color: var(--ink-2); }
.fit .mk { flex: none; width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; margin-top: 1px; }
.fit.yes .mk { background: var(--go); color: #fff; }
.fit.no .mk { background: var(--paper-2); color: var(--ink-3); }
.fit .mk svg { width: 15px; height: 15px; }
.fit li b { color: var(--ink); }

/* ---------- back to top ---------- */
.back-to-top {
  position: fixed; right: clamp(20px, 4vw, 40px); bottom: clamp(20px, 4vw, 40px);
  z-index: 90; width: 52px; height: 52px; border-radius: var(--radius-pill);
  display: grid; place-items: center; cursor: pointer;
  background: var(--accent); color: #fff; border: none;
  box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--accent) 60%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-deep); transform: translateY(-2px); }
.back-to-top svg { width: 22px; height: 22px; }


/* ---------- founder ---------- */
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.founder-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 36px 70px -34px rgba(24,20,15,.5); position: relative; }
.founder-media img { width: 100%; height: 100%; object-fit: cover; }
.founder-media .sig { position: absolute; bottom: 18px; left: 18px; right: 18px; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); border-radius: 14px; padding: 14px 18px; display: flex; gap: 14px; align-items: center; }
.founder-media .sig b { font-family: var(--display); }
.founder-media .sig small { color: var(--ink-3); display:block; font-size:.78rem; }
.founder-body .founder-name { font-size: clamp(2.4rem, 4.5vw, 3.6rem); margin-block: 6px 18px; }
.founder-body p + p { margin-top: 14px; }
.founder-body .magazines { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.founder-body .magazines span { font-family: var(--display); font-style: italic; font-weight: 600; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.6fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 12px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; font-family: "DM Sans", sans-serif !important; font-size: 21px !important; font-weight: 400 !important; letter-spacing: 0 !important; color: var(--ink); }
.faq-q span:not(.pm) { font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit !important; color: inherit !important; }
.faq-q .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s, transform .3s; position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: currentColor; }
.faq-q .pm::before { width: 12px; height: 1.6px; }
.faq-q .pm::after { width: 1.6px; height: 12px; transition: transform .3s; }
.faq-item.open .pm { background: var(--accent); color: #fff; border-color: var(--accent); }
.faq-item.open .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a .faq-a-inner { padding-bottom: 24px; color: var(--ink-2); font-size: .98rem; line-height: 1.6; }

/* ---------- final CTA ---------- */
.final-cta { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.final-cta::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 90% at 50% 120%, rgba(255,122,71,.28), transparent 60%); }
.final-cta .wrap { position: relative; z-index: 1; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(2.4rem, 5.5vw, 4.6rem); }
.final-cta h2 .hl { color: var(--accent-glow); }
.final-cta .lead { color: #C9C0B2; max-width: 640px; margin-inline: auto; }
.cta-checks { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; margin: 30px 0; }
.cta-checks li { list-style: none; display: flex; align-items: center; gap: 10px; color: #D8CFC1; font-size: .98rem; }
.cta-checks .mk { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.cta-checks .mk svg { width: 12px; height: 12px; }
.cta-free { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-glow); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #B7AE9F; padding-block: 64px 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 44px; border-bottom: 1px solid var(--night-line); }
.footer-brand img { height: 26px; margin-bottom: 18px; }
.footer-brand p { font-size: .92rem; max-width: 280px; line-height: 1.6; }
.footer-col h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #756B5C; margin: 0 0 16px; }
.footer-col a { display: block; padding: 7px 0; font-size: .95rem; color: #CFC6B7; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; font-size: .85rem; color: #756B5C; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--night-line); display: grid; place-items: center; color: #CFC6B7; transition: background .2s, color .2s; }
.footer-bottom .socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.footer-bottom .socials svg { width: 17px; height: 17px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .marquee__track, .pill--ai .dot { animation: none !important; } .ai-orbit .core, .ai-orbit .ring, .ai-orbit .chip { animation: none !important; opacity: 1 !important; transform: none !important; } .ai-orbit .chip.c1 { transform: translateX(-50%) !important; } .ai-orbit .core::after { display: none !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .testi-wall { columns: 3; }
  .why-split { grid-template-columns: 0.95fr 1.05fr; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-grid, .problem-grid, .ai-grid, .founder-grid, .faq-grid { grid-template-columns: 1fr; }
  .ai-orbit { max-width: 420px; margin-inline: auto; }
  .founder-media { max-width: 460px; }
  .compare-grid, .fit-grid, .course-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .testi-wall { columns: 2; }
  .nav, .header-cta .login { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-media .frame { aspect-ratio: 1/1; }
  .percorso { grid-template-columns: 64px 1fr; }
  .percorso .pc-go { display: none; }
  .percorso .num { font-size: 2rem; }
}
@media (max-width: 560px) {
  :root { --radius-lg: 22px; }
  .testi-wall { columns: 1; }
  .stats { grid-template-columns: 1fr 1fr; }
  .countdown { position: static; margin-top: 18px; left: 0; }
  .hero-media .frame { aspect-ratio: 4/5; }
  .founder-body .founder-name { margin-top: 14px; }
  .marquee__track span { font-size: .9rem; }
  .compare, .fit, .ai-feat { padding: 22px; }
  .why-split { grid-template-columns: 1fr; gap: 28px; }
  .why-row .wr-text p { max-width: none; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   MOBILE FIXES (condivisi) — alcune pagine impostano dimensioni
   font in px FISSE inline (es. 90/110/122px) che su telefono
   sfondano e rompono il layout, ignorando le scale fluide. Qui
   le riportiamo a scale fluide SOLO sotto i 900px, con !important
   per battere gli stili inline. Desktop resta invariato.
   ============================================================ */
@media (max-width: 900px) {
  /* titoli display con px fissi inline → scala fluida */
  .display-lg, .dg-title { font-size: clamp(2.1rem, 8.4vw, 3.4rem) !important; line-height: 1.06 !important; }
  .ai-headline { font-size: clamp(2rem, 8vw, 3.2rem) !important; }
  .nl-title { font-size: clamp(1.7rem, 7.4vw, 2.5rem) !important; }
  .wn-lead h2 { font-size: clamp(1.9rem, 8vw, 3rem) !important; }
  .academy .display-sm { font-size: clamp(1.7rem, 7vw, 2.5rem) !important; padding: 40px 0 28px !important; }

  /* card / liste */
  .percorso .pc-body h3, .course-card h3, .pres-card h4 { font-size: clamp(1.2rem, 5.2vw, 1.7rem) !important; }
  .faq-q, .faq-q span:not(.pm) { font-size: 1.02rem !important; }

  /* Headline di sezione con px FISSI inline non coperte da .display-lg
     (Radici: .studio-body h2 90px — Comunicazione&Copy: .cs-lead 90px,
     .cs-headline 140px, .profili-cta p 45px). Scala fluida su mobile. */
  .studio-body h2 { font-size: clamp(2rem, 8.4vw, 3.2rem) !important; line-height: 1.06 !important; }
  .cs-lead { font-size: clamp(1.45rem, 6.6vw, 2.3rem) !important; line-height: 1.1 !important; }
  .cs-headline { font-size: clamp(2rem, 9vw, 3.4rem) !important; line-height: 1.03 !important; }
  .profili-cta p { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; line-height: 1.15 !important; }
  .studio-body h2, .cs-lead, .cs-headline, .profili-cta p { overflow-wrap: anywhere; }

  /* margini orizzontali enormi presi inline → azzerati su mobile */
  .academy .big { margin: 18px 0 0 !important; padding-inline: 0 !important; }
  .academy .display-lg, .academy .overline { padding-inline: 0 !important; }

  /* evita parole troppo lunghe che sfondano */
  .display-lg, .dg-title, .ai-headline, .nl-title, .wn-lead h2 { overflow-wrap: anywhere; }

  /* ORBITA AI: il cerchio con le etichette flottanti (posizionate in assoluto,
     alcune oltre il bordo) allarga la pagina su tablet/telefono → la nascondiamo
     e teniamo solo il contenuto testuale. */
  .ai-orbit { display: none !important; }
  .ai-grid { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* GUARDIA OVERFLOW: niente elemento può allargare la pagina oltre lo schermo */
  .stats { width: 100% !important; margin-inline: 0 !important; }
  .marquee__set { min-width: 100% !important; }

  /* FAQ: le domande vanno a capo, mai overflow orizzontale (causava lo scroll
     laterale di tutta la pagina). Il bottone diventa block + il +/- assoluto. */
  .faq-grid > * { min-width: 0; }
  .faq-q { display: block !important; position: relative; padding-right: 46px; }
  .faq-q .pm { position: absolute; right: 0; top: 22px; }
  .faq-q span:not(.pm) { display: block; overflow-wrap: anywhere; }

  /* Presence: una sola colonna su mobile (era bloccata a 3 → testo tagliato) */
  .presence-grid { grid-template-columns: 1fr !important; }
  .pres-card--product { aspect-ratio: auto !important; }
  .pres-card--product .pc-box { min-height: 220px; padding-top: 32px; }
}

@media (max-width: 560px) {
  .display-lg, .dg-title { font-size: clamp(1.9rem, 9vw, 2.7rem) !important; }
  .academy .display-sm { font-size: clamp(1.55rem, 8vw, 2.1rem) !important; padding: 28px 0 22px !important; }

  /* percorsi: numero + testo allineati in alto, niente troncamenti */
  .percorso { gap: 14px !important; align-items: start !important; }
  .percorso .num { align-self: start !important; }

  .ai-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 22px; }

  /* numeri statistiche enormi → contenuti, non sfondano la colonna */
  .stat { padding: 40px 14px !important; }
  .stat b { font-size: clamp(2.4rem, 13vw, 3.6rem) !important; }
  .stats { grid-template-columns: 1fr 1fr !important; }

  /* parole-indice editoriali (FOTOGRAFIA, COMUNICAZIONE…) → mai fuori schermo */
  .index-word { font-size: clamp(2rem, 13vw, 4rem) !important; overflow-wrap: anywhere; text-align: center; }

  /* header: spazio pulito per logo + hamburger (il CTA resta nel menu) */
  .header-cta .btn--accent { display: none !important; }
  .menu-toggle { display: inline-grid !important; }

  /* padding di sezione (impostati inline molto alti) ridotti su telefono */
  #percorsi { padding: 64px 0 !important; }
  #corsi { padding: 64px 0 80px !important; }
  .presence { padding: 64px 0 72px !important; }

  /* CTA principali a tutta larghezza, tap target comodi */
  .hc-actions .btn--lg, .final-cta .btn--lg { width: 100%; justify-content: center; }
}

/* ============================================================
   INDEX / AREE — oversized editorial words, hover → theme accent
   ============================================================ */
.index-block { background: var(--paper); }
.index-head { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.index-list {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: clamp(2px, .4vw, 8px);
}
.index-word {
  position: relative;
  display: inline-flex; align-items: flex-start; gap: .14em;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 12.5vw, 9.5rem);
  line-height: .9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .35s cubic-bezier(.2,.8,.2,1), letter-spacing .35s cubic-bezier(.2,.8,.2,1);
  will-change: color;
}
.index-word:hover,
.index-word:focus-visible { color: var(--accent); outline: none; }
.index-word sup {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(.62rem, 1vw, .9rem);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--ink-3);
  align-self: flex-start;
  margin-top: .35em;
  transition: color .35s;
}
.index-word:hover sup,
.index-word:focus-visible sup { color: var(--accent); }
@media (hover: none) {
  /* on touch, the first word is pre-tinted so the colour idea reads without a pointer */
  .index-word:nth-child(2) { color: var(--accent); }
  .index-word:nth-child(2) sup { color: var(--accent); }
}

/* ============================================================
   AI BLOCK — segue la palette approvata attiva (Senape /
   Senape Oro / Ottanio / Ottone). Nessun pin fisso al clay.
   ============================================================ */

/* ============================================================
   BLOG nel menu — opzionale e nascosto di default.
   I link "Blog" (header, footer, menu mobile) sono marcati con
   [data-nova-blog]. Restano nascosti finché nova-apply non imposta
   html[data-blog-menu="on"], in base a NOVA_CONFIG.site.showBlogInMenu
   (Dashboard). Così "inizialmente non c'è" anche prima che parta il JS.
   ============================================================ */
html:not([data-blog-menu="on"]) [data-nova-blog] { display: none !important; }

/* ============================================================
   HOME — ritocchi mobile specifici (scoped su body[data-nova-page="home"]).
   Tenuti qui così tutto il CSS della HOME viaggia in UN solo file
   (nessuna modifica nei widget/template Elementor da installare).
   ============================================================ */
@media (max-width: 720px) {
  /* Cover troppo piena: via il badge "Iscrizioni" e lo showreel,
     così la fascia "900+ fotografi" risale. */
  body[data-nova-page="home"] .hc-top { display: none; }
  body[data-nova-page="home"] .hc-play { display: none; }

  /* Titoli che riempiono lo spazio (erano troppo piccoli rispetto alla colonna). */
  body[data-nova-page="home"] .dg-title { font-size: clamp(2.35rem, 10.5vw, 3.4rem) !important; }
  body[data-nova-page="home"] .wn-lead h2 { font-size: clamp(2.15rem, 9.6vw, 3.1rem) !important; }
  body[data-nova-page="home"] .courses-head .display-md { font-size: clamp(1.95rem, 8.2vw, 2.6rem) !important; }

  /* Card corsi (Radici / Posing / Allin / Comunicazione): impilate verticali,
     foto del box sopra e testo sotto — su mobile lo split orizzontale tagliava
     l'immagine. */
  body[data-nova-page="home"] .course-card--product {
    aspect-ratio: auto !important;
    flex-direction: column;
    min-height: 0;
  }
  body[data-nova-page="home"] .course-card--product .cc-box {
    position: relative; inset: auto; top: auto; right: auto; left: auto;
    order: -1;
    width: auto; height: 188px; max-width: 72%;
    margin: 30px auto 4px;
    transform: none;
  }
  body[data-nova-page="home"] .course-card--product:hover .cc-box { transform: scale(1.04); }
  body[data-nova-page="home"] .course-card--product .cc-content {
    width: 100% !important;
    padding: 4px 24px 30px !important;
    justify-content: flex-start;
  }
}

/* ============================================================
   HOME — ritocchi mobile (2): eyebrow a sinistra, headline corsi
   più grandi, guardia extra anti-scroll orizzontale nelle FAQ.
   ============================================================ */
@media (max-width: 900px) {
  /* Eyebrow "QUATTRO AREE…" allineato a sinistra (come "I nostri percorsi") */
  body[data-nova-page="home"] .index-head { text-align: left !important; }
  body[data-nova-page="home"] .index-head .overline {
    justify-content: flex-start !important;
    margin-inline: 0 !important;
    text-align: left !important;
  }

  /* Headline dei blocchi corsi più grandi (Fotografia = Business) */
  body[data-nova-page="home"] .courses-head .display-md {
    font-size: clamp(2.15rem, 9.2vw, 2.9rem) !important;
    line-height: 1.05 !important;
  }

  /* FAQ: guardia extra: mai scroll orizzontale della pagina */
  .faq-grid, .faq-list, .faq-item { min-width: 0; max-width: 100%; }
  .faq-q { overflow-wrap: anywhere; word-break: break-word; }
}
