/* ==========================================================================
   WHISTLEBLOWING SICURO — "Carta valori"
   Sito statico per OpenLiteSpeed/LiteSpeed. Nessuna dipendenza esterna:
   font ospitati localmente, nessuna chiamata a terze parti prima del consenso.
   ========================================================================== */

/* ---------- Font (self-hosted, nessun trasferimento verso Google) ---------- */
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("../fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@property --lr { syntax: "<length>"; inherits: true; initial-value: -60px; }
@property --ovi-t { syntax: "<number>"; inherits: true; initial-value: 0; }

/* ---------- Token ---------- */
:root {
  --paper: #E6EEEA;
  --paper-deep: #D5E2DC;
  --paper-bright: #F5F9F7;
  --ink: #1E1850;
  --ink-soft: #48456F;
  --intaglio: #17123F;
  --intaglio-line: #2E2877;
  --on-intaglio: #E6EEEA;
  --on-intaglio-soft: #B9B5DC;
  --ovi-violet: #5B2BD6;
  --ovi-green: #0A7662;
  --numerator: #C22A1C;
  --numerator-bright: #FF6A55;
  --uv-glow: #D6FF4F;
  --uv-cyan: #6CF6FF;
  --underprint-sage: #B7CCC2;
  --underprint-lilac: #C8C1E8;
  --rule: rgba(30, 24, 80, 0.16);
  --rule-strong: rgba(30, 24, 80, 0.42);

  --foil: linear-gradient(170deg, #cfd6ff 0%, #f4fbff 14%, #b7a8ff 28%, #9fe9d4 42%, #fdf1ff 55%, #a9c4ff 68%, #d9ffe9 82%, #c3b2ff 100%);

  --font-display: "Bodoni Moda", "Bodoni 72", "Didot", "Bodoni MT", serif;
  --font-text: "Archivo", "Helvetica Neue", "Arial", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(96px, 13vw, 176px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-doc: 0 34px 60px -34px rgba(23, 18, 63, 0.55), 0 8px 18px -10px rgba(23, 18, 63, 0.25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  interpolate-size: allow-keywords;
}
html:not(.lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  /* fondino di sicurezza: tratteggio finissimo */
  background-image:
    repeating-linear-gradient(115deg, rgba(183, 204, 194, 0.22) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(65deg, rgba(200, 193, 232, 0.18) 0 1px, transparent 1px 9px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--ovi-violet); color: var(--ovi-violet); }
strong { font-weight: 640; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 560; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--ovi-violet);
  outline-offset: 3px;
  border-radius: 1px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 200;
  background: var(--ink); color: var(--paper-bright);
  padding: 12px 18px; text-decoration: none; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; color: var(--paper-bright); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

[tabindex="-1"]:focus { outline: none; }

/* ---------- Tipografia di sistema ---------- */
.label {
  font-family: var(--font-text);
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 650;
  font-stretch: 125%;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.label--light { color: var(--on-intaglio-soft); }

.numerator {
  font-family: var(--font-text);
  font-stretch: 72%;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--numerator);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 560;
  max-width: 17ch;
}
.h2--light { color: var(--on-intaglio); }
.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.08;
}
.intro {
  font-size: clamp(1.06rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-top: 22px;
}
.intro--light { color: var(--on-intaglio-soft); }
.intro--light strong { color: var(--on-intaglio); }
.fineprint {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-top: 28px;
  max-width: 70ch;
}

/* Inchiostro otticamente variabile: colore pieno che vira col movimento */
.ovi {
  font-style: italic;
  color: var(--ovi-violet);
  color: color-mix(in oklab, var(--ovi-violet), var(--ovi-green) calc(var(--ovi-t) * 100%));
}

/* Numeratore a rulli */
.roll { display: inline-flex; vertical-align: top; }
.roll__d { display: inline-block; height: 1.12em; overflow: hidden; }
.roll__strip {
  display: flex;
  flex-direction: column;
  line-height: 1.12em;
  transform: translateY(calc(var(--from) * -1.12em));
}
.roll__strip > span { display: block; height: 1.12em; }
.roll.is-go .roll__strip {
  transform: translateY(calc(var(--to) * -1.12em));
  transition: transform var(--dur, 1.4s) cubic-bezier(.2, .9, .25, 1) var(--delay, 0ms);
}
.roll__c { display: inline-block; white-space: pre; }

/* ---------- Pulsanti ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-text);
  font-size: 0.97rem;
  font-weight: 620;
  font-stretch: 108%;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  overflow: hidden;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper-bright);
  box-shadow: 0 10px 22px -14px rgba(23, 18, 63, .8);
}
/* riflesso olografico */
.btn--primary::after {
  content: "";
  position: absolute; inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(207, 214, 255, .55) 42%, rgba(159, 233, 212, .5) 50%, rgba(183, 168, 255, .55) 58%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .9s var(--ease-out);
  mix-blend-mode: screen;
}
.btn--primary:hover { box-shadow: 0 16px 28px -16px rgba(23, 18, 63, .9); }
.btn--primary:hover::after { transform: translateX(110%); }
.btn--ghost:hover { background: var(--paper-deep); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: progress; }

.linklike {
  background: none; border: 0; padding: 0;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em;
  text-align: left;
}

/* ---------- Filo di sicurezza (progresso di lettura) ---------- */
.thread {
  --p: 0;
  position: fixed;
  z-index: 60;
  left: 0; right: 0; top: 0;
  height: 3px;
  pointer-events: none;
}
.thread__foil {
  position: absolute; inset: 0;
  background: var(--foil);
  background-size: 300% 100%;
  transform-origin: left center;
  transform: scaleX(var(--p));
}
@media (min-width: 1320px) {
  .thread {
    left: 18px; right: auto; top: calc(var(--header-h) + 28px); bottom: 28px;
    width: 5px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(30, 24, 80, .14) 0 20px, transparent 20px 32px);
  }
  .thread__foil {
    background-size: 100% 400%;
    background-position: 0 calc(var(--p) * 100%);
    transform-origin: top center;
    transform: scaleY(var(--p));
    -webkit-mask: repeating-linear-gradient(180deg, #000 0 20px, transparent 20px 32px);
    mask: repeating-linear-gradient(180deg, #000 0 20px, transparent 20px 32px);
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(230, 238, 234, 0.94);
  transition: box-shadow .4s var(--ease-out), background-color .4s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(230, 238, 234, 0.985);
  box-shadow: 0 1px 0 var(--rule), 0 12px 24px -22px rgba(23, 18, 63, .5);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; color: var(--ink); transition: transform 1.2s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(60deg); }
.brand__dot { fill: var(--numerator); }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand__name em { font-style: italic; color: var(--ovi-violet); }
.brand--light, .brand--light:hover { color: var(--on-intaglio); }
.brand--light .brand__mark { color: var(--on-intaglio); }
.brand--light .brand__name em { color: #B9A6FF; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 26px; }
.nav__list a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 540;
  text-decoration: none;
  color: var(--ink);
  padding-block: 6px;
}
.nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--ovi-violet);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--ovi-violet); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  font-weight: 600;
  font-size: .9rem;
}
.nav-toggle__bars { position: relative; width: 18px; height: 10px; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { top: 8.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { top: 4.25px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { top: 4.25px; transform: rotate(-45deg); }

.menu-mobile {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--paper);
  padding: 28px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  animation: menu-in .5s var(--ease-out);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile li { border-bottom: 1px solid var(--rule); }
.menu-mobile nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-decoration: none;
}
.menu-mobile__foot { color: var(--ink-soft); font-size: .95rem; margin-top: 24px; }
@keyframes menu-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 1080px) {
  .nav, .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 84px);
  overflow: clip;
}
.hero__underprint {
  position: absolute;
  inset: -10% -20% auto auto;
  width: min(1100px, 110vw);
  aspect-ratio: 1;
  opacity: .55;
  pointer-events: none;
  translate: 0 var(--parallax, 0px);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  min-height: calc(100svh - var(--header-h) - 150px);
}
.hero__kicker { color: var(--numerator); }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.3vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 560;
  margin-top: 22px;
  max-width: 11ch;
}
.hero__title .ovi { font-weight: 520; }
.hero__lede {
  margin-top: 30px;
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 50ch;
}
.hero__lede strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__by { margin-top: 28px; font-size: .9rem; color: var(--ink-soft); }
.hero__by a { color: var(--ink); font-weight: 600; }

/* ---------- Documento (ricevuta con matrice) ---------- */
.doc {
  --lx: 50%;
  --ly: 50%;
  --foil-pos: 30%;
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  max-width: 560px;
  justify-self: end;
  width: 100%;
  transform: rotate(1.2deg);
}
.doc__stub {
  position: relative;
  box-shadow: 0 30px 40px -28px rgba(23, 18, 63, .4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  background: var(--paper-deep);
  border-radius: 3px 0 0 3px;
}
.doc__stub-label, .doc__stub-code {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: .64rem;
  font-weight: 650;
  font-stretch: 125%;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.doc__stub-code { color: var(--numerator); font-stretch: 80%; letter-spacing: .08em; font-size: .78rem; }
/* perforazione tra matrice e figlia */
.doc__perf {
  position: absolute; top: 0; bottom: 0; right: -3px;
  width: 6px;
  background: radial-gradient(circle, var(--paper) 1.6px, transparent 2px) 0 0 / 6px 10px repeat-y;
}
.doc__sheet {
  position: relative;
  overflow: hidden;
  padding: 36px 82px 46px clamp(22px, 3.2vw, 40px);
  background-color: var(--paper-bright);
  background-image:
    radial-gradient(ellipse at 30% 20%, rgba(200, 193, 232, .35), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(183, 204, 194, .45), transparent 55%),
    repeating-radial-gradient(circle at 26% 34%, transparent 0 5px, rgba(200, 193, 232, .28) 5px 6px);
  border-radius: 0 3px 3px 0;
  min-height: 560px;
  box-shadow: 0 34px 50px -26px rgba(23, 18, 63, .45), 0 6px 10px -6px rgba(23, 18, 63, .18);
}
.doc__band { position: absolute; left: 0; right: 0; height: 22px; width: 100%; }
.doc__band--top { top: 6px; }
.doc__band--bottom { bottom: 6px; }
.doc__head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}
.doc__head .label { font-size: .64rem; white-space: nowrap; }
.doc__seal {
  position: relative;
  width: min(300px, 70%);
  aspect-ratio: 1;
  margin: 18px 0 6px -10px;
}
.doc__seal .gl { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc__keyhole {
  position: absolute;
  left: 50%; top: 50%;
  width: 13%;
  translate: -50% -50%;
  fill: var(--ink);
}
.doc__title {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 560;
  line-height: 1.05;
}
.doc__sub { position: relative; color: var(--ink-soft); font-size: .9rem; margin-top: 4px; }
.doc__code { position: relative; margin-top: 22px; display: grid; gap: 4px; }
.doc__eg { text-transform: none; letter-spacing: .02em; font-stretch: 100%; font-weight: 500; }
.doc__serial { font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1.1; letter-spacing: .06em; }
.doc__terms {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-strong);
}
.doc__terms dt { font-size: .74rem; color: var(--ink-soft); }
.doc__terms dd { font-size: 1.05rem; }
.doc__foil {
  position: absolute;
  top: 0; bottom: 0;
  right: 24px;
  width: 36px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .7) 0 2px, transparent 3px) 0 0 / 38px 38px,
    var(--foil);
  background-size: 38px 38px, 100% 320%;
  background-position: 0 0, 0 var(--foil-pos);
  opacity: .92;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .7), inset -1px 0 0 rgba(30, 24, 80, .12);
  transition: background-position .6s var(--ease-out);
}
.doc__micro {
  position: relative;
  margin-top: 22px;
  font-size: 4.6px;
  line-height: 1;
  letter-spacing: .06em;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink-soft);
  opacity: .9;
}

