/* Centrale App — Windows 11 / Fluent: Mica, layer, accento unico, chiaro e scuro */
:root {
  --acc: #0067c0; --acc-h: #1975c5; --acc-t: #fff; --acc-soft: rgba(0, 103, 192, .1);
  --mica: #eef0f3; --mica-2: #e6ebf1;
  --layer: rgba(255, 255, 255, .78); --layer-solid: #fff; --layer-alt: rgba(255, 255, 255, .5);
  --tx: #1b1b1b; --tx2: #5c5c5c; --tx3: #8a8a8a;
  --br: rgba(0, 0, 0, .075); --br-forte: rgba(0, 0, 0, .14); --br-campo: rgba(0, 0, 0, .45);
  --hover: rgba(0, 0, 0, .037); --press: rgba(0, 0, 0, .06);
  --verde: #0f7b0f; --verde-bg: #dff6dd; --giallo: #8a5300; --giallo-bg: #fff4ce; --rosso: #c42b1c; --rosso-bg: #fde7e9; --blu: #005fb8; --blu-bg: #e0eefa;
  --ombra: 0 2px 4px rgba(0, 0, 0, .04), 0 0 0 1px var(--br);
  --ombra-alta: 0 8px 16px rgba(0, 0, 0, .1), 0 0 0 1px var(--br);
  --r: 8px; --r-s: 4px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --font-d: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --acc: #4cc2ff; --acc-h: #62cbff; --acc-t: #002642; --acc-soft: rgba(76, 194, 255, .13);
    --mica: #1c1f24; --mica-2: #202020;
    --layer: rgba(45, 45, 45, .72); --layer-solid: #2c2c2c; --layer-alt: rgba(255, 255, 255, .03);
    --tx: #fff; --tx2: #cfcfcf; --tx3: #9d9d9d;
    --br: rgba(255, 255, 255, .075); --br-forte: rgba(255, 255, 255, .14); --br-campo: rgba(255, 255, 255, .55);
    --hover: rgba(255, 255, 255, .055); --press: rgba(255, 255, 255, .08);
    --verde: #6ccb5f; --verde-bg: rgba(108, 203, 95, .14); --giallo: #fce100; --giallo-bg: rgba(252, 225, 0, .12); --rosso: #ff99a4; --rosso-bg: rgba(255, 153, 164, .13); --blu: #4cc2ff; --blu-bg: rgba(76, 194, 255, .13);
    --ombra: 0 2px 4px rgba(0, 0, 0, .25), 0 0 0 1px var(--br);
    --ombra-alta: 0 8px 20px rgba(0, 0, 0, .4), 0 0 0 1px var(--br);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 14px/1.45 var(--font); color: var(--tx);
  background: radial-gradient(1200px 700px at 85% -10%, var(--acc-soft), transparent 60%), linear-gradient(160deg, var(--mica), var(--mica-2));
  background-attachment: fixed; min-height: 100vh; min-height: 100dvh;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
::selection { background: var(--acc); color: var(--acc-t); }
* { scrollbar-width: thin; scrollbar-color: var(--br-forte) transparent; }
a { color: var(--acc); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--tx); outline-offset: 2px; border-radius: var(--r-s); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); font-size: .92em; letter-spacing: .01em; }
.muto { color: var(--tx3); }
small { font-size: 12px; color: var(--tx2); font-weight: 400; }

