/* Grassroots Awards - SGS Toscana. Stesso stile dei portali CRT (blu LND #001689). */
:root {
  --blu: #001689;
  --blu-scuro: #000f5e;
  --blu-tenue: #eef1fa;
  --blu-bordo: #c9d1ee;
  --testo: #18202e;
  --testo-2: #5b6576;
  --bordo: #dfe3ea;
  --sfondo: #f5f6f8;
  --verde: #12703f;
  --verde-tenue: #eaf5ef;
  --ambra: #9a5b00;
  --ambra-tenue: #fdf4e3;
  --rosso: #b3261e;
  --rosso-tenue: #fcecea;
  --raggio: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--testo);
  background: var(--sfondo);
}
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.25; color: var(--testo); font-weight: 650; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
p { margin: 0 0 .75em; }
a { color: var(--blu); }
.nascosto { display: none !important; }
.muto { color: var(--testo-2); font-size: .9rem; }
.piccolo-testo { font-size: .85rem; }
.solo-lettori { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Intestazione ---------- */
.testata { background: #fff; border-bottom: 3px solid var(--blu); }
.testata .dentro { max-width: 1180px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.testata.stretta .dentro { max-width: 760px; }
.testata .logo { height: 46px; width: auto; display: block; }
.testata .titolo-portale { padding-left: 18px; border-left: 1px solid var(--bordo); }
.testata .titolo-portale strong { display: block; font-size: 1.02rem; color: var(--blu); font-weight: 650; }
.testata .titolo-portale span { display: block; font-size: .82rem; color: var(--testo-2); }
.testata .destra { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--testo-2); flex-wrap: wrap; justify-content: flex-end; }
.testata select { width: auto; max-width: 300px; padding: 7px 10px; font-size: .88rem; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 20px 56px; }
main.stretto { max-width: 760px; }

/* ---------- Schede ---------- */
.scheda { background: #fff; border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 24px; margin-bottom: 16px; }
.scheda > h2:first-child, .scheda > h3:first-child { margin-top: 0; }
.scheda .sottotitolo { color: var(--testo-2); margin-top: -.2em; }
.griglia { display: grid; gap: 16px; }
.griglia.numeri { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.griglia.due { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* Testata dell'assemblea */
.etichetta-alta { font-size: .76rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--blu); }
/* Convocazione: fascia blu con il titolo, dati con icone, ordine del giorno, stato degli accrediti */
.scheda.assemblea { padding: 0; overflow: hidden; border-color: var(--blu-bordo); box-shadow: 0 1px 2px rgba(0, 22, 137, .06), 0 8px 24px rgba(0, 22, 137, .06); }
.assemblea-testa { background: linear-gradient(135deg, var(--blu) 0%, #0a2aa8 100%); color: #fff; padding: 22px 26px 20px; }
.assemblea-testa .etichetta-alta { color: rgba(255, 255, 255, .78); }
.assemblea .assemblea-testa h1 { color: #fff; margin: 6px 0 0; font-size: 1.55rem; }
.assemblea-corpo { padding: 20px 26px 22px; }
.assemblea .info { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; margin: 0 0 18px; padding: 0; list-style: none; }
.assemblea .info li { display: flex; gap: 10px; align-items: flex-start; }
.assemblea .info svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--blu); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.assemblea .info li span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--testo-2); }
.assemblea .info li strong { font-weight: 600; line-height: 1.35; }
.odg { border-top: 1px solid var(--bordo); padding-top: 14px; margin-bottom: 16px; }
.odg span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--testo-2); margin-bottom: 4px; }
.odg p { margin: 0; }
.assemblea-corpo .avviso { margin-bottom: 0; }
/* Regolamento dell'accredito in evidenza */
.scheda.regolamento { border-left: 4px solid var(--blu); background: #fff; }
.regolamento-testa { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.regolamento-testa h2 { margin: 4px 0 2px; font-size: 1.25rem; }
.regolamento-testa .muto { margin: 0; }
.regolamento-testa button { flex: none; }
.regole-sezioni { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.regole-sezione { background: var(--blu-tenue); border: 1px solid var(--blu-bordo); border-radius: 8px; padding: 14px 16px; }
.regole-sezione h3 { display: flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--blu-scuro); margin: 0 0 8px; }
.regole-sezione h3 .n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blu); color: #fff; font-size: .75rem; font-weight: 700; }
.regole-sezione ul { margin: 0; padding-left: 18px; }
.regole-sezione li { font-size: .9rem; margin-bottom: 6px; line-height: 1.45; }
.regole-sezione li:last-child { margin-bottom: 0; }
code.password { font-family: Consolas, "Courier New", monospace; font-size: 1.05rem; letter-spacing: .08em; background: var(--blu-tenue); padding: 3px 8px; border-radius: 5px; }
.nota-accesso { margin: 12px 0 0; font-size: .85rem; color: var(--testo-2); }
@media (max-width: 680px) {
  .regole-sezioni { grid-template-columns: 1fr; }
  .assemblea-testa { padding: 18px 18px 16px; }
  .assemblea-corpo { padding: 16px 18px 18px; }
  .assemblea .assemblea-testa h1 { font-size: 1.3rem; }
}

/* Passi del percorso */
.passi { display: flex; gap: 0; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: passo; }
.passi li { flex: 1; position: relative; padding: 0 8px 0 0; font-size: .86rem; color: var(--testo-2); counter-increment: passo; }
.passi li::before { content: counter(passo); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--bordo); background: #fff; font-weight: 700; font-size: .82rem; color: var(--testo-2); }
.passi li.fatto::before { content: "✓"; border-color: var(--blu); background: var(--blu); color: #fff; }
.passi li.attivo { color: var(--testo); font-weight: 600; }
.passi li.attivo::before { border-color: var(--blu); color: var(--blu); }

/* ---------- Moduli ---------- */
label { display: block; margin: 16px 0 6px; font-size: .9rem; font-weight: 600; color: var(--testo); }
.aiuto { margin: -2px 0 8px; font-size: .86rem; color: var(--testo-2); }
input[type=text], input[type=tel], input[type=url], input[type=email], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=number], input[type=file], select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem; color: var(--testo); background: #fff;
  border: 1px solid #c3cad6; border-radius: 8px;
}
input[type=file] { padding: 8px; font-size: .9rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, .bottone:focus-visible { outline: 3px solid #b8c3ef; outline-offset: 1px; border-color: var(--blu); }
textarea { min-height: 80px; resize: vertical; }
.riga { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.riga > * { flex: 1 1 200px; }
.riga > .fisso { flex: 0 0 auto; }
.spunta { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.spunta input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.sezione-modulo { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--bordo); }
.sezione-modulo:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.sezione-modulo > h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.sezione-modulo > h3 .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blu); color: #fff; font-size: .82rem; }

/* ---------- Pulsanti ---------- */
button, .bottone {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font: inherit; font-size: .95rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  color: var(--blu); background: #fff; border: 1px solid var(--blu-bordo); border-radius: 8px; cursor: pointer;
}
button:hover, .bottone:hover { background: var(--blu-tenue); }
.primario { color: #fff !important; background: var(--blu) !important; border-color: var(--blu) !important; }
.primario:hover { background: var(--blu-scuro) !important; }
.conferma { color: #fff !important; background: var(--verde) !important; border-color: var(--verde) !important; }
.conferma:hover { filter: brightness(.92); }
.pericolo { color: var(--rosso) !important; border-color: #ecbcb8 !important; background: #fff !important; }
.pericolo:hover { background: var(--rosso-tenue) !important; }
.discreto { border-color: transparent; background: transparent; }
.piccolo { padding: 6px 12px; font-size: .85rem; }
.grande { padding: 13px 24px; font-size: 1.02rem; }
button:disabled { opacity: .55; cursor: not-allowed; }
.azioni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Messaggi e stati ---------- */
.avviso { margin: 12px 0; padding: 12px 16px; border-radius: 8px; border-left: 4px solid; font-size: .95rem; }
.avviso.info { background: var(--blu-tenue); border-color: var(--blu); }
.avviso.ok { background: var(--verde-tenue); border-color: var(--verde); }
.avviso.att { background: var(--ambra-tenue); border-color: #d99a2b; }
.avviso.err { background: var(--rosso-tenue); border-color: var(--rosso); }
.avviso strong { font-weight: 650; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; background: #eceff3; color: var(--testo-2); }
.tag.blu { background: var(--blu-tenue); color: var(--blu); }
.tag.verde { background: var(--verde-tenue); color: var(--verde); }
.tag.ambra { background: var(--ambra-tenue); color: var(--ambra); }
.tag.rosso { background: var(--rosso-tenue); color: var(--rosso); }

/* Dati in griglia */
.dati { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 24px; margin: 12px 0; }
.dati span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--testo-2); }
.dati strong { font-weight: 600; }

/* Regolamento */
details.regole summary { cursor: pointer; font-weight: 600; color: var(--blu); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.regole summary::-webkit-details-marker { display: none; }
details.regole summary::after { content: "Mostra"; font-size: .85rem; font-weight: 500; color: var(--testo-2); }
details.regole[open] summary::after { content: "Nascondi"; }
details.regole ol { margin: 14px 0 0; padding-left: 22px; }
details.regole li { margin-bottom: 8px; }

/* Scelte (modalità) */
.scelte { display: grid; gap: 10px; margin-top: 10px; }
.scelta { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1px solid var(--bordo); border-radius: 8px; font-weight: 400; cursor: pointer; background: #fff; }
.scelta input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blu); flex: none; }
.scelta strong { display: block; font-weight: 600; }
.scelta span span { color: var(--testo-2); font-size: .9rem; }
.scelta:hover { border-color: var(--blu-bordo); }
.scelta:has(input:checked) { border-color: var(--blu); box-shadow: inset 0 0 0 1px var(--blu); background: var(--blu-tenue); }
.scelta:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.elenco-passi { margin: 8px 0; padding-left: 20px; }
.elenco-passi li { margin-bottom: 4px; }
.scheda-delegata { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--blu-bordo); border-radius: 8px; background: #fff; }
.scheda-delegata .nome { font-weight: 650; font-size: 1.02rem; }
.scheda-delegata dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: .92rem; }
.scheda-delegata dt { color: var(--testo-2); }
.scheda-delegata dd { margin: 0; font-weight: 600; }
.campi-extra { margin-top: 6px; padding: 4px 16px 16px; border-left: 3px solid var(--blu-bordo); }

/* Ricerca con suggerimenti */
.suggerimenti { margin-top: 4px; border: 1px solid var(--bordo); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.suggerimenti:empty { display: none; }
.suggerimenti button { display: block; width: 100%; padding: 11px 14px; text-align: left; white-space: normal; font-weight: 500; color: var(--testo); border: 0; border-bottom: 1px solid #eef0f3; border-radius: 0; }
.suggerimenti button:last-child { border-bottom: 0; }
.suggerimenti button span { color: var(--testo-2); font-weight: 400; font-size: .88rem; }

/* Firma e timbro */
.firma { position: relative; border: 1px dashed #9aa6bd; border-radius: 8px; background: #fff; }
.firma canvas { display: block; width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.firma .suggerimento { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .82rem; color: #9aa6bd; pointer-events: none; }
.anteprima { display: block; max-width: 220px; max-height: 140px; margin-top: 10px; padding: 6px; border: 1px solid var(--bordo); border-radius: 8px; background: #fff; }
.velo { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 16, 32, .7); }
.velo .finestra { width: min(720px, 100%); max-height: 100%; overflow: auto; padding: 20px; border-radius: 12px; background: #fff; }
.velo .area { max-height: 60vh; }
.velo .area img { display: block; max-width: 100%; }

/* Il proprio accredito */
.riepilogo { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0 0; }
.riepilogo dt { color: var(--testo-2); font-size: .9rem; }
.riepilogo dd { margin: 0; font-weight: 600; }
.storico { margin: 0; padding: 0; list-style: none; }
.storico li { padding: 10px 0; border-bottom: 1px solid #eef0f3; font-size: .92rem; }
.storico li:last-child { border-bottom: 0; }
details.storico-box { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--bordo); }
details.storico-box summary { cursor: pointer; font-weight: 600; color: var(--blu); }
/* Lettura del QR con la fotocamera del telefono */
.scanner { margin-top: 14px; }
.scanner .inquadratura { position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; background: #000; border-radius: 12px; overflow: hidden; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner .mirino { position: absolute; inset: 12% 24%; border: 3px solid rgba(255, 255, 255, .9); border-radius: 12px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); }
.scanner.letto .mirino { border-color: #22c55e; }
.scanner p { margin: 10px 0; }

@media (max-width: 560px) { .riepilogo { grid-template-columns: 1fr; gap: 2px; } .riepilogo dd { margin-bottom: 8px; } }

/* Codice di accesso */
.codice { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; max-width: 260px; font-variant-numeric: tabular-nums; }

/* ---------- Area riservata ---------- */
.schede { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 22px; border-bottom: 1px solid var(--bordo); }
.schede button { margin-bottom: -1px; padding: 11px 16px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--testo-2); font-weight: 600; }
.schede button:hover { background: transparent; color: var(--blu); }
.schede button.attiva { color: var(--blu); border-bottom-color: var(--blu); }
.schede .conta { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--ambra); color: #fff; font-size: .72rem; line-height: 20px; }

.numero { padding: 18px; border: 1px solid var(--bordo); border-radius: var(--raggio); background: #fff; }
.numero .t { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--testo-2); }
.numero .v { margin: 4px 0 2px; font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--testo); font-variant-numeric: tabular-nums; }
.numero .d { font-size: .84rem; color: var(--testo-2); }
.numero.evidenza { border-color: var(--blu); background: var(--blu); }
.numero.evidenza .t, .numero.evidenza .d { color: #c9d2f5; }
.numero.evidenza .v { color: #fff; }

.tabella { overflow-x: auto; border: 1px solid var(--bordo); border-radius: var(--raggio); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { padding: 10px 12px; text-align: left; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--testo-2); background: #f8f9fb; border-bottom: 1px solid var(--bordo); }
td { padding: 10px 12px; border-bottom: 1px solid #eef0f3; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfd; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }

.carta { margin-bottom: 12px; padding: 18px 20px; border: 1px solid var(--bordo); border-left: 4px solid var(--blu-bordo); border-radius: var(--raggio); background: #fff; }
.carta.c-verde { border-left-color: var(--verde); }
.carta.c-ambra { border-left-color: #d99a2b; }
.carta.c-rosso { border-left-color: var(--rosso); }
.carta .intestazione { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.carta .nome { font-size: 1.08rem; font-weight: 650; }
.immagini { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.immagini figure { margin: 0; }
.immagini img { display: block; max-width: 240px; max-height: 120px; padding: 4px; border: 1px solid var(--bordo); border-radius: 6px; background: #fff; }
.immagini figcaption { margin-top: 4px; font-size: .78rem; color: var(--testo-2); }
.cerca-grande { padding: 14px 16px !important; font-size: 1.25rem !important; }

/* Intestazione delle schede dell'area riservata */
.intestazione-scheda { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.intestazione-scheda h2 { margin: 0; font-size: 1.35rem; }
.intestazione-scheda p { margin: 4px 0 0; }

/* Filtri a pulsante con conteggio */
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.filtri button { padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--testo-2); background: #fff; border: 1px solid var(--bordo); }
.filtri button .c { display: inline-block; min-width: 22px; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #eceff3; font-size: .78rem; line-height: 20px; text-align: center; }
.filtri button.attivo { color: #fff; background: var(--blu); border-color: var(--blu); }
.filtri button.attivo .c { background: rgba(255, 255, 255, .22); color: #fff; }
.barra-ricerca { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.barra-ricerca input[type=text] { flex: 1 1 260px; }
.barra-ricerca select { flex: 0 0 auto; width: auto; }

/* Accredito da verificare */
.verifica-corpo { display: grid; grid-template-columns: 1fr auto; gap: 18px; margin-top: 12px; }
.controlli { margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #f8f9fb; list-style: none; }
.controlli li { display: flex; gap: 10px; align-items: baseline; padding: 3px 0; font-size: .92rem; }
.controlli li::before { flex: none; width: 18px; text-align: center; font-weight: 700; }
.controlli li.sistema::before { content: "✓"; color: var(--verde); }
.controlli li.occhio::before { content: "□"; color: var(--blu); }
.controlli li.sistema { color: var(--testo-2); }
.controlli .titolo-controlli { display: block; margin-bottom: 4px; font-size: .75rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--testo-2); }
.azioni-carta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.azioni-carta .spinta { margin-left: auto; }
@media (max-width: 760px) { .verifica-corpo { grid-template-columns: 1fr; } }

/* Finestre (dialog) */
dialog.finestra { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(10, 16, 32, .3); color: var(--testo); }
dialog.finestra::backdrop { background: rgba(10, 16, 32, .55); }
dialog.finestra form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); margin: 0; }
dialog.finestra .testa { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--bordo); }
dialog.finestra .testa h2 { margin: 0; font-size: 1.15rem; }
dialog.finestra .corpo { padding: 6px 22px 18px; overflow: auto; }
dialog.finestra .piede-finestra { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--bordo); background: #f8f9fb; border-radius: 0 0 12px 12px; }
dialog.finestra fieldset { margin: 14px 0 0; padding: 0; border: 0; }
dialog.finestra legend { padding: 0; margin-bottom: 2px; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--blu); }
.chiudi-x { padding: 4px 10px; font-size: 1.2rem; line-height: 1; border-color: transparent; color: var(--testo-2); }

/* Percorso dell'assemblea */
.percorso { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--bordo); }
.percorso li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eef0f3; }
.percorso .segno { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bordo); font-size: .8rem; font-weight: 700; color: var(--testo-2); background: #fff; }
.percorso li.fatto .segno { border-color: var(--verde); background: var(--verde); color: #fff; }
.percorso li.ora .segno { border-color: var(--blu); color: var(--blu); }
.percorso .passo-nome { font-weight: 600; }
.percorso .passo-info { display: block; font-size: .87rem; color: var(--testo-2); font-weight: 400; }

/* Pagina di accesso operatori */
.accesso-operatori { max-width: 440px; margin: 48px auto; }
.accesso-operatori .logo-grande { display: block; height: 120px; margin: 0 auto 18px; }

.piede { padding: 24px 20px 32px; text-align: center; font-size: .82rem; color: var(--testo-2); }
.piede a { color: var(--testo-2); }

@media (max-width: 680px) {
  body { font-size: 15px; }
  .testata .dentro { padding: 10px 14px; gap: 12px; }
  .testata .logo { height: 36px; }
  .testata .titolo-portale span { display: none; }
  main { padding: 18px 14px 40px; }
  .scheda { padding: 18px; }
  h1 { font-size: 1.35rem; }
  .passi li { font-size: .78rem; }
  .passi li::before { width: 22px; height: 22px; margin-right: 5px; }
}
@media print {
  .testata .destra, .schede, .azioni, button { display: none !important; }
  body { background: #fff; }
  .scheda, .tabella { border: 0; }
}

.centrato { text-align: center; }
.largo { width: 100%; }
.spinta { margin-left: auto; }
.allegati { list-style: none; margin: 0 0 10px; padding: 0; }
.allegati li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.allegati li:last-child { border-bottom: 0; }
.allegati li .spinta { margin-left: auto; }
.estensione { display: inline-block; min-width: 44px; padding: 2px 6px; border-radius: 4px; font-size: .72rem; font-weight: 700; text-align: center; color: #fff; background: #6b7280; }
.estensione.e-pdf { background: #b3261e; }
.estensione.e-doc, .estensione.e-docx { background: #1f5bb5; }
.estensione.e-xls, .estensione.e-xlsx { background: #12703f; }
.trascina { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 2px dashed #c4cad6; border-radius: 8px; background: #fafbfd; }
.trascina.sopra { border-color: var(--blu); background: var(--blu-tenue); }
.trascina.in-corso { opacity: .6; pointer-events: none; }
.trascina label.bottone { margin: 0; cursor: pointer; }
.griglia.due { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.griglia.due { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
dialog.finestra .griglia.due { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ======================================================================
   Grassroots Awards
   ====================================================================== */
.spazio { margin-top: 16px; }
.titolo-gruppo { margin-top: 18px; color: var(--blu); }
.scelta span span { display: block; margin-top: 2px; }
.griglia-spunte { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 6px 16px; }
.griglia-spunte .spunta, .riga-altro .spunta { margin: 4px 0; }
.riga-altro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.riga-altro input[type=text] { flex: 1 1 220px; width: auto; }
.riga.stretta { gap: 8px; }
.riga.stretta > * { flex: 1 1 120px; }
.contatore { margin: 6px 0 0; font-size: .85rem; color: var(--testo-2); text-align: right; }
.contatore.oltre { color: var(--rosso); font-weight: 650; }
.campo-errato { border-color: var(--rosso) !important; box-shadow: 0 0 0 3px var(--rosso-tenue); }
.allegati progress { width: 120px; height: 8px; }
.estensione.e-ppt, .estensione.e-pptx, .estensione.e-pps, .estensione.e-ppsx, .estensione.e-odp { background: #c4501b; }
.estensione.e-mp4, .estensione.e-mov, .estensione.e-avi, .estensione.e-m4v, .estensione.e-webm { background: #6d28d9; }
.estensione.e-jpg, .estensione.e-jpeg, .estensione.e-png, .estensione.e-heic, .estensione.e-webp { background: #0e7490; }
.riepilogo dd { overflow-wrap: anywhere; }
.riepilogo dd.testo-lungo, #dRighe dd:last-child { font-weight: 400; white-space: pre-wrap; }
tr.cliccabile { cursor: pointer; }
tr.cliccabile:focus-visible td { outline: 2px solid var(--blu-bordo); }
.spenta td { opacity: .6; }
.testata .destra a { font-weight: 600; }
.spinta-destra { margin-right: auto; }
dialog.finestra.larga { width: min(860px, calc(100vw - 32px)); }
.azioni-riga { white-space: nowrap; text-align: right; }
.piede-finestra .bottone { text-decoration: none; }
@media print {
  .testata, .piede, .azioni, .aiuto, #msg { display: none !important; }
  main { padding: 0; }
}
input.solo-lettori { padding: 0 !important; border: 0 !important; width: 1px !important; }
.trascina { position: relative; overflow: hidden; }
.testata .logo { height: 80px; margin: -6px 0; }
.accesso-operatori .logo-grande { height: 140px; }
@media (max-width: 680px) { .testata .logo { height: 48px; } }
.consultazione .solo-admin { display: none !important; }
.scelte-categorie { display: grid; gap: 2px 14px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 6px; padding: 8px 12px; border: 1px solid var(--bordo); border-radius: 8px; max-height: 260px; overflow: auto; }
.scelte-categorie .spunta { margin: 6px 0; font-size: .9rem; }
#chiSono { font-weight: 650; color: var(--testo); }