/* Strato UV */
.doc__uv {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(58, 26, 150, .96), rgba(22, 10, 64, .98) 70%);
  -webkit-mask-image: radial-gradient(circle at var(--lx) var(--ly), #000 0, #000 var(--lr), transparent calc(var(--lr) + 34px));
  mask-image: radial-gradient(circle at var(--lx) var(--ly), #000 0, #000 var(--lr), transparent calc(var(--lr) + 34px));
  pointer-events: none;
  will-change: mask-position;
  transition: --lr .7s var(--ease-out);
}
.doc__fibers { position: absolute; inset: 0; width: 100%; height: 100%; }
.doc__fibers path { fill: none; stroke-width: 1.1; stroke-linecap: round; }
.uv-note {
  position: absolute;
  left: var(--x); top: var(--y);
  font-size: .72rem;
  font-weight: 700;
  font-stretch: 118%;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--uv-glow);
  text-shadow: 0 0 8px rgba(214, 255, 79, .55);
  white-space: nowrap;
}
.uv-note::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  border: 1.5px solid var(--uv-cyan);
  transform: rotate(45deg) translateY(-1px);
}
.doc.is-uv .doc__uv { --lr: 118px; }
.doc.is-uv-full .doc__uv { --lr: 900px; transition-duration: 1.1s; }

