/* Release finale — griglia, header e contenuti uniformi */
:root{
  --release-width:1180px;
  --release-gutter:24px;
  --release-header-height:78px;
}
html,body{max-width:100%!important;overflow-x:clip!important}
body.site-page{padding-top:var(--release-header-height)!important}
body.site-page *,body.site-page *::before,body.site-page *::after{box-sizing:border-box}

/* HEADER IDENTICO IN TUTTE LE PAGINE STANDARD */
html body.site-page > header.site-header{
  position:fixed!important;inset:0 0 auto 0!important;z-index:5000!important;
  width:100%!important;height:var(--release-header-height)!important;min-height:var(--release-header-height)!important;
  margin:0!important;padding:0!important;
  background:color-mix(in srgb,var(--site-bg) 92%,transparent)!important;
  border-bottom:1px solid var(--site-line)!important;
  box-shadow:0 1px 0 var(--site-line),0 8px 24px rgba(23,34,56,.055)!important;
  -webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important;
  font-family:Inter,'Segoe UI',Arial,sans-serif!important;font-size:16px!important;line-height:1.2!important;
}
html body.site-page > header.site-header > .site-header-inner{
  width:min(var(--release-width),calc(100% - (var(--release-gutter) * 2)))!important;
  max-width:var(--release-width)!important;height:var(--release-header-height)!important;min-height:var(--release-header-height)!important;
  margin:0 auto!important;padding:0!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:22px!important;
}
html body.site-page > header.site-header .site-brand{
  flex:0 0 290px!important;min-width:0!important;margin:0!important;padding:0!important;line-height:1.08!important;
}
html body.site-page > header.site-header .site-brand-name{
  display:block!important;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;white-space:nowrap!important;
}
html body.site-page > header.site-header .site-brand-role{
  display:block!important;font-size:12px!important;line-height:1.2!important;margin-top:5px!important;white-space:nowrap!important;
}
html body.site-page > header.site-header .site-nav{
  flex:1 1 auto!important;display:flex!important;align-items:center!important;justify-content:center!important;
  gap:24px!important;margin:0!important;padding:0!important;font-size:14px!important;font-weight:750!important;line-height:1.2!important;
}
html body.site-page > header.site-header .site-nav a{margin:0!important;padding:8px 0!important;white-space:nowrap!important}
html body.site-page > header.site-header .site-actions{
  flex:0 0 auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;
  gap:9px!important;margin:0!important;padding:0!important;
}
html body.site-page > header.site-header .site-socials{display:flex!important;align-items:center!important;gap:7px!important;margin:0!important;padding:0!important}
html body.site-page > header.site-header .site-theme-toggle,
html body.site-page > header.site-header .site-socials a,
html body.site-page > header.site-header .site-menu-toggle{
  width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;
  margin:0!important;padding:0!important;border-radius:50%!important;
}
html body.site-page > header.site-header .site-theme-toggle svg,
html body.site-page > header.site-header .site-socials svg,
html body.site-page > header.site-header .site-menu-toggle svg{width:18px!important;height:18px!important}
html body.site-page > header.site-header .site-call{
  height:44px!important;min-height:44px!important;margin:0!important;padding:0 20px!important;
  border-radius:999px!important;font-size:14px!important;line-height:1!important;white-space:nowrap!important;
}

