/* EV Italia — Manifesto milanese
   Carta, blu EV e disco solare. Griglia a 12 colonne, grottesca a larghezza variabile (Archivo 62–125%),
   mono per dati e etichette. Tema unico e voluto: il manifesto è sempre su carta. */
@import url("../fonts/fonts.css");

:root {
  --paper: #E9E7E1; --paper-2: #DEDBD2; --paper-3: #D2CEC3;
  --ink: #0C2947; --ink-2: #12355C; --ink-deep: #071D34; --ink-soft: #3A4E66; --on-ink: #C9D3DF;
  --sun: #F5A623; --sun-deep: #D9890C; --white: #FBFAF7;
  --it-green: #1F8A4C; --it-red: #C8342E; --ok: #1F8A4C; --err: #B3261E;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1320px;
  --rule: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html, body { background: var(--paper); color: var(--ink); }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.55; font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
.d-xxl, .d-xl { overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sun); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono, .eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--sun); flex: none; }
.tri { display: flex; height: 6px; width: 132px; flex: none; }
.tri i { flex: 1; background: var(--it-green); } .tri i:nth-child(2) { background: var(--white); } .tri i:nth-child(3) { background: var(--it-red); }

/* type scale */
.d-xxl { font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: clamp(60px, 12.4vw, 196px); line-height: .88; letter-spacing: -.02em; text-transform: uppercase; }
.d-xl { font-family: var(--display); font-weight: 900; font-stretch: 72%; font-size: clamp(46px, 7.4vw, 112px); line-height: .95; letter-spacing: -.015em; text-transform: uppercase; }
.d-l { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: clamp(38px, 5.6vw, 80px); line-height: .92; text-transform: uppercase; }
.d-m { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; }
.d-s { font-family: var(--display); font-weight: 800; font-stretch: 100%; font-size: 22px; line-height: 1.15; }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.42; font-weight: 500; max-width: 36ch; }
.wide { font-stretch: 125%; font-weight: 800; letter-spacing: -.035em; }
.hl { color: var(--sun-deep); }
.on-ink .hl, .ink .hl { color: var(--sun); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none; padding: 16px 22px; border: var(--rule) solid var(--ink); background: var(--ink); color: var(--white); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.btn:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--sun); }
.btn:active { transform: none; box-shadow: none; }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn.sun:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.ink .btn.ghost, .on-ink .btn.ghost { color: var(--white); border-color: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.arr { font-family: var(--mono); font-weight: 600; transition: transform .2s var(--ease); }
a:hover > .arr, .btn:hover .arr { transform: translateX(4px); }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sun); text-underline-offset: 5px; }

