*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f4f7fb;color:#172033}nav{min-height:58px;background:#17324d;color:#fff;display:flex;align-items:center;gap:14px;padding:0 24px;flex-wrap:wrap}nav a{color:#fff;text-decoration:none;padding:9px 6px}.brand{font-weight:800;margin-right:8px}.nav-spacer{flex:1}.flash{background:#e9f7ef;border:1px solid #a8d5b8;padding:12px;border-radius:8px;margin-bottom:18px}main{max-width:1400px;margin:26px auto;padding:0 18px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}.card{background:#fff;border:1px solid #dde4ed;border-radius:12px;padding:18px;box-shadow:0 3px 14px rgba(20,40,60,.05);margin-bottom:18px}.card h1,.card h2{margin-top:0}.btn{display:inline-block;border:0;border-radius:8px;padding:10px 14px;background:#1f5d8f;color:#fff;text-decoration:none;cursor:pointer}.btn.secondary{background:#e8eef5;color:#17324d}.btn.danger{background:#a43c3c}.btn.ok{background:#2d7d4b}.badge{display:inline-block;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:700;background:#edf1f5;color:#334}.s-PRONTA,.s-CHIUSA_TRASFERITA{background:#dff3e5;color:#1d6a37}.s-DA_INTEGRARE{background:#fff1bd;color:#7a5a00}.s-BLOCCATA,.s-CHIUSA_INSUFFICIENZA{background:#f8dada;color:#8b2020}.s-IN_ANALISI_AI{background:#dfeaff;color:#174e9b}.s-IN_VERIFICA_OPERATORE{background:#ffe5bd;color:#875400}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:10px;border-bottom:1px solid #e4e8ef;text-align:left;vertical-align:top}th{background:#f5f7fa}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid .full{grid-column:1/-1}label{font-weight:600;font-size:13px;display:block;margin-bottom:4px}input,select,textarea{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff}textarea{min-height:100px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.small{font-size:12px;color:#667085}.metric{font-size:30px;font-weight:800}.login{max-width:460px;margin:80px auto}.notice{padding:12px;border-left:4px solid #1f5d8f;background:#f0f6fb}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.tabs a{padding:8px 12px;border-radius:8px;background:#e9eef4;text-decoration:none;color:#17324d}.blink{animation:blink 1.6s infinite}@keyframes blink{50%{opacity:.45}}@media(max-width:700px){.form-grid{grid-template-columns:1fr}nav{padding:10px 12px}main{margin-top:15px}}
/* Dashboard V2 - layout operativo */
.dash-hero{background:linear-gradient(135deg,#17324d 0%,#245b83 100%);color:#fff;border-radius:16px;padding:28px 30px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px;box-shadow:0 8px 24px rgba(23,50,77,.16)}
.dash-hero h1{margin:4px 0 8px;font-size:32px;letter-spacing:-.5px}.dash-hero p{margin:0;max-width:760px;color:#dce9f3}.eyebrow{font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#6a7b8d}.dash-hero .eyebrow{color:#b9d2e5}.dash-role{font-size:12px;font-weight:800;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:8px 11px;border-radius:999px;white-space:nowrap}.dash-actions{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 16px}.action-count{display:inline-flex;min-width:20px;height:20px;align-items:center;justify-content:center;border-radius:99px;background:#fff;color:#17324d;font-size:11px;margin-left:4px}.dash-search{padding:10px 12px;margin-bottom:18px}.dash-search form{display:flex;align-items:center;gap:9px}.dash-search input{border:0;outline:0;background:transparent;font-size:14px;padding:10px 4px}.search-icon{font-size:22px;color:#789}.status-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin-bottom:18px}.status-card{background:#fff;border:1px solid #dde4ed;border-radius:10px;padding:11px 10px;min-height:96px;display:flex;flex-direction:column;text-decoration:none;color:#172033;box-shadow:0 3px 14px rgba(20,40,60,.05);transition:.15s ease}.status-card:hover{transform:translateY(-1px);border-color:#b9c9d9;box-shadow:0 7px 18px rgba(20,40,60,.08)}.status-top{display:flex;align-items:flex-start;gap:6px;font-size:9px;font-weight:800;text-transform:uppercase;line-height:1.18;min-height:34px;letter-spacing:.01em}.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:#94a3b8}.dot-NUOVA{background:#64748b}.dot-IN_ANALISI_AI{background:#3b82f6}.dot-IN_VERIFICA_OPERATORE{background:#f59e0b}.dot-DA_INTEGRARE{background:#eab308}.dot-PRONTA,.dot-CHIUSA_TRASFERITA{background:#22c55e}.dot-BLOCCATA,.dot-CHIUSA_INSUFFICIENZA{background:#dc2626}.status-card .metric{font-size:24px;line-height:1;font-weight:900;margin-top:auto;min-width:5ch;width:5ch;text-align:left;align-self:flex-start}.dash-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.8fr);gap:18px}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.section-head h2{margin:3px 0 0}.big-number{font-size:38px;font-weight:900;color:#17324d}.text-link{font-size:13px;font-weight:700;color:#1f5d8f;text-decoration:none;white-space:nowrap}.follow-list{border-top:1px solid #e7edf3}.follow-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid #e7edf3;text-decoration:none;color:#172033}.follow-row:hover{background:#fafcff}.follow-main{display:flex;flex-direction:column;gap:4px}.follow-main strong{color:#1f5d8f}.follow-main span{font-size:12px;color:#667085}.follow-side{display:flex;flex-direction:column;align-items:flex-end;gap:5px;text-align:right}.urgent-text{color:#a43c3c;font-weight:700}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.mini-stats>div{background:#f6f9fc;border:1px solid #e3eaf1;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:2px}.mini-number{font-size:25px;font-weight:900;color:#17324d}.danger-number{color:#a43c3c}.warn-number{color:#9a7000}.postit-card{background:linear-gradient(180deg,#fffef5,#fff)}.activity-list{border-top:1px solid #e7edf3}.activity-row{display:grid;grid-template-columns:150px minmax(0,1fr) 100px;gap:14px;padding:11px 0;border-bottom:1px solid #e7edf3;font-size:12px;align-items:center}.activity-time{color:#7a8794}.activity-main{display:flex;flex-direction:column;gap:3px}.activity-main span{color:#667085}.activity-main a{color:#1f5d8f;text-decoration:none}.beta-rule{border-left:4px solid #1f5d8f}.beta-rule h2{margin:4px 0 5px}.beta-rule p{margin:0;color:#526173}.workload-card{min-height:130px}
@media(max-width:1050px){.status-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.dash-columns{grid-template-columns:1fr}}
@media(max-width:700px){.dash-hero{padding:22px;flex-direction:column}.dash-hero h1{font-size:26px}.status-grid{grid-template-columns:1fr 1fr}.dash-search form{flex-wrap:wrap}.dash-search input{min-width:0;flex:1}.follow-row{align-items:flex-start;flex-direction:column}.follow-side{align-items:flex-start;text-align:left}.activity-row{grid-template-columns:1fr;gap:4px}.mini-stats{grid-template-columns:1fr 1fr}.mini-stats>div:last-child{grid-column:1/-1}}

/* =========================================================
   GUIDA F1 CONTESTUALE – Gesti Service Italia Beta V1.1
   ========================================================= */
.f1-nav-button{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.1);color:#fff;border-radius:8px;padding:8px 11px;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.f1-nav-button:hover{background:rgba(255,255,255,.18)}
.f1-modal[hidden]{display:none}
.f1-modal{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:22px}
.f1-backdrop{position:absolute;inset:0;background:rgba(15,28,42,.58);backdrop-filter:blur(2px)}
.f1-dialog{position:relative;z-index:1;width:min(820px,96vw);max-height:88vh;overflow:auto;background:#fff;border:1px solid #dbe3ec;border-radius:16px;box-shadow:0 20px 60px rgba(10,30,50,.28)}
.f1-modal-content{padding:24px}
.f1-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid #e5eaf0;padding-bottom:14px;margin-bottom:16px}
.f1-modal-head h2{margin:2px 0 0;font-size:25px;color:#17324d}
.f1-kicker{font-size:11px;font-weight:900;letter-spacing:.13em;color:#1f5d8f}
.f1-close{border:0;background:#eef3f7;color:#17324d;width:34px;height:34px;border-radius:8px;font-size:24px;line-height:1;cursor:pointer}
.f1-close:hover{background:#e2eaf1}
.f1-intro{font-size:15px;line-height:1.55;color:#344054;margin:0 0 18px}
.f1-section{border:1px solid #e2e8f0;border-radius:10px;padding:14px 16px;margin:12px 0;background:#fbfcfe}
.f1-section h3{margin:0 0 8px;font-size:15px;color:#17324d}
.f1-section ul{margin:0;padding-left:20px}
.f1-section li{margin:7px 0;line-height:1.45;color:#344054}
.f1-footer-note{margin-top:18px;padding:11px 13px;border-left:4px solid #1f5d8f;background:#f0f6fb;color:#344054;font-size:12px;line-height:1.45}
.f1-loading{padding:36px;text-align:center;color:#667085}
body.f1-open{overflow:hidden}
@media(max-width:700px){.f1-modal{padding:10px}.f1-dialog{width:100%;max-height:94vh;border-radius:12px}.f1-modal-content{padding:18px}.f1-modal-head h2{font-size:21px}.f1-nav-button{font-size:11px;padding:7px 8px}}
