/* Fictilis · veste grafica delle pagine dei casi di studio (dal 2026-10-12: quella di www.fictilis.it).
   Fondi caldi «bone», grafite, accento rame; Space Grotesk per i titoli e Instrument Sans per il testo
   (_comune/caratteri.css, stessi file del sito, stessa origine). Intestazione, sottomenu di sezione e piè
   di pagina replicano quelli del sito (components/layout/Header.tsx, SectionSubNav.tsx, Footer.tsx).
   Logo: SEMPRE il logo ufficiale — scritta scura nell'intestazione, lockup chiaro nel piè di pagina grafite.
   ⚠️ I colori dei DATI non sono di interfaccia e non seguono la palette: --spill, --air, --crit, --serious,
   --warn e --water restano quelli del motore (legende, zone, colonne dei risultati). Il rame del sito
   (#BE5E30) è quasi identico a --spill: per questo l'acqua ha il suo --water e i dati non usano --brand. */
@import url("caratteri.css");
:root {
  /* fondi (tailwind: bone-100 pagina, bone-50 schede e fasce chiare, bone-200 codice e chip) */
  --paper: #F6F4F0; --card: #FCFBF9; --off: #FCFBF9; --mist: #ECE8E1;
  /* testo (ink, graphite-600 per il corpo come nel sito, muted) e filetti (line, bone-300) */
  --ink: #1D2026; --body: #333844; --muted: #6B7078; --line: #E4DFD6; --line-2: #DDD7CC;
  /* accento rame: --brand per link e testi in evidenza (copper-700, 7:1 su bone), --brand-btn per i
     pulsanti (copper-600 con testo bone-50, 5,6:1), --teal per i filetti decorativi (copper-500).
     --brand-2 sono le etichette: grafite quieta, come le eyebrow del sito. */
  --brand: #853C1D; --brand-btn: #A44C24; --brand-ink: #FCFBF9; --brand-2: #4A505E; --sage: #4A505E;
  --mint: #FBEFE7; --mint-line: #F3D8C6; --teal: #BE5E30;
  /* blocchi scuri: grafite come il piè di pagina del sito */
  --night: #14161B; --night-2: #101216; --night-line: #2A2E37; --night-ink: #F6F4F0; --night-ink-2: #B9B8B4;
  --amber: #d6a058; --amber-bg: #fffaf1; --amber-line: #ecdcbf; --amber-ink: #5b4428;
  /* colori dei dati: invariati */
  --spill: #b4532a; --air: #4a6fa5; --crit: #d03b3b; --serious: #ec835a; --warn: #e0a000; --water: #1e6e8a;
  /* compatibilità con i nomi usati nelle pagine e negli script */
  --bg: var(--paper); --panel: var(--card); --panel-2: var(--off); --ink-2: var(--body); --accent: var(--brand); --accent-ink: var(--brand-ink);
  --radius: 16px; --radius-s: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 27, .04), 0 10px 32px -14px rgba(20, 22, 27, .14);
  --shadow-lift: 0 2px 4px rgba(20, 22, 27, .05), 0 28px 64px -28px rgba(20, 22, 27, .26);
  --f-ui: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-num: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;
  --w: 1240px; --head-h: 80px; --subnav-h: 48px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + var(--subnav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 16.5px/1.7 var(--f-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #BE5E30; color: #FCFBF9; }
img, svg, video { max-width: 100%; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid #BE5E30; outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--f-display); font-weight: 600; line-height: 1.16; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -.025em; line-height: 1.06; }
h1 em, h2 em { font-style: normal; color: var(--sage); }
h2 { font-size: clamp(26px, 2.6vw, 35px); line-height: 1.12; max-width: 24ch; }
h3 { font-size: clamp(19px, 1.6vw, 22px); font-weight: 500; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
b, strong { color: var(--ink); font-weight: 650; }
code { font-family: var(--f-num); font-size: .86em; background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: .05em .4em; color: var(--ink); }
.salta { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--card); color: var(--ink); padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow-lift); }
.salta:focus { top: 10px; }
.wrap { width: min(var(--w), calc(100% - 64px)); margin-inline: auto; }

/* ---------- intestazione del sito (come components/layout/Header.tsx) ---------- */
.fx-head { position: sticky; top: 0; z-index: 40; height: var(--head-h); background: rgba(246, 244, 240, .9); border-bottom: 1px solid rgba(228, 223, 214, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fx-head-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.fx-logo { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.fx-logo img { display: block; height: 28px; width: auto; }
.fx-nav { display: flex; align-items: center; gap: 6px; flex: 1; }
.fx-nav a { color: #252932; text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; white-space: nowrap; transition: color .15s; }
.fx-nav a:hover, .fx-nav a[aria-current] { color: var(--ink); }
.fx-nav a[aria-current] { box-shadow: inset 0 -2px 0 #BE5E30; border-radius: 0; }
.fx-cta, a.fx-cta { display: inline-flex; align-items: center; flex: none; margin-left: auto; background: var(--brand-btn); color: var(--brand-ink); text-decoration: none; font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow); transition: background .15s, transform .15s, box-shadow .15s; }
.fx-cta:hover { background: #853C1D; color: var(--brand-ink); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.fx-menu { display: none; margin-left: auto; position: relative; }
.fx-menu summary { list-style: none; cursor: pointer; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); }
.fx-menu summary:hover { background: var(--card); }
.fx-menu summary::-webkit-details-marker { display: none; }
.fx-menu summary::before { content: ""; width: 18px; height: 12px; background: linear-gradient(currentColor 0 0) 0 0 / 100% 1.5px no-repeat, linear-gradient(currentColor 0 0) 0 50% / 100% 1.5px no-repeat, linear-gradient(currentColor 0 0) 0 100% / 100% 1.5px no-repeat; }
.fx-menu[open] summary::before { background: linear-gradient(currentColor 0 0) 50% 50% / 100% 1.5px no-repeat; }
.fx-menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 260px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift); padding: 8px; display: grid; }
.fx-menu nav a { color: #252932; text-decoration: none; font-weight: 500; padding: 11px 14px; border-radius: 10px; }
.fx-menu nav a:hover, .fx-menu nav a[aria-current] { background: var(--paper); color: var(--ink); }
/* la CTA nel menu da telefono resta un pulsante: senza colore e :hover propri `.fx-menu nav a` le dava testo scuro
   su rame (contrasto ~2:1) e al passaggio del mouse lo sfondo carta delle altre voci */
.fx-menu nav a.fx-cta { margin: 6px 0 0; justify-content: center; font-size: 14px; padding: 11px 16px; color: var(--brand-ink); }
.fx-menu nav a.fx-cta:hover { background: #853C1D; color: var(--brand-ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* il link di salto ha anche sr-only (come nel sito): al focus torna visibile */
.salta.sr-only:focus { top: 10px; width: auto; height: auto; padding: 10px 18px; margin: 0; overflow: visible; clip: auto; white-space: nowrap; }

/* sottomenu della sezione «Scenari di rischio ambientale» (come SectionSubNav.tsx) */
.fx-sub { position: sticky; top: var(--head-h); z-index: 30; border-bottom: 1px solid var(--line); background: rgba(246, 244, 240, .95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fx-sub ul { list-style: none; margin: 0 auto; padding: 0; height: var(--subnav-h); display: flex; align-items: stretch; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.fx-sub ul::-webkit-scrollbar { display: none; }
.fx-sub li { display: flex; flex: none; }
.fx-sub a { position: relative; display: flex; align-items: center; color: #333844; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.fx-sub a:hover, .fx-sub a[aria-current] { color: var(--ink); }
.fx-sub a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #A44C24; }

/* barra secondaria: percorso e sezioni della pagina */
.top { position: relative; min-height: 46px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 0 max(32px, calc((100vw - var(--w)) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); font-size: 14px; }
.crumbs { display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs > span:last-child { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.toc { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.toc::-webkit-scrollbar { display: none; }
.toc a { color: var(--body); text-decoration: none; white-space: nowrap; padding: 6px 10px; border-radius: 999px; font-weight: 500; }
.toc a:hover { color: var(--ink); background: var(--card); }

/* ---------- elementi di testo comuni ---------- */
.eyebrow, .kicker { display: block; margin: 0 0 14px; font: 500 14px/1.4 var(--f-ui); letter-spacing: 0; color: var(--brand-2); }
.sub, .lead { color: var(--body); font-size: 18px; line-height: 1.7; max-width: 72ch; }
.note { color: var(--muted); font-size: 14.5px; }
.micro { color: var(--muted); font-size: 14px; max-width: 70ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 1px solid rgba(51, 56, 68, .3); background: transparent; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14px; line-height: 1.2; transition: transform .15s ease, background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); border-color: #333844; background: var(--card); text-decoration: none; }
.btn:active { transform: scale(.99); }
.btn.primary { background: var(--brand-btn); border-color: var(--brand-btn); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn.primary:hover { background: #853C1D; border-color: #853C1D; box-shadow: var(--shadow-lift); }
.btn.soft { background: var(--mint); border-color: var(--mint-line); color: var(--brand); }
.btn.soft:hover { border-color: var(--brand); }
.link-go { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-go::after { content: "→"; transition: transform .15s; }
.link-go:hover::after { transform: translateX(3px); }
.badge-ipotesi { display: inline-flex; align-items: center; gap: 6px; font: 700 11.5px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--amber-bg); color: #7a5418; border: 1px solid var(--amber-line); white-space: nowrap; }
.badge-ipotesi::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--mint-line); background: var(--mint); color: var(--brand); font-weight: 500; font-size: 12.5px; line-height: 1.35; }

/* ---------- apertura delle pagine (chiara, testo + scheda «visual lab») ---------- */
.hero { position: relative; overflow: hidden; background: var(--paper); color: var(--body); border-bottom: 1px solid var(--line); }
.hero-in { position: relative; width: min(var(--w), calc(100% - 64px)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 56px; align-items: center; padding: 72px 0 64px; }
.hero h1 { font-size: clamp(32px, 3.6vw, 51px); max-width: 18ch; margin-bottom: 22px; letter-spacing: -.03em; }
.lede { font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.7; color: var(--body); max-width: 60ch; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.hero-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.hero-meta .coord { font-family: var(--f-num); font-size: 13px; }

/* scheda «visual lab»: cornice chiara con un pannello scuro, come nella presentazione */
.lab { margin: 0; background: var(--card); border: 0; border-radius: 16px; padding: 18px 18px 14px; box-shadow: var(--shadow-lift); }
.lab-top, .lab-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); }
.lab-top { padding: 2px 6px 14px; font-weight: 500; color: var(--body); }
.lab-top .dot { display: inline-flex; align-items: center; gap: 8px; }
.lab-top .dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint-line); box-shadow: 0 0 0 4px var(--mint); }
.lab-cap { padding: 12px 6px 2px; }
.lab-cap span:last-child { font-size: 12.5px; }
.lab-img, .lab svg, .lab-svg { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--night); }
.lab-img { aspect-ratio: 1200 / 630; object-fit: cover; }

/* ---------- avviso di scenario ipotetico (obbligatorio in ogni pagina di caso) ---------- */
.avviso-ipotesi { width: min(var(--w), calc(100% - 64px)); margin: 0 auto; padding: 0; }
.avviso-ipotesi > div, .avviso-ipotesi.box { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 36px; background: var(--amber-bg); color: var(--amber-ink); border: 1px solid var(--amber-line); border-left: 4px solid var(--amber); border-radius: 14px; padding: 18px 22px; font-size: 15.5px; line-height: 1.6; }
.avviso-ipotesi.box { display: block; width: auto; margin-top: 28px; }
.avviso-ipotesi b { color: #3e2d14; }
.avviso-ipotesi .ico { font: 800 11.5px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: #8a5d1a; background: #fff; border: 1px solid var(--amber-line); border-radius: 999px; padding: 7px 10px; white-space: nowrap; margin-top: 1px; }

/* ---------- sezioni ---------- */
.band { max-width: var(--w); margin: 0 auto; padding: 88px 24px 0; box-sizing: content-box; }
main > .band:last-child, main > section:last-child { padding-bottom: 96px; }
.band > h2 + .sub, .band > h2 + p { margin-top: -4px; }
.band.dark { max-width: none; margin-top: 88px; padding: 80px max(24px, calc((100vw - var(--w)) / 2)); background: var(--night-2); color: var(--night-ink); position: relative; overflow: hidden; }
.band.dark::before { content: ""; position: absolute; left: -360px; bottom: -360px; width: 720px; height: 720px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 30px, rgba(206, 129, 73, .14) 30px 31.5px); opacity: .4; pointer-events: none; }
.band.dark > * { position: relative; }
.band.dark h2, .band.dark h3 { color: #fff; }
.band.dark .sub, .band.dark p { color: var(--night-ink-2); }
.band.dark .eyebrow { color: rgba(246, 244, 240, .7); }
.band.alt { max-width: none; margin-top: 88px; padding: 80px max(24px, calc((100vw - var(--w)) / 2)); background: var(--off); border-block: 1px solid var(--line); }
.band.alt + .band:not(.dark):not(.alt) { padding-top: 88px; }
.band.dark + .band.alt, .band.alt + .band.dark { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cols > p { margin: 0; }

/* dati principali dello scenario */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 12px 0 36px; }
.fact { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: 16px; padding: 18px 20px 20px; display: grid; gap: 4px; align-content: start; box-shadow: var(--shadow); }
.fact.air { border-top-color: var(--amber); }
.fact .k { font: 800 11.5px/1.3 var(--f-ui); color: var(--brand-2); text-transform: uppercase; letter-spacing: .14em; }
.fact.air .k { color: #8a5d1a; }
.fact .v { font: 700 30px/1.15 var(--f-ui); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.fact .v small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.fact .d { font-size: 14.5px; color: var(--body); line-height: 1.5; }

/* video 3D */
.vh { font-size: 20px; margin: 30px 0 0; }
.vh + .sub { margin: 6px 0 0; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.videos figure { margin: 0; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); border-radius: 20px; padding: 12px; }
.videos video { width: 100%; aspect-ratio: 16 / 9; display: block; border-radius: 12px; background: #000; }
.videos figcaption { font-size: 15px; color: var(--night-ink-2); margin: 12px 4px 4px; line-height: 1.55; }
.videos figcaption b { color: #fff; }

/* simulatore: testo e cattura */
.tool { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.tool-shot { display: block; background: var(--card); border: 0; border-radius: 16px; padding: 14px; box-shadow: var(--shadow-lift); transition: transform .2s ease; }
.tool-shot:hover { transform: translateY(-3px); }
.tool-shot img { width: 100%; height: auto; display: block; border-radius: 10px; }
.tool .btn.primary { margin-top: 10px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--mint); }

/* risultati */
.res { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
.res-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.res-col h3 { color: var(--water); } .res-col.air h3 { color: var(--air); }
.res dl { margin: 0; display: grid; }
.res dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); align-items: baseline; }
.res dt { color: var(--body); font-size: 15.5px; }
.res dd { margin: 0; font: 700 17px var(--f-ui); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.res .z3 dt::before, .res .z2 dt::before, .res .z1 dt::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.res .z3 dt::before { background: var(--crit); } .res .z2 dt::before { background: var(--serious); } .res .z1 dt::before { background: var(--warn); }

/* tabelle */
.cmp-h { margin-top: 40px; }
.cmp-wrap { overflow-x: auto; padding-bottom: 2px; }
.cmp, .appl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; font-size: 15px; }
.cmp th, .cmp td, .appl th, .appl td { padding: 11px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th, .appl thead th { border-top: 0; background: var(--off); font: 800 11.5px/1.4 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--brand-2); }
.cmp tbody th { font-weight: 500; color: var(--body); min-width: 240px; }
.cmp td { font: 650 15.5px var(--f-ui); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp.piano td, .cmp.piano th { white-space: normal; font-weight: 400; font-size: 14.5px; color: var(--body); }
.cmp.piano tbody th { font-weight: 700; color: var(--ink); }
.cmp.piano small, .appl td small { color: var(--muted); }
.tab-tit { font-size: 15px; margin: 24px 0 8px; font-weight: 700; color: var(--ink); }
.appl td b { color: var(--ink); }
.appl tbody tr:hover td { background: var(--paper); }

/* metodo */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.method article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; box-shadow: var(--shadow); }
.method article h3 { display: flex; align-items: center; gap: 2px; font-size: 18.5px; }
.method article p { font-size: 15.5px; color: var(--body); margin: 0; }
.num { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--mint); color: var(--brand); font: 800 14px var(--f-ui); margin-right: 10px; }
a.ref { font-size: 12.5px; font-weight: 600; text-decoration: none; background: var(--mist); color: var(--brand); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
a.ref:hover { background: var(--mint); }

/* limiti */
.band.warn h2 { color: var(--ink); }
.band.warn .ticks li::before { background: var(--amber); box-shadow: 0 0 0 4px #fbefdc; }

/* bibliografia */
.bib { display: grid; gap: 10px; margin-top: 20px; }
.bib-g { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.bib-g h3 { margin: 0; padding: 14px 20px; font-size: 17px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.bib-g h3 .n { margin-left: auto; font: 700 12.5px var(--f-ui); color: var(--brand); background: var(--mint); border-radius: 999px; padding: 3px 10px; align-self: center; }
.bib-g ol { margin: 0; padding: 14px 20px 16px 46px; display: grid; gap: 10px; }
.bib-g li { font-size: 14.5px; scroll-margin-top: calc(var(--head-h) + var(--subnav-h) + 24px); border-radius: 6px; transition: background .4s; }
.bib-g li::marker { color: var(--muted); }
.bib-g li.hit { background: #fff1c9; }
.bib-g .cit { margin: 0; overflow-wrap: anywhere; color: var(--ink); }
.bib-g cite { font-style: italic; }
.bib-g .uso { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

/* schede dei casi (indice e presentazione) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 24px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 0; border-radius: 16px; overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); background: #fff; }
.card > img, .card > svg { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; background: var(--night); }
.card-b { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 20px; }
.card .pill { align-self: flex-start; margin-bottom: 14px; }
.card h3 { margin: 0 0 10px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; }
.card p { margin: 0 0 8px; font-size: 15.5px; color: var(--body); }
.card .card-f { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.card .card-f span:first-child { color: var(--muted); font-size: 13.5px; }
.card .card-f .go { color: var(--brand); font-weight: 500; font-size: 14px; white-space: nowrap; }
.card:hover h3 { color: var(--brand); }

/* passi numerati (come «Come avviare una collaborazione») */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
.steps li { counter-increment: s; border-top: 3px solid var(--teal); padding-top: 18px; color: var(--body); font-size: 15.5px; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; color: var(--brand-2); font: 800 18px/1 var(--f-ui); margin-bottom: 12px; }
.steps li b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 4px; }

/* riquadri */
.callout { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.callout p { margin: 0; }

/* schede generiche della presentazione */
.fx-grid { display: grid; gap: 20px; margin-top: 30px; }
.fx-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.fx-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.fx-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 28px 26px; box-shadow: var(--shadow); }
.fx-card h3 { margin-bottom: 12px; }
.fx-card p { margin: 0; color: var(--body); }
.fx-card.accent { border-top: 3px solid var(--teal); }
.fx-card.outline { border-color: #333844; box-shadow: none; }
.fx-card .k, .k-label { display: block; margin: 0 0 12px; font: 800 11.5px/1.5 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2); }
.fx-card.future .k { color: #8a5d1a; }
.fx-card.future { border-top: 3px solid var(--amber); }

/* ---------- piè di pagina grafite (come components/layout/Footer.tsx) ---------- */
.fx-foot { position: relative; overflow: hidden; margin-top: 80px; background: var(--night); color: var(--night-ink); font-size: 14px; }
.fx-foot-anelli { position: absolute; left: -288px; bottom: -288px; width: 720px; height: 720px; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 30px, rgba(206, 129, 73, .14) 30px 31.5px); opacity: .4; pointer-events: none; }
.fx-foot-pay { position: relative; border-bottom: 1px solid var(--night-line); }
.fx-foot-pay > div { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 56px 0; }
.fx-foot-pay p { margin: 0; max-width: 36rem; font: 600 clamp(26px, 2.6vw, 35px)/1.15 var(--f-display); letter-spacing: -.02em; color: #fff; }
.fx-foot-pay .btn.primary { flex: none; }
.fx-foot-in { position: relative; width: min(var(--w), calc(100% - 64px)); margin-inline: auto; padding: 56px 0 0; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr 1fr; gap: 48px; }
.fx-foot .fx-logo img { height: 64px; }
.fx-foot address { margin: 24px 0 0; font-style: normal; line-height: 1.65; color: rgba(246, 244, 240, .7); }
.fx-foot address a { color: var(--night-ink); }
.fx-foot .fx-foot-h { margin: 0 0 16px; font: 600 14px/1.3 var(--f-display); color: #fff; }
.fx-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fx-foot li { line-height: 1.45; }
.fx-foot a { color: rgba(246, 244, 240, .7); text-decoration: none; text-underline-offset: 4px; }
.fx-foot a:hover { color: #fff; text-decoration: underline; }
.fx-foot-base { position: relative; width: min(var(--w), calc(100% - 64px)); margin: 48px auto 0; padding: 32px 0 40px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: rgba(246, 244, 240, .6); font-size: 12.5px; }
.fx-foot-base p { margin: 0; max-width: none; }
.fx-foot-base a { color: rgba(246, 244, 240, .7); }

/* comparsa progressiva (solo con JavaScript attivo e senza preferenza di movimento ridotto) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- schermi medi e piccoli ---------- */
@media (min-width: 1280px) {
  .fx-nav a { font-size: 16px; padding: 8px 14px; }
}
@media (max-width: 1279px) {
  .fx-head-in > .fx-cta { display: none; }
  .fx-nav { flex: 1; }
}
@media (max-width: 1100px) {
  .method { grid-template-columns: 1fr 1fr; }
  .fx-grid.c3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  :root { --head-h: 64px; }
  .fx-nav { display: none; }
  .fx-menu { display: block; }
}
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding: 52px 0 48px; }
  .hero h1 { max-width: 22ch; font-size: clamp(34px, 6.2vw, 52px); }
  .tool, .cols, .res, .videos { grid-template-columns: 1fr; }
  .tool { gap: 32px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .toc { display: none; }
  .fx-foot-in { grid-template-columns: 1fr 1fr; }
  .fx-foot-in > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .hero-in, .avviso-ipotesi, .fx-foot-in, .fx-foot-base { width: calc(100% - 40px); }
  .fx-head-in { gap: 12px; }
  .fx-head .fx-logo img { height: 24px; }
  .top { padding: 8px 16px; min-height: 0; font-size: 13px; }
  .band { padding: 64px 16px 0; }
  .band.dark, .band.alt { margin-top: 64px; padding: 56px 16px; }
  main > .band:last-child, main > section:last-child { padding-bottom: 72px; }
  .facts, .method, .steps, .fx-grid.c2, .fx-grid.c3 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .lab { padding: 12px 12px 10px; border-radius: 20px; }
  .lab-top { font-size: 11px; padding: 2px 4px 10px; }
  .lab-cap { font-size: 11.5px; }
  .res dl > div { flex-direction: column; gap: 2px; }
  .res-col, .fx-card, .callout { padding: 22px 20px; }
  .avviso-ipotesi > div { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
  .avviso-ipotesi .ico { justify-self: start; }
  .fx-foot-in { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
  .fx-foot-pay > div { padding: 44px 0; }
  .cta .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .tool-shot { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .fx-head, .fx-sub, .top, .cta, .fx-menu, .tool-shot, .videos, .fx-foot-pay { display: none !important; }
  .hero { background: none; } .hero::before { display: none; }
  .hero-in { grid-template-columns: 1fr; padding: 12px 0; }
  .band { padding-top: 28px; }
  .band.dark, .band.alt { background: none; color: var(--ink); margin-top: 28px; padding: 28px 0; }
  .band.dark p, .band.dark .sub { color: var(--body); } .band.dark h2, .band.dark h3 { color: var(--ink); }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .card, .fx-card, .fact, .method article, .bib-g, .res-col { break-inside: avoid; box-shadow: none; }
}

/* ---------- schede dei modelli e verifiche (/casi-di-studio/modelli, ottobre 2026) ---------- */
.hero-in.solo { grid-template-columns: minmax(0, 1fr); }
.hero-in.solo h1 { max-width: 22ch; }
.hero-in.solo .lede { max-width: 78ch; }
.avviso-ipotesi.ambito > div { background: var(--card); color: var(--body); border-color: var(--line-2); border-left-color: var(--brand); }
.avviso-ipotesi.ambito b { color: var(--ink); }
.avviso-ipotesi.ambito .ico { color: var(--brand); border-color: var(--line-2); }
.esito, .stato { display: inline-block; font: 700 12px/1.4 var(--f-ui); letter-spacing: .02em; border-radius: 999px; padding: 2px 10px; white-space: nowrap; vertical-align: middle; }
.esito.ok, .stato.s-fatto { background: var(--mint); color: var(--brand); }
.esito.no { background: #fdecea; color: #a12a1f; }
.esito.info, .stato.s-avviato { background: var(--amber-bg); color: #8a5d1a; border: 1px solid var(--amber-line); }
.cmp.prove th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; max-width: 70ch; }
.cmp.prove td, .cmp.var td, .cmp.sens-t td, .cmp.testo td { white-space: normal; font-weight: 500; font-size: 14.5px; }
.cmp.testo td { font-weight: 400; color: var(--body); }
.cmp.testo tbody th { font-weight: 650; color: var(--ink); min-width: 170px; }
.cmp.prove th { font-weight: 650; color: var(--ink); }
.cmp.var th { min-width: 120px; font-family: var(--f-num); font-size: 14px; }
.graf-box { margin: 26px 0 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 10px; }
.graf-box figcaption { font-size: 13.5px; color: var(--muted); }
svg.graf { width: 100%; height: auto; display: block; font: 11.5px var(--f-ui); fill: var(--muted); }
svg.graf .gr { stroke: var(--line); stroke-width: 1; }
svg.graf .ax { fill: var(--body); font-size: 12.5px; }
svg.graf .lg { fill: var(--ink); font-size: 12px; }
.g2, .sens { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-top: 18px; box-shadow: var(--shadow); }
.g2 h3, .sens h3 { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.g2 svg.graf { margin: 6px 0 14px; }
.barra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; position: relative; padding: 2px 8px; margin: 3px 0; border-radius: 6px; font-size: 13.5px; overflow: hidden; }
.barra::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--mint); z-index: 0; border-radius: 6px; }
.barra b, .barra i { position: relative; z-index: 1; font-weight: 600; color: var(--ink); }
.barra i { font-style: normal; font-variant-numeric: tabular-nums; color: var(--brand); }
.schede { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.schede > *, .sc2 > *, .eqs > div > * { min-width: 0; }
.scheda .sc, .scheda > summary .st { overflow-wrap: anywhere; }
.scheda { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); scroll-margin-top: calc(var(--head-h) + var(--subnav-h) + 24px); }
.scheda > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; }
.scheda > summary::-webkit-details-marker { display: none; }
.scheda > summary .sn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--brand); font: 800 14px var(--f-ui); }
.scheda > summary .st { font: 700 17px/1.35 var(--f-ui); color: var(--ink); }
.scheda > summary .st small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; }
.scheda[open] > summary { border-bottom: 1px solid var(--line); }
.scheda .sc { padding: 6px 22px 20px; font-size: 15px; }
.scheda .sc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-2); margin: 20px 0 8px; }
.scheda .sc .lead { font-size: 16px; color: var(--ink); margin-top: 14px; }
.scheda .sc ul { margin: 0; padding-left: 20px; }
.scheda .sc li { margin: 2px 0; }
.sc2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.eqs { margin: 0; display: grid; gap: 8px; }
.eqs > div { display: grid; grid-template-columns: minmax(160px, 240px) minmax(0, 1fr); gap: 12px; padding: 10px 12px; background: var(--off); border: 1px solid var(--line); border-radius: 10px; }
.eqs dt { font-size: 13.5px; font-weight: 650; color: var(--ink); }
.eqs dd.eq { margin: 0; font: 15.5px/1.75 "Cambria Math", "Times New Roman", Georgia, serif; color: var(--ink); overflow-wrap: anywhere; }
.eq i { font-style: italic; }
.eq sub, .eq sup { font-size: .72em; }
.vrf { list-style: none; padding: 0 !important; }
.vrf li { margin: 5px 0 !important; }
.nov { background: var(--mint); border-radius: 10px; padding: 10px 14px; margin-top: 16px; }
.nuova { display: inline-block; font: 700 11px var(--f-ui); color: var(--brand); background: var(--mint); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.ruoli { display: inline-block; font: 600 11px var(--f-ui); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; white-space: nowrap; }
.centri { margin-top: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 20px; }
.centri summary { cursor: pointer; font-weight: 650; color: var(--ink); }
@media (max-width: 760px) {
  .sc2, .eqs > div { grid-template-columns: minmax(0, 1fr); }
  .scheda > summary { grid-template-columns: auto minmax(0, 1fr); }
  .scheda > summary .esito { grid-column: 2; justify-self: start; }
}
.cmp td.val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.graf-wrap { overflow-x: auto; }
.g2 .cmp tbody th { min-width: 0; }
@media (max-width: 640px) { .graf-wrap svg.graf { min-width: 540px; } }
/* validazione con misure di campo (pagina dei modelli) */
.g2.v .v2 { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.g2.v .v2 .graf-box { margin: 4px 0 0; }
.g2.v h4 { margin: 18px 0 6px; font-size: 14px; }
table.ch td.val { white-space: nowrap; }
table.ch th small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
@media (max-width: 900px) { .g2.v .v2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .graf-wrap svg.graf.disp { min-width: 340px; } }
