/* ==========================================================================
   Crypto Swag Intel — Landing promozionale
   Stesso linguaggio visivo della dashboard: fondo carbone #0b0f0f, verde
   acqua #0d9488 / #2dd4bf, lime d'appoggio #a3e635, verde di stato #10b981,
   Outfit + JetBrains Mono, bordi rgba(255,255,255,.07).
   I colori stanno TUTTI nel blocco :root qui sotto: cambiarli li' cambia la
   vetrina intera, e non c'e' nessun valore sparso nelle regole.
   Nessuna dipendenza: solo questo foglio, i font Google e due script vanilla.
   ========================================================================== */

:root {
  /* Il fondo scende, i riquadri salgono: e' lo stacco che mancava.
     Il carbone e i riquadri partivano quasi dallo stesso tono e la pagina si
     leggeva come una superficie sola — con i due veli verdi a uniformare
     ancora di piu'. Ora fra il fondo e una scheda ci sono sei punti di
     luminosita', le schede sono opache invece che velate (una scheda
     trasparente si tinge di quello che ha sotto, ed era proprio il problema)
     e i bordi hanno un filo di contrasto in piu'. */
  --bg-dark: #070a0a;
  --bg-darker: #040606;
  --bg-card: #131b1b;
  --bg-card-solid: #161f1f;
  --bg-inset: rgba(255, 255, 255, 0.05);
  --border-color: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.17);

  --primary: #0d9488;
  --primary-rgb: 13, 148, 136;
  --primary-soft: rgba(var(--primary-rgb), 0.16);
  --primary-hover: #2dd4bf;
  --primary-hover-rgb: 45, 212, 191;
  --cyan: #a3e635;              /* il lime d'appoggio: vedi nota in cima */
  --cyan-rgb: 163, 230, 53;
  --cyan-soft: rgba(var(--cyan-rgb), 0.14);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.14);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --yellow: #eab308;
  --yellow-soft: rgba(234, 179, 8, 0.14);
  --orange: #f59e0b;

  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --font-sans: 'Outfit', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  --nav-h: 66px;
  --tk-h: 30px;          /* altezza delle due bande fisse */
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--tk-h) + var(--nav-h) + 12px);
  /* ---------- Scorrimento che si aggancia alle sezioni ----------
     Ogni sezione è un punto d'arresto: lo scorrimento tende a fermarsi
     sull'inizio di una sezione invece che a metà di una fila di riquadri.

     `proximity` e non `mandatory`, ed è una scelta ragionata: alcune sezioni
     (i dodici moduli, le FAQ) sono molto più alte dello schermo. Con
     `mandatory` il browser è OBBLIGATO a stare su un punto d'arresto, quindi
     tenterebbe di riportare in cima alla sezione chi sta leggendo a metà —
     la pagina si combatterebbe con l'utente e il contenuto lungo diventerebbe
     irraggiungibile. Con `proximity` l'aggancio scatta solo quando si è già
     vicini a un attacco: si ottiene l'effetto voluto — non tagliare i moduli a
     metà — senza mai intrappolare chi legge. */
  scroll-snap-type: y proximity;
}
.hero, .sect, .risk {
  scroll-snap-align: start;
  scroll-margin-top: calc(var(--tk-h) + var(--nav-h));
}
/* Su schermi bassi (o telefoni in orizzontale) l'aggancio dà più fastidio che
   altro: lì una sezione occupa più schermate e il salto sarebbe continuo. */
@media (max-height: 620px), (max-width: 760px) {
  html { scroll-snap-type: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; scroll-behavior: auto; }
}

body {
  /* Spazio per le due bande fisse: senza, la prima coprirebbe il menu e la
     seconda l'ultima riga del piè di pagina. */
  padding-top: var(--tk-h); padding-bottom: var(--tk-h);
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(circle at 12% 4%, rgba(var(--primary-rgb), 0.11) 0%, transparent 44%),
    radial-gradient(circle at 88% 62%, rgba(var(--cyan-rgb), 0.07) 0%, transparent 42%),
    radial-gradient(circle at 50% 118%, rgba(var(--primary-rgb), 0.08) 0%, transparent 46%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary-hover); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--primary-hover);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 880px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 2.5px;
  color: var(--text-muted); text-transform: uppercase; margin-bottom: 10px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700;
}
.skip-link:focus { left: 16px; }

.pos { color: var(--green); }
.neg { color: var(--red); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot-online { background: var(--green); box-shadow: 0 0 7px var(--green); animation: pulse 2.2s infinite; }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 6px rgba(var(--cyan-rgb),.6); }
.dot-purple { background: var(--primary-hover); box-shadow: 0 0 6px rgba(var(--primary-hover-rgb),.6); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; padding: 10px 20px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 14.5px;
  border: 1px solid transparent; white-space: nowrap;
  transition: background .16s, border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: #fff; box-shadow: 0 4px 18px rgba(var(--primary-rgb),.35);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-hover), var(--primary)); transform: translateY(-1px); }
.btn-outline {
  background: var(--bg-inset); color: var(--text-primary); border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--primary-hover); background: var(--primary-soft); }
.btn-ghost { background: transparent; color: var(--text-secondary); border-color: transparent; padding: 10px 14px; }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-inset); }
.btn-lg { padding: 14px 28px; font-size: 15.5px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; margin-top: auto; }

/* ---------- Badge ---------- */
.badge {
  font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  letter-spacing: 1px; padding: 3px 7px; border-radius: 5px;
  border: 1px solid var(--border-strong); color: var(--text-secondary);
}
.badge-live  { color: var(--green); border-color: rgba(16,185,129,.4); background: var(--green-soft); }
.badge-daily { color: var(--cyan); border-color: rgba(var(--cyan-rgb),.4); background: var(--cyan-soft); }
.badge-3day  { color: var(--yellow); border-color: rgba(234,179,8,.4); background: var(--yellow-soft); }
.badge-snap  { color: var(--text-secondary); background: var(--bg-inset); }

/* ==========================================================================
   NAV
   ========================================================================== */
/* ---------- Nastro live ----------
   Ricalcato su quello della dashboard (static/style.css, .topbar-agents +
   .tk-track): stesse misure, stesso font, stessa dissolvenza ai bordi, stesso
   giro da 90 secondi. Chi passa dalla vetrina alla plancia deve riconoscere lo
   stesso oggetto, non una sua imitazione.

   .tk-track contiene DUE .tk-seq identiche: l'animazione trasla di -50%, così
   quando la prima copia è uscita la seconda si trova esattamente dove stava la
   prima e il ritorno a zero non si vede. */
/* Le due bande sono FISSE alla finestra, non alla pagina: restano in cima e in
   fondo allo schermo qualunque cosa si stia guardando, e fanno da cornice a
   tutto lo scorrimento. Il body lascia loro lo spazio con due padding, così
   non coprono mai né il menu né il piè di pagina. */
.tickerbar {
  position: fixed; left: 0; right: 0; z-index: 120;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; display: block;
  padding: 7px 0; height: var(--tk-h);
  background: rgba(7, 7, 11, 0.94); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.tickerbar-top { top: 0; border-bottom: 1px solid var(--border-color); }
.tickerbar-bot { bottom: 0; border-top: 1px solid var(--border-color); }
/* Verso opposto: sopra scorre verso sinistra, sotto verso destra. */
.tickerbar-bot .tk-track { animation-name: tk-scroll-rev; animation-duration: 105s; }
@keyframes tk-scroll-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.tickerbar:empty { display: none; }        /* servizio muto = barra assente, non una riga vuota */
.tickerbar b { color: var(--text-secondary); font-weight: 500; }
.tickerbar .tk-val { color: var(--green); }
.tickerbar .pos { color: var(--green); }
.tickerbar .neg { color: #ef4444; }
.tickerbar .tk-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  display: inline-block; box-shadow: 0 0 6px rgba(16,185,129,.7);
}
.tk-track { display: flex; width: max-content; animation: tk-scroll 90s linear infinite; }
.tk-seq { display: flex; align-items: center; gap: 26px; padding-right: 26px; flex: none; }
.tk-item { display: inline-flex; align-items: center; gap: 6px; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* In pausa col mouse sopra: serve per leggere una voce al volo. */
.tickerbar:hover .tk-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tk-track { animation: none; }
  .tickerbar { overflow-x: auto; }
}

.nav {
  position: sticky; top: var(--tk-h); z-index: 100;
  background: rgba(7, 7, 11, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  height: var(--nav-h); display: flex; align-items: center; gap: 22px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.brand-name { font-weight: 700; font-size: 17.5px; letter-spacing: .2px; color: var(--text-primary); }
.brand-accent { color: var(--primary-hover); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; flex: 1; }
.nav-links a {
  color: var(--text-secondary); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: 9px; border: 1px solid transparent;
}
.nav-links a:hover { color: var(--text-primary); background: var(--bg-inset); text-decoration: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.lang-switch {
  display: inline-flex; gap: 2px; margin-right: 4px;
  background: var(--bg-inset); border: 1px solid var(--border-color);
  border-radius: 9px; padding: 2px;
}
.lang-switch button {
  font-family: inherit; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 5px 10px; border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--text-muted); transition: background .15s, color .15s;
}
.lang-switch button:hover { color: var(--text-secondary); }
.lang-switch button.active {
  background: var(--bg-card-solid); color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.28);
}

.nav-toggle {
  display: none; width: 40px; height: 36px; border-radius: 9px;
  background: var(--bg-inset); border: 1px solid var(--border-strong);
  cursor: pointer; padding: 9px 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 68px 0 46px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr);
  gap: 44px; align-items: center;
}
/* Il mockup sfonda un po' la griglia verso destra: è l'oggetto che deve
   convincere, e a schermo largo guadagna così un terzo di superficie senza
   togliere niente al testo. Il margine negativo sparisce sotto i 1080px,
   dove la griglia diventa a una colonna. */
@media (min-width: 1081px) {
  .hero-mock { margin-right: -6vw; }
}
.hero-title { font-size: clamp(34px, 4.6vw, 58px); font-weight: 800; letter-spacing: -1.4px; line-height: 1.07; }
.hero-title .accent {
  background: linear-gradient(90deg, var(--primary-hover), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-secondary); margin-top: 18px; font-size: 16.5px; max-width: 620px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary);
}