.doc__lamp {
  position: absolute;
  left: 58px;
  bottom: -22px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
  background: var(--paper-bright);
  font-size: .86rem;
  font-weight: 620;
  font-stretch: 108%;
  transform: rotate(-1.2deg);
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.doc__lamp-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #6d47e8;
  box-shadow: 0 0 0 3px rgba(109, 71, 232, .18);
}
.doc__lamp[aria-pressed="true"] { background: #2a1678; color: var(--uv-glow); border-color: #2a1678; }
.doc__lamp[aria-pressed="true"] .doc__lamp-dot { background: var(--uv-glow); box-shadow: 0 0 0 3px rgba(214, 255, 79, .25), 0 0 12px rgba(214, 255, 79, .8); }

/* ---------- Guilloché ---------- */
.gl { overflow: visible; }
.gl path { fill: none; vector-effect: non-scaling-stroke; }
.gl--rosette .gl-a { stroke: #7d6fd0; stroke-width: .7; }
.gl--rosette .gl-b { stroke: #2f8f7b; stroke-width: .6; }
.gl--rosette .gl-c { stroke: var(--ink); stroke-width: .55; }
.gl--rosette .gl-d { stroke: var(--numerator); stroke-width: .5; }
.gl--band path { stroke: #8a80cf; stroke-width: .6; }
.gl--band .gl-b { stroke: #3c9a86; }
.gl--underprint path { stroke: var(--underprint-lilac); stroke-width: .7; }
.gl--underprint .gl-b { stroke: var(--underprint-sage); }
.gl--underprint .gl-c { stroke: #d4cde9; }
.gl--dark path { stroke: var(--intaglio-line); stroke-width: .8; }
.gl--dark .gl-b { stroke: #2b4a66; }
.gl--dark .gl-c { stroke: #3a2f8c; }
.gl--dark .gl-d { stroke: #5a2f4f; }
.gl--seal .gl-a { stroke: #7d6fd0; stroke-width: .7; }
.gl--seal .gl-b { stroke: #2f8f7b; stroke-width: .6; }
.gl--seal .gl-c { stroke: var(--ink); stroke-width: .55; }
.gl--seal .gl-d { stroke: var(--numerator); stroke-width: .5; }

/* incisione progressiva delle linee */
.js .gl[data-draw] path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease-out);
  transition-delay: calc(var(--k, 0) * 38ms);
}
.js .gl[data-draw].is-drawn path { stroke-dashoffset: 0; }

/* ---------- Banda ondulata con microtesto ---------- */
.waveband {
  position: relative;
  margin-top: clamp(56px, 7vw, 96px);
  height: 90px;
  overflow: hidden;
  border-block: 1px solid var(--rule);
  background: rgba(213, 226, 220, .5);
}
.waveband__svg { width: 100%; height: 100%; min-width: 1100px; }
.waveband .gl path { stroke: #9d93d8; stroke-width: .7; }
.waveband .gl .gl-b { stroke: #5aa894; }
.waveband__text {
  font-family: var(--font-text);
  font-size: 11px;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: .22em;
  fill: var(--ink);
}

/* ---------- Sezioni ---------- */
.section { position: relative; padding-block: var(--section); }
.section--intaglio {
  background-color: var(--intaglio);
  background-image:
    repeating-linear-gradient(115deg, rgba(46, 40, 119, .35) 0 1px, transparent 1px 7px);
  color: var(--on-intaglio);
  overflow: clip;
}
.section--intaglio a { color: var(--on-intaglio); }
.section--intaglio a:hover { color: #C9B8FF; }
.section--intaglio :focus-visible { outline-color: var(--uv-glow); }

/* ---------- Chi è obbligato ---------- */
.obbligo__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.law { margin-top: 44px; counter-reset: law; }
.law__item {
  position: relative;
  counter-increment: law;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.law__item:last-child { border-bottom: 1px solid var(--rule); }
.law__item::before {
  content: counter(law) ".";
  grid-row: span 2;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  line-height: 1;
  color: var(--ovi-violet);
}
.law__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.15; }
.law__item p { margin-top: 6px; color: var(--ink-soft); max-width: 60ch; }
.law__item strong { color: var(--ink); }

/* Modulo di verifica */
.check {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(24px, 3vw, 36px);
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-doc);
}
.check::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.check__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.05;
  margin-top: 8px;
}
.check__hint { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }
.check__q {
  border: 0;
  padding: 0;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--rule-strong);
  min-width: 0;
}
.check__q[hidden] { display: none; }
.check__q.is-new { animation: q-in .7s var(--ease-out); }
@keyframes q-in { from { opacity: 0; transform: translateY(12px); } }
.check__q legend { font-weight: 600; font-size: 1.02rem; line-height: 1.4; display: flex; gap: 12px; padding: 0; }
.check__n {
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  width: 26px; height: 26px;
  border: 1.5px solid var(--numerator);
  color: var(--numerator);
  font-size: .78rem;
  font-weight: 700;
  font-stretch: 90%;
  margin-top: -1px;
}
.check__opts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; padding-left: 38px; }
.check__result {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  display: grid;
  gap: 10px;
  justify-items: start;
}
.check__result[hidden] { display: none; }
.check__since { font-size: 1.05rem; margin-top: 6px; }
.check__why { color: var(--ink-soft); font-size: .95rem; }
.check__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Caselle da modulo prestampato (radio e checkbox) */
.box {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  min-height: 32px;
  padding-block: 4px;
  line-height: 1.35;
}
.box input {
  position: absolute;
  opacity: 0;
  width: 22px; height: 22px;
  margin: 0;
  cursor: pointer;
}
.box > span::before {
  content: "";
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -5px;
  width: 20px; height: 20px;
  margin-right: 10px;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(45deg, transparent calc(50% - 1px), var(--ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(-45deg, transparent calc(50% - 1px), var(--ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 0 0;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-size .25s var(--ease-out), border-color .2s;
}
.box input:checked + span::before { background-size: 70% 70%; }
.box:hover > span::before { border-color: var(--ovi-violet); }
.box input:focus-visible + span::before { outline: 2px solid var(--ovi-violet); outline-offset: 2px; }
.box--check > span { display: block; }
.box--check > span::before { float: left; margin-top: 1px; }

/* Timbro */
.stamp {
  --tone: var(--numerator);
  display: inline-grid;
  place-items: center;
  padding: 8px 18px;
  border: 4px double var(--tone);
  color: var(--tone);
  font-size: 1.35rem;
  font-weight: 760;
  font-stretch: 125%;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.1;
  transform: rotate(-5deg);
  filter: url(#ink);
  opacity: .9;
}
.stamp[data-tone="violet"] { --tone: var(--ovi-violet); }
.stamp[data-tone="green"] { --tone: var(--ovi-green); }
.stamp[data-tone="ink"] { --tone: var(--ink-soft); }
.stamp.is-stamped { animation: stamp .55s var(--ease-out) both; }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-5deg) scale(1.9); }
  55% { opacity: .95; transform: rotate(-5deg) scale(.95); }
  100% { opacity: .9; transform: rotate(-5deg) scale(1); }
}

/* ---------- Sanzioni ---------- */
.fine { padding-block: clamp(110px, 14vw, 190px); }
.fine__rosette {
  position: absolute;
  right: -18vw; top: 50%;
  width: min(1100px, 95vw);
  aspect-ratio: 1;
  translate: 0 -50%;
  opacity: .9;
  pointer-events: none;
}
.fine__rosette .gl { width: 100%; height: 100%; animation: spin 140s linear infinite; animation-play-state: paused; will-change: transform; }
.fine.is-visible .fine__rosette .gl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.fine__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  column-gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.fine__label { grid-column: 1 / -1; color: var(--numerator-bright); margin-bottom: 18px; }
.fine__title { display: grid; line-height: .9; font-weight: 400; }
.fine__row { display: flex; align-items: baseline; gap: .12em; }
.fine__from {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--on-intaglio-soft);
  min-width: 1.6em;
}
.fine__num {
  font-size: clamp(4.4rem, 13.5vw, 11.5rem);
  line-height: .92;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: var(--numerator-bright);
}
.fine__eur {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  color: var(--on-intaglio);
}
.fine__text { color: var(--on-intaglio-soft); display: grid; gap: 14px; max-width: 46ch; padding-bottom: 12px; }
.fine__text strong { color: var(--on-intaglio); }

/* ---------- Scadenze: pentagramma ---------- */
.score { --lane-h: clamp(92px, 13.5vh, 130px); --lanes-w: 150px; padding-bottom: 0; }
@media (max-height: 820px) {
  .score.is-pinned .h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
  .score.is-pinned .score__head .intro { margin-top: 10px; }
}
.score.is-pinned .score__head { padding-bottom: clamp(20px, 3vh, 36px); }
.score__head { padding-bottom: 36px; }
.score__viewport {
  position: relative;
  display: flex;
  height: calc(46px + var(--lane-h) * 4);
  border-block: 1px solid var(--rule-strong);
  overflow-x: auto;
  overflow-y: hidden;
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--lane-h) - 1px), var(--rule) calc(var(--lane-h) - 1px) var(--lane-h));
  background-position: 0 46px;
  background-repeat: no-repeat;
  background-size: 100% calc(var(--lane-h) * 4);
  scrollbar-width: thin;
}
.score__lanes {
  position: sticky;
  left: 0;
  z-index: 3;
  flex: 0 0 var(--lanes-w);
  margin-right: calc(-1 * var(--lanes-w));
  height: 100%;
  padding-top: 46px;
  background: linear-gradient(90deg, var(--paper) 78%, transparent);
}
.score__lanes span {
  display: flex;
  align-items: flex-start;
  height: var(--lane-h);
  padding: 10px 0 0 var(--gutter);
  font-size: .66rem;
  font-weight: 650;
  font-stretch: 125%;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.score__playhead { display: none; }
.score__track {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
  width: max-content;
  padding-left: var(--lanes-w);
  padding-right: 52vw;
  will-change: transform;
}
.bar {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--w) * 1vw);
  min-width: calc(var(--w) * 9px);
  height: 100%;
  border-left: 1px solid var(--rule-strong);
}
.bar__year {
  position: absolute;
  top: 12px; left: 12px;
  font-size: .82rem;
  font-weight: 720;
  font-stretch: 80%;
  letter-spacing: .06em;
  color: var(--ink);
}
.bar--now { border-left: 2px solid var(--ink); background: linear-gradient(90deg, rgba(194, 42, 28, .05), transparent 60%); }
.bar--now .bar__year { color: var(--numerator); }
.bar--rest { background: repeating-linear-gradient(90deg, transparent 0 8px, rgba(30, 24, 80, .04) 8px 9px); }
.bar__rest {
  position: absolute;
  left: 12%; right: 12%;
  top: calc(46px + var(--lane-h) * 2 - 7px);
  height: 14px;
  background: var(--ink);
  border-inline: 2px solid var(--ink);
}
.bar__rest b {
  position: absolute;
  left: 50%; bottom: 22px;
  translate: -50% 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 600;
}
.bar__events { position: absolute; inset: 0; }
.ev {
  position: absolute;
  left: calc(var(--m) / 12 * 100%);
  top: calc(46px + var(--lane) * var(--lane-h));
  width: 250px;
  padding: 12px 0 0 18px;
}
.ev::before {
  content: "";
  position: absolute;
  left: -6px; top: -6px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  transition: background-color .4s var(--ease-out), transform .4s var(--ease-out), border-color .4s;
}
.ev time, .ev__now { display: block; font-size: .92rem; }
.ev h3 { font-family: var(--font-text); font-size: .98rem; font-weight: 680; line-height: 1.25; margin-top: 2px; }
.ev p { font-size: .84rem; line-height: 1.4; color: var(--ink-soft); margin-top: 3px; }
.ev__link { display: inline-block; margin-top: 4px; font-size: .86rem; font-weight: 650; color: var(--ovi-violet); }
.ev--key h3 { color: var(--ovi-violet); }
.ev.is-on::before { background: var(--numerator); border-color: var(--numerator); transform: scale(1.25); }

/* Stato fissato (JS, schermi larghi) */
.score.is-pinned { padding-block: 0; }
.score.is-pinned .score__pin {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.score.is-pinned .score__viewport { overflow: hidden; }
.score.is-pinned .score__track { transform: translate3d(var(--tx, 0px), 0, 0); }
.score.is-pinned .score__playhead {
  display: block;
  position: absolute;
  z-index: 2;
  top: 0; bottom: 0;
  left: 42%;
  width: 0;
  border-left: 1.5px solid var(--numerator);
}
.score.is-pinned .score__playhead::before {
  content: "";
  position: absolute; top: -1px; left: -7px;
  border: 6px solid transparent;
  border-top: 8px solid var(--numerator);
}

/* ---------- Requisiti: registro ---------- */
.requisiti__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.requisiti__head .intro { margin-top: 0; }
.ledger-wrap { margin-top: 56px; }
.ledger { width: 100%; border-collapse: collapse; }
.ledger thead th {
  text-align: left;
  padding: 0 16px 14px 0;
  font-size: .68rem;
  font-weight: 650;
  font-stretch: 125%;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1.5px solid var(--ink);
}
.ledger tbody tr {
  background-image: radial-gradient(circle, var(--rule-strong) 1px, transparent 1.4px);
  background-size: 7px 3px;
  background-repeat: repeat-x;
  background-position: 0 100%;
}
.ledger tbody th, .ledger tbody td { padding: 20px 20px 20px 0; vertical-align: top; }
.ledger tbody th {
  text-align: left;
  font-weight: 520;
  font-size: 1.04rem;
  line-height: 1.45;
  width: 48%;
}
.ledger tbody td:nth-child(2) {
  width: 16%;
  font-size: .86rem;
  font-weight: 650;
  font-stretch: 85%;
  letter-spacing: .02em;
  color: var(--numerator);
  white-space: nowrap;
}
.tag {
  display: inline-block;
  padding: 3px 9px 2px;
  border: 1.5px solid currentColor;
  font-size: .68rem;
  font-weight: 700;
  font-stretch: 125%;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0 6px 6px 0;
}
.tag--platform { color: var(--ovi-violet); background: rgba(91, 43, 214, .07); }
.tag--org { color: var(--ink); }
.tag-note { font-size: .88rem; color: var(--ink-soft); margin-right: 6px; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.who .tag { margin: 0; }

/* ---------- Piattaforma: esemplare ---------- */
.platform__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.platform__head .intro { margin-top: 0; }
.specimen-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
}
.leaders { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.leaders path {
  fill: none;
  stroke: rgba(170, 164, 222, .85);
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-out), stroke .3s;
  transition-delay: calc(var(--k, 0) * 90ms), 0s;
}
.specimen-wrap.is-in .leaders path { stroke-dashoffset: 0; }
.leaders path.is-active { stroke: var(--numerator-bright); stroke-width: 1.6; }
.leaders circle { fill: var(--numerator-bright); }

.callouts { display: grid; gap: clamp(26px, 3.2vw, 44px); }
.callout { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; }
.callouts--left .callout { text-align: right; grid-template-columns: minmax(0, 1fr) 34px; }
.callouts--left .callout__n { grid-column: 2; grid-row: 1 / span 2; }
.callouts--left .callout h3, .callouts--left .callout p { grid-column: 1; }
.callout__n {
  grid-row: 1 / span 2;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--numerator-bright);
  color: var(--numerator-bright);
  font-size: .82rem;
  font-weight: 720;
  font-stretch: 85%;
  transition: background-color .3s, color .3s;
}
.callout h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; color: var(--on-intaglio); }
.callout p { margin-top: 6px; font-size: .95rem; line-height: 1.5; color: var(--on-intaglio-soft); }
.callout.is-active .callout__n { background: var(--numerator-bright); color: var(--intaglio); }

.specimen {
  position: relative;
  transform: rotate(-1deg);
}
.spec {
  background: var(--paper-bright);
  color: var(--ink);
  border-radius: 3px;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
  font-size: .82rem;
}
.spec__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper-bright);
  font-weight: 600;
  font-size: .78rem;
}
.spec__org { display: flex; align-items: center; gap: 10px; }
.spec__logo { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--paper-bright); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 9px var(--numerator-bright); }
.spec__tools { display: flex; align-items: center; gap: 10px; }
.spec__login { font-weight: 500; font-size: .7rem; opacity: .85; }
.spec__lang { padding: 2px 8px; border: 1px solid rgba(245, 249, 247, .4); font-size: .72rem; }
.spec__onion {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 9px 18px;
  font-size: .72rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.spec__lock { width: 9px; height: 8px; border-radius: 1px; background: var(--ovi-green); position: relative; margin-top: 3px; }
.spec__lock::before { content: ""; position: absolute; left: 1.5px; top: -5px; width: 6px; height: 6px; border: 1.5px solid var(--ovi-green); border-bottom: 0; border-radius: 4px 4px 0 0; }
.spec__or { color: var(--ink-soft); font-style: italic; }
.spec__body { padding: 16px 18px 18px; display: grid; gap: 7px; }
.spec__label { font-weight: 650; font-size: .76rem; margin-top: 4px; }
.spec__select { display: flex; justify-content: space-between; padding: 9px 11px; border: 1px solid var(--rule-strong); background: #fff; }
.spec__cipher { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--rule-strong); background: #fff; }
.spec__cipher span {
  display: block; height: 7px; width: var(--w);
  background: repeating-linear-gradient(90deg, rgba(91, 43, 214, .55) 0 3px, transparent 3px 5px, rgba(10, 118, 98, .5) 5px 7px, transparent 7px 10px);
  border-radius: 1px;
}
.spec__row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; margin-top: 4px; }
.spec__file, .spec__voice { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px dashed var(--rule-strong); font-size: .74rem; }
.spec__clip { width: 8px; height: 13px; border: 1.5px solid var(--ink); border-radius: 4px; }
.spec__wave { display: flex; align-items: center; gap: 2px; height: 16px; }
.spec__wave i { display: block; width: 2px; background: var(--ovi-violet); border-radius: 1px; height: 30%; }
.spec__wave i:nth-child(3n) { height: 90%; } .spec__wave i:nth-child(4n) { height: 60%; } .spec__wave i:nth-child(5n) { height: 100%; }
.spec__receipt {
  margin-top: 8px;
  padding: 12px;
  border: 1.5px solid var(--ink);
  display: grid; gap: 2px;
  background: repeating-radial-gradient(circle at 90% 50%, transparent 0 4px, rgba(200, 193, 232, .35) 4px 5px);
}
.spec__receipt span { font-size: .7rem; color: var(--ink-soft); }
.spec__receipt b { font-size: 1.25rem; font-weight: 720; font-stretch: 72%; letter-spacing: .06em; color: var(--numerator); }
.spec__foot { display: flex; justify-content: space-between; padding: 10px 18px; font-size: .7rem; color: var(--ink-soft); border-top: 1px solid var(--rule); background: var(--paper); }
.specimen__overprint {
  position: absolute;
  left: 50%; top: 50%;
  translate: -50% -50%;
  rotate: -28deg;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 760;
  font-stretch: 125%;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(194, 42, 28, .4);
  mix-blend-mode: multiply;
  pointer-events: none;
  white-space: nowrap;
}
.marker {
  position: absolute;
  left: var(--x); top: var(--y);
  translate: -50% -50%;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--numerator);
  color: #fff;
  font-size: .72rem;
  font-weight: 720;
  box-shadow: 0 0 0 3px rgba(245, 249, 247, .9);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.marker.is-active { transform: scale(1.3); box-shadow: 0 0 0 3px rgba(245, 249, 247, .9), 0 0 0 9px rgba(255, 106, 85, .35); }
.platform__standards { margin-top: clamp(48px, 6vw, 80px); text-align: center; color: var(--on-intaglio-soft); max-width: 70ch; margin-inline: auto; }
.platform__standards strong { color: var(--on-intaglio); }
.platform__standards a { display: inline-block; margin-left: 6px; font-weight: 600; }

/* ---------- Percorso della segnalazione ---------- */
.process__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.process__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.process__steps { --p: 0; position: relative; }
.process__steps::before, .process__steps::after {
  content: "";
  position: absolute;
  left: 150px;
  top: 0; bottom: 0;
  width: 1.5px;
  background: var(--rule-strong);
}
.process__steps::after {
  background: var(--numerator);
  transform-origin: top;
  transform: scaleY(var(--p));
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  column-gap: 34px;
  padding-block: 28px;
}
.step::before {
  content: "";
  position: absolute;
  left: 145px; top: 36px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  z-index: 1;
  transition: background-color .4s, border-color .4s, transform .4s var(--ease-out);
}
.step.is-past::before { background: var(--numerator); border-color: var(--numerator); transform: scale(1.15); }
.step__when { grid-row: span 2; text-align: right; padding-right: 8px; padding-top: 2px; font-size: 1.05rem; color: var(--ink-soft); transition: color .4s; }
.step.is-past .step__when { color: var(--numerator); }
.step h3 { grid-column: 2; font-family: var(--font-display); font-size: 1.55rem; line-height: 1.12; }
.step p:not(.step__when) { grid-column: 2; margin-top: 8px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Servizio ---------- */
.service { background: var(--paper-deep); overflow: clip; }
.service__underprint { position: absolute; left: -30vw; top: -10%; width: min(1000px, 100vw); aspect-ratio: 1; opacity: .5; pointer-events: none; }
.service__grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.service__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 13ch;
}
.included { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.included li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-block: 22px; border-top: 1px solid var(--rule-strong); }
.included h3 { font-family: var(--font-text); font-size: 1.05rem; font-weight: 680; }
.included p { margin-top: 4px; color: var(--ink-soft); font-size: .96rem; }
.included__tick {
  width: 30px; height: 30px;
  border: 1.5px solid var(--ovi-violet);
  border-radius: 50%;
  position: relative;
  transform: rotate(-8deg);
}
.included__tick::after {
  content: "";
  position: absolute;
  left: 9px; top: 6px;
  width: 8px; height: 13px;
  border: solid var(--ovi-violet);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(40deg);
}
.tickets-head { margin-top: clamp(80px, 10vw, 130px); }
.tickets {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 32px;
  counter-reset: none;
}
.ticket {
  position: relative;
  padding: 28px 26px 30px;
  background: var(--paper-bright);
  border: 1px solid var(--rule-strong);
  margin-left: -1px;
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 11px, #000 11.5px) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 50%, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle at 0 50%, transparent 11px, #000 11.5px) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% 50%, transparent 11px, #000 11.5px) right / 51% 100% no-repeat;
  transition: transform .5s var(--ease-out);
}
.ticket::after {
  content: "";
  position: absolute; top: 18px; bottom: 18px; right: -1px;
  border-right: 1.5px dashed var(--rule-strong);
}
.ticket:last-child::after { display: none; }
.ticket:hover { transform: translateY(-6px) rotate(-.8deg); }
.ticket__n { font-size: 2.6rem; line-height: 1; }
.ticket h4 { font-family: var(--font-display); font-size: 1.5rem; margin-top: 18px; }
.ticket p { margin-top: 6px; color: var(--ink-soft); font-size: .95rem; }

.maker {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  margin-top: clamp(80px, 10vw, 130px);
  padding-block: 30px;
  border-block: 3px double var(--ink);
}
.maker__seal { width: 120px; height: 120px; }
.maker__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 4px; }
.maker__text p:last-child { margin-top: 8px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 40px); }
.faq__aside a { color: var(--ovi-violet); font-weight: 600; }
.qa { border-top: 1px solid var(--rule-strong); }
.qa:last-child { border-bottom: 1px solid var(--rule-strong); }
.qa summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 560;
  line-height: 1.25;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border: 1.5px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 10px no-repeat;
  transition: transform .45s var(--ease-out), background-color .3s;
}
.qa[open] summary::after { transform: rotate(135deg); }
.qa summary:hover { color: var(--ovi-violet); }
.qa__a { padding: 0 48px 26px 0; color: var(--ink-soft); max-width: 66ch; }
.qa::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete;
}
.qa[open]::details-content { block-size: auto; }