/* ================= header ================= */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px); border-bottom: var(--rule) solid transparent; transition: border-color .3s; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--paper); }
.hdr.scrolled { border-bottom-color: var(--ink); }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 16px; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav > a:not(.btn), .nav .dd > a { text-decoration: none; padding-block: 6px; position: relative; }
.nav > a:not(.btn)::after, .nav .dd > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 3px; background: var(--sun); transition: right .25s var(--ease); }
.nav > a:not(.btn):hover::after, .nav .dd:hover > a::after, .nav [aria-current="page"]::after { right: 0 !important; }
.nav .btn { padding: 12px 18px; }
.dd { position: relative; }
.dd-menu { position: absolute; left: -24px; top: 100%; padding-top: 14px; display: none; min-width: 320px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu ul { list-style: none; background: var(--ink); color: var(--white); box-shadow: 8px 8px 0 var(--sun); }
.dd-menu a { display: grid; gap: 2px; padding: 16px 22px; text-decoration: none; border-top: 1px solid rgba(251, 250, 247, .12); }
.dd-menu li:first-child a { border-top: 0; }
.dd-menu a:hover { background: var(--ink-2); }
.dd-menu strong { font-family: var(--display); font-stretch: 90%; font-size: 18px; }
.dd-menu span { font-size: 13.5px; color: var(--on-ink); font-weight: 400; }
.burger { display: none; width: 48px; height: 48px; border: var(--rule) solid var(--ink); background: transparent; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 3px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 28px; }
.menu-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { position: fixed; inset: 0; z-index: 39; background: var(--ink); color: var(--white); padding: calc(96px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 6px; overflow-y: auto; transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden; }
.menu-open .mnav { transform: none; visibility: visible; }
.mnav a { font-family: var(--display); font-weight: 900; font-stretch: 72%; font-size: clamp(40px, 11vw, 64px); line-height: 1; text-transform: uppercase; text-decoration: none; padding-block: 6px; }
.mnav a.sub { font-size: 20px; font-stretch: 100%; font-weight: 700; text-transform: none; color: var(--on-ink); padding-left: 4px; }
.mnav .btn { margin-top: 24px; align-self: flex-start; font-size: 15px; }
.menu-open .hdr { background: var(--ink); }
.logo .l-white { display: none; }
.menu-open .hdr .logo .l-navy { display: none; }
.menu-open .hdr .logo .l-white { display: block; }
.menu-open .burger { border-color: var(--white); } .menu-open .burger i { background: var(--white); }
@media (max-width: 980px) { .nav { display: none; } .burger { display: block; } }
@media (min-width: 981px) { .mnav { display: none; } }

/* ================= sections ================= */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.ink { background: var(--ink); color: var(--white); }
.ink p.soft, .ink .soft { color: var(--on-ink); }
.sun-bg { background: var(--sun); color: var(--ink); }
.paper2 { background: var(--paper-2); }
.soft { color: var(--ink-soft); }
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); align-items: end; }
.sec-head > :first-child { grid-column: 1 / span 7; }
.sec-head > :last-child:not(:first-child) { grid-column: 9 / span 4; }
.sec-head .eyebrow { display: flex; margin-bottom: 18px; }
@media (max-width: 860px) { .sec-head > :first-child, .sec-head > :last-child:not(:first-child) { grid-column: 1 / -1; } }
.rule-top { border-top: var(--rule) solid currentColor; }

/* reveal: elementi visibili a riposo; l'animazione parte solo se JS li segna */
.js .rv { transform: translateY(28px); transition: transform 1s var(--ease); }
.js .rv.in { transform: none; }

/* ================= HOME HERO ================= */
.hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.hero-stage { position: relative; z-index: -1; height: clamp(420px, 62vh, 720px); margin-top: calc(-1 * clamp(28px, 5vw, 90px)); }
.hero-stage canvas, .hero-stage img { width: 100%; height: 100%; object-fit: cover; }
.hero-stage img { position: absolute; inset: 0; }
.hero-stage canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-stage.live canvas { opacity: 1; }
.hero-stage.live img { opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-stage::after { content: ""; position: absolute; inset: 0 0 auto; height: 12%; background: linear-gradient(var(--paper), color-mix(in srgb, var(--paper) 0%, transparent)); pointer-events: none; }
.hero .wrap { width: 100%; }
.hero-title { padding-top: clamp(24px, 4vw, 56px); position: relative; z-index: 1; }
.hero-title .d-xxl { font-size: clamp(56px, 10.2vw, 172px); }
.hero-title .d-xxl span { display: block; }
.hero-title .row2 { display: flex; align-items: baseline; gap: .18em; flex-wrap: wrap; }
.hero-hint { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: end; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: var(--rule) solid var(--ink); padding: 8px 12px; }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(245, 166, 35, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(245, 166, 35, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); } }
.hero-intro { background: var(--paper); border-top: var(--rule) solid var(--ink); }
.hero-intro .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; padding-block: 36px 40px; align-items: end; }
.hero-intro .lead { grid-column: 1 / span 6; }
.hero-intro .acts { grid-column: 8 / span 5; display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.hero-intro .meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--paper-3); padding-top: 16px; }
@media (max-width: 860px) {
  .hero-title .d-xxl { font-size: clamp(54px, 16.5vw, 120px); }
  .hero-stage { height: clamp(380px, 58vh, 560px); margin-top: 0; }
  .hero-hint .chip:last-child { display: none; }
  .hero-intro .lead, .hero-intro .acts { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ================= service cards (video) ================= */
.who .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.svc { display: flex; flex-direction: column; text-decoration: none; border-left: var(--rule) solid rgba(251, 250, 247, .14); min-width: 0; transition: background .3s; }
.svc:first-child { border-left: 0; }
.svc:hover { background: var(--ink-2); }
.svc .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.svc .media img, .svc .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .media video, .svc:hover .media img { transform: scale(1.04); }
.svc .body { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px 30px; flex: 1; }
.svc .mono { color: var(--sun); }
.svc h3 { font-family: var(--display); font-weight: 800; font-stretch: 88%; font-size: 27px; line-height: 1.05; }
.svc p { color: var(--on-ink); font-size: 15.5px; }
.svc .go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--sun); }
.who .bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 18px; border-bottom: 1px solid rgba(251, 250, 247, .14); }
@media (max-width: 1080px) { .who .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc:nth-child(3) { border-left: 0; } .svc:nth-child(n+3) { border-top: var(--rule) solid rgba(251, 250, 247, .14); } }
@media (max-width: 600px) { .who .grid { grid-template-columns: 1fr; } .svc { border-left: 0; } .svc + .svc { border-top: var(--rule) solid rgba(251, 250, 247, .14); } }

