/* Via Francesco Frisi 9, Monza: pagina di presentazione dello studio di geomarketing. Marchio Wellink. */

@font-face {
  font-family: "Montserrat";
  src: url("font/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --mr { syntax: "<length>"; inherits: true; initial-value: 0px; }

:root {
  --rosso: #E52329;
  --rosso-scuro: #AB0101;
  --inchiostro: #111111;
  --testo: #2c2b29;
  --testo-2: #52514E;
  --muto: #898781;
  --linea: #E1E0D9;
  --pannello: #F4F4F2;
  --carta: #FAFAF8;
  --blu: #246ca5;
  --ok: #1f8a5b;
  --l0: #feb5ad; --l1: #f88176; --l2: #e64842; --l3: #c10f1b; --l4: #6b0c0e;
  --barra: 64px;
  --margine: clamp(20px, 4.2vw, 64px);
  --largo: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--barra) + 16px); }
body {
  margin: 0;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  color: var(--inchiostro);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 750; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--inchiostro); outline-offset: 3px; border-radius: 6px; }
.scuro :focus-visible { outline-color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.salta { position: fixed; left: 12px; top: -80px; z-index: 60; background: var(--inchiostro); color: #fff; padding: 12px 18px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.salta:focus { top: 12px; }

/* ------------------------------------------------------------------ barra */
.barra {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: var(--barra);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 var(--margine);
  background: #fff; border-bottom: 1px solid rgba(17, 17, 17, .07);
}
.barra-logo { justify-self: start; padding: 10px 0; border-radius: 4px; }
.barra-logo img { width: 132px; height: auto; }
.barra-capitolo {
  justify-self: center; margin: 0; display: flex; align-items: center; gap: 10px; min-height: 26px;
  font-size: 14px; font-weight: 650; color: var(--testo-2); white-space: nowrap;
  opacity: 0; transition: opacity .4s ease;
}
.barra-capitolo.on { opacity: 1; }
.barra-capitolo b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--rosso); color: #fff; font-size: 12px; font-weight: 800; }
.barra-capitolo b:empty { display: none; }
.barra-capitolo span { display: inline-block; }
.barra-pdf {
  justify-self: end; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap;
  padding: 9px 17px; border: 1.5px solid var(--inchiostro); border-radius: 999px;
  font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s;
}
.barra-pdf span { font-size: 12.5px; font-weight: 500; color: var(--muto); transition: color .2s; }
.barra-pdf:hover { background: var(--inchiostro); color: #fff; }
.barra-pdf:hover span { color: #cfcec8; }
.avanzamento { position: fixed; inset: 0 0 auto 0; z-index: 31; height: 3px; pointer-events: none; }
.avanzamento i { display: block; height: 100%; background: var(--rosso); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ------------------------------------------------------------------ racconto con la mappa */
.storia { position: relative; }
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--carta); }
#mappa { position: absolute; inset: 0; width: 100%; height: 100%; --mpp: 2.4; }
.js #mappa {
  -webkit-mask-image: radial-gradient(circle at var(--mx, 74%) var(--my, 54%), #000 calc(var(--mr) - 220px), transparent var(--mr));
  mask-image: radial-gradient(circle at var(--mx, 74%) var(--my, 54%), #000 calc(var(--mr) - 220px), transparent var(--mr));
  animation: rivela 2.1s cubic-bezier(.55, 0, .25, 1) .2s both;
}
.js #mappa.rivelata { -webkit-mask-image: none; mask-image: none; animation: none; }
/* senza JavaScript su schermi stretti: il civico 9 sale sopra la scheda iniziale */
@media (max-width: 899px) { .no-js #mappa { transform: translateY(-30%); } }
@keyframes rivela { from { --mr: 0px; } to { --mr: 3200px; } }

.velo { position: absolute; top: 0; bottom: 0; pointer-events: none; transition: opacity .8s var(--ease); }
.velo-dx { right: 0; width: 50%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9) 22%, #fff 34%); }
.velo-sx { left: 0; width: 58%; opacity: 0; background: linear-gradient(270deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9) 22%, #fff 36%); }
.palco[data-stato="apertura"] .velo-sx { opacity: 1; }
.palco[data-stato="apertura"] .velo-dx { opacity: 0; }
.crediti-mappa { position: absolute; left: var(--margine); bottom: 10px; margin: 0; font-size: 10.5px; color: var(--muto); z-index: 1; }
.palco[data-stato="apertura"] .crediti-mappa { left: auto; right: var(--margine); }

.impulso-html { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .5s; will-change: transform; }
.impulso-html.on { opacity: 1; }
.impulso-html::before, .impulso-html::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--rosso); animation: onda 2.8s cubic-bezier(.15, .6, .3, 1) infinite; }
.impulso-html::after { animation-delay: 1.4s; }
.palco.fermo .impulso-html::before, .palco.fermo .impulso-html::after { animation-play-state: paused; }
@keyframes onda { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(6); opacity: 0; } }

.passi { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; pointer-events: none; }
.passo { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: flex-end; padding: calc(var(--barra) + 36px) var(--margine) 56px; }
.passo .carta { width: min(36vw, 500px); pointer-events: auto; }
.passo.apertura { justify-content: flex-start; }
.passo.apertura .carta { width: min(44vw, 620px); }
.passo.lungo { min-height: 250vh; align-items: flex-start; }
.passo.lungo .carta { position: sticky; top: calc(var(--barra) + 7vh); }

.carta .cap, .blocco .cap { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 14px; font-weight: 700; color: var(--rosso); }
.cap b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--rosso); color: #fff; font-size: 13px; font-weight: 800; }
.carta h2 { font-size: clamp(23px, 2.05vw, 31px); line-height: 1.16; letter-spacing: -.022em; margin-bottom: 18px; }
.carta p { font-size: 16px; color: var(--testo); }
.carta .nota-passo { font-size: 13.5px; line-height: 1.5; color: var(--muto); margin: 14px 0 0; }

.apertura .sopra { margin-bottom: 20px; font-size: 15px; font-weight: 700; color: var(--rosso); }
.apertura h1 { font-size: clamp(44px, 5.7vw, 90px); line-height: .98; letter-spacing: -.042em; font-weight: 800; margin-bottom: 28px; }
.apertura .lede { max-width: 33em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--testo-2); }
.apertura .lede strong { display: block; margin-top: .6em; color: var(--inchiostro); }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 32px; }
.apertura .data { margin: 16px 0 0; font-size: 13px; color: var(--muto); }

