/* ==========================================================================
   Pannello Alendra. Foglio di stile unico, scritto a mano, senza compilazione.
   Ordine: 1 valori di base (token) · 2 base · 3 struttura · 4 componenti · 5 pagine · 6 telefono.
   Vincoli del pannello: CSP con style-src 'self' (niente stili in linea), nessuno script,
   niente font o immagini da altri domini. Le forme degli stati sono disegnate con il CSS.
   ========================================================================== */

/* 1. VALORI DI BASE ------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Colori: nascono dal marchio. Blu #0B6BF0, nero/grigio scuro #101018, grigio del motto. */
  --blu:          #0B6BF0;   /* marchio: bottoni, focus, elementi attivi (bianco sopra: 4,8:1) */
  --blu-scuro:    #0858c4;   /* blu per testo e collegamenti (6,6:1 su bianco) e bottone al passaggio */
  --blu-piu-scuro:#0647a0;   /* bottone premuto */
  --blu-tenue:    #eaf2fe;   /* sfondo di ciò che è selezionato o da notare */
  --blu-linea:    #b7d3fb;

  --inchiostro:   #101018;   /* testo principale (18,9:1 su bianco) */
  --testo-2:      #3b4252;   /* testo secondario forte (10:1) */
  --testo-3:      #596172;   /* testi di aiuto e didascalie (6,2:1 su bianco, 5,7:1 su sfondo) */

  --sfondo:       #f4f6f9;
  --superficie:   #ffffff;
  --linea:        #d9dde4;   /* separatori e bordi di decorazione */
  --linea-campo:  #7f8797;   /* bordo dei campi e dei controlli: almeno 3:1 sullo sfondo */

  /* Colori di significato: usati solo per stati e messaggi, sempre insieme a forma e parole. */
  --ok:           #14703f;  --ok-sfondo:    #e6f5ec;  --ok-linea:    #9ed3b4;
  --attenzione:   #7a4b00;  --att-sfondo:   #fff3d6;  --att-linea:   #e6c171;
  --errore:       #a82020;  --err-sfondo:   #fdeceb;  --err-linea:   #ecaaa6;
  --neutro:       #3b4252;  --neu-sfondo:   #e9ecf1;  --neu-linea:   #c3c9d3;

  /* Scala tipografica (base 17px: leggibile senza sforzo) */
  --t-xs:  .8125rem;
  --t-sm:  .9375rem;
  --t-base:1.0625rem;
  --t-md:  1.1875rem;
  --t-lg:  1.4rem;
  --t-xl:  1.75rem;
  --t-2xl: 2.125rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scala delle spaziature (multipli di 4px) */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4rem;

  --raggio: 8px;
  --raggio-grande: 12px;
  --tocco: 2.75rem;           /* altezza minima di ciò che si tocca: 44px */
  --ombra: 0 1px 2px rgb(16 16 24 / .06);
  --colonna: 44rem;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font: 400 var(--t-base)/1.6 var(--font);
  color: var(--inchiostro); background: var(--sfondo);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--blu-scuro); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blu); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { color: var(--inchiostro); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
h1 { font-size: var(--t-xl); font-weight: 700; margin-bottom: var(--s-4); }
h2 { font-size: var(--t-lg); font-weight: 650; margin: var(--s-7) 0 var(--s-3); }
h3 { font-size: var(--t-md); font-weight: 650; }
p { margin: 0 0 var(--s-3); }
ul, ol { margin: 0 0 var(--s-3); padding-left: 1.25rem; }
li { margin: var(--s-2) 0; }
strong { font-weight: 650; }
code {
  font: .9em var(--font-mono); background: var(--neu-sfondo); color: var(--inchiostro);
  border-radius: 4px; padding: .1rem .35rem; overflow-wrap: anywhere;
}
.mut { color: var(--testo-3); font-size: var(--t-sm); }
.solo-lettori { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 3. STRUTTURA ------------------------------------------------------------- */
.salta {
  position: absolute; left: var(--s-4); top: -4rem; z-index: 10;
  background: var(--inchiostro); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--raggio);
}
.salta:focus { top: var(--s-3); }

.intestazione { background: var(--superficie); border-bottom: 1px solid var(--linea); }
.intestazione__in {
  max-width: 100rem; margin: 0 auto; padding: var(--s-3) var(--s-5);
  display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo nav esci";
  align-items: center; column-gap: var(--s-6);
}
.logo { grid-area: logo; display: inline-flex; min-height: var(--tocco); align-items: center; }
.logo img { display: block; width: 130px; height: 36px; }
.intestazione nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.intestazione nav a {
  display: inline-flex; align-items: center; min-height: var(--tocco); padding: 0 var(--s-3);
  color: var(--testo-2); text-decoration: none; font-weight: 500; border-radius: var(--raggio);
  border-bottom: 3px solid transparent; border-radius: 0;
}
.intestazione nav a:hover { color: var(--inchiostro); border-bottom-color: var(--linea-campo); }
.intestazione nav a[aria-current="page"] { color: var(--inchiostro); font-weight: 650; border-bottom-color: var(--blu); }
.esci { grid-area: esci; margin: 0; }

.ospite { display: flex; justify-content: center; padding: var(--s-6) var(--s-4) 0; }
.ospite img { display: block; width: 190px; height: auto; aspect-ratio: 470 / 130; }

main { margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-8); }
main:focus { outline: none; }
.pagina { max-width: 72rem; }
.largo  { max-width: 100rem; }
.colonna{ max-width: var(--colonna); }
.stretto{ max-width: 27rem; padding-top: var(--s-5); }
.colonna, .stretto { margin-inline: auto; }
.pagina, .largo { margin-inline: auto; }
.colonna h2:first-child, .carta > h2:first-child { margin-top: 0; }
.colonna-stretta { max-width: 30rem; }
.testata { margin-bottom: var(--s-5); }
.testata h1 { margin-bottom: var(--s-2); }
.testata p { color: var(--testo-2); margin: 0; }