/* ================= method ================= */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--rule) solid var(--ink); }
.step { padding: 22px 24px 0 0; min-width: 0; }
.step .n { font-family: var(--display); font-weight: 900; font-stretch: 62%; font-size: clamp(88px, 9vw, 132px); line-height: .8; color: var(--sun); font-variant-numeric: tabular-nums; }
.step h3 { margin: 18px 0 10px; }
.step p { font-size: 15.5px; color: var(--ink-soft); max-width: 30ch; }
.ink .step p { color: var(--on-ink); }
.ink .steps { border-top-color: var(--white); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ================= pledge ================= */
.pledge blockquote { margin: 0; max-width: 14ch; }
.vals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(40px, 5vw, 64px); border-top: var(--rule) solid var(--ink); padding-top: 22px; }
.vals h3 { font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 6px; }
.vals p { font-size: 15.5px; }
.ink .vals { border-top-color: var(--white); }
@media (max-width: 860px) { .vals { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .vals { grid-template-columns: 1fr; } }

/* ================= film band ================= */
.film { position: relative; isolation: isolate; color: var(--white); overflow: hidden; }
.film video, .film img.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.film::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 29, 52, .92) 0%, rgba(7, 29, 52, .78) 42%, rgba(7, 29, 52, 0) 78%); }
.film .wrap { padding-block: clamp(80px, 12vw, 168px); }
.film .d-l { max-width: 16ch; }
.film p { max-width: 44ch; margin-top: 22px; color: var(--on-ink); font-size: 18px; }
.film .btn { margin-top: 32px; }
@media (max-width: 700px) { .film::before { background: rgba(7, 29, 52, .82); } }

/* ================= news ================= */
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.ncard { display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.ncard .media { aspect-ratio: 16 / 10; overflow: hidden; border: var(--rule) solid var(--ink); background: var(--paper-2); }
.ncard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ncard:hover .media img { transform: scale(1.05); }
.ncard .meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: var(--ink-soft); }
.ncard h3 { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 23px; line-height: 1.12; margin: 10px 0; }
.ncard p { font-size: 15.5px; color: var(--ink-soft); }
.ncard:hover h3 { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--sun); text-underline-offset: 5px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; gap: 40px; } }

/* ================= final CTA ================= */
.final .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: end; }
.final .acts { display: grid; gap: 14px; justify-items: start; }
@media (max-width: 860px) { .final .wrap { grid-template-columns: 1fr; } }

