/* DLschematics rev2.0 - Manuale per il sito
   Copyright (c) 2026 Di Lupo Sistemi di Matteo Di Lupo. Tutti i diritti riservati. */
:root {
  --blu: #1e6fd9; --blu-scuro: #17497f; --blu-chiaro: #e9f1fc;
  --testo: #1f2733; --tenue: #566172; --bordo: #d7dee8; --fondo: #f6f8fb;
  --verde: #2e7d32; --verde-chiaro: #eaf5eb; --arancio: #b9520d; --arancio-chiaro: #fdf1e7;
  --viola: #6a4bc4; --viola-chiaro: #f1edfb;
  --lato: 300px; --alto: 54px;
  /* Colore della parte del manuale: ogni blocco lo cambia */
  --c: var(--blu); --c-scuro: var(--blu-scuro); --c-chiaro: var(--blu-chiaro);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.65 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; color: var(--testo); background: #fff; }
a { color: var(--blu); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blu); outline-offset: 2px; }
.salta { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 50; }
.salta:focus { left: 8px; top: 8px; }

/* Colori delle parti */
.b-inizio   { --c: #1e6fd9; --c-scuro: #17497f; --c-chiaro: #e9f1fc; }
.b-schema   { --c: #0f8a7e; --c-scuro: #0b5e57; --c-chiaro: #e3f4f2; }
.b-quadro   { --c: #d2601a; --c-scuro: #8f3d0c; --c-chiaro: #fdf0e6; }
.b-libreria { --c: #6a4bc4; --c-scuro: #46308a; --c-chiaro: #f1edfb; }
.b-stampa   { --c: #c2416b; --c-scuro: #8a2648; --c-chiaro: #fbecf1; }
.b-rif      { --c: #4a6283; --c-scuro: #2f425c; --c-chiaro: #edf1f6; }

/* Barra in alto, solo sul telefono */
.testata { display: none; }

/* Indice laterale */
.indice { position: fixed; inset: 0 auto 0 0; width: var(--lato); display: flex; flex-direction: column;
          background: var(--fondo); border-right: 1px solid var(--bordo); z-index: 30; }
.indice-testa { padding: 16px 16px 10px; border-bottom: 1px solid var(--bordo); background: linear-gradient(180deg, #fff, var(--fondo)); }
.marchio { display: flex; gap: 10px; align-items: center; color: var(--blu-scuro); font-weight: 700; font-size: 16px; line-height: 1.2; }
.marchio:hover { text-decoration: none; }
.marchio img { width: 38px; height: auto; display: block; }
.marchio small { display: block; font-weight: 400; color: var(--tenue); font-size: 12.5px; }
.cerca { position: relative; margin-top: 12px; }
.cerca input { width: 100%; font: inherit; font-size: 14.5px; padding: 7px 30px 7px 10px; border: 1px solid #aeb9c9; border-radius: 8px; background: #fff; color: var(--testo); }
.cerca input::-webkit-search-cancel-button { display: none; }
.cerca button { position: absolute; right: 3px; top: 3px; width: 28px; height: 28px; border: 0; background: none; color: var(--tenue); font-size: 18px; line-height: 1; cursor: pointer; display: none; }
.cerca.piena button { display: block; }
.esito { font-size: 12.5px; color: var(--tenue); margin: 6px 2px 0; min-height: 0; }
.voci, .risultati { flex: 1; overflow-y: auto; padding: 8px 10px 40px; font-size: 14px; overscroll-behavior: contain; }
.risultati { display: none; }
.cercando .voci { display: none; }
.cercando .risultati { display: block; }
.parte { margin: 14px 8px 3px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tenue); }
.voci ul { list-style: none; margin: 0; padding: 0; }
.voci a { display: block; padding: 4px 8px; border-radius: 6px; color: var(--testo); line-height: 1.3; }
.voci a:hover { background: var(--blu-chiaro); text-decoration: none; }
.voci a.qui { background: var(--blu); color: #fff; }
.voci a .n { display: inline-block; min-width: 20px; color: var(--tenue); margin-right: 5px; font-weight: 600; }
.voci a.qui .n { color: #dbe8fb; }
.voci ul ul { margin: 1px 0 4px 16px; border-left: 2px solid var(--bordo); font-size: 13.5px; }
.voci ul ul a { padding: 3px 8px; }
.voci ul ul a.qui { background: var(--blu-chiaro); color: var(--blu-scuro); font-weight: 600; }
.js .voci ul ul { display: none; }
.js .voci li.aperto > ul { display: block; }
.risultati a { display: block; padding: 8px; border-radius: 6px; color: var(--testo); border-bottom: 1px solid var(--bordo); }
.risultati a:hover, .risultati a.primo { background: var(--blu-chiaro); text-decoration: none; }
.risultati b { display: block; color: var(--blu-scuro); line-height: 1.3; }
.risultati small { display: block; color: var(--tenue); font-size: 12.5px; }
.risultati span { display: block; font-size: 13px; line-height: 1.4; margin-top: 2px; }
mark { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0 1px; }

/* Pagina */
main { margin-left: var(--lato); padding: 0 48px 80px; max-width: calc(var(--lato) + 960px); }
.scarica { margin: 18px 0 0; text-align: right; }
.scarica a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--blu-chiaro); color: var(--blu-scuro); font-weight: 600; font-size: 14px; }
.scarica a::before { content: "\2193  "; }

/* Copertina del sito (nel PDF c'è quella dello script) */
#inizio { position: relative; overflow: hidden; margin-top: 14px; padding: 40px 40px 34px; border-radius: 18px; color: #fff;
          background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.18) 0 120px, transparent 121px),
                      linear-gradient(125deg, #17497f 0%, #1e6fd9 48%, #0f8a7e 100%); }
#inizio .marca { color: #cfe3ff; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
#inizio h1 { font-size: 40px; line-height: 1.12; margin: 8px 0 12px; color: #fff; }
#inizio > p { font-size: 18px; color: #e6f0ff; margin: 0; max-width: 640px; }
#inizio .eroe { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
#inizio .eroe img { display: block; width: 100%; height: auto; border-radius: 12px; border: 3px solid rgba(255,255,255,.75); box-shadow: 0 10px 30px rgba(5, 20, 50, .35); }
.cosa { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 26px; }
.cosa a { display: block; background: rgba(255,255,255,.96); border-radius: 12px; padding: 12px 14px 12px; font-size: 14px; color: var(--testo); border-top: 4px solid var(--c); box-shadow: 0 4px 14px rgba(5, 20, 50, .18); transition: transform .15s; }
.cosa a:hover { text-decoration: none; transform: translateY(-2px); }
.cosa b { display: block; color: var(--c-scuro); font-size: 15.5px; }

/* Percorso veloce a schede con immagine */
.flusso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0 26px; counter-reset: tappa; }
.flusso a { position: relative; display: flex; flex-direction: column; border: 1px solid var(--bordo); border-radius: 14px; overflow: hidden; background: #fff; color: var(--testo); box-shadow: 0 3px 12px rgba(20, 40, 80, .08); transition: transform .15s, box-shadow .15s; }
.flusso a:hover { text-decoration: none; transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 40, 80, .16); }
.flusso img { display: block; width: 100%; height: 130px; object-fit: cover; border-bottom: 4px solid var(--c); }
.flusso span { display: block; padding: 10px 14px 12px; font-size: 14px; line-height: 1.45; }
.flusso b { display: block; color: var(--c-scuro); font-size: 16px; margin-bottom: 2px; }
.flusso a::before { counter-increment: tappa; content: counter(tappa); position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; border-radius: 50%;
                    background: var(--c); color: #fff; font-weight: 700; text-align: center; line-height: 30px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

/* Parti e capitoli */
.fascia { display: flex; align-items: center; gap: 12px; margin: 70px 0 -34px; color: var(--c); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.fascia::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--c); transform: rotate(45deg); }
.fascia::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--c), transparent); }
h2 { position: relative; font-size: 28px; line-height: 1.2; color: var(--c-scuro); margin: 60px 0 12px; padding: 18px 80px 18px 18px;
     border-radius: 14px; border-left: 7px solid var(--c); background: linear-gradient(100deg, var(--c-chiaro) 0%, var(--c-chiaro) 45%, #fff 100%); }
.fascia + h2 { margin-top: 44px; }
h2 .num { display: inline-block; min-width: 44px; height: 44px; padding: 0 8px; margin-right: 14px; border-radius: 12px; background: var(--c); color: #fff;
          font-size: 23px; line-height: 44px; text-align: center; vertical-align: baseline; box-shadow: 0 3px 8px rgba(20, 40, 80, .25); }
h2::after { content: ""; position: absolute; right: 20px; top: 50%; width: 46px; height: 46px; margin-top: -23px; background: var(--c); opacity: .35;
            -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.intro { font-size: 17.5px; color: var(--tenue); margin-top: 0; }
h3 { font-size: 20px; line-height: 1.3; margin: 34px 0 8px; padding-left: 12px; border-left: 4px solid var(--c); color: var(--c-scuro); }
h3.no-toc { font-size: 17px; margin-top: 22px; }
#come-leggere { border-left-color: var(--blu); color: var(--blu-scuro); }
h2:target, h3:target, .lampo { animation: lampo 1.6s ease-out; }
@keyframes lampo { from { background: #ffe58a; } to { background: transparent; } }
h2:target, h2.lampo { animation-name: lampo2; }
@keyframes lampo2 { from { box-shadow: 0 0 0 6px #ffe58a; } to { box-shadow: 0 0 0 0 transparent; } }

/* Icone dei capitoli (disegni SVG nel CSS, nessun file esterno) */
h2 { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='18' rx='2'/%3E%3C/svg%3E"); }
h2[id="avvio"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M10 8l6 4-6 4z'/%3E%3C/svg%3E"); }
h2[id="finestra"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M3 9h18M8 9v11M17 9v11'/%3E%3C/svg%3E"); }
h2[id="primo-progetto"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 21V4M5 4h12l-2.5 4L17 12H5'/%3E%3C/svg%3E"); }
h2[id="progetto"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
h2[id="schema"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 14h5l6-6M15 14h7'/%3E%3Ccircle cx='7' cy='14' r='1.6'/%3E%3Ccircle cx='15' cy='14' r='1.6'/%3E%3C/svg%3E"); }
h2[id="fili"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6v6h16v6'/%3E%3Ccircle cx='4' cy='5' r='2'/%3E%3Ccircle cx='20' cy='19' r='2'/%3E%3C/svg%3E"); }
h2[id="pagine"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7h12l5 5-5 5H3z'/%3E%3C/svg%3E"); }
h2[id="ubicazioni"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-6.2 7-11a7 7 0 0 0-14 0c0 4.8 7 11 7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
h2[id="morsetti"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='5' height='16' rx='1'/%3E%3Crect x='9.5' y='4' width='5' height='16' rx='1'/%3E%3Crect x='16' y='4' width='5' height='16' rx='1'/%3E%3C/svg%3E"); }
h2[id="connettori"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0zM12 18v3'/%3E%3C/svg%3E"); }
h2[id="cavi"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20c0-9 16-7 16-16'/%3E%3Cpath d='M7 20c0-7 14-5 14-13' opacity='.6'/%3E%3C/svg%3E"); }
h2[id="layout"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='1.5'/%3E%3Cpath d='M3 8h18M3 16h18M7 11h4v2H7zM14 11h3v2h-3z'/%3E%3C/svg%3E"); }
h2[id="3d"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M12 12l8-4.5M12 12L4 7.5M12 12v9'/%3E%3C/svg%3E"); }
h2[id="cablaggio"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M20 4L8.1 15.9M14.5 14.5L20 20M8.1 8.1L12 12'/%3E%3C/svg%3E"); }
h2[id="libreria"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5a2 2 0 0 1 2-2h13v14H6a2 2 0 0 0-2 2 2 2 0 0 0 2 2h13'/%3E%3C/svg%3E"); }
h2[id="stampa"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6M6 18H4v-7h16v7h-2'/%3E%3Crect x='6' y='14' width='12' height='7'/%3E%3C/svg%3E"); }
h2[id="distinta"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h10M10 12h10M10 18h10M3 6l1.5 1.5L7 5M3 12l1.5 1.5L7 11M3 18l1.5 1.5L7 17'/%3E%3C/svg%3E"); }
h2[id="liste"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='1.5'/%3E%3Cpath d='M3 10h18M3 15h18M9 4v16'/%3E%3C/svg%3E"); }
h2[id="assistente"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2 6 6 2-6 2-2 6-2-6-6-2 6-2z'/%3E%3C/svg%3E"); }
h2[id="impostazioni"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.2'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9L7 7M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1'/%3E%3C/svg%3E"); }
h2[id="campi"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4C5 4 6 10 3 12c3 2 2 8 5 8M16 4c3 0 2 6 5 8-3 2-2 8-5 8'/%3E%3C/svg%3E"); }
h2[id="tasti"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 10h.01M10 10h.01M14 10h.01M18 10h.01M7 14h10'/%3E%3C/svg%3E"); }
h2[id="faq"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.7M12 17h.01'/%3E%3C/svg%3E"); }
h2[id="problemi"] { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5M12 18h.01'/%3E%3C/svg%3E"); }

/* In breve: il riassunto all'inizio di ogni capitolo */
.breve { margin: 6px 0 22px; padding: 12px 18px 12px; border-radius: 12px; background: #fff; border: 2px dashed var(--c); }
.breve > b:first-child { display: inline-block; margin-bottom: 4px; padding: 1px 10px; border-radius: 999px; background: var(--c); color: #fff; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.breve ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 22px; }
.breve li { position: relative; padding-left: 24px; font-size: 15px; }
.breve li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 3px solid var(--c); border-bottom: 3px solid var(--c); transform: rotate(-45deg); }

/* Figure */
figure { margin: 20px 0 28px; padding: 8px; background: #fff; border: 1px solid var(--bordo); border-radius: 14px; box-shadow: 0 4px 18px rgba(20, 40, 80, .09); }
figure a { display: block; }
figure img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
figure.piccola, figure.media { width: fit-content; max-width: 100%; }
figure.piccola img { max-width: min(520px, 100%); }
figure.media img { max-width: min(760px, 100%); }
figcaption { font-size: 14px; color: var(--tenue); margin: 8px 4px 2px; padding-left: 10px; border-left: 3px solid var(--c); }
figcaption > b:first-child { color: var(--c-scuro); }
.coppia { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.coppia figure { margin: 10px 0 18px; }

/* Passi numerati */
ol.passi { list-style: none; padding: 0; counter-reset: passo; margin: 14px 0 18px; }
ol.passi > li { position: relative; padding: 3px 0 14px 50px; counter-increment: passo; }
ol.passi > li::before { content: counter(passo); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
                        background: var(--c); color: #fff; font-weight: 700; text-align: center; line-height: 34px; font-size: 16px;
                        box-shadow: 0 0 0 4px var(--c-chiaro); }
ol.passi > li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 2px; width: 2px; background: var(--c-chiaro); }

/* Riquadri */
.nota, .consiglio, .attenzione { position: relative; padding: 12px 16px 12px 56px; border-radius: 12px; margin: 18px 0; border: 1px solid; }
.nota { border-color: #c5d9f5; background: var(--blu-chiaro); }
.consiglio { border-color: #c4e2c6; background: var(--verde-chiaro); }
.attenzione { border-color: #f3cfb2; background: var(--arancio-chiaro); }
.nota::before, .consiglio::before, .attenzione::before { content: ""; position: absolute; left: 14px; top: 13px; width: 28px; height: 28px; border-radius: 50%;
     background-position: center; background-repeat: no-repeat; background-size: 18px; }
.nota::before { background-color: var(--blu); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 11v7M12 6.5h.01'/%3E%3C/svg%3E"); }
.consiglio::before { background-color: var(--verde); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.5 10.9c.6.5 1 1.2 1 2.1h5c0-.9.4-1.6 1-2.1A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); }
.attenzione::before { background-color: var(--arancio); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v8M12 18.5h.01'/%3E%3C/svg%3E"); }
.nota > b:first-child, .consiglio > b:first-child, .attenzione > b:first-child { display: block; margin-bottom: 2px; }
.nota > b:first-child { color: var(--blu-scuro); }
.consiglio > b:first-child { color: #1d5e21; }
.attenzione > b:first-child { color: #8f3d0c; }

kbd { display: inline-block; font: 600 13px/1 "Segoe UI", system-ui, sans-serif; padding: 4px 7px 3px; min-width: 22px; text-align: center; border: 1px solid #aeb9c9; border-bottom-width: 3px; border-radius: 6px;
      background: linear-gradient(180deg, #fff, #eef2f7); color: var(--testo); white-space: nowrap; box-shadow: 0 1px 2px rgba(20, 40, 80, .12); }
.menu { font-weight: 600; color: var(--blu-scuro); background: var(--blu-chiaro); padding: 0 5px; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
code { font: 14px Consolas, "Courier New", monospace; background: var(--fondo); border: 1px solid var(--bordo); padding: 0 4px; border-radius: 4px; overflow-wrap: anywhere; }

.tabella { overflow-x: auto; margin: 14px 0 22px; border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--bordo); padding: 7px 10px; text-align: left; vertical-align: top; }
th { background: var(--c-chiaro); color: var(--c-scuro); font-weight: 600; }
tr:nth-child(even) td { background: #fafbfd; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.legenda { display: grid; grid-template-columns: 34px 1fr; gap: 8px 10px; margin: 10px 0 20px; }
.legenda > span { width: 28px; height: 28px; border-radius: 50%; background: var(--arancio); color: #fff; font-weight: 700; text-align: center; line-height: 28px; font-size: 14px; }
.legenda > span:nth-of-type(1) { background: #1e6fd9; }
.legenda > span:nth-of-type(2) { background: #0f8a7e; }
.legenda > span:nth-of-type(3) { background: #d2601a; }
.legenda > span:nth-of-type(4) { background: #6a4bc4; }
.legenda > span:nth-of-type(5) { background: #c2416b; }
.percorso { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.percorso a { display: block; border: 1px solid var(--bordo); border-radius: 10px; padding: 10px 14px; color: var(--testo); }
.percorso a:hover { border-color: var(--blu); background: var(--blu-chiaro); text-decoration: none; }
.percorso b { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: var(--blu); color: #fff; text-align: center; line-height: 24px; font-size: 13px; margin-right: 8px; }
.riquadri { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.riquadri > div { margin: 0; }
footer { margin-top: 60px; padding-top: 16px; border-top: 1px solid var(--bordo); color: var(--tenue); font-size: 13.5px; }
.su { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--blu); color: #fff; border: 0; font-size: 20px; cursor: pointer; box-shadow: 0 2px 8px rgba(20, 40, 80, .3); display: none; z-index: 20; }
.su.vedi { display: block; }
.velo { display: none; }

@media (max-width: 960px) {
  html { scroll-padding-top: calc(var(--alto) + 10px); }
  .testata { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 25; height: var(--alto); padding: 0 12px; background: #fff; border-bottom: 1px solid var(--bordo); }
  .testata button { width: 42px; height: 42px; border: 1px solid var(--bordo); border-radius: 6px; background: var(--fondo); font-size: 20px; color: var(--blu-scuro); cursor: pointer; }
  .testata span { font-weight: 700; color: var(--blu-scuro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .indice { width: min(340px, 88vw); transform: translateX(-102%); transition: transform .2s; }
  .indice.aperto { transform: none; box-shadow: 0 0 30px rgba(0, 0, 0, .3); }
  .velo.aperto { display: block; position: fixed; inset: 0; background: rgba(15, 25, 40, .45); z-index: 28; }
  .voci a, .risultati a { padding-top: 8px; padding-bottom: 8px; }
  main { margin-left: 0; padding: 0 16px 70px; max-width: none; overflow-wrap: break-word; }
  #inizio { padding: 24px 18px 22px; border-radius: 14px; }
  #inizio .eroe { grid-template-columns: 1fr; gap: 16px; }
  #inizio h1 { font-size: 30px; }
  #inizio > p, #inizio .eroe p { font-size: 16.5px; }
  .cosa { grid-template-columns: 1fr 1fr; }
  h2 { font-size: 22px; padding: 14px 54px 14px 12px; }
  h2 .num { min-width: 36px; height: 36px; line-height: 36px; font-size: 19px; margin-right: 10px; }
  h2::after { width: 32px; height: 32px; margin-top: -16px; right: 12px; }
  h3 { font-size: 18.5px; }
  .coppia { grid-template-columns: 1fr; }
  figure { padding: 5px; }
  table { font-size: 14px; }
  th, td { padding: 6px 8px; }
  .tabella table { min-width: 460px; }
  .tabella.stretta table { min-width: 0; }
}
@media (max-width: 960px) { .flusso { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cosa, .flusso { grid-template-columns: 1fr; } }
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .indice, .testata, .su, .velo, .salta, #inizio, .flusso { display: none !important; }
  main { margin: 0; padding: 0; max-width: none; }
  body { font-size: 10.5pt; }
  .fascia { break-before: page; break-after: avoid; margin: 0 0 4mm; font-size: 11pt; }
  h2 { break-before: page; break-after: avoid; margin-top: 0; }
  .fascia + h2 { break-before: avoid; margin-top: 0; }
  h3 { break-after: avoid; }
  figure, .nota, .consiglio, .attenzione, .breve, tr, ol.passi > li { break-inside: avoid; }
  figure { box-shadow: none; padding: 5px; }
  figure img { max-height: 140mm; width: auto; }
  .flusso a, .cosa a { box-shadow: none; }
  a { color: inherit; }
  .menu { background: none; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } h2:target, h3:target, .lampo { animation: none; } .indice { transition: none; } .cosa a, .flusso a { transition: none; } }
