*{box-sizing:border-box}body{margin:0;background:#edf2f6;color:#163246;font:16px system-ui}header{background:#102d3c;color:white;padding:20px}header img{width:125px;border-radius:6px;float:right}h1{font-size:25px;margin:6px 0}small{font-size:13px}nav{display:flex;overflow:auto;gap:8px;padding:12px;background:white;position:sticky;top:0;z-index:3}button,select,input{font:inherit;border:1px solid #b4c7d1;border-radius:10px;padding:12px;max-width:100%}button{background:#136e83;color:white;cursor:pointer}nav button{white-space:nowrap}button.active{background:#dd782e}main{max-width:960px;margin:auto;padding:15px}section{display:none}section.active{display:block}.card,details{background:white;border-radius:16px;padding:18px;margin-bottom:14px;box-shadow:0 4px 15px #1531470a}h2{font-size:22px;margin-top:0}h3{font-size:18px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}label{display:block;margin:10px 0}input,select{display:block;width:100%;margin-top:6px;background:#f8fbfc;color:#163246}.note{background:#fff0d8;padding:14px;border-radius:10px;line-height:1.5}.result{background:#e0f3ee;padding:18px;border-radius:12px;line-height:1.6}p,li{line-height:1.6}summary{cursor:pointer;font-weight:bold}a{color:#096d89}textarea{width:100%;min-height:100px;font:inherit}footer{font-size:13px;padding:20px;text-align:center} @media print{nav,button{display:none}section{display:block!important}.card{box-shadow:none}header img{width:100px}}[hidden]{display:none!important}.wizard-nav{position:sticky;bottom:0;z-index:2;border:1px solid #cbdbe4}.wizard-nav p:empty{display:none}.wizard-nav button{min-width:110px}button:disabled{opacity:.4;cursor:default}progress{width:100%;height:13px;accent-color:#16798a}.step-dots{letter-spacing:4px;color:#197588;font-size:15px}fieldset{border:1px solid #ccdae2;border-radius:12px;margin:15px 0;padding:15px}legend{font-weight:700;padding:0 8px}table{width:100%;border-collapse:collapse;font-size:14px;margin:12px 0;table-layout:fixed}th,td{border:1px solid #c8d5dd;padding:9px;text-align:left;overflow-wrap:anywhere;vertical-align:top}th{background:#edf3f6;font-weight:600}td{white-space:pre-wrap}#pdfReport{background:white;border-radius:12px;padding:20px}#pdfReport p{white-space:pre-wrap}.report-head{background:white;color:#102d3c;padding:0 0 10px;border-bottom:3px solid #136e83}.report-head img{width:125px}.report-notice,.report-outcome{background:#eff5f7;padding:12px}.report-head h1{font-size:24px}.report-head p{font-size:14px}#pdfReport h2{font-size:19px;margin:24px 0 10px}
@media print{@page{size:A4;margin:13mm}body{background:white;font-size:10pt;color:#111}body>header,nav,footer,section:not(#report),.no-print{display:none!important}main{padding:0;max-width:none}section#report{display:block!important}#pdfReport{padding:0;box-shadow:none}#pdfReport h2,#pdfReport h3{break-after:avoid}#pdfReport tr,.report-outcome{break-inside:avoid}#pdfReport table{font-size:9pt}#pdfReport th,#pdfReport td{padding:6px}#pdfReport p{line-height:1.4}#pdfReport header{display:block}#pdfReport img{max-width:120px}#pdfReport .report-head{min-height:80px}}
@media print{@page{@bottom-center{content:"Final Tech · Frigo Lab 1.2 — Pagina " counter(page) " di " counter(pages);font-size:8pt;color:#536b79}}}
.mode-picker{display:flex;gap:10px;padding:12px;background:#102d3c}.mode-picker button{flex:1;border:2px solid transparent;background:#24495b;font-size:20px;font-weight:bold}.mode-picker button.active{background:#dd782e;border-color:#ffe0bc}.mode-picker small,.simulation-button small{display:block;font-size:12px;font-weight:normal;margin-top:4px}.simulation-button{background:#605984;text-align:left;font-weight:bold;margin:10px 0}.basic-actions{display:flex;justify-content:space-between;gap:12px}.basic-step h2{margin-top:20px}.simulation-card{border:2px dashed #8265a1}.sim-banner{padding:14px;background:#f8e7bd;color:#583f0c;font-weight:800;border:2px solid #b38426;text-align:center}.simulation-report{background:white;padding:16px;border:2px dashed #9e772f;margin-top:18px}.simulation-report .report-head{margin:14px 0}#simpleReport{background:white;padding:20px}#bPreview .report-head{background:white;color:#102d3c}.basic-step details{box-shadow:none;border:1px solid #cedce3}.basic-step input,.basic-step select{min-height:48px}
@media print{.mode-picker,.basic-actions{display:none!important}body[data-print-report="pro"] #simplePrint,body[data-print-report="pro"] #simulation{display:none!important}body[data-print-report="basic"] section#report,body[data-print-report="basic"] section#simulation{display:none!important}body[data-print-report="basic"] section#simplePrint{display:block!important}body[data-print-report="basic"] #simpleReport{padding:0}body[data-print-report="simulation"] section#report,body[data-print-report="simulation"] section#simplePrint{display:none!important}body[data-print-report="simulation"] section#simulation{display:block!important}body[data-print-report="simulation"] #simulation>.card>:not(#sOutput){display:none!important}body[data-print-report="simulation"] #sOutput,body[data-print-report="simulation"] #sOutput *{visibility:visible}body[data-print-report="simulation"] .simulation-card{padding:0;border:0}body[data-print-report="simulation"] .simulation-report{padding:10px;border:2px dashed #9e772f}body[data-print-report="simulation"]::before{content:"SIMULAZIONE DIDATTICA — DATI NON MISURATI";display:block;position:fixed;top:0;left:0;right:0;color:#936017;text-align:center;font-weight:bold;font-size:10pt;background:white;z-index:20}body[data-print-report="simulation"] main{padding-top:20px}#simpleReport tr,.simulation-report tr{break-inside:avoid}}
@media print{#simpleReport table{font-size:9pt}#simpleReport th,#simpleReport td{padding:5px}#simpleReport p{font-size:9pt;line-height:1.35}#simpleReport h1{font-size:21px}#simpleReport h3{font-size:12pt;margin:10px 0}#simpleReport .report-head{padding-bottom:8px}#simpleReport .report-notice{padding:8px}#simpleReport .report-head img{width:110px}}