/* 4. COMPONENTI ------------------------------------------------------------ */

/* Scheda */
.carta {
  background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--raggio-grande);
  padding: var(--s-5); margin: var(--s-4) 0; box-shadow: var(--ombra);
}
.carta > :last-child { margin-bottom: 0; }
.carta h2 { font-size: var(--t-md); margin: 0 0 var(--s-3); }
.carta--accesso { padding: var(--s-6) var(--s-5); }
.carta--accesso h1 { font-size: var(--t-lg); }

/* Bottoni */
button, .bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--tocco); padding: 0 var(--s-5); margin: 0;
  font: 600 var(--t-base)/1.2 var(--font); text-decoration: none; cursor: pointer;
  color: #fff; background: var(--blu); border: 2px solid var(--blu); border-radius: var(--raggio);
}
button:hover, .bottone:hover { background: var(--blu-scuro); border-color: var(--blu-scuro); }
button:active { background: var(--blu-piu-scuro); border-color: var(--blu-piu-scuro); }
button.secondario, .bottone--sec { color: var(--blu-scuro); background: var(--superficie); border-color: var(--linea-campo); font-weight: 600; }
button.secondario:hover, .bottone--sec:hover { color: var(--blu-scuro); background: var(--blu-tenue); border-color: var(--blu-scuro); }
button.pericolo { color: #fff; background: var(--errore); border-color: var(--errore); }
button.pericolo:hover { background: #8a1818; border-color: #8a1818; }
button.piccolo { min-height: 2.25rem; padding: 0 var(--s-3); font-size: var(--t-sm); }
.azioni { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.azioni form { margin: 0; }
.azioni--fine { justify-content: flex-start; }

/* Moduli */
.campo { margin-top: var(--s-5); }
.campo:first-child, .sezione-modulo > .campo:first-of-type { margin-top: 0; }
label, .etichetta { display: block; margin: 0 0 var(--s-1); font-weight: 600; color: var(--inchiostro); }
.aiuto { margin: 0 0 var(--s-2); font-size: var(--t-sm); color: var(--testo-3); line-height: 1.5; }
input:not([type=checkbox], [type=radio], [type=hidden]), select, textarea {
  display: block; width: 100%; min-height: 3rem; padding: var(--s-2) var(--s-3);
  font: inherit; color: var(--inchiostro); background: var(--superficie);
  border: 1.5px solid var(--linea-campo); border-radius: var(--raggio);
}
textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--testo-2) 50%), linear-gradient(135deg, var(--testo-2) 50%, transparent 50%);
  background-position: calc(100% - 1.3rem) 1.3rem, calc(100% - .95rem) 1.3rem; background-size: .35rem .35rem; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--testo-3); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--inchiostro); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--blu-linea); outline-offset: 0; border-color: var(--blu); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--errore); border-width: 2px; background: var(--err-sfondo);
}
/* Errore: parole + segno + colore. Il segno è un cerchio con il punto esclamativo. */
.errore {
  display: flex; gap: var(--s-2); align-items: flex-start; margin: var(--s-2) 0 0;
  font-size: var(--t-sm); font-weight: 600; color: var(--errore);
}
.errore::before {
  content: "!"; flex: none; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; margin-top: .1rem;
  border-radius: 50%; background: var(--errore); color: #fff; font-size: .8rem; font-weight: 800; line-height: 1;
}
.errore--pagina { padding: var(--s-3) var(--s-4); background: var(--err-sfondo); border: 1px solid var(--err-linea); border-radius: var(--raggio); margin: 0 0 var(--s-4); }

