/* ============================================================================
   ARCHETAIPE × EDILIZIA — "il motore del mercato gare"
   Design system "Dark Technical Blueprint": accento VIOLA #7C3AED, ambra #F59E0B
   come secondario caldo (parsimonia). Font Archivo + Inter + JetBrains Mono.

   Superficie: precisione dark (rif. Linear/Vercel) — glow UNO solo (hero),
   top-highlight di 1px sui pannelli, grana appena percepibile, easing firma
   unica, reveal allo scroll. Le regole del design system restano sovrane:
   1 accento (momento, mai superficie) · scala 8-pt · radius family ·
   una sola content-width · componenti solo da token.
   ============================================================================ */

:root {
  --bg:          #0A0B0D;
  --bg-grid:     #0C0E11;
  --panel:       #101216;
  --panel-2:     #15181E;
  --panel-3:     #1B1F26;
  --line:        rgba(255,255,255,.07);
  --line-2:      rgba(255,255,255,.12);
  --line-3:      rgba(255,255,255,.20);

  --text:        #F3F5F8;
  --text-2:      #AAB2BD;
  --text-3:      #6C7480;
  --text-faint:  #474E58;

  /* accento primario Archetaipe */
  --signal:      #8B5CF6;         /* viola, leggermente schiarito per il dark */
  --signal-2:    #7C3AED;         /* viola canonico */
  --signal-soft: rgba(139,92,246,.14);
  --signal-line: rgba(139,92,246,.40);
  /* secondario caldo — usato con parsimonia (il "cantiere") */
  --amber:       #F59E0B;
  --amber-soft:  rgba(245,158,11,.13);

  --ok:          #5CC8A0;
  --warn:        #E8B339;

  /* radius family */
  --r-sm:        8px;
  --r:           12px;
  --r-lg:        16px;
  --r-xl:        24px;

  /* scala 8-pt — ritmo verticale */
  --s-2: 8px;  --s-3: 16px; --s-4: 24px; --s-5: 32px;
  --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  /* 3 shadow tinte-ink + 1 glow (unico, riservato all'hero) */
  --sh-1:  0 1px 2px rgba(0,0,0,.30);
  --sh-2:  0 8px 24px -8px rgba(0,0,0,.55);
  --sh-3:  0 24px 64px -16px rgba(0,0,0,.70);
  --glow:  0 0 80px -20px rgba(139,92,246,.55);

  /* easing firma — una sola, ovunque */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Archivo', 'Inter', system-ui, sans-serif;
  --body:    'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1120px;

  /* superficie: velo chiaro che simula la luce sul bordo alto dei pannelli */
  --sheen: linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,0) 42%);
}

.light {
  --bg:          #F6F7F9;
  --bg-grid:     #EEF0F3;
  --panel:       #FFFFFF;
  --panel-2:     #F3F4F7;
  --panel-3:     #E9ECF0;
  --line:        rgba(15,23,38,.10);
  --line-2:      rgba(15,23,38,.17);
  --line-3:      rgba(15,23,38,.28);
  --text:        #161B22;
  --text-2:      #4A535F;
  --text-3:      #79828F;
  --text-faint:  #A6ADB8;
  --signal:      #7C3AED;
  --signal-2:    #6D28D9;
  --signal-soft: rgba(124,58,237,.10);
  --signal-line: rgba(124,58,237,.40);
  --amber:       #C77800;
  --amber-soft:  rgba(199,120,0,.10);
  --sh-1:  0 1px 2px rgba(15,23,38,.06);
  --sh-2:  0 8px 24px -10px rgba(15,23,38,.14);
  --sh-3:  0 24px 64px -20px rgba(15,23,38,.18);
  --glow:  0 0 80px -20px rgba(124,58,237,.30);
  --sheen: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 42%);
}

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

html { scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  /* trama blueprint discreta */
  background-image:
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: -1px -1px;
  overflow-x: hidden;
}
/* grana: toglie la piattezza del nero senza diventare texture */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.light body::after { opacity: .022; }