/* ---------- guscio ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.nav { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 14px 8px; display: flex; flex-direction: column; gap: 2px; }
.marchio { display: flex; align-items: center; gap: 10px; padding: 6px 12px 18px; color: var(--tx); font: 600 15px var(--font-d); }
.marchio:hover { text-decoration: none; }
.voce { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: var(--r-s); color: var(--tx); transition: background .12s; }
.voce:hover { background: var(--hover); text-decoration: none; }
.voce:active { background: var(--press); }
.voce.attiva { background: var(--hover); font-weight: 600; }
.voce.attiva::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 3px; background: var(--acc); animation: pill .3s cubic-bezier(.16, 1, .3, 1); }
@keyframes pill { from { height: 0; margin-top: 0; } }
.voce .cont { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--acc); color: var(--acc-t); font-size: 11.5px; display: grid; place-items: center; }
.nav-fondo { margin-top: auto; }

.contenuto { padding: 24px 32px 32px 8px; min-width: 0; display: flex; flex-direction: column; gap: 16px; max-width: 1320px; }
.piede { margin-top: auto; padding-top: 24px; font-size: 12px; color: var(--tx3); }
.piede a { color: inherit; }

/* ---------- titolo pagina ---------- */
.ptitolo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 6px; }
.pt-testo { flex: 1; min-width: 220px; }
.ptitolo h1 { font: 600 28px/1.25 var(--font-d); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
.ptitolo p { margin: 3px 0 0; color: var(--tx2); }
.pt-azioni { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 5px 14px; border-radius: var(--r-s);
  font: inherit; color: var(--tx); background: var(--layer-solid); border: 1px solid var(--br-forte); border-bottom-color: color-mix(in srgb, var(--br-forte) 100%, rgba(0,0,0,.08));
  cursor: pointer; transition: background .12s, border-color .12s, transform .08s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: color-mix(in srgb, var(--layer-solid) 92%, var(--tx)); text-decoration: none; }
.btn:active { transform: translateY(.5px); color: var(--tx2); }
.btn .i { width: 16px; height: 16px; }
.btn.pri { background: var(--acc); color: var(--acc-t); border-color: transparent; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); font-weight: 600; }
.btn.pri:hover { background: var(--acc-h); }
.btn.peric { color: var(--rosso); }
.btn.peric:hover { background: var(--rosso-bg); }
.btn.sottile { background: transparent; border-color: transparent; }
.btn.sottile:hover { background: var(--hover); }
.btn.ico-solo { padding: 5px 8px; }
.btn.largo { width: 100%; min-height: 38px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- superfici ---------- */
.layer { background: var(--layer); -webkit-backdrop-filter: blur(30px) saturate(1.3); backdrop-filter: blur(30px) saturate(1.3);
  border-radius: var(--r); box-shadow: var(--ombra); padding: 18px 20px; min-width: 0; animation: entra .45s cubic-bezier(.16, 1, .3, 1) both; }
.layer.stretto { max-width: 720px; }
.layer.evidenza { box-shadow: 0 0 0 2px var(--acc), var(--ombra-alta); }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } }
.griglia-2 > .layer:nth-child(2) { animation-delay: .05s; }
.layer-tit { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.layer-tit h2, summary h2 { display: flex; align-items: center; gap: 10px; font: 600 16px/1.3 var(--font-d); margin: 0; }
.layer-tit h2 .i, summary h2 .i { color: var(--tx2); }
.layer-tit a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.layer-tit a .i { width: 14px; height: 14px; }
.griglia-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.nota { color: var(--tx2); margin: 0 0 12px; font-size: 13px; max-width: 75ch; }
.vuoto { color: var(--tx2); margin: 6px 0 12px; }
.grande-vuoto { padding: 24px 0 8px; } .grande-vuoto p { max-width: 60ch; }

details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--tx2); border-bottom: 1.5px solid var(--tx2); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; }
details[open] > summary::after { transform: rotate(-135deg); }
details[open] > summary { margin-bottom: 16px; }
.avanzate { margin-top: 12px; }
.avanzate > summary { font-size: 13px; color: var(--acc); justify-content: flex-start; gap: 8px; }
.avanzate[open] > summary { margin-bottom: 8px; }
.zona-peric summary h2 .i { color: var(--rosso); }

/* ---------- contatori ---------- */
.contatori { display: flex; flex-wrap: wrap; background: var(--layer); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-radius: var(--r); box-shadow: var(--ombra); animation: entra .45s cubic-bezier(.16, 1, .3, 1) both; overflow: hidden; }
.cnt { flex: 1 1 130px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--br); }
.cnt:first-child { border-left: 0; }
.cnt b { font: 600 30px/1.1 var(--font-d); letter-spacing: -.02em; }
.cnt span { color: var(--tx2); font-size: 13px; }
.cnt.grande { flex: 2 1 260px; background: linear-gradient(135deg, var(--acc-soft), transparent 70%); }
.cnt.grande b { font-size: 52px; color: var(--acc); letter-spacing: -.035em; }
.cnt.grande span { color: var(--tx); font-weight: 600; font-size: 14px; }
.contatori.piccoli .cnt { padding: 12px 18px; } .contatori.piccoli .cnt b { font-size: 24px; }