.bottone {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
  border: 1.5px solid var(--inchiostro); border-radius: 999px; background: #fff; color: var(--inchiostro);
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.bottone:hover { background: var(--inchiostro); color: #fff; }
.bottone:active { transform: scale(.98); }
.bottone.primario { background: var(--rosso); border-color: var(--rosso); color: #fff; }
.bottone.primario:hover { background: var(--rosso-scuro); border-color: var(--rosso-scuro); }

/* legende */
.legenda { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; font-size: 13px; font-weight: 600; color: var(--testo-2); }
.legenda li { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; flex: none; width: 18px; height: 11px; border-radius: 3px; }
.sw.b0 { background: rgba(229, 35, 41, .62); }
.sw.b1 { background: rgba(240, 102, 92, .45); }
.sw.b2 { background: rgba(248, 129, 118, .28); box-shadow: inset 0 0 0 1px rgba(193, 15, 27, .25); }
.pt { display: inline-block; flex: none; width: 11px; height: 11px; border-radius: 50%; }
.pt-d { background: var(--inchiostro); }
.pt-i { background: #7d7c76; }
.pt-m { background: #C9C8C2; }
.pt-add { background: var(--blu); opacity: .75; }
.pt-cl { background: var(--rosso); }
.pt.l0 { background: var(--l0); } .pt.l1 { background: var(--l1); } .pt.l2 { background: var(--l2); } .pt.l3 { background: var(--l3); } .pt.l4 { background: var(--l4); }
.ln { display: inline-block; width: 20px; border-top: 2px solid #C10F1B; }
.ln-confine { border-top: 1.5px dashed #6a6964; }
.legenda-mappa { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--linea); }
.carta .legenda-mappa p { margin-bottom: 10px; font-size: 13.5px; line-height: 1.5; color: var(--testo-2); }

/* barre nelle schede */
.barre { list-style: none; display: grid; gap: 9px; margin: 4px 0 18px; padding: 0; }
.barre[hidden] { display: none; }
.barre li { display: grid; grid-template-columns: 10.5em 1fr 4.4em; align-items: center; gap: 12px; font-size: 13.5px; }
.barre .et { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--testo-2); }
.barre b { text-align: right; font-size: 15px; font-variant-numeric: tabular-nums; }
.tr { position: relative; display: block; height: 10px; overflow: hidden; border-radius: 5px; background: var(--pannello); }
.tr i { position: absolute; inset: 0; border-radius: 5px; background: var(--rosso); transform-origin: 0 50%; transform: scaleX(var(--q)); transition: transform 1.1s var(--ease); }
.barre li:nth-child(2) .tr i { background: #F0665C; transition-delay: .12s; }
.barre li:nth-child(3) .tr i { background: #F8A39A; transition-delay: .24s; }
.moto .passo:not(.visto) .tr i, .moto .blocco:not(.visto) .tr i { transform: scaleX(0); }

.distanze { width: 100%; margin: 4px 0 2px; border-collapse: collapse; font-size: 13.5px; }
.distanze caption { padding-bottom: 6px; text-align: left; font-size: 13px; font-weight: 700; color: var(--testo-2); }
.distanze thead th { padding: 0 0 5px; border-bottom: 1px solid var(--linea); text-align: right; font-size: 11.5px; font-weight: 600; color: var(--muto); }
.distanze thead th:first-child { text-align: left; }
.distanze tbody th { padding: 5px 10px 5px 0; text-align: left; font-weight: 600; }
.distanze td { padding: 5px 0 5px 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--testo-2); }
.distanze tbody tr + tr > * { border-top: 1px solid #EEEDE8; }

.cifre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 4px 0 20px; }
.cifre > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.cifre dd { margin: 0; font-size: clamp(26px, 2.3vw, 36px); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--rosso); font-variant-numeric: tabular-nums; }
.cifre dt { font-size: 12.5px; line-height: 1.35; font-weight: 550; color: var(--testo-2); }

.interruttore { display: inline-flex; gap: 2px; margin: 0 0 16px; padding: 4px; border-radius: 999px; background: var(--pannello); }
.interruttore button {
  min-height: 38px; padding: 8px 17px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--testo-2); transition: background .25s, color .25s, box-shadow .25s;
}
.interruttore button:hover { color: var(--inchiostro); }
.interruttore button[aria-pressed="true"] { background: #fff; color: var(--inchiostro); box-shadow: 0 1px 3px rgba(17, 17, 17, .14); }
.no-js .interruttore, .no-js .filtri { display: none; }

.contatore { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--testo-2); }
.contatore b { font-size: 22px; font-weight: 800; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.contatore [data-trovati] { font-size: 27px; color: var(--rosso); }
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.filtri button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 14px 7px 11px;
  border: 1.5px solid var(--linea); border-radius: 999px; background: #fff; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--inchiostro); transition: border-color .2s, opacity .2s;
}
.filtri button[aria-pressed="true"] { border-color: var(--inchiostro); }
.filtri button[aria-pressed="false"] { opacity: .5; }

.vicini { list-style: none; display: grid; gap: 1px; margin: 0 0 8px; padding: 0; }
.vicini li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 8px; font-size: 14px; transition: background .2s; }
.vicini li:hover, .vicini li.acceso { background: var(--pannello); }
.vicini b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--inchiostro); color: #fff; font-size: 11px; font-weight: 800; }
.vicini span { font-weight: 600; }
.vicini span small { display: block; font-size: 12px; font-weight: 500; color: var(--muto); }
.vicini li.sc b { background: #8f8e88; }
.vicini em { font-style: normal; font-size: 13px; color: var(--muto); font-variant-numeric: tabular-nums; }
.altri { margin: 0 0 14px; }
.altri summary { padding: 6px; border-radius: 8px; cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--testo-2); }
.altri summary:hover { color: var(--inchiostro); }

.scheda-conc {
  position: absolute; left: 0; top: 0; z-index: 6; max-width: 270px; padding: 12px 14px;
  border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(17, 17, 17, .18);
  font-size: 13px; line-height: 1.42; pointer-events: none;
}
.scheda-conc b { display: block; margin-bottom: 3px; font-size: 14.5px; }
.scheda-conc span { display: block; color: var(--testo-2); }
.scheda-conc em { display: block; font-style: normal; color: var(--muto); }
.scheda-conc .segni { display: block; margin-top: 5px; padding-top: 5px; border-top: 1px solid currentColor; border-color: rgba(17,17,17,.12); font-style: normal; font-weight: 600; color: var(--testo-2); }

/* ------------------------------------------------------------------ mappa */
#mappa path, #mappa circle { vector-effect: non-scaling-stroke; }
#mappa .verde { fill: #E8EDE1; }
#mappa .acqua { fill: #D5E1EA; }
#mappa .fiumi { fill: none; stroke: #C2D4E0; stroke-width: 2.2px; stroke-linecap: round; }
#mappa .s-lontane, #mappa .s-vicoli { fill: none; stroke: #E2E1DB; stroke-width: .75px; }
#mappa .s-vicine { fill: none; stroke: #D8D7D0; stroke-width: 1px; }
#mappa .s-terz { fill: none; stroke: #CAC9C2; stroke-width: 1.3px; }
#mappa .s-princ { fill: none; stroke: #B7B6AE; stroke-width: 1.9px; }
#mappa .ferrovia { fill: none; stroke: #A3A29C; stroke-width: 1.2px; stroke-dasharray: 6 3; }
#m-edifici path { fill: #E6E5DF; stroke: #D9D8D1; stroke-width: .5px; }
#m-pedonali path { fill: none; stroke: var(--rosso); stroke-width: 2.6px; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
#m-confine path { fill: none; stroke: #6a6964; stroke-width: 1.2px; stroke-dasharray: 3 4; }
#mappa .iso .b0 { fill: #E52329; fill-opacity: .5; }
#mappa .iso .b1 { fill: #F0665C; fill-opacity: .33; }
#mappa .iso .b2 { fill: #F88176; fill-opacity: .2; }
#mappa .iso .contorno, #m-contorno path { fill: none; stroke: #C10F1B; stroke-width: 1.5px; }
#m-iso-bici .contorno, #m-iso-auto .contorno { stroke-dasharray: 6 4; }

#mappa .strato { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
#mappa .strato.on { opacity: 1; visibility: visible; transition: opacity .6s ease, visibility 0s; }
.js #m-iso-piedi.intro path { opacity: 0; transition: opacity .9s ease; }
.js #m-iso-piedi.intro.via .b0 { opacity: 1; transition-delay: .9s; }
.js #m-iso-piedi.intro.via .b1 { opacity: 1; transition-delay: 1.25s; }
.js #m-iso-piedi.intro.via .b2, .js #m-iso-piedi.intro.via .contorno { opacity: 1; transition-delay: 1.6s; }

#m-punti path { fill: none; stroke-linecap: round; }
#m-residenti .l0 { stroke: var(--l0); } #m-residenti .l1 { stroke: var(--l1); } #m-residenti .l2 { stroke: var(--l2); }
#m-residenti .l3 { stroke: var(--l3); } #m-residenti .l4 { stroke: var(--l4); } #m-residenti .lx { stroke: #C9C8C2; }
#m-addetti path { stroke: var(--blu); opacity: .58; }
#m-clienti path { stroke: var(--rosso); opacity: .82; }

#m-conc .c { fill: none; stroke-linecap: round; stroke-width: 8px; transition: opacity .35s, stroke-width .35s, stroke .2s; }
#m-conc .c-d { stroke: var(--inchiostro); }
#m-conc .c-i { stroke: #7d7c76; stroke-width: 7px; }
#m-conc .c-m { stroke: #BDBCB5; stroke-width: 6px; }
#m-conc .c.sc { opacity: .42; }
#m-conc .c.fuori { opacity: .14; }
#mappa.no-d .c-d, #mappa.no-i .c-i, #mappa.no-m .c-m { opacity: 0 !important; }
.palco[data-stato="vicini"] #m-conc .c:not(.num) { opacity: .16; }
.palco[data-stato="vicini"] #m-conc .c.num { stroke: var(--inchiostro); stroke-width: 21px; }
#m-conc .c.acceso { stroke: var(--rosso) !important; }
#m-numeri text { fill: #fff; stroke: none; font-size: calc(var(--mpp) * 10.5px); font-weight: 800; text-anchor: middle; pointer-events: none; }
#m-anello .anello { fill: rgba(229, 35, 41, .045); stroke: var(--rosso); stroke-width: 1.6px; stroke-dasharray: 6 5; }
#m-anello .anello-t { fill: var(--rosso); font-size: calc(var(--mpp) * 13px); font-weight: 800; text-anchor: middle; }

#mappa text { font-family: "Montserrat", sans-serif; font-size: calc(var(--mpp) * 12px); font-weight: 600; fill: var(--testo-2); paint-order: stroke; stroke: var(--carta); stroke-width: calc(var(--mpp) * 3.4px); stroke-linejoin: round; }
#m-luoghi .luogo { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
#m-luoghi .luogo.on { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
#m-luoghi .luogo path { stroke: var(--testo-2); stroke-width: 5px; stroke-linecap: round; }
#m-luoghi .luogo text { font-size: calc(var(--mpp) * 11.5px); font-weight: 650; fill: #3d3c39; }
#m-luoghi text.fine { text-anchor: end; }
#m-luoghi .l-citta text { font-size: calc(var(--mpp) * 12.5px); font-weight: 750; fill: var(--inchiostro); }
#m-luoghi .l-citta path { stroke: var(--inchiostro); stroke-width: 6px; }
#m-luoghi .l-parcheggio path { stroke: var(--blu); stroke-width: 15px; stroke-linecap: square; }
#m-luoghi .l-parcheggio text.p { fill: #fff; stroke: none; font-size: calc(var(--mpp) * 10px); font-weight: 800; text-anchor: middle; }
#m-luoghi .l-parcheggio .p-nome { font-size: calc(var(--mpp) * 10.5px); font-weight: 700; fill: var(--blu); }
#m-sito .impulso { display: none; }
#m-sito .sito-alone { stroke: #fff; stroke-width: 24px; stroke-linecap: round; }
#m-sito .sito { stroke: var(--rosso); stroke-width: 15px; stroke-linecap: round; }
#m-sito .sito-t { font-size: calc(var(--mpp) * 13.5px); font-weight: 800; fill: var(--inchiostro); text-anchor: middle; stroke-width: calc(var(--mpp) * 4px); }

/* ------------------------------------------------------------------ blocchi dopo la mappa */
.blocco { position: relative; padding: clamp(96px, 12vw, 176px) var(--margine); background: #fff; }
.largo { max-width: var(--largo); margin: 0 auto; }
.blocco h2 { max-width: 21ch; margin-bottom: 26px; font-size: clamp(32px, 4.1vw, 60px); line-height: 1.04; letter-spacing: -.036em; font-weight: 800; }
.blocco .lede { max-width: 44em; margin-bottom: 56px; font-size: clamp(17px, 1.3vw, 19px); color: var(--testo-2); }
.fonte { max-width: 72em; margin: 28px 0 0; font-size: 13px; line-height: 1.55; color: var(--muto); }

[data-parole] .parola { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .1em 0; margin-bottom: -.1em; }
[data-parole] .parola > span { display: inline-block; }

/* imbuto */
.imbuto { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--inchiostro); }
.imbuto li { display: grid; grid-template-columns: minmax(150px, 16%) 1fr minmax(220px, 27%); align-items: center; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--linea); }
.imbuto .numero { font-size: clamp(28px, 3.2vw, 46px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.imbuto .cosa { font-size: 17px; line-height: 1.35; font-weight: 650; }
.imbuto .cosa em { display: block; margin-top: 4px; font-style: normal; font-size: 14px; font-weight: 450; color: var(--muto); }
.imbuto .quota { display: grid; grid-template-columns: 1fr 4.2em; align-items: center; gap: 12px; }
.imbuto .quota .tr { height: 8px; }
.imbuto .quota .tr i { background: var(--inchiostro); }
.imbuto .pc { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.imbuto li:nth-child(2) .tr i { transition-delay: .1s; } .imbuto li:nth-child(3) .tr i { transition-delay: .25s; }
.imbuto li:nth-child(4) .tr i { transition-delay: .4s; } .imbuto li:nth-child(5) .tr i { transition-delay: .55s; } .imbuto li:nth-child(6) .tr i { transition-delay: .7s; }
.imbuto .ultimo .numero { color: var(--rosso); }
.imbuto .ultimo .quota .tr i { background: var(--rosso); }

/* formati */
.formati-grafico { margin: 8px 0 64px; }
.righe-f { padding-bottom: 30px; }
.riga-f { display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--linea); }
.riga-f:first-child { border-top: 1.5px solid var(--inchiostro); }
.nome-f { margin: 0; }
.nome-f b { display: block; font-size: 18px; }
.nome-f span { font-size: 13px; color: var(--muto); }
.pista { position: relative; height: 64px; }
.pista::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--linea); }
.int-f { position: absolute; top: calc(50% - 7px); left: calc(var(--p10) * 100%); width: calc((var(--p90) - var(--p10)) * 100%); height: 14px; border-radius: 7px; background: rgba(229, 35, 41, .17); transform-origin: calc((var(--v) - var(--p10)) / (var(--p90) - var(--p10)) * 100%) 50%; transition: transform 1s var(--ease) .35s; }
.pz-f { position: absolute; top: calc(50% - 17px); left: calc(var(--pz) * 100%); width: 2px; height: 34px; margin-left: -1px; background: var(--inchiostro); }
.pz-f em { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 4px); font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--testo-2); }
.v-f { position: absolute; top: 50%; left: calc(var(--v) * 100%); width: 17px; height: 17px; margin: -8.5px 0 0 -8.5px; border-radius: 50%; background: var(--rosso); box-shadow: 0 0 0 3px #fff; transition: left 1.2s var(--ease); }
.v-f em { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px); font-style: normal; font-size: 17px; font-weight: 800; color: var(--inchiostro); font-variant-numeric: tabular-nums; }
.riga-f + .riga-f .v-f { transition-delay: .12s; } .riga-f + .riga-f + .riga-f .v-f { transition-delay: .24s; }
.moto .blocco:not(.visto) .v-f { left: 0; }
.moto .blocco:not(.visto) .int-f { transform: scaleX(0); }
.asse-f { position: relative; height: 22px; margin-left: 298px; font-size: 12px; color: var(--muto); font-variant-numeric: tabular-nums; }
.asse-f span { position: absolute; top: 8px; left: calc(var(--x) * 100%); transform: translateX(-50%); }
.asse-f em { position: absolute; top: 8px; right: 0; font-style: normal; }
.legenda.chiara { margin-top: 18px; }
.sw-int { width: 26px; height: 12px; border-radius: 6px; background: rgba(229, 35, 41, .17); }
.sw-pz { width: 2px; height: 16px; border-radius: 0; background: var(--inchiostro); }
.pt-v { width: 13px; height: 13px; background: var(--rosso); }