/* ---------- La plancia: anteprima della PANORAMICA (puro HTML/CSS) ----------
   Riproduce Mission Control in scala ridotta. Tutte le regole sono annidate
   sotto `.hero-mock` per un motivo pratico: nomi come `.mc-ico` esistono già
   nelle schede dei moduli più in basso, e senza l'annidamento la finta
   dashboard sfonderebbe lo stile della pagina vera. */
.hero-mock { position: relative; }
.mock-glow {
  position: absolute; inset: -18% -14%; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 60% 40%, rgba(var(--primary-rgb),.20), transparent 70%);
  filter: blur(46px);
}
.mock-win {
  background: var(--bg-darker); border: 1px solid var(--border-strong);
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px; background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border-color);
}
.mock-dashboard-shot { display: block; width: 100%; height: auto; aspect-ratio: 8 / 7; object-fit: cover; object-position: top left; }
.mock-dashboard-caption { padding: 10px 14px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: #333; }
.mock-dot.r { background: #ef4444; } .mock-dot.y { background: #eab308; } .mock-dot.g { background: #10b981; }
.mock-url {
  margin-left: 8px; font-family: var(--font-mono); font-size: 9.5px;
  color: var(--text-muted); letter-spacing: .2px;
}

/* Il nastro dentro la finestra, come in cima alla plancia vera. */
.mock-ticker {
  display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; overflow: hidden;
  padding: 5px 12px; font-family: var(--font-mono); font-size: 8px;
  color: var(--text-muted); background: rgba(var(--primary-rgb),.06);
  border-bottom: 1px solid var(--border-color); white-space: nowrap;
}
.mock-ticker b { color: var(--text-secondary); font-weight: 500; margin-left: 6px; }
.mock-ticker .tkv { color: var(--text-primary); }
.mock-ticker .pos { color: var(--green); } .mock-ticker .neg { color: var(--red); }
.mk-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--green);
          box-shadow: 0 0 6px var(--green); flex: none; }

.mock-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 430px; }

/* ---------- barra laterale: i cinque gruppi e gli undici moduli veri ---------- */
.mock-side { background: rgba(8,8,13,.9); border-right: 1px solid var(--border-color); padding: 12px 9px; }
.mock-brand { font-size: 12px; font-weight: 700; padding: 2px 6px 10px; }
.mock-brand b { color: var(--primary-hover); font-weight: 700; }
.mock-navgroup { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 1.4px;
                 color: var(--text-muted); padding: 9px 7px 4px; }
.mock-nav {
  display: flex; align-items: center; gap: 6px; padding: 4px 7px;
  border-radius: 6px; font-size: 9px; color: var(--text-secondary);
  border: 1px solid transparent; margin-bottom: 1px;
}
.mock-nav.active { background: var(--primary-soft); border-color: rgba(var(--primary-rgb),.35); color: var(--text-primary); }
.mock-nav-home { font-weight: 600; margin-bottom: 4px; }
.mn-i { width: 6px; height: 6px; border-radius: 2px; flex: none; }
.mn-i.p { background: var(--primary-hover); } .mn-i.g { background: var(--green); }
.mn-i.v { background: var(--primary-hover); } .mn-i.c { background: #22d3ee; }
.mn-i.o { background: var(--orange); } .mn-i.b { background: #3b82f6; }
.mn-i.r { background: var(--red); } .mn-i.y { background: var(--yellow); }
.mn-i.t { background: #14b8a6; } .mn-i.w { background: var(--text-secondary); }
.mock-badge { margin-left: auto; font-family: var(--font-mono); font-size: 6.5px; font-weight: 700;
              letter-spacing: .5px; padding: 1px 3px; border-radius: 3px; flex: none; }
.mock-badge.live { color: var(--green); background: var(--green-soft); border: 1px solid rgba(16,185,129,.35); }
.mock-badge.day  { color: var(--cyan); background: var(--cyan-soft); border: 1px solid rgba(var(--cyan-rgb),.35); }
.mock-badge.snap { color: var(--text-secondary); background: var(--bg-inset); border: 1px solid var(--border-color); }
.mock-badge.d3   { color: var(--yellow); background: var(--yellow-soft); border: 1px solid rgba(234,179,8,.35); }

.mock-main { position: relative; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }

/* ---------- 1. intestazione di comando, con l'orologio di sistema ---------- */
.mock-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mk-id { min-width: 0; }
.mock-eyeb { display: block; font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 1.5px;
             color: var(--text-muted); }
.mk-title { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.3px; margin-top: 3px; }
.mk-title b { color: var(--primary-hover); font-weight: 800; }
.mk-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.mk-live { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono);
           font-size: 6.5px; letter-spacing: 1px; color: var(--green); }
.mk-time { font-family: var(--font-mono); font-size: 14px; font-weight: 700; line-height: 1; }
.mk-ago  { font-family: var(--font-mono); font-size: 6.5px; color: var(--text-muted); }

/* ---------- 2. i quattro segni vitali ---------- */
.mock-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.mock-vital {
  background: var(--bg-inset); border: 1px solid var(--border-color);
  border-radius: 9px; padding: 8px 9px 9px;
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
}
.mv-lab { font-family: var(--font-mono); font-size: 6px; letter-spacing: 1px;
          color: var(--text-muted); }
.mv-big { font-family: var(--font-mono); font-size: 17px; font-weight: 700; line-height: 1.1; }
.mv-big i { font-size: 9px; color: var(--text-muted); font-style: normal; }
.mv-split { display: flex; align-items: baseline; }
.mv-split b { font-size: 17px; }
.mv-split b em { font-size: 8px; font-style: normal; margin-left: 1px; }
.mv-split i { margin: 0 3px; color: var(--text-muted); font-style: normal; }
.mv-note { font-family: var(--font-mono); font-size: 6.5px; color: var(--text-secondary);
           line-height: 1.35; }

/* L'anello della salute: 9 su 11 al centro, la legenda sotto. */
.hero-mock .mv-ring { align-items: center; text-align: center; }
.mv-ringwrap { position: relative; width: 46px; height: 46px; margin: 1px 0; }
.mv-svg { width: 46px; height: 46px; transform: rotate(-90deg); }
.mv-bg, .mv-fg { fill: none; stroke-width: 4; }
.mv-bg { stroke: rgba(255,255,255,.08); }
.mv-fg {
  stroke: var(--green); stroke-linecap: round;
  stroke-dasharray: 113; stroke-dashoffset: 21;    /* 9 su 11 ≈ 82% dell'arco */
  filter: drop-shadow(0 0 4px rgba(16,185,129,.5));
}
.mv-ringval {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
}
.mv-ringval i { font-size: 7px; font-style: normal; color: var(--text-muted); }
.mv-legend { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; width: 100%; }
.mv-lg { display: flex; align-items: center; gap: 4px; font-family: var(--font-mono);
         font-size: 6.5px; color: var(--text-secondary); }
.mv-lgd { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.mv-lgd.ok { background: var(--green); } .mv-lgd.wait { background: var(--yellow); }

/* I tre moduli più operosi delle ultime 24 ore, sotto il totale. */
.mv-spark { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 1px; }
.mv-sp { font-family: var(--font-mono); font-size: 6px; color: var(--text-muted);
         background: rgba(255,255,255,.04); border-radius: 3px; padding: 1px 3px; }
.mv-sp b { color: var(--text-secondary); font-weight: 600; }
.mv-tone { font-family: var(--font-mono); font-size: 6.5px; color: var(--green);
           background: var(--green-soft); border-radius: 3px; padding: 1px 4px; align-self: flex-start; }
.mv-link { font-family: var(--font-mono); font-size: 6.5px; color: var(--cyan); margin-top: auto; }

/* ---------- 3. la costellazione: i moduli come righe, gruppo per gruppo ---------- */
.mock-const { display: flex; flex-direction: column; gap: 2px; margin-top: 1px; }
.hero-mock .mc-grp {
  display: flex; align-items: center; gap: 7px; margin: 7px 0 2px;
  font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 1px;
  color: var(--text-secondary); text-transform: none;
}
.hero-mock .mc-line { flex: 1; height: 1px; background: var(--border-color); }
.hero-mock .mc-cnt { font-size: 7px; color: var(--green); font-weight: 700; }
.hero-mock .mc-cnt em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.hero-mock .mc-row {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border-color);
  border-left: 2px solid var(--acc, var(--primary));
  border-radius: 6px; padding: 5px 8px; font-size: 9px; min-width: 0;
}
.hero-mock .mc-st { width: 5px; height: 5px; border-radius: 50%; flex: none; background: var(--green);
                    box-shadow: 0 0 5px rgba(16,185,129,.7); }
.hero-mock .mc-ico { width: 13px; height: 13px; border-radius: 4px; flex: none;
                     background: var(--acc, var(--primary)); opacity: .8;
                     border: 0; display: block; font-size: 0; }
.hero-mock .mc-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.hero-mock .mc-nm { display: flex; align-items: center; gap: 5px; font-size: 9px;
                    color: var(--text-primary); white-space: nowrap; overflow: hidden; }
.hero-mock .mc-nm .mock-badge { margin-left: 0; }
.hero-mock .mc-meta { font-family: var(--font-mono); font-size: 6.5px; color: var(--text-muted); }
.hero-mock .mc-meta em.ok { font-style: normal; color: var(--green); }
.hero-mock .mc-val { margin-left: auto; text-align: right; flex: none;
                     display: flex; flex-direction: column; align-items: flex-end; }
.hero-mock .mc-val { font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.hero-mock .mc-val em { font-style: normal; color: var(--text-muted); font-size: 6px;
                        font-weight: 400; letter-spacing: .4px; }

/* La sfumatura in fondo dice che sotto continua: nella plancia vera ci sono
   altri due gruppi, e un taglio netto sembrerebbe la fine della pagina. */
.mock-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none;
  background: linear-gradient(to top, var(--bg-darker), rgba(7, 10, 10,0));
}

/* ==========================================================================
   SEZIONI
   ========================================================================== */
.sect { padding: 74px 0; }
.sect-alt { background: rgba(7, 10, 10,.5); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.sect-head { margin-bottom: 34px; max-width: 780px; }
.sect-title { font-size: clamp(27px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.8px; line-height: 1.14; }
.sect-sub { color: var(--text-secondary); margin-top: 12px; font-size: 16px; }

/* ---------- I titoli si scrivono, parola per parola ----------
   Ogni parola sta in una finestrella che taglia quello che ne esce: la parola
   non compare, sale da sotto la riga con un filo di sfocatura che si dissolve.
   `--wi` è l'indice della parola, messo dal JS: è quello a scaglionare.
   La finestrella ha un po' di aria sopra e sotto (padding + margin negativo)
   perché accenti e code delle lettere non vengano tagliati. */
.sect-title.split .wsp,
.cta-title.split .wsp {
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .12em .04em .18em; margin: -.12em -.04em -.18em;
}
.sect-title.split .wsp > i,
.cta-title.split .wsp > i {
  display: inline-block; font-style: inherit;
  transform: translateY(105%) rotate(3deg); opacity: 0; filter: blur(6px);
  transition: transform .72s cubic-bezier(.19,1,.28,1), opacity .5s ease, filter .5s ease;
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.sect-title.split.wr .wsp > i,
.cta-title.split.wr .wsp > i { transform: none; opacity: 1; filter: none; }

/* ---------- Riga di avanzamento ----------
   Sotto il nastro in alto, spessa due pixel: cresce da sinistra man mano che si
   scorre. `--p` (0→1) la scrive il JS, la scala la fa il compositore — nessun
   ricalcolo di layout mentre si scorre. */
.scrollprog {
  position: fixed; top: var(--tk-h); left: 0; right: 0; height: 2px; z-index: 61;
  pointer-events: none;
  background: linear-gradient(90deg, var(--primary), var(--cyan) 60%, var(--primary));
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), .5);
}

/* ==========================================================================
   SIGNAL ASSEMBLY — la pagina si comporta come una plancia in scansione
   ========================================================================== */
.motion-field {
  position: fixed; inset: -18%; z-index: -1; pointer-events: none;
  opacity: .52; transform: translateZ(0);
  background:
    radial-gradient(circle at var(--pointer-x, 52%) var(--pointer-y, 32%), rgba(var(--primary-hover-rgb), .12), transparent 19%),
    radial-gradient(circle at 78% 78%, rgba(var(--cyan-rgb), .06), transparent 24%);
  transition: opacity .4s ease;
}
.motion-scene {
  position: relative; isolation: isolate; overflow: clip;
  --scene-focus: 0; --scene-progress: 0; --scene-depth: 0;
}
.motion-scene::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: calc(.03 + var(--scene-focus) * .09);
  background:
    linear-gradient(115deg, transparent 0 22%, rgba(var(--primary-hover-rgb), .18) 22.1%, transparent 22.3% 100%),
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.055) 49.9%, transparent 50.1%),
    radial-gradient(circle at calc(50% + var(--scene-depth) * -18%), 40%, rgba(var(--primary-rgb), .17), transparent 28%);
  transform: translate3d(calc(var(--scene-depth) * -24px), 0, 0) scale(1.06);
  transition: opacity .35s ease;
}
.motion-scene::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  pointer-events: none; opacity: calc(.2 + var(--scene-focus) * .55);
  background: linear-gradient(90deg, transparent, var(--primary-hover) 24%, var(--cyan) 52%, transparent 80%);
  transform-origin: 0 50%; transform: scaleX(var(--scene-progress));
  box-shadow: 0 0 18px rgba(var(--primary-hover-rgb), .65);
}
.motion-scene > .wrap { position: relative; z-index: 1; }
.motion-scene .sect-head { translate: 0 calc(var(--scene-depth) * -18px); opacity: calc(.82 + var(--scene-focus) * .18); }
.motion-scene .reveal.in { translate: 0 calc(var(--scene-depth) * -8px); }
.motion-scene.scene-current .sect-head::after {
  content: ""; display: block; width: min(130px, 22vw); height: 2px; margin-top: 18px;
  background: linear-gradient(90deg, var(--primary-hover), transparent);
  transform-origin: left; transform: scaleX(var(--scene-focus));
}