/* ---------- elenchi e tabelle ---------- */
.elenco { list-style: none; margin: 0 -8px; padding: 0; display: flex; flex-direction: column; }
.elenco li > a, .el-riga { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: var(--r-s); color: var(--tx); }
.elenco li > a:hover { background: var(--hover); text-decoration: none; }
.elenco li + li { border-top: 1px solid var(--br); }
.el-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.el-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elenco.largo .el-t b { white-space: normal; }
.tipo-ico { width: 34px; height: 34px; border-radius: var(--r); display: grid; place-items: center; background: var(--hover); color: var(--tx2); flex: none; }
.tipo-ico.t-bug { background: var(--rosso-bg); color: var(--rosso); }
.tipo-ico.t-funzione { background: var(--blu-bg); color: var(--blu); }

.tab-wrap { overflow-x: auto; margin: 0 -20px -18px; }
.tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tab th { text-align: left; font-weight: 600; font-size: 12px; color: var(--tx2); padding: 8px 12px; border-bottom: 1px solid var(--br); white-space: nowrap; }
.tab td { padding: 10px 12px; border-bottom: 1px solid var(--br); vertical-align: middle; white-space: nowrap; }
.tab th:first-child, .tab td:first-child { padding-left: 20px; }
.tab th:last-child, .tab td:last-child { padding-right: 20px; }
.tab tbody tr { cursor: pointer; transition: background .1s; }
.tab tbody tr:hover, .tab tr.sel { background: var(--hover); }
.tab tbody tr:last-child td { border-bottom: 0; }
.tab .n { text-align: right; }
.tab .dx { text-align: right; }
.forte { font-weight: 600; color: var(--tx); }
.sotto { display: block; }
.barra { display: inline-block; vertical-align: middle; width: 90px; height: 4px; border-radius: 2px; background: var(--br); margin-right: 10px; overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 2px; background: var(--acc); }
.tag { font-size: 11px; padding: 0 6px; border-radius: 3px; background: var(--hover); border: 1px solid var(--br); color: var(--tx2); }

.bdg { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.bdg::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bdg.verde { background: var(--verde-bg); color: var(--verde); }
.bdg.giallo { background: var(--giallo-bg); color: var(--giallo); }
.bdg.rosso { background: var(--rosso-bg); color: var(--rosso); }
.bdg.blu { background: var(--blu-bg); color: var(--blu); }
.bdg.neutro { background: var(--hover); color: var(--tx2); }

/* ---------- app griglia ---------- */
.app-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.app-tile { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--layer); box-shadow: var(--ombra); color: var(--tx); transition: background .12s, box-shadow .2s, transform .2s; flex-wrap: wrap; }
.app-tile:hover { text-decoration: none; box-shadow: var(--ombra-alta); transform: translateY(-1px); }
.mono-ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font: 600 20px var(--font-d); color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 62% 52%), hsl(calc(var(--h) + 35) 58% 38%)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 6px hsl(var(--h) 50% 30% / .3); flex: none; }
.at-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .at-t b { font-weight: 600; }
.at-n { text-align: right; display: flex; flex-direction: column; } .at-n b { font: 600 20px/1.1 var(--font-d); }
.app-tile .bdg { margin-left: 58px; }

