/* hgt-blog-replace-native-hero-20260802 */
html body.archive.category-blog .entry-hero.post-archive-hero-section,
  html body.category-blog .entry-hero.post-archive-hero-section,
  html body.blog .entry-hero.post-archive-hero-section {
    display:none !important;
    visibility:hidden !important;
    height:0 !important;
    min-height:0 !important;
    max-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  html body.archive.category-blog .hgt-blog-custom-hero,
  html body.category-blog .hgt-blog-custom-hero,
  html body.blog .hgt-blog-custom-hero {
    width:100vw !important;
    margin-left:calc(50% - 50vw) !important;
    margin-right:calc(50% - 50vw) !important;
    margin-top:0 !important;
    margin-bottom:34px !important;
    padding:42px 28px 40px !important;
    background:#EEF4F2 !important;
    color:#102A43 !important;
    text-align:center !important;
    box-sizing:border-box !important;
  }

  html body.archive.category-blog .hgt-blog-custom-hero__inner,
  html body.category-blog .hgt-blog-custom-hero__inner,
  html body.blog .hgt-blog-custom-hero__inner {
    width:min(820px, 100%) !important;
    margin:0 auto !important;
    padding:0 !important;
  }

  html body.archive.category-blog .hgt-blog-custom-hero h1,
  html body.category-blog .hgt-blog-custom-hero h1,
  html body.blog .hgt-blog-custom-hero h1 {
    margin:0 0 10px !important;
    padding:0 !important;
    font-size:clamp(34px, 3vw, 46px) !important;
    line-height:1 !important;
    letter-spacing:-.035em !important;
    color:#102A43 !important;
    text-align:center !important;
  }

  html body.archive.category-blog .hgt-blog-custom-hero p,
  html body.category-blog .hgt-blog-custom-hero p,
  html body.blog .hgt-blog-custom-hero p {
    margin:0 auto !important;
    padding:0 !important;
    max-width:760px !important;
    font-size:17px !important;
    line-height:1.42 !important;
    color:#445461 !important;
    text-align:center !important;
  }

  html body.archive.category-blog #primary,
  html body.category-blog #primary,
  html body.blog #primary {
    padding-top:0 !important;
    margin-top:0 !important;
    background:#F7F8F6 !important;
  }

