/* V51 - veste grafica ispirata al riferimento fornito. Non altera i dati. */
:root{--red:#bd0006;--navy:#061c37;--bg:#f4f7fb}
body{background:var(--bg);color:#071a35;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
header{background:linear-gradient(160deg,#a90000 0%,#dc0000 57%,#ad0000 100%);border-bottom:0;box-shadow:none;padding:12px max(14px,env(safe-area-inset-left))}
.brand{gap:12px}.brand img{width:58px;height:58px;object-fit:contain}.brand b{font-size:1.45rem;letter-spacing:.015em}.brand small{font-size:.64rem;font-weight:650;line-height:1.25}
#workspace>.view.panel{background:white;border:1px solid #e2e9f1;border-radius:17px;box-shadow:0 2px 10px #0a28400c}
#workspace .toolbar{background:white;border-radius:14px;padding:12px 15px;margin-bottom:10px}
#workspace h2,#workspace h3{color:#081b36;letter-spacing:-.02em}
#home .v49-homehero{background:white!important;border:0!important;box-shadow:none!important;padding:6px 4px 12px!important;color:#091c37!important}
#home .v49-homehero *{color:inherit}#home .v35-brandline{display:none}
#home .v49-homehero h3{font-size:1.15rem;margin:3px 0}#home .v49-homehero p{font-size:.9rem}
#home .v35-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#home .v35-shortcuts button{min-height:113px;align-items:center;justify-content:center;text-align:center;border:1px solid #d5e0ed;border-top:1px solid #d5e0ed;border-radius:13px;padding:13px 9px;background:#fff;box-shadow:none;gap:7px}
#home .v35-shortcuts button .v44-icon,#home .v35-shortcuts button .v49-ico{width:34px;height:34px;color:#c60008}
#home .v35-shortcuts button strong{font-size:.98rem;color:#071b38}#home .v35-shortcuts button small{font-size:.7rem;color:#53657a}
#home .v35-shortcuts button.v40-em-shortcut{background:#fff6f6;border-color:#f0c8cb}
#workspace button:not(.v35-bottom button){border-radius:9px}
#workspace button:focus-visible{outline:3px solid #e5a620;outline-offset:2px}
#workspace input,#workspace select,#workspace textarea{border-radius:9px;border-color:#c9d7e6}
#workspace .v49-section-title{font-size:1.15rem}
#workspace .v49-section-title svg{color:#b80009}
#auth .panel{border-radius:18px}#auth button[type=submit]{background:#c60000;color:white}
#home .v44-ops,#home .v40-admin-home{background:#f8fafd;border-radius:14px}
@media(max-width:650px){
 main{padding:0 8px;margin:8px auto}#workspace{padding-bottom:86px}
 #workspace>.view.panel{padding:13px;border-radius:15px}
 .v35-bottom{background:#061d3b!important;border-top:0!important;gap:0!important;padding:4px 4px calc(4px + env(safe-area-inset-bottom))!important}
 .v35-bottom button{color:#fff!important;border-radius:9px!important;min-height:56px!important;font-size:.69rem!important}
 .v35-bottom button.selected,.v35-bottom button[aria-current=page]{background:#c60008!important;color:#fff!important}
 .v35-bottom .v49-ico{width:23px;height:23px}.v35-bottom .v49-navlabel{font-size:.68rem!important}
 #home .v35-shortcuts button{min-height:105px;padding:10px 7px}
 #home .v35-shortcuts button small{display:none}
 #home .v35-shortcuts button strong{font-size:.9rem}
 header .brand img{width:49px;height:49px}header .brand b{font-size:1.3rem}
}
@media(min-width:850px){#home .v35-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media print{.v35-bottom{display:none!important}}
