/* Uniformità definitiva — header, griglia, margini e responsive */
:root{
  --site-page-width:1180px!important;
  --site-gutter:24px!important;
  --site-header-height:78px!important;
  --site-page-top:30px;
  --site-page-bottom:82px;
}
html,body{max-width:100%!important;overflow-x:clip!important}
body.site-page{font-size:16px!important;padding-top:var(--site-header-height)!important}
body.site-page *{box-sizing:border-box}

/* Stessa barra, stesso asse e stesse misure in ogni pagina. */
body.site-page>.site-header{
  position:fixed!important;top:0!important;right:0!important;left:0!important;width:100%!important;
  height:var(--site-header-height)!important;min-height:var(--site-header-height)!important;
  margin:0!important;padding:0!important;z-index:5000!important;
  font-family:Inter,'Segoe UI',Arial,sans-serif!important;font-size:16px!important;line-height:1.2!important;
  background:color-mix(in srgb,var(--site-bg) 92%,transparent)!important;
  border-bottom:1px solid var(--site-line)!important;
  -webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;
  box-shadow:0 1px 0 var(--site-line),0 8px 24px rgba(23,34,56,.055)!important;
}
body.site-page>.site-header>.site-header-inner{
  width:min(var(--site-page-width),calc(100% - (var(--site-gutter) * 2)))!important;
  max-width:var(--site-page-width)!important;height:var(--site-header-height)!important;min-height:var(--site-header-height)!important;
  margin:0 auto!important;padding:0!important;display:grid!important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:center!important;gap:24px!important;
}
body.site-page>.site-header .site-brand{justify-self:start!important;margin:0!important;padding:0!important;line-height:1.08!important}
body.site-page>.site-header .site-brand-name{font-family:Georgia,'Times New Roman',serif!important;font-size:25px!important;font-weight:700!important;line-height:1.08!important;letter-spacing:-.01em!important}
body.site-page>.site-header .site-brand-role{font-size:12px!important;line-height:1.2!important;margin-top:5px!important}
body.site-page>.site-header .site-nav{justify-self:center!important;display:flex!important;align-items:center!important;gap:24px!important;font-size:14px!important;font-weight:750!important;line-height:1.2!important;margin:0!important;padding:0!important}
body.site-page>.site-header .site-nav a{padding:8px 0!important;margin:0!important}
body.site-page>.site-header .site-actions{justify-self:end!important;display:flex!important;align-items:center!important;gap:9px!important;margin:0!important;padding:0!important}
body.site-page>.site-header .site-theme-toggle,
body.site-page>.site-header .site-socials a,
body.site-page>.site-header .site-menu-toggle{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;margin:0!important;border-radius:50%!important}
body.site-page>.site-header .site-theme-toggle svg,
body.site-page>.site-header .site-socials svg,
body.site-page>.site-header .site-menu-toggle svg{width:18px!important;height:18px!important}
body.site-page>.site-header .site-socials{display:flex!important;align-items:center!important;gap:5px!important;margin:0!important;padding:0!important}
body.site-page>.site-header .site-call{height:44px!important;min-height:44px!important;padding:0 20px!important;margin:0!important;border-radius:999px!important;font-size:14px!important;line-height:1!important}

