/* Compliance Fatta Facile — stile "evidenziatore + schemi" */

/* ---------- Caratteri (ospitati sul sito, nessuna chiamata esterna) ---------- */
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/newsreader-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/newsreader-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/newsreader-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/newsreader-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/public-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/public-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/public-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/public-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/caveat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/caveat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/caveat-latin-700-normal.woff2') format('woff2'); }

/* ---------- Colori e misure ---------- */
:root {
  color-scheme: light;
  --ink: #0E1C47;
  --testo: #27304A;
  --muted: #4A5470;
  --soft: #5F6782;
  --linea: #D6DAE6;
  --linea2: #E2E6EF;
  --banda: #F4F6FA;
  --pale: #E6EBF6;
  --pale-linea: #D3DAEA;
  --ev: #FFD60A;
  --penna: #0E1C47;
  --rosso: #A3261B;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mano: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--ev); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Evidenziatore e penna ---------- */
.ev { background: var(--ev); color: var(--ink); padding: 0 0.12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ev-forte { font-weight: 600; }
.sott { background: linear-gradient(transparent 56%, var(--ev) 56%); color: var(--ink); font-weight: 600; padding: 0 0.1em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark { background: none; color: inherit; }
.mano { font-family: var(--mano); color: var(--penna); font-weight: 600; line-height: 1.15; }
.storto { display: inline-block; transform: rotate(-3deg); }
.storto-poco { display: inline-block; transform: rotate(-2deg); }
.cerchiato { position: relative; display: inline-block; font-family: var(--mano); font-weight: 700; line-height: 1; color: var(--ink); padding: 4px 14px; }
.cerchiato svg { position: absolute; left: -8%; top: -10%; width: 116%; height: 122%; overflow: visible; pointer-events: none; }
.cerchiato path { fill: none; stroke: var(--penna); stroke-width: 2.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.riquadro { font-family: var(--mano); font-weight: 700; color: var(--ink); background: #FFFFFF; border: 2.5px solid var(--penna); padding: 6px 18px; line-height: 1.05; text-align: center; display: inline-block; }
.r1 { border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; }
.r2 { border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px; }
.r3 { border-radius: 225px 15px 255px 15px / 15px 255px 15px 225px; }
.r4 { border-radius: 15px 255px 15px 225px / 225px 15px 255px 15px; }
.freccia path { fill: none; stroke: var(--penna); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pulsanti e link ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #FFFFFF; text-decoration: none; padding: 15px 22px; border-radius: 3px; font: inherit; font-size: 16px; font-weight: 600; border: 0; cursor: pointer; }
.btn:hover { background: #1B2B63; color: #FFFFFF; }
.btn svg { flex: 0 0 auto; }
.btn-piccolo { padding: 12px 18px; font-size: 15px; }
.btn-ev { background: var(--ev); color: var(--ink); }
.btn-ev:hover { background: #F2C900; color: var(--ink); }
.btn-bordo { background: #FFFFFF; color: var(--ink); border: 1px solid var(--ink); }
.btn-bordo:hover { background: var(--banda); color: var(--ink); }
.link-sott { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; padding: 10px 0; display: inline-block; }

/* ---------- Testata e piede ---------- */
.logo { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo .ev { padding: 0 6px; }

/* Testata: si compatta scorrendo, resta sempre a portata */
.testata { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--linea2); transition: box-shadow .25s ease; }
@supports (backdrop-filter: blur(6px)) { .testata { background: rgba(255, 255, 255, 0.88); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); } }
.testata.compatta { box-shadow: 0 6px 18px -14px rgba(14, 28, 71, 0.45); }
.testata-riga { display: flex; align-items: center; gap: 12px 28px; padding-block: 20px 18px; transition: padding .25s ease; }
.testata.compatta .testata-riga { padding-block: 10px 9px; }
.testata .logo-timbro { transition: font-size .25s ease; }
.testata.compatta .logo-timbro { font-size: 12.5px; }
[id] { scroll-margin-top: 104px; }

/* Voci del menu: nome + nota scritta a mano, evidenziatore che passa al passaggio del mouse */
.menu { display: flex; align-items: center; gap: 6px 30px; margin-left: auto; }
.mvoce { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 2px 6px; color: var(--ink); text-decoration: none; }
.mvoce:hover { color: var(--ink); }
.mv-nome { position: relative; isolation: isolate; display: inline-block; padding: 0 0.18em; font-size: 15.5px; font-weight: 650; letter-spacing: -0.005em; line-height: 1.25; white-space: nowrap; }
.mv-nome .evid { position: absolute; z-index: -1; left: -0.12em; top: 12%; width: calc(100% + 0.24em); height: 86%; fill: var(--ev); transform: scaleX(0); transform-origin: left center; transition: transform .3s cubic-bezier(.3, .75, .25, 1); }
.mvoce:hover .evid, .mvoce:focus-visible .evid, .mvoce.attiva .evid { transform: scaleX(1); }
.mv-nota { padding-left: 0.3em; font-family: var(--mano); font-size: 17px; font-weight: 600; line-height: 1; color: var(--muted); white-space: nowrap; transform: rotate(-2deg); transform-origin: left center; transition: transform .25s ease, color .2s ease; }
.mvoce:hover .mv-nota, .mvoce.attiva .mv-nota { color: var(--ink); transform: rotate(-4deg) translateX(2px); }
.mvoce:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.testata.compatta .mv-nota { font-size: 15px; }

/* «Fatta meno facile», con «meno» aggiunto a penna sopra una v di correzione */
.fmf { display: inline-flex; align-items: baseline; white-space: nowrap; }
.fmf-ins { position: relative; display: inline-block; width: 0.78em; height: 0.6em; margin: 0 0.04em; }
.fmf-caret { position: absolute; left: 50%; bottom: -0.12em; width: 0.62em; transform: translateX(-50%); overflow: visible; }
.fmf-caret path { fill: none; stroke: var(--rosso); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fmf-meno { position: absolute; left: 50%; bottom: 0.62em; font-family: var(--mano); font-size: 1.32em; font-weight: 700; color: var(--rosso); transform: translateX(-50%) rotate(-8deg); line-height: 1; }

/* Tendina dei percorsi */
.mv-gruppo { position: relative; display: inline-flex; align-items: flex-start; }
.mv-apri { display: inline-grid; place-items: center; width: 26px; height: 26px; margin: 8px 0 0 -2px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s ease; }
.mv-apri:hover, .mv-apri[aria-expanded="true"] { background: var(--banda); }
.mv-apri svg { width: 13px; height: 10px; overflow: visible; transition: transform .25s ease; }
.mv-apri svg path { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mv-apri[aria-expanded="true"] svg { transform: rotate(180deg); }
.mv-apri:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.tendina { position: absolute; top: calc(100% + 10px); left: -24px; width: min(720px, calc(100vw - 48px)); padding: 22px 24px 24px; background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: 18px 6px 22px 8px / 8px 20px 6px 16px; box-shadow: 7px 8px 0 -1px rgba(14, 28, 71, 0.09), 0 24px 40px -28px rgba(14, 28, 71, 0.5); opacity: 0; transform: translateY(-6px) rotate(-0.4deg); transform-origin: 30px 0; transition: opacity .18s ease, transform .22s cubic-bezier(.3, .75, .25, 1); }
.tendina::before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* ponte per il mouse */
.mv-gruppo.aperta .tendina { opacity: 1; transform: none; }
.tend-testa { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tend-testa .mano { font-size: 25px; transform: rotate(-1.5deg); }
.tend-testa .link-sott { font-size: 14px; padding: 4px 0; }
.tend-griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.tend-griglia.in-colonna { grid-auto-flow: column; }
.tend-griglia .caricamento { grid-column: 1 / -1; padding: 12px 0; }
.tend-voce { display: flex; align-items: flex-start; gap: 12px; padding: 10px 10px 10px 6px; border-radius: 10px 4px 12px 5px; color: var(--ink); text-decoration: none; transition: background .15s ease, transform .15s ease; }
.tend-voce:hover, .tend-voce:focus-visible { background: var(--banda); color: var(--ink); transform: translateX(2px); outline: none; }
.tend-num { position: relative; flex: 0 0 48px; isolation: isolate; font-family: var(--mano); font-size: 28px; font-weight: 700; line-height: 1; text-align: center; padding-top: 2px; }
.tend-num::after { content: ''; position: absolute; z-index: -1; left: 4px; right: 4px; top: 8px; height: 62%; background: var(--ev); border-radius: 2px 6px 3px 5px; transform: scaleX(0) rotate(-3deg); transform-origin: left; transition: transform .25s ease; }
.tend-voce:hover .tend-num::after, .tend-voce:focus-visible .tend-num::after { transform: scaleX(1) rotate(-3deg); }
.tend-testi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tend-tit { font-size: 15.5px; font-weight: 650; line-height: 1.3; }
.tend-desc { font-size: 13.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Azioni a destra: cerca, prima pillola, menu (sul telefono) */
.testata-azioni { display: flex; align-items: center; gap: 12px; }
.cerca-apri { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 11px; border: 1px solid var(--linea); border-radius: 22px 6px 20px 8px / 8px 20px 6px 22px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.cerca-apri:hover { border-color: var(--ink); background: var(--banda); }
.cerca-apri:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ico-lente { width: 19px; height: 19px; flex: 0 0 auto; overflow: visible; }
.ico-lente circle, .ico-lente path { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; }
.cerca-apri:hover .ico-lente { transform: rotate(-12deg) scale(1.06); transition: transform .25s ease; }
kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 1px solid var(--linea); border-bottom-width: 2px; border-radius: 4px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--banda); }
.testata-cta { white-space: nowrap; }
.testata-cta svg { margin-left: -2px; }
.menu-apri { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border: 0; border-radius: 3px; background: var(--ink); color: #FFFFFF; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.menu-apri svg { width: 20px; height: 15px; overflow: visible; }
.menu-apri svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.menu-apri:focus-visible { outline: 2px solid var(--ev); outline-offset: 2px; }

/* Barra di lettura (nella pagina della pillola) */
.avanzamento-lettura { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.avanzamento-lettura span { display: block; height: 100%; background: var(--ev); transform: scaleX(0); transform-origin: left; }
.testata:not(.con-lettura) .avanzamento-lettura { display: none; }

/* Menu a tutto schermo */
.foglio { position: fixed; inset: 0; z-index: 60; background: rgba(14, 28, 71, 0.35); opacity: 0; transition: opacity .22s ease; }
.foglio.aperto { opacity: 1; }
.foglio-dentro { position: absolute; inset: 0 0 auto 0; max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 22px; padding: 14px var(--gutter) 28px; background: #FFFFFF; border-bottom: 2px solid var(--ink); transform: translateY(-14px); transition: transform .26s cubic-bezier(.3, .75, .25, 1); }
.foglio.aperto .foglio-dentro { transform: none; }
.foglio-testa { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.foglio-testa .logo-timbro { font-size: 12.5px; }
.foglio-chiudi { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ink); font-family: var(--mano); font-size: 24px; font-weight: 700; cursor: pointer; }
.foglio-chiudi svg { width: 15px; height: 15px; }
.foglio-chiudi svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.foglio-voci { display: flex; flex-direction: column; border-top: 1px solid var(--linea2); }
.fv { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; align-items: baseline; column-gap: 10px; padding: 14px 4px 13px; border-bottom: 1px solid var(--linea2); color: var(--ink); text-decoration: none; opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease, background .15s ease; transition-delay: calc(var(--i) * 45ms + 60ms); }
.foglio.aperto .fv { opacity: 1; transform: none; }
.fv:hover, .fv:focus-visible { background: var(--banda); color: var(--ink); }
.fv-num { grid-row: 1 / 3; font-family: var(--mano); font-size: 22px; font-weight: 700; color: var(--muted); }
.fv-nome { font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.fv-nome .fmf-meno { font-size: 0.9em; }
.fv-nota { font-family: var(--mano); font-size: 19px; font-weight: 600; color: var(--muted); }
.fv.attiva .fv-nome { background: linear-gradient(transparent 18%, var(--ev) 18%, var(--ev) 88%, transparent 88%); padding: 0 0.12em; justify-self: start; }
.foglio-cerca { align-self: stretch; justify-content: flex-start; height: 52px; padding: 0 16px; font-size: 16px; color: var(--muted); font-weight: 500; }
.foglio-percorsi { display: flex; flex-direction: column; gap: 10px; }
.foglio-percorsi .mano { font-size: 22px; }
.fp-lista { display: flex; flex-wrap: wrap; gap: 8px; }
.fp { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 10px; border: 1px solid var(--linea); border-radius: 14px 4px 12px 5px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.fp span { font-family: var(--mano); font-size: 17px; font-weight: 700; color: var(--muted); }
.fp:hover { border-color: var(--ink); background: var(--banda); color: var(--ink); }
.foglio-cta { align-self: flex-start; }
html.menu-aperto, html.cerca-aperta { overflow: hidden; }

/* Ricerca */
dialog.cerca { width: min(700px, calc(100vw - 24px)); max-width: none; max-height: min(640px, calc(100dvh - 24px)); margin: 10vh auto auto; padding: 0; border: 1.5px solid var(--ink); border-radius: 18px 6px 22px 8px / 8px 20px 6px 16px; background: #FFFFFF; color: var(--testo); box-shadow: 8px 9px 0 -1px rgba(14, 28, 71, 0.12), 0 30px 60px -30px rgba(14, 28, 71, 0.6); overflow: hidden; }
dialog.cerca[open] { animation: cerca-entra .22s cubic-bezier(.3, .75, .25, 1); }
dialog.cerca::backdrop { background: rgba(14, 28, 71, 0.38); backdrop-filter: blur(2px); }
@keyframes cerca-entra { from { opacity: 0; transform: translateY(-10px) scale(.985); } }
.cerca-box { display: flex; flex-direction: column; max-height: inherit; }
.cerca-riga { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--linea2); color: var(--ink); }
.cerca-riga .ico-lente { width: 22px; height: 22px; }
.cerca-riga input { flex: 1 1 auto; min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font-family: var(--serif); font-size: 23px; color: var(--ink); }
.cerca-riga input::placeholder { color: var(--soft); opacity: .8; }
.cerca-riga input::-webkit-search-cancel-button { display: none; }
.cerca-chiudi { height: 30px; padding: 0 10px; border: 1px solid var(--linea); border-radius: 4px; background: var(--banda); color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.cerca-lista { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.cr { display: flex; gap: 14px; padding: 12px 12px 12px 8px; border-radius: 12px 4px 12px 5px; color: var(--testo); text-decoration: none; }
.cr.attivo { background: var(--banda); color: var(--testo); box-shadow: inset 3px 0 0 var(--ev); }
.cr-num { flex: 0 0 46px; font-family: var(--mano); font-size: 24px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.1; }
.cr-testi { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cr-tit { font-size: 16.5px; font-weight: 650; color: var(--ink); line-height: 1.3; }
.cr-estr { font-size: 14px; line-height: 1.5; color: var(--muted); }
.cr-perc { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--soft); }
.cr mark { background: var(--ev); color: var(--ink); padding: 0 .08em; border-radius: 2px; }
.cerca-suggerimenti { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 10px 16px; }
.cerca-suggerimenti .mano { font-size: 23px; margin-right: 4px; }
.cerca-sugg { padding: 8px 12px; font-size: 14px; }
.cerca-vuoto { margin: 0; padding: 18px 14px 22px; font-size: 15.5px; line-height: 1.5; color: var(--muted); }
.cerca-vuoto .mano { display: block; font-size: 26px; color: var(--ink); margin-bottom: 4px; }
.cerca-piede { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--linea2); font-size: 12.5px; color: var(--soft); background: var(--banda); }
.cerca-piede kbd { min-width: 18px; height: 18px; font-size: 11px; background: #FFFFFF; }
.cerca-piede .mano { font-size: 19px; color: var(--muted); }

/* Schermi medi: via le note e il testo lungo del pulsante */
@media (max-width: 1240px) {
  .testata .logo-timbro { font-size: 13.5px; }
  .menu { gap: 6px 22px; }
  .testata-cta span, .cerca-apri .cerca-testo { display: none; }
  .testata-cta::after { content: 'Prima pillola'; }
}
@media (max-width: 1180px) { .testata-cta { display: none; } }
/* Tablet e telefono: menu a tutto schermo */
@media (max-width: 1080px) {
  .menu, .testata-cta { display: none; }
  .testata-azioni { margin-left: auto; }
  .menu-apri { display: inline-flex; }
  .cerca-apri kbd { display: none; }
}
@media (max-width: 600px) {
  .testata-riga { padding-block: 12px 11px; gap: 10px; }
  .testata .logo-timbro, .testata.compatta .logo-timbro { font-size: 11px; }
  .cerca-apri { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .cerca-apri .cerca-testo { display: none; }
  .foglio-cerca { width: auto; border-radius: 22px 6px 20px 8px / 8px 20px 6px 22px; padding: 0 16px; justify-content: flex-start; }
  .foglio-cerca span { display: inline; }
  dialog.cerca { margin-top: 12px; }
  .cerca-riga input { font-size: 20px; }
  .cerca-piede > span:first-child { display: none; }
  [id] { scroll-margin-top: 76px; }
  .foglio-testa .logo-timbro { font-size: 11px; }
}
@media (max-width: 440px) {
  .testata .logo-timbro, .testata.compatta .logo-timbro { font-size: 10.5px; }
  .menu-apri { width: 44px; padding: 0; justify-content: center; }
  .menu-apri span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .testata *, .foglio, .foglio *, dialog.cerca { transition: none !important; animation: none !important; }
}

.piede { border-top: 2px solid var(--ink); }
.piede .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.piede .nome { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); }
.piede nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Home: documento in alto ---------- */
.hero .wrap { padding-block: 88px 104px; display: flex; flex-wrap: wrap; gap: 24px 56px; }
.margine { flex: 1 1 120px; max-width: 160px; display: flex; flex-direction: column; gap: 6px; padding-top: 10px; font-size: 14px; color: var(--soft); }
.margine strong { color: var(--ink); }
.margine .trattino { margin-top: 18px; width: 40px; height: 2px; background: var(--ink); }
.documento { flex: 999 1 640px; min-width: 0; max-width: 960px; display: flex; flex-direction: column; gap: 48px; }
.burocratese { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 36px); line-height: 1.55; color: var(--soft); }
.burocratese .ev { font-weight: 600; padding: 0 0.15em; }
.tradotto { display: flex; flex-wrap: wrap; gap: 40px 56px; padding-top: 32px; border-top: 2px solid var(--ink); }
.tradotto-testo { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tradotto-testo em { font-family: var(--serif); font-size: 24px; }
.tradotto-testo p { margin: 0; font-size: 22px; line-height: 1.5; }
.azioni { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.schemino { flex: 1.4 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.schemino .titolo-mano { font-size: 28px; align-self: flex-start; }
.schemino-riga { display: flex; align-items: center; gap: 6px; }
.schemino .riquadro { flex: 1 1 0; min-width: 0; font-size: 24px; max-width: 150px; padding: 8px 10px; }
.schemino .freccia { flex: 0 0 auto; width: 30px; }

/* ---------- Sezioni ---------- */
.sezione .wrap { padding-block: 88px 96px; }
.banda { background: var(--banda); border-top: 1px solid var(--linea2); border-bottom: 1px solid var(--linea2); }
.titolo-sez { margin: 0; font-family: var(--serif); font-size: clamp(34px, 3.6vw, 48px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.testa-sez { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; margin-bottom: 48px; }
.testa-sez .gruppo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; }
.testa-sez .mano { font-size: 30px; }

/* Indice */
.indice .wrap { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.indice-intro { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.indice-intro h2 { font-size: 60px; line-height: 1; }
.indice-intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.indice-nota { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.indice-nota .mano { font-size: 27px; }
.indice-lista { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.voce { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-bottom: 1px solid var(--linea); text-decoration: none; color: var(--ink); }
.voce:hover { background: rgba(255, 214, 10, 0.12); color: var(--ink); }
.voce-riga { display: flex; align-items: baseline; gap: 18px; }
.voce-num { flex: 0 0 52px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.voce-titolo { flex: 0 1 auto; font-family: var(--serif); font-size: 26px; font-weight: 500; line-height: 1.25; }
.voce-puntini { flex: 1 1 40px; min-width: 24px; border-bottom: 2px dotted #A6ADC2; transform: translateY(-6px); }
.voce-n { flex: 0 0 auto; font-size: 15px; font-weight: 600; color: var(--muted); }
.voce-desc { padding-left: 70px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Schema in vetrina e "Lo schema" */
.vetrina .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.vetrina-testo { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.vetrina-testo .etichetta { font-size: 14px; font-weight: 600; color: var(--muted); }
.vetrina-testo p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--testo); }
.vetrina-schema { flex: 1 1 560px; min-width: 0; }
.schema { display: flex; flex-direction: column; gap: 28px; }

/* Lavagna: lo schema disegnato a mano libera */
.lavagna-scorri { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lavagna { position: relative; width: 100%; min-width: 560px; container-type: inline-size; }
.lavagna.libera { min-width: 0; }
.lavagna .el { position: absolute; isolation: isolate; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--mano); font-weight: 700; line-height: 1.08; color: var(--ink); overflow-wrap: anywhere; }
.lavagna .el-testo { position: relative; z-index: 1; }
.lavagna .el-box { border: max(1.6px, 0.25cqw) solid var(--penna); padding: 0.6cqw 1.2cqw; }
.lavagna .el-forma { padding: 0; }
.lavagna .el-forma .el-testo { max-width: 80%; }
.lavagna .el-rombo .el-testo { max-width: 60%; }
.lavagna .el-forma svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lavagna .el-forma path { stroke: var(--penna); stroke-width: 2.6; vector-effect: non-scaling-stroke; }
.lavagna .el-libero { line-height: 1.15; }
.lavagna .el-icona { flex-direction: column; justify-content: flex-start; gap: 0.4cqw; }
.lavagna .el-icona svg { flex: 1 1 auto; min-height: 0; width: 100%; overflow: visible; }
.lavagna .el-icona path, .lavagna .el-icona circle { fill: none; stroke: var(--penna); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lavagna .el-icona .el-testo { flex: 0 0 auto; font-weight: 600; }
.lavagna-frecce { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.lavagna-frecce path { fill: none; stroke: var(--penna); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.lavagna-frecce path.tratt { stroke-dasharray: 11 10; }
.el-etichetta { position: absolute; transform: translate(-50%, -118%); font-family: var(--mano); font-weight: 600; color: var(--penna); white-space: nowrap; z-index: 4; text-align: center; line-height: 1.05; }
.schemino .lavagna .el-box { padding: 0.4cqw 0.8cqw; }
.schema-riga { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 16px 12px; }
.schema-passo { display: flex; align-items: flex-start; gap: 12px; }
.schema-col { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 170px; }
.schema-col .riquadro { font-size: 34px; }
.schema-esempio { font-family: var(--mano); font-size: 22px; font-weight: 500; line-height: 1.15; text-align: center; color: var(--muted); }
.schema-freccia { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 10px; min-width: 44px; }
.schema-freccia .mano { font-size: 22px; text-align: center; max-width: 130px; }
.schema-frase { font-family: var(--mano); font-size: 32px; font-weight: 600; line-height: 1.25; color: var(--ink); text-align: center; }
.schema-frase .ev { padding: 0 6px; }

/* Schede pillola e copertine */
.griglia { display: flex; flex-wrap: wrap; gap: 40px 28px; }
.card { flex: 1 1 340px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: var(--ink); }
.card:hover .copertina { border-color: var(--ink); }
.card-percorso { font-size: 14px; font-weight: 600; color: var(--muted); }
.card-desc { font-size: 16px; line-height: 1.6; color: var(--testo); }
.copertina { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: var(--pale); border: 1px solid var(--pale-linea); padding: 22px 26px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; container-type: inline-size; }
.copertina-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.copertina-alto { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.copertina .cerchiato { font-size: clamp(34px, 14cqi, 76px); }
.copertina-nota { font-family: var(--mano); font-size: clamp(18px, 6.5cqi, 34px); font-weight: 600; line-height: 1.1; color: var(--penna); text-align: right; max-width: 45%; transform: rotate(-4deg); margin-top: 6px; }
.copertina-basso { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
/* Il disegnino a penna in mezzo alla copertina, scelto dal titolo */
.copertina-schizzo { flex: 1 1 0; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 1.5cqi 0; pointer-events: none; }
.copertina-schizzo svg { display: block; height: 100%; max-height: 36cqi; width: auto; max-width: 52%; overflow: visible; }
/* Nelle schede piccole lo spazio al centro dipende dal titolo: il disegnino va a destra, in un posto suo */
@container (max-width: 559px) {
  .copertina-schizzo { position: absolute; right: 4.5cqi; top: 54%; width: 31cqi; height: 21cqi; padding: 0; transform: translateY(-50%); }
  .copertina-schizzo svg { width: 100%; height: 100%; max-width: none; max-height: none; }
  .copertina:has(.copertina-schizzo) .copertina-titolo { max-width: 63cqi; font-size: clamp(17px, 6.5cqi, 46px); }
  .copertina:has(.copertina-schizzo) .copertina-nota { max-width: 58%; }
}
.schizzo .sz-tratti path, .schizzo .sz-tr path { fill: none; stroke: var(--penna); stroke-width: clamp(1.5px, 0.62cqi, 3.4px); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.schizzo .sz-tr path { stroke-dasharray: 0.4em 0.55em; }
.schizzo .sz-ev path { fill: var(--ev); opacity: 0.95; }
.schizzo .sz-pieni path { fill: var(--penna); }
.schizzo text { font-family: var(--mano); font-weight: 700; fill: var(--penna); }
.card:hover .copertina-schizzo svg { transform: rotate(-2deg) scale(1.04); }
.copertina-schizzo svg { transition: transform .35s cubic-bezier(.3, .75, .25, 1); }
.copertina-titolo { font-family: var(--serif); font-size: clamp(18px, 7cqi, 46px); font-weight: 500; line-height: 1.18; color: var(--ink); }
.play { flex: 0 0 auto; width: clamp(40px, 13cqi, 96px); height: clamp(40px, 13cqi, 96px); border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.play svg { width: 38%; height: 38%; }
.in-arrivo { font-family: var(--mano); font-size: clamp(18px, 6cqi, 30px); font-weight: 600; color: var(--muted); }

/* Nota dell'autore */
.autore .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.autore-foto { flex: 0 1 240px; min-width: 200px; aspect-ratio: 5 / 6; border: 1.5px dashed #8A93AD; border-radius: 3px; background: var(--banda); display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; font-size: 14px; color: var(--muted); overflow: hidden; }
.autore-foto.con-foto { border: 0; padding: 0; }
.autore-foto img { width: 100%; height: 100%; object-fit: cover; }
.autore-testo { flex: 1 1 480px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.autore-testo .corpo { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--testo); white-space: pre-line; }
.firma { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.firma .mano { font-size: 44px; }
.firma .ruolo { font-size: 15px; font-weight: 600; color: var(--muted); }

/* ---------- Pagina pillola ---------- */
.briciole { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding-top: 24px; }
.briciole a { color: var(--muted); text-decoration: none; }
.briciole a:hover { text-decoration: underline; }
.briciole strong { color: var(--ink); }
.pill-testa { display: flex; flex-wrap: wrap; gap: 24px 56px; padding-block: 40px 48px; }
.pill-margine { flex: 1 1 120px; max-width: 160px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--soft); }
.pill-margine .cerchiato { font-size: 54px; align-self: flex-start; }
.pill-margine strong { color: var(--ink); margin-top: 8px; }
.pill-titoli { flex: 999 1 640px; min-width: 0; max-width: 960px; display: flex; flex-direction: column; gap: 18px; }
.pill-titoli h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4.8vw, 66px); line-height: 1.08; font-weight: 500; letter-spacing: -0.025em; }
.pill-titoli p { margin: 0; max-width: 780px; font-size: 21px; line-height: 1.55; color: var(--testo); }
.pill-corpo { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px; padding-bottom: 80px; }
.pill-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.lettore { position: relative; }
.lettore .copertina { border-radius: 14px; padding: clamp(18px, 4vw, 40px); }
.lettore video, .lettore iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.approfondimento { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.approfondimento h2, .lo-schema h2, .box h2 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.approfondimento h2, .lo-schema h2 { font-size: 32px; }
.testo-ricco p { margin: 0 0 20px; font-size: 18px; line-height: 1.75; color: var(--testo); }
.testo-ricco p:last-child { margin-bottom: 0; }
.testo-ricco .nota-margine { display: block; margin: 0 0 20px; font-family: var(--mano); font-size: 28px; font-weight: 600; color: var(--penna); transform: rotate(-1.5deg); transform-origin: left; }
.testo-ricco a { font-weight: 600; text-underline-offset: 4px; }
.lo-schema { background: var(--banda); border: 1px solid var(--linea2); border-radius: 14px; padding: clamp(22px, 4vw, 40px); display: flex; flex-direction: column; gap: 32px; }
.lo-schema .testa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; }
.lo-schema .testa .mano { font-size: 28px; }
.scarica-schema { display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px dashed var(--pale-linea); }
.ss-testa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.ss-titolo { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
.ss-sotto { font-family: var(--mano); font-size: 22px; font-weight: 600; color: var(--muted); }
.ss-bottoni { display: flex; flex-wrap: wrap; gap: 10px; }
.chip.ss-b { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px 11px; text-align: left; line-height: 1.2; }
.ss-b .ss-nome { font-size: 14px; font-weight: 700; color: var(--ink); }
.ss-b .ss-det { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.ss-b:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ss-b[aria-busy="true"] { background: var(--pale); cursor: progress; }
.ss-lavora .ss-b:not([aria-busy]) { opacity: .55; cursor: wait; }
.ss-nota { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); max-width: 62ch; }
.ss-nota a { color: var(--ink); }
.pill-lato { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.box { border: 1px solid var(--linea); border-radius: 10px; overflow: hidden; }
.box h2 { font-size: 22px; }
.box-testa { padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.box-testa span { font-size: 14px; color: var(--muted); }
.box-corpo { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.avanzamento { height: 4px; background: var(--linea2); }
.avanzamento div { height: 4px; background: var(--ink); }
.riga-percorso { display: flex; align-items: flex-start; gap: 12px; padding: 14px 24px; text-decoration: none; border-top: 1px solid var(--linea2); color: var(--ink); }
.riga-percorso:hover { background: var(--banda); color: var(--ink); }
.riga-percorso .n { flex: 0 0 34px; font-size: 14px; font-weight: 700; color: var(--muted); }
.riga-percorso .t { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.35; color: var(--testo); }
.riga-percorso.attuale { background: #FFFBE6; }
.riga-percorso.attuale .t { font-weight: 700; color: var(--ink); }
.riga-percorso .mano { font-size: 22px; }
.file { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); padding: 4px 0; }
.file .ico { width: 40px; height: 48px; flex: 0 0 auto; border-radius: 3px; background: var(--banda); border: 1px solid var(--linea); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.file .nome { font-size: 15px; font-weight: 600; }
.file .az { font-size: 13px; color: var(--muted); text-decoration: underline; }
.condividi { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--linea); border-radius: 3px; padding: 10px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: #FFFFFF; cursor: pointer; }
.chip:hover { background: var(--banda); color: var(--ink); }
.prec-succ { border-top: 1px solid var(--linea2); }
.prec-succ .wrap { padding-block: 32px 72px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.ps { flex: 1 1 320px; max-width: 520px; border: 1px solid var(--linea); border-radius: 10px; padding: 20px 24px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.ps:hover { border-color: var(--ink); color: var(--ink); }
.ps .dir { font-size: 13px; font-weight: 600; color: var(--muted); }
.ps .tit { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.ps.succ { background: var(--ink); border-color: var(--ink); align-items: flex-end; text-align: right; margin-left: auto; }
.ps.succ .dir { color: var(--linea); }
.ps.succ .tit { color: #FFFFFF; }
.ps.succ:hover { background: #1B2B63; }

/* Pagina percorso */
.percorso-testa { padding-block: 40px 56px; display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.percorso-testa h1 { margin: 0; font-family: var(--serif); font-size: clamp(38px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
.percorso-testa p { margin: 0; font-size: 20px; line-height: 1.55; color: var(--testo); }

/* Messaggi */
.messaggio { padding: 48px 0; font-size: 18px; color: var(--muted); }
.messaggio .mano { font-size: 30px; display: block; margin-bottom: 8px; }
.caricamento { color: var(--soft); font-size: 15px; padding: 24px 0; }

/* ---------- Telefono ---------- */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .hero .wrap { padding-block: 48px 64px; }
  .margine, .pill-margine { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 0; }
  .margine .trattino { display: none; }
  .sezione .wrap { padding-block: 56px 64px; }
  .indice-intro h2 { font-size: 48px; }
  .voce-titolo { font-size: 21px; }
  .voce-desc { padding-left: 0; }
  .voce-num { flex-basis: 40px; font-size: 18px; }
  .tradotto-testo p { font-size: 19px; }
  .schema-col { width: 140px; }
  .schema-col .riquadro { font-size: 28px; }
  .ss-bottoni { display: grid; grid-template-columns: 1fr 1fr; }
  .chip.ss-b { padding: 10px 12px 11px; }
  .schema-frase { font-size: 27px; }
  .card { max-width: none; }
  .autore-testo .corpo { font-size: 19px; }
  .logo { font-size: 22px; }
}
@media (max-width: 720px) {
  .schemino .riquadro { font-size: 20px; padding: 6px 6px; }
  .schemino .freccia { width: 24px; }
}
#autore-corpo { white-space: pre-line; }

/* ---------- Logo: il timbro firmato ---------- */
.logo-timbro { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; font-size: 15px; padding: 0.15em 8.6em 0.95em 0.1em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo-timbro:hover { color: var(--ink); }
.lt-timbro { position: relative; display: inline-block; width: 11.6em; height: 3.6em; transform: rotate(-2.5deg); opacity: 0.92; }
.lt-timbro svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lt-timbro path { fill: none; stroke: currentColor; }
.lt-testo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-left: 0.2em; font-family: var(--sans); font-size: 1.05em; font-weight: 700; letter-spacing: 0.2em; line-height: 1; }
.lt-firma { position: absolute; right: -0.1em; bottom: -0.1em; display: inline-block; padding: 0 0.2em; font-family: var(--mano); font-size: 2.44em; font-weight: 700; color: var(--ink); transform: rotate(-7deg); }
.lt-firma svg { position: absolute; left: 0; top: 0.23em; width: 100%; height: 70%; }
.lt-firma svg path { fill: var(--ev); }
.lt-firma > span { position: relative; }
@media (max-width: 600px) { .logo-timbro { font-size: 12.5px; } }

/* ---------- Fatta meno facile: pagina in costruzione ---------- */
.cantiere .wrap { padding-block: 96px 120px; }
.cantiere .documento { gap: 40px; }
.cant-testa { display: flex; flex-direction: column; gap: 10px; padding-top: 36px; }
.cant-titolo { margin: 0; font-family: var(--serif); font-size: clamp(52px, 8vw, 104px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.cant-titolo .fmf-ins { width: 0.62em; }
.cant-titolo .fmf-caret path { stroke-width: 1.2; }
.cant-titolo .fmf-meno { font-size: 0.7em; bottom: 0.68em; transform: translateX(-58%) rotate(-8deg); }
.cant-sotto { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.cant-testo { margin: 0; max-width: 34ch; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; color: var(--testo); }
.cant-testo .ev { padding: 0 0.12em; }
.cant-lavori { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; padding: 32px 0 8px; border-top: 2px solid var(--ink); }
.cant-timbro { position: relative; display: inline-grid; place-items: center; width: 300px; height: 92px; color: var(--rosso); transform: rotate(-6deg); opacity: 0.9; animation: timbra .5s cubic-bezier(.3, 1.4, .5, 1) .25s both; }
.cant-timbro svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cant-timbro path { fill: none; stroke: currentColor; }
.cant-timbro span { position: relative; font-size: 22px; font-weight: 700; letter-spacing: 0.22em; padding-left: 0.22em; }
@keyframes timbra { from { opacity: 0; transform: rotate(-12deg) scale(1.35); } }
.cant-schema { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cant-schema .riquadro { font-size: 28px; }
.cant-tratteggio { border-style: dashed; color: var(--muted); background: transparent; }
.cant-nota { flex-basis: 100%; font-size: 24px; color: var(--muted); transform: rotate(-2deg); padding-left: 8px; }
.cantiere .azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
@media (max-width: 600px) {
  .cantiere .wrap { padding-block: 48px 72px; }
  .cant-timbro { width: 240px; height: 74px; }
  .cant-timbro span { font-size: 18px; }
  .cant-schema .riquadro { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { .cant-timbro { animation: none; } }

/* ---------- Cancello: sito riservato ---------- */
/* Mentre controlla chi sta entrando, la pagina resta nascosta (al massimo qualche secondo). */
html.in-verifica body { visibility: hidden; animation: rivela 0s linear 6s forwards; }
@keyframes rivela { to { visibility: visible; } }
.cancello .cant-titolo { font-size: clamp(46px, 7.4vw, 96px); }
.cancello .cant-titolo .ev { padding: 0 0.08em; }
.cancello-accesso { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; max-width: 520px; }
.cancello-accesso p { margin: 0; flex-basis: 100%; font-size: 17px; line-height: 1.5; color: var(--testo); }
.cancello-mano { font-size: 26px; color: var(--muted); transform: rotate(-3deg); }
.cancello-errore { color: var(--rosso); font-weight: 600; }
