
:root{--ad-blue:#1769d2;--ad-navy:#172033;--ad-border:#dbe5ef;--ad-bg:#f5f8fc;--ad-muted:#6b7789}
.portal-ad-slot{box-sizing:border-box;width:100%;margin:20px auto;display:flex;justify-content:center;align-items:center;min-height:54px;position:relative;overflow:hidden}
.portal-ad-slot[data-placement="top"]{max-width:970px;min-height:90px}
.portal-ad-slot[data-placement="banner"]{max-width:970px;min-height:250px}
.portal-ad-slot[data-placement="mobile"]{display:none;max-width:320px;min-height:100px}
.portal-ad-slot[data-placement="square"]{max-width:300px;min-height:250px}.portal-ad-slot[data-placement="banner"]{display:flex;max-width:320px;min-height:100px}.portal-ad-slot[data-placement="bottom"]{display:flex;max-width:320px;min-height:50px}
.portal-ad-slot[data-placement="skyscraper"]{max-width:300px;min-height:600px}
.portal-ad-slot.empty{background:linear-gradient(90deg,#f7f9fc,#eef4fa,#f7f9fc);border:1px dashed #c7d4e2;border-radius:10px}
.portal-ad-slot.empty:after{content:'SPAZIO PUBBLICITARIO · DISPONIBILE';font-size:10px;letter-spacing:.09em;font-weight:900;color:#8795a6}
.portal-ad{display:block;width:100%;height:100%;min-height:inherit;border-radius:10px;overflow:hidden;text-decoration:none;background:#fff;border:1px solid var(--ad-border);box-shadow:0 5px 18px rgba(15,43,75,.08);position:relative;color:inherit}
.portal-ad:hover{box-shadow:0 9px 26px rgba(15,43,75,.14);transform:translateY(-1px)}
.portal-ad-label{position:absolute;top:5px;left:7px;background:rgba(0,0,0,.48);color:#fff;font:700 8px/1 Arial,sans-serif;padding:4px 6px;border-radius:4px;letter-spacing:.05em;z-index:3}
.portal-ad-content{min-height:inherit;padding:16px 22px;display:flex;align-items:center;gap:16px;background:linear-gradient(100deg,#0c2d57,#1769c2);color:#fff}
.portal-ad-logo{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:9px;padding:4px;flex:0 0 auto}
.portal-ad-copy{min-width:0;flex:1}.portal-ad-copy strong{display:block;font-size:18px;line-height:1.2}.portal-ad-copy span{display:block;font-size:13px;opacity:.93;margin-top:4px}.portal-ad-cta{background:#fff;color:#0c2d57;padding:9px 14px;border-radius:7px;font-weight:900;white-space:nowrap;font-size:12px}
.portal-ad-empty-note{display:none}
.portal-skin{display:none}
.portal-ad-slot[data-placement="square"] .portal-ad-content{display:block;padding:22px;background:linear-gradient(155deg,#0c2d57,#1769c2)}
.portal-ad-slot[data-placement="square"] .portal-ad-copy strong{font-size:20px}.portal-ad-slot[data-placement="square"] .portal-ad-copy span{font-size:13px;line-height:1.45}.portal-ad-slot[data-placement="square"] .portal-ad-cta{display:inline-block;margin-top:18px}
.portal-ad-slot[data-placement="skyscraper"] .portal-ad-content{height:600px;display:flex;align-items:flex-end;padding:20px;background:linear-gradient(180deg,#0c2d57 0%,#1769c2 65%,#0f5aaa 100%)}
@media(min-width:1250px){
 body.portal-has-skin{background:#eef3f8}
 body.portal-has-skin .portal-skin{display:block;position:fixed;z-index:0;top:0;bottom:0;width:calc((100vw - 1180px)/2 - 12px);min-width:70px;background:linear-gradient(180deg,#0c2d57 0%,#1769c2 48%,#0e4e96 100%);pointer-events:auto;overflow:hidden}
 body.portal-has-skin .portal-skin.left{left:0}body.portal-has-skin .portal-skin.right{right:0}
 body.portal-has-skin .portal-skin .skin-inner{position:absolute;inset:0;padding:18px 9px;color:#fff;text-align:center;display:flex;flex-direction:column;justify-content:space-between;align-items:center}
 body.portal-has-skin .portal-skin .skin-kicker{font-size:10px;font-weight:900;letter-spacing:.08em;opacity:.9}.skin-inner strong{font-size:16px;line-height:1.1}.skin-inner span{font-size:11px;line-height:1.4;opacity:.92}.skin-inner b{display:inline-block;background:#fff;color:#1769d2;border-radius:6px;padding:8px 8px;font-size:10px}
 body.portal-has-skin .site-header,body.portal-has-skin main,body.portal-has-skin footer{position:relative;z-index:1}
}
@media(max-width:760px){
 .portal-ad-slot[data-placement="top"],.portal-ad-slot[data-placement="skyscraper"]{display:none}
 .portal-ad-slot[data-placement="mobile"]{display:flex;max-width:320px;min-height:100px;margin:14px auto}
 .portal-ad-slot[data-placement="square"]{max-width:300px;min-height:250px}.portal-ad-slot[data-placement="banner"]{display:flex;max-width:320px;min-height:100px}.portal-ad-slot[data-placement="bottom"]{display:flex;max-width:320px;min-height:50px}
 .portal-ad-content{padding:12px 14px;gap:10px}.portal-ad-logo{width:38px;height:38px}.portal-ad-copy strong{font-size:15px}.portal-ad-copy span{font-size:11px;line-height:1.35}.portal-ad-cta{padding:7px 9px;font-size:10px}
 .portal-skin{display:none!important}
}
.portal-ad-image{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.portal-ad:has(.portal-ad-image) .portal-ad-content{position:relative;background:transparent;z-index:1}.portal-ad:has(.portal-ad-image) .portal-ad-copy{max-width:75%;text-shadow:0 1px 2px rgba(0,0,0,.35)}.portal-ad:has(.portal-ad-image) .portal-ad-label{z-index:4}.portal-skin .skin-inner img{max-width:100%;max-height:34vh;object-fit:cover;border-radius:8px;margin:12px 0}.portal-ad-slot[data-placement="bottom"]{max-width:970px;min-height:90px}
@media(max-width:760px){.portal-ad-slot[data-placement="bottom"]{display:flex}.portal-ad:has(.portal-ad-image) .portal-ad-copy{max-width:100%}}

/* V34.2 public entry points for the advertising marketplace */
.ad-nav-link{font-weight:900!important;color:#1769d2!important;position:relative;border:1px solid #b8cce1;padding:9px 12px!important;background:#f5f9ff}
.ad-nav-link:after{content:'NEW';font-size:7px;line-height:1;padding:3px 4px;margin-left:5px;vertical-align:middle;border-radius:4px;background:#1769d2;color:#fff;letter-spacing:.06em}
.ad-promo-section{padding-top:12px}.ad-promo-box{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px 32px;border-radius:18px;background:linear-gradient(135deg,#f4f8fd,#fff);border:1px solid #dbe5ef;box-shadow:0 10px 30px rgba(15,43,75,.07)}.ad-promo-box h2{margin:.2rem 0 .45rem}.ad-promo-box p{margin:0;max-width:760px;color:#556579}.ad-promo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:230px}.footer-ad-links{margin-top:14px;display:flex;gap:8px;align-items:center;justify-content:center;font-size:13px}.footer-ad-links a{color:inherit;font-weight:800}.ad-account-links{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 22px}
@media(max-width:760px){.ad-promo-box{display:block;padding:22px}.ad-promo-actions{margin-top:18px;min-width:0}.ad-account-links{gap:8px}.ad-nav-link:after{display:none}}

@media(min-width:761px){.portal-ad-slot[data-placement="mobile"]{display:none!important}}
@media(max-width:760px){.portal-ad-slot[data-placement="mobile"]{display:flex!important}}
.portal-ad-image-only{display:block!important;width:100%;height:90px;min-height:90px;border-radius:10px;overflow:hidden;position:relative;background:#075f9e}
.portal-ad-image-only .portal-ad-image{display:block;width:100%;height:90px;object-fit:fill;position:absolute;inset:0}
@media(max-width:760px){.portal-ad-image-only{min-height:106px;height:106px;max-height:106px}.portal-ad-image-only .portal-ad-image{height:106px;object-fit:fill}}

/* V35.90 - DUDA 970x90: rapporto fisso, nessun crop */
img[src*="duda-top-banner.svg"]{
  display:block !important;
  width:min(970px,100%) !important;
  height:auto !important;
  aspect-ratio:970/90 !important;
  object-fit:contain !important;
  object-position:center !important;
  margin:0 auto !important;
}

/* V35.91 - banner DUDA approvato */
img[src*="duda-top-banner-approved-970x90.webp"]{
 display:block !important;
 width:100% !important;
 max-width:970px !important;
 height:auto !important;
 max-height:none !important;
 aspect-ratio:970/90 !important;
 object-fit:contain !important;
 object-position:center center !important;
 margin:0 auto !important;
}

/* V35.93 — FIX REALE BANNER DUDA: annulla cover/fill/position absolute del renderer */
.portal-ad-slot[data-placement="top"] .portal-ad-image-only:has(img[src*="duda-top-banner-approved-970x90.webp"]){
  width:100% !important;
  max-width:970px !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:970/90 !important;
  overflow:visible !important;
  background:#fff !important;
  border-radius:0 !important;
}
.portal-ad-slot[data-placement="top"] .portal-ad-image-only img[src*="duda-top-banner-approved-970x90.webp"]{
  position:static !important;
  inset:auto !important;
  display:block !important;
  width:100% !important;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  aspect-ratio:970/90 !important;
  object-fit:contain !important;
  object-position:center !important;
}

/* V35.94 — DUDA: stesso banner approvato, solo allineamento ai bordi dello slot */
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]){
  padding-left:0 !important;
  padding-right:0 !important;
}
.portal-ad-slot[data-placement="top"] .portal-ad-image-only:has(img[src*="duda-top-banner-approved-970x90.webp"]){
  width:100% !important;
  max-width:none !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.portal-ad-slot[data-placement="top"] .portal-ad-image-only img[src*="duda-top-banner-approved-970x90.webp"]{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
}

/* V35.95 — PRIMA SOLUZIONE: banner DUDA da bordo a bordo dello spazio pubblicitario */
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]),
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-inner,
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) img{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  margin:0 !important;
  object-fit:fill !important;
}

/* V35.96 — banner DUDA ridotto del 40% rispetto al full-width V35.95 */
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only{
  width:60% !important;
  max-width:970px !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
}
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only img{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  margin:0 !important;
  object-fit:contain !important;
}
@media (max-width:700px){
 .portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only{
   width:94% !important;
 }
}

/* V35.97 — misura approvata: +10 punti percentuali rispetto a V35.96 */
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only{
  width:70% !important;
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
  padding:0 !important;
}
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only img{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  margin:0 !important;
  object-fit:contain !important;
}
@media (max-width:700px){
 .portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only{
   width:94% !important;
 }
}

/* V35.98 — rimuove SOLO le righe grigie del contenitore attorno al banner DUDA */
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]),
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-inner,
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-image-only {
  border-left: 0 !important;
  border-right: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"])::before,
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"])::after,
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-inner::before,
.portal-ad-slot[data-placement="top"]:has(img[src*="duda-top-banner-approved-970x90.webp"]) .portal-ad-inner::after {
  display:none !important;
  content:none !important;
  border:0 !important;
}


/* V36.04 — titoli guida locale Comuni nello stesso blu del pulsante preventivo */
.comune-seo-guide h2 {
  color: #1565c0 !important;
}


/* V37.71 — Pubblicità definitiva: cinque formati commerciali, resa responsive senza deformazioni. */
.portal-ad-slot[data-placement="top"]{max-width:970px;min-height:90px}
.portal-ad-slot[data-placement="banner"]{display:flex;max-width:970px;min-height:250px}
.portal-ad-slot[data-placement="square"]{max-width:300px;min-height:250px}
.portal-ad-slot[data-placement="bottom"]{display:flex;max-width:970px;min-height:90px}
.portal-ad-image-only{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;background:#fff!important;overflow:hidden!important}
.portal-ad-image-only .portal-ad-image{position:static!important;inset:auto!important;display:block!important;width:100%!important;height:auto!important;max-width:100%!important;object-fit:contain!important;object-position:center!important}
.portal-ad-slot[data-placement="square"] .portal-ad-image-only .portal-ad-image{width:100%!important;height:250px!important;object-fit:contain!important}
@media(max-width:760px){
 .portal-ad-slot[data-placement="top"]{display:none!important}
 .portal-ad-slot[data-placement="mobile"]{display:flex!important;max-width:320px;min-height:30px;margin:14px auto}
 .portal-ad-slot[data-placement="banner"]{display:flex!important;max-width:320px;min-height:82px}
 .portal-ad-slot[data-placement="square"]{display:flex!important;max-width:300px;min-height:250px}
 .portal-ad-slot[data-placement="bottom"]{display:flex!important;max-width:320px;min-height:30px}
 .portal-ad-slot[data-placement="mobile"] .portal-ad-image-only .portal-ad-image,
 .portal-ad-slot[data-placement="banner"] .portal-ad-image-only .portal-ad-image,
 .portal-ad-slot[data-placement="bottom"] .portal-ad-image-only .portal-ad-image{width:100%!important;height:auto!important;object-fit:contain!important}
}
