
/* ─── DESIGN TOKENS ───────────────────────────────────────── */
:root{
  --brand-50:#fdf2f8;
  --brand-100:#fce7f3;
  --brand-300:#f9a8d4;
  --brand-500:#ec4899;
  --brand-600:#db2777;
  --brand-700:#be185d;
  --brand-800:#9d174d;
  --brand-900:#831843;
  --bordeaux:#581c47;
  --night-900:#0a0814;
  --night-800:#160c2b;
  --night-700:#1f1340;
  --gold:#f59e0b;
  --cream:#fef3c7;
  --surface:#ffffff;
  --surface-soft:#fafaf9;
  --ink-900:#0f172a;
  --ink-700:#334155;
  --ink-500:#64748b;
  --ink-300:#cbd5e1;
  --line:#e2e8f0;
  --shadow-sm:0 1px 3px rgba(15,23,42,.06),0 4px 12px rgba(15,23,42,.04);
  --shadow-md:0 8px 24px rgba(15,23,42,.08),0 2px 6px rgba(15,23,42,.04);
  --shadow-lg:0 20px 48px rgba(15,23,42,.12),0 6px 16px rgba(15,23,42,.06);
  --shadow-brand:0 16px 40px rgba(190,24,93,.28),0 4px 12px rgba(190,24,93,.18);
  --radius-sm:10px;
  --radius:14px;
  --radius-lg:22px;
  --radius-xl:32px;
  --ease:cubic-bezier(.4,0,.2,1);
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink-900);background:var(--surface);line-height:1.6;font-size:16px;overflow-x:hidden}
h1,h2,h3,h4{font-family:'Sora','Inter',sans-serif;margin:0;letter-spacing:-.02em;line-height:1.15;font-weight:800;color:var(--ink-900)}
p{margin:0}
a{color:var(--brand-700);text-decoration:none;transition:color .15s var(--ease)}
a:hover{color:var(--brand-500)}
img{max-width:100%;height:auto;display:block}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
.container{max-width:1240px;margin:0 auto;padding:0 24px}
.section{padding:96px 0;position:relative}
.section-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-700);background:var(--brand-50);padding:8px 18px;border-radius:999px;margin-bottom:18px;border:1px solid var(--brand-100)}
.section-eyebrow .dot{width:6px;height:6px;background:var(--brand-500);border-radius:50%;animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:.4;transform:scale(.85)}50%{opacity:1;transform:scale(1.15)}}
.section-title{font-size:clamp(28px,4.5vw,52px);margin-bottom:20px;letter-spacing:-.03em}
.section-title em{font-style:italic;background:linear-gradient(135deg,var(--brand-700),var(--brand-500));-webkit-background-clip:text;background-clip:text;color:transparent}
.section-sub{font-size:clamp(15px,1.5vw,18px);color:var(--ink-500);max-width:680px;line-height:1.65;margin-bottom:48px}