/* ---------- filtri ---------- */
.barra-filtri { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.filtri { display: flex; gap: 4px; flex-wrap: wrap; }
.filtri a { padding: 5px 12px; border-radius: 999px; color: var(--tx); border: 1px solid var(--br-forte); background: var(--layer-alt); font-size: 13px; }
.filtri a:hover { background: var(--hover); text-decoration: none; }
.filtri a[aria-current] { background: var(--acc); color: var(--acc-t); border-color: transparent; font-weight: 600; }
.cerca { display: flex; gap: 8px; flex-wrap: wrap; }
.campo-cerca { position: relative; display: flex; align-items: center; }
.campo-cerca .i { position: absolute; left: 10px; width: 16px; color: var(--tx2); }
.campo-cerca input { padding-left: 34px; min-width: 220px; }

/* ---------- moduli ---------- */
.campi { display: flex; flex-direction: column; gap: 14px; }
.campi.colonne { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.campi .intero { grid-column: 1 / -1; }
.due { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 16px; }
label { display: block; font-weight: 600; font-size: 13px; }
label > input, label > select, label > textarea { display: block; margin-top: 6px; }
label small { display: inline; }
input, select, textarea { font: 14px/1.4 var(--font); color: var(--tx); background: var(--layer-solid); border: 1px solid var(--br-forte); border-bottom-color: var(--br-campo);
  border-radius: var(--r-s); padding: 6px 10px; min-height: 32px; width: 100%; font-weight: 400; transition: border-color .12s; }
input:hover, select:hover, textarea:hover { background: color-mix(in srgb, var(--layer-solid) 96%, var(--tx)); }
input:focus, select:focus, textarea:focus { outline: 0; border-bottom: 2px solid var(--acc); padding-bottom: 5px; }
input.mono { font-family: var(--mono); }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 6px; }
.chk { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.chk > input { margin: 0; }
.chk input, .opz input, .segmenti input { width: auto; min-height: 0; accent-color: var(--acc); }
.azioni-form { display: flex; gap: 12px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.azioni-form .chk { margin-right: auto; }
.in-linea { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.in-linea input:not([type=checkbox]) { width: auto; flex: 1 1 180px; }
.in-linea.grow, .grow { flex: 1 1 260px; }
.pulsantiera { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.riga-azioni { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--br); }

.scelta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scelta legend { grid-column: 1 / -1; }
.opz { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px; border-radius: var(--r); border: 1px solid var(--br-forte); background: var(--layer-alt); cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.opz:has(input:checked) { border-color: var(--acc); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc); }
.opz span { display: flex; flex-direction: column; gap: 2px; } .opz b { font-weight: 600; }
.opz input { margin-top: 3px; }

.segmenti { display: flex; padding: 3px; gap: 2px; border-radius: var(--r); background: var(--hover); border: 1px solid var(--br); flex-wrap: wrap; }
.segmenti label { flex: 1 1 auto; position: relative; font-weight: 400; }
.segmenti input { position: absolute; opacity: 0; pointer-events: none; }
.segmenti span { display: block; text-align: center; padding: 6px 12px; border-radius: 6px; cursor: pointer; color: var(--tx2); transition: background .15s, color .15s; white-space: nowrap; }
.segmenti span:hover { color: var(--tx); }
.segmenti input:checked + span { background: var(--layer-solid); color: var(--tx); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 1px var(--br); }
.segmenti input:focus-visible + span { outline: 2px solid var(--tx); outline-offset: 1px; }
.anteprima { margin: -4px 0 0; padding: 10px 14px; border-radius: var(--r); background: var(--acc-soft); color: var(--tx); }
.anteprima:empty { display: none; }

/* ---------- codice ---------- */
.codice { position: relative; display: flex; gap: 8px; align-items: flex-start; background: var(--hover); border: 1px solid var(--br); border-radius: var(--r-s); padding: 10px 10px 10px 12px; margin: 8px 0; }
.codice pre { margin: 0; flex: 1; font: 12.5px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }
.passi { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 90ch; }

/* ---------- licenza ---------- */
.biglietto { background: linear-gradient(150deg, var(--acc-soft), transparent 55%), var(--layer); }
.codice-grande { font-size: clamp(22px, 3.4vw, 32px); font-weight: 600; letter-spacing: .06em; margin: 4px 0 10px; user-select: all; overflow-wrap: anywhere; }
.bg-riga { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.grande-data { font: 600 24px var(--font-d); margin: 0 0 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- dati ---------- */
.dati { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; margin: 0; }
.dati div { min-width: 0; } .dati .intero { grid-column: 1 / -1; }
.dati dt { font-size: 12px; color: var(--tx2); }
.dati dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.piccolo { font-size: 12px; color: var(--tx2); }
.testo-bug { font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; max-width: 70ch; white-space: normal; }
.foto-bug { display: block; max-width: 100%; max-height: 420px; border-radius: var(--r); box-shadow: var(--ombra); margin-bottom: 16px; }

.registro { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.registro li { padding: 6px 0; border-top: 1px solid var(--br); display: flex; gap: 14px; }
.registro li:first-child { border-top: 0; }
.registro time { color: var(--tx3); flex: none; width: 110px; }

/* ---------- infobar (Fluent InfoBar) ---------- */
.infobar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r); background: var(--verde-bg); color: var(--tx); box-shadow: 0 0 0 1px var(--br); animation: entra .35s cubic-bezier(.16, 1, .3, 1); }
.infobar.err { background: var(--rosso-bg); } .infobar.avviso { background: var(--giallo-bg); } .infobar.info { background: var(--blu-bg); }
.infobar form { margin: 0; }

/* ---------- accesso ---------- */
body.login { display: grid; place-items: center; padding: 16px; }
.login-box { width: min(380px, 100%); background: var(--layer); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); border-radius: var(--r); box-shadow: var(--ombra-alta); padding: 32px 28px 22px; text-align: center; animation: entra .5s cubic-bezier(.16, 1, .3, 1); }
.login-box h1 { font: 600 24px var(--font-d); margin: 14px 0 4px; }
.login-box > p { color: var(--tx2); margin: 0 0 22px; }
.login-box .campi { text-align: left; }
.login-box small { display: block; margin-top: 18px; color: var(--tx3); }
.errore { color: var(--rosso); margin: 0; font-size: 13px; }

/* ---------- telefono ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; z-index: 50; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 4px 4px max(4px, env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--mica-2) 82%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid var(--br); }
  .marchio { display: none; }
  .nav-fondo { margin: 0; display: contents; }
  .voce { flex: 1; flex-direction: column; gap: 2px; padding: 6px 2px; font-size: 10.5px; text-align: center; min-width: 0; }
  .voce span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .voce .i { width: 22px; height: 22px; }
  .voce.attiva { background: transparent; color: var(--acc); }
  .voce.attiva::before { left: 50%; top: auto; bottom: 1px; width: 16px; height: 3px; margin: 0 0 0 -8px; }
  .voce .cont { position: absolute; top: 2px; left: 50%; margin-left: 6px; height: 16px; min-width: 16px; font-size: 10px; padding: 0 4px; }
  .contenuto { padding: 16px 16px calc(84px + env(safe-area-inset-bottom)); gap: 12px; }
  .griglia-2, .campi.colonne, .scelta { grid-template-columns: minmax(0, 1fr); }
  .ptitolo h1 { font-size: 24px; }
  .layer { padding: 16px; }
  .tab-wrap { margin: 0 -16px -16px; }
  .tab th:first-child, .tab td:first-child { padding-left: 16px; }
  .cnt { flex-basis: 45%; border-top: 1px solid var(--br); }
  .cnt.grande { flex-basis: 100%; border-top: 0; }
  .cnt.grande b { font-size: 44px; }
  .cnt:nth-child(2) { border-left: 0; }
  .contatori.piccoli .cnt:nth-child(2) { border-left: 1px solid var(--br); }
  .contatori.piccoli .cnt:nth-child(odd) { border-left: 0; }
  .contatori.piccoli .cnt:first-child, .contatori.piccoli .cnt:nth-child(2) { border-top: 0; }
  .app-griglia { grid-template-columns: minmax(0, 1fr); }
  .campo-cerca input { min-width: 0; }
  .cerca, .cerca > * { flex: 1 1 160px; }
  .registro time { width: 92px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* Web Platform: azioni sulla riga di un sito */
.azioni-sito { flex-wrap: nowrap; justify-content: flex-end; gap: 6px; white-space: nowrap; }