.motion-rail {
  --rail-progress: 0; position: fixed; right: 18px; top: 50%; z-index: 80;
  width: 42px; height: min(54vh, 510px); transform: translateY(-50%);
  pointer-events: none; color: var(--text-muted); font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 1.5px;
}
.motion-rail-caption { position: absolute; right: -3px; top: -18px; white-space: nowrap; opacity: .55; writing-mode: vertical-rl; }
.motion-rail-track { position: absolute; right: 11px; top: 12px; bottom: 28px; width: 1px; background: linear-gradient(var(--border-strong), rgba(var(--primary-rgb), .16)); }
.motion-rail-track::after { content: ""; position: absolute; inset: 0; transform-origin: top; transform: scaleY(var(--rail-progress)); background: var(--primary-hover); box-shadow: 0 0 12px rgba(var(--primary-hover-rgb), .8); }
.motion-rail-pulse { position: absolute; left: 50%; top: calc(var(--pulse-progress, 0) * 100%); width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); transform: translate(-50%, -50%); box-shadow: 0 0 0 4px rgba(var(--cyan-rgb), .12), 0 0 16px var(--cyan); }
.motion-rail-nodes { position: absolute; right: 8px; top: 12px; bottom: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.motion-node { width: 7px; height: 7px; border: 1px solid var(--text-muted); border-radius: 50%; background: var(--bg-dark); transition: border-color .3s ease, background .3s ease, box-shadow .3s ease, transform .3s ease; }
.motion-node.is-active { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 10px rgba(var(--cyan-rgb), .8); transform: scale(1.45); }
.motion-rail-readout { position: absolute; right: 0; bottom: 0; white-space: nowrap; opacity: .8; }
.motion-rail-readout b { color: var(--cyan); font-size: 12px; }

/* Il contenuto entra già con un vettore laterale; durante lo scorrimento lo
   stesso vettore continua a muovere appena le schede, come particelle che
   cercano il centro del segnale. Le proprietà individuali non distruggono il
   transform usato dalle reveal. */
.motion-scene .mod-card:nth-child(odd), .motion-scene .wal-card:nth-child(odd), .motion-scene .price-card:nth-child(odd) { rotate: calc((.5 - var(--scene-focus)) * 1.2deg); }
.motion-scene .mod-card:nth-child(even), .motion-scene .wal-card:nth-child(even), .motion-scene .price-card:nth-child(even) { rotate: calc((var(--scene-focus) - .5) * 1deg); }
.motion-scene .mod-card, .motion-scene .wal-card, .motion-scene .price-card { transition: border-color .35s ease, box-shadow .35s ease, rotate .55s cubic-bezier(.2,.8,.2,1); }
.motion-scene .mod-card:hover, .motion-scene .wal-card:hover, .motion-scene .price-card:hover { rotate: 0deg; }
.motion-scene .step:nth-child(odd), .motion-scene .cal-card:nth-child(odd) { translate: 0 calc(var(--scene-depth) * -14px); }
.motion-scene .step:nth-child(even), .motion-scene .cal-card:nth-child(even) { translate: 0 calc(var(--scene-depth) * 14px); }

.mod-grid, .steps { position: relative; }
.mod-grid::before, .steps::before {
  content: ""; position: absolute; left: 5%; right: 5%; top: -9px; height: 1px;
  pointer-events: none; transform-origin: left; transform: scaleX(var(--scene-progress));
  background: repeating-linear-gradient(90deg, var(--primary-hover) 0 3px, transparent 3px 12px);
  opacity: calc(.16 + var(--scene-focus) * .65); box-shadow: 0 0 14px rgba(var(--primary-hover-rgb), .45);
}
.steps::before { top: -8px; }

@media (max-width: 1100px) { .motion-rail { display: none; } }
@media (max-width: 640px) {
  .motion-field { opacity: .28; }
  .motion-scene::before { opacity: calc(.02 + var(--scene-focus) * .06); }
  .motion-scene .mod-card:nth-child(odd), .motion-scene .wal-card:nth-child(odd), .motion-scene .price-card:nth-child(odd),
  .motion-scene .mod-card:nth-child(even), .motion-scene .wal-card:nth-child(even), .motion-scene .price-card:nth-child(even) { rotate: 0deg; }
  .mod-grid::before, .steps::before { left: 0; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-field, .motion-rail { display: none; }
  .motion-scene::before, .motion-scene::after { opacity: 0; }
  .motion-scene .sect-head, .motion-scene .reveal.in,
  .motion-scene .step:nth-child(odd), .motion-scene .step:nth-child(even),
  .motion-scene .cal-card:nth-child(odd), .motion-scene .cal-card:nth-child(even) { translate: none; }
  .motion-scene .mod-card, .motion-scene .wal-card, .motion-scene .price-card { rotate: 0deg; }
}
@media (prefers-reduced-motion: reduce) {
  .sect-title.split .wsp > i,
  .cta-title.split .wsp > i { transform: none; opacity: 1; filter: none; transition: none; }
}

/* ---------- Griglia moduli ---------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.mod-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 20px 22px;
  transition: border-color .16s, transform .16s, box-shadow .16s;
}
.mod-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent, var(--primary));
  box-shadow: 0 10px 34px rgba(0,0,0,.5), 0 0 0 1px var(--accent, var(--primary)) inset;
}
.mc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.mc-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--bg-inset); border: 1px solid var(--border-color);
  color: var(--accent, var(--primary-hover)); font-size: 17px; line-height: 1;
}
.mc-name { font-size: 16.5px; font-weight: 700; flex: 1; min-width: 0; }
.mc-eyebrow { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 9px; }
.mc-text { color: var(--text-secondary); font-size: 14.5px; }
.mod-card-more { border-style: dashed; background: transparent; }
.mod-card-more .mc-ico { color: var(--text-muted); }

/* ---------- Wallet ---------- */
.wal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wal-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-top: 2px solid var(--accent, var(--primary)); border-radius: 16px; padding: 22px 24px;
}
.wal-paper { grid-column: 1 / -1; }
.wc-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--accent, var(--primary-hover)); }
.wc-title { font-size: 20px; font-weight: 700; margin: 8px 0 10px; }
.wc-text { color: var(--text-secondary); font-size: 14.5px; }
.wc-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 9px 13px; border-radius: 10px;
  background: var(--bg-inset); border: 1px solid var(--border-color);
}
.wc-addr-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--text-muted); }
.wc-addr code { font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); }

