:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#152d35;background:#f4f5ef;line-height:1.55}
*{box-sizing:border-box}
body{margin:0}
main{width:min(100% - 32px,880px);margin:clamp(16px,4vw,48px) auto 64px}
header{padding:clamp(22px,5vw,48px);border-radius:20px;background:linear-gradient(120deg,#103542,#164f57);color:white;border-bottom:5px solid #dfae65}
h1,h2,p{margin:0}
h1{font:600 clamp(1.65rem,4.8vw,3.25rem)/1.12 Georgia,serif;letter-spacing:-.035em}
h1 span{color:#f1cc92}
header p{margin-top:16px;color:#e2efeb}
h2{font-size:1.4rem}
section,fieldset{margin:18px 0;padding:clamp(16px,4vw,32px);border:1px solid #d4ddd9;border-radius:16px;background:white;min-width:0;box-shadow:0 4px 16px #163d4210}
section>p{margin:4px 0 22px;color:#47616a}
.settings{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}
label,legend{font-weight:600}
select,input,button{font:inherit}
select,input[type=number]{border:1px solid #81979a;color:#193e46;background:white;border-radius:8px;padding:10px;min-height:46px}
select{width:100%;margin-top:6px}
button{min-height:46px;padding:11px 22px;border:0;border-radius:9px;color:white;background:#155761;font-weight:650;cursor:pointer}
button:hover{background:#10454e}
:focus-visible{outline:3px solid #2671a3;outline-offset:2px}
#quote label{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 0}
input[type=number]{width:5rem}
output{display:block;margin-top:14px;font-weight:700}
small{color:#47616a}
.quesito{overflow-wrap:anywhere}
.quesito p{margin:10px 0 16px;white-space:pre-line}
.opzione{display:block;margin:8px 0;padding:12px 14px;border:1px solid #d4dddc;border-radius:9px;font-weight:400}
.opzione:has(input){cursor:pointer}
.opzione:has(:checked){background:#e8f4ef;border-color:#2e7366}
input[type=radio]{accent-color:#16645c;margin:0 9px 0 0;width:17px;height:17px;vertical-align:middle}
.ok{color:#17603e}.err{color:#952e2b}
@media(max-width:620px){main{width:calc(100% - 20px)}.settings{grid-template-columns:1fr}button{width:100%}.quesito p{font-size:1.08rem}.opzione{padding:12px}}
#timer{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#103542;color:white;border-radius:10px;padding:9px 16px;margin-top:12px}#timer strong{font-variant-numeric:tabular-nums;font-size:1.25rem}#timer small{color:#ffe1b0}
nav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}a{color:#155761}.account{display:grid;gap:12px;max-width:28rem}.account label{display:grid;gap:4px}.account input{min-height:46px;border:1px solid #81979a;border-radius:8px;padding:10px;font:inherit;width:100%}
.opzione.corretta{background:#e5f5ea;border:2px solid #337948;color:#164e2b}
.opzione.errata{background:#ffebeb;border:2px solid #b64444;color:#812626}
.confronto{border-collapse:collapse;width:100%;font-size:clamp(.8rem,2vw,1rem)}.confronto th,.confronto td{text-align:right;padding:8px 3px;border-bottom:1px solid #d4ddd9}.confronto th:first-child{text-align:left}.confronto thead th:last-child{max-width:6rem}

.spiegazione{margin-top:1rem;padding:1rem;border:1px solid #94a3b8;border-radius:8px}.spiegazione summary{cursor:pointer;font-weight:700}.spiegazione h3{font-size:1rem}.spiegazione section{margin:1rem 0;padding:0;box-shadow:none}.nota-fonti{font-size:.9rem}

.legal-check{display:flex!important;align-items:flex-start;gap:.65rem;margin:1rem 0}.account .legal-check input[type=checkbox]{appearance:auto;width:18px!important;height:18px;min-width:18px;min-height:18px;max-width:18px;max-height:18px;padding:0;flex:0 0 18px;margin:.2rem 0 0;accent-color:#16645c;cursor:pointer}.account .legal-check{cursor:pointer;font-weight:400;min-height:32px}.privacy-help{font-size:.95rem}.footer-legale{margin-top:2rem;padding:1rem 0 14rem;border-top:1px solid #cbd5e1}.footer-legale nav{display:flex;gap:1rem;flex-wrap:wrap}.link-button{background:none;color:#164b98;border:0;text-decoration:underline;padding:0}.cookie-notice{position:fixed;bottom:1rem;left:1rem;right:1rem;max-width:680px;margin:auto;padding:1rem;border:1px solid #64748b;border-radius:12px;background:white;color:#17243a;box-shadow:0 4px 24px #0003;z-index:20}.cookie-notice[hidden]{display:none}.cookie-notice p{margin:.4rem 0}.cookie-notice button{margin:.5rem}.documento-legale table{width:100%;border-collapse:collapse}.documento-legale td,.documento-legale th{padding:.5rem;border:1px solid #cbd5e1;text-align:left;overflow-wrap:anywhere}

/* Testadigitale — interfaccia 2026 */
:root{color:#203d45;background:#f4f6f5;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}
body{background:radial-gradient(ellipse at 90% 0,#e3eeeb 0,transparent 55%);min-height:100vh}
main{width:min(100% - 48px,1080px);margin:36px auto 40px}
header{position:relative;overflow:hidden;padding:44px 48px 36px;border:1px solid #234e57;border-bottom:0;border-radius:24px;background:radial-gradient(ellipse at 100% 0,#2b6770 0,transparent 65%),#102f39;box-shadow:0 16px 40px #183b4314}
header h1{font:600 clamp(2rem,4.6vw,3.5rem)/1.15 Georgia,serif;letter-spacing:-.035em;max-width:860px}
header h1 span{color:#e8c48e}header p{max-width:620px;color:#d1e3e4;font-size:1rem;margin-top:20px}
.brand-label{font-size:.72rem;font-weight:750;letter-spacing:.18em;margin-bottom:30px;color:#fff}.brand-label span{color:#b6cdd0;font-weight:500;letter-spacing:.1em}
.hero-meta{display:flex;flex-wrap:wrap;gap:12px 26px;border-top:1px solid #ffffff26;padding-top:20px;margin-top:30px;font-size:.82rem;color:#e0e9e6}.hero-meta span::before{content:"";display:inline-block;width:5px;height:5px;background:#e8c48e;border-radius:50%;margin:0 9px 2px 0}
section,fieldset{padding:30px;margin:24px 0;border:1px solid #dce5e2;border-radius:18px;box-shadow:0 5px 20px #173c4405;background:#fff}
h2{font-size:1.35rem;letter-spacing:-.025em;font-weight:700;margin-bottom:10px}section>p{color:#5b7075;font-size:.96rem;max-width:760px;margin:0 0 24px}
main>nav{margin:20px 2px;font-size:.9rem}a{color:#20636b;text-underline-offset:4px}a:hover{color:#103b43}
button{background:#175963;border:1px solid transparent;box-shadow:0 3px 8px #164a5412;min-height:46px;border-radius:10px;padding:11px 22px;font-size:.93rem;transition:background .15s,box-shadow .15s}button:hover{background:#104750;box-shadow:0 4px 12px #164a5424}button:active{transform:translateY(1px)}
main>nav button,button[value=pausa]{background:#fff;color:#31545d;border-color:#cbdad7;box-shadow:none}main>nav button:hover,button[value=pausa]:hover{background:#eaf1ef}
select,.account input:not([type=checkbox]),input[type=number]{background:#fafcfb;border:1px solid #c3d2ce;border-radius:10px;min-height:48px;padding:11px 13px;color:#203d45;box-shadow:inset 0 1px 2px #173c4404}
label,legend{font-size:.9rem;font-weight:600}.settings{gap:24px;margin:24px 0}legend{padding:0 8px;color:#47686c}.account{max-width:none;gap:18px;margin-top:20px}.account label{gap:7px}.account .legal-check{font-size:.83rem;line-height:1.5;margin:0;font-weight:400}.privacy-help{font-size:.82rem;color:#5b7075}.account .legal-check input[type=checkbox]{width:18px!important;height:18px;min-height:18px}
.auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.auth-grid>section{margin:0}.demo-card{background:#eaf2ef;border-color:#ccded6}.demo-card h2{font-size:1.2rem}.demo-card p{margin-bottom:18px}
.quesito{padding:28px 32px}.quesito>small{font-size:.75rem;letter-spacing:.025em;color:#61777b}.quesito>p{font-size:1.08rem;line-height:1.65;margin:14px 0 22px}.opzione{padding:15px 18px;margin:10px 0;background:#fbfcfc;border-color:#dce5e2;font-size:.96rem;line-height:1.65;border-radius:12px}.opzione:has(input):hover{background:#f0f6f3;border-color:#9cbbb3}.opzione:has(:checked){background:#eaf4ef;border-color:#3a8273;box-shadow:0 0 0 1px #3a8273}.opzione.corretta{background:#edf8f0;border-color:#4e8a65}.opzione.errata{background:#fff1ef;border-color:#c77d76}
#timer{top:12px;padding:14px 20px;border:1px solid #365861;background:#153b45;border-radius:14px;box-shadow:0 6px 20px #12374126}#timer strong{margin-left:auto}.spiegazione{background:#f4f8f6;border-color:#d4e2da;padding:18px 20px;border-radius:12px}.spiegazione summary{color:#225b53;font-size:.94rem}.spiegazione section{background:transparent;border:0}.nota-fonti{font-size:.82rem;color:#586f70}.spiegazione h3{margin-bottom:8px}.spiegazione ul{padding-left:20px;overflow-wrap:anywhere}
.confronto{display:block;overflow-x:auto;padding-bottom:6px}.confronto th,.confronto td{padding:12px 10px;font-size:.85rem}.confronto thead{background:#f0f5f3}.documento-legale{line-height:1.85}.documento-legale h2:not(:first-child){margin-top:28px}
.footer-legale{margin-top:48px;padding:26px 0 24px;border-top:1px solid #d4dfdb;background:transparent}.footer-top{display:flex;align-items:center;justify-content:space-between;gap:24px}.footer-brand{display:block;color:#24474f;font-size:1.06rem;font-weight:750;text-decoration:none;letter-spacing:-.025em;flex-shrink:0}.footer-brand span{display:block;color:#647a7d;font-size:.76rem;font-weight:400;letter-spacing:0;margin-top:3px}.footer-legale nav{margin:0;display:flex;justify-content:flex-end;align-items:center;gap:4px 18px;flex-wrap:wrap}.footer-legale nav a,.footer-legale .link-button{font-size:.76rem;font-weight:500;color:#4f6a70;text-decoration:none;min-height:36px;display:inline-flex;align-items:center;padding:0;width:auto;background:none;border:0;border-radius:4px;box-shadow:none}.footer-legale nav a:hover,.footer-legale .link-button:hover{color:#164b54;text-decoration:underline;background:none}.footer-note{margin-top:20px!important;color:#657a7e;font-size:.72rem;line-height:1.6;max-width:660px}
.cookie-notice{left:auto;right:24px;bottom:24px;width:min(420px,calc(100% - 32px));padding:22px;border:1px solid #d3dfdb;border-radius:16px;background:#fff;box-shadow:0 12px 48px #163d4326;font-size:.85rem;color:#38565d}.cookie-notice strong{display:block;font-size:.95rem;color:#203d45}.cookie-notice p{margin:8px 0 14px}.cookie-notice button{width:auto;margin:10px 0 0 12px;min-height:40px;padding:8px 16px;font-size:.83rem}.cookie-notice a{font-size:.8rem}
@media(max-width:700px){main{width:calc(100% - 28px);margin-top:14px}header{padding:30px 24px;border-radius:18px}.brand-label{font-size:.64rem;letter-spacing:.12em;margin-bottom:24px}.brand-label span{display:block;margin-top:5px}.hero-meta{gap:10px 16px;font-size:.75rem}section,fieldset,.quesito{padding:22px 18px;border-radius:14px}.auth-grid{grid-template-columns:1fr;gap:20px}.settings{grid-template-columns:1fr;gap:18px}.footer-top{align-items:flex-start;flex-direction:column;gap:15px}.footer-legale{margin-top:32px;padding-bottom:20px}.footer-legale nav{justify-content:flex-start;gap:0 18px}.footer-note{margin-top:16px!important}.cookie-notice{right:16px;bottom:16px}.quesito p{font-size:1rem}#timer{top:8px;font-size:.82rem}#prova>button{margin-bottom:10px}.opzione{padding:13px}.account{gap:16px}}
@media(prefers-reduced-motion:reduce){button{transition:none}}

.app-install{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#eaf2ef;border:1px solid #ccded6;border-radius:14px;padding:20px;margin-bottom:28px}.app-install strong{font-size:.95rem}.app-install p{font-size:.8rem;color:#526c70;margin-top:4px}.app-install button{flex-shrink:0}.app-install[hidden],button[data-install-app][hidden]{display:none}#install-help{max-width:480px;width:calc(100% - 32px);border:1px solid #cbdad7;border-radius:18px;padding:28px;color:#203d45;box-shadow:0 20px 60px #102f3933}#install-help::backdrop{background:#102f3980}#install-help p{margin:16px 0}#install-help form{text-align:right}@media(max-width:700px){.app-install{align-items:stretch;flex-direction:column}.app-install button{width:100%}}

.footer-top{flex-wrap:wrap}.footer-top nav{margin-left:auto}.install-compact{width:auto!important;min-height:36px;padding:6px 13px;font-size:.76rem;font-weight:600;color:#24535b;background:transparent;border:1px solid #b9ceca;border-radius:8px;box-shadow:none}.install-compact:hover{background:#e5eeeb;box-shadow:none}.install-compact[hidden]{display:none}@media(max-width:700px){.footer-top{flex-direction:row;align-items:center;gap:16px}.footer-brand{flex:1}.footer-top nav{flex-basis:100%;margin:0}}

.install-header{position:absolute;top:28px;right:32px;min-height:38px;width:auto;padding:7px 14px;border:1px solid #ffffff55;border-radius:9px;background:#ffffff0d;color:#fff;font-size:.78rem;box-shadow:none}.install-header:hover{background:#ffffff20;box-shadow:none}.install-header[hidden]{display:none}header .brand-label{padding-right:150px}@media(max-width:700px){.install-header{top:24px;right:20px;padding:7px 10px;font-size:.72rem}header .brand-label{padding-right:120px;min-height:46px}}

.resend-email{background:transparent;color:#24535b;border:1px solid #b9ceca;box-shadow:none}.resend-email:hover{background:#eaf2ef}

.site-logo{display:inline-flex;align-items:center;background:#fff;border-radius:10px;padding:12px 16px;max-width:100%;line-height:0}.site-logo img{display:block;width:280px;max-width:100%;height:auto}.document-logo{margin-bottom:24px}@media(max-width:600px){.site-logo{padding:10px;max-width:calc(100% - 130px)}.site-logo img{width:220px}.document-logo .site-logo{max-width:100%}}

/* Logo originale trasparente, centrato sopra la testata. */
.logo-top{display:flex;justify-content:center;align-items:center;padding:20px 16px 28px;background:transparent}.logo-top .site-logo,.document-logo .site-logo{background:transparent;border:0;border-radius:0;padding:0;max-width:100%;box-shadow:none}.logo-top .site-logo img{width:340px;max-width:100%;height:auto}.document-logo{text-align:center}@media(max-width:600px){.logo-top{padding:12px 12px 22px}.logo-top .site-logo{max-width:100%}.logo-top .site-logo img{width:280px;max-width:100%}}
