/* Hidramat v1.0.5 — transparent global header, catalogue cover and editorial footer. */
html { scroll-padding-top: 110px; }
body { overflow-x: clip; }
body .wp-site-blocks > header { position: relative; z-index: 300; margin: 0; }
.hm-header-wrap { position: absolute; z-index: 301; top: 0; left: 0; right: 0; background: transparent; color: #fff; transition: top .25s ease; }
.hm-header-wrap::before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 125px; background: linear-gradient(180deg,rgba(0,22,18,.42),rgba(0,22,18,.13) 62%,transparent); pointer-events: none; }
.hm-header-wrap .hm-header { width: calc(100% - 64px); max-width: none; min-height: 92px; transition: min-height .25s ease, background .25s ease, box-shadow .25s ease, padding .25s ease; }
.hm-header-wrap--light { color: var(--hm-dark); }
.hm-header-wrap--light::before { background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.72) 56%,transparent); }
.hm-header-wrap--light .hm-logo, .hm-header-wrap--light .hm-nav a, .hm-header-wrap--light .hm-icon-link, .hm-header-wrap--light .hm-search button { color: var(--hm-dark); }
.hm-header-wrap--light .hm-menu-toggle { color: var(--hm-dark); }
body:not(.hm-hero-page) .wp-site-blocks > main { padding-top: 150px; }
body.woocommerce-account:not(.logged-in) .wp-site-blocks > main.hm-account-v2 { padding-top: 145px !important; }
body:not(.hm-hero-page) .wp-site-blocks > .hp-shop-page-shell { padding-top: 150px !important; }
body.hm-is-scrolled .hm-header-wrap { position: fixed; top: 14px; left: 16px; right: 16px; background: transparent; color: #fff; }
body.hm-is-scrolled .hm-header-wrap::before { display: none; }
body.hm-is-scrolled .hm-header-wrap .hm-header { box-sizing: border-box; min-height: 70px; width: min(1280px,100%); padding-inline: 26px; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; background: rgba(0,45,36,.94); box-shadow: 0 15px 45px rgba(0,29,23,.25); backdrop-filter: blur(18px); }
body.hm-is-scrolled .hm-header-wrap .hm-logo, body.hm-is-scrolled .hm-header-wrap .hm-nav a, body.hm-is-scrolled .hm-header-wrap .hm-icon-link, body.hm-is-scrolled .hm-header-wrap .hm-search button { color: #fff; }
body.admin-bar.hm-is-scrolled .hm-header-wrap { top: 46px; }
.hm-nav-products { display: inline-flex; align-items: center; min-height: 92px; }
.hm-nav-products > a { display: inline-flex; align-items: center; gap: 5px; }
.hm-nav-chevron { font-size: 18px; line-height: 1; transform: translateY(-3px); }
body.hm-is-scrolled .hm-nav-products { min-height: 70px; }
.hm-mega[hidden], .hm-mega-panel[hidden] { display: none !important; }
.hm-mega { position: absolute; z-index: 305; top: calc(100% + 8px); left: 50%; box-sizing: border-box; width: min(1080px,calc(100vw - 40px)); max-height: calc(100vh - 140px); overflow: auto; padding: 21px; border: 1px solid #e4eee7; border-radius: 18px; background: #fff; color: var(--hm-dark); box-shadow: 0 22px 60px rgba(0,35,28,.22); transform: translateX(-50%); }
.hm-mega-layout { display: grid; grid-template-columns: 225px minmax(0,1fr) 280px; gap: 26px; min-height: 355px; }
.hm-mega-sidebar { display: flex; flex-direction: column; gap: 3px; padding: 10px 17px 10px 3px; border-right: 1px solid #e2ebe5; }
.hm-mega-eyebrow { color: #44844c; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hm-mega-sidebar .hm-mega-eyebrow { margin: 3px 0 14px 11px; }
.hm-mega-sidebar > a { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 41px; padding: 7px 11px; border-radius: 7px; color: var(--hm-dark); text-decoration: none; font-size: 13px; font-weight: 650; line-height: 1.25; }
.hm-mega-sidebar > a span { color: #589542; font-size: 21px; font-weight: 400; }
.hm-mega-sidebar > a:hover, .hm-mega-sidebar > a.is-active { background: #edf8e7; color: #145b3f; }
.hm-mega-sidebar > a.hm-mega-all { justify-content: flex-start; margin-top: auto; color: #1d7048; font-weight: 750; }
.hm-mega-content { padding: 13px 0; }
.hm-mega-content h2 { max-width: 440px; margin: 20px 0 8px; color: var(--hm-dark); font-size: clamp(27px,2.5vw,37px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; }
.hm-mega-content p { margin: 0 0 20px; color: #687970; font-size: 13px; }
.hm-mega-children { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 16px; }
.hm-mega-children a { display: flex; justify-content: space-between; gap: 8px; padding: 13px 0; border-bottom: 1px solid #e7eee8; color: var(--hm-dark); text-decoration: none; font-size: 13px; font-weight: 600; }
.hm-mega-children a span { color: #4c9b41; }
.hm-mega-explore { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #20724a; text-decoration: none; font-size: 13px; font-weight: 750; }
.hm-mega-promo { position: relative; display: flex; flex-direction: column; min-height: 355px; overflow: hidden; padding: 25px; border-radius: 12px; background: var(--hm-lime); }
.hm-mega-promo .hm-mega-eyebrow { color: #25603b; }
.hm-mega-promo h2 { max-width: 230px; margin: 16px 0 8px; font-size: 29px; font-weight: 500; line-height: 1.05; letter-spacing: -.05em; }
.hm-mega-promo p { max-width: 190px; margin: 0; font-size: 12px; line-height: 1.45; }
.hm-mega-promo img { position: absolute; right: -7px; bottom: 37px; width: 170px; height: 135px; object-fit: contain; mix-blend-mode: multiply; }
.hm-mega-promo > a { z-index: 1; display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; margin-top: auto; padding: 11px 12px; border-radius: 6px; background: var(--hm-dark); color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; }
.hm-mobile-category { padding-left: 24px !important; color: var(--hm-lime) !important; font-size: 14px !important; }

/* The image-led hero starts beneath the transparent header on every main page. */
.hm-hero { min-height: max(930px, 100vh); }
.hm-hero-art { background-image: url('./hero-caixas-hidramat.png'); background-position: center center; }
.hm-contours { display: none; }
.hm-hero-inner { padding-top: 150px; padding-bottom: 90px; }
.hm-hero-copy { max-width: 650px; }
.hm-hero h1, .hm-company-hero h1, .hm-catalog-hero h1 { font-weight: 450; letter-spacing: -.055em; }
.hm-hero h1 { font-size: clamp(48px,4.1vw,64px); font-weight: 400; line-height: 1.07; letter-spacing: -.045em; }
body .hm-button.hm-button--lime, body .hm-contact-head { color: var(--hm-dark) !important; }
body .hm-button.hm-button--lime svg, body .hm-contact-head svg { color: currentColor; }
.hm-company-hero { box-sizing: border-box; min-height: 520px; padding-top: 205px; padding-bottom: 105px; border-radius: 0 0 28px 28px; }
.hm-shop-hero-v2, .hm-account-hero { border-radius: 0 0 28px 28px; }
body .hp-shop-page-shell { width: 100%; max-width: none; margin: 0; padding: 0 !important; }
body .hp-shop-page-shell > .hm-catalog-hero { box-sizing: border-box; width: 100%; max-width: none; aspect-ratio: 820 / 312; min-height: 440px; margin: 0 0 45px; padding: 190px 0 90px; border-radius: 0 0 28px 28px; background: linear-gradient(90deg,rgba(0,35,27,.98) 0%,rgba(0,35,27,.90) 34%,rgba(0,35,27,.25) 74%),url('./hero-hidraulica.png') center/cover no-repeat; }
body .hp-shop-page-shell > .hm-catalog-hero h1 { max-width: 700px; }
body .hp-shop-catalog-layout { width: min(1320px,calc(100% - 64px)); max-width: 1320px; margin-inline: auto; }
body .hp-shop-page-shell > .wc-block-store-notices { width: min(1320px,calc(100% - 64px)); margin-inline: auto; }
html body .hp-shop-query .hp-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
html body .hp-shop-query .hp-product-grid > li { min-width: 0 !important; }
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button { position: static !important; align-self: center !important; width: auto !important; margin: 14px auto 0 !important; }
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button .wp-block-button__link,
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button button { display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; width: auto !important; min-width: 0 !important; height: auto !important; min-height: 42px !important; padding: 12px 18px !important; border: 1px solid var(--hm-dark) !important; border-radius: 6px !important; background: var(--hm-dark) !important; color: #fff !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.1 !important; white-space: normal; }
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button .wp-block-button__link span,
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button button span { color: #fff !important; font-size: 12px !important; }
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button .wp-block-button__link::before,
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button button::before,
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button .wp-block-button__link::after,
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button button::after { display: none !important; content: none !important; }
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button .wp-block-button__link:hover,
html body .hp-shop-query .hp-product-grid .wp-block-woocommerce-product-button button:hover { border-color: #145b46 !important; background: #145b46 !important; }

/* Suspended editorial footer and oversized Hidramat signature. */
.hm-footer-stage3 { position: relative; overflow: hidden; padding: 74px 0 22px; background: #f8faf8; color: var(--hm-dark); }
.hm-footer-stage3 .hm-footer-deck { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(300px,.88fr) minmax(0,1.7fr); gap: 16px; align-items: stretch; }
.hm-footer-stage3 .hm-footer-feature, .hm-footer-stage3 .hm-footer-info { box-sizing: border-box; min-height: 295px; padding: clamp(28px,3vw,45px); border-radius: 18px; box-shadow: 0 22px 45px rgba(0,37,28,.09); }
.hm-footer-stage3 .hm-footer-feature { background: var(--hm-dark); color: #fff; }
.hm-footer-feature .hm-eyebrow { color: var(--hm-lime); }
.hm-footer-feature h2 { max-width: 340px; margin: 22px 0 11px; font-size: clamp(34px,3.4vw,53px); font-weight: 500; line-height: 1.06; letter-spacing: -.055em; }
.hm-footer-feature p { max-width: 300px; margin: 0 0 23px; color: #c8ddd2; font-size: 13px; line-height: 1.5; }
.hm-footer-feature .hm-button { min-height: 40px; padding-inline: 15px; }
.hm-footer-stage3 .hm-footer-feature .hm-button--lime { color: var(--hm-dark); }
.hm-footer-stage3 .hm-footer-info { display: grid; grid-template-columns: minmax(130px,1fr) minmax(190px,1.3fr); gap: 28px; background: #e9eeeb; }
.hm-footer-stage3 .hm-footer-label { display: block; margin-bottom: 22px; color: #5a7567; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hm-footer-stage3 nav, .hm-footer-stage3 .hm-footer-contact { gap: 12px; }
.hm-footer-stage3 .hm-footer-info a { color: var(--hm-dark); font-size: 14px; font-weight: 650; }
.hm-footer-stage3 .hm-footer-info a:hover { color: #2d8b4e; }
.hm-footer-stage3 .hm-footer-info p { grid-column: 1 / -1; align-self: end; margin: 0; color: #5e786b; font-size: 14px; }
.hm-footer-wordmark { position: relative; z-index: 1; width: 100%; margin: -25px 0 -24px; overflow: hidden; color: var(--hm-dark); font-size: clamp(100px,18.1vw,390px); font-weight: 900; letter-spacing: -.09em; line-height: .85; text-align: center; white-space: nowrap; user-select: none; }
.hm-footer-wordmark span { color: #70b64c; }
.hm-footer-stage3 .hm-footer-bottom { position: relative; z-index: 2; margin-top: 0; border-top: 1px solid #d5e3da; color: #62796d; }

@media (max-width: 1100px) {
  .hm-mega-layout { grid-template-columns: 185px minmax(0,1fr) 230px; gap: 18px; }
  .hm-mega-promo { padding: 20px; }
}
@media (max-width: 850px) {
  .hm-hero { min-height: 750px; }
  .hm-header-wrap .hm-header { width: calc(100% - 40px); }
  .hm-header-wrap { top: 0; }
  .hm-header-wrap::before { top: 0; height: 130px; }
  .hm-header-wrap .hm-header { min-height: 78px; }
  body.hm-is-scrolled .hm-header-wrap { top: 10px; left: 10px; right: 10px; }
  body.hm-is-scrolled .hm-header-wrap .hm-header { width: 100%; min-height: 62px; padding-inline: 18px; border-radius: 13px; }
  body.hm-is-scrolled .hm-header-wrap .hm-menu-toggle { color: #fff; }
  .hm-mega { display: none !important; }
  .hm-hero-inner { padding-top: 145px; }
  .hm-hero-art { background-position: 63% center; }
  .hm-company-hero { min-height: 460px; padding-top: 145px; }
  body .hp-shop-page-shell > .hm-catalog-hero { aspect-ratio: auto; min-height: 455px; padding-top: 145px; }
  html body .hp-shop-query .hp-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .hm-footer-stage3 .hm-footer-deck { grid-template-columns: 1fr; }
  .hm-footer-wordmark { margin-top: 12px; font-size: 18vw; }
}
@media (max-width: 600px) {
  .hm-header-wrap .hm-header { width: calc(100% - 34px); }
  body:not(.hm-hero-page) .wp-site-blocks > main { padding-top: 105px; }
  body.woocommerce-account:not(.logged-in) .wp-site-blocks > main.hm-account-v2 { padding-top: 105px !important; }
  .hm-hero { min-height: 740px; }
  .hm-hero-art { background-position: 70% center; }
  .hm-hero-inner { padding-top: 132px; padding-bottom: 270px; }
  .hm-hero h1 { font-size: clamp(40px,9.5vw,52px); }
  .hm-company-hero { min-height: 420px; padding-top: 127px; padding-bottom: 70px; border-radius: 0 0 18px 18px; }
  .hm-company-hero h1 { font-size: clamp(40px,9vw,55px); }
  body .hp-shop-page-shell > .hm-catalog-hero { min-height: 435px; padding: 135px 0 65px; border-radius: 0 0 18px 18px; background-position: 60% center; }
  body .hp-shop-page-shell > .hm-catalog-hero h1 { font-size: clamp(40px,9vw,56px); }
  body .hp-shop-catalog-layout { width: calc(100% - 34px); }
  html body .hp-shop-query .hp-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .hm-footer-stage3 { padding-top: 44px; }
  .hm-footer-stage3 .hm-footer-feature, .hm-footer-stage3 .hm-footer-info { min-height: 0; padding: 26px; border-radius: 14px; }
  .hm-footer-stage3 .hm-footer-info { grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .hm-footer-stage3 .hm-footer-info a { overflow-wrap: anywhere; font-size: 12px; }
  .hm-footer-wordmark { margin: 23px 0 0; font-size: 18vw; }
  .hm-footer-stage3 .hm-footer-bottom { margin-top: 20px; }
}
@media (max-width: 420px) {
  html body .hp-shop-query .hp-product-grid { grid-template-columns: 1fr !important; }
  .hm-footer-stage3 .hm-footer-info { grid-template-columns: 1fr; }
  .hm-footer-stage3 .hm-footer-info p { grid-column: auto; }
}
