:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#17314a;background:#edf3f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}.app{max-width:1420px;margin:auto;padding:20px 24px 35px}.hero{background:linear-gradient(120deg,#082844,#145b87);color:white;border-radius:22px;padding:28px 36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.hero h1{font-size:clamp(1.7rem,3vw,2.5rem);margin:7px 0}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:800;color:#7bd9e8;margin:0}.sub{color:#dbebf7;margin:0;font-size:.99rem}.hero-mark{font-size:6rem;line-height:.7;opacity:.35}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.tab{border:1px solid #cfdeea;background:white;color:#27516f;font-weight:750;padding:12px 16px;border-radius:11px;flex:1;min-width:180px;text-align:center}.tab.active{background:#f47b20;border-color:#f47b20;color:#fff;box-shadow:0 3px 9px #b8622030}.tab:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #00abc5;outline-offset:3px}.section[hidden]{display:none}.intro{padding:4px 3px 14px}.intro h2{font-size:1.35rem;margin:0 0 6px;color:#0b3454}.intro p{margin:0;color:#52697a;line-height:1.55}.lab-grid{display:grid;grid-template-columns:minmax(265px,330px) minmax(0,1fr);gap:17px;align-items:stretch}.panel{background:white;border:1px solid #d9e6f0;border-radius:16px;padding:21px;box-shadow:0 4px 15px #0d345009;min-width:0}.panel h3{margin:0 0 20px;font-size:1.05rem;color:#183d58}.controls label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:16px 0 8px;font-weight:700;font-size:.93rem}.controls output{color:#d96914;font-variant-numeric:tabular-nums;white-space:nowrap}.controls input[type=range]{width:100%;accent-color:#f47b20;margin:0 0 7px;cursor:pointer}.secondary{background:#e7f1f7;color:#11496e;border:0;border-radius:10px;padding:11px 13px;margin-top:20px;width:100%;font-weight:750}.tip{font-size:.87rem;line-height:1.55;border-left:4px solid #39a1b4;background:#f0f8fc;border-radius:6px;padding:13px 15px;margin-top:24px;color:#315069}.formula{border:1px solid #dce7ee;background:#f7fbfd;border-radius:10px;padding:12px;margin-bottom:12px;font-size:.84rem;line-height:1.7}.formula strong{font-size:.92rem;color:#063e64}.plot-head{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;align-items:center}.plot-head h3{margin:0}.legend{display:flex;gap:13px;flex-wrap:wrap}.key{font-size:.83rem;color:#516b7b;display:inline-flex;gap:6px;align-items:center}.swatch{width:17px;height:4px;border-radius:4px;display:inline-block}.swatch.blue{background:#007cac}.swatch.orange{background:#e97b28}.swatch.green{background:#249777}svg{display:block;width:100%;height:auto;margin-top:10px;overflow:visible}svg text{font-family:Inter,system-ui,sans-serif;font-size:13px;fill:#607789}svg .gridline{stroke:#e5eef4;stroke-width:1}svg .axis{stroke:#8299a9;stroke-width:1.5}svg .curve{fill:none;stroke:#007cac;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}svg .curve2{stroke:#e97b28}svg .rms{fill:none;stroke:#249777;stroke-width:2;stroke-dasharray:8 5}svg .guide{fill:none;stroke:#acb9c6;stroke-width:1.4;stroke-dasharray:4 5}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:8px}.metric{background:#eef5fa;border-radius:10px;padding:12px 10px;min-width:0}.metric small{display:block;font-size:.76rem;color:#537187;min-height:1.7em}.metric strong{display:block;margin-top:4px;font-size:clamp(.86rem,1.4vw,1.12rem);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#113e5d}.interpret{background:#fff6ed;border:1px solid #f5d6b9;border-radius:9px;padding:13px;margin:14px 0 0;line-height:1.55;font-size:.91rem}footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.77rem;color:#61798b;margin:23px 4px}footer strong{color:#135a87}@media(max-width:880px){.lab-grid{grid-template-columns:1fr}.app{padding:12px}.hero{padding:22px}.hero-mark{font-size:3.8rem}.tab{min-width:145px;padding:11px 8px}.panel{padding:17px}}@media(max-width:520px){.hero-mark{display:none}.tabs{display:grid;grid-template-columns:1fr 1fr}.tab{min-width:0;font-size:.79rem}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.plot{padding:13px}.hero h1{font-size:1.65rem}.plot-head h3{font-size:.96rem}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Desktop: una sezione completa nello spazio disponibile, senza scroll pagina. */
@media (min-width:881px) and (min-height:650px){
 html,body{height:100%;overflow:hidden}
 .app{height:100dvh;max-height:100dvh;display:flex;flex-direction:column;padding:10px 20px 7px}
 .hero{flex:none;border-radius:15px;padding:10px 24px;min-height:80px}
 .hero h1{font-size:1.75rem;margin:2px 0}.hero .sub{font-size:.81rem}.eyebrow{font-size:.65rem}.hero-mark{font-size:4rem}
 .tabs{flex:none;flex-wrap:nowrap;margin:8px 0;gap:7px}
 .tab{min-width:0;padding:9px 7px;font-size:.85rem}
 main{flex:1;min-height:0}
 .section:not([hidden]){height:100%;display:flex;flex-direction:column;min-height:0}
 .intro{flex:none;padding:0 3px 8px}
 .intro h2{font-size:1.07rem;margin:0 0 3px}
 .intro p{font-size:.79rem;line-height:1.35}
 .lab-grid{flex:1;min-height:0;grid-template-columns:minmax(235px,285px) minmax(0,1fr);gap:11px}
 .panel{padding:12px 15px;border-radius:12px;min-height:0}
 .panel h3{font-size:.9rem;margin-bottom:8px}
 .controls label{margin:9px 0 5px;font-size:.8rem}
 .controls input[type=range]{margin-bottom:4px}
 .secondary{margin-top:9px;padding:8px;font-size:.8rem}
 .tip{margin-top:12px;padding:9px;font-size:.74rem;line-height:1.35}
 .formula{padding:8px 9px;margin-bottom:8px;font-size:.72rem;line-height:1.35}
 .formula strong{font-size:.77rem}
 .plot{display:flex;flex-direction:column}
 .plot-head{flex:none;gap:6px}
 .plot svg{flex:1 1 0;min-height:0;height:0;width:100%;margin-top:4px;overflow:hidden}
 .metrics{flex:none;gap:6px;margin-top:5px}
 .metric{padding:6px 8px;border-radius:7px}
 .metric small{font-size:.67rem;min-height:0}
 .metric strong{font-size:.88rem;margin-top:2px}
 .interpret{flex:none;margin:6px 0 0;padding:7px 9px;font-size:.75rem;line-height:1.3}
 footer{flex:none;margin:6px 3px 0;font-size:.64rem;gap:4px}
}
/* Su schermi bassi desktop si preserva lo scorrimento anziché tagliare i contenuti. */