/* ---------- Contatti ---------- */
.contact { padding-top: 0; }
.contact__doc {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  background: var(--paper-bright);
  box-shadow: var(--shadow-doc);
  border: 1px solid var(--rule-strong);
}
.contact__stub {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  background-color: var(--intaglio);
  background-image: repeating-linear-gradient(115deg, rgba(46, 40, 119, .45) 0 1px, transparent 1px 7px);
  color: var(--on-intaglio);
}
.contact__stub .label { color: var(--numerator-bright); }
.contact__title { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.02; margin-top: 12px; }
.contact__stub > p { margin-top: 16px; color: var(--on-intaglio-soft); }
.contact__facts { margin-top: 30px; display: grid; gap: 14px; }
.contact__facts dt { font-size: .7rem; font-weight: 650; font-stretch: 125%; letter-spacing: .12em; text-transform: uppercase; color: var(--on-intaglio-soft); }
.contact__facts a { color: var(--on-intaglio); font-weight: 600; }
.contact__facts a:hover { color: #C9B8FF; }
.contact__perf {
  position: absolute; top: 0; bottom: 0; right: -4px;
  width: 8px;
  background: radial-gradient(circle, var(--paper-bright) 2px, transparent 2.5px) 0 0 / 8px 12px repeat-y;
}
.form { position: relative; isolation: isolate; overflow: clip; padding: clamp(28px, 4vw, 52px); }
/* filigrana: il marchio in trasparenza nella carta del modulo */
.form::before {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  z-index: -1;
  width: 360px; height: 360px;
  background: url("../img/watermark.svg") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}
.form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.form__serial { font-size: 1.1rem; white-space: nowrap; }
.form__type { border: 0; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.form__legend { float: left; margin-right: 18px; font-size: .78rem; font-weight: 650; font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; margin-top: 18px; }
.field { display: grid; align-content: start; }
.field--full { grid-column: 1 / -1; }
.field label {
  margin-top: 16px;
  font-size: .72rem;
  font-weight: 650;
  font-stretch: 125%;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.req { color: var(--numerator); }
.opt { text-transform: none; letter-spacing: 0; font-stretch: 100%; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 2px 9px;
  border: 0;
  border-bottom: 1.5px solid var(--rule-strong);
  border-radius: 0;
  background: transparent;
  font-size: 1.05rem;
  color: var(--ink);
  transition: border-color .3s, background-color .3s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; border: 1.5px solid var(--rule-strong); padding: 12px; margin-top: 8px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: #6a6790; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ovi-violet); background-color: rgba(91, 43, 214, .04); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 2px 0 0 var(--ovi-violet); }
.field [aria-invalid="true"] { border-color: var(--numerator); }
.field__error { margin-top: 6px; font-size: .86rem; color: var(--numerator); font-weight: 560; }
.field__error[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__privacy { margin-top: 26px; font-size: .92rem; color: var(--ink-soft); }
.form__privacy a { color: var(--ink); font-weight: 600; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.form__note { font-size: .84rem; color: var(--ink-soft); }
.form__status { margin-top: 14px; font-weight: 560; }
.form__status.is-error { color: var(--numerator); }
.btn--submit.is-loading .btn__label::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.form__done { display: grid; gap: 12px; justify-items: start; padding-block: 20px; }
.form__done[hidden] { display: none; }
.form__done h3 { font-family: var(--font-display); font-size: 2rem; margin-top: 16px; }
.form__done p { color: var(--ink-soft); max-width: 52ch; }
.form.is-sent > :not(.form__done):not(.form__head) { display: none; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: clip;
  padding-block: clamp(72px, 9vw, 120px) 36px;
  background-color: var(--intaglio);
  background-image: repeating-linear-gradient(115deg, rgba(46, 40, 119, .35) 0 1px, transparent 1px 7px);
  color: var(--on-intaglio-soft);
}
.site-footer__rosette { position: absolute; right: -260px; bottom: -380px; width: 820px; aspect-ratio: 1; pointer-events: none; opacity: .8; }
.site-footer__rosette .gl { width: 100%; height: 100%; }
.site-footer .wrap { position: relative; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; }
.site-footer__brand p { margin-top: 18px; max-width: 38ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer__nav ul { margin-top: 14px; display: grid; gap: 10px; }
.site-footer a, .site-footer .linklike { color: var(--on-intaglio); text-decoration-color: rgba(230, 238, 234, .35); }
.site-footer a:hover, .site-footer .linklike:hover { color: #C9B8FF; }
.site-footer :focus-visible { outline-color: var(--uv-glow); }
.site-footer__micro {
  margin-top: 56px;
  font-size: 5px;
  line-height: 1;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  color: #6f6aa8;
  border-block: 1px solid rgba(185, 181, 220, .2);
  padding-block: 6px;
}
.site-footer__legal { margin-top: 22px; display: grid; gap: 6px; font-size: .84rem; }

/* ---------- Tagliando cookie ---------- */
.cookie {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 90;
  width: min(460px, calc(100vw - 32px));
  padding: 26px 24px 22px;
  background: var(--paper-bright);
  border: 1px solid var(--ink);
  box-shadow: 0 30px 60px -25px rgba(23, 18, 63, .6);
  animation: cookie-in .7s var(--ease-out) both;
}
.cookie::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 9px;
  border-top: 1.5px dashed var(--rule-strong);
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(30px) rotate(-1.5deg); } }
.cookie .label { color: var(--numerator); margin-top: 4px; }
.cookie__text { margin-top: 10px; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.cookie__text a { color: var(--ink); font-weight: 600; }
.cookie__actions { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; margin-top: 18px; }
.cookie__actions .btn { padding-inline: 12px; }
.cookie__close {
  position: absolute; top: 14px; right: 12px;
  width: 36px; height: 36px;
  border: 0; background: none;
  font-size: 1.5rem; line-height: 1;
  color: var(--ink-soft);
}
.cookie__close:hover { color: var(--ink); }

.cookie-prefs {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(23, 18, 63, .7);
}
.cookie-prefs::backdrop { background: rgba(23, 18, 63, .55); }
.cookie-prefs[open] { animation: cookie-in .5s var(--ease-out); }
.cookie-prefs__inner { padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; }
.cookie-prefs__title { font-family: var(--font-display); font-size: 2rem; line-height: 1.05; }
.cookie-prefs__inner > p { color: var(--ink-soft); font-size: .95rem; }
.pref { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: start; padding-top: 16px; border-top: 1px solid var(--rule); }
.pref h3 { font-size: 1.02rem; font-weight: 680; }
.pref p { font-size: .9rem; color: var(--ink-soft); margin-top: 4px; }
.pref__always { font-size: .72rem; font-weight: 600; color: var(--ovi-green); margin-left: 6px; }
.switch { position: relative; display: inline-block; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 48px; height: 28px; margin: 0; cursor: pointer; }
.switch__ui { display: block; width: 48px; height: 28px; border: 1.5px solid var(--ink); border-radius: 14px; position: relative; transition: background-color .3s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--ink); transition: transform .35s var(--ease-out), background-color .3s; }
.switch input:checked + .switch__ui { background: var(--ovi-violet); border-color: var(--ovi-violet); }
.switch input:checked + .switch__ui::after { transform: translateX(20px); background: #fff; }
.switch input:disabled + .switch__ui { opacity: .55; cursor: not-allowed; }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ovi-violet); outline-offset: 3px; }
.cookie-prefs__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ---------- Animazioni di comparsa (solo con JS) ---------- */
.js [data-print] {
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 1.3s var(--ease-out), mask-position 1.3s var(--ease-out);
}
.js :is(h1, h2, h3)[data-print] { padding-bottom: .16em; margin-bottom: -.16em; }
.js [data-print].is-in { -webkit-mask-position: 0 0; mask-position: 0 0; }
.js [data-print].is-done { -webkit-mask-image: none; mask-image: none; }
.js [data-rise] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-rise].is-in { opacity: 1; transform: none; }
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-stagger].is-in > * { opacity: 1; transform: none; }
.js .ledger tbody[data-stagger] > tr {
  transform: none;
  clip-path: inset(0 100% 0 0);
  opacity: 1;
  transition: clip-path 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .ledger tbody[data-stagger].is-in > tr { clip-path: inset(0 0 0 0); }
.js .doc { opacity: 0; transform: rotate(4deg) translateY(30px); transition: opacity 1.2s var(--ease-out), transform 1.6s var(--ease-out); }
.js .doc.is-in { opacity: 1; transform: rotate(1.2deg); }

/* Rete di sicurezza: se gli script non partono, tutto resta visibile */
.no-anim [data-print], .no-anim [data-rise], .no-anim [data-stagger] > *, .no-anim .doc, .no-anim .ledger tbody > tr {
  opacity: 1 !important; transform: none !important; clip-path: none !important;
  -webkit-mask-image: none !important; mask-image: none !important;
}
.no-anim .gl[data-draw] path { stroke-dashoffset: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 72px; }
  .doc { justify-self: center; }
  .obbligo__grid, .process__grid, .faq__grid, .service__grid { grid-template-columns: minmax(0, 1fr); }
  .check, .process__aside, .faq__aside { position: static; }
  .fine__grid { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
  .requisiti__head, .platform__head { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .requisiti__head .intro, .platform__head .intro { margin-top: 22px; }
  .specimen-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .specimen { grid-column: 1 / -1; grid-row: 1; max-width: 520px; justify-self: center; width: 100%; }
  .callouts--left .callout { text-align: left; grid-template-columns: 34px minmax(0, 1fr); }
  .callouts--left .callout__n { grid-column: 1; }
  .callouts--left .callout h3, .callouts--left .callout p { grid-column: 2; }
  .leaders { display: none; }
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .ticket:nth-child(2)::after { display: none; }
  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  body { font-size: 1rem; }
  .brand__name { font-size: 1.12rem; }
  .brand__mark { width: 32px; height: 32px; }
  .nav-toggle__label { display: none; }
  .hero__actions .btn { width: 100%; }
  .doc { grid-template-columns: 38px minmax(0, 1fr); transform: rotate(.6deg); }
  .js .doc.is-in { transform: rotate(.6deg); }
  .doc__sheet { min-height: 0; padding-bottom: 60px; }
  .doc__stub-label { font-size: .56rem; }
  .doc__foil { width: 26px; right: 8%; }
  .doc__lamp { left: 38px; }
  .doc__terms { max-width: 100%; }
  .uv-note { font-size: .62rem; }
  .law__item { grid-template-columns: 40px minmax(0, 1fr); }
  .check__opts { padding-left: 0; }

  /* scadenze: da pentagramma a elenco verticale */
  .score__viewport { display: block; height: auto; overflow: visible; background: none; border: 0; }
  .score__lanes { display: none; }
  .score__track { display: block; width: auto; padding: 0 var(--gutter); transform: none !important; }
  .bar { width: auto; min-width: 0; height: auto; border-left: 0; padding: 20px 0 8px; border-top: 1.5px solid var(--ink); }
  .bar__year { position: static; display: block; font-size: 1rem; }
  .bar--now { border-left: 0; border-top-color: var(--numerator); }
  .bar--rest { background: none; padding-bottom: 20px; }
  .bar__rest { position: relative; display: block; left: 0; right: auto; top: 0; width: 120px; margin-top: 48px; }
  .bar__events { position: static; }
  .ev { position: relative; left: auto; top: auto; width: auto; padding: 14px 0 14px 22px; border-left: 1.5px solid var(--rule-strong); margin-left: 5px; }
  .ev::before { top: 20px; }
  .ev[data-lane]::after {
    content: attr(data-lane); position: absolute; right: 0; top: 16px; font-size: .6rem; font-weight: 650; font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }

  .ledger thead { display: none; }
  .ledger, .ledger tbody, .ledger tr, .ledger th, .ledger td { display: block; width: auto !important; }
  .ledger tbody tr { padding-block: 18px; }
  .ledger tbody th, .ledger tbody td { padding: 0; }
  .ledger tbody td:nth-child(2) { margin-top: 6px; }
  .ledger tbody td:nth-child(3) { margin-top: 10px; }

  .specimen-wrap { grid-template-columns: minmax(0, 1fr); }
  .callouts--right { margin-top: -6px; }
  .specimen__overprint { font-size: 1.9rem; }

  .process__steps::before, .process__steps::after { left: 6px; }
  .step { grid-template-columns: minmax(0, 1fr); padding-left: 34px; }
  .step::before { left: 1px; top: 32px; }
  .step__when { text-align: left; grid-row: auto; padding: 0; }
  .step h3, .step p:not(.step__when) { grid-column: 1; }

  .included { grid-template-columns: minmax(0, 1fr); }
  .tickets { grid-template-columns: minmax(0, 1fr); }
  .ticket { margin-left: 0; margin-top: -1px; }
  .ticket::after { display: none; }
  .maker { grid-template-columns: 80px minmax(0, 1fr); }
  .maker__seal { width: 80px; height: 80px; }
  .maker .btn { grid-column: 1 / -1; justify-self: start; }

  .contact__doc { grid-template-columns: minmax(0, 1fr); }
  .contact__perf { top: auto; left: 0; right: 0; bottom: -4px; width: auto; height: 8px; background: radial-gradient(circle, var(--paper-bright) 2px, transparent 2.5px) 0 0 / 12px 8px repeat-x; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  .form__legend { float: none; width: 100%; }
  .site-footer__nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .cookie__actions { grid-template-columns: 1fr 1fr; }
  .cookie__actions .btn--primary { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 420px) {
  .uv-note { white-space: normal; max-width: 60%; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-print], .js [data-rise], .js [data-stagger] > *, .js .doc, .js .ledger tbody > tr {
    opacity: 1; transform: none; clip-path: none; -webkit-mask-image: none; mask-image: none;
  }
  .js .gl[data-draw] path { stroke-dashoffset: 0; }
  .fine__rosette .gl { animation: none; }
}

/* ---------- Stampa ---------- */
@media print {
  .site-header, .thread, .cookie, .cookie-prefs, .doc__lamp, .waveband, .hero__underprint { display: none !important; }
  body { background: #fff; }
  .section--intaglio, .site-footer { background: #fff; color: #000; }
}

/* ==========================================================================
   Pagine interne: informative e 404
   ========================================================================== */
.page-hero { padding-block: clamp(56px, 8vw, 110px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule-strong); }
.page-hero .label { color: var(--numerator); }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 16px;
  max-width: 16ch;
}
.page-meta { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }
.page-meta .numerator { font-size: 1rem; }
.legal { padding-block: clamp(48px, 6vw, 88px) var(--section); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 32px); font-size: .9rem; }
.legal__toc ol { margin-top: 12px; display: grid; gap: 8px; counter-reset: toc; }
.legal__toc li { counter-increment: toc; display: grid; grid-template-columns: 26px 1fr; }
.legal__toc li::before { content: counter(toc) "."; color: var(--numerator); font-weight: 700; font-stretch: 80%; }
.legal__toc a { text-decoration: none; color: var(--ink-soft); }
.legal__toc a:hover { color: var(--ovi-violet); text-decoration: underline; }
.prose { max-width: 72ch; counter-reset: sec; }
.prose > section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2 {
  counter-increment: sec;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.15;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px dashed var(--rule-strong);
}
.prose h2::before { content: counter(sec) ". "; color: var(--ovi-violet); font-style: italic; }
.prose h3 { font-size: 1.05rem; font-weight: 680; margin-top: 22px; }
.prose p, .prose ul, .prose .table-wrap { margin-top: 12px; color: #2f2c5c; }
.prose ul { list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border: 1.5px solid var(--ovi-violet); transform: rotate(45deg); }
.prose a { color: var(--ink); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose .note { padding: 16px 18px; background: var(--paper-bright); border: 1px solid var(--rule-strong); font-size: .95rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule-strong); background: var(--paper-bright); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.prose thead th { font-size: .68rem; font-weight: 650; font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose code { font-family: var(--font-text); font-weight: 700; font-stretch: 85%; color: var(--numerator); }

/* 404 — documento annullato */
.void { padding-block: clamp(56px, 9vw, 130px) var(--section); }
.void__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.void__code { font-size: clamp(4rem, 12vw, 9rem); line-height: .9; font-weight: 760; }
.void__title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; margin-top: 18px; max-width: 14ch; }
.void__text { margin-top: 20px; color: var(--ink-soft); max-width: 46ch; }
.void__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.void__links { margin-top: 36px; display: grid; gap: 8px; }
.void__links a { font-weight: 600; }
.void__doc {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
  aspect-ratio: 4 / 5;
  padding: 34px;
  background: var(--paper-bright);
  box-shadow: var(--shadow-doc);
  transform: rotate(-2deg);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.void__doc .gl { width: 82%; opacity: .75; }
.void__doc::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.void__stamp { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: 2.2rem; padding: 10px 26px; }
.void__serial { position: absolute; left: 34px; bottom: 26px; font-size: 1.2rem; text-decoration: line-through; text-decoration-thickness: 2px; }

@media (max-width: 900px) {
  .legal__grid { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { position: static; padding: 18px; border: 1px solid var(--rule-strong); background: var(--paper-bright); }
  .void__grid { grid-template-columns: minmax(0, 1fr); }
  .void__doc { order: -1; width: min(320px, 90%); }
}

/* Cloudflare Turnstile (quando verrà aggiunto al modulo) */
.cf-turnstile { margin-top: 24px; min-height: 65px; }
