:root { --ink:#1b2430; --muted:#5b6675; --line:#d5dbe3; --brand:#1f3a5f; --bg:#f4f6f9; --err:#b3261e; --ok:#1e7a46; }
* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin:0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color:var(--ink); background:var(--bg); line-height:1.5; }
header.top { background:var(--brand); color:#fff; padding:14px 20px; font-weight:600; letter-spacing:.2px; }
header.top a { color:#fff; text-decoration:none; }
header.top nav { float:right; font-weight:400; font-size:.9rem; }
header.top nav a { margin-left:16px; }
main { max-width:720px; margin:0 auto; padding:24px 16px 56px; }
main.wide { max-width:1100px; }
.card { background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px; margin-bottom:18px; }
h1 { font-size:1.5rem; margin:0 0 .4em; } h2 { font-size:1.15rem; margin:0 0 .6em; }
p.lead { color:var(--muted); margin-top:0; }
label, .label { display:block; font-weight:600; margin:18px 0 6px; }
.help { font-weight:400; color:var(--muted); font-size:.9rem; display:block; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=file], select, textarea {
  width:100%; padding:11px 12px; font-size:1rem; border:1px solid #9aa5b3; border-radius:8px; background:#fff; color:var(--ink); font-family:inherit; }
textarea { min-height:110px; }
input:focus, select:focus, textarea:focus, button:focus, a:focus { outline:3px solid #7aa7e8; outline-offset:1px; }
.opt { display:flex; gap:10px; align-items:center; font-weight:400; margin:6px 0; }
.opt input { width:20px; height:20px; }
.err { color:var(--err); font-size:.92rem; margin-top:4px; }
.invalid input, .invalid select, .invalid textarea { border-color:var(--err); }
.notice { border-left:4px solid var(--brand); background:#eef3fa; padding:12px 14px; border-radius:6px; margin-bottom:16px; }
.notice.err { border-color:var(--err); background:#fbeceb; color:var(--ink); }
.flash.ok { border-left:4px solid var(--ok); background:#e8f5ee; padding:10px 14px; margin-bottom:14px; border-radius:6px; }
.flash.err { border-left:4px solid var(--err); background:#fbeceb; padding:10px 14px; margin-bottom:14px; border-radius:6px; }
button, .btn { display:inline-block; background:var(--brand); color:#fff; border:0; border-radius:8px; padding:12px 22px; font-size:1rem; font-weight:600; cursor:pointer; text-decoration:none; }
.btn.secondary, button.secondary { background:#fff; color:var(--brand); border:1px solid var(--brand); }
.btn.small, button.small { padding:6px 12px; font-size:.9rem; }
.stats { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.stat { flex:1; min-width:120px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.stat b { display:block; font-size:1.6rem; }
table { width:100%; border-collapse:collapse; background:#fff; font-size:.93rem; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:#eef1f5; }
.tag { padding:2px 8px; border-radius:999px; font-size:.82rem; background:#e6e9ee; }
.tag.compilato { background:#dff1e6; color:#14532d; } .tag.aperto { background:#fdf0d5; color:#7a4b00; }
.row { display:flex; gap:10px; flex-wrap:wrap; align-items:end; }
.row > * { flex:1; min-width:140px; }
.row .fit { flex:0 0 auto; }
footer.foot { max-width:720px; margin:0 auto; padding:0 16px 32px; color:var(--muted); font-size:.88rem; }
footer.foot a { color:var(--muted); }
@media (max-width:600px){ html{font-size:16px;} main{padding:16px 12px 40px;} .card{padding:16px;} }