.wal-facts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.wf {
  display: flex; gap: 13px; padding: 17px 19px;
  background: var(--bg-inset); border: 1px solid var(--border-color); border-radius: 14px;
}
.wf-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--primary-soft); border: 1px solid rgba(var(--primary-rgb),.3); font-size: 15px;
}
.wf b { display: block; font-size: 15px; margin-bottom: 3px; }
.wf p { color: var(--text-secondary); font-size: 14px; }
.wal-note {
  margin-top: 18px; padding: 15px 19px; border-radius: 12px; font-size: 14.5px;
  border: 1px solid rgba(234,179,8,.3); background: var(--yellow-soft); color: var(--text-secondary);
}

/* ---------- Come funziona ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.step {
  position: relative; padding: 24px 22px 22px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
}
.step::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}
.st-n { font-family: var(--font-mono); font-size: 26px; font-weight: 700; color: var(--primary-hover); opacity: .55; }
.st-t { font-size: 17.5px; font-weight: 700; margin: 6px 0 8px; }
.st-d { color: var(--text-secondary); font-size: 14.5px; }
.how-paper {
  display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; padding: 20px 22px;
  background: linear-gradient(135deg, rgba(234,179,8,.10), var(--bg-card));
  border: 1px solid rgba(234,179,8,.35); border-radius: 16px;
}
.how-paper-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
  color: var(--yellow); background: var(--yellow-soft); font-size: 22px;
}
.how-paper .st-t { margin-top: 0; }

/* ---------- Prezzi ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; align-items: stretch; }
/* Il gradino zero si legge come una porta, non come un piano da comprare:
   bordo tratteggiato e nessun colore d'accento. */
.pc-free { border-style: dashed; background: transparent; }
.pc-free .pc-price { color: var(--text-secondary); }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 18px; padding: 26px 24px 24px;
}
.price-card.featured {
  border-color: rgba(var(--primary-rgb),.5);
  box-shadow: 0 0 0 1px rgba(var(--primary-rgb),.25), 0 18px 50px rgba(var(--primary-rgb),.16);
  background: linear-gradient(180deg, rgba(var(--primary-rgb),.09), var(--bg-card) 42%);
}
.pc-ribbon {
  position: absolute; top: -11px; left: 24px;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px;
  padding: 4px 11px; border-radius: 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary)); color: #fff;
}
.pc-tier { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--text-secondary); }
.pc-price { font-family: var(--font-mono); font-size: 42px; font-weight: 700; line-height: 1.1; margin-top: 10px; }
.pc-per { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.pc-tbd {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--yellow); background: var(--yellow-soft); border: 1px solid rgba(234,179,8,.35);
  padding: 3px 9px; border-radius: 6px; align-self: flex-start;
}
.pc-for { color: var(--text-secondary); font-size: 14.5px; margin: 14px 0 4px; }
.pc-list { list-style: none; margin: 14px 0 22px; display: flex; flex-direction: column; gap: 9px; }
.pc-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-primary); }
.pc-list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  color: var(--green); font-weight: 700; font-size: 14px;
}
.pc-list li.off { color: var(--text-muted); }
.pc-list li.off::before { content: "—"; color: var(--text-muted); }
.pc-cur { font-size: 20px; color: var(--text-secondary); font-weight: 700; margin-left: 2px; }
.price-foot { margin-top: 20px; font-size: 13.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* ---------- Come si paga ----------
   Due righe secche, etichetta a sinistra e targhette a destra. La versione
   precedente era un elenco puntato con una spiegazione per voce: nessuno
   legge un trattato per sapere se accetti USDT. Qui l'occhio cerca il nome
   della sua moneta e lo trova in un secondo. */
.pay-box {
  margin-top: 24px; padding: 20px 24px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
}
.pay-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 11px 0; border-bottom: 1px solid var(--border-color);
}
.pay-row:first-child { padding-top: 0; }
.pay-k {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px;
  color: var(--text-muted); width: 84px; flex: none;
}
.pay-v { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-v b {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text-primary);
  background: var(--bg-inset); border: 1px solid var(--border-strong);
  border-radius: 8px; padding: 5px 12px;
}
.pay-note { margin-top: 14px; font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }
.pay-note b { color: var(--text-primary); font-weight: 600; }
@media (max-width: 560px) {
  .pay-k { width: 100%; }
}

.pc-note {
  display: inline-block; margin-top: 6px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Cosa c'è nel Discord: gratis a sinistra, riservato a destra ----------
   Due colonne affiancate perché il confronto sia immediato: si legge in tre
   secondi dove finisce l'una e comincia l'altra. Il bordo colorato a sinistra
   fa da semaforo — verde quello che si ha subito, viola quello che si paga. */
.dsc-box { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.dsc-col {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 22px 24px;
}
.dsc-free { border-left: 3px solid var(--green); }
.dsc-prem { border-left: 3px solid var(--primary-hover); }
.dsc-lab {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-secondary);
}
.dsc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dsc-dot.free { background: var(--green); box-shadow: 0 0 7px rgba(16,185,129,.6); }
.dsc-dot.prem { background: var(--primary-hover); box-shadow: 0 0 7px rgba(var(--primary-hover-rgb),.6); }
.dsc-int { margin: 10px 0 16px; font-size: 14.5px; color: var(--text-secondary); }
.dsc-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.dsc-list li {
  position: relative; padding-left: 18px; font-size: 14px;
  color: var(--text-secondary); line-height: 1.55;
}
.dsc-list li::before {
  content: "\203A"; position: absolute; left: 0; top: -1px; font-weight: 700;
}
.dsc-list li b { color: var(--text-primary); font-weight: 600; }
.dsc-free .dsc-list li::before { color: var(--green); }
.dsc-prem .dsc-list li::before { color: var(--primary-hover); }
@media (max-width: 860px) { .dsc-box { grid-template-columns: 1fr; } }

/* ---------- Community ---------- */
.com-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.com-card {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
  color: inherit; transition: border-color .16s, transform .16s;
}
.com-card:hover { text-decoration: none; transform: translateY(-3px); border-color: var(--border-strong); }
.cc-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.com-discord .cc-ico { color: #5865F2; background: rgba(88,101,242,.14); }
.com-telegram .cc-ico { color: #229ED9; background: rgba(34,158,217,.14); }
.cc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.cc-txt b { font-size: 16px; }
.cc-txt span { color: var(--text-secondary); font-size: 14px; }
.cc-go { color: var(--text-muted); font-size: 20px; flex: none; }
.com-card:hover .cc-go { color: var(--primary-hover); }

/* ---------- Calcolatori ----------
   La prima scheda è larga il doppio e porta l'elenco dei calcoli come
   targhette: diciassette voci in un paragrafo non le legge nessuno, in
   targhette si scorrono con l'occhio e si trova la propria. */
.cal-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 16px; align-items: start; }
.cal-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 22px 24px; height: 100%;
  transition: border-color .16s, transform .16s;
}
.cal-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.cal-big { border-color: rgba(var(--primary-rgb),.3); background: linear-gradient(180deg, var(--primary-soft), var(--bg-card) 46%); }
.cal-head { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.cal-ico {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 19px;
  background: var(--bg-inset); border: 1px solid var(--border-color);
}
.cal-name { font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.cal-ver { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: .8px; }
.cal-txt { color: var(--text-secondary); font-size: 14.5px; line-height: 1.6; }
.cal-txt b { color: var(--text-primary); font-weight: 600; }
.cal-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.cal-tags li {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-secondary);
  background: var(--bg-inset); border: 1px solid var(--border-color);
  border-radius: 7px; padding: 5px 10px;
}
.cal-foot { margin-top: 20px; font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }
.cal-foot b { color: var(--text-secondary); font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; }
@media (max-width: 1000px) { .cal-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; overflow: hidden; }
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: rgba(var(--primary-rgb),.4); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 20px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--text-primary);
}
.faq-q:hover { background: var(--bg-inset); }
.faq-ico { position: relative; width: 15px; height: 15px; flex: none; }
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: var(--primary-hover);
  transform: translate(-50%, -50%); border-radius: 2px; transition: transform .2s ease, opacity .2s ease;
}
.faq-ico::before { width: 15px; height: 2px; }
.faq-ico::after { width: 2px; height: 15px; }
.faq-q[aria-expanded="true"] .faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a { padding: 0 20px 18px; color: var(--text-secondary); font-size: 15px; }
.faq-a[hidden] { display: none; }

/* ---------- CTA finale ---------- */
.cta-final { text-align: center; padding: 78px 0 64px; }
.cta-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -.9px; }
.cta-sub { color: var(--text-secondary); margin: 14px auto 0; max-width: 620px; font-size: 16px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Disclaimer ---------- */
.risk { padding: 0 0 66px; }
.risk-box {
  border: 1px solid rgba(239,68,68,.4); background: var(--red-soft);
  border-radius: 16px; padding: 24px 26px; color: var(--text-secondary); font-size: 14.5px;
}
.risk-box p + p { margin-top: 11px; }
.risk-box b { color: var(--text-primary); }
.risk-tag {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 2px;
  color: #fca5a5; margin-bottom: 12px;
}

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--border-color); background: rgba(7, 10, 10,.7); padding: 44px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 30px; }
.foot-tag { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 2px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 3px; }
.foot-col a { color: var(--text-secondary); font-size: 14px; }
.foot-col a:hover { color: var(--text-primary); text-decoration: none; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border-color);
  font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted);
}
.foot-note { max-width: 520px; }

/* ==========================================================================
   ANIMAZIONI DI INGRESSO (IntersectionObserver aggiunge .in)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Ingresso dai lati ----------
   I riquadri delle griglie non salgono più tutti dal basso: entrano dal bordo
   verso il centro, la colonna di sinistra da sinistra e quella di destra da
   destra. La classe la assegna il JS in base alla posizione reale nella
   griglia, perché quel numero cambia con la larghezza della finestra: su
   telefono, dove c'è una colonna sola, tutti tornano a salire dal basso —
   un'entrata laterale su schermo stretto sembra un errore di impaginazione.
   La curva ha un ritorno appena percettibile: l'elemento arriva, supera di un
   soffio la sua posizione e si assesta. È ciò che dà la sensazione di peso. */
.reveal-l { transform: translateX(-58px) translateY(10px); }
.reveal-r { transform: translateX(58px) translateY(10px); }
.reveal-l, .reveal-r { transition: opacity .62s ease, transform .62s cubic-bezier(.21, 1.02, .36, 1.02); }
.reveal-l.in, .reveal-r.in { transform: none; }

/* ---------- Titolo a due tempi ----------
   La seconda riga non c'è finché la prima non è stata letta: compare in
   dissolvenza salendo di poco. Il ritardo lo dà il JS aggiungendo .ht-on. */
