:root { color-scheme: light dark; --fondo: #faf9fc; --carta: #fff; --testo: #1d1b20; --tenue: #56515e; --accento: #4a2c82; --su: #fff; --bordo: #767080; --errore: #a1121d; --ok: #1d6b3a; }
@media (prefers-color-scheme: dark) { :root { --fondo: #141218; --carta: #1f1c25; --testo: #f1eef5; --tenue: #c4bdcf; --accento: #c9b3f5; --su: #1d1b20; --bordo: #948d9f; --errore: #ffb3ab; --ok: #8fdba6; } footer img { filter: none !important; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); color: var(--testo); font: 1.125rem/1.5 system-ui, sans-serif; padding-bottom: 6rem; overflow-wrap: anywhere; }
main, footer { max-width: 34rem; margin: 0 auto; padding: 1rem; }
main:focus { outline: none; }
h1 { font-size: 2rem; line-height: 1.2; margin: .5rem 0; }
h2 { font-size: 1.35rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1.3rem; margin: 0; }
.scheda .titolo { font-size: 1.3rem; margin: 0; }
a { color: var(--accento); }
#salta { position: absolute; left: -999rem; }
#salta:focus { left: 1rem; top: 1rem; background: var(--carta); padding: .5rem; z-index: 2; }
#errore:empty, #stato:empty { margin: 0; }
#errore:not(:empty), #stato:not(:empty) { border: 2px solid; border-radius: .5rem; padding: .75rem; }
#errore:not(:empty) { color: var(--errore); }
#errore:not(:empty)::before { content: "⚠ "; }
label { display: block; margin: 1rem 0 .25rem; font-weight: 600; }
label.riga { display: flex; gap: .75rem; align-items: center; min-height: 2.75rem; font-weight: 400; margin: .25rem 0; }
input[type=checkbox] { width: 1.5rem; height: 1.5rem; flex: none; accent-color: var(--accento); }
input:not([type=checkbox]), select, textarea { width: 100%; font: inherit; min-height: 3rem; padding: .5rem .75rem; border: 2px solid var(--bordo); border-radius: .5rem; background: var(--carta); color: var(--testo); }
fieldset { border: 2px solid var(--bordo); border-radius: .5rem; margin-top: 1rem; }
button, .bottone { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .5rem 1.25rem; font: inherit; font-weight: 600; border: 2px solid var(--accento); border-radius: .75rem; background: var(--accento); color: var(--su); text-decoration: none; cursor: pointer; margin: .75rem .5rem 0 0; }
.secondario { background: transparent; color: var(--accento); }
.pericolo { background: transparent; color: var(--errore); border-color: var(--errore); margin-top: 2rem; }
button:disabled { opacity: .6; cursor: default; }
form > button { width: 100%; margin-top: 1.5rem; }
:focus-visible { outline: 3px solid var(--accento); outline-offset: 3px; }
.aiuto, .quando { color: var(--tenue); margin: .25rem 0; }
.nota { border-left: 4px solid var(--accento); padding-left: .75rem; }
.grande { font-size: 1.35rem; }
.passi li { margin-bottom: .5rem; }
.azioni .bottone { width: 100%; }
.elenco { list-style: none; padding: 0; margin: 0; }
.scheda { background: var(--carta); border: 1px solid var(--bordo); border-radius: 1rem; padding: 1rem; margin-bottom: 1rem; }
.scheda .fatto { width: 100%; min-height: 3.5rem; font-size: 1.25rem; }
.scheda.done .titolo, .scheda.skipped .titolo { color: var(--tenue); }
.esito { color: var(--ok); font-weight: 600; margin: .5rem 0 0; }
.skipped .esito { color: var(--tenue); }
.testo-nota { white-space: pre-wrap; margin: .5rem 0 0; }
summary { cursor: pointer; min-height: 2.75rem; display: flex; align-items: center; gap: .5rem; font-weight: 600; margin-top: .5rem; }
summary::before { content: "▸"; }
details[open] > summary::before { content: "▾"; }
details .secondario { width: 100%; margin-right: 0; }
nav { position: fixed; inset: auto 0 0; display: flex; background: var(--carta); border-top: 1px solid var(--bordo); padding-bottom: env(safe-area-inset-bottom); }
nav[hidden] { display: none; }
nav a { flex: 1 1 auto; min-width: 0; min-height: 3.5rem; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .75rem; padding: .25rem .125rem; color: var(--testo); text-decoration: none; border-top: 4px solid transparent; }
nav a[aria-current=page] { border-top-color: var(--accento); color: var(--accento); font-weight: 700; }
footer { text-align: center; font-size: .9rem; }
footer a { display: inline-flex; flex-direction: column; align-items: center; gap: .25rem; }
footer img { filter: invert(1); height: auto; }
[hidden] { display: none !important; }