/* Scelte: caselle e opzioni grandi quanto un dito, selezionate ben visibili */
.scelte { min-width: 0; margin: var(--s-5) 0 0; padding: 0; border: 0; }
.scelte legend { padding: 0; margin-bottom: var(--s-1); font-weight: 600; }
.opzioni { display: grid; gap: var(--s-2); margin-top: var(--s-2); }
.opzioni--griglia { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.opzione {
  display: flex; gap: var(--s-3); align-items: center; margin: 0; padding: var(--s-2) var(--s-3);
  min-height: var(--tocco); font-weight: 400; cursor: pointer;
  background: var(--superficie); border: 1.5px solid var(--linea-campo); border-radius: var(--raggio);
}
.opzione:hover { border-color: var(--inchiostro); }
.opzione:has(input:checked) { background: var(--blu-tenue); border-color: var(--blu); box-shadow: inset 0 0 0 1px var(--blu); font-weight: 600; }
.opzione:has(input:focus-visible) { outline: 3px solid var(--blu); outline-offset: 2px; }
input[type=checkbox], input[type=radio] { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--blu); cursor: pointer; }
.consenso-scelta { display: flex; gap: var(--s-3); align-items: flex-start; margin-top: var(--s-4); padding: var(--s-3) var(--s-4); font-weight: 600;
  background: var(--superficie); border: 1.5px solid var(--linea-campo); border-radius: var(--raggio); cursor: pointer; }
.consenso-scelta input { margin-top: .2rem; }
.consenso-scelta:has(input:checked) { background: var(--blu-tenue); border-color: var(--blu); }

/* Sezioni di un modulo lungo */
.sezione-modulo { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--raggio-grande); padding: var(--s-5); margin: var(--s-4) 0; box-shadow: var(--ombra); }
.sezione-modulo > h2 { font-size: var(--t-md); margin: 0 0 var(--s-1); }
.sezione-modulo > .mut { margin-bottom: var(--s-4); }
.numero-sezione { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: var(--s-2);
  border-radius: 50%; background: var(--blu); color: #fff; font-size: var(--t-sm); font-weight: 700; vertical-align: .08em; }

/* Messaggi */
.avviso {
  display: flex; gap: var(--s-3); align-items: flex-start; margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4);
  color: var(--inchiostro); background: var(--superficie); border: 1px solid var(--linea); border-left-width: 5px; border-radius: var(--raggio);
}
.avviso > div, .avviso > span:not(.forma) { flex: 1; min-width: 0; }
.avviso p:last-child { margin-bottom: 0; }
.avviso .chiave { margin-top: var(--s-3); }