.ht-2 { opacity: 0; transform: translateY(14px); display: inline-block;
        transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.22,.9,.3,1); }
.ht-2.ht-on { opacity: 1; transform: none; }

/* ---------- Il mockup respira ----------
   Oscillazione lentissima (nove secondi) e minima: due pixel e mezzo e mezzo
   grado. Deve sembrare che la finestra galleggi, non che si muova. Il ciclo
   dispari rispetto a quello del bagliore evita che i due vadano a tempo e
   diventino un battito riconoscibile. */
@keyframes mock-float {
  0%, 100% { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg) translateY(0); }
  50%      { transform: perspective(1600px) rotateY(-5.4deg) rotateX(1.6deg) translateY(-11px); }
}
@keyframes mock-breathe {
  0%, 100% { opacity: .75; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.06); }
}
.hero-mock.in .mock-win { animation: mock-float 9s ease-in-out infinite; }
.hero-mock.in .mock-glow { animation: mock-breathe 7s ease-in-out infinite; }
/* Parallasse: il JS scrive solo `--par`, il transform resta qui. Deve stare
   DOPO `.reveal.in` per vincere a parità di specificità. */
.hero-mock.in { transform: translateY(var(--par, 0px)); }

/* ---------- La plancia si compone ----------
   Non appare: si costruisce. Prima la finestra vuota, poi il nastro, poi la
   barra laterale che scorre dentro da sinistra, poi i quattro segni vitali uno
   dopo l'altro, e infine le righe dei moduli che si accendono in sequenza —
   come una console che finisce di avviarsi. È lo stesso ordine in cui la
   dashboard vera si popola quando la apri, e serve a far vedere che è un
   sistema che parte, non un'immagine. */
.hero-mock .mock-win {
  opacity: 0; transform: perspective(1600px) rotateY(-14deg) rotateX(5deg) scale(.93);
  transition: opacity .7s ease, transform .9s cubic-bezier(.19, 1, .3, 1);
}
.hero-mock.in .mock-win { opacity: 1; }

.hero-mock .mock-ticker,
.hero-mock .mock-side,
.hero-mock .mock-vital,
.hero-mock .mc-grp,
.hero-mock .mc-row,
.hero-mock .mock-top { opacity: 0; }

.hero-mock.in .mock-ticker { animation: mk-giu .5s .35s ease forwards; }
.hero-mock.in .mock-side   { animation: mk-sx .65s .5s cubic-bezier(.2,.9,.3,1) forwards; }
.hero-mock.in .mock-top    { animation: mk-su .45s .75s ease forwards; }
.hero-mock.in .mock-vital  { animation: mk-su .5s ease forwards; }
.hero-mock.in .mock-vital:nth-child(1) { animation-delay: .9s; }
.hero-mock.in .mock-vital:nth-child(2) { animation-delay: 1.0s; }
.hero-mock.in .mock-vital:nth-child(3) { animation-delay: 1.1s; }
.hero-mock.in .mock-vital:nth-child(4) { animation-delay: 1.2s; }
.hero-mock.in .mc-grp, .hero-mock.in .mc-row { animation: mk-riga .42s ease forwards; }
.hero-mock.in .mock-const > *:nth-child(1) { animation-delay: 1.35s; }
.hero-mock.in .mock-const > *:nth-child(2) { animation-delay: 1.42s; }
.hero-mock.in .mock-const > *:nth-child(3) { animation-delay: 1.49s; }
.hero-mock.in .mock-const > *:nth-child(4) { animation-delay: 1.56s; }
.hero-mock.in .mock-const > *:nth-child(5) { animation-delay: 1.63s; }
.hero-mock.in .mock-const > *:nth-child(6) { animation-delay: 1.70s; }
.hero-mock.in .mock-const > *:nth-child(7) { animation-delay: 1.77s; }
.hero-mock.in .mock-const > *:nth-child(8) { animation-delay: 1.84s; }

@keyframes mk-giu  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes mk-sx   { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
@keyframes mk-su   { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes mk-riga { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* L'anello della salute si disegna da solo, partendo da vuoto. */
.hero-mock.in .mv-fg { animation: mk-anello 1.4s .95s cubic-bezier(.3,.9,.3,1) forwards; }
@keyframes mk-anello { from { stroke-dashoffset: 113; } to { stroke-dashoffset: 21; } }

@media (prefers-reduced-motion: reduce) {
  .hero-mock .mock-win { opacity: 1; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transition: none; }
  .hero-mock .mock-ticker, .hero-mock .mock-side, .hero-mock .mock-vital,
  .hero-mock .mc-grp, .hero-mock .mc-row, .hero-mock .mock-top { opacity: 1; animation: none; }
  .hero-mock .mv-fg { animation: none; }
}
/* Col mouse sopra si ferma e si raddrizza: se uno lo guarda da vicino, deve
   stare fermo. */
.hero-mock:hover .mock-win {
  animation-play-state: paused;
  transform: perspective(1600px) rotateY(-2deg) rotateX(.6deg) scale(1.015);
  transition: transform .5s ease;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-sub { max-width: none; }
  .mock-win { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    background: rgba(7,7,11,.98); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 18px 20px; display: none;
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle { display: flex; }
  .btn-ghost { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 18px; }
  .nav-inner { padding: 0 16px; gap: 8px; }
  .brand-name { font-size: 15.5px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn-primary { padding: 9px 14px; font-size: 13.5px; }
  .sect { padding: 54px 0; }
  .hero { padding: 44px 0 34px; }
  .hero-cta .btn, .cta-btns .btn { width: 100%; }
  /* minmax(0,1fr) e non 1fr: la traccia deve poter diventare più stretta del
     suo contenuto, altrimenti la finta dashboard sfonda lo schermo. */
  .mock-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mock-side { display: none; }
  /* Con due sole lingue il pulsante attivo non fa nulla: sul telefono resta
     visibile solo l'altro, e la barra in alto ci sta senza tagliare la CTA. */
  .lang-switch button.active { display: none; }
  /* Sul telefono la plancia si stringe: i segni vitali vanno a due per riga e
     la costellazione dei moduli sparisce (sarebbe illeggibile). */
  .mock-vitals { grid-template-columns: 1fr 1fr; }
  .mock-const { display: none; }
  .mod-grid, .price-grid, .com-grid, .wal-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .faq-q { font-size: 15px; padding: 15px 16px; }
  .faq-a { padding: 0 16px 16px; }
  .lang-switch button { padding: 5px 8px; font-size: 10px; }
  .pc-price { font-size: 36px; }
}

/* Chi ha chiesto meno movimento: niente marquee, niente entrate, niente smooth scroll. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .tk-track { animation: none; transform: none; }
  .ticker { overflow-x: auto; }
  .reveal, .reveal-l, .reveal-r { opacity: 1; transform: none; }
  .ht-2 { opacity: 1; transform: none; }
  .dot-online { animation: none; }
  .hero-mock.in .mock-win, .hero-mock.in .mock-glow { animation: none; }
}

/* ==========================================================================
   EDITORIAL MOTION — maschere nette, peso fermo, nessun dondolio
   --------------------------------------------------------------------------
   La pagina prende il ritmo da un lookbook digitale: il contenuto viene
   montato da tagli puliti e clipping, poi resta immobile. Lo scroll è il
   montaggio, non una calamita che inclina ogni scheda.
   ========================================================================== */
html { scroll-snap-type: none; }
.motion-field, .motion-rail { display: none !important; }
.mock-glow { inset: -18% 0; }

/* Un solo gesto ambientale nel hero: la plancia si apre, poi rimane ferma. */
.hero-mock.in .mock-win { animation: none !important; }
.hero-mock.in .mock-glow { animation: none !important; opacity: .78; transform: scale(1); }
.hero-mock:hover .mock-win {
  animation-play-state: running;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
}

/* Entrate da pagina editoriale: una maschera si apre e il contenuto si posa.
   Non c'è overshoot, rotazione o galleggiamento continuo. */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .62s ease, transform .72s cubic-bezier(.22,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-l { transform: translateX(-32px); }
.reveal-r { transform: translateX(32px); }
.reveal-l.in, .reveal-r.in { transform: none; }

/* Il montaggio avviene dentro la scheda, non sul suo contenitore: così
   IntersectionObserver continua a vedere anche le card che arrivano più in
   basso nella pagina. */
.mod-card.reveal > *, .wal-card.reveal > *, .step.reveal > *,
.price-card.reveal > *, .cal-card.reveal > *, .com-card.reveal > *,
.faq-item.reveal > * {
  opacity: 0; transform: translateY(10px);
  transition: opacity .48s ease, transform .58s cubic-bezier(.22,.7,.2,1);
}
.mod-card.reveal.in > *, .wal-card.reveal.in > *, .step.reveal.in > *,
.price-card.reveal.in > *, .cal-card.reveal.in > *, .com-card.reveal.in > *,
.faq-item.reveal.in > * { opacity: 1; transform: none; }
.mod-card.reveal.in > *:nth-child(2), .wal-card.reveal.in > *:nth-child(2),
.step.reveal.in > *:nth-child(2), .price-card.reveal.in > *:nth-child(2),
.cal-card.reveal.in > *:nth-child(2) { transition-delay: 70ms; }
.mod-card.reveal.in > *:nth-child(3), .wal-card.reveal.in > *:nth-child(3),
.step.reveal.in > *:nth-child(3), .price-card.reveal.in > *:nth-child(3),
.cal-card.reveal.in > *:nth-child(3) { transition-delay: 130ms; }

/* La sezione moduli diventa un impaginato da rivista: titolo fisso a sinistra,
   catalogo a destra. Il lettore sente il volume scorrere senza vedere le card
   muoversi in modo artificiale. */
@media (min-width: 1001px) {
  #modules .wrap {
    display: grid; grid-template-columns: minmax(245px, .72fr) minmax(0, 1.55fr);
    align-items: start; column-gap: clamp(34px, 5vw, 76px);
  }
  #modules .sect-head {
    position: sticky; top: calc(var(--tk-h) + var(--nav-h) + 34px);
    margin-bottom: 0; padding: 10px 0 28px;
  }
  #modules .sect-head::after {
    content: ""; display: block; width: 72px; height: 1px; margin-top: 24px;
    background: linear-gradient(90deg, var(--primary-hover), transparent);
  }
  #modules .mod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
    background: var(--border-color); border: 1px solid var(--border-color);
  }
  #modules .mod-card {
    min-height: 238px; border: 0; border-radius: 0; box-shadow: none;
    background: var(--bg-card-solid); padding: 23px 22px;
  }
  #modules .mod-card:hover {
    transform: none; border-color: transparent;
    box-shadow: inset 0 0 0 1px var(--accent, var(--primary));
  }
}