/* ================= page hero (interne) ================= */
.phero { padding-block: clamp(40px, 6vw, 80px) clamp(48px, 6vw, 88px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--ink-soft); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--sun-deep); }
.ink .crumbs { color: var(--on-ink); }
.phero .lead { margin-top: 28px; }
.phero-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
.phero-split > .txt { grid-column: 1 / span 6; min-width: 0; }
.phero-split > .vis { grid-column: 7 / span 6; min-width: 0; }
.stage { position: relative; aspect-ratio: 3 / 2; max-width: 100%; border: var(--rule) solid var(--ink); background: var(--paper); overflow: hidden; }
.stage img, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage canvas { opacity: 0; transition: opacity 1s var(--ease); }
.stage.live canvas { opacity: 1; }
.stage .tag { position: absolute; left: 12px; bottom: 12px; background: var(--paper); border: 2px solid var(--ink); padding: 4px 8px; }
@media (max-width: 900px) { .phero-split > .txt, .phero-split > .vis { grid-column: 1 / -1; } }

/* ================= service detail ================= */
.cols2 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.cols2 > :first-child { grid-column: 1 / span 5; }
.cols2 > :last-child { grid-column: 7 / span 6; min-width: 0; }
@media (max-width: 860px) { .cols2 > :first-child, .cols2 > :last-child { grid-column: 1 / -1; } }
.prose p + p { margin-top: 1em; }
.prose { font-size: 18px; line-height: 1.65; max-width: 62ch; }
.prose h2 { font-family: var(--display); font-weight: 800; font-stretch: 95%; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; margin: 1.6em 0 .55em; }
.checks { list-style: none; display: grid; gap: 0; border-top: var(--rule) solid var(--ink); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--paper-3); font-size: 17px; }
.checks li::before { content: ""; width: 18px; height: 18px; margin-top: 4px; background: var(--sun); }
.box-sun { background: var(--sun); padding: clamp(28px, 4vw, 48px); }
.box-sun h2 { margin-bottom: 16px; }
.box-sun p { font-size: 18px; line-height: 1.6; max-width: 60ch; }
.faq { border-top: var(--rule) solid var(--ink); }
.faq details { border-bottom: 1px solid var(--paper-3); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 36px; gap: 16px; align-items: center; padding: 22px 0; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 20px; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sun); color: var(--ink); }
.faq details p { padding: 0 52px 24px 0; color: var(--ink-soft); font-size: 17px; max-width: 70ch; }

/* ================= service index rows ================= */
.srow { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding-block: 40px; border-top: var(--rule) solid var(--ink); text-decoration: none; }
.srow .media { grid-column: 1 / span 5; aspect-ratio: 3 / 2; overflow: hidden; border: var(--rule) solid var(--ink); }
.srow .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.srow:hover .media img { transform: scale(1.04); }
.srow .txt { grid-column: 7 / span 6; display: grid; gap: 14px; min-width: 0; }
.srow:nth-child(even) .media { grid-column: 8 / span 5; order: 2; }
.srow:nth-child(even) .txt { grid-column: 1 / span 6; }
.srow .go { font-weight: 700; }
@media (max-width: 860px) { .srow .media, .srow .txt, .srow:nth-child(even) .media, .srow:nth-child(even) .txt { grid-column: 1 / -1; order: 0; } }