.schede-f .interruttore { margin-bottom: 6px; }
.scheda-f { padding-top: 14px; }
.scheda-f[hidden] { display: none; }
.scheda-f + .scheda-f { margin-top: 18px; }
.js .scheda-f + .scheda-f { margin-top: 0; }
.nome-scheda { margin: 0 0 12px; font-size: 15px; color: var(--testo-2); }
.js .nome-scheda { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.scheda-f dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1.5px solid var(--inchiostro); }
.scheda-f dl > div { padding: 18px 20px 20px 0; border-bottom: 1px solid var(--linea); }
.scheda-f dt { margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--testo-2); }
.scheda-f dd { margin: 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.scheda-f dd small { display: block; margin-top: 6px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muto); }
.scheda-f dd.neg { color: var(--rosso); }
.scheda-f dd.pos { color: var(--ok); }

/* giudizio */
.scuro { background: var(--inchiostro); color: #fff; }
.scuro .lede { color: #B9B8B2; }
.giudizi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 52px; }
.giudizio { padding-top: 26px; border-top: 2px solid rgba(255, 255, 255, .16); }
.giudizio h3 { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px; font-size: 19px; }
.giudizio h3 span { font-size: 13px; font-weight: 500; color: #9C9B95; }
.esito { margin: 0 0 34px; font-size: clamp(32px, 3.3vw, 48px); line-height: 1; font-weight: 800; letter-spacing: -.032em; }
.g-regge .esito { color: #5FD39A; }
.g-in-bilico .esito { color: #F2B04C; }
.g-non-regge .esito { color: #FF4D52; }
.metro { position: relative; height: 12px; margin: 0 0 14px; border-radius: 6px; background: rgba(255, 255, 255, .13); }
.metro i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--q) * 100%); border-radius: 6px; transform-origin: 0 50%; transition: transform 1.4s var(--ease) .2s; }
.g-regge .metro i { background: #5FD39A; }
.g-in-bilico .metro i { background: #F2B04C; }
.g-non-regge .metro i { background: #FF4D52; }
.moto .blocco:not(.visto) .metro i { transform: scaleX(0); }
.tacca { position: absolute; top: -7px; bottom: -7px; left: calc(var(--t) * 100%); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .78); }
.tacca em { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -4px); font-style: normal; font-size: 11.5px; font-weight: 600; color: #9C9B95; }
.lettura { margin: 0 0 6px; font-size: 15px; color: #CFCEC8; }
.lettura b { margin-right: 4px; font-size: 28px; color: #fff; font-variant-numeric: tabular-nums; }
.dettaglio { font-size: 13.5px; color: #9C9B95; }
.come-si-legge { max-width: 62em; margin: 0; padding-left: 18px; border-left: 3px solid var(--rosso); font-size: 16px; color: #CFCEC8; }
.come-si-legge b { color: #fff; }

/* che cosa fare */
.consigli { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; margin: 18px 0 88px; }
.consigli h3 { position: relative; margin-bottom: 10px; padding-top: 18px; font-size: 19px; }
.consigli h3::before { content: ""; position: absolute; left: 0; top: 0; width: 30px; height: 3px; background: var(--rosso); }
.consigli p { font-size: 15.5px; color: var(--testo); }
.sotto { margin-bottom: 22px; font-size: clamp(22px, 2vw, 28px); letter-spacing: -.02em; }
.verifiche { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin: 0; padding: 0; border-top: 1.5px solid var(--inchiostro); }
.verifiche li { position: relative; padding: 18px 0 18px 32px; border-bottom: 1px solid var(--linea); font-size: 15.5px; color: var(--testo); }
.verifiche li::before { content: ""; position: absolute; left: 3px; top: 25px; width: 13px; height: 13px; border: 2px solid var(--rosso); border-radius: 4px; }
.verifiche b { color: var(--inchiostro); }

/* metodo */
.metodo { background: var(--pannello); }
.metodo h2 { font-size: clamp(30px, 3.3vw, 46px); }
.cifre.quattro { grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 22px 0 52px; }
.cifre.quattro dd { font-size: clamp(36px, 4.2vw, 60px); color: var(--inchiostro); }
.cifre.quattro dt { font-size: 13.5px; }
.due { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.due p { font-size: 15.5px; color: var(--testo); }

.piede { display: grid; gap: 8px; justify-items: start; padding: 56px var(--margine) 64px; border-top: 1px solid var(--linea); font-size: 13.5px; color: var(--testo-2); }
.piede img { width: 132px; height: auto; margin-bottom: 14px; }
.piede p { margin: 0; }
.piede .anteprima, .piede .crediti { color: var(--muto); }
.piede .crediti { font-size: 12px; }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------------------ schermi stretti */
@media (max-width: 1180px) and (min-width: 900px) {
  .consigli { grid-template-columns: 1fr 1fr; }
  .riga-f { grid-template-columns: 220px 1fr; }
  .asse-f { margin-left: 248px; }
}
@media (max-width: 899px) {
  :root { --barra: 56px; }
  body { font-size: 16px; }
  .barra { grid-template-columns: auto 1fr auto; }
  .barra-capitolo { display: none; }
  .barra-logo { min-width: max-content; }
  .barra-logo img { width: 112px; max-width: none; }
  .barra-pdf { padding: 8px 14px; font-size: 13px; }
  .barra-pdf span { display: none; }
  .velo-dx, .velo-sx { display: none; }
  .palco::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36%; background: linear-gradient(180deg, rgba(250, 250, 248, 0), rgba(250, 250, 248, .85) 70%); pointer-events: none; }
  .crediti-mappa, .palco[data-stato="apertura"] .crediti-mappa { left: 12px; right: auto; top: calc(var(--barra) + 8px); bottom: auto; }
  .passo, .passo.apertura { justify-content: center; align-items: flex-end; padding: 0 12px 14px; }
  .passo .carta, .passo.apertura .carta { width: 100%; max-width: 560px; padding: 20px 20px 18px; border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(17, 17, 17, .14), 0 0 0 1px rgba(17, 17, 17, .05); }
  .passo.lungo { min-height: 100vh; min-height: 100svh; align-items: flex-end; }
  .passo.lungo .carta { position: static; }
  .apertura h1 { font-size: clamp(36px, 10.5vw, 52px); margin-bottom: 18px; }
  .apertura .sopra { margin-bottom: 12px; font-size: 13.5px; }
  .apertura .lede { font-size: 16px; }
  .azioni { margin: 20px 0; }
  .azioni .bottone { flex: 1 1 auto; }
  .carta h2 { font-size: 22px; }
  .cifre { gap: 10px; }
  .cifre dd { font-size: 26px; }
  .barre li { grid-template-columns: 8.8em 1fr 4em; gap: 8px; font-size: 12.5px; }
  .imbuto li { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .imbuto .quota { max-width: 360px; }
  .riga-f { grid-template-columns: 1fr; gap: 4px; padding: 16px 0 8px; }
  .asse-f { margin-left: 0; }
  .scheda-f dl { grid-template-columns: 1fr 1fr; }
  .scheda-f dl > div { padding-right: 12px; }
  .giudizi { grid-template-columns: 1fr; gap: 40px; }
  .consigli { grid-template-columns: 1fr; gap: 30px; margin-bottom: 64px; }
  .verifiche { grid-template-columns: 1fr; }
  .cifre.quattro { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .due { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js #mappa { -webkit-mask-image: none; mask-image: none; }
  .impulso-html { display: none; }
}

@media print {
  .barra, .avanzamento, .palco, .salta { display: none !important; }
  .passi { margin-top: 0; }
  .passo { min-height: 0; display: block; padding: 12px 0; }
  .passo .carta { width: auto; }
}