/* Toni: un solo punto di verità per colore e forma. Usati da badge, avvisi e stato dell'agente. */
.tono-ok      { --fg: var(--ok);          --bg: var(--ok-sfondo);  --bordo: var(--ok-linea); }
.tono-lavoro  { --fg: var(--blu-scuro);   --bg: var(--blu-tenue);  --bordo: var(--blu-linea); }
.tono-stop    { --fg: var(--neutro);      --bg: var(--neu-sfondo); --bordo: var(--neu-linea); }
.tono-neutro  { --fg: var(--testo-2);     --bg: var(--superficie); --bordo: var(--linea); }
.tono-warn    { --fg: var(--attenzione);  --bg: var(--att-sfondo); --bordo: var(--att-linea); }
.tono-bad     { --fg: var(--errore);      --bg: var(--err-sfondo); --bordo: var(--err-linea); }
.avviso[class*="tono-"] { background: var(--bg); border-color: var(--bordo); border-left-color: var(--fg); }

/* Le forme: pieno = attivo · anello = in corso · quadrato = fermo · triangolo = attenzione · rombo = errore · trattino = nessuno */
.forma { flex: none; display: inline-block; width: .8em; height: .8em; background: var(--fg, currentColor); color: var(--fg, currentColor); }
.tono-ok     .forma { border-radius: 50%; }
.tono-lavoro .forma { border-radius: 50%; background: transparent; border: .16em solid var(--fg); }
.tono-stop   .forma { border-radius: 2px; }
.tono-warn   .forma { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.tono-bad    .forma { transform: rotate(45deg) scale(.82); border-radius: 1px; }
.tono-neutro .forma { height: .16em; width: .8em; align-self: center; border-radius: 1px; }
.avviso .forma { width: 1.15rem; height: 1.15rem; margin-top: .3rem; }
.avviso.tono-neutro .forma { height: .2rem; margin-top: .85rem; }

/* Etichetta di stato (badge) */
.badge {
  display: inline-flex; align-items: center; gap: .45em; max-width: 100%;
  padding: .2rem .7rem .2rem .6rem; border-radius: 999px; white-space: nowrap;
  font-size: var(--t-sm); font-weight: 650; line-height: 1.4;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bordo);
}
.badge .forma { width: .7em; height: .7em; }
.badge.tono-neutro .forma { height: .14em; width: .7em; }
.badge-gruppo { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); align-items: center; }

/* Stato dell'agente: grande, con forma, titolo e spiegazione. Riconoscibile anche in bianco e nero. */
.stato-agente {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-4); align-items: start;
  margin: 0 0 var(--s-5); padding: var(--s-5);
  background: var(--bg); border: 1.5px solid var(--bordo); border-left: 8px solid var(--fg); border-radius: var(--raggio-grande);
}
.stato-agente .forma { width: 1.6rem; height: 1.6rem; margin-top: .25rem; }
.stato-agente.tono-neutro .forma { height: .25rem; margin-top: 1.05rem; }
.stato-agente__titolo { display: block; font-size: var(--t-lg); font-weight: 700; line-height: 1.25; color: var(--fg); }
.stato-agente__testo { margin: var(--s-1) 0 0; color: var(--inchiostro); }
.stato-agente__testo + .mut { margin: var(--s-2) 0 0; }

/* Tabelle: a colonne su schermo largo, a schede su schermo stretto (vedi sezione 6) */
.tabella { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--superficie);
  border: 1px solid var(--linea); border-radius: var(--raggio-grande); box-shadow: var(--ombra); font-size: var(--t-sm); line-height: 1.5; }