/* ================= forms ================= */
.form { display: grid; gap: 20px; background: var(--white); border: var(--rule) solid var(--ink); padding: clamp(22px, 4vw, 44px); box-shadow: 10px 10px 0 var(--sun); }
.ink .form { color: var(--ink); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.f3 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
@media (max-width: 640px) { .f2, .f3 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field label, .field .lbl { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.input { width: 100%; border: 2px solid var(--ink); background: var(--paper); padding: 13px 14px; border-radius: 0; font-size: 16px; transition: box-shadow .15s, background .15s; }
.input:focus { outline: none; background: var(--white); box-shadow: 4px 4px 0 var(--sun); }
.input::placeholder { color: #7A8797; }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 14px 16px; border: 2px solid; font-weight: 600; }
.form-msg.ok { border-color: var(--ok); background: #E4F1E8; color: #135C33; }
.form-msg.err { border-color: var(--err); background: #F8E3E1; color: #7E1A14; }
.done { text-align: left; display: grid; gap: 12px; }
.done .big { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; font-size: 30px; font-weight: 900; }
.note { font-size: 13.5px; color: var(--ink-soft); }

/* wizard preventivo */
.wsteps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 28px; border: var(--rule) solid var(--ink); }
.wsteps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; border-left: var(--rule) solid var(--ink); background: var(--white); }
.wsteps li:first-child { border-left: 0; }
.wsteps li b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; background: var(--paper-2); font-size: 13px; }
.wsteps li.on { background: var(--sun); } .wsteps li.on b { background: var(--ink); color: var(--white); }
.wsteps li.past b { background: var(--ink); color: var(--sun); }
@media (max-width: 560px) { .wsteps li span { display: none; } .wsteps li { justify-content: center; } }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.opt { text-align: left; display: grid; gap: 6px; padding: 18px; border: var(--rule) solid var(--ink); background: var(--paper); cursor: pointer; transition: background .2s, box-shadow .2s, transform .2s; }
.opt:hover { transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
.opt[aria-pressed="true"] { background: var(--sun); box-shadow: 5px 5px 0 var(--ink); }
.opt strong { font-family: var(--display); font-weight: 800; font-size: 19px; }
.opt span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }
.wnav { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* ================= contatti ================= */
.dlist { display: grid; gap: 0; border-top: var(--rule) solid var(--ink); }
.dlist div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--paper-3); }
.dlist dt { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; color: var(--ink-soft); }
.dlist dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.mapbox { margin-top: 28px; aspect-ratio: 4 / 3; max-width: 100%; border: var(--rule) solid var(--ink); background: var(--paper-2); display: grid; place-items: center; text-align: center; padding: 24px; position: relative; overflow: hidden; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapbox .inner { display: grid; gap: 14px; justify-items: center; max-width: 34ch; }

/* ================= article ================= */
.art-head { max-width: 980px; }
.art-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; color: var(--ink-soft); }
.art-cover { aspect-ratio: 16 / 9; max-width: 100%; border: var(--rule) solid var(--ink); overflow: hidden; margin-top: 40px; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.art-body .prose { grid-column: 3 / span 8; }
.art-body .prose > p:first-child { font-size: 22px; line-height: 1.5; font-weight: 500; }
@media (max-width: 860px) { .art-body .prose { grid-column: 1 / -1; } }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button { border: 2px solid var(--ink); background: transparent; padding: 9px 14px; cursor: pointer; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ================= legal ================= */
.legal-body { display: grid; gap: 34px; max-width: 72ch; }
.legal-body h2 { font-family: var(--display); font-weight: 800; font-size: 24px; margin-bottom: 8px; }
.legal-body p { font-size: 17px; line-height: 1.65; }

/* ================= footer ================= */
.ftr { background: var(--ink-deep); color: var(--on-ink); font-size: 15px; padding-block: 72px calc(36px + env(safe-area-inset-bottom, 0px)); }
.ftr .top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.ftr .logo img { height: 44px; }
.ftr .claim { margin-top: 18px; max-width: 30ch; }
.ftr h4 { margin-bottom: 14px; color: var(--white); font-family: var(--mono); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr a { text-decoration: none; } .ftr a:hover { color: var(--sun); }
.ftr .big { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(48px, 14.2vw, 196px); line-height: .8; text-transform: uppercase; color: var(--ink); -webkit-text-stroke: 1.5px rgba(201, 211, 223, .28); margin-top: 64px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; }
.ftr .legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(201, 211, 223, .2); display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; }
@media (max-width: 860px) { .ftr .top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr .top { grid-template-columns: 1fr; } }

/* ================= cookie banner ================= */
.cookie { position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 640px; background: var(--white); border: var(--rule) solid var(--ink); box-shadow: 8px 8px 0 var(--sun); padding: 20px 22px; display: grid; gap: 14px; }
.cookie h2 { font-family: var(--display); font-weight: 800; font-size: 19px; }
.cookie p { font-size: 14.5px; }
.cookie .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { padding: 11px 16px; font-size: 13px; }

/* 404 */
.nf { min-height: 70svh; display: grid; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { transform: none; }
}

/* ================= COME FUNZIONA: racconto a scorrimento ================= */
.story { padding-bottom: clamp(64px, 9vw, 120px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.story-stage { grid-column: 2; grid-row: 1; position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.story-steps { grid-column: 1; grid-row: 1; padding-block: 8vh 20vh; display: grid; gap: 0; }
.xstage { position: relative; height: calc(100svh - 120px); min-height: 420px; max-height: 860px; border: var(--rule) solid var(--ink); background: var(--paper); overflow: hidden; touch-action: pan-y; }
.xstage > picture img, .xstage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xstage canvas { opacity: 0; transition: opacity 1s var(--ease); }
.xstage.live canvas { opacity: 1; }
.xstage.live > picture { visibility: hidden; }
.xstage[data-step="7"] canvas { cursor: grab; } .xstage.dragging canvas { cursor: grabbing; }
.xlabels { position: absolute; inset: 0; pointer-events: none; }
.xlab { position: absolute; left: 0; top: 0; width: 0; height: 0; font-size: 12px; line-height: 1; will-change: transform; --dy: 0px; }
.xlab .tag { position: absolute; left: 10px; top: 0; display: flex; align-items: center; white-space: nowrap; transform: translateY(calc(-50% + var(--dy))); }
.xlab.flip .tag { left: auto; right: 10px; }
.xlab i { position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--paper); z-index: 1; }
/* linea guida: verticale dal punto all'altezza dell'etichetta, poi un tratto orizzontale fino all'etichetta */
.xlab.lead::before { content: ""; position: absolute; left: -1px; top: min(0px, var(--dy)); width: 2px; height: max(var(--dy), calc(-1 * var(--dy))); background: var(--ink); }
.xlab.lead::after { content: ""; position: absolute; left: 0; top: calc(var(--dy) - 1px); width: 10px; height: 2px; background: var(--ink); }
.xlab.lead.flip::after { left: -10px; }
.xlab b { font-family: var(--mono); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--paper); border: 2px solid var(--ink); padding: 5px 7px; }
.xlab span:not(:empty) { font-family: var(--mono); font-weight: 600; background: var(--ink); color: var(--white); padding: 7px 7px; margin-left: -6px; font-variant-numeric: tabular-nums; }
.xlab.focus b { background: var(--sun); }
.xlab.focus { z-index: 2; }
.xlab.focus i { background: var(--sun); box-shadow: 0 0 0 3px var(--ink); }
.xhour { position: absolute; right: 12px; top: 12px; background: var(--ink); color: var(--white); padding: 8px 10px; font-variant-numeric: tabular-nums; }
.xlegend { position: absolute; left: 12px; bottom: 12px; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: calc(100% - 24px); background: color-mix(in srgb, var(--paper) 90%, transparent); border: 2px solid var(--ink); padding: 8px 10px; font-size: 10.5px; }
.xlegend li { display: flex; align-items: center; gap: 6px; }
.xlegend i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.sstep { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 28px 0 28px 22px; border-left: var(--rule) solid var(--paper-3); transition: border-color .4s; }
.sstep .mono { color: var(--ink-soft); }
.sstep p { font-size: 18px; line-height: 1.6; max-width: 46ch; color: var(--ink-soft); transition: color .4s; }
.sstep h2 { transition: color .4s; color: var(--ink-soft); }
.sstep.on { border-left-color: var(--sun); }
.sstep.on h2, .sstep.on p { color: var(--ink); }
.sstep.sim { min-height: auto; padding-block: 12vh 4vh; }
.simctl { display: grid; gap: 16px; margin-top: 6px; }
.simctl output { font-variant-numeric: tabular-nums; }
.simctl input[type="range"] { width: 100%; accent-color: var(--ink); height: 28px; }
.simrow { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.simrow .btn { padding: 12px 16px; font-size: 13px; }
.simrow .btn[aria-pressed="true"] { background: var(--sun); border-color: var(--ink); color: var(--ink); }
.switch { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .trk { width: 46px; height: 26px; border: 2px solid var(--ink); background: var(--paper-2); position: relative; transition: background .2s; }
.switch .trk::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: var(--ink); transition: transform .2s var(--ease); }
.switch input:checked + .trk { background: var(--sun); }
.switch input:checked + .trk::after { transform: translateX(20px); }
.switch input:focus-visible + .trk { outline: 3px solid var(--sun); outline-offset: 3px; }
.simout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 4px 0 0; border-top: var(--rule) solid var(--ink); }
.simout div { padding: 12px 0; border-bottom: 1px solid var(--paper-3); }
.simout div:nth-child(odd) { padding-right: 12px; }
.simout dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-soft); }
.simout dd { margin: 4px 0 0; font-family: var(--display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.cover { display: grid; gap: 8px; }
.cover .bar { display: flex; height: 16px; background: var(--paper-2); border: 2px solid var(--ink); }
.cover .bar i { display: block; height: 100%; transition: width .3s var(--ease); }
.cover .bar i:nth-child(1), .k1 { background: var(--sun); } .cover .bar i:nth-child(2), .k2 { background: #5B8DD6; } .cover .bar i:nth-child(3), .k3 { background: var(--it-red); }
.kc { background: var(--ink); }
.cover ul, .chart figcaption { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; }
.cover li, .chart figcaption span { display: flex; align-items: center; gap: 6px; }
.cover li i, .chart figcaption i { width: 12px; height: 12px; display: inline-block; }
.chart { margin: 6px 0 0; display: grid; gap: 6px; }
.chart svg { width: 100%; height: auto; display: block; background: var(--white); border: 2px solid var(--ink); }
.chart text { font-family: var(--mono); font-size: 11px; fill: var(--ink-soft); }
.chart .g { stroke: var(--paper-3); stroke-width: 1; }
.chart .p { fill: color-mix(in srgb, var(--sun) 55%, transparent); stroke: var(--sun-deep); stroke-width: 2; }
.chart .c { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.chart .cur { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.chart .dp { fill: var(--sun); stroke: var(--ink); stroke-width: 2; } .chart .dc { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.sumline { font-size: 17px !important; color: var(--ink) !important; }
.sumline strong { font-variant-numeric: tabular-nums; }
.sstep .note { font-size: 13.5px; }
.glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px; margin: 0; }
.glossary div { border-top: var(--rule) solid var(--ink); padding-top: 14px; }
.glossary dt { font-family: var(--display); font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.glossary dd { margin: 0; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 960px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-stage { grid-column: 1; grid-row: 1; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 3; }
  .story-steps { grid-column: 1; grid-row: 2; padding-block: 0 10vh; }
  .xstage { height: 46svh; min-height: 300px; }
  .xlegend { display: none; }
  .xlab { font-size: 10px; } .xlab b { padding: 4px 5px; } .xlab span:not(:empty) { padding: 6px 5px; }
  .sstep { min-height: 62svh; padding-left: 16px; }
  .glossary { grid-template-columns: 1fr; }
}
@media (min-width: 961px) and (max-width: 1200px) { .glossary { grid-template-columns: 1fr 1fr; } }

/* teaser verso la spiegazione */
.teaser .teaser-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
.teaser .txt { display: grid; gap: 18px; justify-items: start; }
.teaser .txt p { max-width: 44ch; font-size: 18px; }
.teaser .media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: var(--rule) solid var(--white); display: block; }
.teaser .media img, .teaser .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.teaser .media:hover video, .teaser .media:hover img { transform: scale(1.03); }
.teaser .play { position: absolute; left: 14px; bottom: 14px; background: var(--sun); color: var(--ink); padding: 9px 12px; font-weight: 600; }
@media (max-width: 860px) { .teaser .teaser-in { grid-template-columns: 1fr; } }

.xstage:not(.live) .xlegend { display: none; }