/* hgt-blog-hero-clean-autoheight-20260802 */
html body.archive.category-blog,
  html body.category-blog,
  html body.blog {
    --hgt-blog-hero-pad-y: 52px !important;
  }

  html body.archive.category-blog .site-main > .entry-hero.post-archive-hero-section,
  html body.category-blog .site-main > .entry-hero.post-archive-hero-section,
  html body.blog .site-main > .entry-hero.post-archive-hero-section,
  html body.archive.category-blog section.entry-hero.post-archive-hero-section.entry-hero-layout-standard,
  html body.category-blog section.entry-hero.post-archive-hero-section.entry-hero-layout-standard,
  html body.blog section.entry-hero.post-archive-hero-section.entry-hero-layout-standard {
    --hgt-hero-h: auto !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 0 26px !important;
    padding: var(--hgt-blog-hero-pad-y) 0 !important;
    background: #EEF4F2 !important;
    background-color: #EEF4F2 !important;
    background-image: none !important;
    display: block !important;
    overflow: visible !important;
  }

  html body.archive.category-blog .entry-hero.post-archive-hero-section .entry-hero-container-inner,
  html body.category-blog .entry-hero.post-archive-hero-section .entry-hero-container-inner,
  html body.blog .entry-hero.post-archive-hero-section .entry-hero-container-inner,
  html body.archive.category-blog .entry-hero.post-archive-hero-section .hero-container,
  html body.category-blog .entry-hero.post-archive-hero-section .hero-container,
  html body.blog .entry-hero.post-archive-hero-section .hero-container,
  html body.archive.category-blog .entry-hero.post-archive-hero-section .entry-header,
  html body.category-blog .entry-hero.post-archive-hero-section .entry-header,
  html body.blog .entry-hero.post-archive-hero-section .entry-header {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
  }

  html body.archive.category-blog .entry-hero.post-archive-hero-section .hero-container,
  html body.category-blog .entry-hero.post-archive-hero-section .hero-container,
  html body.blog .entry-hero.post-archive-hero-section .hero-container {
    width: min(900px, calc(100vw - 56px)) !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  html body.archive.category-blog .entry-hero.post-archive-hero-section .entry-header,
  html body.category-blog .entry-hero.post-archive-hero-section .entry-header,
  html body.blog .entry-hero.post-archive-hero-section .entry-header {
    width: 100% !important;
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: block !important;
  }

  html body.archive.category-blog .entry-hero.post-archive-hero-section .hgt-blog-archive-kicker,
  html body.category-blog .entry-hero.post-archive-hero-section .hgt-blog-archive-kicker,
  html body.blog .entry-hero.post-archive-hero-section .hgt-blog-archive-kicker,
  html body.archive.category-blog .entry-hero.post-archive-hero-section .hgt-blog-archive-desc,
  html body.category-blog .entry-hero.post-archive-hero-section .hgt-blog-archive-desc,
  html body.blog .entry-hero.post-archive-hero-section .hgt-blog-archive-desc,
  html body.archive.category-blog .entry-hero.post-archive-hero-section .archive-description,
  html body.category-blog .entry-hero.post-archive-hero-section .archive-description,
  html body.blog .entry-hero.post-archive-hero-section .archive-description {
    display: none !important;
  }

  html body.archive.category-blog .entry-hero.post-archive-hero-section h1,
  html body.category-blog .entry-hero.post-archive-hero-section h1,
  html body.blog .entry-hero.post-archive-hero-section h1 {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: clamp(34px, 3vw, 46px) !important;
    line-height: 1 !important;
    letter-spacing: -0.035em !important;
    text-align: center !important;
    color: #102A43 !important;
  }

  html body.archive.category-blog .entry-hero.post-archive-hero-section .hgt-blog-hero-subtitle,
  html body.category-blog .entry-hero.post-archive-hero-section .hgt-blog-hero-subtitle,
  html body.blog .entry-hero.post-archive-hero-section .hgt-blog-hero-subtitle {
    display: block !important;
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: clamp(16px, 1.15vw, 18px) !important;
    line-height: 1.4 !important;
    color: #445461 !important;
    text-align: center !important;
  }

  @media (max-width: 767px) {
    html body.archive.category-blog,
    html body.category-blog,
    html body.blog { --hgt-blog-hero-pad-y: 36px !important; }
  }

/* hgt-global-nav-and-inner-hero-master-20260802 */
:root{
        --hgt-nav-h:72px;
        --hgt-hero-h:410px;
        --hgt-hero-h-mobile:520px;
        --hgt-bg:#F7F8F6;
        --hgt-surface:#FFFFFF;
        --hgt-card:#EEF4F2;
        --hgt-title:#102A43;
        --hgt-text:#445461;
        --hgt-cta:#0B5D5E;
        --hgt-cta-hover:#084C4D;
        --hgt-accent:#C65D3B;
        --hgt-line:rgba(16,42,67,.10);
      }

      /* NAVBAR MASTER - stessa geometria della home su tutte le pagine */
      body #masthead,
      body #masthead .site-header-row-container-inner,
      body #masthead .site-header-row-container-inner .site-container,
      body #masthead .site-container,
      body #masthead .site-header-row,
      body #masthead .site-header-section,
      body #masthead .site-main-header-wrap,
      body #masthead .site-main-header-inner-wrap{
        min-height:var(--hgt-nav-h)!important;
        height:var(--hgt-nav-h)!important;
        max-height:var(--hgt-nav-h)!important;
        margin-top:0!important;
        margin-bottom:0!important;
        padding-top:0!important;
        padding-bottom:0!important;
        background:#fff!important;
        border:0!important;
        box-shadow:none!important;
        box-sizing:border-box!important;
      }
      body #masthead{
        position:sticky!important;
        top:0!important;
        z-index:9999!important;
        border-bottom:1px solid rgba(16,42,67,.08)!important;
      }
      body #masthead .site-branding,
      body #masthead .main-navigation,
      body #masthead .primary-menu-container{
        min-height:var(--hgt-nav-h)!important;
        height:var(--hgt-nav-h)!important;
        max-height:var(--hgt-nav-h)!important;
        display:flex!important;
        align-items:center!important;
        margin:0!important;
        padding-top:0!important;
        padding-bottom:0!important;
        background:#fff!important;
      }
      body #masthead .site-branding .site-title,
      body #masthead .site-branding .site-title a,
      body #masthead .mobile-site-branding .site-title,
      body #masthead .mobile-site-branding .site-title a{
        color:var(--hgt-title)!important;
        font-family:Georgia,'Times New Roman',serif!important;
        font-size:1.46rem!important;
        line-height:1!important;
        font-weight:800!important;
        letter-spacing:.01em!important;
        margin:0!important;
        padding:0!important;
      }
      body #site-navigation.main-navigation .primary-menu-container>ul,
      body #primary-menu.menu{
        display:flex!important;
        align-items:center!important;
        gap:18px!important;
        margin:0!important;
        padding:0!important;
      }
      body #site-navigation.main-navigation .primary-menu-container>ul>li>a,
      body #primary-menu.menu>li>a{
        min-height:var(--hgt-nav-h)!important;
        height:var(--hgt-nav-h)!important;
        line-height:var(--hgt-nav-h)!important;
        display:inline-flex!important;
        align-items:center!important;
        justify-content:center!important;
        padding:0 8px!important;
        margin:0!important;
        color:#293244!important;
        font-size:.98rem!important;
        font-weight:500!important;
        letter-spacing:.01em!important;
        text-transform:none!important;
        background:transparent!important;
      }
      body #primary-menu > li.hgt-nav-contact-item,
      body #site-navigation .primary-menu-container > ul > li.hgt-nav-contact-item{
        margin-left:12px!important;
      }
      body #primary-menu > li.hgt-nav-contact-item > a,
      body #site-navigation a.hgt-nav-contact-cta{
        min-height:44px!important;
        height:44px!important;
        line-height:44px!important;
        padding:0 26px!important;
        border-radius:999px!important;
        background:var(--hgt-cta)!important;
        color:#fff!important;
        font-weight:850!important;
        box-shadow:0 14px 30px rgba(11,93,94,.18)!important;
      }
      body #primary-menu > li.hgt-nav-contact-item > a:hover,
      body #site-navigation a.hgt-nav-contact-cta:hover{
        background:var(--hgt-cta-hover)!important;
        color:#fff!important;
        transform:translateY(-2px)!important;
      }

      /* HERO MASTER per pagine interne */
      body.page-id-15 .hgt-service-hero,
      body.page-id-17 .hgt-service-hero,
      body.page-id-35 .hgt-contact-hero,
      body.blog .entry-hero,
      body.archive .entry-hero,
      body.single-post .entry-hero{
        position:relative!important;
        width:100vw!important;
        max-width:100vw!important;
        margin-left:calc(50% - 50vw)!important;
        margin-right:calc(50% - 50vw)!important;
        margin-top:0!important;
        margin-bottom:46px!important;
        padding:0 clamp(72px,7vw,132px)!important;
        min-height:var(--hgt-hero-h)!important;
        height:var(--hgt-hero-h)!important;
        max-height:var(--hgt-hero-h)!important;
        display:flex!important;
        flex-direction:column!important;
        justify-content:center!important;
        align-items:flex-start!important;
        background:var(--hgt-card)!important;
        background-image:none!important;
        border:0!important;
        border-radius:0!important;
        box-shadow:none!important;
        overflow:hidden!important;
        box-sizing:border-box!important;
      }
      body.page-id-15 .hgt-service-hero:before,
      body.page-id-15 .hgt-service-hero:after,
      body.page-id-17 .hgt-service-hero:before,
      body.page-id-17 .hgt-service-hero:after,
      body.page-id-35 .hgt-contact-hero:before,
      body.page-id-35 .hgt-contact-hero:after,
      body.blog .entry-hero:before,
      body.blog .entry-hero:after,
      body.archive .entry-hero:before,
      body.archive .entry-hero:after,
      body.single-post .entry-hero:before,
      body.single-post .entry-hero:after{
        content:none!important;
        display:none!important;
      }
      body.page-id-15 .hgt-service-hero > *,
      body.page-id-17 .hgt-service-hero > *,
      body.page-id-35 .hgt-contact-hero > *,
      body.blog .entry-hero > *,
      body.archive .entry-hero > *,
      body.single-post .entry-hero > *{
        max-width:820px!important;
        margin-left:0!important;
        margin-right:auto!important;
      }
      body.page-id-15 .hgt-service-hero h1,
      body.page-id-17 .hgt-service-hero h1,
      body.page-id-35 .hgt-contact-hero h1,
      body.blog .entry-hero h1,
      body.blog .entry-hero .archive-title,
      body.archive .entry-hero h1,
      body.archive .entry-hero .archive-title,
      body.single-post .entry-hero h1,
      body.single-post .entry-hero .entry-title{
        color:var(--hgt-title)!important;
        font-size:clamp(2.05rem,2.32vw,2.78rem)!important;
        line-height:1.08!important;
        letter-spacing:-.03em!important;
        max-width:820px!important;
        margin:0 0 18px!important;
        padding:0!important;
      }
      body.page-id-15 .hgt-service-hero p,
      body.page-id-17 .hgt-service-hero p,
      body.page-id-35 .hgt-contact-hero p,
      body.blog .entry-hero p,
      body.archive .entry-hero p,
      body.single-post .entry-hero p,
      body.blog .hgt-blog-archive-desc,
      body.archive .hgt-blog-archive-desc{
        color:var(--hgt-text)!important;
        font-size:1rem!important;
        line-height:1.55!important;
        max-width:740px!important;
        margin:0!important;
        padding:0!important;
      }
      body.blog .hgt-blog-archive-kicker,
      body.archive .hgt-blog-archive-kicker,
      body.page-id-15 .hgt-service-hero .hgt-kicker,
      body.page-id-17 .hgt-service-hero .hgt-kicker,
      body.page-id-35 .hgt-contact-hero .hgt-kicker{
        color:var(--hgt-cta)!important;
        font-size:.82rem!important;
        line-height:1.1!important;
        letter-spacing:.22em!important;
        text-transform:uppercase!important;
        font-weight:850!important;
        margin:0 0 22px!important;
      }
      body.page-id-15 .entry-content,
      body.page-id-17 .entry-content,
      body.page-id-35 .entry-content,
      body.blog .site-main,
      body.archive .site-main,
      body.single-post .site-main{
        background:var(--hgt-bg)!important;
      }

      @media (min-width:1001px) and (max-width:1400px){
        body.page-id-15 .hgt-service-hero,
        body.page-id-17 .hgt-service-hero,
        body.page-id-35 .hgt-contact-hero,
        body.blog .entry-hero,
        body.archive .entry-hero,
        body.single-post .entry-hero{
          padding-left:54px!important;
          padding-right:54px!important;
        }
      }
      @media (max-width:1000px){
        body #masthead,
        body #masthead .site-header-row-container-inner,
        body #masthead .site-header-row-container-inner .site-container,
        body #masthead .site-container,
        body #masthead .site-header-row,
        body #masthead .site-header-section,
        body #masthead .site-branding,
        body #masthead .main-navigation,
        body #masthead .primary-menu-container{
          min-height:64px!important;
          height:64px!important;
          max-height:64px!important;
        }
        body.page-id-15 .hgt-service-hero,
        body.page-id-17 .hgt-service-hero,
        body.page-id-35 .hgt-contact-hero,
        body.blog .entry-hero,
        body.archive .entry-hero,
        body.single-post .entry-hero{
          min-height:auto!important;
          height:auto!important;
          max-height:none!important;
          padding:44px 26px!important;
          margin-bottom:34px!important;
        }
      }

