:root{
  --blue:#0058A3; --blue-dark:#003B73; --blue-deep:#062d63;
  --yellow:#FFDA1A; --yellow-strong:#FFC800; --ink:#0a2351;
  --muted:#61708a; --line:#e5e9f0; --bg:#f7f9fc; --white:#fff;
  --shadow:0 18px 45px rgba(4,37,84,.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fff;line-height:1.5}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
.container{width:min(1460px,calc(100% - 64px));margin-inline:auto}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.985);border-bottom:1px solid rgba(10,35,81,.07);backdrop-filter:blur(16px);box-shadow:0 5px 20px rgba(2,35,78,.035)}
.nav-wrap{min-height:92px;display:flex;align-items:center;gap:20px}
.brand{display:inline-flex;align-items:center;gap:10px;min-width:max-content}
.brand-mark{width:49px;height:49px;position:relative;display:block}
.brand-mark i,.brand-mark b{position:absolute;border:11px solid;border-radius:50%;width:42px;height:42px;left:3px}
.brand-mark i{border-color:var(--blue) var(--blue) transparent transparent;transform:rotate(45deg);top:0}
.brand-mark b{border-color:transparent transparent var(--yellow-strong) var(--yellow-strong);transform:rotate(45deg);bottom:0}
.brand-text{display:flex;flex-direction:column;line-height:.92;letter-spacing:.06em}
.brand-text strong{font-size:1.82rem}.brand-text small{font-weight:800;letter-spacing:.34em;margin-left:.18em;margin-top:7px;font-size:.72rem}
.main-nav{display:flex;gap:18px;align-items:center;margin-left:auto;font-weight:760;font-size:.84rem;white-space:nowrap}
.main-nav a{padding:35px 0 29px;position:relative}.main-nav>a:hover,.main-nav>a.active{color:var(--blue)}
.main-nav>a.active:after{content:"";height:3px;background:var(--yellow-strong);position:absolute;left:0;right:0;bottom:23px;border-radius:4px}
.portal-actions{display:flex;gap:10px;min-width:max-content}.mobile-portals{display:none}
.btn{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:8px;padding:13px 18px;font-weight:850;text-transform:uppercase;letter-spacing:.015em;cursor:pointer;transition:.18s}
.btn:hover{transform:translateY(-1px);box-shadow:0 10px 20px rgba(4,37,84,.10)}
.btn-blue{background:var(--blue);color:#fff}.btn-yellow{background:var(--yellow);color:#102d59}.btn-ghost{background:rgba(4,37,84,.36);color:#fff;border:1px solid rgba(255,255,255,.72)}.btn-large{padding:16px 23px}
.menu-toggle{display:none;border:0;background:none;width:44px;height:44px;padding:8px;cursor:pointer}.menu-toggle span{display:block;height:3px;background:var(--ink);border-radius:3px;margin:5px 0}

/* HOME V7 - full width cinematic video hero */
.home-page{background:#061f46;overflow-x:hidden;min-height:100vh}.home-main{background:#fff}
.home-hero{position:relative;min-height:720px;color:#fff;background:var(--blue-deep);overflow:visible}
.home-hero>.hero-video,.home-hero>.hero-shade{position:absolute;inset:0;width:100%;height:100%}
.home-hero>.hero-video{object-fit:cover;object-position:center center;background:var(--blue-deep);z-index:0}
.home-hero>.hero-shade{z-index:1;background:linear-gradient(90deg,rgba(0,34,76,.93) 0%,rgba(0,43,91,.74) 34%,rgba(0,48,99,.30) 58%,rgba(0,48,99,.06) 82%,rgba(0,48,99,0) 100%);pointer-events:none}
.home-grid{position:relative;z-index:2;min-height:720px;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.48fr);gap:62px;align-items:center;padding:74px 0 145px}
.hero-copy{max-width:700px}.eyebrow,.section-kicker{font-size:.94rem;font-weight:900;letter-spacing:.085em;text-transform:uppercase;color:var(--yellow-strong)}
.compact-copy h1{font-size:clamp(3.5rem,4.9vw,5.75rem);line-height:.94;letter-spacing:-.052em;margin:.16em 0 .28em}.compact-copy h1 span{color:var(--yellow-strong)}
.lead{font-size:1.18rem;max-width:585px;color:#f5f8fc;margin:0}.hero-cta{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.feature-card{background:linear-gradient(145deg,rgba(2,41,90,.82),rgba(0,78,151,.68));border:1px solid rgba(255,255,255,.18);border-radius:18px;padding:23px 24px;display:flex;gap:16px;box-shadow:0 22px 55px rgba(0,0,0,.16);backdrop-filter:blur(10px);max-width:400px;justify-self:end;margin-top:62px}
.feature-icon{font-size:1.9rem;color:var(--yellow-strong)}.card-kicker{margin:0 0 5px!important;color:var(--yellow-strong)!important;font-size:.75rem!important;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.feature-card h2{margin:0 0 6px;font-size:1.22rem;text-transform:uppercase}.feature-card p{margin:0 0 14px;color:#e8eef7;font-size:.94rem}.feature-card a{font-weight:900;color:var(--yellow-strong);text-transform:uppercase;font-size:.9rem}
.home-quick{position:relative;z-index:4;left:auto;right:auto;bottom:auto;transform:none;margin-top:-52px;padding-bottom:18px}
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.98);border-radius:16px;box-shadow:0 16px 45px rgba(0,28,66,.16);overflow:hidden}
.quick-grid a{min-height:92px;padding:14px 20px;border-right:1px solid var(--line);display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;column-gap:11px;align-content:center;transition:.2s}.quick-grid a:last-child{border-right:0}.quick-grid a:hover{background:#fff7cf}.quick-grid span{grid-row:1/3;color:var(--yellow-strong);font-size:1.55rem;font-weight:900;align-self:center}.quick-grid strong{color:var(--blue);font-size:.95rem;text-transform:uppercase}.quick-grid small{color:#60708a;margin-top:2px;font-size:.92rem}
.home-page .home-main{padding-bottom:0}


/* V32.8: quick cards must extend below the hero without being cut in half. */
.home-hero>.hero-video,.home-hero>.hero-shade{clip-path:inset(0)}

/* Inner pages */
.inner-page{background:#fff}.inner-page main{min-height:calc(100vh - 92px - 112px)}
.page-hero{padding:92px 0 78px;background:linear-gradient(145deg,#fff,#f3f7fc);overflow:hidden}.page-hero-blue{background:linear-gradient(135deg,var(--blue-deep),#075ca8);color:#fff}.page-hero .container>h1,.page-hero-grid h1{font-size:clamp(2.8rem,4.8vw,5.2rem);line-height:.98;letter-spacing:-.045em;margin:.18em 0 .28em;max-width:1050px}.page-hero p{font-size:1.12rem;max-width:780px;color:#55637b}.page-hero-blue p{color:#dce8f5}.page-intro{font-size:1.13rem!important}.page-hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:70px;align-items:center}
.page-visual{min-height:300px;border-radius:24px;background:linear-gradient(145deg,#073f7e,#0c68b7);box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(3,1fr);align-items:end;padding:32px;gap:15px}.page-visual span{background:rgba(255,255,255,.94);padding:18px 12px;border-radius:12px;font-weight:850;text-align:center;color:var(--blue-deep)}
.page-body{padding:72px 0 88px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:70px}.two-col h2,.page-body h2{font-size:clamp(1.7rem,2.5vw,2.6rem);line-height:1.08;margin-top:0}.two-col p,.page-body p{color:#56657c}.info-panel,.contact-card{background:#f4f8fc;border:1px solid #e0e8f2;border-radius:18px;padding:30px}.info-panel strong,.contact-card strong{font-size:1.2rem}
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.service-card{border:1px solid #e0e7f0;border-radius:18px;padding:30px;min-height:220px;background:#fff;box-shadow:0 12px 30px rgba(8,49,94,.06);transition:.2s}.service-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.service-card>span{font-size:2rem;color:var(--yellow-strong)}.service-card h2{font-size:1.35rem;margin:18px 0 8px;color:var(--blue)}
.photo-hero{min-height:520px;position:relative;color:#fff;display:flex;align-items:center}.solar-page{background:url('solar-hero.jpg') 62% center/cover no-repeat}.page-photo-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,36,81,.96),rgba(0,52,105,.68) 45%,rgba(0,52,105,.08) 100%)}.page-photo-copy{position:relative;z-index:2}.page-photo-copy h1{font-size:clamp(3rem,5vw,5.4rem);line-height:.98;letter-spacing:-.046em;max-width:760px;margin:.16em 0 .24em}.page-photo-copy p{color:#eef5fb;font-size:1.15rem;max-width:610px;margin-bottom:28px}
.feature-rows{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.feature-rows>div{padding:28px;border-top:4px solid var(--yellow-strong);background:#f7f9fc}.feature-rows span{font-size:.84rem;font-weight:900;color:var(--blue)}.feature-rows h2{font-size:1.3rem;margin:14px 0 7px}
.dashboard-mock{background:#fff;border-radius:20px;padding:30px;color:var(--ink);box-shadow:0 25px 60px rgba(0,0,0,.2)}.dash-top{display:flex;justify-content:space-between;align-items:center}.dash-top strong{color:var(--blue);font-size:2.3rem}.bars{height:160px;display:flex;gap:12px;align-items:end;margin:25px 0 10px}.bars i{flex:1;background:linear-gradient(var(--yellow-strong),#ffec7c);border-radius:7px 7px 0 0}.bars i:nth-child(1){height:42%}.bars i:nth-child(2){height:68%}.bars i:nth-child(3){height:53%}.bars i:nth-child(4){height:81%}.bars i:nth-child(5){height:60%}.bars i:nth-child(6){height:92%}.dashboard-mock small{color:#718097}
.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.three-col article{padding:28px;border-left:4px solid var(--yellow-strong);background:#f7f9fc}.large-method article{min-height:250px}.results-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.results-cards>div{background:var(--blue-deep);color:#fff;border-radius:18px;padding:36px 25px;text-align:center}.results-cards strong{font-size:3rem;color:var(--yellow-strong);display:block}.results-cards span{color:#dce8f4}.contact-card{font-size:1.05rem}
.site-footer{background:#061f46;color:#dce8f4}.footer-grid{min-height:96px;display:grid;grid-template-columns:auto 1fr auto;gap:30px;align-items:center}.brand-footer{color:#fff}.footer-grid>div:nth-child(2){display:flex;gap:22px;justify-content:center;font-size:.86rem}.footer-grid p{font-size:.82rem;color:#9fb0c7}

@media(max-width:1180px){
  .container{width:min(100% - 40px,1100px)}.portal-actions{display:none}.menu-toggle{display:block;margin-left:auto}.main-nav{position:fixed;inset:92px 0 auto 0;background:#fff;display:none;flex-direction:column;align-items:stretch;padding:18px 24px 28px;box-shadow:0 18px 35px rgba(0,0,0,.12);white-space:normal}.menu-open .main-nav{display:flex}.main-nav a{padding:11px 0}.main-nav>a.active:after{display:none}.mobile-portals{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.home-grid{grid-template-columns:1fr .68fr;gap:36px;min-height:680px;padding:62px 0 140px}.home-hero{min-height:680px}.quick-grid{grid-template-columns:repeat(2,1fr)}.quick-grid a:nth-child(2){border-right:0}.quick-grid a:nth-child(-n+2){border-bottom:1px solid var(--line)}.page-hero-grid{grid-template-columns:1fr;gap:35px}.service-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .container{width:min(100% - 28px,760px)}.nav-wrap{min-height:78px}.main-nav{inset:78px 0 auto 0}.brand-mark{width:42px;height:42px}.brand-mark i,.brand-mark b{width:36px;height:36px;border-width:9px}.brand-text strong{font-size:1.55rem}.brand-text small{font-size:.62rem}
  .home-hero{min-height:650px}.home-hero>.hero-shade{background:linear-gradient(180deg,rgba(0,37,82,.10),rgba(0,37,82,.58) 42%,rgba(0,37,82,.96) 82%)}.home-grid{min-height:650px;grid-template-columns:1fr;padding:88px 0 150px;align-content:end}.feature-card{display:none}.compact-copy h1{font-size:clamp(2.85rem,12vw,4.25rem)}.home-quick{margin-top:-44px;padding-bottom:16px}.quick-grid a{min-height:88px}.page-hero{padding:65px 0}.page-body{padding:55px 0 70px}.two-col,.service-grid,.feature-rows,.three-col,.results-cards{grid-template-columns:1fr 1fr}.page-visual{min-height:220px}.photo-hero{min-height:560px}.footer-grid{grid-template-columns:1fr;text-align:center;padding:30px 0}.footer-grid>div:nth-child(2){flex-wrap:wrap}
}
@media(max-width:520px){
  .container{width:calc(100% - 20px)}.mobile-portals{grid-template-columns:1fr}.home-hero{min-height:610px}.home-grid{min-height:610px;padding:78px 0 145px}.compact-copy h1{font-size:clamp(2.45rem,13.5vw,3.65rem)}.lead{font-size:1rem;max-width:95%}.hero-cta{gap:10px}.btn-large{width:100%;padding:14px 16px}.home-quick{margin-top:-36px;padding-bottom:14px}.quick-grid{grid-template-columns:1fr 1fr}.quick-grid a{padding:14px 12px;grid-template-columns:28px 1fr;column-gap:7px}.quick-grid span{font-size:1.4rem}.quick-grid strong{font-size:.72rem}.quick-grid small{font-size:.68rem}.two-col,.service-grid,.feature-rows,.three-col,.results-cards{grid-template-columns:1fr}.page-visual{grid-template-columns:1fr}.page-hero .container>h1,.page-hero-grid h1,.page-photo-copy h1{font-size:clamp(2.55rem,13vw,4rem)}
}

/* V8 - richer inner pages */
.inner-page .section-head{max-width:820px;margin-bottom:36px}.inner-page .section-head h2{font-size:clamp(2rem,3.4vw,3.45rem);line-height:1.02;letter-spacing:-.035em;margin:.18em 0}.inner-page .section-head p{font-size:1.08rem;max-width:760px}
.split-section{display:grid;grid-template-columns:1.05fr .95fr;gap:64px;align-items:center}.split-section+.split-section{margin-top:72px}.media-panel{min-height:360px;border-radius:24px;background:linear-gradient(145deg,#eef5fc,#dceafa);border:1px solid #dce6f1;box-shadow:var(--shadow);overflow:hidden;position:relative}.media-panel.energy{background:linear-gradient(140deg,#063d7c,#0870c5)}.media-panel.solar{background:linear-gradient(140deg,rgba(0,45,95,.12),rgba(255,218,26,.18)),url('solar-hero.jpg') center/cover no-repeat}.media-panel .metric-stack{position:absolute;inset:0;padding:34px;display:grid;align-content:end;gap:12px}.metric-pill{background:rgba(255,255,255,.94);border:1px solid rgba(255,255,255,.7);border-radius:14px;padding:16px 18px;box-shadow:0 12px 28px rgba(0,30,72,.12);display:flex;justify-content:space-between;gap:16px;align-items:center}.metric-pill strong{font-size:1.3rem;color:var(--blue)}.metric-pill small{color:#687890}.check-list{display:grid;gap:13px;margin:26px 0 0;padding:0;list-style:none}.check-list li{display:flex;gap:12px;align-items:flex-start;color:#4f6077}.check-list li:before{content:'✓';width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:var(--yellow);color:var(--blue-deep);font-weight:950;flex:0 0 auto}.cta-band{margin-top:72px;background:linear-gradient(120deg,var(--blue-deep),var(--blue));border-radius:24px;padding:38px 42px;color:white;display:flex;justify-content:space-between;gap:30px;align-items:center;box-shadow:var(--shadow)}.cta-band h2{margin:0 0 8px;font-size:clamp(1.8rem,3vw,2.8rem)}.cta-band p{margin:0;color:#dbe7f4}.cta-band .btn{flex:0 0 auto}
.process-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;counter-reset:step}.process-card{background:#f7f9fc;border:1px solid #e2e8f0;border-radius:18px;padding:28px;min-height:230px;position:relative}.process-card:before{counter-increment:step;content:'0' counter(step);display:block;color:var(--blue);font-weight:950;font-size:.85rem;letter-spacing:.08em;margin-bottom:36px}.process-card h3{font-size:1.25rem;margin:0 0 9px}.process-card p{margin:0}.value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.value-card{padding:28px;border-radius:18px;background:#fff;border:1px solid #e1e7ef;box-shadow:0 10px 26px rgba(5,49,93,.055)}.value-card .ico{width:48px;height:48px;border-radius:14px;background:#fff3b0;color:var(--blue);display:grid;place-items:center;font-weight:950;font-size:1.25rem;margin-bottom:18px}.value-card h3{margin:0 0 8px;color:var(--blue)}
.contact-layout{display:grid;grid-template-columns:.86fr 1.14fr;gap:34px}.contact-aside,.form-panel{border-radius:22px;padding:34px;border:1px solid #e1e8f0}.contact-aside{background:var(--blue-deep);color:white}.contact-aside p{color:#d9e5f1!important}.contact-points{display:grid;gap:18px;margin-top:30px}.contact-point{padding-top:18px;border-top:1px solid rgba(255,255,255,.16)}.contact-point strong{display:block;color:var(--yellow);margin-bottom:4px}.form-panel{background:#fff;box-shadow:var(--shadow)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-field{display:grid;gap:7px}.form-field.full{grid-column:1/-1}.form-field label{font-size:.86rem;font-weight:850;color:#31445e}.form-field input,.form-field textarea,.form-field select{width:100%;border:1px solid #ccd7e3;border-radius:10px;padding:13px 14px;background:#fbfcfe;color:#142e54;outline:none}.form-field input:focus,.form-field textarea:focus,.form-field select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,88,163,.08)}.form-field textarea{min-height:130px;resize:vertical}.form-note{font-size:.78rem;color:#77859a;margin:14px 0 18px}.form-status{font-size:.9rem;font-weight:750;margin-top:12px;min-height:1.2em}
.portal-preview{max-width:760px;margin:70px auto;background:#fff;border:1px solid #dfe7ef;border-radius:24px;padding:38px;box-shadow:var(--shadow)}.portal-preview h1{font-size:2.4rem;margin:.15em 0}.portal-preview p{color:#607088}.portal-preview .btn{margin-top:14px}.legal-body{max-width:900px;margin:0 auto}.legal-body h2{margin-top:38px;font-size:1.5rem}
@media(max-width:980px){.split-section,.contact-layout{grid-template-columns:1fr}.process-grid{grid-template-columns:1fr 1fr}.value-grid{grid-template-columns:1fr 1fr}.cta-band{align-items:flex-start;flex-direction:column}.cta-band .btn{width:auto}.media-panel{min-height:300px}}
@media(max-width:620px){.process-grid,.value-grid,.form-grid{grid-template-columns:1fr}.cta-band{padding:30px 24px}.form-field.full{grid-column:auto}.contact-aside,.form-panel{padding:26px}.portal-preview{margin:36px 14px;padding:28px 22px}}

/* V9 - Area Agenti demo */
.agent-login-page{margin:0;background:#f4f7fb;color:#102a43;font-family:inherit}.agent-login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(380px,560px) 1fr}.agent-login-card{padding:48px clamp(28px,5vw,72px);display:flex;flex-direction:column;justify-content:center;background:#fff}.agent-login-brand{width:max-content;margin-bottom:54px}.agent-login-copy h1{font-size:clamp(42px,5vw,68px);margin:.15em 0}.agent-login-copy p{max-width:520px;color:#5c6f82;line-height:1.7}.agent-login-form{display:grid;gap:12px;margin-top:28px;max-width:500px}.agent-login-form label{font-weight:800;color:#15385d;font-size:14px}.agent-login-form input{width:100%;box-sizing:border-box;border:1px solid #d5dfeb;border-radius:12px;padding:16px 17px;font:inherit;background:#fff;outline:none}.agent-login-form input:focus{border-color:#1652a3;box-shadow:0 0 0 4px rgba(22,82,163,.10)}.password-wrap{position:relative}.password-wrap input{padding-right:92px}.password-toggle{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#1652a3;font-weight:800;cursor:pointer;padding:10px}.login-error{min-height:22px;margin:0;color:#b42318;font-weight:700;font-size:14px}.agent-login-submit{border:0;cursor:pointer;justify-content:center}.agent-login-help{display:flex;justify-content:space-between;gap:18px;max-width:500px;margin-top:24px;font-size:14px}.agent-login-help a{color:#1652a3;font-weight:700;text-decoration:none}.agent-login-visual{position:relative;min-height:100vh;background:url('solar-hero.jpg') center/cover no-repeat}.agent-login-overlay{position:absolute;inset:0;background:linear-gradient(120deg,rgba(8,43,93,.86),rgba(8,43,93,.18) 70%)}.agent-login-message{position:absolute;left:8%;bottom:10%;color:#fff;display:grid;gap:12px}.agent-login-message span{color:#ffd800;font-weight:900;text-transform:uppercase;letter-spacing:.16em}.agent-login-message strong{font-size:clamp(42px,5vw,76px);line-height:1.02;letter-spacing:-.04em}.agent-dashboard-page{margin:0;background:#f4f7fb}.agent-dashboard-header{min-height:82px;padding:0 clamp(22px,5vw,72px);display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #e4ebf3;position:sticky;top:0;z-index:10}.agent-dashboard-header>div{display:flex;align-items:center;gap:16px}.agent-name{font-weight:800;color:#15385d}.agent-dashboard{max-width:1300px;margin:0 auto;padding:54px 28px 80px}.agent-welcome h1{font-size:clamp(38px,5vw,62px);margin:.2em 0}.agent-welcome p{color:#65798c}.agent-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:34px 0}.agent-stats article,.agent-panel{background:#fff;border:1px solid #e2e9f1;border-radius:18px;box-shadow:0 10px 30px rgba(28,56,91,.05)}.agent-stats article{padding:24px;display:grid;gap:8px}.agent-stats span{color:#66798c;font-weight:700}.agent-stats strong{font-size:36px;color:#0d3a73}.agent-stats small{color:#6f8192}.agent-grid{display:grid;grid-template-columns:1.5fr .8fr;gap:18px}.agent-panel{padding:26px}.panel-head{display:flex;justify-content:space-between;align-items:center}.panel-head h2{margin:0 0 18px}.text-action{border:0;background:none;color:#1652a3;font-weight:800;cursor:pointer}.demo-table{display:grid}.demo-table>div{display:grid;grid-template-columns:1.2fr 1fr auto;gap:16px;align-items:center;padding:16px 0;border-top:1px solid #edf1f6}.demo-table span{color:#62778b}.demo-table em{font-style:normal;background:#fff4b8;color:#705900;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900}.quick-actions{display:grid;gap:10px}.quick-actions button{border:1px solid #dbe4ee;background:#f8fbff;color:#123d72;text-align:left;padding:15px 16px;border-radius:12px;font:inherit;font-weight:800;cursor:pointer}.quick-actions button:hover{background:#fff4b8;border-color:#ffd800}
@media(max-width:900px){.agent-login-shell{grid-template-columns:1fr}.agent-login-visual{display:none}.agent-login-card{min-height:100vh}.agent-stats{grid-template-columns:repeat(2,1fr)}.agent-grid{grid-template-columns:1fr}}
@media(max-width:560px){.agent-login-card{padding:32px 22px}.agent-login-help{flex-direction:column}.agent-dashboard-header{padding:14px 18px}.agent-name{display:none}.agent-dashboard{padding:36px 18px 60px}.agent-stats{grid-template-columns:1fr}.demo-table>div{grid-template-columns:1fr;gap:6px}.demo-table em{width:max-content}}

/* V28 - Privacy / Cookie public website */
.privacy-footer .footer-grid{gap:22px;align-items:flex-start}.privacy-footer .footer-links{display:flex;gap:14px;flex-wrap:wrap;align-items:center}.footer-cookie-link,.text-link-button{border:0;background:none;padding:0;font:inherit;color:inherit;text-decoration:underline;cursor:pointer}.footer-company{max-width:720px;line-height:1.55;font-size:.84rem}.legal-body{max-width:920px}.legal-body h2{margin-top:34px;margin-bottom:10px}.legal-body h3{margin:0 0 8px}.legal-body p{line-height:1.75}.legal-updated{padding:12px 16px;border-left:4px solid #f3c300;background:#f7f8fa}.cookie-policy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:22px 0}.cookie-policy-grid>div{padding:20px;border:1px solid rgba(0,0,0,.1);border-radius:12px;background:#fff}.privacy-checks{display:grid;gap:13px;margin:18px 0}.privacy-check{display:flex;align-items:flex-start;gap:10px;line-height:1.45}.privacy-check input{margin-top:4px;flex:0 0 auto}.privacy-check a{text-decoration:underline}.privacy-check em{font-size:.88em}.cookie-banner{position:fixed;z-index:9998;left:18px;right:18px;bottom:18px;background:#fff;border:1px solid rgba(0,0,0,.16);box-shadow:0 16px 55px rgba(0,0,0,.24);border-radius:16px}.cookie-banner-inner{max-width:1240px;margin:auto;padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center}.cookie-copy h2{margin:0 0 8px;font-size:1.25rem}.cookie-copy p{margin:0;line-height:1.5}.cookie-links{margin-top:8px!important;font-size:.9rem}.cookie-actions,.cookie-modal-actions{display:flex;gap:10px;flex-wrap:wrap}.btn-ghost-dark{border:1px solid #18304c;background:#fff;color:#18304c}.cookie-modal-open{overflow:hidden}.cookie-modal-backdrop{position:fixed;inset:0;z-index:10000;background:rgba(8,20,34,.64);display:grid;place-items:center;padding:20px}.cookie-modal{position:relative;width:min(680px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.35)}.cookie-modal h2{margin:2px 0 8px}.cookie-close{position:absolute;right:16px;top:12px;border:0;background:none;font-size:2rem;cursor:pointer}.cookie-options{display:grid;gap:10px;margin:20px 0}.cookie-option{display:flex;justify-content:space-between;gap:20px;align-items:center;border:1px solid rgba(0,0,0,.11);border-radius:12px;padding:15px}.cookie-option span{display:grid;gap:4px}.cookie-option small{line-height:1.35;color:#5d6670}.cookie-option input{width:20px;height:20px}.cookie-option.locked{background:#f6f7f8}.cookie-modal-actions{margin-top:18px}
@media(max-width:820px){.cookie-banner-inner{grid-template-columns:1fr}.cookie-actions .btn,.cookie-modal-actions .btn{flex:1 1 140px}.cookie-policy-grid{grid-template-columns:1fr}.privacy-footer .footer-grid{display:grid}.cookie-banner{left:10px;right:10px;bottom:10px}.cookie-banner-inner{padding:17px}.cookie-modal{padding:22px 18px}.cookie-option{align-items:flex-start}}

/* V32.6 - logo reale: stessa impronta del marchio V31, nessuna modifica al layout */
.brand-symbol{display:block;width:49px;height:49px;max-width:49px;max-height:49px;object-fit:contain;flex:0 0 49px}
.brand-footer .brand-symbol{width:49px;height:49px;max-width:49px;max-height:49px;flex-basis:49px}
@media(max-width:720px){.brand-symbol{width:42px;height:42px;max-width:42px;max-height:42px;flex-basis:42px}.brand-footer .brand-symbol{width:42px;height:42px;max-width:42px;max-height:42px;flex-basis:42px}}

/* V33.1 - homepage desktop compatta in una schermata + brand riallineato */
@media (min-width:1181px){
  .nav-wrap{min-height:78px}
  .brand{height:58px;align-items:center;gap:9px}
  .brand-symbol{width:56px;height:56px;max-width:56px;max-height:56px;flex:0 0 56px;object-fit:contain;object-position:center center}
  .brand-text{justify-content:center;transform:translateY(1px)}
  .brand-text strong{font-size:1.78rem}
  .brand-text small{margin-top:5px}
  .main-nav a{padding:28px 0 24px}
  .main-nav>a.active:after{bottom:18px}

  .home-hero{min-height:clamp(545px,calc(100vh - 246px),635px)}
  .home-grid{min-height:clamp(545px,calc(100vh - 246px),635px);padding:38px 0 72px;gap:54px}
  .compact-copy h1{font-size:clamp(3.35rem,4.35vw,5.05rem);margin:.12em 0 .22em}
  .eyebrow{margin:0 0 10px}
  .lead{font-size:1.08rem}
  .hero-cta{margin-top:22px}
  .feature-card{margin-top:14px;padding:20px 22px}

  .home-quick{margin-top:-36px;padding-bottom:8px}
  .quick-grid a{min-height:82px;padding:10px 18px;grid-template-columns:32px 1fr;column-gap:10px}
  .quick-grid span{font-size:1.45rem}
  .quick-grid strong{font-size:.9rem}
  .quick-grid small{font-size:.84rem}

  .footer-grid{min-height:82px;gap:24px}
  .brand-footer{height:auto}
  .brand-footer .brand-symbol{width:46px;height:46px;max-width:46px;max-height:46px;flex-basis:46px}
  .brand-footer .brand-text strong{font-size:1.55rem}
  .brand-footer .brand-text small{font-size:.64rem;margin-top:5px}
  .privacy-footer .footer-grid{align-items:center}
  .footer-grid p{font-size:.76rem}
  .footer-grid>div:nth-child(2){font-size:.8rem}
}
\n\n/* V33.3 - homepage final polish: no white band, compact branded quick strip */
.home-page .home-quick{margin-top:-46px;padding-bottom:0;position:relative;z-index:5}
.home-page .quick-grid{background:#082c5f;border-radius:14px;box-shadow:0 10px 28px rgba(0,27,62,.20);overflow:hidden;border:1px solid rgba(255,255,255,.10)}
.home-page .quick-grid a{min-height:78px;padding:10px 18px;border-right:1px solid rgba(255,255,255,.14);background:transparent}
.home-page .quick-grid a:last-child{border-right:0}
.home-page .quick-grid a:hover{background:#0b3b79}
.home-page .quick-grid strong{color:#fff;font-size:.92rem}
.home-page .quick-grid small{color:#c9d7e8;font-size:.82rem;margin-top:1px}
.home-page .quick-grid span{color:var(--yellow-strong);font-size:1.45rem}
.home-page .site-footer{margin-top:0}
.site-header .brand-symbol{width:60px;height:60px;max-width:60px;max-height:60px;flex:0 0 60px;object-fit:cover;object-position:center center}
.site-header .brand{align-items:center}
.site-header .brand-text{transform:translateY(1px)}
@media(max-width:720px){
  .site-header .brand-symbol{width:48px;height:48px;max-width:48px;max-height:48px;flex-basis:48px}
  .home-page .home-quick{margin-top:-34px}
  .home-page .quick-grid a{min-height:70px;padding:9px 10px}
}

/* V33.4: elimina definitivamente qualsiasi banda chiara sotto il footer */
html{background:#061f46}
body.home-page{background:#061f46}
body.home-page .site-footer{margin-bottom:0}

/* V33.5 - footer piu compatto e dati centrati */
.home-page .site-footer{padding:0}
.home-page .footer-grid{min-height:64px;grid-template-columns:auto auto 1fr;gap:20px;align-items:center}
.home-page .privacy-footer .footer-grid{align-items:center}
.home-page .footer-links{justify-content:center;align-items:center}
.home-page .footer-company{max-width:none;margin:0;text-align:center;line-height:1.35;font-size:.72rem}
.home-page .brand-footer{align-self:center}
.home-page .brand-footer .brand-symbol{width:40px;height:40px;max-width:40px;max-height:40px;flex-basis:40px}
.home-page .brand-footer .brand-text strong{font-size:1.35rem}
.home-page .brand-footer .brand-text small{font-size:.58rem;margin-top:4px}
@media(max-width:1180px){
  .home-page .footer-grid{min-height:72px}
}
@media(max-width:820px){
  .home-page .footer-grid{grid-template-columns:1fr;gap:10px;padding:16px 0}
  .home-page .brand-footer,.home-page .footer-links,.home-page .footer-company{justify-self:center;text-align:center}
}

/* V33.6 - footer desktop realmente compatto e contenuti centrati */
@media(min-width:821px){
  body.home-page .site-footer{height:58px;min-height:58px;max-height:58px;padding:0;overflow:hidden;display:flex;align-items:center}
  body.home-page .site-footer>.footer-grid{height:58px;min-height:58px;max-height:58px;width:min(1460px,calc(100% - 64px));padding:0;margin:0 auto;display:grid;grid-template-columns:250px 360px minmax(0,1fr);gap:18px;align-items:center}
  body.home-page .brand-footer{height:58px;display:flex;align-items:center;align-self:center}
  body.home-page .footer-links{height:58px;display:flex;align-items:center;justify-content:center;gap:18px;white-space:nowrap}
  body.home-page .footer-company{height:auto;max-width:760px;margin:0 auto;text-align:center;align-self:center;justify-self:center;line-height:1.25;font-size:.70rem}
}

/* V33.7 - dati societari footer su una sola riga desktop */
@media(min-width:821px){
  body.home-page .site-footer>.footer-grid{grid-template-columns:230px 340px minmax(0,1fr);gap:14px;width:min(1540px,calc(100% - 40px))}
  body.home-page .footer-company{max-width:none;width:100%;margin:0;text-align:center;white-space:nowrap;line-height:1;font-size:.64rem;letter-spacing:-.01em}
}

/* V33.8 - footer desktop basso: nessuno spazio blu inutile */
@media(min-width:821px){
  body.home-page .site-footer{height:50px!important;min-height:50px!important;max-height:50px!important;padding:0!important;margin:0!important;overflow:hidden!important;display:flex!important;align-items:center!important}
  body.home-page .site-footer>.footer-grid{height:50px!important;min-height:50px!important;max-height:50px!important;padding:0!important;margin:0 auto!important;align-items:center!important}
  body.home-page .brand-footer{height:50px!important;min-height:50px!important;align-items:center!important}
  body.home-page .footer-links{height:50px!important;min-height:50px!important;align-items:center!important}
  body.home-page .footer-company{margin:0!important;align-self:center!important;line-height:1!important;white-space:nowrap!important}
  body.home-page .brand-footer .brand-symbol{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;flex-basis:34px!important}
  body.home-page .brand-footer .brand-text strong{font-size:1.18rem!important;line-height:1!important}
  body.home-page .brand-footer .brand-text small{font-size:.52rem!important;margin-top:2px!important;line-height:1!important}
}

/* V33.9 - desktop: footer realmente 40px, nessuna coda blu vuota */
@media(min-width:1181px){
  html{background:#061f46}
  body.home-page{
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    flex-direction:column;
    background:#061f46;
  }
  body.home-page .site-header{flex:0 0 auto}
  body.home-page .home-main{
    flex:1 1 auto;
    min-height:0;
    display:flex;
  }
  body.home-page .home-hero{
    flex:1 1 auto;
    min-height:0!important;
    width:100%;
    display:flex;
    flex-direction:column;
  }
  body.home-page .home-grid{
    flex:1 1 auto;
    min-height:0!important;
  }
  body.home-page .home-quick{
    flex:0 0 auto;
  }
  body.home-page .site-footer{
    flex:0 0 40px!important;
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    padding:0!important;
    margin:0!important;
    overflow:hidden!important;
    display:flex!important;
    align-items:center!important;
  }
  body.home-page .site-footer>.footer-grid{
    height:40px!important;
    min-height:40px!important;
    max-height:40px!important;
    width:min(1560px,calc(100% - 32px))!important;
    grid-template-columns:205px 330px minmax(0,1fr)!important;
    gap:14px!important;
    padding:0!important;
    margin:0 auto!important;
    align-items:center!important;
  }
  body.home-page .brand-footer,
  body.home-page .footer-links{
    height:40px!important;
    min-height:40px!important;
    display:flex!important;
    align-items:center!important;
  }
  body.home-page .brand-footer .brand-symbol{
    width:28px!important;
    height:28px!important;
    max-width:28px!important;
    max-height:28px!important;
    flex-basis:28px!important;
  }
  body.home-page .brand-footer .brand-text strong{
    font-size:1.02rem!important;
    line-height:.95!important;
  }
  body.home-page .brand-footer .brand-text small{
    font-size:.46rem!important;
    margin-top:1px!important;
    line-height:.95!important;
  }
  body.home-page .footer-links{
    justify-content:center!important;
    gap:16px!important;
    white-space:nowrap!important;
    font-size:.72rem!important;
  }
  body.home-page .footer-company{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    align-self:center!important;
    justify-self:center!important;
    text-align:center!important;
    white-space:nowrap!important;
    line-height:1!important;
    font-size:.59rem!important;
    letter-spacing:-.012em!important;
  }
}
