/* Aggiornamento mobile e SEO 16/10/2026. Solo presentazione. */
.portal-quick-quote{padding:22px 16px;background:#edf7ff;border-block:1px solid #d0e7fa;text-align:center}
.portal-quick-quote .wrap{max-width:850px;margin:auto}
.portal-main-cta{display:inline-flex;align-items:center;justify-content:center;margin:8px auto 12px;padding:16px 22px;min-height:50px;max-width:100%;border-radius:12px;color:#fff!important;background:#0868b3;font:bold 18px/1.25 Arial,sans-serif;text-decoration:none!important}
.portal-main-cta:hover,.portal-main-cta:focus-visible{background:#064f89}
.portal-local-intro{max-width:850px;margin:14px auto 0;text-align:left;background:#fff;border-radius:13px;padding:16px 18px}
.portal-local-intro h2{font-size:clamp(19px,3.8vw,25px);color:#123f6b;margin:0 0 9px;line-height:1.25}
.portal-local-intro p{font-size:16px;line-height:1.55;margin:6px 0;color:#274357}
.portal-local-intro .portal-free-note{color:#0c6940;font-weight:700}
.portal-seo-details{padding:0!important;max-width:1140px;margin:16px auto;border:1px solid #d2e5ef;border-radius:12px;background:#fff;overflow:hidden}
.portal-seo-details>summary{list-style-position:inside;padding:19px;color:#123f6b;background:#edf5fb;font:bold 18px/1.4 Arial,sans-serif;cursor:pointer;min-height:55px}
.portal-seo-details>summary:focus-visible{outline:3px solid #1166aa;outline-offset:-3px}
.portal-seo-details>.wrap{padding:20px!important}
.portal-seo-details h2{font-size:clamp(19px,4vw,26px);line-height:1.3}
.portal-seo-details p{line-height:1.65}
.portal-international-cta{padding:22px 16px;background:#f2f8fc;text-align:center}
.portal-international-cta h2{font-size:clamp(22px,4vw,28px)}
.portal-verified-badge{display:inline-block;border:1px solid #c0e8ce;background:#e7f7ed;color:#155c37;border-radius:100px;padding:4px 9px;margin:4px 0;font:bold 12px Arial,sans-serif}
@media(max-width:680px){
 html{scroll-padding-top:10px}
 .portal-quick-quote{padding:14px 12px}.portal-main-cta{width:100%;font-size:18px}
 .portal-local-intro{padding:15px 13px;margin:8px 0 0}.portal-local-intro p{font-size:16px}
 .portal-seo-details>summary{padding:17px 14px;font-size:17px}
 .portal-seo-details>.wrap{padding:14px!important}
 .tm-province>summary,.tm-region>summary{scroll-margin-top:12px}
 .territory-menu-panel .tm-results{scroll-padding-top:15px}
 .quick-page .quick-shell{padding:14px 12px 24px}
 .quick-page .quick-intro h1{font-size:27px;margin:6px 0}
 .quick-page .quick-intro p{font-size:15px;line-height:1.45}
 .quick-page .quick-form{padding:16px 13px}
 .quick-page .quick-grid{gap:13px}
 .quick-page .quick-form label{font-size:16px;line-height:1.35}
 .quick-page .quick-form :is(input,select,textarea){font-size:16px;min-height:51px}
 .quick-page .quick-form textarea{min-height:105px}
 .quick-page .quick-form legend{font-size:20px;margin:0 0 12px}
 .quick-page .quote-step{margin-bottom:13px}
 .quick-page .quick-verify{padding:12px}
 body:has(#new-request) main{padding:13px 12px!important;width:100%;max-width:100%}
 body:has(#new-request) :is(section,form){padding:14px 12px!important;margin:12px 0!important}
 body:has(#new-request) h1{font-size:26px;line-height:1.2}
 body:has(#new-request) h2{font-size:20px;line-height:1.3}
 body:has(#new-request) :is(input,textarea,select){min-height:52px;font-size:16px;line-height:1.4;width:100%;min-width:0}
 body:has(#new-request) textarea{min-height:125px}
 body:has(#new-request) button{min-height:52px;width:100%;font-size:16px;white-space:normal}
 body:has(#article-form) .ed-wrap{width:100%;max-width:100%;padding:16px 12px;box-sizing:border-box}
 body:has(#article-form) :is(input,select,textarea){min-width:0;max-width:100%;width:100%;min-height:50px;font-size:16px}
 body:has(#article-form) :is(.ed-grid,.ed-plans){grid-template-columns:minmax(0,1fr)!important}
 body:has(#article-form) :is(h1,h2){overflow-wrap:anywhere;line-height:1.25}
 body:has(#article-form) h1{font-size:27px}
 body:has(#article-form) .ed-actions{display:grid;grid-template-columns:1fr;gap:10px}
 body:has(#article-form) .ed-actions button{width:100%;min-height:50px}
}


/* CORREZIONE MOBILE V2 — dialogo Regioni e Comuni sempre davanti al menu. */
.territory-menu-overlay:not([hidden]){z-index:2147483000!important}
.territory-menu-overlay .territory-menu-panel{min-height:0}
.territory-menu-overlay .tm-results{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
@media(max-width:720px){
  body.tm-lock{overflow:hidden!important}
  .territory-menu-overlay:not([hidden]){position:fixed!important;inset:0!important}
  .territory-menu-overlay .territory-menu-panel{
    margin:0!important;width:100vw!important;max-width:100vw!important;
    height:100vh!important;height:100dvh!important;max-height:100dvh!important;
    border-radius:0!important;display:flex!important;flex-direction:column!important
  }
  .territory-menu-overlay .tm-head{padding:12px 14px 10px;gap:12px}
  .territory-menu-overlay .tm-head h2{font-size:20px;line-height:1.2}
  .territory-menu-overlay .tm-head p{font-size:12px;line-height:1.35}
  .territory-menu-overlay .tm-close{flex:0 0 46px;width:46px;height:46px}
  .territory-menu-overlay .tm-tools{flex:0 0 auto;padding:10px 12px;gap:7px}
  .territory-menu-overlay .tm-search{min-height:48px;font-size:16px;min-width:0}
  .territory-menu-overlay .tm-results{padding:10px 12px max(20px,env(safe-area-inset-bottom))}
  .territory-menu-overlay .tm-region>summary,
  .territory-menu-overlay .tm-province>summary{min-height:48px;align-items:center}
  .territory-menu-overlay .tm-municipalities{max-height:none;overflow:visible;padding:8px}
  .territory-menu-overlay .tm-municipalities a{font-size:16px;display:block;padding:10px 7px;line-height:1.3}
}

/* V38.63.1 audit: prevent overflow on narrow mobile screens */
.portal-main-cta{box-sizing:border-box}