/* ─── HEADER ──────────────────────────────────────────────── */
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;padding:14px 0;background:rgba(255,255,255,.85);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-bottom:1px solid rgba(15,23,42,.06);transition:transform .35s var(--ease),background .25s var(--ease)}
.site-header.is-hidden{transform:translateY(-100%)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{display:flex;align-items:center;gap:11px;font-family:'Sora',sans-serif;font-weight:800;font-size:18px;color:var(--ink-900);letter-spacing:-.02em}
.logo-icon{width:42px;height:42px;border-radius:12px;background:linear-gradient(135deg,var(--brand-700),var(--brand-500));display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;box-shadow:var(--shadow-brand)}
.logo-text small{display:block;font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--brand-700);margin-top:1px;font-family:'Inter',sans-serif}
.nav-main{display:flex;align-items:center;gap:6px}
.nav-main a{padding:9px 14px;border-radius:9px;font-size:14.5px;font-weight:600;color:var(--ink-700);transition:all .15s var(--ease)}
.nav-main a:hover{color:var(--brand-700);background:var(--brand-50)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:13px 24px;border-radius:12px;font-weight:700;font-size:14.5px;cursor:pointer;transition:transform .15s var(--ease),box-shadow .15s var(--ease);white-space:nowrap;line-height:1;border:0;text-decoration:none}
.btn-primary{background:linear-gradient(135deg,var(--brand-700) 0%,var(--brand-500) 100%);color:#fff;box-shadow:var(--shadow-brand)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 50px rgba(190,24,93,.4),0 6px 16px rgba(190,24,93,.22);color:#fff}
.btn-ghost{background:transparent;color:var(--ink-900);border:1.5px solid var(--line);padding:11.5px 22px}
.btn-ghost:hover{border-color:var(--brand-500);color:var(--brand-700);background:var(--brand-50)}
.btn-lg{padding:16px 32px;font-size:15.5px;border-radius:14px}
.menu-toggle{display:none;width:44px;height:44px;border-radius:11px;align-items:center;justify-content:center;background:var(--surface-soft);border:1px solid var(--line);cursor:pointer;flex-shrink:0;position:relative;z-index:201}
/* v3.8.82-83 fix: nasconde eventuale textContent inserito accidentalmente nel
   button hamburger via Editor Universale + ripristina icona hamburger via
   CSS pseudo-element (3 barre) anche se SVG e stato rimosso dall'override. */
.menu-toggle{font-size:0 !important;line-height:0 !important;overflow:hidden !important;color:transparent !important;text-indent:-9999px !important;white-space:nowrap !important;position:relative !important;align-items:center !important;justify-content:center !important}
.menu-toggle svg{width:24px !important;height:24px !important;color:var(--ink-900) !important;transition:transform .25s var(--ease);font-size:0;flex-shrink:0;text-indent:0}
/* Icona hamburger CSS-only (3 barre) come fallback se SVG mancante */
.menu-toggle::before{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  top:50% !important;
  left:50% !important;
  width:22px !important;
  height:2px !important;
  background:var(--ink-900,#0f172a) !important;
  border-radius:2px !important;
  transform:translate(-50%, -50%) !important;
  box-shadow:0 -7px 0 var(--ink-900,#0f172a), 0 7px 0 var(--ink-900,#0f172a) !important;
  text-indent:0 !important;
  transition:transform .25s var(--ease) !important;
}
.menu-toggle.is-open::before{
  transform:translate(-50%, -50%) rotate(45deg) !important;
  box-shadow:none !important;
}
.menu-toggle.is-open::after{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  top:50% !important;
  left:50% !important;
  width:22px !important;
  height:2px !important;
  background:var(--ink-900,#0f172a) !important;
  border-radius:2px !important;
  transform:translate(-50%, -50%) rotate(-45deg) !important;
  text-indent:0 !important;
}
/* Quando SVG presente nel DOM, nasconde le barre CSS per evitare doppione */
.menu-toggle:has(svg)::before,
.menu-toggle:has(svg)::after{display:none !important}
.menu-toggle.is-open svg{transform:rotate(90deg)}
.nav-main-overlay{display:none}

@media (max-width:880px){
  /* v3.8.80 fix: specificity boost + !important per battere eventuali
     regole conflittuali (Kubio template, admin overlay) che mantengono
     display:flex sulla home page. La regola base aveva solo .nav-main
     (specificity 0,1,0) battibile da .site-header .nav-main (0,2,0). */
  body.home .site-header .nav-main,
  body.crml-home-takeover .site-header .nav-main,
  body.home #siteHeader .nav-main,
  .nav-main{display:none !important}
  body.home .site-header .menu-toggle,
  body.crml-home-takeover .site-header .menu-toggle,
  .menu-toggle{display:inline-flex !important}
  .header-cta-text{display:none}
  .btn{padding:11px 18px;font-size:14px}

  /* === Mobile drawer fullscreen === */
  .nav-main-overlay{display:block;position:fixed;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .3s var(--ease);z-index:150}
  .nav-main-overlay.is-open{opacity:1;pointer-events:auto}

  /* v3.8.85 fix: boost specificity per battere la regola close (0,2,1 con !important
     definita riga 119-122). Senza questi prefissi, .nav-main.is-open era solo 0,2,0
     e perdeva contro display:none → drawer mobile non si apriva mai sulla home. */
  body.home .site-header .nav-main.is-open,
  body.crml-home-takeover .site-header .nav-main.is-open,
  body.home #siteHeader .nav-main.is-open,
  .nav-main.is-open{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    position:fixed !important;
    top:0 !important; right:0 !important; bottom:0 !important; left:auto !important;
    width:min(86vw, 340px) !important;
    background:#fff !important;
    padding:80px 0 calc(20px + env(safe-area-inset-bottom)) 0 !important;
    box-shadow:-20px 0 60px rgba(15,23,42,.18) !important;
    z-index:200 !important;
    gap:0 !important;
    overflow-y:auto !important;
    -webkit-overflow-scrolling:touch;
    transform:translateX(0) !important;
    animation:navSlideIn .32s var(--ease)
  }
  body.home .site-header .nav-main.is-open a,
  body.crml-home-takeover .site-header .nav-main.is-open a,
  body.home #siteHeader .nav-main.is-open a,
  .nav-main.is-open a{
    display:flex !important;
    align-items:center;
    width:100%;
    min-height:56px;
    padding:14px 26px !important;
    border-radius:0 !important;
    font-size:17px !important;
    font-weight:600 !important;
    color:var(--ink-900) !important;
    background:transparent !important;
    border-bottom:1px solid rgba(15,23,42,.06);
    box-sizing:border-box;
    text-align:left;
  }
  .nav-main.is-open a:active,
  .nav-main.is-open a:hover{
    background:var(--brand-50) !important;
    color:var(--brand-700) !important;
  }
  .nav-main.is-open a:last-child{border-bottom:0}

  /* Lock scroll del body quando aperto (iOS-safe: solo overflow, no position:fixed) */
  body.crml-nav-locked{overflow:hidden}
  html.crml-nav-locked{overflow:hidden}
}
@keyframes navSlideIn{from{transform:translateX(100%)}to{transform:translateX(0)}}

/* ─── HERO ────────────────────────────────────────────────── */
.hero{position:relative;min-height:100vh;display:flex;align-items:center;padding:140px 0 80px;background:linear-gradient(135deg,var(--night-900) 0%,var(--night-800) 35%,var(--bordeaux) 75%,var(--brand-800) 100%);color:#fff;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,rgba(236,72,153,.25),transparent 50%),radial-gradient(circle at 80% 70%,rgba(245,158,11,.15),transparent 50%);pointer-events:none}
.hero-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:64px;align-items:center;position:relative;z-index:2}
.hero-eyebrow{display:inline-flex;align-items:center;gap:10px;padding:9px 18px;background:rgba(255,255,255,.08);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.18);border-radius:999px;font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;margin-bottom:28px;color:#fff}
.hero-eyebrow .dot{width:7px;height:7px;background:#22c55e;border-radius:50%;box-shadow:0 0 12px #22c55e;animation:pulse 1.8s ease-in-out infinite}
.hero h1{font-size:clamp(36px,6vw,76px);font-weight:900;letter-spacing:-.04em;line-height:1.02;margin-bottom:24px;color:#fff}
.hero h1 em{font-style:italic;font-weight:800;background:linear-gradient(135deg,var(--cream) 0%,var(--brand-300) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;display:inline-block}
/* 614a SEO: l'etichetta sta dentro l'H1 insieme allo slogan, cosi il titolo principale dice
   "Accademia di musica a Palermo". Il kicker riporta font e interlinea dell'etichetta (dall'H1
   erediterebbe Sora a 88px); lo slogan resta identico e il margine alto che l'H1 aveva sopra
   di se (.67em del tema Kubio) passa tra etichetta e slogan. Sotto i 1280px la frase non sta
   su una riga: va a capo prima di "Bene confiscato alla mafia". */
.hero h1.hero-h1{margin-top:0}
.hero-h1-kicker{display:block;font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:12.5px;line-height:1.4;letter-spacing:normal}
.hero-h1-kicker .hero-eyebrow{vertical-align:top}
.hero-h1-kicker .dot{flex:none}
.hero-eyebrow-txt{text-align:center}
.hero-h1-slogan{display:block;margin-top:.67em}
@media (max-width:1279px){.hero-eyebrow-sep{display:none}.hero-eyebrow-b{display:block}}
/* Telefono: la colonna e larga ~290px, a 12.5px con spaziatura .14em ogni riga andava a capo (4 righe). */
@media (max-width:480px){.hero-h1-kicker .hero-eyebrow{font-size:11.5px;letter-spacing:.08em;padding:9px 16px}}
.hero-sub{font-size:clamp(16px,1.7vw,20px);color:rgba(255,255,255,.86);max-width:560px;margin-bottom:36px;line-height:1.6}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:48px}
.btn-hero-pri{background:linear-gradient(135deg,var(--brand-500),var(--brand-700));color:#fff;box-shadow:0 12px 32px rgba(236,72,153,.42);padding:18px 32px;border-radius:14px;font-size:16px}
.btn-hero-pri:hover{transform:translateY(-3px);box-shadow:0 20px 48px rgba(236,72,153,.55);color:#fff}
.btn-hero-ghost{background:rgba(255,255,255,.1);backdrop-filter:blur(10px);border:1.5px solid rgba(255,255,255,.3);color:#fff;padding:16.5px 28px;border-radius:14px;font-size:15.5px}
.btn-hero-ghost:hover{background:rgba(255,255,255,.18);border-color:rgba(255,255,255,.5);color:#fff;transform:translateY(-2px)}

.hero-trust{display:flex;gap:32px;align-items:center;flex-wrap:wrap}
.trust-item{display:flex;align-items:center;gap:10px}
.trust-item-num{font-family:'Sora',sans-serif;font-size:28px;font-weight:800;color:#fff;line-height:1}
.trust-item-lbl{font-size:12px;color:rgba(255,255,255,.6);font-weight:500;line-height:1.3}
.trust-divider{width:1px;height:32px;background:rgba(255,255,255,.18)}

/* Hero visual: waveform animato + foto bene confiscato */
.hero-visual{position:relative}
.hero-frame{position:relative;border-radius:32px;overflow:hidden;aspect-ratio:4/5;background:linear-gradient(135deg,#1a0f3e,#3d1538);box-shadow:0 40px 80px rgba(0,0,0,.4);transform:perspective(1200px) rotateY(-6deg) rotateX(2deg)}
/* width/height !important: il tema Kubio ha [data-kubio] img{height:auto} (0,1,1) che batte .hero-frame-img (0,1,0) e schiaccia la foto */
.crml-home-v2-wrap .hero-frame-img,
.hero-frame-img{position:absolute;inset:0;width:100% !important;height:100% !important;max-width:none;object-fit:cover;object-position:38% 50%;z-index:1;display:block}
.hero-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(26,15,62,.15) 0%,rgba(26,15,62,.55) 70%,rgba(26,15,62,.85) 100%);z-index:2;pointer-events:none}
.hero-frame-inner{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:120px;color:rgba(255,255,255,.06);font-family:'Sora',sans-serif;font-weight:900;letter-spacing:-.05em;z-index:0}
.hero-frame-inner::before{content:"";font-size:0}
.hero-frame-tag{position:absolute;bottom:24px;left:24px;right:24px;z-index:3;color:#fff}
.hero-frame-tag-eyebrow{font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-300);margin-bottom:4px}
.hero-frame-tag-title{font-family:'Sora',sans-serif;font-size:18px;font-weight:700;line-height:1.3;color:#fff}
.hero-waveform{position:absolute;bottom:-40px;left:-40px;right:-40px;height:120px;display:flex;align-items:flex-end;justify-content:space-between;gap:3px;opacity:.5;z-index:1;transform:rotate(-3deg)}
.hero-waveform-bar{flex:1;background:linear-gradient(180deg,var(--brand-300),var(--brand-700));border-radius:3px;animation:wave 1.4s ease-in-out infinite}
@keyframes wave{0%,100%{height:20%}50%{height:100%}}
.hero-floating-card{position:absolute;background:rgba(255,255,255,.95);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.4);padding:14px 18px;border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.18);display:flex;align-items:center;gap:12px;font-size:13px;color:var(--ink-900);font-weight:600;animation:float 3s ease-in-out infinite}
.hero-floating-card.fc-1{top:62%;right:-14%;animation-delay:0s;max-width:260px}
.hero-floating-card.fc-2{bottom:14%;left:-12%;animation-delay:1.5s;max-width:260px}
.hero-floating-ico{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand-500),var(--brand-700));display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;flex-shrink:0}
.hero-floating-card small{display:block;font-size:11px;color:var(--ink-500);font-weight:500;margin-top:2px}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}

.hero-scroll-hint{position:absolute;bottom:32px;left:50%;transform:translateX(-50%);color:rgba(255,255,255,.5);font-size:11px;letter-spacing:.2em;text-transform:uppercase;font-weight:600;display:flex;flex-direction:column;align-items:center;gap:8px;z-index:3}
.hero-scroll-hint::after{content:"";width:1px;height:36px;background:linear-gradient(180deg,rgba(255,255,255,.5),transparent);animation:scroll-hint 2s ease-in-out infinite}
@keyframes scroll-hint{0%,100%{transform:scaleY(.4);transform-origin:top}50%{transform:scaleY(1)}}

@media (max-width:980px){
  .hero{padding:120px 0 60px;min-height:auto}
  .hero-grid{grid-template-columns:1fr;gap:48px;text-align:center}
  .hero-actions,.hero-trust{justify-content:center}
  .hero-frame{transform:none;max-width:380px;margin:0 auto;aspect-ratio:1/1}
  /* v3.8.81 fix: specificity boost + !important per battere editor universale
     o stile inline che mantiene display:flex sulla floating card. */
  body.home .hero-floating-card.fc-1,
  body.home .hero-floating-card.fc-2,
  body.crml-home-takeover .hero-floating-card.fc-1,
  body.crml-home-takeover .hero-floating-card.fc-2,
  .hero-floating-card.fc-1,
  .hero-floating-card.fc-2{display:none !important;visibility:hidden !important}
}

/* ─── STORY (BENE CONFISCATO) ────────────────────────────── */
.story{background:var(--night-900);color:#fff;padding:120px 0;position:relative;overflow:hidden}
.story::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 100%,rgba(236,72,153,.1),transparent 60%);pointer-events:none}
.story-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-300);background:rgba(236,72,153,.1);padding:8px 18px;border-radius:999px;margin-bottom:20px;border:1px solid rgba(236,72,153,.25)}
.story h2{font-size:clamp(32px,5.5vw,64px);color:#fff;margin-bottom:24px;letter-spacing:-.03em;max-width:880px}
.story h2 em{font-style:italic;background:linear-gradient(135deg,var(--cream),var(--brand-300));-webkit-background-clip:text;background-clip:text;color:transparent}
.story-sub{font-size:18px;color:rgba(255,255,255,.7);max-width:680px;line-height:1.7;margin-bottom:64px}
.story-timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:64px}
.timeline-step{position:relative;padding:32px 24px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:20px;backdrop-filter:blur(10px);transition:all .35s var(--ease)}
.timeline-step:hover{transform:translateY(-6px);background:rgba(255,255,255,.07);border-color:rgba(236,72,153,.4)}
.timeline-year{font-family:'Sora',sans-serif;font-size:34px;font-weight:900;background:linear-gradient(135deg,var(--brand-300),var(--brand-500));-webkit-background-clip:text;background-clip:text;color:transparent;margin-bottom:8px;letter-spacing:-.03em}
.timeline-title{font-family:'Sora',sans-serif;font-size:17px;font-weight:700;color:#fff;margin-bottom:10px}
.timeline-desc{font-size:14px;color:rgba(255,255,255,.7);line-height:1.55}
.story-quote{padding:40px;background:linear-gradient(135deg,rgba(236,72,153,.12),rgba(245,158,11,.06));border:1px solid rgba(236,72,153,.25);border-radius:24px;font-family:'Sora',sans-serif;font-size:clamp(20px,2.5vw,28px);font-weight:700;color:#fff;line-height:1.4;letter-spacing:-.02em;position:relative;max-width:880px}
.story-quote::before{content:"\201C";position:absolute;top:-30px;left:30px;font-size:120px;color:var(--brand-500);opacity:.4;line-height:1}
.story-quote-author{margin-top:18px;font-family:'Inter',sans-serif;font-size:13px;font-weight:600;color:rgba(255,255,255,.6);letter-spacing:.04em}
.story-quote-author::before{content:"— "}

@media (max-width:880px){
  .story-timeline{grid-template-columns:1fr 1fr;gap:14px}
  .timeline-step{padding:24px 18px}
  .timeline-year{font-size:28px}
}
@media (max-width:520px){
  .story-timeline{grid-template-columns:1fr}
}

/* ─── MANIFESTO ──────────────────────────────────────────── */
.manifesto{padding:120px 0;background:var(--surface-soft)}
.manifesto-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
.manifesto-card{padding:36px 28px;background:var(--surface);border:1px solid var(--line);border-radius:22px;transition:all .35s var(--ease);position:relative;overflow:hidden}
.manifesto-card::before{content:"";position:absolute;top:0;left:0;width:100%;height:4px;background:linear-gradient(90deg,var(--brand-500),var(--brand-700));transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.manifesto-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:transparent}
.manifesto-card:hover::before{transform:scaleX(1)}
.manifesto-ico{width:56px;height:56px;border-radius:16px;background:linear-gradient(135deg,var(--brand-50),var(--brand-100));display:flex;align-items:center;justify-content:center;font-size:28px;margin-bottom:20px;border:1px solid var(--brand-100)}
.manifesto-title{font-family:'Sora',sans-serif;font-size:19px;font-weight:700;margin-bottom:10px;color:var(--ink-900)}
.manifesto-desc{font-size:14.5px;color:var(--ink-500);line-height:1.65}
@media (max-width:880px){.manifesto-grid{grid-template-columns:1fr 1fr;gap:16px}}
@media (max-width:520px){.manifesto-grid{grid-template-columns:1fr}}

/* ─── QUIZ ────────────────────────────────────────────────── */
.quiz{padding:120px 0;background:linear-gradient(135deg,var(--night-900) 0%,var(--bordeaux) 100%);color:#fff;position:relative;overflow:hidden}
.quiz::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 70% 50%,rgba(236,72,153,.18),transparent 50%);pointer-events:none}
.quiz-card{max-width:780px;margin:0 auto;background:rgba(255,255,255,.06);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.14);border-radius:32px;padding:48px;position:relative;z-index:2}
.quiz-eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--brand-300);margin-bottom:14px}
.quiz h2{font-family:'Sora',sans-serif;font-size:clamp(26px,4vw,42px);color:#fff;margin-bottom:14px;line-height:1.15}
.quiz-sub{color:rgba(255,255,255,.75);font-size:16px;margin-bottom:32px;max-width:540px}
.quiz-progress{height:6px;background:rgba(255,255,255,.1);border-radius:999px;overflow:hidden;margin-bottom:32px}
.quiz-progress-bar{height:100%;background:linear-gradient(90deg,var(--brand-500),var(--brand-300));border-radius:999px;width:0%;transition:width .5s var(--ease)}
.quiz-step{display:none}
.quiz-step.is-active{display:block;animation:quizFade .4s var(--ease)}
@keyframes quizFade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.quiz-question{font-family:'Sora',sans-serif;font-size:clamp(20px,2.4vw,26px);font-weight:700;color:#fff;margin-bottom:24px;line-height:1.3}
.quiz-options{display:grid;gap:12px;margin-bottom:24px}
.quiz-option{display:flex;align-items:center;gap:14px;padding:18px 22px;background:rgba(255,255,255,.06);border:1.5px solid rgba(255,255,255,.14);border-radius:16px;cursor:pointer;transition:all .2s var(--ease);color:#fff;text-align:left;width:100%;font-family:inherit;font-size:15.5px;font-weight:500}
.quiz-option:hover{background:rgba(255,255,255,.12);border-color:var(--brand-500);transform:translateX(4px)}
.quiz-option.is-selected{background:linear-gradient(135deg,rgba(236,72,153,.22),rgba(190,24,93,.16));border-color:var(--brand-500);box-shadow:0 0 0 4px rgba(236,72,153,.16)}
.quiz-option-emoji{font-size:24px;flex-shrink:0;line-height:1}
.quiz-actions{display:flex;justify-content:space-between;align-items:center;margin-top:24px;gap:12px;flex-wrap:wrap}
.quiz-step-num{font-size:13px;color:rgba(255,255,255,.5);font-weight:600}
.quiz-btn-back{background:transparent;color:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.2);padding:11px 22px;border-radius:11px;font-size:14px;font-weight:600;cursor:pointer;transition:all .15s var(--ease)}
.quiz-btn-back:hover{background:rgba(255,255,255,.08);color:#fff}
.quiz-btn-next{background:linear-gradient(135deg,var(--brand-500),var(--brand-700));color:#fff;padding:13px 28px;border-radius:11px;font-size:14.5px;font-weight:700;cursor:pointer;transition:all .15s var(--ease);box-shadow:var(--shadow-brand)}
.quiz-btn-next:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 18px 40px rgba(190,24,93,.5)}
.quiz-btn-next:disabled{opacity:.4;cursor:not-allowed}

/* Quiz result */
.quiz-result{display:none;text-align:center;animation:quizFade .5s var(--ease)}
.quiz-result.is-active{display:block}
.quiz-result-emoji{font-size:80px;margin-bottom:14px;line-height:1;display:inline-block;animation:bounce .6s var(--ease)}
@keyframes bounce{0%{transform:scale(.3)}50%{transform:scale(1.15)}100%{transform:scale(1)}}
.quiz-result-eyebrow{font-size:13px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--brand-300);margin-bottom:10px}
.quiz-result-name{font-family:'Sora',sans-serif;font-size:clamp(34px,5vw,52px);font-weight:900;color:#fff;margin-bottom:14px;letter-spacing:-.03em;background:linear-gradient(135deg,#fff,var(--brand-300));-webkit-background-clip:text;background-clip:text;color:transparent;display:inline-block}
.quiz-result-desc{font-size:16px;color:rgba(255,255,255,.82);max-width:520px;margin:0 auto 32px;line-height:1.65}
.quiz-result-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:18px}
.quiz-result-restart{font-size:13px;color:rgba(255,255,255,.5);text-decoration:underline;cursor:pointer;background:none;border:0;padding:0}
.quiz-result-restart:hover{color:#fff}

@media (max-width:680px){.quiz-card{padding:32px 22px;border-radius:24px}}

/* ─── CORSI GRID ─────────────────────────────────────────── */
.corsi{padding:120px 0;background:var(--surface)}
.corsi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
.corso-card{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:24px;overflow:hidden;transition:all .35s var(--ease);cursor:pointer}
.corso-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:transparent}
.corso-card-cover{height:200px;position:relative;display:flex;align-items:center;justify-content:center;font-size:80px;color:rgba(255,255,255,.85);overflow:hidden}
.corso-card-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 50%,rgba(0,0,0,.18))}
.corso-card[data-corso="pianoforte"] .corso-card-cover{background:linear-gradient(135deg,#1f1340,#581c47)}
.corso-card[data-corso="chitarra"] .corso-card-cover{background:linear-gradient(135deg,#831843,#be185d)}
.corso-card[data-corso="canto"] .corso-card-cover{background:linear-gradient(135deg,#9d174d,#ec4899)}
.corso-card[data-corso="batteria"] .corso-card-cover{background:linear-gradient(135deg,#0a0814,#1f1340)}
.corso-card[data-corso="percussioni"] .corso-card-cover{background:linear-gradient(135deg,#581c47,#9d174d)}
.corso-card[data-corso="propedeutica"] .corso-card-cover{background:linear-gradient(135deg,#f59e0b,#831843)}
.corso-listen-btn{position:absolute;top:14px;right:14px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s var(--ease);z-index:2;color:var(--brand-700);font-size:14px}
.corso-listen-btn:hover{transform:scale(1.1);background:#fff}
.corso-card-tag{position:absolute;top:14px;left:14px;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);padding:6px 12px;border-radius:8px;font-size:11px;font-weight:700;color:var(--brand-700);letter-spacing:.04em;text-transform:uppercase;z-index:2}
.corso-card-body{padding:28px 24px}
.corso-card-name{font-family:'Sora',sans-serif;font-size:22px;font-weight:800;margin-bottom:8px;color:var(--ink-900);letter-spacing:-.02em}
.corso-card-desc{font-size:14px;color:var(--ink-500);line-height:1.6;margin-bottom:18px}
.corso-card-meta{display:flex;gap:14px;font-size:13px;color:var(--ink-700);font-weight:500;padding-top:18px;border-top:1px solid var(--line)}
.corso-card-meta-item{display:flex;align-items:center;gap:6px}
.corso-card-meta-item span{color:var(--brand-700);font-weight:600}

@media (max-width:880px){.corsi-grid{grid-template-columns:1fr 1fr;gap:16px}}
@media (max-width:520px){.corsi-grid{grid-template-columns:1fr}}

/* ─── METODO ─────────────────────────────────────────────── */
.metodo{padding:120px 0;background:linear-gradient(180deg,var(--surface-soft) 0%,var(--brand-50) 100%)}
.metodo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:48px;counter-reset:step}
.metodo-step{position:relative;padding:36px 24px 28px;background:var(--surface);border:1px solid var(--line);border-radius:22px;counter-increment:step;text-align:left}
.metodo-step::before{content:counter(step,decimal-leading-zero);position:absolute;top:-18px;left:24px;font-family:'Sora',sans-serif;font-size:48px;font-weight:900;background:linear-gradient(135deg,var(--brand-700),var(--brand-500));-webkit-background-clip:text;background-clip:text;color:transparent;line-height:1;letter-spacing:-.04em}
.metodo-step-title{font-family:'Sora',sans-serif;font-size:18px;font-weight:700;margin-top:24px;margin-bottom:8px}
.metodo-step-desc{font-size:14px;color:var(--ink-500);line-height:1.6}
@media (max-width:880px){.metodo-grid{grid-template-columns:1fr 1fr;gap:14px}}
@media (max-width:520px){.metodo-grid{grid-template-columns:1fr}}

/* ─── NUMBERS COUNTER ────────────────────────────────────── */
.numbers{padding:80px 0;background:linear-gradient(135deg,var(--brand-700),var(--brand-900));color:#fff;position:relative;overflow:hidden}
.numbers::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 30% 50%,rgba(245,158,11,.1),transparent 60%);pointer-events:none}
.numbers-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;text-align:center;position:relative;z-index:2}
.number-item{padding:24px}
.number-val{font-family:'Sora',sans-serif;font-size:clamp(40px,5vw,64px);font-weight:900;color:#fff;line-height:1;margin-bottom:8px;letter-spacing:-.04em}
.number-val::after{content:"+";color:var(--brand-300);margin-left:2px}
.number-lbl{font-size:13px;color:rgba(255,255,255,.78);font-weight:500;letter-spacing:.02em}
@media (max-width:680px){.numbers-grid{grid-template-columns:1fr 1fr;gap:14px}.number-item{padding:14px}}
/* Quarto riquadro "Suona la tua prima nota": mini tastiera suonabile + invito alla prova */
.number-item{display:flex;flex-direction:column;justify-content:center;min-width:0}
.home-kb{position:relative;display:flex;gap:2px;width:100%;max-width:196px;height:64px;margin:0 auto 12px;padding:0 3px 3px;border-top:5px solid var(--brand-500);border-radius:4px 4px 9px 9px;background:#1f2937;box-shadow:0 8px 18px rgba(190,24,93,.18);touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.home-kb-w{flex:1;background:#fff;border-radius:0 0 6px 6px;box-shadow:inset 0 -5px 0 #eef2f7;cursor:pointer;transition:background .15s,transform .1s}
.home-kb-b{position:absolute;top:0;width:7%;height:56%;background:linear-gradient(180deg,#0f172a,#334155);border-radius:0 0 4px 4px;cursor:pointer;z-index:2;transition:background .15s}
.home-kb-b--1{left:9%}.home-kb-b--2{left:21.5%}.home-kb-b--4{left:46.5%}.home-kb-b--5{left:59%}.home-kb-b--6{left:71.5%}
.home-kb-w.is-on{background:linear-gradient(180deg,#fdf2f8,#fbcfe8);transform:translateY(1px);box-shadow:inset 0 -3px 0 #f9a8d4}
.home-kb-b.is-on{background:#ec4899}
.number-piano-title{font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:900;font-size:20px;line-height:1.15;letter-spacing:-.01em;color:#fff}
.number-piano-cta{display:inline-block;margin-top:8px;text-decoration:none}
.number-piano-cta span{white-space:nowrap;font-weight:800;font-size:13px;color:var(--brand-300);-webkit-text-fill-color:var(--brand-300);border-bottom:1.5px solid currentColor;padding-bottom:2px}
@media (max-width:540px){.home-kb{height:48px;gap:1px;border-top-width:4px;margin-bottom:9px}.number-piano-title{font-size:15px}.number-piano-cta span{font-size:11.5px}}
@media (max-width:380px){.number-piano-cta span{font-size:10.5px}}

/* ─── MAESTRI ────────────────────────────────────────────── */
.maestri{padding:120px 0;background:var(--surface)}
.maestri-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-top:48px}
.maestro-card{position:relative;border-radius:20px;overflow:hidden;cursor:pointer;transition:all .35s var(--ease);background:linear-gradient(135deg,var(--ink-900),var(--bordeaux));aspect-ratio:3/4;color:#fff}
.maestro-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.maestro-card::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.85) 100%);z-index:1}
.maestro-card-photo{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:120px;color:rgba(255,255,255,.06);font-family:'Sora',sans-serif;font-weight:900}
.maestro-card-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;filter:grayscale(1) contrast(1.05);transition:filter .5s var(--ease),transform .6s var(--ease)}
.maestro-card:hover .maestro-card-photo img,.maestro-card:focus-within .maestro-card-photo img{filter:none;transform:scale(1.03)}
@media (prefers-reduced-motion:reduce){.maestro-card-photo img{transition:none}.maestro-card:hover .maestro-card-photo img{transform:none}}
.maestro-card-info{position:absolute;bottom:0;left:0;right:0;padding:22px;z-index:2}
.maestro-card-name{font-family:'Sora',sans-serif;font-size:18px;font-weight:700;color:#fff;margin-bottom:4px}
.maestro-card-role{font-size:12.5px;color:var(--brand-300);font-weight:600;letter-spacing:.04em}
@media (max-width:880px){.maestri-grid{grid-template-columns:1fr 1fr;gap:14px}}

/* ─── MUSIC FOR CHANGE ───────────────────────────────────── */
.change{padding:120px 0;background:var(--ink-900);color:#fff;position:relative;overflow:hidden}
.change::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(245,158,11,.14),transparent 50%);pointer-events:none}
.change-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center;position:relative;z-index:2}
.change h2{font-size:clamp(30px,4.5vw,48px);color:#fff;margin-bottom:20px;line-height:1.2}
.change h2 em{font-style:italic;background:linear-gradient(135deg,var(--gold),var(--brand-300));-webkit-background-clip:text;background-clip:text;color:transparent}
.change-eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);background:rgba(245,158,11,.12);padding:8px 18px;border-radius:999px;margin-bottom:18px;border:1px solid rgba(245,158,11,.3)}
.change-desc{font-size:16px;color:rgba(255,255,255,.78);line-height:1.7;margin-bottom:32px}
.change-list{display:flex;flex-direction:column;gap:14px;margin-bottom:32px}
.change-list-item{display:flex;align-items:flex-start;gap:14px;padding:18px 22px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:14px}
.change-list-ico{width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,var(--gold),var(--brand-700));display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0;color:#fff}
.change-list-text strong{display:block;font-size:14.5px;font-weight:700;color:#fff;margin-bottom:3px}
.change-list-text span{font-size:13px;color:rgba(255,255,255,.65);line-height:1.5}
.change-stat{position:relative;padding:48px;background:linear-gradient(135deg,rgba(245,158,11,.1),rgba(236,72,153,.06));border:1px solid rgba(245,158,11,.2);border-radius:28px;text-align:center}
.change-stat-num{font-family:'Sora',sans-serif;font-size:88px;font-weight:900;background:linear-gradient(135deg,var(--gold),var(--brand-300));-webkit-background-clip:text;background-clip:text;color:transparent;letter-spacing:-.04em;line-height:1;margin-bottom:8px}
.change-stat-lbl{font-size:14px;color:rgba(255,255,255,.78);font-weight:500;max-width:280px;margin:0 auto;line-height:1.5}
@media (max-width:880px){.change-grid{grid-template-columns:1fr;gap:40px}.change-stat{padding:32px}}

/* ─── REVIEWS ─────────────────────────────────────────────── */
.reviews{padding:120px 0;background:var(--surface-soft)}
.reviews-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:48px}
.review-card{padding:32px 28px;background:var(--surface);border:1px solid var(--line);border-radius:22px;transition:all .35s var(--ease)}
.review-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.review-stars{color:var(--gold);font-size:18px;letter-spacing:2px;margin-bottom:14px}
.review-text{font-size:15px;color:var(--ink-700);line-height:1.7;margin-bottom:24px}
.review-author{display:flex;align-items:center;gap:14px;padding-top:20px;border-top:1px solid var(--line)}
.review-avatar{width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--brand-500),var(--brand-700));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:16px}
.review-author-name{font-weight:700;font-size:14.5px;color:var(--ink-900)}
.review-author-meta{font-size:12.5px;color:var(--ink-500);margin-top:2px}
.reviews-google{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:48px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:16px;max-width:480px;margin-left:auto;margin-right:auto}
.reviews-google-stars{font-size:22px;color:var(--gold);letter-spacing:3px}
.reviews-google-text strong{display:block;font-size:18px;color:var(--ink-900);font-weight:800}
.reviews-google-text small{font-size:13px;color:var(--ink-500)}
@media (max-width:880px){.reviews-grid{grid-template-columns:1fr;gap:16px}}

/* ─── CTA FINAL ──────────────────────────────────────────── */
.cta-final{padding:120px 0;background:linear-gradient(135deg,var(--night-900) 0%,var(--bordeaux) 50%,var(--brand-700) 100%);color:#fff;position:relative;overflow:hidden}
.cta-final::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 80%,rgba(245,158,11,.15),transparent 50%),radial-gradient(circle at 80% 20%,rgba(236,72,153,.18),transparent 50%);pointer-events:none}
.cta-final-inner{text-align:center;position:relative;z-index:2;max-width:780px;margin:0 auto}
.cta-final h2{font-size:clamp(32px,5vw,56px);color:#fff;margin-bottom:18px;letter-spacing:-.03em;line-height:1.15}
.cta-final h2 em{font-style:italic;background:linear-gradient(135deg,var(--cream),var(--brand-300));-webkit-background-clip:text;background-clip:text;color:transparent}
.cta-final-sub{font-size:18px;color:rgba(255,255,255,.78);max-width:560px;margin:0 auto 36px;line-height:1.65}
.cta-final-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:24px}
.cta-final-note{font-size:13px;color:rgba(255,255,255,.55);font-style:italic}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer{background:var(--ink-900);color:rgba(255,255,255,.7);padding:80px 0 32px}
.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.2fr;gap:48px;margin-bottom:48px}
.footer-col h4{font-family:'Sora',sans-serif;font-size:14px;font-weight:700;color:#fff;margin-bottom:18px;letter-spacing:.04em;text-transform:uppercase}
.footer-col ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.footer-col a{color:rgba(255,255,255,.7);font-size:14.5px;transition:color .15s var(--ease)}
.footer-col a:hover{color:var(--brand-300)}
.footer-brand p{font-size:14.5px;line-height:1.65;margin-top:14px;color:rgba(255,255,255,.6);max-width:320px}
.footer-social{display:flex;gap:10px;margin-top:20px}
.footer-social a{width:40px;height:40px;border-radius:11px;background:rgba(255,255,255,.06);display:flex;align-items:center;justify-content:center;color:#fff;font-size:18px;transition:all .15s var(--ease);border:1px solid rgba(255,255,255,.08)}
.footer-social a:hover{background:var(--brand-700);border-color:transparent;transform:translateY(-2px)}
.footer-bottom{padding-top:28px;border-top:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;font-size:13px;color:rgba(255,255,255,.5)}
@media (max-width:880px){.footer-grid{grid-template-columns:1fr 1fr;gap:32px}}
@media (max-width:520px){.footer-grid{grid-template-columns:1fr;gap:32px}.footer-bottom{flex-direction:column;text-align:center}}

/* ─── STICKY MOBILE CTA ──────────────────────────────────── */
.sticky-mobile{position:fixed;bottom:0;left:0;right:0;z-index:90;padding:14px 18px max(14px,env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(20px);border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(15,23,42,.06);display:none;justify-content:center}
.sticky-mobile a{width:100%;max-width:380px;justify-content:center}
@media (max-width:880px){.sticky-mobile{display:flex}body{padding-bottom:84px}}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal{opacity:0;transform:translateY(28px);transition:opacity .8s var(--ease),transform .8s var(--ease)}
.reveal.is-visible{opacity:1;transform:translateY(0)}
.reveal-d1{transition-delay:.1s}.reveal-d2{transition-delay:.2s}.reveal-d3{transition-delay:.3s}.reveal-d4{transition-delay:.4s}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  .reveal{opacity:1;transform:none}
}

/* iOS Safari fixes */
@supports (-webkit-touch-callout:none){
  .hero-frame{transform:none}
}

/* ─── Anti-Kubio link defaults su card cliccabili (corso-card + metodo-step) ─── */
.crml-home-v2-wrap a.corso-card,
.crml-home-v2-wrap a.metodo-step{text-decoration:none !important;color:inherit !important;-webkit-text-fill-color:inherit !important;display:block}
.crml-home-v2-wrap a.corso-card:hover,
.crml-home-v2-wrap a.corso-card:focus,
.crml-home-v2-wrap a.metodo-step:hover,
.crml-home-v2-wrap a.metodo-step:focus{text-decoration:none !important;color:inherit !important}
.crml-home-v2-wrap a.metodo-step{cursor:pointer;transition:all .35s var(--ease)}
.crml-home-v2-wrap a.metodo-step:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);border-color:var(--brand-300)}
.crml-home-v2-wrap a.metodo-step:hover::before{filter:brightness(1.1)}

/* Force-color titolo step (battaglia cascata Kubio a:blue per <a> wrapper) */
.crml-home-v2-wrap a.metodo-step .metodo-step-title{color:var(--ink-900) !important;-webkit-text-fill-color:var(--ink-900) !important;text-decoration:none !important}
.crml-home-v2-wrap a.metodo-step .metodo-step-desc{color:var(--ink-500) !important;-webkit-text-fill-color:var(--ink-500) !important}

/* Bottone CTA "PRENOTA" dentro step 01 */
.crml-home-v2-wrap .metodo-step-cta{
  display:inline-flex;align-items:center;gap:8px;
  margin-top:18px;padding:10px 22px;
  background:linear-gradient(135deg,var(--brand-700),var(--brand-500));
  color:#fff !important;-webkit-text-fill-color:#fff !important;
  font-family:'Sora',sans-serif;font-size:13px;font-weight:800;
  letter-spacing:.08em;text-transform:uppercase;
  border-radius:999px;
  box-shadow:0 6px 18px rgba(190,24,93,.32);
  transition:all .25s var(--ease);
  text-decoration:none !important;
}
.crml-home-v2-wrap .metodo-step-cta span{transition:transform .25s var(--ease);display:inline-block}
.crml-home-v2-wrap a.metodo-step:hover .metodo-step-cta{box-shadow:0 10px 26px rgba(190,24,93,.45);transform:translateY(-1px)}
.crml-home-v2-wrap a.metodo-step:hover .metodo-step-cta span{transform:translateX(4px)}

/* =================================================================
   Contrast hardening v3.7.272
   Override aggressivi (specificity 0,2,2 + !important) per battere
   sia Kubio link-blue cascade che inline `color` ereditato dal tema.
   Lavora sul BASE CSS (sempre attivo, indipendente dal light theme).
   ================================================================= */

/* ─── QUIZ ─── */
html body.crml-home-v2-wrap .quiz-card,
.crml-home-v2-wrap .quiz-card{background:rgba(255,255,255,.08) !important;backdrop-filter:blur(24px) saturate(160%) !important;border:1px solid rgba(255,255,255,.16) !important;box-shadow:0 32px 80px rgba(0,0,0,.35) !important}
html body.crml-home-v2-wrap .quiz h2,
.crml-home-v2-wrap .quiz h2{color:#fff !important;-webkit-text-fill-color:#fff !important;font-weight:900 !important;text-shadow:0 2px 18px rgba(236,72,153,.25)}
html body.crml-home-v2-wrap .quiz-eyebrow,
.crml-home-v2-wrap .quiz-eyebrow{color:#f9a8d4 !important;-webkit-text-fill-color:#f9a8d4 !important;font-weight:800 !important;letter-spacing:.18em}
html body.crml-home-v2-wrap .quiz-sub,
.crml-home-v2-wrap .quiz-sub{color:rgba(255,255,255,.85) !important;-webkit-text-fill-color:rgba(255,255,255,.85) !important;font-weight:500}
html body.crml-home-v2-wrap .quiz-question,
.crml-home-v2-wrap .quiz-question{color:#fff !important;-webkit-text-fill-color:#fff !important;font-weight:800 !important}
html body.crml-home-v2-wrap .quiz-step-num,
.crml-home-v2-wrap .quiz-step-num{color:rgba(255,255,255,.7) !important;-webkit-text-fill-color:rgba(255,255,255,.7) !important}

/* Risposte: KILL Kubio blue su <button>, ridipingi pillole vetro brand */
html body.crml-home-v2-wrap button.quiz-option,
.crml-home-v2-wrap button.quiz-option{
  background:rgba(255,255,255,.08) !important;
  border:1.5px solid rgba(255,255,255,.18) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:600 !important;
  text-decoration:none !important;
  text-shadow:none !important;
  font-family:inherit !important;
  cursor:pointer;
}
html body.crml-home-v2-wrap button.quiz-option:hover,
.crml-home-v2-wrap button.quiz-option:hover{
  background:rgba(236,72,153,.22) !important;
  border-color:#ec4899 !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  transform:translateX(4px);
}
html body.crml-home-v2-wrap button.quiz-option.is-selected,
.crml-home-v2-wrap button.quiz-option.is-selected{
  background:linear-gradient(135deg,rgba(236,72,153,.32),rgba(190,24,93,.22)) !important;
  border-color:#ec4899 !important;
  box-shadow:0 0 0 4px rgba(236,72,153,.22),0 8px 32px rgba(236,72,153,.30) !important;
}

/* Bottone Avanti / Indietro: visibile + brand */
html body.crml-home-v2-wrap button.quiz-btn-next,
.crml-home-v2-wrap button.quiz-btn-next{
  background:linear-gradient(135deg,#ec4899,#be185d) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  border:none !important;
  font-weight:800 !important;
  padding:14px 30px !important;
  border-radius:12px !important;
  box-shadow:0 8px 28px rgba(236,72,153,.40) !important;
  cursor:pointer;
}
html body.crml-home-v2-wrap button.quiz-btn-next:disabled,
.crml-home-v2-wrap button.quiz-btn-next:disabled{
  opacity:.45 !important;
  box-shadow:none !important;
  cursor:not-allowed;
}
html body.crml-home-v2-wrap button.quiz-btn-back,
.crml-home-v2-wrap button.quiz-btn-back{
  background:rgba(255,255,255,.08) !important;
  color:rgba(255,255,255,.85) !important;
  -webkit-text-fill-color:rgba(255,255,255,.85) !important;
  border:1px solid rgba(255,255,255,.25) !important;
  font-weight:600 !important;
}

/* ─── CTA FINAL ─── */
html body.crml-home-v2-wrap .cta-final,
.crml-home-v2-wrap .cta-final{
  background:linear-gradient(135deg,#1a0f2e 0%,#3d1538 40%,#831843 100%) !important;
}
html body.crml-home-v2-wrap .cta-final h1,
html body.crml-home-v2-wrap .cta-final h2,
html body.crml-home-v2-wrap .cta-final h3,
.crml-home-v2-wrap .cta-final h1,
.crml-home-v2-wrap .cta-final h2,
.crml-home-v2-wrap .cta-final h3{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-weight:900 !important;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}
html body.crml-home-v2-wrap .cta-final h2 em,
.crml-home-v2-wrap .cta-final h2 em{
  background:linear-gradient(135deg,#fef3c7,#f9a8d4) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}
html body.crml-home-v2-wrap .cta-final p,
html body.crml-home-v2-wrap .cta-final-sub,
.crml-home-v2-wrap .cta-final p,
.crml-home-v2-wrap .cta-final-sub{
  color:rgba(255,255,255,.92) !important;
  -webkit-text-fill-color:rgba(255,255,255,.92) !important;
  font-weight:500 !important;
}
html body.crml-home-v2-wrap .cta-final-note,
.crml-home-v2-wrap .cta-final-note{
  color:rgba(255,255,255,.75) !important;
  -webkit-text-fill-color:rgba(255,255,255,.75) !important;
}

/* CTA buttons - kill Kubio blue */
html body.crml-home-v2-wrap .cta-final a.btn,
html body.crml-home-v2-wrap .cta-final a.btn-hero-pri,
.crml-home-v2-wrap .cta-final a.btn-hero-pri{
  background:linear-gradient(135deg,#ec4899,#be185d) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-decoration:none !important;
  font-weight:800 !important;
  border:none !important;
  box-shadow:0 14px 36px rgba(236,72,153,.55) !important;
  text-shadow:none !important;
}
html body.crml-home-v2-wrap .cta-final a.btn-hero-pri:hover,
.crml-home-v2-wrap .cta-final a.btn-hero-pri:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 50px rgba(236,72,153,.70) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}
html body.crml-home-v2-wrap .cta-final a.btn-hero-ghost,
.crml-home-v2-wrap .cta-final a.btn-hero-ghost{
  background:rgba(255,255,255,.10) !important;
  backdrop-filter:blur(12px) !important;
  border:1.5px solid rgba(255,255,255,.40) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  text-decoration:none !important;
  font-weight:700 !important;
  text-shadow:none !important;
}
html body.crml-home-v2-wrap .cta-final a.btn-hero-ghost:hover,
.crml-home-v2-wrap .cta-final a.btn-hero-ghost:hover{
  background:rgba(255,255,255,.20) !important;
  border-color:rgba(255,255,255,.65) !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  transform:translateY(-2px);
}

/* ─── STORY · "Editorial" treatment v3.7.274 ───────────────────────
   Magazine-style: fondo bianco puro, font Fraunces serif (titolo+anni+
   quote), barrato rosa su "Era un covo", "un'aula" gradient brand→ambra,
   timeline in 4 colonne con border-line (no card box-shadow), quote come
   block magazine con "C" decorativo gigante. Specificity boost
   `html body.crml-home-v2-wrap` (0,2,2) + !important per battere Kubio.
   ================================================================= */
html body.crml-home-v2-wrap .story,
.crml-home-v2-wrap .story{
  background:#fff !important;
  color:#0a0814 !important;
  padding:140px 0 120px !important;
}
html body.crml-home-v2-wrap .story::before,
.crml-home-v2-wrap .story::before{display:none !important}

html body.crml-home-v2-wrap .story-rule,
.crml-home-v2-wrap .story-rule{
  width:60px;height:3px;
  background:linear-gradient(90deg,#be185d,#f59e0b);
  margin-bottom:32px;
  border-radius:999px;
}

html body.crml-home-v2-wrap .story-eyebrow,
.crml-home-v2-wrap .story-eyebrow{
  display:inline-block !important;
  background:transparent !important;
  border:none !important;
  padding:0 !important;
  margin-bottom:28px !important;
  color:#be185d !important;
  -webkit-text-fill-color:#be185d !important;
  font-family:'Inter',sans-serif !important;
  font-size:12px !important;
  font-weight:700 !important;
  letter-spacing:.22em !important;
  text-transform:uppercase !important;
  box-shadow:none !important;
}

/* Titolo editorial Fraunces serif */
html body.crml-home-v2-wrap .story h2,
.crml-home-v2-wrap .story h2{
  font-family:'Fraunces',Georgia,serif !important;
  font-size:clamp(40px,6vw,84px) !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:-.04em !important;
  color:#0a0814 !important;
  -webkit-text-fill-color:#0a0814 !important;
  margin-bottom:32px !important;
  max-width:900px !important;
  text-shadow:none !important;
}
html body.crml-home-v2-wrap .story h2 .crossed,
.crml-home-v2-wrap .story h2 .crossed{
  text-decoration:line-through !important;
  text-decoration-color:#be185d !important;
  text-decoration-thickness:6px !important;
  font-style:italic !important;
  color:#64748b !important;
  -webkit-text-fill-color:#64748b !important;
  font-weight:400 !important;
}
html body.crml-home-v2-wrap .story h2 .now,
.crml-home-v2-wrap .story h2 .now{
  display:block !important;
  margin-top:8px !important;
}
html body.crml-home-v2-wrap .story h2 .accent,
.crml-home-v2-wrap .story h2 .accent{
  background:linear-gradient(135deg,#be185d 0%,#ec4899 50%,#f59e0b 100%) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
  font-style:italic !important;
}

/* Sub italic con bordo rosa pastello */
html body.crml-home-v2-wrap .story-sub,
.crml-home-v2-wrap .story-sub{
  font-family:'Fraunces',Georgia,serif !important;
  font-style:italic !important;
  font-size:22px !important;
  line-height:1.5 !important;
  color:#475569 !important;
  -webkit-text-fill-color:#475569 !important;
  max-width:680px !important;
  margin-bottom:80px !important;
  border-left:4px solid #fce7f3 !important;
  padding-left:24px !important;
  font-weight:400 !important;
}

/* Timeline come testata di giornale: 4 colonne, border-line, no card */
html body.crml-home-v2-wrap .story-timeline,
.crml-home-v2-wrap .story-timeline{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:0 !important;
  border-top:1px solid #e2e8f0 !important;
  border-bottom:1px solid #e2e8f0 !important;
  margin-bottom:80px !important;
}
html body.crml-home-v2-wrap .timeline-step,
.crml-home-v2-wrap .timeline-step{
  padding:48px 32px !important;
  border-right:1px solid #e2e8f0 !important;
  border-radius:0 !important;
  background:transparent !important;
  backdrop-filter:none !important;
  box-shadow:none !important;
  position:relative !important;
  transition:background .3s ease !important;
}
html body.crml-home-v2-wrap .story-timeline .timeline-step:last-child,
.crml-home-v2-wrap .story-timeline .timeline-step:last-child{border-right:none !important}
html body.crml-home-v2-wrap .timeline-step:hover,
.crml-home-v2-wrap .timeline-step:hover{
  background:linear-gradient(180deg,#fff 0%,#fdf2f8 100%) !important;
  transform:none !important;
  border-color:#e2e8f0 !important;
  box-shadow:none !important;
}
html body.crml-home-v2-wrap .timeline-step:hover .timeline-year,
.crml-home-v2-wrap .timeline-step:hover .timeline-year{transform:translateY(-4px)}

/* Anni serif Fraunces nero — solo "Oggi" in gradient brand */
html body.crml-home-v2-wrap .timeline-year,
.crml-home-v2-wrap .timeline-year{
  font-family:'Fraunces',Georgia,serif !important;
  font-size:56px !important;
  font-weight:900 !important;
  line-height:1 !important;
  letter-spacing:-.04em !important;
  color:#0a0814 !important;
  -webkit-text-fill-color:#0a0814 !important;
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  margin-bottom:8px !important;
  display:inline-block !important;
  transition:transform .35s cubic-bezier(.4,0,.2,1) !important;
}
/* "Oggi" è 4° child → gradient brand */
html body.crml-home-v2-wrap .story-timeline .timeline-step:nth-child(4) .timeline-year,
.crml-home-v2-wrap .story-timeline .timeline-step:nth-child(4) .timeline-year{
  background:linear-gradient(135deg,#be185d,#ec4899,#f59e0b) !important;
  -webkit-background-clip:text !important;
  background-clip:text !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}

/* Marker rosso 32×3 sotto anno (via ::after sul timeline-year) */
html body.crml-home-v2-wrap .timeline-step .timeline-year::after,
.crml-home-v2-wrap .timeline-step .timeline-year::after{
  content:"";
  display:block;
  width:32px;
  height:3px;
  background:#be185d;
  margin:12px 0 18px;
}

html body.crml-home-v2-wrap .timeline-title,
.crml-home-v2-wrap .timeline-title{
  font-family:'Inter',sans-serif !important;
  font-size:13px !important;
  font-weight:800 !important;
  letter-spacing:.18em !important;
  text-transform:uppercase !important;
  color:#be185d !important;
  -webkit-text-fill-color:#be185d !important;
  margin-bottom:12px !important;
}
html body.crml-home-v2-wrap .timeline-desc,
.crml-home-v2-wrap .timeline-desc{
  font-family:'Inter',sans-serif !important;
  font-size:15px !important;
  line-height:1.65 !important;
  color:#334155 !important;
  -webkit-text-fill-color:#334155 !important;
}

/* Quote magazine block con "C" decorativo gigante */
html body.crml-home-v2-wrap .story-quote,
.crml-home-v2-wrap .story-quote{
  position:relative !important;
  padding:64px 80px 64px 100px !important;
  background:#fdf2f8 !important;
  border-radius:0 !important;
  border:none !important;
  border-left:6px solid #be185d !important;
  max-width:920px !important;
  margin:0 auto !important;
  font-family:'Fraunces',Georgia,serif !important;
  font-style:italic !important;
  font-size:clamp(22px,2.6vw,30px) !important;
  font-weight:700 !important;
  line-height:1.4 !important;
  color:#0a0814 !important;
  -webkit-text-fill-color:#0a0814 !important;
  letter-spacing:-.01em !important;
  box-shadow:none !important;
}
html body.crml-home-v2-wrap .story-quote::before,
.crml-home-v2-wrap .story-quote::before{
  content:"\201C" !important;
  position:absolute !important;
  top:8px !important;
  left:32px !important;
  font-family:'Fraunces',Georgia,serif !important;
  font-size:160px !important;
  font-weight:900 !important;
  line-height:1 !important;
  color:#be185d !important;
  -webkit-text-fill-color:#be185d !important;
  opacity:.18 !important;
}
html body.crml-home-v2-wrap .story-quote-author,
.crml-home-v2-wrap .story-quote-author{
  display:block !important;
  margin-top:24px !important;
  font-family:'Inter',sans-serif !important;
  font-style:normal !important;
  font-size:13px !important;
  font-weight:700 !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
  color:#be185d !important;
  -webkit-text-fill-color:#be185d !important;
}

@media (max-width:980px){
  html body.crml-home-v2-wrap .story-timeline,
  .crml-home-v2-wrap .story-timeline{grid-template-columns:repeat(2,1fr) !important}
  html body.crml-home-v2-wrap .story-timeline .timeline-step:nth-child(2),
  .crml-home-v2-wrap .story-timeline .timeline-step:nth-child(2){border-right:none !important}
  html body.crml-home-v2-wrap .story-timeline .timeline-step:nth-child(1),
  html body.crml-home-v2-wrap .story-timeline .timeline-step:nth-child(2),
  .crml-home-v2-wrap .story-timeline .timeline-step:nth-child(1),
  .crml-home-v2-wrap .story-timeline .timeline-step:nth-child(2){border-bottom:1px solid #e2e8f0 !important}
}
@media (max-width:560px){
  html body.crml-home-v2-wrap .story,
  .crml-home-v2-wrap .story{padding:80px 0 60px !important}
  html body.crml-home-v2-wrap .story-timeline,
  .crml-home-v2-wrap .story-timeline{grid-template-columns:1fr !important}
  html body.crml-home-v2-wrap .timeline-step,
  .crml-home-v2-wrap .timeline-step{border-right:none !important;border-bottom:1px solid #e2e8f0 !important;padding:32px 24px !important}
  html body.crml-home-v2-wrap .story-timeline .timeline-step:last-child,
  .crml-home-v2-wrap .story-timeline .timeline-step:last-child{border-bottom:none !important}
  html body.crml-home-v2-wrap .story-quote,
  .crml-home-v2-wrap .story-quote{padding:48px 28px 40px 36px !important}
  html body.crml-home-v2-wrap .story-quote::before,
  .crml-home-v2-wrap .story-quote::before{font-size:100px !important;left:14px !important;top:0 !important}
}

/* ============================================================
   v3.14.89 — WAVE 3 MOBILE CSS ext (home-v2) scoped 360/375/390/768
   ============================================================ */

/* MID-PHONE 381-410 — iPhone 12/13/14/15 + Pixel 6+ */
@media (max-width:410px) and (min-width:381px){
  .crml-home-v2-wrap .hero{padding:64px 18px 56px}
  .crml-home-v2-wrap .hero-title{font-size:38px;line-height:1.08}
  .crml-home-v2-wrap .hero-sub{font-size:15px;line-height:1.5}
  .crml-home-v2-wrap .sticky-mobile{padding:10px 12px;gap:8px}
  .crml-home-v2-wrap .corsi-card,
  .crml-home-v2-wrap .corso-card{padding:18px 16px}
  .crml-home-v2-wrap .change-stat{padding:24px 20px}
  .crml-home-v2-wrap .change-stat-num{font-size:44px}
  .crml-home-v2-wrap .review-card{padding:20px 18px}
  .crml-home-v2-wrap .quiz-card{padding:28px 20px;border-radius:22px}
  .crml-home-v2-wrap .numbers-grid{gap:10px}
  .crml-home-v2-wrap .number-item{padding:12px 10px}
}

/* ULTRA-NARROW 360 — Galaxy S20/S21, Pixel 4/5 */
@media (max-width:360px){
  .crml-home-v2-wrap .hero{padding:52px 14px 48px}
  .crml-home-v2-wrap .hero-title{font-size:32px;line-height:1.1}
  .crml-home-v2-wrap .hero-sub{font-size:14px;line-height:1.5}
  .crml-home-v2-wrap .hero-cta-row{gap:8px;flex-direction:column}
  .crml-home-v2-wrap .hero-cta,
  .crml-home-v2-wrap .hero-cta-secondary{width:100%;min-height:44px;padding:12px 16px;justify-content:center}
  .crml-home-v2-wrap .sticky-mobile{padding:8px 10px;gap:6px;height:auto;min-height:64px}
  .crml-home-v2-wrap .sticky-mobile a,
  .crml-home-v2-wrap .sticky-mobile button{min-height:44px;font-size:13px;padding:8px 10px}
  .crml-home-v2-wrap body{padding-bottom:78px}
  .crml-home-v2-wrap .manifesto-card{padding:18px 14px}
  .crml-home-v2-wrap .manifesto-title{font-size:18px}
  .crml-home-v2-wrap .manifesto-desc{font-size:13.5px;line-height:1.5}
  .crml-home-v2-wrap .corsi-card,
  .crml-home-v2-wrap .corso-card{padding:16px 14px;border-radius:18px}
  .crml-home-v2-wrap .corso-title{font-size:18px}
  .crml-home-v2-wrap .corso-sub{font-size:13px}
  .crml-home-v2-wrap .corso-price{font-size:16px}
  .crml-home-v2-wrap .change-grid{gap:28px}
  .crml-home-v2-wrap .change-stat{padding:22px 16px}
  .crml-home-v2-wrap .change-stat-num{font-size:38px;line-height:1.05}
  .crml-home-v2-wrap .change-stat-label{font-size:13px}
  .crml-home-v2-wrap .maestri-card{padding:16px 12px}
  .crml-home-v2-wrap .review-card{padding:18px 14px}
  .crml-home-v2-wrap .review-text{font-size:13.5px;line-height:1.5}
  .crml-home-v2-wrap .review-author{font-size:13px}
  .crml-home-v2-wrap .quiz-card{padding:24px 16px;border-radius:18px}
  .crml-home-v2-wrap .quiz-title{font-size:19px;line-height:1.2}
  .crml-home-v2-wrap .quiz-sub{font-size:13.5px}
  .crml-home-v2-wrap .numbers-grid{grid-template-columns:1fr 1fr;gap:8px}
  .crml-home-v2-wrap .number-item{padding:10px 8px}
  .crml-home-v2-wrap .number-value{font-size:24px}
  .crml-home-v2-wrap .number-label{font-size:11.5px}
  .crml-home-v2-wrap .footer-grid{padding:32px 16px;gap:24px}
  .crml-home-v2-wrap .footer-col h4{font-size:14px}
  .crml-home-v2-wrap .footer-col a{font-size:13px;padding:3px 0}
  .crml-home-v2-wrap .story{padding:64px 0 48px !important}
  .crml-home-v2-wrap .timeline-step{padding:24px 18px !important}
  .crml-home-v2-wrap .story-quote{padding:36px 22px 30px 28px !important}
  .crml-home-v2-wrap .story-quote::before{font-size:80px !important;left:10px !important}
}

/* TABLET 768 polish (541-768) — iPad portrait */
@media (max-width:768px) and (min-width:541px){
  .crml-home-v2-wrap .hero-cta,
  .crml-home-v2-wrap .hero-cta-secondary,
  .crml-home-v2-wrap .corso-cta,
  .crml-home-v2-wrap .quiz-cta{min-height:44px}
  .crml-home-v2-wrap .reviews-grid{grid-template-columns:1fr 1fr;gap:18px}
  .crml-home-v2-wrap .change-grid{grid-template-columns:1fr 1fr;gap:32px}
}

/* ─── 635a: MENU DA TELEFONO RIORDINATO ─────────────────────
   In cima "Accedi al portale" e "Lezione di prova gratuita", poi
   La scuola / Corsi / Eventi che si aprono al tocco (uno alla volta,
   home-v2.js) e le voci semplici. Pannello bianco a tutto schermo.
   Sopra al pannello si accumulavano tre stili (cassetto chiaro qui
   sopra, "command center" scuro inline in class-crml-public-home.php,
   pezze 566a): questo blocco li batte tutti con #siteHeader + html.
   Stesso disegno per le pagine interne: blocco 635a in
   assets/public/universal-header.css. Se cambi uno, cambia anche l'altro. */
.nav-main .crml-nav-head,
.nav-main .crml-nav-trial,
.nav-main .crml-nav-all,
.nav-portal .nav-portal-m{display:none}

@media (max-width:980px){
  html body.crml-home-takeover #siteHeader .nav-main.is-open{
    left:0 !important; right:0 !important; top:0 !important; bottom:0 !important;
    width:100% !important; max-width:100% !important;
    background:#fff !important; background-image:none !important;
    padding:0 20px calc(28px + env(safe-area-inset-bottom)) !important;
    box-shadow:none !important; border:0 !important; border-radius:0 !important;
    justify-content:flex-start !important;
    color:var(--ink-900) !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open::before,
  html body.crml-home-takeover #siteHeader .nav-main.is-open::after{display:none !important}
  /* Altrove sui link della home e forzato -webkit-text-fill-color grigio, che vince
     su color: qui il riempimento segue sempre il colore scelto sotto */
  html body.crml-home-takeover #siteHeader .nav-main.is-open a,
  html body.crml-home-takeover #siteHeader .nav-main.is-open a *,
  html body.crml-home-takeover #siteHeader .nav-main.is-open a::after{-webkit-text-fill-color:currentColor !important}
  html body.crml-home-takeover #siteHeader .nav-main.is-open > .nav-home,
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-uh-num{display:none !important}

  /* Intestazione: la X del pulsante menu resta sopra, a destra */
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-head{
    order:-3; display:flex; align-items:center;
    min-height:72px; margin:0 -20px 14px; padding:0 20px;
    border-bottom:1px solid var(--line);
    font-family:'Sora','Inter',sans-serif; font-size:17px; font-weight:700; color:var(--ink-900);
  }

  /* Accedi al portale: primo pulsante, pieno */
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-portal{
    order:-2; position:relative;
    display:flex !important; flex-direction:column; align-items:flex-start; justify-content:center;
    width:100% !important; min-height:64px !important; margin:0 !important;
    padding:14px 52px 14px 18px !important;
    border:0 !important; border-radius:14px !important;
    background:var(--brand-700) !important; background-image:none !important;
    box-shadow:none !important; color:#fff !important; text-align:left !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-portal::after{
    content:"\2192"; position:absolute; right:20px; top:50%; transform:translateY(-50%);
    font-size:20px; line-height:1; color:#fff;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-portal:active{background:var(--brand-800) !important}
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-portal .nav-portal-d{display:none}
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-portal .nav-portal-m{
    display:block; font-family:'Inter',sans-serif; font-size:17px; font-weight:700; line-height:1.25; color:#fff;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-portal .nav-portal-m small{
    display:block; margin-top:2px; font-size:13px; font-weight:500; color:#fbcfe8;
  }

  /* Lezione di prova: secondo pulsante, contorno oro */
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-trial{
    order:-1;
    display:flex !important; align-items:center; justify-content:center;
    width:100% !important; min-height:50px !important; margin:10px 0 14px !important;
    padding:12px 16px !important;
    border:1.5px solid var(--gold) !important; border-radius:14px !important;
    background:#fffbeb !important; color:#92400e !important;
    font-family:'Inter',sans-serif; font-size:15.5px !important; font-weight:700 !important;
  }

  /* Voci principali (portale e Home esclusi: hanno le loro regole sopra) */
  html body.crml-home-takeover #siteHeader .nav-main.is-open > .nav-main-link:not(.nav-portal):not(.nav-home),
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-main-item > .nav-main-link{
    display:flex !important; align-items:center; justify-content:space-between; gap:12px;
    width:100% !important; min-height:56px !important; margin:0 !important;
    padding:14px 4px !important;
    border:0 !important; border-bottom:1px solid var(--line) !important; border-radius:0 !important;
    background:transparent !important;
    font-family:'Inter',sans-serif !important; font-size:17px !important; font-weight:600 !important;
    letter-spacing:0 !important; line-height:1.25 !important; text-transform:none !important;
    color:var(--ink-900) !important;
    pointer-events:auto !important; cursor:pointer !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open > .nav-main-link:not(.nav-portal):active,
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-main-item > .nav-main-link:active{color:var(--brand-700) !important}
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-main-item{
    display:flex !important; flex-direction:column !important; width:100% !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-arrow{
    display:inline-block !important; flex-shrink:0;
    font-size:15px; line-height:1; color:var(--brand-700); transition:transform .2s var(--ease);
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-main-item.is-expanded > .nav-main-link{
    color:var(--brand-700) !important; border-bottom-color:transparent !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-main-item.is-expanded .nav-arrow{transform:rotate(180deg)}

  /* Sottovoci: chiuse finche non si tocca la voce padre, in colonna */
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown{display:none !important}
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-main-item.is-expanded > .nav-dropdown{
    display:flex !important; flex-direction:column !important; flex-wrap:nowrap !important; gap:0 !important;
    position:static !important; transform:none !important; opacity:1 !important; visibility:visible !important;
    width:100% !important; min-width:0 !important; margin:0 !important;
    padding:0 0 10px !important;
    border:0 !important; border-bottom:1px solid var(--line) !important; border-radius:0 !important;
    background:transparent !important; box-shadow:none !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown a,
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown a.nav-dropdown-sub{
    display:flex !important; align-items:center;
    width:100% !important; min-height:44px !important; margin:0 !important;
    padding:10px 14px !important;
    border:0 !important; border-radius:10px !important; background:transparent !important;
    font-family:'Inter',sans-serif !important; font-size:15.5px !important; font-weight:500 !important;
    line-height:1.3 !important; color:var(--ink-700) !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown a:hover,
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown a:active{
    background:#fdf2f8 !important; color:var(--brand-700) !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown a.crml-nav-all{
    font-weight:700 !important; color:var(--brand-700) !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown .nav-dropdown-group{
    display:flex !important; flex-direction:column !important; width:100% !important;
    margin:0 !important; padding:0 !important; border:0 !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown .nav-dropdown-label,
  html body.crml-home-takeover #siteHeader .nav-main.is-open .nav-dropdown a.nav-dropdown-label{
    display:block !important; min-height:0 !important;
    padding:12px 14px 4px !important;
    font-size:11px !important; font-weight:800 !important; letter-spacing:.12em !important;
    text-transform:uppercase !important; color:var(--ink-500) !important; background:none !important;
  }

  /* Icona menu: la disegnano solo le 3 barre span (home-v2.js), scure sia chiusa
     (tre righe) sia aperta (X). Prima la X sovrapponeva due sistemi e una barra
     restava bianca su bianco ("/"). Le barre span sono trasparenti di base: senza
     il colore qui sotto, nascosti gli pseudo-elementi, l'icona spariva (635a). */
  html body.crml-home-takeover #siteHeader .menu-toggle:has(.crml-uh-bar)::before,
  html body.crml-home-takeover #siteHeader .menu-toggle:has(.crml-uh-bar)::after{display:none !important}
  html body.crml-home-takeover #siteHeader .menu-toggle .crml-uh-bar{background:var(--ink-900) !important}
  /* La X resta ferma mentre il menu scorre: fondo bianco per non finire sopra il testo */
  html body.crml-home-takeover #siteHeader .menu-toggle.is-open{
    background:#fff !important; border-radius:12px !important; box-shadow:0 2px 10px rgba(15,23,42,.12) !important;
  }

  /* Banda "Serve aiuto?" in fondo al menu (WhatsApp, Chiama, Come arrivare).
     Scorre con le voci: prima era fissata al bordo basso e sul telefono vero
     restava mezza nascosta sotto la barra del browser. Il pannello e alto quanto
     lo schermo VISIBILE (100dvh; 100vh solo per browser vecchi). NON height:auto:
     qui il pannello sta dentro l'header, che ha transform (si nasconde scorrendo),
     e "fixed" si misura sull'header -> pannello alto 68px. */
  html body.crml-home-takeover #siteHeader .nav-main.is-open{
    padding-bottom:0 !important; height:100vh !important; height:100dvh !important; max-height:none !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help{
    order:3; display:block; position:static;
    margin:auto -20px 0 !important; padding:20px 20px calc(28px + env(safe-area-inset-bottom)) !important;
    background:#f0fdf4; border-top:1px solid #bbf7d0;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help-t{
    margin:0 0 2px; font-family:'Sora','Inter',sans-serif; font-size:17px; font-weight:700; color:#14532d;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help-s{
    margin:0 0 14px; font-family:'Inter',sans-serif; font-size:13.5px; line-height:1.4; color:#166534;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help-row{
    display:grid; grid-template-columns:1fr 1fr; gap:10px;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help a{
    display:flex !important; flex-direction:row !important;
    align-items:center !important; justify-content:center !important; gap:8px;
    width:auto !important; min-width:0 !important; min-height:50px !important; margin:0 !important;
    padding:12px 10px !important; box-sizing:border-box;
    border:1px solid #bbf7d0 !important; border-radius:14px !important; background:#fff !important;
    font-family:'Inter',sans-serif !important; font-size:14.5px !important; font-weight:600 !important;
    line-height:1.2 !important; text-align:center !important; color:var(--ink-900) !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help a svg{flex-shrink:0; width:21px; height:21px; stroke:var(--brand-700)}
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help a.is-wa{
    grid-column:1 / -1; min-height:56px !important;
    background:#16a34a !important; border-color:#16a34a !important; color:#fff !important;
    font-size:16.5px !important; font-weight:700 !important;
  }
  html body.crml-home-takeover #siteHeader .nav-main.is-open .crml-nav-help a.is-wa svg{width:24px; height:24px; stroke:#fff}
}
.nav-main .crml-nav-help{display:none}