@media (max-width: 1000px) {
  #modules .sect-head { position: static; }
  #modules .mod-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}

@media (max-width: 640px) {
  .reveal-l, .reveal-r { transform: translateY(22px); }
  .reveal-l.in, .reveal-r.in { transform: none; }
  .hero-copy, .hero-mock { min-width: 0; width: 100%; }
  .mock-glow { inset: -8% 0; }
  #modules .mod-grid { grid-template-columns: 1fr; gap: 16px; background: transparent; border: 0; }
  #modules .mod-card { border: 1px solid var(--border-color); border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-l, .reveal-r,
  .mod-card.reveal > *, .wal-card.reveal > *, .step.reveal > *,
  .price-card.reveal > *, .cal-card.reveal > *, .com-card.reveal > *,
  .faq-item.reveal > * { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   SCENE MOTION — una funzione diversa per ogni capitolo
   ========================================================================== */
[data-scene] { --scene-enter: 0; --scene-exit: 1; --scene-focus: 0; }

/* HERO — il messaggio si ritira, la plancia prende il campo. */
#top .hero-copy { translate: 0 calc((1 - var(--scene-exit)) * -42px); opacity: calc(.54 + var(--scene-exit) * .46); }
#top .hero-mock { translate: 0 calc((1 - var(--scene-exit)) * 54px); scale: calc(.95 + var(--scene-exit) * .05); }

/* MODULI — mosaico editoriale e una sola scheda alla volta va in fuoco. */
@media (min-width: 1001px) {
  #modules .mod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(224px, auto); grid-auto-flow: dense;
  }
  #modules .mod-card:nth-child(1) { grid-column: span 2; grid-row: auto; }
  #modules .mod-card:nth-child(2), #modules .mod-card:nth-child(3) { grid-column: span 1; }
  #modules .mod-card:nth-child(6) { grid-column: span 2; }
  #modules .mod-card:nth-child(10) { grid-column: span 2; }
  #modules .mod-card { translate: 0 calc((1 - var(--scene-enter)) * 34px); transition: background .35s ease, box-shadow .35s ease, translate .65s cubic-bezier(.2,.8,.2,1); }
  #modules .mod-card.module-active {
    translate: 0 -7px; z-index: 3; background: #182323;
    box-shadow: 0 22px 48px rgba(0,0,0,.28), inset 0 0 0 1px var(--accent, var(--primary));
  }
  #modules .mod-card::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px;
    background: var(--accent, var(--primary-hover)); transition: width .45s ease;
  }
  #modules .mod-card.module-active::after { width: 100%; }
}

/* WALLET — i due wallet arrivano da lati opposti; paper entra come una plancia
   che si apre sotto di loro. */
#wallet .wal-card:nth-child(1) { translate: calc((1 - var(--scene-enter)) * -58px) 0; }
#wallet .wal-card:nth-child(2) { translate: calc((1 - var(--scene-enter)) * 58px) 0; }
#wallet .wal-paper { translate: 0 calc((1 - var(--scene-enter)) * 42px); }
#wallet .wal-facts { border-top: 1px solid rgba(var(--primary-rgb), .24); padding-top: 18px; }

/* COME FUNZIONA — la linea si disegna da sinistra a destra, come un percorso
   operativo, e non come quattro card che compaiono insieme. */
@media (min-width: 901px) {
  #how .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
  #how .steps::before {
    content: ""; position: absolute; left: 8%; right: 8%; top: 33px; height: 1px;
    background: linear-gradient(90deg, var(--primary-hover), var(--cyan));
    transform-origin: left; transform: scaleX(var(--scene-enter)); opacity: .65;
  }
  #how .step { z-index: 1; background: var(--bg-dark); transition: border-color .3s ease, translate .55s ease; }
  #how .step:nth-child(odd) { translate: 0 calc((1 - var(--scene-enter)) * 28px); }
  #how .step:nth-child(even) { translate: 0 calc((1 - var(--scene-enter)) * -28px); }
  #how .step:hover { border-color: var(--primary-hover); }
}
#how .how-paper { translate: 0 calc((1 - var(--scene-enter)) * 34px); }

/* PREZZI — tre altezze diverse: il confronto si compone come una scala. */
#pricing .price-card:nth-child(1) { translate: 0 calc((1 - var(--scene-enter)) * 62px); }
#pricing .price-card:nth-child(2) { translate: 0 calc((1 - var(--scene-enter)) * 28px); }
#pricing .price-card:nth-child(3) { translate: 0 calc((1 - var(--scene-enter)) * -12px); }
#pricing .price-card.featured { box-shadow: 0 24px 70px rgba(var(--primary-rgb), .20), 0 0 0 1px rgba(var(--primary-rgb), .28); }

/* COMMUNITY — i due canali aprono in direzioni diverse, poi i link si
   allineano. */
#community .dsc-free { translate: calc((1 - var(--scene-enter)) * -44px) 0; }
#community .dsc-prem { translate: calc((1 - var(--scene-enter)) * 44px) 0; }
#community .com-discord { translate: 0 calc((1 - var(--scene-enter)) * 30px); }
#community .com-telegram { translate: 0 calc((1 - var(--scene-enter)) * -30px); }

/* TOOLS — il foglio principale si apre e i calcolatori vengono timbrati uno
   alla volta. */
#tools .cal-card.cal-big { translate: calc((1 - var(--scene-enter)) * -38px) 0; }
#tools .cal-card:not(.cal-big) { translate: calc((1 - var(--scene-enter)) * 38px) 0; }
#tools .cal-tags li { opacity: 0; translate: 0 9px; transition: opacity .38s ease, translate .38s cubic-bezier(.2,.8,.2,1); }
#tools.scene-active .cal-tags li { opacity: 1; translate: none; }
#tools.scene-active .cal-tags li:nth-child(2) { transition-delay: 45ms; }
#tools.scene-active .cal-tags li:nth-child(3) { transition-delay: 90ms; }
#tools.scene-active .cal-tags li:nth-child(4) { transition-delay: 135ms; }
#tools.scene-active .cal-tags li:nth-child(5) { transition-delay: 180ms; }
#tools.scene-active .cal-tags li:nth-child(6) { transition-delay: 225ms; }
#tools.scene-active .cal-tags li:nth-child(7) { transition-delay: 270ms; }
#tools.scene-active .cal-tags li:nth-child(8) { transition-delay: 315ms; }

/* FAQ — una linea verticale cresce mentre la sezione prende il fuoco. */
#faq { position: relative; }
#faq::before {
  content: ""; position: absolute; left: max(18px, calc((100% - 880px) / 2 - 22px)); top: 74px; bottom: 74px;
  width: 1px; background: linear-gradient(var(--primary-hover), transparent);
  transform-origin: top; transform: scaleY(var(--scene-enter)); opacity: .55;
}
#faq .faq-item { translate: 0 calc((1 - var(--scene-enter)) * 18px); }

/* CTA / RISCHIO — chiusura verticale: il titolo prende aria, il rischio resta
   fermo e leggibile. */
#cta .cta-title { translate: 0 calc((1 - var(--scene-enter)) * 32px); }
#cta .cta-btns { translate: 0 calc((1 - var(--scene-enter)) * -18px); }
#risk .risk-box { border-left-width: calc(1px + var(--scene-focus) * 4px); transition: border-left-width .35s ease; }

@media (max-width: 1000px) {
  #modules .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  #modules .mod-card:nth-child(1), #modules .mod-card:nth-child(6), #modules .mod-card:nth-child(10) { grid-column: span 2; grid-row: auto; }
}

@media (max-width: 640px) {
  #modules .mod-grid { grid-template-columns: 1fr; }
  #modules .mod-card:nth-child(1), #modules .mod-card:nth-child(6), #modules .mod-card:nth-child(10) { grid-column: auto; }
  #wallet .wal-card:nth-child(1), #wallet .wal-card:nth-child(2), #wallet .wal-paper,
  #tools .cal-card.cal-big, #tools .cal-card:not(.cal-big), #community .dsc-free, #community .dsc-prem,
  #community .com-discord, #community .com-telegram { translate: 0 calc((1 - var(--scene-enter)) * 24px); }
  #faq::before { left: 10px; top: 54px; bottom: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-scene] * { translate: none !important; scale: 1 !important; }
  #how .steps::before { transform: none; }
  #faq::before { transform: none; }
  #tools .cal-tags li { opacity: 1; translate: none; transition: none; }
}

/* ==========================================================================
   MODULES / NEW COMPOSITION — una plancia, non una griglia di tessere
   ========================================================================== */
#modules .mod-grid { counter-reset: module; }
#modules .mod-grid::before { display: none; }
#modules .mod-card {
  --hover-x: 50%; --hover-y: 50%; --tilt-x: 0deg; --tilt-y: 0deg;
  position: relative; overflow: hidden; isolation: isolate;
  transform: perspective(1150px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translateY(var(--hover-lift, 0px));
  transform-style: preserve-3d;
  transition: transform .24s cubic-bezier(.2,.8,.2,1),
    background .28s ease, box-shadow .28s ease, border-color .28s ease,
    translate .65s cubic-bezier(.2,.8,.2,1);
}
#modules .mod-card::before {
  counter-increment: module; content: counter(module, decimal-leading-zero);
  position: absolute; top: 17px; right: 19px; z-index: 2;
  color: rgba(210, 220, 218, .34); font: 600 10px/1 var(--font-mono);
  letter-spacing: .14em; pointer-events: none;
}
#modules .mod-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px;
  background: var(--accent, var(--primary-hover));
  transition: width .32s ease; z-index: 4; pointer-events: none;
}
#modules .mod-card:hover,
#modules .mod-card.module-active:hover {
  --hover-lift: -8px; z-index: 6;
  transform: perspective(1150px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y))
    translateY(var(--hover-lift));
  background:
    radial-gradient(circle at var(--hover-x) var(--hover-y), rgba(255,255,255,.075), transparent 34%),
    #182323;
  border-color: color-mix(in srgb, var(--accent, var(--primary)) 75%, white 25%);
  box-shadow: 0 24px 52px rgba(0,0,0,.28), inset 0 0 0 1px var(--accent, var(--primary));
}
#modules .mod-card:hover::after,
#modules .mod-card.module-active::after { width: 100%; }
#modules .mod-card > * { position: relative; z-index: 1; }
#modules .mod-card .mc-ico { transition: transform .32s cubic-bezier(.2,.8,.2,1), color .25s ease; }
#modules .mod-card:hover .mc-ico { transform: translateZ(18px) scale(1.16) rotate(-8deg); color: var(--accent); }
#modules .mod-card .mc-name,
#modules .mod-card .mc-text { transition: transform .3s ease, color .3s ease; }
#modules .mod-card:hover .mc-name { transform: translateZ(12px); }
#modules .mod-card:hover .mc-text { color: #d4dfdc; }