/* i numeri non ballano quando cambiano */
.mono, .big, .num, .n, .v, .metric .num, .stat .n { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

.mono { font-family: var(--mono); }
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-3);
  display: inline-flex; align-items: center; gap: 9px;
}
/* trattino che precede l'occhiello — segna l'inizio della sezione */
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--signal); opacity: .55;
}
.accent { color: var(--signal); }
.amber  { color: var(--amber); }

/* ------------------------------------------------------------------ Topbar */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: baseline; gap: 9px; font-family: var(--display); }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand .x { color: var(--signal); font-weight: 700; }
.brand span { font-weight: 600; font-size: 18px; color: var(--text-2); }
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 3px 9px; margin-left: 2px;
}
.topbar .spacer { flex: 1; }
.tbtn {
  font-family: var(--mono); font-size: 12px; color: var(--text-2);
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 6px 13px; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.tbtn:hover { color: var(--text); border-color: var(--line-3); transform: translateY(-1px); }

/* -------------------------------------------------------------------- Hero */
.hero { padding: var(--s-8) 0 var(--s-7); position: relative; overflow-x: clip; }
/* il GLOW: uno solo in tutta la pagina, qui.
   Largo al massimo quanto il suo contenitore: con 120vw su mobile sporgeva di
   37px e faceva scorrere la pagina di lato (misurato: scrollWidth 412 su 375). */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: -180px; left: 50%; transform: translateX(-50%);
  width: min(1100px, 100%); height: 620px;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
              rgba(139,92,246,.16) 0%, rgba(139,92,246,.06) 38%, transparent 70%);
}
.light .hero::before { background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(124,58,237,.10) 0%, transparent 70%); }

.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(34px, 5.4vw, 62px); line-height: 1.02; max-width: 16ch;
}
.hero h1 .hl { color: var(--signal); }
.hero .lead {
  margin-top: var(--s-4); font-size: clamp(16px, 1.7vw, 19px); color: var(--text-2);
  max-width: 58ch; line-height: 1.6;
}
/* riga di credibilità sotto il lead */
.hero .proof {
  margin-top: var(--s-4); display: flex; align-items: center; gap: var(--s-3);
  flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
}
.hero .proof .dot { width: 3px; height: 3px; border-radius: 999px; background: var(--text-faint); }
.hero .proof b { color: var(--text-2); font-weight: 500; }

/* fatto killer — confronto due province */
.killer {
  margin-top: var(--s-6); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  overflow: hidden; position: relative; box-shadow: var(--sh-3), var(--glow);
}
.killer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--sheen); border-radius: inherit;
}
.killer .kh {
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative;
}
.killer .kh .kt { font-size: 13.5px; color: var(--text-2); }
.killer .kh .kt b { color: var(--text); font-weight: 600; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; position: relative; }
.vs .cell { padding: var(--s-5) var(--s-4) var(--s-4); }
.vs .cell .cty { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.vs .cell .big {
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(48px, 8vw, 88px); line-height: .95; margin-top: var(--s-2);
}
.vs .cell .cap { margin-top: var(--s-2); font-size: 13px; color: var(--text-3); }
.vs .cell.win .big { color: var(--signal); }
.vs .cell.lose .big { color: var(--text); }
.vs .mid {
  display: flex; align-items: center; justify-content: center; padding: 0 6px;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.vs .mid span {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  writing-mode: vertical-rl; letter-spacing: .2em; text-transform: uppercase;
}
.killer .kf {
  padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-2); background: var(--signal-soft); position: relative;
}
.killer .kf b { color: var(--text); font-weight: 600; }

/* ----------------------------------------------------------------- Sezioni */
.section { padding: var(--s-8) 0; position: relative; }
/* separatore che svanisce ai lati — meno duro di un border pieno */
.section::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent);
}
.section > .wrap > .kicker { margin-bottom: var(--s-3); }
.section h2 {
  font-family: var(--display); font-weight: 700; letter-spacing: -.028em;
  font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; max-width: 24ch;
}
.section .sub { margin-top: var(--s-3); color: var(--text-2); max-width: 60ch; font-size: 15.5px; }

