/* cofipass, stile del sito. */

/* ---------- Font, ospitati sul sito (licenza in fonts/OFL.txt) ---------- */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/golos-text-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/golos-text-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }


:root {
  --ink: #0A2E2F;
  --ink-deep: #061C1D;
  --lime: #BFF23C;
  --teal: #0F6B6E;
  --teal-tint: #E3EFEE;
  --lime-tint: #F1FAD8;
  --mist: #F1F5F3;
  --slate: #42585A;
  --slate-soft: #5B6F71; /* il brand indica #6C8284, ma su bianco fa 4,07:1; questo fa 5,3:1 */
  --line: #D7E2DF;
  --line-soft: #E6ECEA;
  --lime-ink: #55730D;
  --teal-ink: #0B5457;

  --ok: #0E7A55;      --ok-bg: #E4F3EC;
  --warn: #A96B0C;    --warn-bg: #FBF0DC;
  --open: #B3301F;    --open-bg: #FAE7E3;
  --nv: #42585A;      --nv-bg: #F1F5F3;

  --flag-bg: #FAE7E3; /* un solo rosa: quello di «Scostamento aperto» */

  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1440px;
  --gutter: 64px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* scala tipografica del sito */
  --t-display: clamp(40px, 4.6vw, 66px);
  --t-h2: clamp(30px, 3vw, 42px);
  --t-lead: 20px;
  --t-body: 16px;
  --t-small: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, h4, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sep { display: inline-block; margin: 0 .55em; opacity: .55; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--lime-ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px;
  font-weight: 600; text-decoration: none; border-radius: 3px;
}
.skip:focus { top: 16px; }

/* ---------- Pulsanti e link ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 6px;
  font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn--ink { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover { background: #153F40; } }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }

.link-more {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1px solid rgba(10,46,47,.3);
  transition: border-color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .link-more:hover { border-color: var(--ink); } }
.link-more svg { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .link-more:hover svg { transform: translateY(2px); } }

/* ---------- Barra di navigazione, chiara e incollata in alto ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.86); }
.nav__in { position: relative; display: flex; align-items: center; gap: 40px; height: 100%; }
.nav__logo img { height: 34px; width: auto; }
.nav__links {
  display: flex; gap: 28px; margin-left: 12px;
  transition: transform .55s var(--ease);
  will-change: transform;
}
.nav__links a {
  position: relative; color: var(--slate); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 6px 0; transition: color .2s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--ink); } }
.nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta { margin-left: auto; }
.nav__toggle { display: none; }


/* il documento: un fascicolo A4 con spessore, non un foglio che galleggia */
.report__doc { position: relative; filter: drop-shadow(0 10px 10px rgba(10,46,47,.14)); }
.report__doc::before, .report__doc::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
/* il bordo destro: il blocco delle pagine */
.report__doc::before {
  top: 10px; bottom: -11px; right: -12px; width: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 1px, rgba(170,185,180,.9) 1px 2px),
    linear-gradient(90deg, #E8EDEB, #C6D0CC);
  border-radius: 0 3px 3px 0;
}
/* il bordo inferiore: il blocco delle pagine */
.report__doc::after {
  left: 10px; right: -12px; bottom: -12px; height: 12px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.9) 0 1px, rgba(170,185,180,.9) 1px 2px),
    linear-gradient(180deg, #E8EDEB, #C6D0CC);
  border-radius: 0 0 3px 3px;
}
.sheet {
  position: relative; z-index: 1;
  background: #fff;
  color: var(--ink);
  aspect-ratio: 210 / 297;
  display: flex; flex-direction: column;
  padding: 34px 40px 26px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(10,46,47,.1);
  font-size: 13.5px;
  line-height: 1.45;
}

/* le regioni del foglio: una alla volta in rilievo */
.region { position: relative; border-radius: 6px; transition: opacity .5s var(--ease), box-shadow .5s var(--ease); }
.region.is-focus { box-shadow: 0 0 0 3px var(--lime), 0 0 0 8px rgba(191,242,60,.28); }
#r-head { margin: -8px -12px 0; padding: 8px 12px 0; }
#r-profile { margin: 0 -12px; padding: 0 12px; }
#r-table, #r-sources { margin: 0 -12px; padding: 0 12px; }
.sheet__table .row, .sheet__table tfoot tr { transition: opacity .5s var(--ease); }

/* intestazione del documento */
.sheet__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding-bottom: 14px; border-bottom: 3px double var(--ink);
}
.sheet__logo { height: 22px; width: auto; margin-top: 2px; }
.sheet__meta { text-align: right; font-size: 11.5px; line-height: 1.5; color: var(--slate); }
.sheet__edition { font-weight: 600; color: var(--ink); font-size: 12px; }

.sheet__title { padding: 16px 0 14px; border-bottom: 1px solid var(--line); }
.sheet__kicker {
  font-family: var(--mono); font-weight: 600; font-size: 11px; line-height: 1;
  letter-spacing: .1em; text-transform: uppercase; color: var(--lime-ink);
  margin-bottom: 10px;
}
.sheet__title h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.016em; font-weight: 700; max-width: 22ch; }
.sheet__period { margin-top: 14px; font-size: 13.5px; color: var(--slate); }
.sheet__period .mono { color: var(--ink); font-weight: 500; margin-left: 4px; }

/* sezioni numerate */
.sec { padding: 13px 0 12px; }
#r-profile .sec { border-bottom: 1px solid var(--line); }
.sec__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 10px; }
.sec__row .sec__h { margin-bottom: 0; }
.legend { display: flex; flex-wrap: nowrap; gap: 4px 12px; flex: none; font-size: 11px; color: var(--slate-soft); }
.legend li { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend .ico { width: 12px; height: 12px; }
.sec__h {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 600; font-size: 11px; line-height: 1; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 10px;
}
.sec__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border: 1px solid var(--ink); border-radius: 2px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0;
  transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.region.is-focus .sec__n { background: var(--lime); box-shadow: 0 0 0 3px rgba(191,242,60,.35); }
.profile { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr 1fr; gap: 0 18px; }
.profile > div { padding: 6px 0 2px; border-top: 1px solid var(--line-soft); }
.profile__wide { grid-column: 1 / -1; }
.profile dt { font-size: 11px; color: var(--slate-soft); letter-spacing: .02em; }
.profile dd { font-size: 13px; color: var(--ink); margin-top: 3px; font-weight: 500; }
.sec__note { margin-top: 10px; padding: 8px 10px; background: var(--flag-bg); border-left: 3px solid var(--open); font-size: 12.5px; color: var(--ink); font-weight: 600; }
.sec__note-k { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--open); margin-right: 12px; }