@media (min-width: 1001px) {
  #modules .wrap { display: block; max-width: 1280px; }
  #modules .sect-head {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr);
    column-gap: clamp(44px, 8vw, 130px); align-items: end; margin-bottom: 48px;
  }
  #modules .sect-head .eyebrow { grid-column: 1 / -1; }
  #modules .sect-title { max-width: 650px; font-size: clamp(42px, 5.6vw, 76px); line-height: .94; letter-spacing: -.055em; }
  #modules .sect-sub {
    max-width: 430px; margin: 0 0 3px; padding: 5px 0 5px 22px;
    border-left: 1px solid var(--primary-hover); font-size: 15px; line-height: 1.7;
  }
  #modules .mod-grid {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(0, auto)); grid-auto-rows: auto;
    gap: 12px; border: 0; background: transparent;
  }
  #modules .mod-card {
    min-height: 176px; border: 1px solid rgba(149, 172, 167, .22); border-radius: 3px;
    background: var(--bg-card-solid); padding: 24px 25px;
  }
  #modules .mod-card.mod-card--hero { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 386px; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 30px; }
  #modules .mod-card--compact:nth-child(2) { grid-column: 8 / span 5; grid-row: 1; }
  #modules .mod-card--compact:nth-child(3) { grid-column: 8 / span 5; grid-row: 2; }
  #modules .mod-card--standard:nth-child(4) { grid-column: 1 / span 4; grid-row: 3; }
  #modules .mod-card--standard:nth-child(5) { grid-column: 5 / span 4; grid-row: 3; }
  #modules .mod-card--standard:nth-child(6) { grid-column: 9 / span 4; grid-row: 3; }
  #modules .mod-card--wide:nth-child(7) { grid-column: 1 / span 6; grid-row: 4; min-height: 202px; }
  #modules .mod-card--wide:nth-child(8) { grid-column: 7 / span 6; grid-row: 4; min-height: 202px; }
  #modules .mod-card--standard:nth-child(9) { grid-column: 1 / span 4; grid-row: 5; }
  #modules .mod-card--standard:nth-child(10) { grid-column: 5 / span 4; grid-row: 5; }
  #modules .mod-card--standard:nth-child(11) { grid-column: 9 / span 4; grid-row: 5; }
  #modules .mod-card--more { grid-column: 1 / span 12; grid-row: 6; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  #modules .mod-card--more .mc-text { max-width: 640px; margin: 0; }
  #modules .mod-card.mod-card--hero .mc-name { font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -.045em; }
  #modules .mod-card.mod-card--hero .mc-text { max-width: 610px; font-size: 15px; line-height: 1.7; }
  #modules .mod-card.mod-card--hero .mc-eyebrow { margin-top: auto; max-width: 650px; }
  #modules .mc-hero-art { position: absolute; top: 32px; right: 34px; width: min(40%, 270px); aspect-ratio: 1; opacity: .92; pointer-events: none; transition: transform .55s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
  #modules .mc-hero-art::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(168, 85, 247, .34); border-radius: 50%; box-shadow: 0 0 0 18px rgba(147, 51, 234, .035), 0 0 0 42px rgba(147, 51, 234, .025); }
  #modules .mc-hero-art::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, rgba(168,85,247,.6), transparent); transform: rotate(-28deg); }
  #modules .mc-hero-orbit { position: absolute; inset: 23% 2%; border: 1px solid rgba(16, 185, 129, .5); border-radius: 50%; transform: rotate(-26deg); }
  #modules .mc-hero-orbit-b { inset: 5% 25%; border-color: rgba(34, 211, 238, .4); transform: rotate(52deg); }
  #modules .mc-hero-core { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center; width: 76px; height: 76px; border: 1px solid #a855f7; border-radius: 50%; color: #fff; font: 700 25px/.8 var(--font-mono); text-align: center; background: rgba(16, 18, 20, .82); box-shadow: 0 0 38px rgba(147,51,234,.3); }
  #modules .mc-hero-core small { font-size: 8px; letter-spacing: .16em; color: var(--text-muted); }
  #modules .mc-hero-readout { position: absolute; right: 0; bottom: 2%; color: rgba(210, 220, 218, .5); font: 9px var(--font-mono); letter-spacing: .12em; }
  #modules .mod-card.mod-card--hero:hover .mc-hero-art { transform: translate3d(-7px, 5px, 24px) scale(1.04) rotate(4deg); opacity: 1; }
}

@media (max-width: 1000px) {
  #modules .mod-card { transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--hover-lift, 0px)); }
  #modules .mod-card.mod-card--hero { grid-column: span 2; min-height: 340px; }
  #modules .mod-card--more { grid-column: span 2; }
}

@media (max-width: 640px) {
  #modules .sect-head { margin-bottom: 30px; }
  #modules .sect-sub { border-left: 0; border-top: 1px solid var(--primary-hover); padding: 15px 0 0; margin-top: 18px; }
  #modules .mod-card.mod-card--hero, #modules .mod-card--more { grid-column: auto; }
  #modules .mod-card.mod-card--hero { min-height: 420px; padding: 22px; }
  #modules .mc-hero-art { top: 22px; right: 16px; width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  #modules .mod-card { transform: none !important; transition: none !important; }
  #modules .mod-card:hover .mc-ico,
  #modules .mod-card:hover .mc-name,
  #modules .mod-card--hero:hover .mc-hero-art { transform: none; }
}

/* ==========================================================================
   MODULES / VERTICAL INDEX — compatto, testo prima dell'immagine
   ========================================================================== */
#modules .wrap { max-width: 1180px; }
#modules .mod-grid {
  display: flex !important; flex-direction: column; gap: 0;
  border: 0; background: transparent; counter-reset: module;
}
#modules .mod-card,
#modules .mod-card.mod-card--hero,
#modules .mod-card.mod-card--compact,
#modules .mod-card.mod-card--standard,
#modules .mod-card.mod-card--wide,
#modules .mod-card.mod-card--more {
  grid-column: auto !important; grid-row: auto !important;
  display: grid; grid-template-columns: 52px minmax(210px, .78fr) minmax(0, 1.75fr) 118px;
  grid-template-rows: auto auto; align-items: center; gap: 4px 22px;
  width: 100%; min-height: 108px; margin: 0; padding: 18px 22px 17px 16px;
  border: 0; border-top: 1px solid rgba(149, 172, 167, .26); border-radius: 0;
  background-color: var(--bg-card-solid);
  background-repeat: no-repeat; background-position: right 26px center; background-size: 190px 92%;
  translate: 0 calc((1 - var(--scene-enter)) * 22px);
  transition: min-height .34s cubic-bezier(.2,.8,.2,1), padding .34s ease,
    background-color .28s ease, background-position .42s ease,
    box-shadow .28s ease, border-color .28s ease, translate .55s ease;
}
#modules .mod-card:last-child { border-bottom: 1px solid rgba(149, 172, 167, .26); }
#modules .mod-card::before {
  counter-increment: module; content: counter(module, decimal-leading-zero);
  position: static; grid-column: 1; grid-row: 1 / span 2; align-self: center;
  color: rgba(210, 220, 218, .36); font: 600 10px/1 var(--font-mono); letter-spacing: .14em;
}
#modules .mod-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: auto; width: 2px; height: 0;
  background: var(--accent, var(--primary-hover)); transition: height .32s ease; z-index: 4;
}
#modules .mod-card > * { position: relative; z-index: 1; }
#modules .mod-card .mc-head { display: contents; }
#modules .mod-card .mc-ico { grid-column: 1; grid-row: 1 / span 2; justify-self: center; margin-left: 28px; transition: transform .32s cubic-bezier(.2,.8,.2,1), color .25s ease; }
#modules .mod-card .mc-name { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; font-size: 18px; line-height: 1.08; letter-spacing: -.025em; transition: transform .3s ease, color .3s ease; }
#modules .mod-card .badge { grid-column: 4; grid-row: 1; justify-self: end; align-self: start; }
#modules .mod-card .mc-eyebrow { grid-column: 3; grid-row: 1; align-self: end; margin: 0; font-size: 9px; }
#modules .mod-card .mc-text { grid-column: 3; grid-row: 2; align-self: start; max-width: 730px; margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 1.48; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; transition: color .28s ease, -webkit-line-clamp .28s ease; }
#modules .mod-card.module-active { translate: 0; background-color: #121c1c; box-shadow: none; }
#modules .mod-card:hover,
#modules .mod-card.module-active:hover {
  --hover-lift: 0px; z-index: 6; min-height: 148px; padding-top: 25px; padding-bottom: 24px;
  background-color: #142020; background-position: right 16px center;
  border-color: rgba(149, 172, 167, .44); box-shadow: inset 0 0 0 1px rgba(149,172,167,.12), 0 16px 36px rgba(0,0,0,.18);
  transform: perspective(1150px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
}
#modules .mod-card:hover::after,
#modules .mod-card.module-active::after { width: 2px; height: 100%; }
#modules .mod-card:hover .mc-ico { transform: translateZ(14px) scale(1.12) rotate(-8deg); color: var(--accent); }
#modules .mod-card:hover .mc-name { transform: translateX(6px); color: #fff; }
#modules .mod-card:hover .mc-text { color: #d4dfdc; -webkit-line-clamp: 5; }

