:root{
  --bg:#f5f7fb;--surface:#fff;--text:#0c1735;--muted:#66779a;--line:#dfe7f2;
  --blue:#1968ee;--blue2:#3e56ef;--navy:#182d49;--navy2:#213b5c;
  --green:#0aa36c;--orange:#ff961f;--violet:#7549f7;--red:#ef5350;
  --radius:13px;--shadow:0 10px 30px rgba(42,75,118,.08);
}
*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg);scroll-behavior:smooth}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}.num{text-align:right!important;white-space:nowrap}.muted{color:var(--muted)}

/* ---------- HOME PUBBLICA ---------- */
.public-home-body{background:#f7fbff;color:#0a1740}.home-page{min-height:100vh;background:linear-gradient(135deg,#eef7ff 0,#fff 40%,#f5faff 100%)}
.home-nav{height:68px;background:rgba(255,255,255,.96);border-bottom:1px solid #dce6f3;position:sticky;top:0;z-index:30}.home-nav-inner{height:100%;max-width:1368px;margin:0 auto;padding:0 34px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}.home-brand{display:flex;align-items:center;gap:12px;justify-self:start}.home-brand-mark{width:48px;height:48px;border-radius:10px;background:linear-gradient(145deg,#5960ec,#3653e4);display:grid;place-items:center;color:#fff;font-weight:800;font-size:19px;box-shadow:0 8px 18px rgba(61,81,229,.2)}.home-brand strong{display:block;font-size:20px;line-height:1.05}.home-brand small{display:block;color:#506ba5;font-size:12px;margin-top:4px}.home-menu{display:flex;align-items:stretch;height:100%;gap:34px}.home-menu a{display:flex;align-items:center;position:relative;color:#27385f;font-size:13px}.home-menu a:hover,.home-menu a.active{color:#075dea}.home-menu a.active:after{content:"";position:absolute;left:0;right:0;bottom:5px;height:3px;border-radius:3px;background:#1267f2}.home-nav-actions{justify-self:end;display:flex;align-items:center;gap:12px}.home-search{width:42px;height:42px;border:0;background:#eef4fb;border-radius:12px;color:#132b56;font-size:25px;line-height:1}.home-login-button{height:44px;padding:0 27px;border-radius:8px;background:linear-gradient(135deg,#3169ef,#1762e6);color:#fff;display:flex;align-items:center;font-weight:700;font-size:14px;box-shadow:0 8px 18px rgba(31,102,232,.18)}
.home-hero{position:relative;overflow:hidden;background:radial-gradient(circle at 9% 72%,rgba(146,206,255,.38),transparent 23%),linear-gradient(130deg,#e9f5ff 0,#f8fbff 43%,#eef7ff 72%,#fff 100%);border-bottom:1px solid #e2ebf6}.home-hero:after{content:"";position:absolute;right:-130px;top:-120px;width:520px;height:520px;border:85px solid rgba(117,185,247,.12);border-radius:50%;transform:rotate(35deg)}.aircraft-decoration{position:absolute;left:-22px;bottom:-17px;width:235px;opacity:.72;filter:saturate(.8);mix-blend-mode:multiply;z-index:1}.home-hero-inner{max-width:1270px;min-height:410px;margin:0 auto;padding:34px 34px 27px;display:grid;grid-template-columns:1.18fr .92fr .9fr;gap:14px;align-items:start;position:relative;z-index:2}.home-intro{padding:10px 10px 0 74px}.home-kicker{font-size:11px;letter-spacing:.28em;color:#5471a7;font-weight:700;margin:0 0 9px}.home-intro h1{font-size:51px;letter-spacing:-.045em;line-height:1;margin:0 0 4px;font-weight:800;color:#0a1944}.home-intro h1 span{color:#3858ec}.home-intro h2{font-size:20px;letter-spacing:-.02em;margin:0 0 20px;color:#07163e}.home-lead{max-width:510px;font-size:16px;line-height:1.52;color:#2d4672;margin:0 0 18px}.home-cta-row{display:flex;gap:13px;margin-bottom:18px}.home-btn{border:1px solid transparent;border-radius:9px;min-height:49px;padding:0 22px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:750;transition:.18s}.home-btn:hover{transform:translateY(-1px)}.home-btn-primary{background:linear-gradient(135deg,#1768ed,#3656ea);color:#fff;box-shadow:0 10px 18px rgba(36,99,235,.15)}.home-btn-outline{background:#fff;color:#085ce0;border-color:#7da6f9}.home-btn-full{width:100%}.home-intro blockquote{margin:0;color:#496188;font-style:italic;line-height:1.46;font-size:13px}.home-intro blockquote small{font-style:normal;font-size:11px}.home-profile-visual{border-radius:17px;overflow:hidden;box-shadow:0 12px 26px rgba(34,72,126,.08);height:345px;background:#e9f4ff}.home-profile-visual img{width:100%;height:100%;object-fit:cover;display:block}.home-login-card{background:rgba(255,255,255,.95);border:1px solid #dbe5f1;border-radius:7px;box-shadow:0 12px 25px rgba(34,72,126,.08);padding:23px 28px 19px;min-height:345px}.login-card-heading{display:flex;gap:16px;align-items:center;margin-bottom:20px}.login-lock{width:65px;height:65px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;background:#e9f2ff;color:#0d66ef;font-weight:800;font-size:26px}.login-card-heading h3{font-size:20px;margin:0 0 5px}.login-card-heading p{margin:0;color:#6379a6;font-size:14px}.home-login-form{display:grid;gap:12px}.home-login-form label{height:44px;border:1px solid #cad8ea;border-radius:8px;background:#fff;display:flex;align-items:center;padding:0 10px}.input-icon{width:28px;color:#7890b9}.home-login-form input{border:0;outline:0;flex:1;color:#18305d;background:transparent;min-width:0}.password-toggle{border:0;background:transparent;color:#6e83ab}.login-separator{display:flex;align-items:center;gap:12px;color:#5d7196;font-size:11px;margin:15px 0 14px}.login-separator:before,.login-separator:after{content:"";height:1px;flex:1;background:#cdd9ea}.secure-note{text-align:center;color:#4f6897;font-size:11px;margin:0}.home-alert{padding:9px 10px;border-radius:8px;background:#fff0f0;color:#a83c3c;font-size:12px;margin-bottom:9px}
.home-content{max-width:1540px;margin:0 auto;padding:24px 65px 20px}.home-mini-grid{display:grid;grid-template-columns:250px 250px 250px 1fr;gap:14px}.home-mini-card,.home-values-card,.home-info-card{background:#fff;border:1px solid #dfe7f2;border-radius:10px;box-shadow:0 4px 14px rgba(42,75,118,.035)}.home-mini-card{display:grid;grid-template-columns:48px 1fr 18px;gap:10px;padding:16px 17px}.circle-icon{width:45px;height:45px;border-radius:50%;display:grid;place-items:center;background:#eaf3ff;color:#0864ee;font-weight:800;font-size:20px}.home-mini-card h3{font-size:14px;margin:4px 0 11px}.home-mini-card p{margin:0 0 6px;color:#4f6694;font-size:12px}.home-mini-card b{color:#1264ec;font-size:20px}.home-values-card{display:grid;grid-template-columns:repeat(4,1fr);padding:13px 8px}.home-values-card>div{text-align:center;padding:0 16px;border-right:1px solid #e6ecf4}.home-values-card>div:last-child{border-right:0}.home-values-card .circle-icon{margin:0 auto 8px}.home-values-card strong{font-size:16px;display:block;margin-bottom:3px}.home-values-card p{font-size:12px;line-height:1.35;color:#4f6694;margin:0}.home-bottom-grid{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:14px;margin-top:20px}.home-info-card{padding:15px 20px;min-height:216px}.section-card-title{display:flex;align-items:flex-start;gap:12px}.section-card-title .circle-icon{width:44px;height:44px;flex:0 0 auto}.section-card-title h3{font-size:17px;margin:5px 0 2px}.section-card-title p{font-size:12px;color:#5f75a2;margin:0}.section-card-title a{margin-left:auto;color:#0a62e8;font-size:11px;font-weight:700;padding-top:10px}.check-list{list-style:none;padding:9px 0 0;margin:0;display:grid;gap:9px;color:#415b89;font-size:13px}.check-list li:before{content:"✓";display:inline-grid;place-items:center;width:20px;height:20px;background:#4388f7;color:white;border-radius:50%;font-size:10px;margin-right:12px}.tech-tags{display:flex;gap:10px 12px;flex-wrap:wrap;padding-top:18px}.tech-tags span{padding:9px 17px;background:#edf4fc;border-radius:12px;color:#335d9a;font-size:12px}.contact-layout{display:grid;grid-template-columns:1.25fr .85fr;gap:16px;padding-top:14px}.contact-lines p{font-size:12px;color:#405d90;margin:0 0 12px}.contact-lines p:first-letter{color:#0e65ea}.contact-layout blockquote{margin:0;background:#f5f8fd;border-radius:8px;padding:22px;color:#506a98;font-style:italic;line-height:1.5}.contact-layout blockquote small{font-size:11px;font-style:normal}.home-footer{max-width:1540px;margin:0 auto;border-top:1px solid #e1e8f2;padding:12px 72px 18px;color:#61779f;font-size:11px;display:flex;justify-content:space-between}

/* ---------- APP SHELL ---------- */
.app-body{background:#f6f9fc}.app-shell{min-height:100vh;display:flex}.sidebar{position:fixed;left:22px;top:3px;bottom:3px;width:220px;border-radius:15px 0 0 15px;padding:18px 12px;background:linear-gradient(180deg,#19304e,#1c3555 62%,#1a304d);color:#e9f1fb;display:flex;flex-direction:column;z-index:50;box-shadow:0 12px 32px rgba(29,56,92,.18)}.brand{display:flex;align-items:center;gap:10px;padding:0 4px 22px}.brand-mark{width:40px;height:40px;border-radius:11px;background:linear-gradient(145deg,#28588c,#3267a5);color:#79bdff;display:grid;place-items:center;font-size:22px}.brand strong{display:block;font-size:16px;color:#fff}.brand span{display:block;font-size:10px;color:#c1cee0;margin-top:3px}.nav-menu{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:13px;min-height:42px;padding:0 11px;border-radius:9px;color:#eef4fd;font-size:13px;transition:.15s}.nav-item:hover,.nav-item.active{background:linear-gradient(90deg,rgba(65,122,191,.47),rgba(52,97,153,.38));color:#fff}.nav-icon{width:20px;color:#d8e9fb;text-align:center;font-size:17px}.sidebar-profile{margin-top:auto;border-top:1px solid rgba(224,236,250,.14);padding:18px 6px 4px;display:flex;gap:10px;align-items:center}.sidebar-avatar,.top-avatar{display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#5967ac,#314679);color:#fff}.sidebar-avatar{width:40px;height:40px;font-size:13px}.sidebar-profile strong{display:block;font-size:12px}.sidebar-profile span{display:block;font-size:10px;color:#bdcce0;margin-top:3px}.app-main{margin-left:242px;min-width:0;flex:1;padding-right:22px}.topbar{height:51px;background:linear-gradient(90deg,#eaf4fb,#dfeaf5);display:flex;align-items:center;justify-content:space-between;padding:0 18px 0 25px;position:sticky;top:0;z-index:25;border-radius:0 15px 0 0;box-shadow:0 2px 8px rgba(31,61,98,.03)}.topbar-spacer{flex:1}.topbar-right{display:flex;align-items:center;gap:16px}.global-search{width:205px;height:35px;border-radius:20px;background:rgba(255,255,255,.78);display:flex;align-items:center;padding:0 13px;border:1px solid rgba(207,220,234,.7)}.global-search span{color:#233d65;font-size:18px}.global-search input{border:0;outline:0;background:transparent;padding-left:8px;min-width:0;width:100%;font-size:12px;color:#263b5d}.notification-button{position:relative;font-size:20px;color:#1a2d52}.notification-button>span{position:absolute;right:-7px;top:-7px;display:grid;place-items:center;min-width:17px;height:17px;border-radius:50%;background:#ed4242;color:white;font-size:9px;font-weight:800;border:2px solid #e6eef7}.top-avatar{width:36px;height:36px;font-size:13px}.content-wrap{max-width:1480px;margin:0 auto;padding:14px 22px 40px}.messages{display:grid;gap:8px;margin-bottom:12px}.alert{padding:10px 13px;border-radius:9px;background:#edf4ff;color:#37517e;font-size:12px}.alert-success{background:#e8f8f1;color:#136b50}.alert-error{background:#fdecef;color:#a92d44}.alert-warning{background:#fff3d9;color:#7b5917}

/* ---------- DASHBOARD ---------- */
.dashboard-heading{display:flex;justify-content:space-between;align-items:flex-start;padding:0 4px 12px}.dashboard-heading h1{font-size:26px;letter-spacing:-.04em;margin:0 0 2px;color:#090f1f}.dashboard-heading p{font-size:13px;color:#506681;margin:0}.dashboard-date{font-size:12px;color:#4e6380;padding-top:9px}.dashboard-kpis{display:grid;gap:14px}.dashboard-kpis-five{grid-template-columns:repeat(5,minmax(0,1fr));margin-bottom:14px}.dash-kpi{min-height:99px;background:#fff;border:1px solid #e1e8f0;border-radius:10px;padding:14px 15px;display:flex;gap:13px;align-items:flex-start;box-shadow:0 5px 16px rgba(40,73,111,.035)}.dash-kpi-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:24px;flex:0 0 auto;font-weight:700}.dash-kpi-icon.green{background:#dcf7eb;color:#079868}.dash-kpi-icon.blue{background:#e1efff;color:#0865ef}.dash-kpi-icon.orange{background:#fff0dd;color:#f28a08}.dash-kpi-icon.violet{background:#eee8ff;color:#744af5}.dash-kpi-icon.sky{background:#e5f1ff;color:#0865ef}.dash-kpi small{display:block;font-size:11px;color:#415878;margin:2px 0 7px}.dash-kpi strong{display:block;font-size:21px;letter-spacing:-.025em;color:#11192b}.dash-kpi p{margin:6px 0 0;font-size:10px;color:#5f718b}.trend-up{color:#00a56d}.trend-down{color:#d84b56}.dashboard-row{display:grid;gap:14px;margin-bottom:14px}.dashboard-row-top{grid-template-columns:1.55fr 1.25fr .74fr}.dashboard-row-bottom{grid-template-columns:1.64fr 1.02fr .63fr}.dash-panel{background:#fff;border:1px solid #e1e8f0;border-radius:10px;padding:16px 17px;min-width:0;box-shadow:0 5px 16px rgba(40,73,111,.03)}.dash-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.dash-panel-head h2,.cash-title h2,.reminder-title h2{font-size:15px;margin:0}.dash-panel-head a{font-size:10px;color:#0064e8;font-weight:700}.chart-legend{display:flex;gap:20px;font-size:10px;color:#556a86}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{width:8px;height:8px;border-radius:50%}.legend-green{background:#00a86f}.legend-blue{background:#1476ef}.dashboard-canvas-wrap{height:180px}.dashboard-canvas-wrap.small{height:178px}.dashboard-canvas-wrap canvas{width:100%;height:100%;display:block}.deadline-list{display:grid}.deadline-item{display:grid;grid-template-columns:34px 82px 1fr auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid #e9eef5}.deadline-item:last-child{border-bottom:0}.deadline-icon{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;font-size:11px}.deadline-icon.red{background:#ffe8e8;color:#e64b4b}.deadline-icon.sand{background:#f5e9e0;color:#9e5f38}.deadline-icon.yellow{background:#fff3cf;color:#e69b00}.deadline-date{font-size:11px;font-weight:750;color:#1c2b43}.deadline-copy strong{display:block;font-size:11px}.deadline-copy span{display:block;color:#60738d;font-size:9px;margin-top:3px}.status-pill{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:9px;padding:5px 8px;font-size:9px;font-weight:700}.status-pill.neutral{background:#edf3fb;color:#3e5d83}.status-pill.paid{background:#dff7ec;color:#068558}.status-pill.due{background:#fff0d9;color:#da7c00}.cash-panel{padding:17px 17px}.cash-title{display:flex;align-items:center;justify-content:space-between}.cash-bank{width:46px;height:46px;border-radius:50%;background:#ddf8ed;color:#069464;display:grid;place-items:center;font-size:24px}.cash-amount{display:block;font-size:27px;color:#0b9a66;margin:14px 0 26px}.cash-breakdown{display:flex;flex-direction:column;gap:4px;padding:10px 0;border-bottom:1px solid #e6ebf1;color:#536981;font-size:10px}.cash-breakdown strong{font-size:14px;color:#122139}.cash-breakdown.total{border-bottom:0}.recent-invoices{padding-bottom:7px}.dashboard-table-wrap{overflow:auto}.dashboard-table{border-collapse:collapse;width:100%;min-width:610px}.dashboard-table th{font-size:9px;color:#334863;text-align:left;padding:7px 6px;border-bottom:1px solid #e5ebf3}.dashboard-table td{font-size:9.5px;color:#536881;padding:8px 6px;border-bottom:1px solid #eef2f7}.dashboard-table td strong{color:#182943}.dashboard-table tr:last-child td{border-bottom:0}.dashboard-empty{text-align:center;color:#8191a7;padding:20px;font-size:11px}.reminder-title{display:flex;gap:8px;align-items:center;margin-bottom:17px}.reminder-title span{color:#f6aa00}.reminder-list{display:grid;gap:15px}.reminder-list label{display:flex;gap:8px;align-items:flex-start;font-size:10px;color:#263c5b;line-height:1.3}.reminder-list input{width:14px;height:14px;margin:0;accent-color:#286be9}.dashboard-footer-note{color:#71839a;font-size:10px;padding:2px 4px}.dashboard-footer-note a{color:#0563e6;font-weight:700}

/* ---------- PAGINE GESTIONALE GENERICHE ---------- */
.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:800;color:#8290a5;margin:0 0 5px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:6px 0 18px}.page-head h1{font-size:25px;letter-spacing:-.035em;margin:0 0 4px}.page-head p{margin:0;color:#65768d;font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:8px;border:1px solid transparent;font-size:12px;font-weight:750;cursor:pointer}.btn-primary{background:#1968ee;color:#fff}.btn-light{background:#fff;border-color:#dce5f0;color:#344b6a}.btn-danger{background:#d94a5b;color:#fff}.head-actions,.form-actions{display:flex;gap:9px;align-items:center}.filter-bar{display:flex;flex-wrap:wrap;gap:9px;background:#fff;border:1px solid #e0e7f0;padding:10px;border-radius:10px;margin-bottom:12px}.filter-bar input,.filter-bar select,.inline-filter select{border:1px solid #dce4ee;background:#fff;border-radius:7px;padding:8px 10px;color:#243a5a;min-height:36px;font-size:12px}.filter-bar input:first-child{min-width:260px;flex:1}.table-card{background:#fff;border:1px solid #e0e7f0;border-radius:10px;overflow:auto}.table-card table{width:100%;border-collapse:collapse;min-width:780px}.table-card th{font-size:9px;text-transform:uppercase;letter-spacing:.05em;color:#74849b;background:#f9fbfd;text-align:left;padding:11px 12px;border-bottom:1px solid #e1e8f0}.table-card td{padding:11px 12px;border-bottom:1px solid #edf1f6;font-size:11px;vertical-align:middle}.table-card tr:last-child td{border-bottom:0}.actions{white-space:nowrap;text-align:right}.actions a{font-weight:700;color:#1968ee;margin-left:9px}.actions .danger-link{color:#d94a5b}.empty{text-align:center;color:#7c8ca1;padding:30px!important}.badge{display:inline-flex;padding:4px 7px;border-radius:999px;background:#edf2f7;color:#52627a;font-size:9px;font-weight:800}.badge-success{background:#dff7ec;color:#087e55}.badge-danger{background:#fde8eb;color:#b63749}.badge-warning{background:#fff0d6;color:#94600b}.pagination{display:flex;justify-content:center;gap:16px;align-items:center;padding:15px;font-size:11px}.pagination a{font-weight:700;color:#1968ee}.form-card{max-width:820px;background:#fff;border:1px solid #e0e7f0;border-radius:11px;padding:22px;box-shadow:0 7px 24px rgba(32,64,102,.035)}.stack-form{display:grid;gap:13px}.stack-form p,.stack-form label{display:grid;gap:6px;margin:0;color:#344a68;font-size:11px;font-weight:700}.stack-form input,.stack-form select,.stack-form textarea{width:100%;border:1px solid #d5dfeb;border-radius:8px;padding:9px 10px;background:#fff;color:#1c3354}.stack-form input[type=checkbox]{width:auto}.stack-form .helptext{font-size:10px;font-weight:400;color:#748399}.stack-form ul.errorlist{color:#cf3c50;font-size:10px;margin:0;padding-left:16px}.danger-card{border-color:#efc7cd}.cards-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.action-card{background:#fff;border:1px solid #e0e7f0;border-radius:11px;padding:20px}.action-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:#eaf2ff;color:#1968ee;font-size:18px;margin-bottom:14px}.panel{background:#fff;border:1px solid #e0e7f0;border-radius:11px;padding:18px}.panel-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:14px}.panel-head h2{font-size:16px;margin:0}.panel-head a{font-size:11px;font-weight:700;color:#1968ee}.metric-list>div,.list-compact>div{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #edf1f5}.metric-list>div:last-child,.list-compact>div:last-child{border-bottom:0}.metric-list span,.list-compact span{font-size:10px;color:#718299;display:block;margin-top:3px}.notice{padding:10px 12px;border-radius:9px;background:#edf4ff;color:#37517e;font-size:11px;margin-top:12px}.warning-box{background:#fff7e7;color:#7d5a13;border:1px solid #f4dfb4}

/* ---------- LOGIN FALLBACK ---------- */
.login-body{min-height:100vh;background:linear-gradient(145deg,#eaf5ff,#fff);color:#0d1b3b}.login-page{min-height:100vh;display:grid;place-items:center;padding:30px;position:relative}.back-link{position:absolute;left:30px;top:28px;color:#49658f}.login-card{width:min(430px,100%);background:#fff;border:1px solid #dae4f0;border-radius:16px;padding:30px;box-shadow:0 20px 60px rgba(42,75,118,.11)}.login-card .access-icon{width:56px;height:56px;border-radius:15px;background:#eaf3ff;color:#1267ef;display:grid;place-items:center;margin-bottom:18px}.login-card h1{font-size:31px}.login-card .muted{color:#6d7f99}

.mobile-only{display:none}.icon-button{border:0;background:transparent;font-size:20px;color:#183355}

@media(max-width:1300px){
  .home-hero-inner{grid-template-columns:1.05fr .9fr .85fr;padding-left:20px;padding-right:20px}.home-intro{padding-left:42px}.home-intro h1{font-size:44px}.home-mini-grid{grid-template-columns:1fr 1fr 1fr}.home-values-card{grid-column:1/-1}.home-bottom-grid{grid-template-columns:1fr 1fr}.home-contact-card{grid-column:1/-1}.dashboard-kpis-five{grid-template-columns:repeat(3,1fr)}.dashboard-row-top{grid-template-columns:1.35fr 1fr}.cash-panel{grid-column:1/-1}.dashboard-row-bottom{grid-template-columns:1.4fr 1fr}.reminders-panel{grid-column:1/-1}
}
@media(max-width:980px){
  .home-menu{display:none}.home-nav-inner{grid-template-columns:1fr auto}.home-hero-inner{grid-template-columns:1fr 1fr}.home-intro{grid-column:1/-1;padding:18px 15px 4px}.home-profile-visual,.home-login-card{height:auto;min-height:330px}.aircraft-decoration{opacity:.25}.home-content{padding:20px}.home-mini-grid{grid-template-columns:1fr 1fr}.home-values-card{grid-column:1/-1}.home-bottom-grid{grid-template-columns:1fr}.home-contact-card{grid-column:auto}.dashboard-kpis-five{grid-template-columns:repeat(2,1fr)}.dashboard-row-top,.dashboard-row-bottom{grid-template-columns:1fr}.cash-panel,.reminders-panel{grid-column:auto}
}
@media(max-width:760px){
  .sidebar{left:0;top:0;bottom:0;border-radius:0;transform:translateX(-105%);transition:.2s}.sidebar.open{transform:translateX(0)}.app-main{margin-left:0;padding-right:0}.mobile-only{display:block}.topbar{border-radius:0;padding-left:15px}.topbar-spacer{display:none}.topbar{justify-content:space-between}.global-search{width:150px}.content-wrap{padding:14px 12px 35px}.dashboard-heading{flex-direction:column;gap:5px}.dashboard-date{padding-top:0}.dashboard-kpis-five{grid-template-columns:1fr}.home-nav-inner{padding:0 15px}.home-brand strong{font-size:16px}.home-brand small{font-size:10px}.home-search{display:none}.home-login-button{padding:0 14px}.home-hero-inner{grid-template-columns:1fr;padding:18px 14px 20px}.home-intro{grid-column:auto;padding:10px 0}.home-intro h1{font-size:40px}.home-intro h2{font-size:16px}.home-lead{font-size:14px}.home-cta-row{flex-direction:column}.home-profile-visual{height:330px}.home-mini-grid{grid-template-columns:1fr}.home-values-card{grid-template-columns:1fr 1fr}.home-values-card>div{border:0;padding:8px}.contact-layout{grid-template-columns:1fr}.home-footer{padding:14px 20px;gap:8px;flex-direction:column}.page-head{align-items:flex-start;flex-direction:column}.filter-bar{display:grid}.filter-bar input:first-child{min-width:0}.cards-3{grid-template-columns:1fr}
}

/* ==========================================================
   HOME PUBBLICA — WORK IN PROGRESS / v2
   Layout autonomo e centrato. Non modifica il gestionale.
   ========================================================== */

.public-home-body{
  min-height:100vh;
  background:#f5f8fd;
}

.wip-home{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  color:#0b1738;
  background:
    radial-gradient(circle at 16% 20%,rgba(61,132,246,.12),transparent 27%),
    radial-gradient(circle at 86% 78%,rgba(90,96,236,.10),transparent 28%),
    linear-gradient(145deg,#f4f9ff 0%,#ffffff 46%,#f6f9ff 100%);
}

.wip-nav{
  position:relative;
  z-index:20;
  flex:0 0 auto;
  border-bottom:1px solid rgba(202,216,235,.78);
  background:rgba(255,255,255,.78);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.wip-nav-inner{
  width:min(1180px,calc(100% - 48px));
  min-height:78px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.wip-brand{
  display:flex;
  align-items:center;
  gap:13px;
}

.wip-brand-mark{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:13px;
  color:#fff;
  font-size:16px;
  font-weight:850;
  letter-spacing:.02em;
  background:linear-gradient(145deg,#1b69ef,#4d55e8);
  box-shadow:
    0 11px 24px rgba(32,95,226,.20),
    inset 0 1px 0 rgba(255,255,255,.28);
}

.wip-brand-copy strong{
  display:block;
  font-size:18px;
  line-height:1.1;
  letter-spacing:-.015em;
}

.wip-brand-copy small{
  display:block;
  margin-top:4px;
  color:#7182a3;
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.wip-nav-access{
  min-height:42px;
  padding:0 17px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  border:1px solid #d9e4f2;
  border-radius:11px;
  background:rgba(255,255,255,.9);
  color:#23426f;
  font-size:12px;
  font-weight:750;
  box-shadow:0 5px 16px rgba(42,75,118,.05);
  transition:.18s ease;
}

.wip-nav-access:hover{
  transform:translateY(-1px);
  border-color:#b9cdef;
  color:#145edb;
}

.wip-main{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  display:grid;
  place-items:center;
  padding:58px 24px 52px;
}

.wip-grid{
  position:absolute;
  inset:0;
  opacity:.20;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(77,112,160,.11) 1px,transparent 1px),
    linear-gradient(90deg,rgba(77,112,160,.11) 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,transparent 0%,#000 18%,#000 78%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0%,#000 18%,#000 78%,transparent 100%);
}

.wip-orb{
  position:absolute;
  border-radius:50%;
  pointer-events:none;
  filter:blur(2px);
}

.wip-orb-one{
  width:420px;
  height:420px;
  left:-180px;
  top:18%;
  border:74px solid rgba(74,152,244,.08);
}

.wip-orb-two{
  width:500px;
  height:500px;
  right:-230px;
  bottom:-150px;
  border:86px solid rgba(77,85,232,.07);
}

.wip-hero{
  position:relative;
  z-index:5;
  width:min(900px,100%);
  margin:auto;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.wip-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:0 13px;
  border:1px solid #d9e5f4;
  border-radius:999px;
  background:rgba(255,255,255,.78);
  color:#58709a;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  box-shadow:0 5px 18px rgba(41,75,121,.04);
}

.wip-badge-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#286fed;
  box-shadow:0 0 0 5px rgba(40,111,237,.10);
}

.wip-kicker{
  margin:24px 0 10px;
  color:#49658f;
  font-size:11px;
  font-weight:800;
  letter-spacing:.25em;
}

.wip-hero h1{
  margin:0;
  color:#0b1738;
  font-size:clamp(50px,6.5vw,78px);
  line-height:.96;
  font-weight:860;
  letter-spacing:-.065em;
}

.wip-hero h1 span{
  color:#3857ea;
  background:linear-gradient(110deg,#1c6cf0,#5552e8);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.wip-subtitle{
  width:min(680px,100%);
  margin:24px auto 0;
  color:#556c91;
  font-size:17px;
  line-height:1.68;
}

.wip-divider{
  width:54px;
  height:3px;
  margin:28px 0;
  border-radius:999px;
  background:linear-gradient(90deg,#1f6bef,#5b54e8);
  box-shadow:0 4px 10px rgba(52,90,232,.18);
}

.wip-control-card{
  width:min(760px,100%);
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:22px;
  padding:22px 22px 22px 24px;
  text-align:left;
  border:1px solid rgba(205,218,235,.92);
  border-radius:20px;
  background:rgba(255,255,255,.91);
  box-shadow:
    0 24px 55px rgba(36,68,111,.09),
    inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.wip-control-icon{
  width:62px;
  height:62px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  align-items:end;
  gap:4px;
  padding:17px;
  border-radius:17px;
  background:linear-gradient(145deg,#edf5ff,#e8edff);
  box-shadow:inset 0 0 0 1px rgba(81,111,205,.08);
}

.wip-control-icon span{
  display:block;
  border-radius:999px;
  background:linear-gradient(180deg,#2170ef,#5655e7);
}

.wip-control-icon span:nth-child(1){height:45%}
.wip-control-icon span:nth-child(2){height:78%}
.wip-control-icon span:nth-child(3){height:60%}

.wip-control-label{
  display:block;
  margin-bottom:4px;
  color:#7083a4;
  font-size:9px;
  font-weight:850;
  letter-spacing:.18em;
}

.wip-control-copy h2{
  margin:0 0 6px;
  color:#0c1837;
  font-size:22px;
  line-height:1.15;
  letter-spacing:-.025em;
}

.wip-control-copy p{
  margin:0;
  color:#64799b;
  font-size:12px;
  line-height:1.5;
}

.wip-control-action{
  min-height:46px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  white-space:nowrap;
  border-radius:11px;
  color:#fff;
  font-size:12px;
  font-weight:800;
  background:linear-gradient(135deg,#1969ed,#4657ea);
  box-shadow:0 11px 22px rgba(40,91,229,.20);
  transition:.18s ease;
}

.wip-control-action:hover{
  transform:translateY(-1px);
  box-shadow:0 14px 26px rgba(40,91,229,.25);
}

.wip-status{
  margin:18px 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  color:#7b8ba6;
  font-size:10px;
  line-height:1.4;
}

.wip-status span{
  width:7px;
  height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:#1ea672;
  box-shadow:0 0 0 5px rgba(30,166,114,.10);
}

.wip-footer{
  position:relative;
  z-index:10;
  width:min(1180px,calc(100% - 48px));
  min-height:54px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid rgba(214,224,238,.72);
  color:#7b8aa4;
  font-size:10px;
  letter-spacing:.035em;
}

@media(max-width:760px){
  .wip-nav-inner{
    width:min(100% - 28px,1180px);
    min-height:70px;
  }

  .wip-brand-copy small{
    display:none;
  }

  .wip-nav-access{
    min-height:40px;
    padding:0 13px;
  }

  .wip-main{
    padding:42px 18px 38px;
  }

  .wip-kicker{
    margin-top:20px;
    letter-spacing:.17em;
  }

  .wip-hero h1{
    font-size:clamp(44px,15vw,62px);
  }

  .wip-subtitle{
    margin-top:20px;
    font-size:15px;
    line-height:1.6;
  }

  .wip-control-card{
    grid-template-columns:auto 1fr;
    gap:16px;
    padding:19px;
    border-radius:17px;
  }

  .wip-control-action{
    grid-column:1/-1;
    width:100%;
  }

  .wip-footer{
    width:min(100% - 28px,1180px);
    min-height:64px;
    flex-direction:column;
    justify-content:center;
    gap:4px;
    text-align:center;
  }
}

@media(max-width:480px){
  .wip-brand-mark{
    width:41px;
    height:41px;
    border-radius:11px;
  }

  .wip-brand-copy strong{
    font-size:16px;
  }

  .wip-nav-access{
    font-size:0;
    width:42px;
    padding:0;
  }

  .wip-nav-access span{
    font-size:16px;
    margin:auto;
  }

  .wip-control-icon{
    width:54px;
    height:54px;
    padding:15px;
  }

  .wip-control-copy h2{
    font-size:18px;
  }
}