/* hgt-hide-native-entry-hero-service-pages-20260802 */
/* La fascia vuota era la hero nativa Kadence prima della nostra hero custom */
      body.page-id-15 section.entry-hero.page-hero-section,
      body.page-id-17 section.entry-hero.page-hero-section{
        display:none!important;
        visibility:hidden!important;
        height:0!important;
        min-height:0!important;
        max-height:0!important;
        margin:0!important;
        padding:0!important;
        overflow:hidden!important;
      }

      body.page-id-15 .hgt-service,
      body.page-id-17 .hgt-service{
        margin-top:0!important;
        padding-top:0!important;
        top:0!important;
        transform:none!important;
      }

      body.page-id-15 .hgt-service-hero,
      body.page-id-17 .hgt-service-hero{
        margin-top:0!important;
        top:0!important;
        transform:none!important;
      }

/* hgt-critical-service-hero-no-gap-no-flash-20260802 */
/* CRITICAL: deve stare in head per evitare flash dopo F5 */
      body.page-id-15,
      body.page-id-17,
      body.page-id-35,
      body.category-blog,
      body.archive.category-blog,
      body.single-post{
        background:#F7F8F6!important;
      }

      body.page-id-15 #masthead,
      body.page-id-17 #masthead{
        margin-bottom:0!important;
        border-bottom:0!important;
      }

      body.page-id-15 #inner-wrap,
      body.page-id-17 #inner-wrap,
      body.page-id-15 .site,
      body.page-id-17 .site,
      body.page-id-15 .site-content,
      body.page-id-17 .site-content,
      body.page-id-15 #primary,
      body.page-id-17 #primary,
      body.page-id-15 .content-area,
      body.page-id-17 .content-area,
      body.page-id-15 .entry-content,
      body.page-id-17 .entry-content{
        margin-top:0!important;
        padding-top:0!important;
        background:#F7F8F6!important;
      }

      body.page-id-15 .hgt-service,
      body.page-id-17 .hgt-service{
        margin-top:0!important;
        padding-top:0!important;
        top:0!important;
        transform:none!important;
        position:relative!important;
        background:#F7F8F6!important;
      }

      body.page-id-15 .hgt-service-hero,
      body.page-id-17 .hgt-service-hero{
        width:100vw!important;
        max-width:100vw!important;
        min-width:100vw!important;
        margin-left:calc(50% - 50vw)!important;
        margin-right:calc(50% - 50vw)!important;
        margin-top:-72px!important;
        margin-bottom:38px!important;
        padding:114px clamp(72px,14vw,360px) 42px!important;
        min-height:414px!important;
        height:414px!important;
        max-height:414px!important;
        top:0!important;
        transform:none!important;
        background:#EEF4F2!important;
        background-color:#EEF4F2!important;
        border-radius:0!important;
        border-top:0!important;
        box-shadow:none!important;
        overflow:hidden!important;
        transition:none!important;
        animation:none!important;
      }

      body.page-id-15 .hgt-service-hero::before,
      body.page-id-17 .hgt-service-hero::before{
        display:none!important;
        content:none!important;
      }

      body.category-blog #inner-wrap,
      body.archive.category-blog #inner-wrap,
      body.single-post #inner-wrap,
      body.category-blog .site,
      body.archive.category-blog .site,
      body.single-post .site,
      body.category-blog .site-content,
      body.archive.category-blog .site-content,
      body.single-post .site-content{
        background:#F7F8F6!important;
      }

      body.category-blog .entry-hero-container-inner,
      body.archive.category-blog .entry-hero-container-inner,
      body.single-post .entry-hero-container-inner{
        background:#EEF4F2!important;
        background-color:#EEF4F2!important;
      }