/* Un unico asse esterno per header, breadcrumb, footer, pagine e box. */
body.site-page .site-container,
body.site-page .site-header-inner,
body.site-page .site-footer-inner,
body.site-page .site-breadcrumb,
body.site-page .wrap,
body.site-page .booking-page-main,
body.site-page .form-main,
body.site-page .audit-page-main,
body.site-page .simulator-main,
body.site-page.page-policy>main,
body.site-page .thanks-main,
body.site-page .not-found{
  width:min(var(--site-page-width),calc(100% - (var(--site-gutter) * 2)))!important;
  max-width:var(--site-page-width)!important;margin-left:auto!important;margin-right:auto!important;min-width:0!important;
}
body.site-page .site-breadcrumb{margin-top:20px!important;margin-bottom:0!important;padding:0!important}
body.site-page .wrap{padding-left:0!important;padding-right:0!important}
body.site-page .booking-page-main,
body.site-page .form-main,
body.site-page .audit-page-main,
body.site-page .simulator-main,
body.site-page.page-policy>main{padding-left:0!important;padding-right:0!important}
body.site-page .form-main>.site-container,
body.site-page .audit-page-main>.site-container{width:100%!important;max-width:100%!important}
body.site-page .booking-page-main .booking-shell,
body.site-page .form-card,
body.site-page .audit-page-main .audit-shell,
body.site-page .simulator-main>.sim-intro,
body.site-page .simulator-main>.grid,
body.site-page.page-policy .policy{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
body.site-page .booking-page-main{padding-top:34px!important;padding-bottom:88px!important}
body.site-page .form-main{padding-top:54px!important;padding-bottom:88px!important}
body.site-page .audit-page-main{padding-top:34px!important;padding-bottom:88px!important}
body.site-page .simulator-main{padding-top:24px!important;padding-bottom:78px!important}
body.site-page.page-policy>main{padding-top:38px!important;padding-bottom:88px!important}
body.site-page .site-footer{width:100%!important;margin:0!important}

/* Il simulatore segue la stessa tipografia di base del resto del sito. */
body.page-simulator .simulator-main{font-size:16px!important}
body.page-simulator .simulator-main .sim-intro .titleblock h1{font-size:clamp(38px,5.2vw,56px)!important;line-height:1.06!important}
body.page-simulator .simulator-main .sim-intro .titleblock p{font-size:17px!important;line-height:1.6!important}
body.page-simulator .simulator-main .panel h2{font-size:30px!important;line-height:1.15!important}

/* Coefficiente solo informativo: è scelto esclusivamente dal menu Settore. */
body.page-simulator .coefficient-locked{cursor:default!important}
body.page-simulator .coefficient-locked input{pointer-events:none!important;user-select:none!important}
body.page-simulator #coeff{opacity:.45!important;cursor:not-allowed!important;pointer-events:none!important;filter:saturate(.6)!important}
body.page-simulator #coeff::-webkit-slider-thumb{box-shadow:none!important}
body.page-simulator .coefficient-help{grid-column:2!important;margin-top:-3px!important;font-size:12px!important}

@media(max-width:1120px){
  :root{--site-gutter:20px!important}
  body.site-page>.site-header>.site-header-inner{gap:14px!important}
  body.site-page>.site-header .site-nav{gap:16px!important}
  body.site-page>.site-header .site-call{padding:0 16px!important}
}
@media(max-width:980px){
  :root{--site-header-height:70px!important;--site-gutter:18px!important}
  body.site-page{padding-top:var(--site-header-height)!important}
  body.site-page>.site-header{height:var(--site-header-height)!important;min-height:var(--site-header-height)!important}
  body.site-page>.site-header>.site-header-inner{height:var(--site-header-height)!important;min-height:var(--site-header-height)!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}
  body.site-page>.site-header .site-nav,
  body.site-page>.site-header .site-socials{display:none!important}
  body.site-page>.site-header .site-actions{justify-self:end!important}
  body.site-page>.site-header .site-brand-name{font-size:20px!important}
  body.site-page>.site-header .site-brand-role{font-size:11px!important}
  body.site-page>.site-header .site-menu-toggle{display:grid!important}
  body.site-page .booking-page-main .booking-shell{padding:34px 30px!important;border-radius:25px!important}
  body.page-simulator .coefficient-help{grid-column:1!important}
}
@media(max-width:640px){
  :root{--site-gutter:14px!important}
  body.site-page>.site-header>.site-header-inner{width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;gap:8px!important}
  body.site-page>.site-header .site-brand-name{font-size:18px!important}
  body.site-page>.site-header .site-brand-role{display:none!important}
  body.site-page>.site-header .site-theme-toggle,
  body.site-page>.site-header .site-menu-toggle{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  body.site-page>.site-header .site-call{height:40px!important;min-height:40px!important;padding:0 13px!important;font-size:12px!important}
  body.site-page .site-container,
  body.site-page .site-footer-inner,
  body.site-page .site-breadcrumb,
  body.site-page .wrap,
  body.site-page .booking-page-main,
  body.site-page .form-main,
  body.site-page .audit-page-main,
  body.site-page .simulator-main,
  body.site-page.page-policy>main,
  body.site-page .thanks-main,
  body.site-page .not-found{width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important}
  body.site-page .site-breadcrumb{margin-top:14px!important}
  body.site-page .booking-page-main{padding-top:18px!important;padding-bottom:64px!important}
  body.site-page .form-main{padding-top:38px!important;padding-bottom:64px!important}
  body.site-page .audit-page-main{padding-top:20px!important;padding-bottom:64px!important}
  body.site-page .simulator-main{padding-top:15px!important;padding-bottom:62px!important}
  body.site-page.page-policy>main{padding-top:28px!important;padding-bottom:64px!important}
  body.site-page .booking-page-main .booking-shell{width:100%!important;padding:25px 18px!important;border-radius:22px!important}
  body.page-simulator .simulator-main .sim-intro .titleblock h1{font-size:34px!important}
  body.page-simulator .simulator-main .sim-intro .titleblock p{font-size:15px!important}
  body.page-simulator .simulator-main .panel h2{font-size:26px!important}
}
@media(max-width:430px){body.site-page>.site-header .site-call{display:none!important}}

/* Homepage: niente doppi margini. Ogni riquadro usa esattamente la griglia comune. */
body.page-home .sim-card,
body.page-home .frontalieri-card,
body.page-home .audit-shell,
body.page-home .about-shell,
body.page-home .booking-shell,
body.page-home .testimonials-shell,
body.page-home .location-section,
body.page-home #servizi .carousel{
  width:100%!important;
  max-width:100%!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.page-home .sim-callout>.wrap,
body.page-home .frontalieri>.wrap,
body.page-home .audit-spotlight>.wrap,
body.page-home .about>.wrap,
body.page-home .booking-contact-section>.wrap,
body.page-home #testimonianze>.wrap,
body.page-home .location-contact-section>.wrap,
body.page-home #servizi>.wrap{
  width:min(var(--site-page-width),calc(100% - (var(--site-gutter) * 2)))!important;
  max-width:var(--site-page-width)!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
}
@media(max-width:640px){
  body.page-home .sim-callout>.wrap,
  body.page-home .frontalieri>.wrap,
  body.page-home .audit-spotlight>.wrap,
  body.page-home .about>.wrap,
  body.page-home .booking-contact-section>.wrap,
  body.page-home #testimonianze>.wrap,
  body.page-home .location-contact-section>.wrap,
  body.page-home #servizi>.wrap{
    width:calc(100% - 28px)!important;
    max-width:calc(100% - 28px)!important;
  }
}