/* Ogni riga ha una propria traccia visiva, tenuta bassa e laterale. */
#modules .mod-card:nth-child(1) { background-image: radial-gradient(circle at 82% 50%, transparent 0 19%, rgba(168,85,247,.32) 20% 20.6%, transparent 21% 31%, rgba(168,85,247,.18) 31.5% 32%, transparent 32.5% 44%, rgba(16,185,129,.16) 44.5% 45%, transparent 45.5%); }
#modules .mod-card:nth-child(2) { background-image: linear-gradient(145deg, transparent 0 47%, rgba(16,185,129,.18) 48% 48.5%, transparent 49%), linear-gradient(0deg, transparent 0 48%, rgba(16,185,129,.12) 49% 49.5%, transparent 50%); }
#modules .mod-card:nth-child(3) { background-image: radial-gradient(circle at 84% 54%, rgba(168,85,247,.32) 0 2px, transparent 3px), radial-gradient(circle at 76% 38%, rgba(168,85,247,.18) 0 2px, transparent 3px), radial-gradient(circle at 91% 34%, rgba(168,85,247,.22) 0 2px, transparent 3px); background-size: 36px 36px, 42px 42px, 31px 31px; }
#modules .mod-card:nth-child(4) { background-image: linear-gradient(135deg, transparent 0 44%, rgba(34,211,238,.22) 45% 45.8%, transparent 46.5% 56%, rgba(34,211,238,.14) 57% 57.8%, transparent 58.5%); }
#modules .mod-card:nth-child(5) { background-image: radial-gradient(ellipse at 84% 52%, rgba(245,158,11,.22) 0 2px, transparent 3px), radial-gradient(ellipse at 84% 52%, transparent 0 20%, rgba(245,158,11,.18) 21% 21.8%, transparent 22% 40%, rgba(245,158,11,.1) 41% 41.8%, transparent 42%); }
#modules .mod-card:nth-child(6) { background-image: linear-gradient(90deg, transparent 48%, rgba(59,130,246,.22) 49% 50%, transparent 51%), linear-gradient(0deg, transparent 48%, rgba(59,130,246,.16) 49% 50%, transparent 51%); background-size: 86px 86px; }
#modules .mod-card:nth-child(7) { background-image: radial-gradient(circle at 82% 50%, rgba(234,179,8,.26) 0 2px, transparent 3px), linear-gradient(90deg, transparent 49%, rgba(234,179,8,.18) 49.5% 50.5%, transparent 51%), linear-gradient(0deg, transparent 49%, rgba(234,179,8,.18) 49.5% 50.5%, transparent 51%); background-size: auto, 72px 72px, 72px 72px; }
#modules .mod-card:nth-child(8) { background-image: linear-gradient(165deg, transparent 0 34%, rgba(168,85,247,.2) 35% 36%, transparent 37% 48%, rgba(168,85,247,.18) 49% 50%, transparent 51% 65%, rgba(168,85,247,.22) 66% 67%, transparent 68%); }
#modules .mod-card:nth-child(9) { background-image: radial-gradient(circle at 82% 50%, rgba(239,68,68,.23) 0 25%, transparent 26%), conic-gradient(from 210deg at 82% 50%, transparent 0 24%, rgba(239,68,68,.22) 25% 27%, transparent 28% 100%); }
#modules .mod-card:nth-child(10) { background-image: radial-gradient(circle at 80% 50%, rgba(20,184,166,.22) 0 3px, transparent 4px), radial-gradient(circle at 88% 43%, rgba(20,184,166,.16) 0 2px, transparent 3px), radial-gradient(circle at 92% 63%, rgba(20,184,166,.19) 0 2px, transparent 3px); }
#modules .mod-card:nth-child(11) { background-image: linear-gradient(150deg, transparent 0 42%, rgba(234,179,8,.2) 43% 44%, transparent 45% 55%, rgba(234,179,8,.16) 56% 57%, transparent 58%); }
#modules .mod-card:nth-child(12) { background-image: linear-gradient(90deg, transparent, rgba(149,172,167,.07), transparent); }

@media (min-width: 1001px) {
  #modules .sect-head { display: grid; grid-template-columns: minmax(430px, .72fr) minmax(0, 1.28fr); align-items: end; column-gap: 58px; margin-bottom: 30px; }
  #modules .sect-head .eyebrow { grid-column: 1 / -1; }
  #modules .sect-title { max-width: none; white-space: nowrap; font-size: clamp(40px, 4.3vw, 58px); line-height: .98; letter-spacing: -.055em; }
  #modules .sect-sub { max-width: none; margin: 0 0 2px; padding: 0 0 0 22px; border-left: 1px solid var(--primary-hover); font-size: 15px; line-height: 1.5; }
}

@media (max-width: 760px) {
  #modules .mod-card,
  #modules .mod-card.mod-card--hero,
  #modules .mod-card.mod-card--compact,
  #modules .mod-card.mod-card--standard,
  #modules .mod-card.mod-card--wide,
  #modules .mod-card.mod-card--more {
    grid-template-columns: 36px minmax(0, 1fr) 82px; grid-template-rows: auto auto auto;
    gap: 6px 12px; min-height: 132px; padding: 17px 14px 16px 10px;
  }
  #modules .mod-card .mc-ico { grid-column: 1; grid-row: 1 / span 3; margin-left: 0; }
  #modules .mod-card .mc-name { grid-column: 2; grid-row: 1; font-size: 16px; }
  #modules .mod-card .badge { grid-column: 3; grid-row: 1; }
  #modules .mod-card .mc-eyebrow { grid-column: 2 / 4; grid-row: 2; }
  #modules .mod-card .mc-text { grid-column: 2 / 4; grid-row: 3; -webkit-line-clamp: 3; }
  #modules .mod-card:hover { min-height: 178px; }
  #modules .mod-card { background-size: 120px 90%; background-position: right 8px center; }
  #modules .mod-card:hover { background-position: right 0 center; }
}

@media (prefers-reduced-motion: reduce) {
  #modules .mod-card, #modules .mod-card:hover { transform: none !important; transition: none !important; }
}

/* ==========================================================================
   SCANLINE APPROVED PASS — header compatto + rilievo 3D coerente
   ========================================================================== */
#modules .sect-head { display: block !important; margin-bottom: 22px !important; }
#modules .sect-head .eyebrow { margin: 0 0 4px !important; }
#modules .sect-title {
  white-space: nowrap; margin: 0 !important;
  font-size: clamp(40px, 4.3vw, 58px) !important;
}
#modules .sect-sub {
  width: 100% !important; max-width: none !important;
  margin: 14px 0 0 !important; padding: 0 !important; border: 0 !important;
  line-height: 1.5 !important;
}
#modules .mod-card {
  border-top-color: rgba(34, 211, 238, .24);
  background-color: #0d1617;
}
#modules .mod-card::after {
  width: 0; height: 1px; top: auto; bottom: 0;
  transition: width .3s ease;
}
#modules .mod-card:hover::after { width: 100%; }
#modules .mod-card .mc-name {
  text-transform: uppercase; font-size: 16px; letter-spacing: .04em;
}
#modules .mod-card:hover { background-color: #102224; }

/* Elk riquadro ha un bordo rialzato leggibile, senza trasformare la pagina in
   una griglia di pannelli pesanti. */
.hero-mock,
.mod-card,
.wal-card,
.wal-paper,
.how-paper,
.step,
.price-card,
.dsc-col,
.dsc-free,
.dsc-prem,
.dsc-box,
.com-card,
.com-discord,
.com-telegram,
.cal-card,
.faq-item,
.risk-box,
.pay-box {
  transform-style: preserve-3d;
  border: 1px solid rgba(149, 172, 167, .34) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .035) inset,
    0 4px 0 -2px rgba(4, 10, 10, .9),
    0 12px 24px rgba(0, 0, 0, .16) !important;
}
.hero-mock:hover,
.mod-card:hover,
.wal-card:hover,
.wal-paper:hover,
.how-paper:hover,
.step:hover,
.price-card:hover,
.dsc-col:hover,
.dsc-free:hover,
.dsc-prem:hover,
.dsc-box:hover,
.com-card:hover,
.com-discord:hover,
.com-telegram:hover,
.cal-card:hover,
.faq-item:hover,
.risk-box:hover,
.pay-box:hover {
  border-color: rgba(34, 211, 238, .62) !important;
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, .12) inset,
    0 5px 0 -2px rgba(4, 10, 10, .95),
    0 18px 32px rgba(0, 0, 0, .24) !important;
}
@media (max-width: 640px) {
  #modules .sect-title { white-space: normal; }
  #modules .sect-sub { margin-top: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-mock, .mod-card, .wal-card, .wal-paper, .how-paper, .step,
  .price-card, .dsc-col, .dsc-free, .dsc-prem, .dsc-box, .com-card,
  .com-discord, .com-telegram, .cal-card, .faq-item, .risk-box, .pay-box {
    transition: none !important;
  }
}

/* ==========================================================================
   CORREZIONI DOPO LA PREVIEW — gerarchia pulita e hover leggibile
   ========================================================================== */
/* La plancia hero deve fluttuare senza un secondo rettangolo attorno. */
.hero-mock,
.hero-mock:hover {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.hero-mock .mock-win {
  border: 0;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
}

/* Il primo modulo è un articolo come gli altri: niente scala display speciale. */
#modules .mod-card.mod-card--hero .mc-name,
#modules .mod-card .mc-name {
  font-size: 16px !important;
  line-height: 1.08 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
}

/* L'interazione resta nel rilievo 3D e nel bordo: nessuna barra colorata deve
   attraversare la scheda o coprire il testo quando il puntatore entra. */
#modules .mod-card::after,
#modules .mod-card:hover::after,
#modules .mod-card.module-active::after {
  display: none !important;
}
#modules .mod-card:hover {
  background-image: none !important;
  background-position: initial !important;
}

/* Tracce leggere dedicate ai due moduli inseriti nella sequenza. */
#modules .mod-card:nth-child(5) {
  background-image:
    linear-gradient(90deg, transparent 0 52%, rgba(34, 211, 238, .18) 52.5% 53%, transparent 53.5%),
    linear-gradient(0deg, transparent 0 42%, rgba(34, 211, 238, .12) 42.5% 43%, transparent 43.5%);
  background-size: 170px 100%, 170px 100%;
}
#modules .mod-card:nth-child(6) {
  background-image:
    linear-gradient(90deg, transparent 0 48%, rgba(56, 189, 248, .18) 48.5% 49%, transparent 49.5%),
    linear-gradient(0deg, transparent 0 64%, rgba(56, 189, 248, .16) 64.5% 65%, transparent 65.5%);
  background-size: 190px 100%, 190px 100%;
}