/* hgt-navbar-critical-first-paint-20260829 */
@media (min-width: 1025px) {
            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) header#masthead.site-header,
            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) #masthead :is(.site-header-wrap, .site-header-inner-wrap, .site-header-upper-wrap, .site-header-upper-inner-wrap, .site-main-header-wrap, .site-header-row-container, .site-header-row-container-inner, .site-container, .site-main-header-inner-wrap, .site-header-row) {
                height: 52px !important; min-height: 52px !important; max-height: 52px !important;
                margin: 0 !important; top: 0 !important; transform: none !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) header#masthead.site-header {
                position: sticky !important; z-index: 99999 !important; padding: 0 !important;
                background: #F7F8F6 !important; border: 0 !important;
                border-bottom: 1px solid rgba(18, 58, 90, .22) !important;
                box-shadow: none !important; box-sizing: border-box !important; overflow: visible !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) #masthead .site-header-row-container-inner > .site-container {
                width: min(calc(100% - 224px), 2080px) !important; max-width: 2080px !important;
                margin: 0 auto !important; padding: 0 !important; box-sizing: border-box !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) #masthead .site-main-header-inner-wrap {
                display: flex !important; align-items: center !important; justify-content: space-between !important;
                width: 100% !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) header#masthead.site-header :is(.site-main-header-wrap, .site-header-row-container, .site-header-row-container-inner, .site-header-row) {
                position: relative !important; top: 0 !important; transform: none !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) #masthead .site-header-row {
                width: 100% !important; padding-left: calc(9.4vw - 32px) !important;
                padding-right: calc(9.4vw - 32px) !important; box-sizing: border-box !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-395, .page-id-397, .page-id-21, .page-id-35, .category-blog) #masthead :is(.site-header-main-section-left, .site-header-main-section-right, .site-branding, .main-navigation, .primary-menu-container, #primary-menu, #primary-menu > li) {
                min-height: 0 !important; max-height: none !important; margin: 0 !important; transform: none !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) #masthead :is(.main-navigation, #primary-menu) {
                display: flex !important; align-items: center !important;
            }

            /* Privacy/Cookie: stessa catena flex della Home, senza offset. */
            html body:is(.page-id-395, .page-id-397) #masthead .site-header-main-section-right,
            html body:is(.page-id-395, .page-id-397) #masthead .main-navigation {
                flex: 1 1 auto !important;
                justify-content: flex-end !important;
            }
            html body:is(.page-id-395, .page-id-397) #masthead #primary-menu.menu {
                justify-content: flex-end !important;
            }
            html body:is(.page-id-395, .page-id-397) #masthead .site-header-row {
                gap: 32px !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-395, .page-id-397, .page-id-21, .page-id-35, .category-blog) #masthead .site-title,
            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-395, .page-id-397, .page-id-21, .page-id-35, .category-blog) #masthead .site-title a {
                font-size: 30px !important; line-height: 30px !important; letter-spacing: -.02em !important;
                margin: 0 !important; transform: none !important;
            }

            html body:is(.page-id-1133, .page-id-15, .page-id-17, .page-id-21, .page-id-35, .category-blog) #masthead #primary-menu > li:last-child > a {
                width: 150px !important; min-width: 150px !important; max-width: 150px !important;
                height: 38px !important; min-height: 38px !important; max-height: 38px !important;
                padding: 0 22px !important; box-sizing: border-box !important;
            }

        }
