/* =====================================================================
   ORIENTA – stile unico per tutte le pagine
   Colori: cambia i valori qui sotto per cambiare la tavolozza.
   ===================================================================== */
:root {
  --notte: #0e1233;
  --notte-2: #181d4a;
  --viola: #5b3fd9;
  --viola-chiaro: #e9e4ff;
  --turchese: #19c6b4;
  --turchese-scuro: #0b6b61;
  --corallo: #ff6f59;
  --corallo-scuro: #8a2a1b;
  --carta: #f6f5fc;
  --bianco: #ffffff;
  --inchiostro: #1b1d3a;
  --muted: #565a7a;
  --linea: #dedaf2;
  --ambra-bg: #fff0cf; --ambra: #7a4b00;
  --ok-bg: #d9f6f1;   --err-bg: #ffe3dd;
  --raggio: 18px; --raggio-s: 10px;
  --ombra: 0 1px 2px rgba(14,18,51,.06), 0 8px 24px rgba(14,18,51,.07);
  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--inchiostro); background: var(--carta); }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.4vw + .8rem, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--viola); text-underline-offset: 3px; }
a:hover { color: #3d27a8; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; max-width: 68ch; }
li { margin-bottom: .35em; }
:focus-visible { outline: 3px solid var(--corallo); outline-offset: 3px; border-radius: 6px; }
.salta { position: absolute; left: -999px; top: 0; background: var(--bianco); color: var(--inchiostro); padding: .75rem 1rem; z-index: 100; border-radius: 0 0 10px 0; }
.salta:focus { left: 0; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.stretto { width: min(780px, 100% - 2rem); margin-inline: auto; }
.nascosto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.piccolo { font-size: .92rem; }

/* ---------- intestazione ---------- */
.testata { background: var(--notte); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.08); }
.testata .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo small { display: none; font-weight: 500; font-size: .8rem; color: #b9bdea; letter-spacing: 0; }
@media (min-width: 1000px) { .logo small { display: inline; } }
.menu-btn { appearance: none; background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 12px; min-height: 44px; min-width: 44px; padding: 0 .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--notte-2); padding: .5rem 1rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav.aperto { display: block; }
.nav a { display: block; color: #e7e8ff; text-decoration: none; padding: .8rem .5rem; border-radius: 10px; font-weight: 600; min-height: 44px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.nav a.cta { background: var(--corallo); color: var(--notte); margin-top: .5rem; text-align: center; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex; position: static; background: transparent; padding: 0; border: 0; gap: .15rem; align-items: center; }
  .nav a { padding: .5rem .75rem; font-size: .98rem; }
  .nav a.cta { margin: 0 0 0 .5rem; padding: .55rem 1rem; }
}

/* ---------- bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: .7rem 1.5rem; border-radius: 14px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; text-align: center; }
.btn:active { transform: translateY(1px); }
.btn-corallo { background: var(--corallo); color: var(--notte); }
.btn-corallo:hover { background: #ff8470; color: var(--notte); }
.btn-viola { background: var(--viola); color: #fff; }
.btn-viola:hover { background: #4a30bd; color: #fff; }
.btn-linea { background: transparent; color: var(--viola); border-color: var(--viola); }
.btn-linea:hover { background: var(--viola-chiaro); color: #3d27a8; }
.btn-chiaro { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-chiaro:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-s { min-height: 44px; padding: .45rem 1rem; font-size: .95rem; border-radius: 12px; }
.btn svg { width: 1.15em; height: 1.15em; }
.riga-btn { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 600px at 85% -10%, rgba(91,63,217,.55), transparent 60%), radial-gradient(700px 500px at 0% 110%, rgba(25,198,180,.25), transparent 60%), var(--notte); color: #fff; padding: 3rem 0 3.5rem; overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } .hero { padding: 4.5rem 0; } }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lead { font-size: 1.2rem; color: #d6d8f5; max-width: 52ch; }
.hero .nota { color: #aab0e6; font-size: .95rem; margin-top: 1.25rem; }
.bussola { width: min(540px, 100%); margin-inline: auto; display: block; }
.bussola .anello { fill: none; stroke: rgba(255,255,255,.22); stroke-width: 1.5; }
.bussola .anello-2 { fill: none; stroke: var(--turchese); stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 3 7; }
.bussola .tacca { stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
.bussola .voce { cursor: pointer; }
.bussola .voce text { fill: #e7e8ff; font: 700 16px var(--font); text-anchor: middle; transition: fill .2s; }
.bussola .voce circle { fill: var(--notte-2); stroke: rgba(255,255,255,.3); stroke-width: 1.5; transition: fill .2s, stroke .2s; }
.bussola .voce:hover circle, .bussola .voce.attiva circle, .bussola .voce:focus-visible circle { fill: var(--viola); stroke: var(--turchese); }
.bussola .voce.attiva text { fill: #fff; }
.bussola .voce:focus-visible { outline: none; }
.bussola .voce:focus-visible circle { stroke: var(--corallo); stroke-width: 3; }
.ago { transform-box: view-box; transform-origin: 300px 300px; transition: transform .9s var(--ease); }
.ago.entra { animation: ago-entra 2.2s var(--ease) both; }
@keyframes ago-entra { from { transform: rotate(-210deg); } }
.didascalia { min-height: 5.2em; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: .8rem 1rem; margin: 1rem auto 0; max-width: 440px; color: #e7e8ff; font-size: .98rem; }
.didascalia strong { color: var(--turchese); }
@media (prefers-reduced-motion: reduce) { .ago.entra { animation: none; } .ago { transition: none; } html { scroll-behavior: auto; } }

/* ---------- sezioni ---------- */
.sezione { padding: 3.5rem 0; }
.sezione.scura { background: var(--notte); color: #e7e8ff; }
.sezione.scura h2, .sezione.scura h3 { color: #fff; }
.sezione.bianca { background: var(--bianco); }
.intro { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.griglia { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } }
.scheda { background: var(--bianco); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 1.4rem; box-shadow: var(--ombra); }
.tre-vie { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .tre-vie { grid-template-columns: repeat(3, 1fr); } }
.via { border-radius: var(--raggio); padding: 1.5rem; border: 1px solid var(--linea); background: var(--bianco); position: relative; overflow: hidden; }
.via::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c, var(--viola)); }
.via.liceo { --c: var(--viola); } .via.tecnico { --c: var(--turchese); } .via.professionale { --c: var(--corallo); }
.via ul { margin-bottom: 0; }
.passi { counter-reset: p; display: grid; gap: 1rem; padding: 0; list-style: none; max-width: none; }
@media (min-width: 800px) { .passi { grid-template-columns: repeat(3, 1fr); } }
.passi li { counter-increment: p; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--raggio); padding: 1.3rem; margin: 0; }
.passi li::before { content: counter(p); display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--turchese); color: var(--notte); font-weight: 800; margin-bottom: .6rem; }
.passi h3 { margin-bottom: .3em; }
.passi p { margin: 0; color: #d0d3f3; }

/* ---------- badge ---------- */
.badge { display: inline-flex; align-items: center; gap: .35em; font-size: .85rem; font-weight: 700; padding: .15rem .65rem; border-radius: 999px; background: var(--viola-chiaro); color: #3d27a8; line-height: 1.5; }
.badge.documentato, .badge.alta, .badge.verificata { background: var(--ok-bg); color: var(--turchese-scuro); }
.badge.datato, .badge.buona { background: var(--ambra-bg); color: var(--ambra); }
.badge.da_verificare, .badge.non_verificata { background: var(--err-bg); color: var(--corallo-scuro); }
.badge.esplora { background: var(--viola-chiaro); color: #3d27a8; }
.badge.tipo-liceo { background: var(--viola-chiaro); color: #3d27a8; }
.badge.tipo-tecnico { background: #d3f4f0; color: #0b5e55; }
.badge.tipo-professionale { background: #ffe0da; color: #8a2a1b; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .8rem; }

/* ---------- questionario ---------- */
.quiz-pagina { padding: 1.5rem 0 3rem; min-height: 70vh; }
.avanz { position: sticky; top: 64px; z-index: 20; background: var(--carta); padding: .75rem 0; }
.tappe { display: flex; gap: .35rem; margin: 0 0 .5rem; padding: 0; list-style: none; max-width: none; }
.tappe li { flex: 1; height: 8px; border-radius: 99px; background: var(--linea); margin: 0; overflow: hidden; position: relative; }
.tappe li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--viola), var(--turchese)); transform: scaleX(var(--riempi, 0)); transform-origin: left; transition: transform .45s var(--ease); }
.avanz-testo { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--muted); flex-wrap: wrap; }
.avanz-testo strong { color: var(--inchiostro); }
.domanda { background: var(--bianco); border: 1px solid var(--linea); border-radius: 24px; padding: 1.5rem 1.25rem; box-shadow: var(--ombra); margin-top: .75rem; }
@media (min-width: 700px) { .domanda { padding: 2.25rem; } }
.domanda.da-dx { animation: entra-dx .4s var(--ease); }
.domanda.da-sx { animation: entra-sx .4s var(--ease); }
@keyframes entra-dx { from { opacity: 0; transform: translateX(12px); } }
@keyframes entra-sx { from { opacity: 0; transform: translateX(-12px); } }
@media (prefers-reduced-motion: reduce) { .domanda.da-dx, .domanda.da-sx { animation: none; } .tappe li::after { transition: none; } }
.domanda h1 { font-size: clamp(1.45rem, 2.2vw + 1rem, 2.1rem); margin-bottom: .35em; }
.domanda h1:focus { outline: none; }
.aiuto { color: var(--muted); margin-bottom: 1.25rem; }
.opzioni { display: grid; gap: .65rem; margin: 0 0 1.5rem; padding: 0; list-style: none; max-width: none; }
@media (min-width: 640px) { .opzioni.due { grid-template-columns: repeat(2, 1fr); } .opzioni.tre { grid-template-columns: repeat(3, 1fr); } }
.opz { margin: 0; }
.opz input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opz label { display: flex; align-items: center; gap: .75rem; min-height: 56px; padding: .7rem 1rem; border: 2px solid var(--linea); border-radius: 14px; cursor: pointer; font-weight: 600; background: var(--bianco); transition: border-color .15s, background .15s, transform .15s var(--ease); line-height: 1.3; }
.opz label::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #aaa6d3; background: var(--bianco); transition: all .15s; }
.opz.multi label::before { border-radius: 6px; }
.opz label:hover { border-color: var(--viola); }
.opz input:checked + label { border-color: var(--viola); background: var(--viola-chiaro); }
.opz input:checked + label::before { background: var(--viola) 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.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/80% no-repeat; border-color: var(--viola); }
.opz input:focus-visible + label { outline: 3px solid var(--corallo); outline-offset: 2px; }
.opz input:disabled + label { opacity: .45; cursor: not-allowed; }
.contatore { font-size: .95rem; color: var(--muted); margin: -.5rem 0 1rem; }
.scala-box { margin: 1.5rem 0 2rem; }
.scala-box input[type=range], .riga-scorr input[type=range] { width: 100%; height: 44px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--viola-chiaro), #c9bff6); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--viola-chiaro), #c9bff6); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -11px; border-radius: 50%; background: var(--viola); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(14,18,51,.35); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--viola); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(14,18,51,.35); }
input[type=range].nontoccato::-webkit-slider-thumb { background: #a8a4cf; }
input[type=range].nontoccato::-moz-range-thumb { background: #a8a4cf; }
input[type=range]:focus-visible { outline: 3px solid var(--corallo); outline-offset: 4px; border-radius: 8px; }
.estremi { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--muted); }
.estremi span:last-child { text-align: right; }
.valore { font-weight: 700; min-height: 1.6em; margin-top: .4rem; color: var(--viola); }
.riga-scorr { padding: .9rem 0; border-top: 1px solid var(--linea); }
.riga-scorr:first-of-type { border-top: 0; }
.riga-scorr label { font-weight: 600; display: block; }
.riga-scorr .estremi { margin-top: -.25rem; }
.azioni { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; align-items: center; }
.azioni .btn-linea, .azioni .btn-viola { min-width: 130px; }
.intro-quiz ul { margin-bottom: 1.5rem; }
.fine-quiz { text-align: left; }

/* ---------- risultati ---------- */
.testa-pagina { background: var(--notte); color: #fff; padding: 2.5rem 0; }
.testa-pagina h1 { color: #fff; margin-bottom: .3em; font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem); }
.testa-pagina p { color: #d0d3f3; }
.profilo { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .profilo { grid-template-columns: 1.2fr 1fr; } }
.barre { list-style: none; padding: 0; margin: 0; max-width: none; }
.barre li { display: grid; grid-template-columns: minmax(9em, 14em) 1fr; gap: .75rem; align-items: center; margin-bottom: .6rem; font-size: .98rem; }
.barra { height: 12px; background: var(--viola-chiaro); border-radius: 99px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--v, 0)); background: linear-gradient(90deg, var(--viola), var(--turchese)); border-radius: 99px; }
.ind-card { background: var(--bianco); border: 1px solid var(--linea); border-radius: 22px; padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--ombra); break-inside: avoid; }
.ind-card header { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.ind-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.punteggio { text-align: right; min-width: 150px; }
.punteggio .num { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--viola); }
.punteggio .num small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.misura { height: 10px; border-radius: 99px; background: var(--viola-chiaro); margin: .5rem 0; overflow: hidden; }
.misura i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--v, 0)); background: var(--viola); }
.misura.alta i { background: var(--turchese); } .misura.buona i { background: var(--viola); } .misura.esplora i { background: #a79bec; }
.ind-cols { display: grid; gap: 1.25rem; margin-top: 1rem; }
@media (min-width: 760px) { .ind-cols { grid-template-columns: 1fr 1fr; } }
.ind-cols h4 { font-size: 1rem; margin-bottom: .4em; }
.ind-cols ul { margin-bottom: 0; }
.riquadro { border-radius: 14px; padding: 1rem 1.2rem; background: var(--carta); border: 1px solid var(--linea); margin-top: 1rem; }
.riquadro.avviso { background: var(--ambra-bg); border-color: #f0d89a; color: #4a3000; }
.riquadro.avviso a { color: #4a3000; }
.riquadro p:last-child, .riquadro ul:last-child { margin-bottom: 0; }
.scuola-ris { display: grid; gap: .5rem; background: var(--bianco); border: 1px solid var(--linea); border-left: 6px solid var(--viola); border-radius: 16px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; break-inside: avoid; }
.scuola-ris.cdc { border-left-color: var(--turchese); }
.scuola-ris h3 { margin: 0; font-size: 1.2rem; }
.scuola-ris p { margin: 0; }
.nota-fine { font-size: .95rem; color: var(--muted); }
details.dettagli { border: 1px solid var(--linea); border-radius: 14px; background: var(--bianco); padding: .25rem 1rem; margin-bottom: .75rem; }
details.dettagli summary { cursor: pointer; font-weight: 700; padding: .75rem 0; min-height: 44px; }
details.dettagli[open] { padding-bottom: 1rem; }
table.tab { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.tab th, table.tab td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
.vuoto { text-align: center; padding: 3rem 1rem; }
.vuoto p { margin-inline: auto; }

/* ---------- catalogo ---------- */
.filtri { display: grid; gap: .75rem; margin: 1.25rem 0; }
@media (min-width: 760px) { .filtri { grid-template-columns: 2fr 1fr 1fr; } }
.filtri label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .25rem; }
.filtri input, .filtri select { width: 100%; min-height: 48px; border: 2px solid var(--linea); border-radius: 12px; padding: .5rem .8rem; font: inherit; background: var(--bianco); color: var(--inchiostro); }
.schede { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .schede { grid-template-columns: repeat(2, 1fr); } }
.sc-card { background: var(--bianco); border: 1px solid var(--linea); border-radius: 20px; padding: 1.4rem; box-shadow: var(--ombra); display: flex; flex-direction: column; gap: .5rem; scroll-margin-top: 90px; }
.sc-card h3 { margin: 0; }
.sc-card ul { margin: 0 0 .5rem; }
.sc-card .confr { margin-top: auto; padding-top: .75rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: .5rem; border-bottom: 2px solid var(--linea); margin-top: 1.5rem; }
.tabs button { appearance: none; background: none; border: 0; font: inherit; font-weight: 700; padding: .8rem 1.1rem; min-height: 48px; cursor: pointer; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; border-radius: 10px 10px 0 0; }
.tabs button[aria-selected="true"] { color: var(--viola); border-bottom-color: var(--viola); }
.tipo-nota { margin: 1.25rem 0; }

/* ---------- confronto ---------- */
.scelta-conf { display: grid; gap: .5rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; max-width: none; }
@media (min-width: 700px) { .scelta-conf { grid-template-columns: repeat(2, 1fr); } }
.tab-scroll { overflow-x: auto; border: 1px solid var(--linea); border-radius: 16px; background: var(--bianco); -webkit-overflow-scrolling: touch; }
table.conf { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 560px; font-size: .95rem; }
table.conf th, table.conf td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--linea); vertical-align: top; min-width: 170px; }
table.conf thead th { background: var(--notte); color: #fff; position: sticky; top: 0; }
table.conf tbody th { background: var(--carta); font-weight: 700; position: sticky; left: 0; min-width: 120px; max-width: 120px; z-index: 1; }
table.conf thead th:first-child { left: 0; z-index: 2; min-width: 120px; }
table.conf ul { margin: 0; padding-left: 1.1em; }
.nd { color: var(--muted); font-style: italic; }

/* ---------- piè di pagina ---------- */
.piede { background: var(--notte); color: #c7caf0; padding: 2.5rem 0; font-size: .96rem; }
.piede a { color: #fff; }
.piede .cols { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .piede .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.piede h2 { font-size: 1rem; color: #fff; margin-bottom: .5em; }
.piede ul { list-style: none; padding: 0; }
.piede .avviso-fondo { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.5rem; padding-top: 1.25rem; max-width: none; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); background: var(--notte); color: #fff; padding: .8rem 1.2rem; border-radius: 12px; z-index: 200; box-shadow: var(--ombra); max-width: 90vw; }

/* ---------- stampa / salva PDF ---------- */
.solo-stampa { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; color: #000; }
  .testata, .piede, .no-stampa, .salta, .toast { display: none !important; }
  .solo-stampa { display: block; }
  .testa-pagina { background: none; color: #000; padding: 0 0 .5rem; border-bottom: 2px solid #000; }
  .testa-pagina h1, .testa-pagina p { color: #000; }
  .sezione { padding: 1rem 0; background: none !important; }
  .ind-card, .scuola-ris, .scheda, .riquadro { box-shadow: none; break-inside: avoid; }
  .barra i, .misura i { transform: scaleX(var(--v, 0)) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .badge { border: 1px solid #888; background: #fff !important; color: #000 !important; }
  details.dettagli { display: block; }
  details.dettagli > *:not(summary) { display: block; }
  a { color: #000; text-decoration: underline; }
  .tab-scroll { overflow: visible; border: 0; }
  table.conf thead th { background: #eee; color: #000; position: static; }
  table.conf tbody th { position: static; }
}

/* ---- Adattamenti per dispositivi (iPhone/iPad con notch, Android, tablet, computer) ---- */
html { -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; min-height: 100dvh; overflow-wrap: break-word; }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
.piede { padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
button, a, summary, label, select, input[type=range] { touch-action: manipulation; }
input, select, textarea { font-size: max(16px, 1rem); }  /* evita lo zoom automatico su iPhone/iPad */
@media (hover: none) { .opz:hover, .sc-card:hover { transform: none; } }
@media (min-width: 1400px) { html { font-size: 112.5%; } }