.tabella th, .tabella td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--linea); }
.tabella thead th { background: var(--sfondo); color: var(--testo-2); font-size: var(--t-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tabella thead th:first-child { border-top-left-radius: var(--raggio-grande); }
.tabella thead th:last-child  { border-top-right-radius: var(--raggio-grande); }
.tabella tbody tr:last-child td { border-bottom: 0; }
.tabella tbody tr:hover { background: #fafbfd; }
.tabella .vuoto { color: var(--testo-3); text-align: center; padding: var(--s-6) var(--s-4); }
.tabella .azione { text-align: right; white-space: nowrap; }
.tabella form { margin: 0; }
.dettaglio-errore { display: block; margin-top: var(--s-1); color: var(--testo-3); font-size: var(--t-xs); }

/* Elenchi di dati (etichetta e valore) */
.dati { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-6); margin: 0; }
.dati dt { color: var(--testo-3); font-size: var(--t-sm); padding-top: .1rem; }
.dati dd { margin: 0; overflow-wrap: anywhere; }
.carta .dati + .dati { margin-top: var(--s-4); }
.comandi { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-3) var(--s-5); margin: 0; align-items: baseline; }
.comandi dt { margin: 0; } .comandi dd { margin: 0; }

/* Liste di controllo e passi numerati */
.controllo { list-style: none; padding: 0; margin: 0; }
.controllo li { display: flex; gap: var(--s-3); align-items: flex-start; margin: 0; padding: var(--s-3) 0; border-top: 1px solid var(--linea); }
.controllo li:first-child { border-top: 0; padding-top: 0; }
.controllo .badge { flex: none; }
.passi { list-style: none; counter-reset: passo; padding: 0; margin: 0 0 var(--s-4); }
.passi li { counter-increment: passo; position: relative; margin: 0; padding: 0 0 var(--s-4) 2.75rem; }
.passi li::before {
  content: counter(passo); position: absolute; left: 0; top: -.05rem; display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  border-radius: 50%; background: var(--blu-tenue); color: var(--blu-scuro); border: 1.5px solid var(--blu-linea); font-weight: 700; font-size: var(--t-sm);
}
.passi li:not(:last-child)::after { content: ""; position: absolute; left: .93rem; top: 2rem; bottom: .15rem; width: 2px; background: var(--linea); }

/* Testo del consenso: va letto per intero, quindi è in evidenza */
.consenso { white-space: pre-line; margin: var(--s-3) 0 var(--s-4); padding: var(--s-4); background: var(--blu-tenue); border-left: 4px solid var(--blu); border-radius: 0 var(--raggio) var(--raggio) 0; }

/* Chiave e indirizzi che si copiano */
.chiave { font: 600 var(--t-md)/1.5 var(--font-mono); letter-spacing: .06em; padding: var(--s-3) var(--s-4); background: var(--superficie); color: var(--inchiostro);
  border: 1.5px dashed var(--linea-campo); border-radius: var(--raggio); word-break: break-all; user-select: all; }
.codice-uri { font: var(--t-xs)/1.5 var(--font-mono); word-break: break-all; color: var(--testo-3); }

/* Barra di avanzamento per disco e memoria (elemento progress: nessuno stile in linea) */
.misura { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-2) 0 var(--s-1); }
.misura progress { flex: 1; min-width: 0; height: .75rem; appearance: none; border: 1px solid var(--linea-campo); border-radius: 999px; background: var(--superficie); overflow: hidden; }
.misura progress::-webkit-progress-bar { background: var(--superficie); }
.misura progress::-webkit-progress-value { background: var(--blu); }
.misura progress::-moz-progress-bar { background: var(--blu); }
.misura strong { flex: none; min-width: 4.5rem; text-align: right; }
.misura--alta progress::-webkit-progress-value { background: var(--attenzione); }
.misura--alta progress::-moz-progress-bar { background: var(--attenzione); }
.riquadri { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-4); margin: var(--s-4) 0; }
.riquadri .carta { margin: 0; }
.riquadri h3 { font-size: var(--t-base); margin-bottom: var(--s-1); }