/* ------------------------------------------------------- Il motore (scena) */
/* la sezione-prodotto si distingue: fondo più profondo, respiro maggiore */
.stage { background: linear-gradient(180deg, transparent, rgba(0,0,0,.30) 12%, rgba(0,0,0,.30) 88%, transparent); }
.light .stage { background: linear-gradient(180deg, transparent, rgba(15,23,38,.035) 12%, rgba(15,23,38,.035) 88%, transparent); }
.stage .head { display: flex; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }
.stage .head .hx { flex: 1; min-width: 320px; }
.stage .head .live {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  border: 1px solid var(--signal-line); border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); background: var(--signal-soft);
}
.stage .head .live i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--signal);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.82); } }

.engine {
  margin-top: var(--s-5); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: var(--panel); overflow: hidden; position: relative; box-shadow: var(--sh-3);
}
.engine::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: var(--sheen); border-radius: inherit;
}
.controls {
  display: grid; grid-template-columns: 1.2fr 1.2fr 1.4fr; gap: 0;
  border-bottom: 1px solid var(--line); position: relative; background: var(--panel-2);
}
.controls .ctrl { padding: var(--s-3) 20px; border-right: 1px solid var(--line); }
.controls .ctrl:last-child { border-right: 0; }
.controls label {
  display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 9px;
}
.controls select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background-color: var(--panel); color: var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 34px 11px 13px; font-family: var(--body); font-size: 14.5px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C7480' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.controls select:hover { border-color: var(--line-3); }
.controls select:focus {
  outline: none; border-color: var(--signal-line);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.controls .hint { margin-top: var(--s-2); font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.controls .hint b { color: var(--signal); font-weight: 500; }

/* due letture affiancate */
.readings { display: grid; grid-template-columns: 1fr 1fr; position: relative; }
.reading { padding: var(--s-4) var(--s-4) var(--s-5); transition: background .3s var(--ease); }
.reading:first-child { border-right: 1px solid var(--line); }
.reading .rh { display: flex; align-items: baseline; gap: 10px; }
.reading .rh h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.reading .rh .on {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  margin-left: auto; text-align: right; line-height: 1.4;
}
.reading .rh .on b { color: var(--text-2); font-weight: 500; }
/* i risultati entrano quando cambia una scelta */
.reading > div[id] { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* chi vince: lista imprese */
.firms { margin-top: var(--s-3); display: flex; flex-direction: column; gap: 1px; }
.firm {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  transition: padding-left .25s var(--ease);
}
.firm:hover { padding-left: 6px; }
.firm:last-child { border-bottom: 0; }
.firm .rank { font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.firm .nm { font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.firm .nm .loc { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; }
.firm .nm .loc.out { color: var(--amber); }
.firm .w { font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.firm .w b { color: var(--signal); font-weight: 600; font-size: 14px; }

/* che ribasso: numero grande */
.metric { margin-top: var(--s-3); display: flex; align-items: flex-end; gap: 22px; }
.metric .num {
  font-family: var(--display); font-weight: 800; letter-spacing: -.04em;
  font-size: 68px; line-height: .88; color: var(--signal);
}
.metric .num.na { color: var(--text-faint); font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.metric .side { padding-bottom: 6px; font-size: 13px; color: var(--text-2); }
.metric .side b { color: var(--text); font-weight: 600; }
.subm { margin-top: var(--s-3); display: flex; gap: 12px; }
.subm .box {
  flex: 1; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; background: var(--panel-2);
}
.subm .box .l { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.subm .box .v { margin-top: 5px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }

/* ------------------------------------------- Istogramma: la forma del mercato */
.histo { margin-top: var(--s-4); }
.histo .hh {
  display: flex; align-items: baseline; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.histo .bars {
  margin-top: 10px; height: 92px; display: grid; grid-auto-flow: column;
  grid-auto-columns: 1fr; gap: 3px; align-items: end;
}
.histo .bar { height: 100%; display: flex; align-items: flex-end; }
.histo .bar i {
  display: block; width: 100%; border-radius: 3px 3px 0 0;
  background: var(--panel-3); border-top: 1px solid var(--line-3);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
/* le classi dentro la forchetta portano l'accento: è lì che si decide */
.histo .bar.in i { background: var(--signal-soft); border-top-color: var(--signal); }
.histo .bar:hover i { background: var(--signal-line); }
.histo .hx {
  margin-top: 6px; display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--text-faint);
}
.histo .hnote {
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-2);
}
.histo .hnote b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* nota "pochi dati" */
.thin {
  margin-top: var(--s-3); font-size: 12.5px; color: var(--warn);
  border-left: 2px solid var(--warn); padding: 4px 0 4px 12px; background: rgba(232,179,57,.06);
}
.empty { margin-top: var(--s-3); color: var(--text-3); font-size: 14px; }

/* ------------------------------------------------------------- Casi d'uso */
.cards3 { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.ucard {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--panel);
  padding: var(--s-4) var(--s-4) var(--s-3); display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.ucard::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--sheen); opacity: .6;
}
.ucard:hover { transform: translateY(-3px); border-color: var(--signal-line); box-shadow: var(--sh-2); }
.ucard .uic {
  width: 40px; height: 40px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center;
  background: var(--signal-soft); color: var(--signal); position: relative;
}
.ucard .uic .ic-svg { width: 19px; height: 19px; }
.ucard h3 { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; position: relative; }
.ucard p { font-size: 13.5px; color: var(--text-2); position: relative; }
.ucard .pin {
  margin-top: auto; padding-top: var(--s-2); font-family: var(--mono); font-size: 11px;
  color: var(--text-3); border-top: 1px solid var(--line); position: relative;
}
.ucard .pin b { color: var(--signal); font-weight: 600; }

/* ---------------------------------------------------- Aree — righe, non griglia */
/* formato diverso di proposito: rompe la sequenza di card e regge testi lunghi */
.rows { margin-top: var(--s-5); border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 64px 1fr 1.1fr; align-items: start; gap: var(--s-4);
  padding: var(--s-4) var(--s-2); border-bottom: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.row:hover { background: color-mix(in srgb, var(--panel) 55%, transparent); }
.row .idx {
  font-family: var(--mono); font-size: 12px; color: var(--text-faint);
  padding-top: 4px; letter-spacing: .08em;
}
.row .rt { display: flex; align-items: center; gap: 12px; }
.row .rt .uic {
  width: 34px; height: 34px; flex: none; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-3); color: var(--signal); border: 1px solid var(--line-2);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.row:hover .rt .uic { border-color: var(--signal-line); }
.row .rt .uic .ic-svg { width: 18px; height: 18px; }
/* il testo scende di 4px: allinea la sua prima riga col titolo, che l'icona
   da 34px tiene centrato — senza questo le due colonne partono sfalsate */
.row .rx { padding-top: 4px; }
.row h3 { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.row p { font-size: 14px; color: var(--text-2); }
.row .num-pin { margin-top: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.row .num-pin b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------- Piattaforma now/next */
.plat { margin-top: var(--s-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.pcol {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--panel);
  overflow: hidden; position: relative; box-shadow: var(--sh-1);
}
.pcol::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--sheen); opacity: .5; }
.pcol .ph {
  padding: var(--s-3) 22px; border-bottom: 1px solid var(--line); position: relative;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
}
.pcol.now .ph { color: var(--ok); background: rgba(92,200,160,.06); }
.pcol.next .ph { color: var(--amber); background: var(--amber-soft); }
.pcol ul { list-style: none; padding: 10px 22px var(--s-3); position: relative; }
.pcol li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.pcol li:last-child { border-bottom: 0; }
.pcol li b { color: var(--text); font-weight: 600; }
.pcol li .ic-svg { width: 15px; height: 15px; margin-top: 2px; }
.pcol.now li .ic-svg { color: var(--ok); }
.pcol.next li .ic-svg { color: var(--amber); }

/* --------------------------------------------------- Chiusura: fiducia + CTA */
.close .grid { margin-top: var(--s-5); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.stat {
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--panel);
  padding: var(--s-4) 20px; position: relative; overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.stat::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--sheen); opacity: .5; }
.stat:hover { border-color: var(--line-3); transform: translateY(-2px); }
.stat .n {
  font-family: var(--display); font-weight: 800; font-size: 38px; letter-spacing: -.04em;
  color: var(--text); position: relative; line-height: 1;
}
.stat .n .u { color: var(--signal); }
.stat .l { margin-top: 10px; font-size: 13px; color: var(--text-2); position: relative; }

.disclaimer {
  margin-top: var(--s-4); display: flex; gap: 12px; align-items: flex-start;
  border: 1px dashed var(--line-3); border-radius: var(--r); padding: 15px 18px;
  color: var(--text-3); font-size: 12.5px; background: var(--panel-2);
}
.disclaimer .ic-svg { flex: none; margin-top: 1px; color: var(--text-faint); }
.disclaimer b { color: var(--text-2); font-weight: 600; }

.cta {
  margin-top: var(--s-6); border: 1px solid var(--signal-line); border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--signal-soft) 0%, transparent 58%), var(--panel);
  padding: var(--s-6) var(--s-5); display: flex; align-items: center; gap: var(--s-4);
  flex-wrap: wrap; position: relative; overflow: hidden; box-shadow: var(--sh-2);
}
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--sheen); }
.cta h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -.03em; max-width: 20ch; position: relative; line-height: 1.08;
}
.cta p { margin-top: var(--s-3); color: var(--text-2); font-size: 14.5px; max-width: 52ch; position: relative; }
.cta .cx { flex: 1; min-width: 280px; }
.cta .mark {
  font-family: var(--mono); font-size: 12px; color: var(--text-3);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
  white-space: nowrap; position: relative;
}

/* ------------------------------------------------------------------ Footer */
.foot { border-top: 1px solid var(--line); padding: var(--s-5) 0 var(--s-7); color: var(--text-3); }
.foot .wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot .brand b { font-size: 15px; }
.foot .brand span { font-size: 15px; }
.foot .fx { flex: 1; }
.foot .note { font-size: 12px; max-width: 60ch; }

.ic-svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ------------------------------------------------------------------ Motion */
/* reveal allo scroll: opt-in via classe, così ciò che non è osservato resta visibile */
.rv { opacity: 0; transform: translateY(24px); }
.rv.in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .rv.in { opacity: 1; transform: none; transition: none; }
  .reading > div[id] { animation: none; }
  .stage .head .live i { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .row { grid-template-columns: 44px 1fr; }
  .row .rx { grid-column: 2; }
}
@media (max-width: 860px) {
  .hero { padding: var(--s-6) 0 var(--s-5); }
  .section { padding: var(--s-7) 0; }
  .cards3 { grid-template-columns: 1fr; }
  .plat { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .controls .ctrl { border-right: 0; border-bottom: 1px solid var(--line); }
  .readings { grid-template-columns: 1fr; }
  .reading:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .close .grid { grid-template-columns: repeat(2, 1fr); }
  .vs { grid-template-columns: 1fr; }
  .vs .mid { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px; }
  .vs .mid span { writing-mode: horizontal-tb; }
  .stage .head { gap: var(--s-3); }
}
@media (max-width: 520px) {
  .close .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: var(--s-2); }
  .row .idx { display: none; }
  /* in colonna i separatori restano orfani a fine riga: si tolgono */
  .hero .proof { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hero .proof .dot { display: none; }
}