/* UN SOLO ASSE PER TUTTE LE PAGINE E PER TUTTI I BOX */
body.site-page .site-header-inner,
body.site-page .site-footer-inner,
body.site-page .site-breadcrumb,
body.site-page .site-container,
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(--release-width),calc(100% - (var(--release-gutter) * 2)))!important;
  max-width:var(--release-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,
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 .booking-page-main .booking-shell,
body.site-page .form-main .form-card,
body.site-page .audit-page-main .audit-shell,
body.site-page.page-policy .policy{
  width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;min-width:0!important;
}

/* HOMEPAGE: i riquadri principali occupano tutti lo stesso asse. */
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{
  width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;min-width: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{
  width:min(var(--release-width),calc(100% - (var(--release-gutter) * 2)))!important;
  max-width:var(--release-width)!important;padding-left:0!important;padding-right:0!important;
}

/* CHI SONO: contenuto più raccolto e fotografia meno dominante. */
body.page-home .about-shell{
  grid-template-columns:minmax(0,390px) minmax(0,1fr)!important;
  gap:52px!important;padding:38px 46px!important;align-items:center!important;
}
body.page-home .about-visual{width:100%!important;max-width:390px!important;justify-self:center!important;margin:0!important;min-width:0!important}
body.page-home .about-photo{width:100%!important;max-width:390px!important;aspect-ratio:4/5!important;margin:0 auto!important;border-radius:22px!important}
body.page-home .about-content{min-width:0!important;padding:10px 8px 10px 0!important}
body.page-home .about-content h2{font-size:clamp(34px,3.45vw,44px)!important;line-height:1.06!important;margin-bottom:20px!important}
body.page-home .about-content .about-lead{font-size:17px!important;line-height:1.58!important;padding-left:17px!important}
body.page-home .about-content p{font-size:15.5px!important;line-height:1.66!important;margin-bottom:14px!important}
body.page-home .about-audience{gap:8px!important;margin-top:20px!important}
body.page-home .about-audience span{min-height:36px!important;padding:8px 13px!important;font-size:12px!important}

/* RECENSIONI: più aria interna, ma contenuto leggermente più compatto. */
body.page-home .testimonials-shell{padding:42px 46px 40px!important}
body.page-home .testimonials-shell .section-head{max-width:760px!important;margin:0 auto 28px!important}
body.page-home .testimonials-shell .section-head h2{font-size:clamp(34px,3.6vw,44px)!important;line-height:1.08!important}
body.page-home .testimonials-shell .review-badges{gap:12px!important;flex-wrap:wrap!important}
body.page-home .testimonials-shell .review-badge{min-height:43px!important;padding:9px 17px!important;font-size:13px!important}
body.page-home .testimonials-shell .testi-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;min-width:0!important}
body.page-home .testimonials-shell .testi-card{min-width:0!important;min-height:205px!important;padding:26px 24px!important;overflow:hidden!important}
body.page-home .testimonials-shell .testi-card p{font-size:15.5px!important;line-height:1.58!important;overflow-wrap:anywhere!important}
body.page-home .testimonials-shell .who{font-size:12px!important;overflow-wrap:anywhere!important}
body.page-home .reviews-source{font-size:12px!important;line-height:1.5!important;margin-top:24px!important;padding-inline:12px!important}

/* PRENOTAZIONI: niente doppio rientro rispetto all'asse della pagina. */
body.page-booking .booking-page-main{padding-top:34px!important;padding-bottom:88px!important}
body.page-booking .booking-page-main .booking-shell{width:100%!important;max-width:100%!important;padding:48px!important}
body.page-booking .booking-options{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}

/* SIMULATORE: intro, parametri, risultati, tabelle e footer con la stessa larghezza. */
body.page-simulator .simulator-main{
  width:min(var(--release-width),calc(100% - (var(--release-gutter) * 2)))!important;
  max-width:var(--release-width)!important;padding:24px 0 78px!important;margin-left:auto!important;margin-right:auto!important;
}
body.page-simulator .simulator-main > .sim-intro,
body.page-simulator .simulator-main > .grid,
body.page-simulator .simulator-main > .site-footer,
body.page-simulator .simulator-main .panel,
body.page-simulator .simulator-main .results,
body.page-simulator .simulator-main .hero,
body.page-simulator .simulator-main .cards-row,
body.page-simulator .simulator-main .pdf-actions,
body.page-simulator .simulator-main details.ref{
  width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important;min-width:0!important;
}
body.page-simulator .simulator-main > .sim-intro{margin-bottom:28px!important}
body.page-simulator .simulator-main > .grid{display:block!important}
body.page-simulator .simulator-main .panel{margin-bottom:28px!important}
body.page-simulator .simulator-main .results{display:block!important}
body.page-simulator .simulator-main > .site-footer{margin-top:30px!important}
body.page-simulator .simulator-main > .site-footer .site-footer-inner{width:100%!important;max-width:100%!important;margin:0!important}
body.page-simulator .simulator-main .sim-intro .titleblock h1{font-size:clamp(38px,4.6vw,54px)!important;line-height:1.05!important}
body.page-simulator .simulator-main .sim-intro .titleblock p{font-size:16px!important;line-height:1.58!important}
body.page-simulator .simulator-main .panel h2{font-size:29px!important;line-height:1.15!important}
body.page-simulator .simulator-main .field,
body.page-simulator .simulator-main .field-head,
body.page-simulator .simulator-main .cards,
body.page-simulator .simulator-main .card{min-width:0!important;max-width:100%!important}

/* Protezioni generali contro tagli e sovrapposizioni. */
body.site-page img,body.site-page iframe,body.site-page svg{max-width:100%}
body.site-page h1,body.site-page h2,body.site-page h3,body.site-page p,body.site-page a,body.site-page span{overflow-wrap:break-word}
body.site-page .site-nav a,body.site-page .site-brand-name,body.site-page .site-brand-role{overflow-wrap:normal}

@media(max-width:1120px){
  :root{--release-gutter:20px}
  html body.site-page > header.site-header > .site-header-inner{gap:14px!important}
  html body.site-page > header.site-header .site-brand{flex-basis:255px!important}
  html body.site-page > header.site-header .site-nav{gap:16px!important}
  html body.site-page > header.site-header .site-call{padding-inline:16px!important}
  body.page-home .about-shell{grid-template-columns:minmax(0,350px) minmax(0,1fr)!important;gap:40px!important;padding:34px 38px!important}
  body.page-home .about-visual,body.page-home .about-photo{max-width:350px!important}
}
@media(max-width:980px){
  :root{--release-header-height:70px;--release-gutter:18px}
  body.site-page{padding-top:var(--release-header-height)!important}
  html body.site-page > header.site-header{height:var(--release-header-height)!important;min-height:var(--release-header-height)!important}
  html body.site-page > header.site-header > .site-header-inner{height:var(--release-header-height)!important;min-height:var(--release-header-height)!important;gap:10px!important}
  html body.site-page > header.site-header .site-brand{flex:1 1 auto!important;overflow:hidden!important}
  html body.site-page > header.site-header .site-brand-name{font-size:20px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body.site-page > header.site-header .site-brand-role{font-size:11px!important;overflow:hidden!important;text-overflow:ellipsis!important}
  html body.site-page > header.site-header .site-nav,
  html body.site-page > header.site-header .site-socials{display:none!important}
  html body.site-page > header.site-header .site-menu-toggle{display:grid!important}
  body.page-home .about-shell{grid-template-columns:1fr!important;gap:28px!important;padding:28px!important}
  body.page-home .about-visual{max-width:390px!important;margin-inline:auto!important}
  body.page-home .about-photo{max-width:390px!important}
  body.page-home .about-content{padding:4px!important}
  body.page-home .testimonials-shell .testi-grid{grid-template-columns:1fr!important}
  body.page-booking .booking-page-main .booking-shell{padding:34px 30px!important}
}
@media(max-width:640px){
  :root{--release-gutter:14px}
  html body.site-page > header.site-header > .site-header-inner{width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;gap:8px!important}
  html body.site-page > header.site-header .site-brand-name{font-size:18px!important}
  html body.site-page > header.site-header .site-brand-role{display:none!important}
  html body.site-page > header.site-header .site-theme-toggle,
  html body.site-page > header.site-header .site-menu-toggle{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  html body.site-page > header.site-header .site-call{height:40px!important;min-height:40px!important;padding:0 13px!important;font-size:12px!important}
  body.site-page .site-header-inner,
  body.site-page .site-footer-inner,
  body.site-page .site-breadcrumb,
  body.site-page .site-container,
  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.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{width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important}
  body.page-home .about-shell{padding:16px!important;border-radius:22px!important;gap:22px!important}
  body.page-home .about-visual,body.page-home .about-photo{max-width:100%!important}
  body.page-home .about-content{padding:6px 4px 8px!important}
  body.page-home .about-content h2{font-size:31px!important;margin-bottom:18px!important}
  body.page-home .about-content .about-lead{font-size:16px!important;line-height:1.55!important}
  body.page-home .about-content p{font-size:15px!important;line-height:1.62!important}
  body.page-home .testimonials-shell{padding:22px 18px!important;border-radius:22px!important}
  body.page-home .testimonials-shell .section-head{margin-bottom:23px!important}
  body.page-home .testimonials-shell .section-head h2{font-size:31px!important}
  body.page-home .testimonials-shell .review-badges{display:grid!important;grid-template-columns:1fr!important;width:100%!important}
  body.page-home .testimonials-shell .review-badge{width:100%!important;max-width:100%!important;justify-content:center!important}
  body.page-home .testimonials-shell .testi-card{min-height:0!important;padding:22px 18px!important}
  body.page-booking .booking-page-main{padding-top:18px!important;padding-bottom:64px!important}
  body.page-booking .booking-page-main .booking-shell{padding:25px 18px!important;border-radius:22px!important}
  body.page-simulator .simulator-main{width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;padding:15px 0 62px!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){
  html body.site-page > header.site-header .site-brand-name{font-size:17px!important}
  html body.site-page > header.site-header .site-call{display:none!important}
}