.ico { width: 15px; height: 15px; display: inline-block; vertical-align: middle; flex: none; }
.ico--ok { color: var(--ok); }
.ico--warn { color: var(--warn); }
.ico--open { color: var(--open); }
.ico--nv { color: #6C8284; } /* 4:1 su bianco, sopra il minimo per i simboli */

#r-table .sec { border-bottom: 1px solid var(--line); }
.sheet__table table { width: 100%; border-collapse: collapse; }
.sheet__table th {
  text-align: left; padding: 0 6px 7px; vertical-align: bottom;
  font-family: var(--mono); font-weight: 600; font-size: 10px; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate-soft); border-bottom: 1px solid var(--ink); white-space: nowrap;
}
.sheet__table td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.sheet__table th:first-child, .sheet__table td:first-child { padding-left: 4px; }
.sheet__table th:last-child, .sheet__table td:last-child { padding-right: 4px; }
.sheet__table .r { text-align: right; }
.sheet__table .cap { color: var(--slate-soft); font-size: 11.5px; width: 30px; }
.sheet__table .tema { font-weight: 500; font-size: 13px; white-space: nowrap; }
.sheet__table .n { font-size: 12.5px; width: 64px; }
.sheet__table .n.z { color: var(--slate-soft); font-weight: 400; }
.sheet__table .es { width: 48px; }
.sheet__table .es .ico { width: 16px; height: 16px; }
.esito { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.esito--ok { color: var(--ok); }
.esito--warn { color: #8F5A0A; } /* testo: il #A96B0C del brand resta sul simbolo, ma su fondo chiaro fa 4,4:1 */
.esito--open { color: var(--open); }
.esito--nv { color: var(--slate); }
.esito .ico { border-radius: 50%; }
.row--flag .tema { font-weight: 700; }
.sheet__table tfoot td { border-bottom: 1px solid var(--line); border-top: 1px solid var(--ink); padding-top: 9px; padding-bottom: 9px; font-size: 12.5px; background: #EDF2F0; }
.sheet__table tfoot .tema { font-weight: 600; }
.sheet__table tfoot .n { font-weight: 700; }
.sheet__table tfoot .n.z { font-weight: 500; }

/* archivi consultati */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 20px; }
.checks li { position: relative; padding-left: 20px; font-size: 12.5px; line-height: 1.35; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 13px; height: 13px; border-radius: 2px;
  background: var(--lime-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%2355730D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* piè di pagina stampato, in fondo all'A4 */
.sheet__foot {
  display: flex; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--ink); font-size: 11px; color: var(--slate-soft);
}


@media (max-width: 960px) {
  .nav__in { gap: 16px; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 30px rgba(10,46,47,.12);
  }
  .nav.is-open .nav__links { display: flex; }
  .nav__links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav__links a::after { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center; order: 3;
    width: 40px; height: 40px; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px; position: relative; transition: transform .3s var(--ease), background-color .3s var(--ease);
  }
  .nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
  .nav__toggle span::before { top: -6px; }
  .nav__toggle span::after { top: 6px; }
  .nav.is-open .nav__toggle span { background: transparent; }
  .nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__cta { margin-left: 0; order: 4; }
}

/* ---------- Telefono: disegnato per 390 px ---------- */

@media (max-width: 600px) {
  :root { --gutter: 16px; --t-lead: 17px; --nav-h: 60px; }
  .nav__in { gap: 12px; }
  .nav__logo img { height: 28px; }
  .nav__cta { height: 38px; padding: 0 10px; font-size: 13.5px; }
  .nav__toggle { width: 36px; height: 36px; }


  .report__doc::before { right: -6px; width: 6px; top: 5px; bottom: -5px; }
  .report__doc::after { bottom: -6px; height: 6px; left: 5px; right: -6px; }
  .sheet { padding: 20px 16px 16px; font-size: 13px; }
  .region, #r-head, #r-profile, #r-table, #r-sources { margin: 0; padding: 0; }
  .sheet { aspect-ratio: auto; }
  .sheet__head { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 12px; }
  .sheet__logo { height: 20px; margin-top: 0; }
  .sheet__meta { text-align: left; font-size: 13px; }
  .sheet__edition { font-size: 13px; }

  .sheet__title { padding: 16px 0 14px; }
  .sheet__kicker { font-size: 13px; letter-spacing: .05em; }
  .sheet__title h3 { font-size: 20px; }
  .sheet__period { font-size: 13px; }

  .sec { padding: 14px 0 12px; }
  .sec__row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .legend { flex-wrap: wrap; font-size: 13px; }
  .legend .ico { width: 14px; height: 14px; }
  .sec__h { font-size: 13px; letter-spacing: .06em; }
  .sec__n { width: 20px; height: 20px; font-size: 13px; }
  .profile { grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .profile dt { font-size: 13px; }
  .profile dd { font-size: 13px; }
  .sec__note { font-size: 13px; }
  .sec__note-k { display: block; font-size: 13px; letter-spacing: .04em; margin: 0 0 2px; }

  /* la tabella diventa un elenco: tematica e controlli a sinistra, esito a destra */
  .sheet__table thead { display: none; }
  .sheet__table table, .sheet__table tbody, .sheet__table tfoot { display: block; width: 100%; }
  .sheet__table tr.row, .sheet__table tfoot tr {
    display: grid; grid-template-columns: 26px 1fr auto; column-gap: 8px; row-gap: 3px;
    align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft);
  }
  .sheet__table tr.row td, .sheet__table tfoot td { display: block; padding: 0; border: 0; background: transparent; text-align: left; box-shadow: none; }
  .sheet__table tr.row, .sheet__table tfoot tr { grid-template-columns: 26px repeat(6, max-content) 1fr max-content; grid-template-rows: auto auto; }
  .sheet__table tr.row .cap { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 2px; font-size: 13px; width: auto; }
  .sheet__table tr.row .tema, .sheet__table tfoot .tema { grid-column: 2 / 9; grid-row: 1; font-size: 13px; white-space: normal; }
  .sheet__table .n { grid-row: 2; width: auto; font-size: 13px; color: var(--slate); white-space: nowrap; padding-right: 10px; }
  .sheet__table .n.z { display: none; }
  .sheet__table .n::after { content: " " attr(data-l); font-family: var(--sans); }
  .sheet__table tr.row .es { grid-column: 9; grid-row: 1 / span 2; justify-self: end; width: auto; }
  .esito { font-size: 13px; }
  .sheet__table tfoot tr { border-bottom: 0; border-top: 1px solid var(--ink); }
  .sheet__table tfoot .cap { grid-column: 1; grid-row: 1 / span 2; }
  .sheet__table tfoot .es { display: none; }
  .sheet__table tr.row--flag { background: var(--flag-bg); margin: 0 -8px; padding: 10px 8px; box-shadow: inset 3px 0 0 var(--open); }

  .checks { grid-template-columns: 1fr; gap: 6px; }
  .checks li { font-size: 13px; }
  .sheet__foot { font-size: 13px; flex-direction: column; gap: 4px; }
  .sheet__foot .sep { margin: 0 .35em; }
}

/* ---------- 3. Dietro un esito: dai documenti alle azioni, in quattro quadri ---------- */

main section[id] { scroll-margin-top: var(--nav-h); }
.confronto { background: #fff; border-top: 1px solid var(--line); }
.flowwrap { position: relative; }
.flowsticky { position: sticky; top: var(--nav-h); box-sizing: border-box; min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; justify-content: center; padding: 40px 0; overflow: hidden; background: #fff; }
.sec-head { max-width: 62ch; }
.sec-head--center { margin: 0 auto; text-align: center; }
.confronto .sec-head, .come .sec-head { max-width: 56em; }
.come .sec-title { text-wrap: balance; }
.eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-ink); font-weight: 600; }
.sec-title { margin-top: 12px; font-size: var(--t-h2); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.sec-lead { margin-top: 14px; font-size: 19px; line-height: 1.55; color: var(--slate); }
.eyebrow-s { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime-ink); font-weight: 600; margin-bottom: 8px; }

/* il binario: i quadri scorrono in orizzontale seguendo lo scroll */
.flowtrack { max-width: var(--wrap); margin: 28px auto 0; padding: 0 var(--gutter); overflow: visible; }
.flow { display: flex; align-items: stretch; gap: 18px; width: max-content; will-change: transform; }
.flow__step {
  display: flex; flex-direction: column; width: 420px; flex: none;
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px 18px;
  transition: opacity .5s var(--ease), box-shadow .5s var(--ease), transform .6s var(--ease);
}
.flow__step--wide { width: 560px; }
/* intestazione del quadro: la stessa delle sezioni del report, quadratino e filetto */
.flow__step .sec__h { margin-bottom: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.flow__step.is-focus { box-shadow: 0 0 0 3px var(--lime), 0 0 0 8px rgba(191,242,60,.28); }
.flow__step.is-focus .sec__n, .flow__step.is-lit .sec__n { background: var(--lime); box-shadow: 0 0 0 3px rgba(191,242,60,.35); }
.flow__arrow { align-self: center; flex: none; color: var(--slate-soft); transition: opacity .5s var(--ease); }
.flow__t { margin-top: 16px; font-size: 20px; line-height: 1.25; letter-spacing: -.014em; font-weight: 700; }
.flow__viz { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 190px; margin: 18px 0 14px; }
.flow__cap { font-size: 14px; line-height: 1.5; color: var(--slate); }

/* 1. i documenti: tre fogli */
.docs { gap: 12px; }
.doc {
  position: relative; width: 84px; height: 108px; padding: 14px 10px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  box-shadow: 2px 2px 0 #E6ECEA, 4px 4px 0 #D7E2DF;
  display: flex; flex-direction: column; gap: 6px;
}
.doc::before { content: ""; height: 5px; width: 60%; border-radius: 2px; background: var(--ink); margin-bottom: 2px; }
.doc i { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.doc i:nth-child(2) { width: 85%; } .doc i:nth-child(3) { width: 70%; } .doc i:nth-child(4) { width: 90%; }
.doc--v::before { background: var(--lime); }
.doc__tag { position: absolute; left: 8px; bottom: 26px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 5px; border: 1px solid var(--ink); border-radius: 2px; background: #fff; }
.doc__l { position: absolute; left: 0; right: 0; bottom: -24px; text-align: center; font-size: 12px; color: var(--slate); }

/* 2. il confronto: due barre, nessun importo */
.cmp { flex-direction: column; align-items: stretch; justify-content: center; gap: 18px; padding: 0 2px; }
.cmp__row { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 12px; }
.cmp__l { font-size: 13px; font-weight: 600; }
.cmp__track { position: relative; height: 30px; background: var(--mist); border-radius: 3px; }
.cmp__fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 3px; transform-origin: left center; }
.cmp__fill--a { background: var(--ink); }
.cmp__fill--b { background: var(--lime); }
.cmp__gap {
  position: absolute; left: var(--from); right: 0; top: 0; bottom: 0; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(135deg, rgba(179,48,31,.18) 0 4px, transparent 4px 9px);
  border-left: 2px dashed var(--open); display: flex; align-items: center; justify-content: center;
}
.cmp__gap b { position: absolute; right: 6px; font-size: 11px; font-weight: 700; color: var(--open); letter-spacing: .02em; }

/* 3. nel tempo: dodici mesi, l'ultimo con lo scostamento */
.tl { flex-direction: column; align-items: stretch; justify-content: flex-end; }
.tl__chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 130px; border-bottom: 1px solid var(--line); padding: 0 2px; }
.tl__col { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.tl__bar { display: block; width: 10px; height: var(--h); border-radius: 2px 2px 0 0; transform-origin: 50% 100%; }
.tl__bar--a { background: var(--ink); }
.tl__bar--b { background: var(--lime); }
.tl__stack { position: relative; display: flex; flex-direction: column; justify-content: flex-end; width: 10px; height: var(--h); }
.tl__stack .tl__bar--b { width: 10px; }
.tl__gapbar {
  position: absolute; left: 0; right: 0; bottom: 64%; top: 0; border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(135deg, rgba(179,48,31,.35) 0 2px, transparent 2px 5px);
  box-shadow: inset 0 0 0 1px var(--open);
}
.tl__axis { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 11.5px; color: var(--slate); }
.tl__last { display: inline-flex; align-items: center; gap: 5px; color: var(--open); font-weight: 600; }
.tl__last .ico { width: 14px; height: 14px; }

/* 4. azioni suggerite */
.azioni { flex: 1; display: flex; flex-direction: column; margin: 14px 0 14px; padding: 0; list-style: none; }
.azioni li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; line-height: 1.45; color: var(--slate); }
.azioni li:last-child { border-bottom: 0; }
.azioni b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.azioni__n { flex: none; width: 30px; padding-top: 2px; font-size: 11.5px; font-weight: 700; color: var(--ink); }

/* animazioni: ogni quadro si accende quando è davanti agli occhi */
/* sul binario (desktop): un quadro alla volta. Quelli ancora da arrivare sono nascosti,
   quelli già visti restano attenuati come le regioni del report */
.flow.is-rail .flow__step { opacity: .4; }
.flow.is-rail .flow__step.is-focus { opacity: 1; }
.flow.is-rail .flow__step.is-hidden { opacity: 0; transform: translateY(14px); }
.flow.is-rail .flow__arrow.is-hidden { opacity: 0; }
.flow__step.is-armed .doc { opacity: 0; transform: translateY(8px); }
.flow__step.is-armed.is-in .doc { opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.flow__step.is-armed.is-in .doc:nth-child(2) { transition-delay: .06s; }
.flow__step.is-armed.is-in .doc:nth-child(3) { transition-delay: .12s; }
.flow__step.is-armed .cmp__fill { transform: scaleX(0); }
.flow__step.is-armed.is-in .cmp__fill--a { transform: none; transition: transform .5s var(--ease); }
.flow__step.is-armed.is-in .cmp__fill--b { transform: none; transition: transform .5s var(--ease) .12s; }
.flow__step.is-armed .cmp__gap { opacity: 0; }
.flow__step.is-armed.is-in .cmp__gap { opacity: 1; transition: opacity .2s var(--ease) .6s; }
.flow__step.is-armed .tl__bar, .flow__step.is-armed .tl__stack { transform: scaleY(0); transform-origin: 50% 100%; }
.flow__step.is-armed.is-in .tl__bar, .flow__step.is-armed.is-in .tl__stack { transform: none; transition: transform .3s var(--ease) calc(var(--k) * .03s); }
.flow__step.is-armed.is-in .tl__stack .tl__bar--b { transition-delay: 0s; }
.flow__step.is-armed .tl__gapbar, .flow__step.is-armed .tl__last { opacity: 0; }
.flow__step.is-armed.is-in .tl__gapbar, .flow__step.is-armed.is-in .tl__last { opacity: 1; transition: opacity .2s var(--ease) .6s; }
.flow__step.is-armed .azioni li { opacity: 0; transform: translateY(6px); }
.flow__step.is-armed.is-in .azioni li { opacity: 1; transform: none; transition: opacity .3s var(--ease) calc(var(--k) * .06s), transform .3s var(--ease) calc(var(--k) * .06s); }

/* movimento ridotto (preferenza di sistema, o ?motion=0 per gli screenshot): quadri impilati e fermi */
@media (prefers-reduced-motion: reduce) {
  .flowsticky { position: static; min-height: 0; display: block; padding: 56px 0 72px; }
  .flow { width: auto; flex-wrap: wrap; transform: none !important; }
  .flow__step { width: calc(50% - 9px); }
  .flow__step--wide { width: calc(50% - 9px); }
  .flow__arrow { display: none; }
  .flow__step.is-armed { opacity: 1; }
}
.no-motion .flowsticky { position: static; min-height: 0; display: block; padding: 56px 0 72px; }
.no-motion .flow { width: auto; flex-wrap: wrap; transform: none !important; }
.no-motion .flow__step, .no-motion .flow__step--wide { width: calc(50% - 9px); }
.no-motion .flow__arrow { display: none; }
.no-motion .flow__step.is-armed { opacity: 1; }

@media (max-width: 1180px) {
  .flowsticky { position: static; min-height: 0; display: block; padding: 56px 0 72px; }
  .flowwrap { height: auto !important; }
  .flowtrack { padding: 0 var(--gutter); }
  .flow { width: auto; flex-wrap: wrap; transform: none !important; }
  .flow__step { width: calc(50% - 9px); }
  .flow__step--wide { width: 100%; }
  .flow__arrow { display: none; }
}
@media (max-width: 600px) {
  .flowsticky { padding: 48px 0 56px; }
  .sec-head--center { text-align: left; }
  .sec-lead { font-size: 17px; }
  .eyebrow, .eyebrow-s { font-size: 13px; letter-spacing: .05em; }
  .flowtrack { margin-top: 24px; }
  .flow { gap: 12px; }
  .flow__step, .flow__step--wide { width: 100%; padding: 18px 16px 16px; }
  .flow__t { font-size: 18px; }
  .flow__viz { min-height: 150px; margin: 14px 0 12px; }
  .flow__cap { font-size: 13.5px; }
  .docs { gap: 10px; }
  .doc { width: 78px; height: 100px; }
  .doc__tag { font-size: 13px; left: 6px; }
  .doc__l { font-size: 13px; }
  .cmp { gap: 26px; }
  .cmp__l { font-size: 13px; }
  .cmp__gap b { position: absolute; left: 0; top: 100%; margin-top: 6px; font-size: 13px; white-space: nowrap; }
  .tl__chart { height: 100px; gap: 4px; }
  .tl__bar, .tl__stack, .tl__stack .tl__bar--b { width: 7px; }
  .tl__axis { font-size: 13px; }
  .azioni li { font-size: 13px; }
  .azioni__n { font-size: 13px; width: 34px; }
}

/* intestazione delle anteprime (report e sintesi del parco) */
.edz__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 3px double var(--ink); }
.edz__head img { height: 18px; width: auto; margin-top: 2px; }
.edz__meta { text-align: right; font-size: 11px; line-height: 1.5; color: var(--slate); }
.edz__meta b { display: block; font-size: 11.5px; color: var(--ink); font-weight: 600; }
@media (max-width: 600px) { .edz__meta, .edz__meta b { font-size: 13px; } }

/* ---------- Il parco: la cartella del mese ---------- */
.parco { background: var(--ink); color: #fff; padding: 76px 0 72px; }
.parco__head { max-width: none; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 64px; align-items: end; }
.parco .eyebrow { color: var(--lime); grid-column: 1 / -1; }
.parco .sec-title { text-wrap: balance; }
.parco .sec-lead { color: #C9D6D3; max-width: 46ch; margin-top: 0; padding-bottom: 4px; }

.fin {
  position: relative; margin-top: 36px; background: #fff; color: var(--ink);
  border-radius: 10px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
}
.fin__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 20px; background: var(--mist); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--slate); }
.fin__path { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fin__path b { color: var(--ink); font-weight: 600; }
.fin__sl { color: var(--slate-soft); }
.fin__body { display: grid; grid-template-columns: 220px minmax(0, 400px) minmax(0, 1fr); height: 512px; }

.fico { width: 18px; height: 18px; flex: none; color: #8DA09E; }
.fin__side { padding: 18px 14px; border-right: 1px solid var(--line-soft); background: #FAFCFB; font-size: 14px; }
.fin__root, .fin__year, .fin__month { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 5px; color: var(--slate); }
.fin__year { padding-left: 22px; }
.fin__month { padding-left: 30px; padding-right: 6px; }
.fin__month.is-open { background: var(--ink); color: #fff; font-weight: 600; }
.fin__month.is-open .fico { color: var(--lime); }
.fin__new { margin-left: auto; font-size: 11px; line-height: 1.5; font-weight: 600; color: var(--ink); background: var(--lime); padding: 1px 7px; border-radius: 99px; }

.fin__list { display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); min-width: 0; }
.fin__tools { display: flex; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.fin__chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 13px; font-size: 13.5px; font-weight: 500; color: var(--slate); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.fin__chip .mono { font-size: 12px; }
.fin__chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fin__files { padding: 6px 8px; overflow: hidden; }
.fin__file { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 10px; border-radius: 6px; cursor: pointer; transition: background-color .3s var(--ease), box-shadow .3s var(--ease); }
@media (hover: hover) and (pointer: fine) { .fin__file:hover { background: var(--mist); } }
.fin__file.is-sel { background: var(--lime-tint); box-shadow: inset 3px 0 0 var(--lime-ink); }
.fin__name { font-size: 14px; font-weight: 600; line-height: 1.3; min-width: 0; }
.fin__name small { display: block; font-size: 12.5px; font-weight: 400; color: var(--slate-soft); }
.fico--doc { width: 20px; height: 20px; color: var(--slate); }
.fin__file--sum .fico--doc { color: var(--ink); }
.fin__tag { font-size: 11.5px; color: var(--slate); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
.fin__file .ico { width: 17px; height: 17px; }
.fin.is-adesso .fin__files li[data-adesso="false"] { display: none; }

/* anteprima: lo stesso foglio dei report, in piccolo */
.fin__prev { background: var(--mist); padding: 22px 28px; overflow: hidden; }
.pv { background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 20px 22px 14px; box-shadow: 2px 2px 0 #E6ECEA, 4px 4px 0 #D7E2DF; max-width: 620px; margin: 0 auto; animation: pv-in .18s var(--ease); }
@keyframes pv-in { from { opacity: 0; } to { opacity: 1; } }
.pv__f { margin: 14px 0 8px; font-size: 15px; font-weight: 700; }
.pv__f small { display: block; font-size: 13px; font-weight: 400; color: var(--slate); }
.pv__t { width: 100%; border-collapse: collapse; }
.pv__t th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); padding: 6px 6px; border-bottom: 1px solid var(--ink); }
.pv__t td { padding: 8px 6px; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: middle; }
.pv__t tr:last-child td { border-bottom: 0; }
.pv__t .tema { font-weight: 500; }
.pv__t .pv__per { font-size: 11.5px; color: var(--slate); white-space: nowrap; }
.pv__t--sum td { padding-top: 6px; padding-bottom: 6px; }
.pv__t--sum td b { display: block; font-weight: 600; }
.pv__t--sum td small { display: block; font-size: 12px; color: var(--slate-soft); }
.pv__t .is-flag--open td, .pv__t--sum .is-e--open td { background: var(--flag-bg); }
.pv__t--sum .is-e--warn td { background: var(--warn-bg); }
.pv__t--sum .is-e--nv td { background: var(--nv-bg); }
.pv__t--sum .is-e--open td:first-child { box-shadow: inset 3px 0 0 var(--open); }
.pv__t--sum .is-e--warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.pv__t--sum .is-e--nv td:first-child { box-shadow: inset 3px 0 0 var(--nv); }
.pv__t .is-flag--warn td { background: var(--warn-bg); }
.pv__t .is-flag--nv td { background: var(--nv-bg); }
.pv__t .is-flag td:first-child { font-weight: 700; }
.pv__t .is-flag--open td:first-child { box-shadow: inset 3px 0 0 var(--open); }
.pv__t .is-flag--warn td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.pv__t .is-flag--nv td:first-child { box-shadow: inset 3px 0 0 var(--nv); }
.prio { font-size: 12px; font-weight: 600; color: var(--slate); white-space: nowrap; }
.prio--on { color: var(--ink); } /* priorità: non è uno scostamento, quindi non è rossa */

/* il puntatore della demo */
.fin__ptr { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -4px 0 0 -5px; pointer-events: none; opacity: 0; z-index: 5; transition: transform .7s var(--e-io), opacity .2s var(--ease); }
.fin__ptr svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.fin.is-demo .fin__ptr { opacity: 1; }
.fin__ptr::after { content: ""; position: absolute; left: 1px; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--lime); opacity: 0; }
.fin__ptr.is-click::after { animation: ptr-click .55s var(--ease); }
@keyframes ptr-click { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(3.6); } }

.parco__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; font-size: 14px; color: #C9D6D3; }
.parco__demo { display: flex; align-items: center; gap: 14px; }
.parco__btn { background: none; border: 1px solid rgba(191,242,60,.5); color: var(--lime); border-radius: 99px; padding: 6px 16px; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .parco__btn:hover { background: rgba(191,242,60,.1); } }
.parco :focus-visible { outline-color: var(--lime); }
.fin :focus-visible { outline-color: var(--lime-ink); }

.no-motion .pv { animation: none; }
.no-motion .fin__ptr { display: none; }

@media (max-width: 1180px) {
  .parco__head { grid-template-columns: 1fr; }
  .parco .sec-lead { margin-top: 14px; }
  .fin__body { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .fin__side { display: none; }
  .fin__prev { padding: 20px; }
}
@media (max-width: 760px) {
  .parco { padding: 64px 0 64px; }
  .fin { margin-top: 32px; border-radius: 8px; }
  .fin__bar { padding: 10px 14px; flex-wrap: wrap; gap: 4px 12px; }
  .fin__date { display: none; }
  .fin__body { display: block; height: auto; }
  .fin__list { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .fin__tools { padding: 12px; }
  .fin__chip { font-size: 14px; }
  .fin__chip .mono { font-size: 13px; }
  .fin__files { padding: 4px 4px 6px; min-height: 324px; }
  .fin__file { padding: 9px 8px; gap: 10px; }
  .fin__name small { display: none; }
  .fin__tag { font-size: 13px; }
  .fin__prev { padding: 14px 10px; min-height: 540px; }
  .pv { padding: 14px 12px 8px; }
  .edz__meta, .edz__meta b, .pv__t th, .pv__t .pv__per, .pv__t--sum td small, .prio { font-size: 13px; }
  .pv__t td { font-size: 14px; padding: 8px 4px; }
  .pv .esito { font-size: 13px; }
  .pv__t--sum thead { display: none; }
  .pv__t--sum tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 6px; border-bottom: 1px solid var(--line-soft); }
  .pv__t--sum td { padding: 0; border: 0; }
  /* sul telefono la riga intera prende il colore del suo esito; le celle restano trasparenti */
  .pv__t--sum tr.is-e--open { background: var(--flag-bg); box-shadow: inset 3px 0 0 var(--open); }
  .pv__t--sum tr.is-e--warn { background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn); }
  .pv__t--sum tr.is-e--nv { background: var(--nv-bg); box-shadow: inset 3px 0 0 var(--nv); }
  .pv__t.pv__t--sum tr td, .pv__t.pv__t--sum tr td:first-child { background: transparent; box-shadow: none; }
  .pv__t--sum td:nth-child(2) { grid-column: 1; }
  .pv__t--sum td:nth-child(3) { grid-column: 1; font-size: 13px; color: var(--slate); }
  .pv__t--sum td:nth-child(3)::before { content: "Da guardare: "; }
  .pv__t--sum td.g-no { display: none; }
  .pv__t--sum tr { padding: 9px 6px; }
  .pv__t--sum td:nth-child(4) { grid-column: 2; grid-row: 1; }
  .parco__foot { flex-direction: column; align-items: flex-start; }
  .parco__btn { padding: 11px 20px; }
  .fin__chip { padding: 9px 14px; }
}

/* ---------- Perché controllare: il perimetro delle vostre responsabilità si allarga ---------- */
.resp { background: #fff; border-top: 1px solid var(--line); padding: 96px 0 104px; }
.resp .sec-head { max-width: 56em; }
.resp .sec-title, .resp .sec-lead { text-wrap: balance; }
.resp .sec-lead { max-width: 60ch; margin-left: auto; margin-right: auto; }
.resp__head .sec-title mark { position: relative; z-index: 0; color: var(--ink); background: none; padding: 0 .12em; margin: 0 -.04em; }
.resp__head .sec-title mark::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .08em; bottom: .02em;
  background: var(--lime); border-radius: .18em .22em .16em .24em;
  transform: rotate(-1.2deg); transform-origin: left center; transition: transform .45s var(--ease) .3s;
}
.resp__head.is-armed .sec-title mark::before { transform: rotate(-1.2deg) scaleX(0); }
.resp__head.is-armed.is-in .sec-title mark::before { transform: rotate(-1.2deg) scaleX(1); }

/* il palco: tre aziende della filiera, ciascuna con i suoi lavoratori */
.per { margin: 56px auto 0; max-width: 1080px; }
.per__stage { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; padding: 64px 40px 40px; }
.per__col { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 252px; flex: none; transition: opacity .6s var(--ease); }
.az {
  display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 10px; width: 100%;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px;
  font-size: 16px; color: var(--ink);
}
.az .mono { justify-self: end; font-size: 12px; color: var(--slate-soft); white-space: nowrap; }
.az__ico { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.per__col--voi .az { border-color: var(--ink); box-shadow: 2px 2px 0 #E6ECEA, 4px 4px 0 #D7E2DF; }
.per__col--sub .az { border-style: dashed; border-color: #AFC0BD; }
.lav { display: grid; grid-template-columns: repeat(6, 22px); gap: 6px; margin-top: 18px; }
.lav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.lav__l { margin-top: 8px; font-size: 14px; color: var(--slate); }
.per__link { position: relative; z-index: 1; flex: none; width: 84px; height: 1px; margin-top: 26px; background: var(--ink); transition: opacity .6s var(--ease); }
.per__link::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); transform: rotate(45deg); }

/* il perimetro: le sue misure le calcola lo script sugli elementi inclusi */
.per__line {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0;
  border: 2px solid var(--lime); border-radius: 14px; background: var(--lime-tint);
  transition: left .5s var(--e-io), top .5s var(--e-io), width .5s var(--e-io), height .5s var(--e-io);
}
.per__tag {
  position: absolute; left: 18px; top: 0; transform: translateY(-50%);
  padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--lime);
  font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap;
}
/* fuori dal perimetro la filiera resta visibile ma attenuata */
.per.is-live .per__col.is-out, .per.is-live .per__link.is-out { opacity: .4; }

/* i rischi: ultima tappa, il perimetro si allunga verso il basso e li comprende */
.per__ris { position: relative; z-index: 1; flex: 0 0 100%; display: flex; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 40px; transition: opacity .6s var(--ease); }
.per__ris-t { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--open); white-space: nowrap; }
.per__ris ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.per__ris li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--open); background: #fff; color: var(--open); font-size: 15px; font-weight: 600; line-height: 1.2;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.per__ris li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--open); }
.per.is-live .per__ris.is-out { opacity: .4; }

/* chiusura: l'onere */
.resp__end { max-width: 56em; margin: 72px auto 0; text-align: center; }
.resp__onere { font-size: var(--t-h2); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
.resp__onere mark { position: relative; z-index: 0; color: var(--ink); background: none; padding: 0 .12em; margin: 0 -.04em; }
.resp__onere mark::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .1em; bottom: .02em;
  background: var(--lime); border-radius: .18em .22em .16em .24em;
  transform: rotate(-1.2deg); transform-origin: left center; transition: transform .6s var(--ease) .3s;
}
.resp__end.is-armed .resp__onere mark::before { transform: rotate(-1.2deg) scaleX(0); }
.resp__end.is-armed.is-in .resp__onere mark::before { transform: rotate(-1.2deg) scaleX(1); }
.resp__riga { margin-top: 14px; font-size: 19px; line-height: 1.55; color: var(--slate); }
.resp__nota { margin-top: 10px; font-size: 13px; color: var(--slate-soft); }

/* sotto i 900 px la filiera si legge dall'alto in basso */
@media (max-width: 900px) {
  .per__stage { flex-direction: column; align-items: center; padding: 56px 20px 28px; }
  .per__link { width: 1px; height: 48px; margin: 14px 0; }
  .per__link::after { right: auto; top: auto; bottom: 0; left: -3px; transform: rotate(135deg); }
}
@media (max-width: 600px) {
  .resp { padding: 56px 0 64px; }
  .per { margin-top: 36px; }
  .per__stage { padding: 52px 16px 24px; }
  .per__col { width: 100%; max-width: 280px; }
  .az .mono { font-size: 13px; }
  .per__ris { flex-direction: column; margin-top: 32px; width: 100%; }
  .per__ris li { font-size: 14px; padding: 8px 14px; }
  .rischi__l { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rischi__l li { padding: 18px 12px 16px; }
  .rischi__l span { font-size: 14px; }
  .rischi__t { font-size: 16px; }
  .resp__end { margin-top: 48px; text-align: left; }
  .resp__riga { font-size: 17px; }
}

/* ---------- FAQ: le domande a sinistra, la risposta in un pannello scuro a destra ---------- */
.faq { background: #fff; border-top: 1px solid var(--line); padding: 96px 0 104px; }
.faq .sec-head { max-width: 56em; }
.faq .sec-title { text-wrap: balance; }
.faq .sec-lead a { color: var(--teal-ink); font-weight: 600; text-underline-offset: 3px; }
.fq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; max-width: 1180px; margin: 52px auto 0; }

/* le domande, in quattro gruppi */
.fq__g + .fq__g { margin-top: 22px; }
.fq__gt { padding: 0 16px 8px; font-size: 13px; font-weight: 600; color: var(--slate-soft); }
.fq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 13px 16px; border: 0; border-radius: 6px; background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--ink);
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.fq__q svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--slate-soft); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease), stroke .2s var(--ease); }
.fq__q:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fq__a p { font-size: 16px; line-height: 1.6; color: var(--slate); }
.fq__a strong { color: var(--ink); font-weight: 700; }

/* il pannello della risposta: compare solo con lo script, sopra i 900 px */
.fq__panel { display: none; }
@media (min-width: 900px) {
  .fq.is-js .fq__a { display: none; }
  @media (hover: hover) and (pointer: fine) { .fq.is-js .fq__q:hover { background: var(--mist); } }
  .fq.is-js .fq__item.is-cur .fq__q { background: var(--ink); color: #fff; }
  .fq.is-js .fq__item.is-cur .fq__q svg { stroke: var(--lime); transform: translateX(3px); }
  .fq.is-js .fq__panel {
    position: sticky; top: calc(var(--nav-h) + 28px);
    display: flex; flex-direction: column; justify-content: space-between; min-height: 420px;
    padding: 44px 48px 36px; border-radius: 10px; background: var(--ink); color: #fff;
  }
  .fq__pin { transition: opacity .22s ease, transform .3s var(--ease); }
  .fq__pin.is-swap { opacity: 0; transform: translateY(8px); }
  .fq__pg { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; letter-spacing: .06em; color: var(--lime); }
  .fq__pn { color: #8FA6A3; }
  .fq__pq { margin-top: 24px; font-size: 32px; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; color: #fff; text-wrap: balance; }
  .fq__pa { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); }
  .fq__pa p { font-size: 19px; line-height: 1.6; color: #C9D6D3; text-wrap: pretty; }
  .fq__pa strong { display: block; margin-bottom: 12px; font-size: 24px; line-height: 1.35; font-weight: 600; color: #fff; }
  .fq__nav { display: flex; gap: 10px; margin-top: 32px; }
  .fq__btn {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.28); background: none; cursor: pointer;
    transition: background-color .2s var(--ease), border-color .2s var(--ease);
  }
  .fq__btn svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  @media (hover: hover) and (pointer: fine) { .fq__btn:hover { background: var(--lime); border-color: var(--lime); } }
  @media (hover: hover) and (pointer: fine) { .fq__btn:hover svg { stroke: var(--ink); } }
  .fq__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
}

/* sotto i 900 px: le domande si aprono una alla volta */
@media (max-width: 899px) {
  .fq { grid-template-columns: 1fr; margin-top: 36px; }
  .fq__g + .fq__g { margin-top: 18px; }
  .fq__item { border-bottom: 1px solid var(--line); }
  .fq__gt { padding: 0 0 6px; border-bottom: 1px solid var(--line); }
  .fq__q { padding: 15px 0; border-radius: 0; font-size: 16px; }
  .fq__q svg { transform: rotate(90deg); }
  .fq.is-js .fq__item:not(.is-open) .fq__a { display: none; }
  .fq__item.is-open .fq__q svg { transform: rotate(-90deg); stroke: var(--ink); }
  .fq__a { padding: 0 0 18px; }
  .fq__a strong { display: block; margin-bottom: 6px; font-size: 17px; }
}
@media (max-width: 600px) {
  .faq { padding: 56px 0 64px; }
  .fq__a p { font-size: 15px; }
}

/* ---------- Chiusura: l'invito, su fondo inchiostro, con la copertina del report ---------- */
.cta { background: var(--ink); color: #fff; padding: 112px 0 120px; overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px 80px; align-items: center; }
.cta .eyebrow { color: var(--lime); }
.cta__t { margin-top: 16px; font-size: var(--t-display); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.cta__t mark { position: relative; z-index: 0; color: var(--ink); background: none; padding: 0 .12em; margin: 0 -.04em; }
.cta__t mark::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .08em; bottom: .02em;
  background: var(--lime); border-radius: .18em .22em .16em .24em;
  transform: rotate(-1.2deg); transform-origin: left center; transition: transform .45s var(--ease) .3s;
}
.cta__txt.is-armed .cta__t mark::before { transform: rotate(-1.2deg) scaleX(0); }
.cta__txt.is-armed.is-in .cta__t mark::before { transform: rotate(-1.2deg) scaleX(1); }
.cta__p { margin-top: 22px; max-width: 34em; font-size: 20px; line-height: 1.55; color: #C9D6D3; text-wrap: pretty; }
.cta__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 40px; }
.btn--lime { background: var(--lime); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--lime:hover { background: #D2F86E; } }
.btn--lime:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cta__mail {
  display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 16px; row-gap: 2px; align-items: center;
  padding: 10px 10px 10px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: 6px;
}
.cta__addr { grid-column: 1; font-size: 15px; color: #fff; }
.cta__copia {
  grid-column: 2; grid-row: 1 / 3; height: 40px; padding: 0 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .cta__copia:hover { background: #fff; color: var(--ink); border-color: #fff; } }
.cta__copia:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.cta__copia.is-ok { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---------- Footer ---------- */
.foot { background: var(--ink-deep); color: #C9D6D3; padding: 36px 0; border-top: 1px solid rgba(255,255,255,.08); }
.foot__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.foot__logo { height: 28px; width: auto; }
.foot__dati { font-size: 14px; }
.foot__dati .sep { margin: 0 10px; color: #6C8284; }
.foot__link { display: flex; gap: 24px; }
.foot__link a { font-size: 14px; color: #fff; text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot__link a:hover { color: var(--lime); } }

@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cta { padding: 64px 0 72px; }
  .cta__p { font-size: 17px; }
  .cta__azioni { flex-direction: column; align-items: stretch; margin-top: 32px; }
  .cta__mail { grid-template-columns: 1fr auto; }
  .foot__grid { flex-direction: column; align-items: flex-start; }
  .foot__dati .sep { display: block; height: 0; overflow: hidden; margin: 0; }
}

/* ---------- Pagine legali (segnaposto) ---------- */
.legale { padding-top: 0; display: flex; flex-direction: column; min-height: 100vh; }
.legale__top { padding: 18px 0; border-bottom: 1px solid var(--line); }
.legale__main { flex: 1; width: 100%; padding-top: 72px; padding-bottom: 96px; }
.legale__p { margin-top: 20px; font-size: 17px; color: var(--slate); }
.legale__back { margin-top: 32px; font-size: 15px; }
.legale__back a { color: var(--teal-ink); font-weight: 600; text-underline-offset: 3px; }


/* ---------- Schermi medi ---------- */
@media (max-width: 1180px) { :root { --gutter: 40px; } }

/* ---------- Movimento ridotto: pagina completa e ferma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.no-motion * { transition: none !important; animation: none !important; }

/* ================= Hero e report guidato ================= */
/* ---------- Sistema proposto: curve e durate (skill di Emil Kowalski) ---------- */
:root {
  --e-out: cubic-bezier(.23, 1, .32, 1);
  --e-io: cubic-bezier(.77, 0, .175, 1);
  --t-hero: clamp(42px, 4.1vw, 60px);
  --stage-top: calc(var(--nav-h) + 20px);
  --stage-h: calc(100svh - var(--nav-h) - 40px);
}
html { scroll-behavior: auto; }
.btn { transition: background-color .15s ease, transform .16s var(--e-out); }
.btn:active { transform: scale(.97); }
/* ---------- Hero e report: testo a sinistra, il foglio fermo a destra ---------- */
.af { position: relative; background: #fff; overflow-x: clip; }
.af__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(48px, 5vw, 88px); }
.af__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; max-width: 560px; transition: opacity .3s ease; }
.af__step--hero { min-height: calc(100svh - var(--nav-h)); padding: 24px 0 40px; }
.af__step:last-child { min-height: 80vh; }
.af.is-guiding .af__step:not(.is-on) { opacity: .18; }
.af__title { font-size: var(--t-hero); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; max-width: 12.5ch; }
.af__title mark { position: relative; z-index: 0; color: var(--ink); background: none; padding: 0 .12em; margin: 0 -.04em; white-space: nowrap; }
.af__title mark::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .1em; bottom: .02em;
  background: var(--lime); border-radius: .16em .2em .14em .22em;
  transform: rotate(-1.2deg); transform-origin: left center;
}
.af__lead { margin-top: 24px; font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 46ch; }
.af__actions { margin-top: 36px; }
.af__src { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.af__src p { font-size: 14px; color: var(--slate-soft); }
.af__src ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.af__src li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.af__src li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime-ink); }
.af__h2 { font-size: var(--t-h2); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; max-width: 16ch; }
.af__p { margin-top: 18px; font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 40ch; }
.af__p strong { color: var(--open); font-weight: 600; }
/* la scrivania: una fascia chiara a destra, alta quanto la sezione */
.af__side { position: relative; isolation: isolate; padding-left: 48px; }
.af__side::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; right: calc(-1 * var(--gutter) - 100vw); background: linear-gradient(180deg, #EEF3F1, #E6ECE9); }
.af__stage { position: sticky; top: var(--stage-top); height: var(--stage-h); display: flex; flex-direction: column; justify-content: center; }
.af__win { overflow: hidden; padding: 4px 14px 14px 4px; }
.af__slide { transition: transform .5s var(--e-io); }
.af .report__doc { width: 640px; }
.af__cap { margin-top: 10px; font-size: 13px; color: var(--slate-soft); text-align: right; padding-right: 14px; }
/* la parte del foglio della tappa in rilievo */
.af .region { transition: opacity .3s ease, box-shadow .3s ease; }
.af .sheet.has-focus .region:not(.is-focus) { opacity: .4; }
.af .region.is-focus { box-shadow: 0 0 0 3px var(--lime), 0 0 0 8px rgba(191,242,60,.3); }
.af .region.is-focus .sec__n { background: var(--lime); }
.af .sheet__table .row--flag.is-lit td { background: var(--flag-bg); transition: background-color .3s ease; }
.af .sheet__table .row--flag.is-lit .cap { box-shadow: inset 3px 0 0 var(--open); }
.af .sec__note { opacity: 0; transition: opacity .3s ease; }
.af .sec__note.is-lit { opacity: 1; }
.af .sec__row .sec__h { white-space: nowrap; }
.af .legend { gap: 4px 10px; }
/* entrata della prima schermata, una volta sola */
.js .af [data-in] { opacity: 0; transform: translateY(10px); }
.af.is-in [data-in] { opacity: 1; transform: none; transition: opacity .5s var(--e-out), transform .5s var(--e-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js .af .af__title mark::before { transform: rotate(-1.2deg) scaleX(0); }
.af.is-in .af__title mark::before { transform: rotate(-1.2deg) scaleX(1); transition: transform .45s var(--e-out) .3s; }
.js .af .af__win { opacity: 0; transform: translateY(28px); }
.af.is-in .af__win { opacity: 1; transform: none; transition: opacity .6s var(--e-out) .12s, transform .8s var(--e-out) .12s; }
.af.is-still [data-in], .af.is-still .af__win, .af.is-still .es .ico { opacity: 1; transform: none; transition: none; }
.af.is-still .af__title mark::before { transform: rotate(-1.2deg) scaleX(1); transition: none; }
@media (prefers-reduced-motion: reduce) {
  .af [data-in], .af .af__win, .af .es .ico { opacity: 1 !important; transform: none !important; transition: none !important; }
  .af .af__title mark::before { transform: rotate(-1.2deg) scaleX(1) !important; transition: none !important; }
  .af__slide, .af .region, .af__step { transition: none !important; }
}
/* ---------- Sotto 1180 px: una colonna, il foglio scorre e le tappe stanno nel foglio ---------- */
.nt-in { display: none; }
@media (max-width: 1180px) {
  .af__grid { grid-template-columns: minmax(0, 1fr); }
  .af__step:not(.af__step--hero) { display: none; }
  .af__step--hero { min-height: 0; padding: 56px 0 48px; }
  .af__side { padding: 40px 0 56px; }
  .af__side::before { left: calc(-1 * var(--gutter)); }
  .af__stage { position: static; height: auto; }
  .af__win { overflow: visible; }
  .af__slide { transform: none !important; }
  .af .sheet.has-focus .region:not(.is-focus) { opacity: 1; }
  .af .region.is-focus { box-shadow: none; }
  .nt-in { display: block; margin: 16px 0 8px; padding: 2px 0 2px 14px; border-left: 3px solid var(--lime); }
  .nt-in p:first-child { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
  .nt-in p + p { margin-top: 6px; font-size: 15px; color: var(--slate); }
}
@media (max-width: 600px) {
  .af__step--hero { padding: 40px 0 36px; }
  .af__lead { font-size: 17px; margin-top: 20px; }
  .af__actions { margin-top: 28px; }
  .af__actions .btn { width: 100%; }
  .af__src { margin-top: 36px; }
  .af__src li { font-size: 14px; }
  .af .report__doc { width: auto; }
  .af__side { padding: 28px 0 40px; }
  .af__win { padding: 0 6px 6px 0; }
  .nt-in p + p { font-size: 14px; }
}

/* ================= Sistema comune e sezioni nuove ================= */
/* una sola curva decisa per tutto il sito (prima: cubic-bezier(.2,.7,.2,1), troppo morbida) */
:root { --ease: cubic-bezier(.23, 1, .32, 1); --sec-y: 112px; }
.af__step { min-height: 48vh; }
.af__step:last-child { min-height: 58vh; }
.af__step--hero { min-height: calc(100svh - var(--nav-h)); }
/* stesso respiro per tutte le sezioni */
.resp, .faq, .proc { padding: var(--sec-y) 0; }
.parco { padding: 96px 0 88px; }
.cta { padding: var(--sec-y) 0; }
.sec-title { margin-top: 0; }
/* ================= Come funziona: processo e numeri ================= */
.proc { background: var(--mist); border-top: 1px solid var(--line); }
.proc__head { max-width: 640px; }
.proc__head .sec-lead { max-width: 54ch; }
/* i disegni: tanti elementi quanti il numero */
.g { display: grid; }
.g-del { width: 46px; height: 60px; background: #fff; border: 1.5px solid var(--ink); border-radius: 2px; position: relative; align-content: start; padding: 9px 7px; gap: 5px; }
.g-del i { display: block; height: 2px; background: rgba(10,46,47,.3); }
.g-del i:first-child { width: 60%; background: var(--ink); }
.g-del::after { content: ""; position: absolute; right: -9px; bottom: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%230A2E2F' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: 0 0 0 2px var(--mist); }
.g-arch { grid-template-columns: repeat(2, 36px); gap: 6px; }
.g-arch i { height: 26px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; background: #fff; }
.g-arch i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); }
.g-docs { grid-template-columns: repeat(5, 12px); gap: 4px 5px; }
.g-docs i { width: 12px; height: 15px; border-radius: 1px; background: #fff; border: 1px solid var(--ink); }
.g-dots { grid-template-columns: repeat(9, 7px); gap: 5px; }
.g-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.g-dots i:nth-child(2) { background: var(--open); }
.g-rep { width: 46px; height: 64px; background: #fff; border: 1px solid rgba(10,46,47,.25); border-radius: 2px; padding: 7px 6px; align-content: start; gap: 4px; box-shadow: 3px 3px 0 #D7E2DF, 6px 6px 0 #C6D3CF; }
.g-rep i { height: 2px; background: rgba(10,46,47,.25); }
.g-rep i:first-child { width: 50%; height: 4px; background: var(--ink); margin-bottom: 2px; }
.g-rep i.is-open { background: var(--open); width: 72%; }
/* si riempiono una volta, quando entrano nello schermo */
.js [data-cf] [data-glyph] i { opacity: 0; transform: scale(.7); }
[data-cf].is-in [data-glyph] i { opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); transition-delay: calc(var(--c) * 140ms + var(--i) * 8ms); }
.no-motion [data-cf] [data-glyph] i { opacity: 1; transform: none; }
/* la catena: chi fa cosa, e quanto */
.ch { margin-top: 56px; }
.ch__who { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; }
.ch__who span { font-size: 14px; font-weight: 600; color: var(--ink); padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.ch__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 32px; }
.ch__it { position: relative; padding-top: 28px; }
.ch__it + .ch__it::before {
  content: ""; position: absolute; left: -26px; top: 52px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h13M11 5l5 5-5 5' fill='none' stroke='%235B6F71' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.ch__fig { height: 72px; display: flex; align-items: flex-end; }
.ch__v { position: relative; margin-top: 24px; font-size: 48px; line-height: 1; letter-spacing: -.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.ch__v small { position: absolute; left: 0; bottom: 100%; margin-bottom: 2px; font-size: 13px; letter-spacing: 0; font-weight: 500; color: var(--slate-soft); }
.ch__l { margin-top: 8px; font-size: 16px; font-weight: 600; }
.ch__d { margin-top: 6px; font-size: 14.5px; line-height: 1.45; color: var(--slate); max-width: 26ch; }
.ch__note { margin-top: 32px; font-size: 15px; color: var(--slate); }
/* come si comincia: una riga sola */
.go { margin-top: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.go__k { font-size: 16px; font-weight: 700; max-width: 11ch; line-height: 1.3; }
.go__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.go__list li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--slate); }
.go__list b { color: var(--ink); font-weight: 600; }
.go__list .sec__n { flex: none; margin-top: 1px; }
@media (max-width: 1180px) {
  .ch__who { display: none; }
  .ch__list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .ch__it:nth-child(4)::before { display: none; }
  .go { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .go__k { max-width: none; }
  .go__btn { justify-self: start; }
}
@media (max-width: 600px) {
  :root { --sec-y: 64px; }
  .parco { padding: 64px 0; }
  .ch { margin-top: 40px; }
  .ch__list { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ch__it { display: grid; grid-template-columns: 84px minmax(0, 1fr); column-gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
  .ch__it + .ch__it::before { display: none; }
  .ch__fig { grid-row: 1 / span 3; height: auto; align-items: flex-start; }
  .ch__v { margin-top: 14px; font-size: 40px; }
  .ch__v:has(small) { margin-top: 18px; }
  .ch__l { margin-top: 4px; }
  .ch__d { font-size: 14px; }
  .go { padding: 20px; margin-top: 40px; }
  .go__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .go__btn { width: 100%; }
}
/* «fino a» sulla stessa riga del numero: i numeri restano allineati */
.ch__v small { position: static; display: inline; margin: 0 6px 0 0; font-size: 15px; }
@media (max-width: 600px) {
  .flow__step, .flow__step--wide, .no-motion .flow__step, .no-motion .flow__step--wide { width: 100%; }
}


/* ================= Revisione del 30 ottobre 2026 (vedi SISTEMA.md e REVISIONE.md) ================= */

/* ---------- Menu: voci ferme; una sola azione principale per schermata ---------- */
.nav__links { transition: none; will-change: auto; }
@media (min-width: 1181px) {
  .nav__links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
}
.nav__cta { transition: opacity .2s var(--ease), visibility .2s; }
.nav--no-cta .nav__cta { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- Titoli di sezione: tutti a sinistra, stessa distanza da apertura e contenuto ---------- */
.sec-head, .sec-head--center { margin: 0; text-align: left; max-width: 760px; }
.sec-head .sec-lead, .resp .sec-lead { margin: 16px 0 0; max-width: 60ch; }
.resp .sec-title, .resp .sec-lead { text-wrap: pretty; }
.flowtrack { margin-top: 48px; }
.per { margin: 48px 0 0; }
.proc .ch { margin-top: 48px; }

/* ---------- Gerarchia: hero e chiusura alla stessa misura; un solo titolo grande per sezione ---------- */
.cta__t { font-size: var(--t-hero); }
.af__h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; max-width: 18ch; }
.af__p { font-size: 18px; }
.resp__end { margin: 64px 0 0; max-width: 760px; text-align: left; }
.resp__onere { font-size: 28px; line-height: 1.2; letter-spacing: -.015em; }

/* ---------- Monospace solo per numeri, date e codici ---------- */
.az .mono, .fin__path, .fin__tag, .fq__pg { font-family: var(--sans); letter-spacing: 0; }
.fin__path { font-size: 13px; }

/* ---------- Report guidato ---------- */
/* ciò che non è attivo si attenua sempre allo stesso modo */
.af.is-guiding .af__step:not(.is-on) { opacity: .4; }
/* il foglio è un A4 vero: il contenuto sta dentro il formato */
.af .sheet { min-height: 0; overflow: hidden; padding: 30px 36px 22px; }
.af .sheet__title { padding: 14px 0 12px; }
.af .sec { padding: 11px 0 10px; }
.af .sheet__table td { padding-top: 6px; padding-bottom: 6px; }
.af .sheet__table tfoot td { padding-top: 7px; padding-bottom: 7px; }
.af .legend { flex-wrap: wrap; justify-content: flex-end; gap: 2px 10px; }
/* senza JavaScript la nota resta visibile */
.af .sec__note { opacity: 1; }
.js .af .sec__note:not(.is-lit) { opacity: 0; }
.no-motion .af .sec__note { opacity: 1; }
/* entrata del foglio allineata al testo */
.js .af:not(.is-in) .af__win { transform: translateY(16px); }
.af.is-in .af__win { transition: opacity .5s var(--e-out) .12s, transform .6s var(--e-out) .12s; }
/* i quattro archivi su due righe pari */
.af__src ul { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 8px 28px; }

/* ---------- Dichiarato e versato: le schede sfumano ai bordi invece di essere tagliate ---------- */
@media (min-width: 1181px) {
  html:not(.no-motion) .flowtrack {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  }
}

/* ---------- Come funziona: i disegni finiscono nell'ordine di lettura ---------- */
[data-cf].is-in [data-glyph] i { transition-delay: calc(var(--c) * 120ms + min(var(--i) * 8ms, 160ms)); }

/* ---------- Chiusura: i tre passi per cominciare al posto della copia del report ---------- */
.cta__grid { align-items: start; }
.cta__txt.is-armed .cta__t mark::before, .cta__txt .cta__t mark::before { transform: rotate(-1.2deg) scaleX(1); transition: none; }
.cta__passi { padding: 28px 32px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; }
.cta__pk { font-size: 15px; font-weight: 600; color: var(--lime); }
.cta__list { list-style: none; margin: 8px 0 0; padding: 0; }
.cta__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; padding: 18px 0 20px; border-top: 1px solid rgba(255,255,255,.12); }
.cta__list li:first-child { border-top: 0; }
.cta__list .sec__n { color: #fff; border-color: rgba(255,255,255,.6); margin-top: 3px; }
.cta__lt { font-size: 17px; font-weight: 600; color: #fff; }
.cta__ld { margin-top: 4px; font-size: 15px; line-height: 1.5; color: #C9D6D3; }
.cta__mail { grid-template-rows: auto; padding: 8px 8px 8px 18px; }
.cta__copia { grid-row: 1; height: 44px; }

/* ---------- Footer: la nota FISSA sotto i dati societari ---------- */
.foot__nota { margin-top: 4px; font-size: 13px; color: #8FA6A3; }

/* ---------- Tocco: niente flash, niente ritardi, testo dei pulsanti non selezionabile ---------- */
html { -webkit-tap-highlight-color: transparent; }
button, .btn { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.fin__file:active, .fq__q:active { background: var(--mist); }

/* ---------- Schermi medi ---------- */
@media (max-width: 960px) {
  .nav__links { left: 0; right: 0; padding: 8px var(--gutter) 16px; }
  .nav__toggle { order: 5; width: 44px; height: 44px; }
  .nav__cta { margin-left: auto; }
}

/* ---------- Telefono ---------- */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .nav__cta { height: 44px; }
  .nav__toggle { width: 44px; height: 44px; margin-left: 0; }
  /* il report entra già nella prima schermata */
  .af__step--hero { min-height: 0; padding: 32px 0 28px; }
  .af__src { margin-top: 28px; padding-top: 16px; }
  .af__side { padding: 20px 0 40px; }
  .af .sheet { overflow: visible; }
  .af__h2 { font-size: 22px; }
  /* le righe del report vanno a capo dentro il foglio; il simbolo dell'esito resta a destra */
  .sheet__table tr.row, .sheet__table tfoot tr { display: flex; flex-wrap: wrap; align-items: baseline; position: relative; padding: 10px 28px 10px 30px; column-gap: 0; row-gap: 2px; }
  .sheet__table tr.row .cap, .sheet__table tfoot .cap { position: absolute; left: 0; top: 11px; width: auto; }
  .sheet__table tr.row .tema, .sheet__table tfoot .tema { flex: 0 0 100%; }
  .sheet__table .n { flex: none; margin-right: 12px; padding-right: 0; }
  .af .sheet__table td, .af .sheet__table tfoot td { padding-top: 0; padding-bottom: 0; }
  .sheet__table tr.row .es { position: absolute; right: 0; top: 10px; }
  .af .sheet__table .row--flag.is-lit .cap { box-shadow: none; }
  .sheet__table tr.row--flag { margin: 0 -8px; padding-left: 38px; padding-right: 36px; }
  .sheet__table tr.row--flag .cap { left: 8px; }
  .sheet__table tr.row--flag .es { right: 8px; }
  .sheet__period .mono { display: block; margin: 2px 0 0; }
  .sheet__foot { font-size: 13px; }
  /* Come funziona: «fino a» sopra il numero */
  .ch__v small { display: block; margin: 0 0 2px; font-size: 13px; }
  /* parco: l'anteprima del fornitore in due colonne, la finestra non cambia altezza a ogni giro */
  .pv__t:not(.pv__t--sum) thead { display: none; }
  .pv__t:not(.pv__t--sum) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 4px; border-bottom: 1px solid var(--line-soft); }
  .pv__t:not(.pv__t--sum) td { padding: 0; border: 0; }
  .pv__t:not(.pv__t--sum) td.pv__per { grid-row: 2; }
  .pv__t:not(.pv__t--sum) td:last-child { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .fin__prev { min-height: 900px; }
  .pv__t--sum tr.is-adesso { padding-left: 10px; }
  .parco__btn { white-space: nowrap; }
  .fin__file, .fin__chip { min-height: 44px; }
  .cta__copia { height: 44px; }
  .foot__link a { display: inline-block; padding: 12px 0; }
  /* Perché controllare: sul telefono tutto quello che è sullo schermo si legge pieno */
  .per.is-live .per__col.is-out, .per.is-live .per__link.is-out, .per.is-live .per__ris.is-out { opacity: 1; }
  .cta__passi { padding: 20px 20px 4px; }
  .resp__onere { font-size: 22px; }
}

/* ---------- Allineamento: tutto parte dal margine sinistro della griglia ---------- */
.flowsticky > .wrap { width: 100%; }
.parco__head { display: block; max-width: 760px; }
.parco__head .sec-title { max-width: 22ch; }
.fin { margin-top: 48px; }
.per { margin-left: -18px; max-width: 1120px; }
@media (max-width: 900px) { .per { margin-left: 0; } }
.per__stage { justify-content: flex-start; }
.per__ris, .per__ris ul { justify-content: flex-start; }
.per__ris { padding-left: 40px; }
.fq { max-width: none; margin: 48px 0 0; }
@media (max-width: 600px) { .nav__logo { display: inline-flex; align-items: center; min-height: 44px; } }

/* ================= Seconda revisione (30 ottobre 2026) ================= */

/* hero: la didascalia sta sotto il riquadro; se il foglio non entra, sfuma in basso */
.af__win { flex: 1 1 auto; min-height: 0; }
.af__cap { flex: none; margin-top: 12px; font-size: 14px; }
.af__win.is-crop { -webkit-mask-image: linear-gradient(#000 calc(100% - 64px), transparent); mask-image: linear-gradient(#000 calc(100% - 64px), transparent); }

/* scala dei testi di SISTEMA.md */
.af__p, .cta__p { font-size: 19px; }
.flow__t { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; }
@media (min-width: 900px) {
  .fq__pq { font-size: 28px; line-height: 1.2; }
  .fq__pa strong { font-size: 19px; font-weight: 700; }
}
.fq__q, .cta__lt { font-size: 16px; }
.ch__d, .ch__note, .cta__ld, .cta__pk, .fq__gt, .resp__nota, .fq__pg { font-size: 14px; }
.sec-title, .af__h2, .flow__t, .cta__t, .resp__onere, .fq__pq, .af__title { text-wrap: balance; }

/* Dichiarato e versato: l'anello della scheda attiva non viene tagliato dalla sfumatura */
@media (min-width: 1181px) { .flowtrack { padding-top: 12px; padding-bottom: 12px; margin-top: 36px; } }

/* lime su chiaro solo dove è stato deciso */
.fin__file.is-sel { background: var(--mist); box-shadow: inset 3px 0 0 var(--ink); }
.g-del::after { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='%23ffffff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
@media (max-width: 1180px) { .nt-in { border-left-color: var(--ink); } }

/* stesso respiro anche per il parco */
.parco { padding: 112px 0; }

/* foglio: legenda dentro il margine, intestazioni leggibili */
.af .legend { gap: 2px 8px; }
.af .legend li { gap: 4px; }
.af .sheet__table th { font-size: 11px; }

/* anteprime del parco: edizione ed estrazione */
.edz__estr::before { content: " · "; }

/* senza JavaScript non si mostra una demo vuota né un grafico vuoto */
html:not(.js) .fin, html:not(.js) .parco__foot, html:not(.js) .tl { display: none; }

/* Perché controllare: niente spazi in più intorno alla parola evidenziata */
.resp__head .sec-title mark { padding: 0 .12em; margin: 0 -.12em; }

/* indirizzo in carattere normale; link nel testo in ink */
.cta__addr { font-family: var(--sans); }
.faq .sec-lead a { color: var(--ink); }

/* Come funziona: chi fa cosa si legge anche sul telefono */
.ch__chi { display: none; }
@media (max-width: 1180px) {
  .ch__chi { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--slate); }
}

@media (max-width: 600px) {
  .af__step--hero { padding: 28px 0 20px; }
  .af__src { margin-top: 24px; }
  .af__src ul { grid-template-columns: 1fr; gap: 4px; }
  .sheet__kicker { letter-spacing: .04em; }
  .edz__meta span { display: block; }
  .edz__estr::before { content: none; }
  .flow__t { font-size: 20px; }
  .ch__chi { grid-column: 2; margin-bottom: 4px; }
}
@media (max-width: 600px) {
  /* Come funziona: disegno a sinistra, tutto il testo nella colonna di destra */
  .ch__it > :not(.ch__fig) { grid-column: 2; }
  .ch__it > .ch__fig { grid-column: 1; grid-row: 1 / span 5; }
  /* parco: altezza fissa pari alla sintesi, l'anteprima più alta */
  .fin__prev { min-height: 770px; }
}
@media (max-width: 600px) {
  /* i 45 punti stanno nella colonna del disegno */
  .g-dots { grid-template-columns: repeat(9, 5px); gap: 4px; }
  .g-dots i { width: 5px; height: 5px; }
}

/* ================= Pannello dei critici (31 ottobre 2026) ================= */

/* ---------- Movimento ridotto: tappe e pulsante della hero sempre pieni ---------- */
.af.is-guiding .af__step--hero:not(.is-on) { opacity: 1; }
.af.is-guiding .af__step--hero:not(.is-on) > :not(.af__actions) { opacity: .4; transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) {
  .af.is-guiding .af__step:not(.is-on), .af.is-guiding .af__step--hero:not(.is-on) > * { opacity: 1; }
}
.no-motion .af.is-guiding .af__step:not(.is-on), .no-motion .af.is-guiding .af__step--hero:not(.is-on) > * { opacity: 1; }

/* ---------- Menu ---------- */
.nav.is-scrolled { background: #fff; }

/* ---------- Spazi (SISTEMA.md: 16 tra titolo e apertura, 48 tra apertura e contenuto) ---------- */
.sec-lead, .resp__riga, .cta__p { max-width: 34em; }
.af__lead { margin-top: 16px; }
.af__actions { margin-top: 48px; }
.af__mail { margin-top: 12px; font-size: 14px; color: var(--slate); }
.af__mail a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 1181px) and (max-height: 860px) { .confronto .flowsticky { padding: 72px 0; } }
@media (max-width: 1180px) { .flowsticky, .no-motion .flowsticky { padding: var(--sec-y) 0; } }
.flow { gap: 16px; }
.flow__step { padding: 24px; }
.parco { padding: var(--sec-y) 0; }
.fin__bar { padding: 12px 16px; }
.fin__side { padding: 16px; background: #fff; }
.fin__prev { padding: 24px 32px; }
.parco__foot { margin-top: 16px; }
.per { margin-top: 32px; }
.per__ris { padding-left: 0; }
.resp__end { margin-top: 24px; }
.resp__riga { margin-top: 16px; }
.resp__nota { margin-top: 8px; }
.proc__head { max-width: 56em; }
.proc__head .sec-lead { margin-top: 16px; }
.ch__note { max-width: 68ch; }
.fq { gap: 48px; }
@media (min-width: 900px) {
  .fq__list { margin-left: -16px; }
  .fq.is-js .fq__panel { padding: 48px; }
  .fq__pa p { max-width: 560px; }
}
.cta__t { margin-top: 0; }
.cta__p { margin-top: 16px; }
.cta__azioni { margin-top: 48px; }
.cta__grid { column-gap: 64px; }
.cta__passi { padding: 24px 32px 4px; }
.foot { padding: 32px 0; }
.foot__grid { justify-content: flex-start; gap: 16px 48px; }
.foot__link { margin-left: auto; }

/* ---------- Scala dei testi (otto livelli) ---------- */
.af__src li { font-size: 16px; }
.flow__cap, .doc__l, .cmp__l, .tl__axis, .azioni li, .per__tag, .per__ris li, .az__r, .ch__v small, .foot__nota { font-size: 14px; }
.cmp__l, .per__ris-t { font-size: 14px; font-weight: 600; }
.azioni__n { font-size: 14px; font-weight: 600; }
.azioni b { font-weight: 600; }
.cta__addr { font-size: 16px; }
.fin__chip { font-size: 14px; }
.fin__chip .mono { font-size: 13px; }
.fin__name small, .fin__new { font-size: 13px; }
.edz__meta b { font-family: var(--sans); font-size: 12.5px; }
.sec__h .sec__n { width: 20px; height: 20px; font-size: 12px; }
.sheet .sec__h .sec__n { width: 18px; height: 18px; font-size: 10.5px; }
.cta__list .sec__n { width: 20px; height: 20px; font-size: 12px; }

/* ---------- Colori: ogni colore con il suo motivo ---------- */
.af__side::before { background: var(--mist); }
.af__cap { color: var(--slate); }
.sheet__table .row--flag .cap { color: var(--slate); }
.legale__back a { color: var(--ink); }
/* lo scostamento si scrive sempre con il suo simbolo, nel rosso dell'esito */
.af__p .esito { display: inline-flex; gap: 6px; font-size: inherit; vertical-align: baseline; }
.af__p .esito .ico { width: 16px; height: 16px; align-self: center; }
/* la barra del versato resta lime (scelta approvata) ma con un contorno leggibile */
.cmp__fill--b, .tl__bar--b { box-shadow: inset 0 0 0 1px var(--lime-ink); }
/* «scostamento» sotto la barra, leggibile, non sopra il tratteggio */
.cmp__row { row-gap: 0; }
.cmp__gap b { position: absolute; left: 0; right: auto; top: 100%; margin-top: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.cmp__gap { justify-content: flex-start; }
.cmp { padding-bottom: 20px; }
/* Non verificabile: la barra nel grigio dell'esito */
.pv__t--sum .is-e--nv td:first-child, .pv__t .is-flag--nv td:first-child { box-shadow: inset 3px 0 0 #6C8284; }
.pv__t--sum tr.is-adesso small { color: var(--slate); }
.fico { color: #6C8284; }
/* controlli secondari su scuro: neutri, il lime resta all'azione principale */
.parco__btn { border-color: rgba(255,255,255,.4); color: #fff; }
.fin__ptr::after { background: var(--ink); }
.fq__pg { color: #C9D6D3; font-weight: 600; }
.fq__pn { font-family: var(--mono); }
.fq__btn { border-color: rgba(255,255,255,.4); }
.cta__mail { border-color: rgba(255,255,255,.4); }
.cta__copia { border-color: rgba(255,255,255,.4); min-width: 88px; }
.cta__pk { color: #C9D6D3; }
/* il riquadro «Voi» non è un documento: niente pila di fogli */
.per__col--voi .az { box-shadow: none; border: 1.5px solid var(--ink); }
.per__col--sub .az { border-color: #6C8284; }
.ch__chi { color: var(--ink); }
/* interfaccia: risposta sotto i 200 ms */
.fin__file, .fin__chip { transition-duration: .15s; }

/* ---------- Il parco: la cartella si apre dalla sintesi sul telefono ---------- */
.pv__back { display: none; }
.pv__t--sum tr[data-i] { cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .pv__t--sum tr[data-i]:hover td { background-color: var(--mist); } .pv__t--sum tr.is-adesso[data-i]:hover td { filter: brightness(.98); } }
.pv__t--sum tr[data-i]:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- Telefono ---------- */
@media (max-width: 760px) {
  .fin__list { display: none; }
  .pv__back { display: inline-flex; align-items: center; min-height: 44px; margin: -6px 0 6px; padding: 0; border: 0; background: none; font: 600 14px/1 var(--sans); color: var(--ink); cursor: pointer; }
  .fin__prev { min-height: 0; }
  @media (pointer: coarse) { .fin__ptr { display: none; } }
  /* righe del fornitore: colore dell'esito sulla riga intera */
  .pv__t:not(.pv__t--sum) tr.is-flag--open { background: var(--flag-bg); box-shadow: inset 3px 0 0 var(--open); }
  .pv__t:not(.pv__t--sum) tr.is-flag--warn { background: var(--warn-bg); box-shadow: inset 3px 0 0 var(--warn); }
  .pv__t:not(.pv__t--sum) tr.is-flag--nv { background: var(--nv-bg); box-shadow: inset 3px 0 0 #6C8284; }
  .pv__t:not(.pv__t--sum) tr.is-flag td, .pv__t:not(.pv__t--sum) tr.is-flag td:first-child { background: none; box-shadow: none; }
}
@media (max-width: 600px) {
  .nav__cta { font-size: 14px; }
  .nav__links a.is-active { font-weight: 700; box-shadow: inset 3px 0 0 var(--ink); padding-left: 12px; }
  /* le fonti in riga: il report entra prima nella prima schermata */
  .af__src ul { display: flex; flex-wrap: wrap; gap: 4px 0; }
  .af__src li { font-size: 15px; }
  .af__src li::before { display: none; }
  .af__src li + li::before { content: "·"; display: inline; width: auto; height: auto; background: none; margin: 0 8px; color: var(--slate-soft); }
  .af__mail { font-size: 14px; }
  /* «dati di esempio» prima del foglio e prima della cartella */
  .af__stage { display: flex; flex-direction: column; }
  .af__cap { order: -1; text-align: left; margin: 0 0 12px; padding: 0; }
  .parco .wrap { display: flex; flex-direction: column; }
  .parco__foot { order: 1; margin: 0 0 12px; }
  .fin { order: 2; margin-top: 32px; }
  .parco__head { order: 0; }
  .sheet__kicker { text-wrap: balance; }
  .nt-in { margin: 14px 0 10px; padding: 10px 12px; border: 0; border-radius: 4px; background: var(--mist); }
  .nt-in p:first-child { font-size: 16px; }
  .nt-in p + p { font-size: 14px; }
  .flow__t { font-size: 22px; }
  .azioni li, .flow__cap { font-size: 14px; }
  .ch__v { font-size: 42px; }
  .cta__p { font-size: 17px; }
  .cta__azioni { margin-top: 32px; }
  .fq__a p { font-size: 16px; }
  .faq .sec-lead a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  /* Perché controllare: niente omini, etichette sul filo, rischi allineati */
  .lav { display: none; }
  .lav__l { margin-top: 6px; }
  .per__stage { padding-bottom: 32px; }
  .per__ris { align-items: flex-start; }
  .per__ris-t { align-self: flex-start; }
  .per__ris ul { width: 100%; justify-content: flex-start; }
  .per__col { max-width: none; }
  /* Come funziona: l'apertura ripete la catena che segue subito */
  .proc__head .sec-lead { display: none; }
  .foot__link { margin-left: 0; }
}
.legale { min-height: 100svh; }
@media (max-width: 600px) {
  /* le fonti in una frase sola, separate da virgole */
  .af__src ul { display: block; }
  .af__src li { display: inline; font-size: 15px; }
  .af__src li + li::before { content: ", "; margin: 0; color: inherit; }
  /* parco: l'anteprima usa tutta la larghezza */
  .fin__prev { padding: 12px 8px; }
}
@media (max-width: 600px) { .parco__foot { margin: 16px 0 0; } .fin { margin-top: 24px; } }
@media (max-width: 600px) {
  .sec__n, .sec__h .sec__n, .sheet .sec__h .sec__n, .cta__list .sec__n { width: 20px; height: 20px; font-size: 13px; }
  .edz__meta b { font-size: 13px; }
  .af__mail a { display: inline-block; padding: 12px 0; margin: -12px 0; }
}

/* ---------- Controllo finale ---------- */
@media (min-width: 1181px) and (max-height: 860px) { .confronto .flowsticky { padding: 24px 0; } }
@media (prefers-reduced-motion: reduce) { .af .sheet.has-focus .region:not(.is-focus) { opacity: 1; } }
.no-motion .af .sheet.has-focus .region:not(.is-focus) { opacity: 1; }
.flow__cap .esito { display: inline-flex; gap: 5px; font-size: inherit; vertical-align: baseline; }
.flow__cap .esito .ico { width: 14px; height: 14px; align-self: center; }
@media (max-width: 600px) {
  .sheet__kicker .sep { display: none; }
  .sheet__kicker { display: flex; flex-direction: column; gap: 4px; }
  .doc { width: 84px; }
}

/* ================= Revisione del 31 ottobre 2026, seconda parte ================= */
/* report guidato: quattro tappe più vicine tra loro */
@media (min-width: 1181px) {
  .af__step:not(.af__step--hero) { min-height: 34vh; }
  /* l'ultima tappa resta accesa mentre il foglio è ancora fermo: testo in alto, spazio sotto */
  .af__step:last-child { min-height: 85vh; justify-content: flex-start; padding-top: 10vh; }
}
/* Dichiarato e versato, scheda 1: due documenti generici, dichiarato e versato */
.doc--wide { width: 132px; }

/* ================= Pagine legali: informativa privacy e cookie (31 ottobre 2026) ================= */
.legale__agg { margin-top: 16px; font-size: 14px; color: var(--slate); }
.legale__testo { max-width: 68ch; margin-top: 48px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.legale__testo h2 { margin-top: 48px; font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.legale__testo h3 { margin-top: 24px; font-size: 16px; font-weight: 700; }
.legale__testo p, .legale__testo ul { margin-top: 12px; }
.legale__testo h2 + p, .legale__testo h3 + p { margin-top: 8px; }
.legale__testo ul { padding-left: 22px; list-style: disc; }
.legale__testo li + li { margin-top: 8px; }
.legale__testo a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.legale__testo > p:first-child { font-size: 17px; color: var(--slate); }
@media (max-width: 600px) {
  .legale__main { padding-top: 48px; padding-bottom: 64px; }
  .legale__testo { margin-top: 32px; }
  .legale__testo h2 { margin-top: 40px; font-size: 20px; }
}

/* ================= Logo d'apertura (31 ottobre 2026, animazione approvata) =================
   Solo all'arrivo da fuori, non al ricaricamento né su connessioni lente. In 1,8 secondi si disegna
   la cornice, poi si scrive la parola; una pausa breve, poi la tenda si alza. Si salta con rotella,
   tasto o tocco; niente con movimento ridotto o senza JS. */
.apertura { display: none; }
.js.apre .apertura {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--ink);
  animation: apertura-su .5s var(--e-io) 2.15s both;
}
.js.apre.apre-via .apertura { opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.js.apre .apertura svg { display: block; width: min(320px, 50vw); height: auto; }
#apertura-bordo { stroke-dasharray: 11592 46048; stroke-dashoffset: 11592; }
#apertura-parola { clip-path: inset(0 100% 0 0); }
.js.apre #apertura-bordo { animation: apertura-bordo 1.8s linear both; }
.js.apre #apertura-parola { animation: apertura-parola 1.8s linear both; }
@keyframes apertura-bordo {
  0% { stroke-dashoffset: 11592; animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  50%, 100% { stroke-dashoffset: 0; }
}
@keyframes apertura-parola {
  0%, 54% { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(.65, 0, .35, 1); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes apertura-su { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@media (prefers-reduced-motion: reduce) { .apertura { display: none !important; } }

/* ================= Prenotazione nella chiusura (31 ottobre 2026) =================
   Scheda bianca sul fondo scuro: chi incontrate, quanto dura, poi il calendario di Google.
   Gli orari arrivano dal programma Google Apps Script, chiesti in background dopo la hero. */
.agenda { margin-top: 64px; background: #fff; color: var(--ink); border-radius: 6px; overflow: hidden; }
.agenda__top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 24px 32px; border-bottom: 1px solid var(--line); }
.agenda__chi { display: flex; align-items: center; gap: 16px; }
.agenda__foto { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.agenda__nome { font-size: 17px; font-weight: 700; }
.agenda__come { margin-top: 2px; font-size: 14px; color: var(--slate); }
.agenda__durata { display: flex; gap: 4px; padding: 4px; background: var(--mist); border: 1px solid var(--line); border-radius: 8px; }
.agenda__durata button {
  display: grid; justify-items: center; gap: 2px; min-width: 172px; min-height: 52px; padding: 8px 16px;
  border: 0; border-radius: 6px; background: none; color: var(--slate); font: inherit; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.agenda__durata b { font-size: 16px; font-weight: 700; }
.agenda__durata span { font-size: 13px; }
.agenda__durata [aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.agenda__durata button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .agenda__durata [aria-checked="false"]:hover { color: var(--ink); } }
.agenda__corpo { padding: 40px 32px; }
.agenda__invito { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; align-items: center; }
.agenda__t { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.agenda__pannello { display: grid; justify-items: center; gap: 20px; padding: 32px; background: var(--mist); border-radius: 6px; text-align: center; }
.agenda__apri { width: 100%; }
.agenda__piede { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 32px; border-top: 1px solid var(--line); background: var(--mist); }
.agenda__alt { font-size: 16px; font-weight: 600; }
.agenda .cta__azioni { margin-top: 0; gap: 12px 16px; }
.btn--line { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { background: var(--ink); color: #fff; } }
.btn--line:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.agenda .cta__mail { padding: 4px 4px 4px 16px; border-color: var(--line); background: #fff; }
.agenda .cta__addr { color: var(--ink); }
.agenda .cta__copia { height: 36px; border-color: var(--line); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .agenda .cta__copia:hover { background: var(--ink); color: #fff; border-color: var(--ink); } }
.agenda .cta__copia:focus-visible { outline-color: var(--ink); }
.agenda .cta__copia.is-ok { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 900px) {
  .agenda__invito { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .agenda { margin-top: 48px; }
  .agenda__top { padding: 20px; }
  .agenda__durata { width: 100%; }
  .agenda__durata button { flex: 1; min-width: 0; padding: 8px; }
  .agenda__corpo { padding: 32px 20px; }
  .agenda__t { font-size: 22px; }
  .agenda__pannello { padding: 24px 20px; }
  .agenda__piede { flex-direction: column; align-items: stretch; padding: 20px; }
  .agenda .cta__azioni { flex-direction: column; align-items: stretch; }
  .agenda .cta__copia { height: 44px; }
}
.agenda [hidden] { display: none !important; }

/* ---------- Calendario proprio: giorni a sinistra, orari a destra (31 ottobre 2026) ---------- */
.agenda__sotto { margin-top: 12px; max-width: 40ch; font-size: 16px; line-height: 1.5; color: var(--slate); }
.agenda__pannello { justify-items: stretch; }
.cal { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.cal__mese { padding-right: 32px; border-right: 1px solid var(--line); }
.cal__lato { padding-left: 32px; min-height: 380px; }
.cal__testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 16px; }
.cal__titolo { font-size: 17px; font-weight: 700; }
.cal__fuso { font-size: 14px; color: var(--slate); }
.cal__frecce { display: flex; gap: 8px; }
.cal__freccia { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.cal__freccia svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal__freccia:disabled { opacity: .4; cursor: default; }
@media (hover: hover) and (pointer: fine) { .cal__freccia:not(:disabled):hover { border-color: var(--ink); } }
.cal__sett, .cal__giorni { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; text-align: center; }
.cal__sett span { padding-bottom: 8px; font-size: 13px; color: var(--slate); }
.cal__g {
  display: grid; place-items: center; width: 100%; max-width: 44px; aspect-ratio: 1; justify-self: center;
  border: 0; border-radius: 50%; background: none; color: #8DA09F; font: 500 15px/1 var(--mono);
}
.cal__g:not(:disabled) { background: var(--lime-tint); color: var(--lime-ink); font-weight: 700; cursor: pointer; }
.cal__g[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .cal__g:not(:disabled):not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 1.5px var(--lime-ink); } }
.cal__orari { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.cal__o { height: 44px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); font: 500 15px var(--mono); cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .cal__o:hover { border-color: var(--ink); } }
.cal__g:focus-visible, .cal__o:focus-visible, .cal__freccia:focus-visible, .cal__cambia:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cal__vuoto { font-size: 16px; color: var(--slate); }
/* in attesa degli orari: segnaposti grigi, senza numeri inventati */
.cal.is-carica .cal__g, .cal.is-carica .cal__o { background: var(--mist); color: transparent; border-color: transparent; }
.cal__form { display: grid; gap: 16px; max-width: 460px; }
.cal__scelta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; font-size: 17px; }
.cal__cambia { padding: 12px 0; margin: -12px 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cal__campo { display: grid; gap: 6px; }
.cal__campo span { font-size: 14px; font-weight: 600; }
.cal__campo input { height: 48px; padding: 0 14px; border: 1px solid #A9BAB7; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.cal__campo input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.cal__campo input[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); }
.cal__trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cal__errore { padding: 10px 14px; border-left: 3px solid var(--ink); background: var(--mist); font-size: 15px; }
.cal__invia { justify-self: start; }
.cal__invia[disabled] { opacity: .6; cursor: progress; }
.cal__privacy { font-size: 14px; color: var(--slate); }
.cal__privacy a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.cal__fatto { padding: 24px; border-radius: 6px; background: var(--mist); font-size: 16px; line-height: 1.5; }
.cal__fatto:focus { outline: none; }
.cal__ok { margin-bottom: 8px; font-size: 22px; font-weight: 700; }
.cal [hidden], .agenda__durata[hidden] { display: none !important; }
@media (max-width: 900px) {
  .cal { grid-template-columns: 1fr; }
  .cal__mese { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cal__lato { padding: 24px 0 0; min-height: 0; }
}
@media (max-width: 600px) {
  .cal__orari { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal__invia { justify-self: stretch; }
  .cal__privacy a { display: inline-block; padding: 13px 4px; margin: -13px -4px; }
}
.cal__errore { margin-bottom: 16px; }
#agenda-min { white-space: nowrap; }
@media (max-width: 600px) { .cal__giorni { column-gap: 0; } }

/* ---------- Chiusura dopo i feedback del 31 ottobre: titolo su tutta la riga, passi sotto il calendario ---------- */
.cta__grid { display: block; }
.cta__t { max-width: none; }
.cta__p { max-width: 60em; }
.agenda { margin-top: 48px; }
.agenda__foto { width: 72px; height: 72px; }
.cta__passi--riga { margin-top: 48px; padding: 24px 32px; }
.cta__passi--riga .cta__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; margin-top: 16px; }
.cta__passi--riga .cta__list li { padding: 0; border-top: 0; }
@media (max-width: 900px) {
  .cta__passi--riga .cta__list { grid-template-columns: 1fr; gap: 0; }
  .cta__passi--riga .cta__list li { padding: 18px 0 20px; border-top: 1px solid rgba(255,255,255,.12); }
  .cta__passi--riga .cta__list li:first-child { border-top: 0; padding-top: 4px; }
}
@media (max-width: 600px) {
  .agenda { margin-top: 32px; }
  .agenda__foto { width: 64px; height: 64px; }
  .cta__passi--riga { margin-top: 32px; padding: 20px 20px 4px; }
}
.cal__vuoto { grid-column: 1 / -1; max-width: 40ch; }
.cal__errore:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
/* senza JavaScript la scelta della durata e «Copia» non funzionano: non si mostrano */
html:not(.js) .agenda__durata, html:not(.js) .cta__copia { display: none; }

/* ---------- Ultimi feedback del 31 ottobre: tappe del report ---------- */
/* titoli delle tappe su una riga dove c'è spazio; stessa misura dei titoli di blocco (28px) */
.af__h2 { max-width: 24ch; }
/* «Ogni mese»: lo stesso evidenziatore lime della hero, testo scuro sopra */
.af__h2 mark, .nt-in mark { position: relative; z-index: 0; color: var(--ink); background: none; padding: 0 .1em; margin: 0 -.04em; white-space: nowrap; }
.af__h2 mark::before, .nt-in mark::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .08em; bottom: .02em;
  background: var(--lime); border-radius: .16em .2em .14em .22em; transform: rotate(-1.2deg);
}
/* numero di pagine acceso sulla tappa delle tematiche */
.sheet__pag { border-radius: 4px; padding: 1px 6px; margin: -1px -6px; transition: box-shadow .3s ease, color .3s ease, background-color .3s ease; }
.af .sheet__pag.is-focus { color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--lime), 0 0 0 8px rgba(191,242,60,.3); }

/* ---------- Ultimi feedback: Dichiarato e versato, Perché controllare ---------- */
/* il grafico dei dodici mesi usa tutta l'altezza della scheda */
.flow__viz.tl { flex: 1 1 auto; }
.tl__chart { flex: 1 1 auto; height: auto; min-height: 130px; }
/* «È un onere.»: evidenziatore lime (scelta approvata il 31 ottobre) */
.resp__onere mark { position: relative; z-index: 0; color: var(--ink); background: none; padding: 0 .1em; margin: 0 -.04em; white-space: nowrap; }
.resp__onere mark::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: .08em; bottom: .02em;
  background: var(--lime); border-radius: .16em .2em .14em .22em; transform: rotate(-1.2deg);
}
/* la seconda frase della hero sta su una riga */
.af__lead { max-width: 35em; }
@media (max-width: 600px) { .af__lead br { display: none; } }

/* ---------- Come funziona: il riquadro sotto il mouse si colora di verde chiaro (aiuta la lettura) ---------- */
.ch__it { border-radius: 6px; transition: background-color .2s ease, box-shadow .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .ch__it:hover { background: var(--lime-tint); box-shadow: 0 0 0 12px var(--lime-tint); }
}
@media (prefers-reduced-motion: reduce) { .ch__it { transition: none; } }

/* ---------- Pagina delle domande ---------- */
.faq h1.sec-title { margin: 0; }
.cta--breve .cta__t { margin-top: 0; }
.cta__vai { margin-top: 40px; }
@media (max-width: 600px) { .cta__vai .btn { width: 100%; } }
/* hero: la colonna del testo è abbastanza larga per la seconda frase su una riga */
@media (min-width: 1181px) { .af__step--hero { max-width: 660px; } }

/* ---------- Scheda 4 con due punti: testo più grande, spazio usato (scelta approvata) ---------- */
.azioni { justify-content: space-evenly; margin: 24px 0 8px; }
.azioni li { gap: 16px; padding: 20px 0; font-size: 17px; line-height: 1.5; }
.azioni b { font-size: 19px; line-height: 1.3; margin-bottom: 6px; font-weight: 700; }
.azioni__n { width: 36px; padding-top: 3px; font-size: 16px; }
@media (max-width: 600px) {
  .azioni { margin: 16px 0 4px; }
  .azioni li { padding: 14px 0; font-size: 15px; }
  .azioni b { font-size: 17px; }
  .azioni__n { font-size: 14px; width: 34px; }
}