/* 5. PAGINE ---------------------------------------------------------------- */
.errore-http { text-align: center; }
.errore-http .codice-http { font-size: 4rem; font-weight: 700; line-height: 1; color: var(--blu); margin: 0 0 var(--s-3); }
.invito-form { margin-top: var(--s-5); }

/* 6. TELEFONO --------------------------------------------------------------- */
@media (max-width: 56rem) {
  .intestazione__in { grid-template-columns: 1fr auto; grid-template-areas: "logo esci" "nav nav"; padding: var(--s-2) var(--s-4); row-gap: 0; }
  .intestazione nav { margin: 0 calc(var(--s-2) * -1); border-top: 1px solid var(--linea); padding-top: var(--s-1); }
  .intestazione nav a { padding: 0 var(--s-3); }
}

@media (max-width: 40rem) {
  :root { --t-xl: 1.5rem; --t-lg: 1.25rem; }
  main { padding: var(--s-5) var(--s-4) var(--s-7); }
  .carta, .sezione-modulo { padding: var(--s-4); border-radius: var(--raggio); }
  .carta--accesso { padding: var(--s-5) var(--s-4); }
  .stato-agente { padding: var(--s-4); border-left-width: 6px; column-gap: var(--s-3); }
  .dati, .comandi { grid-template-columns: 1fr; gap: 0; }
  .dati dt, .comandi dt { margin-top: var(--s-3); }
  .dati dd + dt { margin-top: var(--s-3); }
  .opzioni--griglia { grid-template-columns: 1fr; }
  .azioni > button, .azioni > form, .azioni > form > button { width: 100%; }
  .ospite img { width: 160px; }
}

/* Tabelle che diventano schede: sotto 48rem, e sotto 80rem per la tabella larga delle istanze */
@media (max-width: 48rem) {
  .tabella--schede, .tabella--schede tbody, .tabella--schede tr, .tabella--schede td { display: block; width: 100%; }
  .tabella--schede { background: none; border: 0; box-shadow: none; }
  .tabella--schede thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabella--schede tbody tr { margin: 0 0 var(--s-4); padding: var(--s-2) var(--s-4); background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--raggio-grande); box-shadow: var(--ombra); }
  .tabella--schede td { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--linea); }
  .tabella--schede td:last-child { border-bottom: 0; }
  .tabella--schede td::before { content: attr(data-label); color: var(--testo-3); font-size: var(--t-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding-top: .2rem; }
  .tabella--schede td.vuoto { display: block; padding: var(--s-5) 0; }
  .tabella--schede td.vuoto::before { content: none; }
  .tabella--schede td.azione { text-align: left; grid-template-columns: 1fr; }
  .tabella--schede td.azione::before { content: none; }
  .tabella--schede td.azione button { width: 100%; }
}
@media (max-width: 80rem) {
  .tabella--larga, .tabella--larga tbody, .tabella--larga tr, .tabella--larga td { display: block; width: 100%; }
  .tabella--larga { background: none; border: 0; box-shadow: none; }
  .tabella--larga thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tabella--larga tbody tr { margin: 0 0 var(--s-4); padding: var(--s-2) var(--s-4); background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--raggio-grande); box-shadow: var(--ombra); }
  .tabella--larga td { display: grid; grid-template-columns: 10rem 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--linea); }
  .tabella--larga td:last-child { border-bottom: 0; }
  .tabella--larga td::before { content: attr(data-label); color: var(--testo-3); font-size: var(--t-xs); font-weight: 650; text-transform: uppercase; letter-spacing: .04em; padding-top: .2rem; }
  .tabella--larga td.vuoto { display: block; }
  .tabella--larga td.vuoto::before { content: none; }
}
@media (max-width: 30rem) {
  .tabella--schede td, .tabella--larga td { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print { .intestazione, .salta { display: none; } body { background: #fff; } }
