
#header,.fusion-header-wrapper,.fusion-footer,#footer{display:none!important}
.h2o-site-header,.h2o-site-footer{font-family:Montserrat,Arial,sans-serif}
.h2o-site-header{position:relative;z-index:999;background:#fff;border-bottom:1px solid #edf0ee}
.h2o-header-inner{width:min(1180px,calc(100% - 40px));height:94px;margin:auto;display:grid;grid-template-columns:150px 1fr auto;align-items:center;gap:25px}
.h2o-brand{display:inline-flex;flex-direction:column;text-decoration:none!important;color:#fff!important;width:max-content;background:#414746;padding:10px 13px;line-height:1}
.h2o-brand-img{display:block;max-width:105px;max-height:70px;width:auto;height:auto;object-fit:contain}.h2o-brand-mark{font-size:38px;font-weight:300}.h2o-brand small{font-size:11px;margin-top:3px}
.h2o-desktop-nav{display:flex;justify-content:center}.h2o-menu{display:flex;gap:34px;list-style:none;margin:0;padding:0}.h2o-menu a{font-size:14px;font-weight:700;color:#56605b!important;text-decoration:none!important}.h2o-menu li:nth-child(1) a{color:#16824a!important}.h2o-menu li:nth-child(2) a{color:#777!important}.h2o-menu li:nth-child(3) a{color:#ad3155!important}
.h2o-header-actions{display:flex;align-items:center;gap:9px}.h2o-phone{display:flex;gap:7px;align-items:center;border:1px solid #34473e;border-radius:24px;min-height:42px;padding:0 15px;color:#24382e!important;text-decoration:none!important;font-weight:700;font-size:13px}.h2o-wa{width:42px;height:42px;border:1px solid #6d9d36;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#6d9d36!important;text-decoration:none!important;font-size:11px;font-weight:800}.h2o-menu-toggle{display:none;background:none;border:0;width:44px;padding:7px}.h2o-menu-toggle span{display:block;height:2px;background:currentColor;margin:6px 0}
.h2o-mobile-menu{background:#0d3024}.h2o-mobile-menu-list{list-style:none;margin:0;padding:10px 22px 20px}.h2o-mobile-menu-list li{border-bottom:1px solid rgba(255,255,255,.13)}.h2o-mobile-menu-list a{display:block;padding:15px 4px;color:#fff!important;text-decoration:none!important;font-weight:700}
.h2o-site-footer{background:linear-gradient(120deg,#263a32,#18241f);color:#fff}.h2o-footer-inner{width:min(1180px,calc(100% - 40px));margin:auto;display:grid;grid-template-columns:1.3fr .8fr .8fr;gap:90px;padding:46px 0}.h2o-site-footer p{max-width:270px;color:#e2e7e4;font-size:13px;line-height:1.7}.h2o-site-footer h3{color:#fff;font-size:14px;margin:0 0 12px}.h2o-site-footer a{color:#fff!important;text-decoration:none!important}.h2o-brand-footer{margin-bottom:15px}.follow{margin-top:25px!important}.h2o-socials{display:flex;gap:9px}.h2o-socials a{width:30px;height:30px;border:1px solid rgba(255,255,255,.25);border-radius:50%;display:flex;align-items:center;justify-content:center}.h2o-footer-menu{list-style:none;padding:0;margin:0}.h2o-footer-menu li{margin-bottom:7px}.h2o-footer-menu a{font-size:13px;color:#e5eae7!important}.h2o-footer-bottom{text-align:center;border-top:1px solid rgba(255,255,255,.1);padding:13px 20px;color:#bec8c3;font-size:11px}
@media(max-width:900px){.h2o-header-inner{height:78px;grid-template-columns:1fr auto}.h2o-desktop-nav{display:none}.h2o-phone{width:42px;padding:0;justify-content:center;font-size:18px}.h2o-phone span{display:none}.h2o-menu-toggle{display:block}.h2o-site-header{background:#0b3023;color:#fff}.h2o-brand{background:transparent;padding:0}.h2o-footer-inner{grid-template-columns:1fr;gap:28px;padding:35px 0}.h2o-footer-menu{columns:2}.h2o-header-actions{color:#fff}}
@media(max-width:600px){.h2o-header-inner{width:calc(100% - 28px)}.h2o-brand-img{max-width:85px;max-height:56px}.h2o-brand-mark{font-size:32px}.h2o-footer-inner{width:calc(100% - 36px)}.h2o-footer-menu{columns:1}}

/* v1.1.0 - loghi configurabili */
.h2o-brand:has(.h2o-brand-img){background:transparent;padding:0}
.h2o-site-header .h2o-brand-img{max-width:125px;max-height:74px}
.h2o-site-footer .h2o-brand-img{max-width:115px;max-height:78px}
@media(max-width:600px){
 .h2o-site-header .h2o-brand-img{max-width:100px;max-height:58px}
 .h2o-site-footer .h2o-brand-img{max-width:105px;max-height:70px}
}


/* v1.3.0 — Transparent H2O header over the home hero */
@media (min-width: 901px) {
  body.home .h2o-site-header,
  body.front-page .h2o-site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(
      180deg,
      rgba(4,27,19,.70) 0%,
      rgba(4,27,19,.28) 58%,
      rgba(4,27,19,0) 100%
    ) !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body.admin-bar.home .h2o-site-header,
  body.admin-bar.front-page .h2o-site-header {
    top: 32px;
  }

  body.home .h2o-header-inner,
  body.front-page .h2o-header-inner {
    width: min(1480px, calc(100% - 70px));
    height: 104px;
  }

  body.home .h2o-site-header .h2o-menu a,
  body.front-page .h2o-site-header .h2o-menu a {
    color: #fff !important;
    text-shadow: 0 1px 12px rgba(0,0,0,.22);
  }

  body.home .h2o-site-header .h2o-phone,
  body.front-page .h2o-site-header .h2o-phone {
    color: #fff !important;
    border-color: rgba(255,255,255,.78) !important;
    background: rgba(5,31,22,.22);
    backdrop-filter: blur(4px);
  }

  body.home .h2o-site-header .h2o-wa,
  body.front-page .h2o-site-header .h2o-wa {
    border-color: #8fbd45 !important;
    color: #9dcc4f !important;
    background: rgba(5,31,22,.22);
    backdrop-filter: blur(4px);
  }

  body.home .h2o-site-header .h2o-brand,
  body.front-page .h2o-site-header .h2o-brand {
    background: transparent !important;
  }

  body.home .h2o-site-header .h2o-brand-img,
  body.front-page .h2o-site-header .h2o-brand-img {
    max-width: 132px;
    max-height: 82px;
  }
}

/* Mobile: keep the solid dark header for readability */
@media (max-width: 900px) {
  body.home .h2o-site-header,
  body.front-page .h2o-site-header {
    position: relative;
    top: auto;
    background: #0b3023 !important;
  }
}


/* v1.3.1 — Remove residual Avada space above the home hero */
body.home,
body.front-page {
  margin-top: 0 !important;
}

body.home #boxed-wrapper,
body.home #wrapper,
body.home #main,
body.front-page #boxed-wrapper,
body.front-page #wrapper,
body.front-page #main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.home .fusion-page-title-bar,
body.front-page .fusion-page-title-bar {
  display: none !important;
}

body.home .post-content > *:first-child,
body.front-page .post-content > *:first-child {
  margin-top: 0 !important;
}

body.home .h2o-site-header,
body.front-page .h2o-site-header {
  top: 0 !important;
}

body.admin-bar.home .h2o-site-header,
body.admin-bar.front-page .h2o-site-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar.home .h2o-site-header,
  body.admin-bar.front-page .h2o-site-header {
    top: 46px !important;
  }
}


/* =========================================================
   v1.4.0 — Two header modes
   ========================================================= */

/* Default / internal pages: white menu */
.h2o-site-header.h2o-site-header--white {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  background: #fff !important;
  border-bottom: 1px solid #e7ebe8 !important;
  box-shadow: none !important;
  color: #173328 !important;
}

.h2o-site-header--white .h2o-menu a {
  color: #222b26 !important;
  text-shadow: none !important;
}

.h2o-site-header--white .h2o-phone {
  color: #173328 !important;
  border-color: #173328 !important;
  background: #fff !important;
}

.h2o-site-header--white .h2o-wa {
  color: #6f963a !important;
  border-color: #6f963a !important;
  background: #fff !important;
}

.h2o-site-header--white .h2o-menu-toggle {
  color: #173328 !important;
}

/* Home desktop keeps overlay transparent mode. */
@media (min-width: 901px) {
  .h2o-site-header.h2o-site-header--transparent {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    background: linear-gradient(
      180deg,
      rgba(4,27,19,.70) 0%,
      rgba(4,27,19,.28) 58%,
      rgba(4,27,19,0) 100%
    ) !important;
    border-bottom: 0 !important;
  }

  body.admin-bar .h2o-site-header.h2o-site-header--transparent {
    top: 32px !important;
  }

  .h2o-site-header--transparent .h2o-menu a {
    color: #fff !important;
  }
}

/* On mobile every internal/detail page is a clean white header.
   The home keeps the dark compact bar. */
@media (max-width: 900px) {
  .h2o-site-header--white {
    background: #fff !important;
  }

  .h2o-site-header--white .h2o-header-inner {
    height: 72px !important;
  }

  .h2o-site-header--white .h2o-mobile-menu {
    background: #fff !important;
    border-top: 1px solid #e5e9e6 !important;
  }

  .h2o-site-header--white .h2o-mobile-menu-list li {
    border-bottom: 1px solid #edf0ee !important;
  }

  .h2o-site-header--white .h2o-mobile-menu-list a {
    color: #173328 !important;
  }

  .h2o-site-header--transparent {
    position: relative !important;
    top: auto !important;
    background: #0b3023 !important;
  }

  .h2o-header-actions {
    flex-shrink: 0 !important;
  }

  .h2o-brand {
    max-width: 110px !important;
  }

  .h2o-brand-img {
    max-width: 105px !important;
    max-height: 54px !important;
  }
}


/* =========================================================
   v1.4.1 — Mobile header back to H2O dark green
   ========================================================= */
@media (max-width: 900px) {
    .h2o-site-header,
    .h2o-site-header--white,
    .h2o-site-header--transparent {
        position: relative !important;
        top: auto !important;
        background: #0b3023 !important;
        border-bottom: 0 !important;
        box-shadow: none !important;
        color: #ffffff !important;
    }

    .h2o-site-header .h2o-menu-toggle {
        color: #ffffff !important;
    }

    .h2o-site-header .h2o-phone {
        color: #ffffff !important;
        border-color: rgba(255,255,255,.80) !important;
        background: transparent !important;
    }

    .h2o-site-header .h2o-phone .h2o-contact-icon {
        color: #ffffff !important;
        stroke: #ffffff !important;
    }

    .h2o-site-header .h2o-wa {
        color: #82bd32 !important;
        border-color: #82bd32 !important;
        background: transparent !important;
    }

    .h2o-site-header .h2o-wa .h2o-whatsapp-icon {
        color: #82bd32 !important;
        fill: #82bd32 !important;
    }

    .h2o-site-header .h2o-mobile-menu {
        background: #0b3023 !important;
        border-top: 1px solid rgba(255,255,255,.12) !important;
    }

    .h2o-site-header .h2o-mobile-menu-list li {
        border-bottom: 1px solid rgba(255,255,255,.12) !important;
    }

    .h2o-site-header .h2o-mobile-menu-list a {
        color: #ffffff !important;
    }
}


/* =========================================================
   v1.4.2 — FINAL MOBILE HEADER FIX
   Green header on every mobile page + SVG phone/WhatsApp icons
   ========================================================= */

.h2o-contact-icon,
.h2o-whatsapp-icon {
    display: block;
    width: 20px;
    height: 20px;
}

.h2o-contact-icon {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.h2o-whatsapp-icon {
    fill: currentColor;
}

/* Desktop keeps normal text phone + small WhatsApp icon. */
@media (min-width: 901px) {
    .h2o-phone .h2o-contact-icon {
        width: 17px;
        height: 17px;
    }

    .h2o-wa .h2o-whatsapp-icon {
        width: 18px;
        height: 18px;
    }
}

/* Strong mobile override, including internal/detail pages. */
@media (max-width: 900px) {

    body .h2o-site-header,
    body .h2o-site-header.h2o-site-header--white,
    body .h2o-site-header.h2o-site-header--transparent,
    body.single-h2o_horse .h2o-site-header,
    body.post-type-archive-h2o_horse .h2o-site-header {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;

        background: #0b3023 !important;
        background-image: none !important;

        color: #ffffff !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.10) !important;
        box-shadow: none !important;
    }

    body .h2o-site-header .h2o-header-inner {
        height: 76px !important;
        background: transparent !important;
    }

    /* White/logo-neutral brand area: no forced white tile. */
    body .h2o-site-header .h2o-brand {
        background: transparent !important;
        padding: 0 !important;
    }

    body .h2o-site-header .h2o-header-actions {
        gap: 10px !important;
    }

    /* PHONE */
    body .h2o-site-header .h2o-phone {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 50% !important;
        border: 1px solid rgba(255,255,255,.82) !important;

        color: #ffffff !important;
        background: transparent !important;
    }

    body .h2o-site-header .h2o-phone span {
        display: none !important;
    }

    body .h2o-site-header .h2o-phone .h2o-contact-icon {
        width: 21px !important;
        height: 21px !important;
        color: #ffffff !important;
        stroke: #ffffff !important;
    }

    /* WHATSAPP */
    body .h2o-site-header .h2o-wa {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        border-radius: 50% !important;
        border: 2px solid #82bd32 !important;

        color: #82bd32 !important;
        background: transparent !important;
    }

    body .h2o-site-header .h2o-wa .h2o-whatsapp-icon {
        width: 24px !important;
        height: 24px !important;
        color: #82bd32 !important;
        fill: #82bd32 !important;
    }

    /* HAMBURGER */
    body .h2o-site-header .h2o-menu-toggle {
        color: #ffffff !important;
    }

    body .h2o-site-header .h2o-menu-toggle span {
        background: #ffffff !important;
    }

    /* Open mobile menu */
    body .h2o-site-header .h2o-mobile-menu {
        background: #0b3023 !important;
        border-top: 1px solid rgba(255,255,255,.12) !important;
    }

    body .h2o-site-header .h2o-mobile-menu-list li {
        border-bottom: 1px solid rgba(255,255,255,.12) !important;
    }

    body .h2o-site-header .h2o-mobile-menu-list a {
        color: #ffffff !important;
    }
}
