.huu-uib-hpmx,
.huu-uib-hpmx * {
  box-sizing: border-box;
}

.huu-uib-hpmx {
  --huu-uib-hpmx-gap: 24px;
  --huu-uib-hpmx-columns: 1fr;
  --huu-uib-hpmx-bg-position: center center;
  --huu-uib-hpmx-overlay-start: rgba(10, 16, 28, 0.78);
  --huu-uib-hpmx-overlay-end: rgba(10, 16, 28, 0.26);
  --huu-uib-hpmx-content-align: left;
  --huu-uib-hpmx-side-order-mobile: 2;
  --huu-uib-hpmx-side-order-tablet: 2;
  --huu-uib-hpmx-min-height: auto;

  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: visible;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: var(--huu-uib-hpmx-bg-position);
}

.huu-uib-hpmx img,
.huu-uib-hpmx svg,
.huu-uib-hpmx iframe,
.huu-uib-hpmx video {
  max-width: 100%;
}

.huu-uib-hpmx a {
  text-decoration: none;
}

.huu-uib-hpmx__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    135deg,
    var(--huu-uib-hpmx-overlay-start) 0%,
    var(--huu-uib-hpmx-overlay-end) 100%
  );
}

.huu-uib-hpmx__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--huu-uib-inner-max-width, 1240px);
  margin: 0 auto;
  min-height: var(--huu-uib-hpmx-min-height);
  display: flex;
  align-items: center;
}

.huu-uib-hpmx__grid {
  display: grid;
  grid-template-columns: var(--huu-uib-hpmx-columns);
  gap: var(--huu-uib-hpmx-gap);
  align-items: center;
  align-content: center;
  width: 100%;
  min-height: var(--huu-uib-hpmx-min-height);
}

.huu-uib-hpmx__content,
.huu-uib-hpmx__media-column {
  position: relative;
  min-width: 0;
  z-index: 2;
  align-self: center;
}

.huu-uib-hpmx__content {
  justify-self: start;
  width: 100%;
  max-width: 760px;
  text-align: var(--huu-uib-hpmx-content-align);
}

.huu-uib-hpmx__media-column {
  justify-self: center;
  display: flex;
  align-items: center;
  width: 100%;
}

.huu-uib-hpmx__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.huu-uib-hpmx__title {
  margin: 0;
  color: #ffffff;
  font-size: var(--huu-uib-h1-size, clamp(2.25rem, 5vw, 5.5rem));
  line-height: 0.96;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.huu-uib-hpmx__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.125rem;
  line-height: 1.65;
}

.huu-uib-hpmx__text p {
  margin: 0;
}

.huu-uib-hpmx__text p + p {
  margin-top: 1em;
}

.huu-uib-hpmx__meta {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.55;
}

.huu-uib-hpmx__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.huu-uib-hpmx__button,
.huu-uib-hpmx__button:visited,
.huu-uib-hpmx__button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  border-radius: 16px;
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease,
    box-shadow 0.25s ease;
}

.huu-uib-hpmx__button span {
  color: inherit;
}

.huu-uib-hpmx__button:hover,
.huu-uib-hpmx__button:focus-visible {
  transform: translateY(-1px);
}

.huu-uib-hpmx__button--primary,
.huu-uib-hpmx__button--primary:visited,
.huu-uib-hpmx__button--primary:active {
  background-color: #007721;
  color: #ffffff;
}

.huu-uib-hpmx__button--primary span {
  color: #ffffff;
}

.huu-uib-hpmx__button--primary:hover,
.huu-uib-hpmx__button--primary:focus-visible {
  background-color: #045f12;
  color: #ffffff;
}

.huu-uib-hpmx__button--secondary,
.huu-uib-hpmx__button--secondary:visited,
.huu-uib-hpmx__button--secondary:active {
  background-color: rgba(255, 255, 255, 0.96);
  color: #111b33;
}

.huu-uib-hpmx__button--secondary span {
  color: #111b33;
}

.huu-uib-hpmx__button--secondary:hover,
.huu-uib-hpmx__button--secondary:focus-visible {
  background-color: #ffffff;
  color: #007721;
}

.huu-uib-hpmx-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-block: auto;
  padding: 16px;
  cursor: pointer;
}

.huu-uib-hpmx-media__visual {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: #d7dde6;
}

.huu-uib-hpmx-media__slider {
  position: relative;
  min-height: inherit;
  height: 100%;
}

.huu-uib-hpmx-media__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 260px;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition:
    opacity 0.45s ease,
    transform 0.6s ease,
    visibility 0.45s ease;
  pointer-events: none;
}

.huu-uib-hpmx-media__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.huu-uib-hpmx-media__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.huu-uib-hpmx-media__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.huu-uib-hpmx-media__title {
  display: block;
  font-size: 1rem;
  line-height: 1.35;
}

.huu-uib-hpmx-media__caption {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0.72;
}

.huu-uib-hpmx-media__link {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.huu-uib-hpmx-media__badge-icon-wrap {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: #007721;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.huu-uib-hpmx-media__badge-icon-wrap.is-video {
  top: 50%;
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

.huu-uib-hpmx-media__badge-icon-wrap svg,
.huu-uib-hpmx-media__inline-nav svg,
.huu-uib-hpmx-modal__nav svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.huu-uib-hpmx-media__inline-nav,
.huu-uib-hpmx-modal__nav {
  position: absolute;
  top: 50%;
  z-index: 8;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: rgba(0, 119, 33, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(3px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.huu-uib-hpmx-media__inline-nav:hover,
.huu-uib-hpmx-modal__nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.huu-uib-hpmx-media__inline-nav--prev,
.huu-uib-hpmx-modal__nav--prev {
  left: 14px;
}

.huu-uib-hpmx-media__inline-nav--next,
.huu-uib-hpmx-modal__nav--next {
  right: 14px;
}

.huu-uib-hpmx-media__dots {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  gap: 8px;
  justify-content: center;
  z-index: 4;
}

.huu-uib-hpmx-media__dot,
.huu-uib-hpmx-modal__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.huu-uib-hpmx-media__dot.is-active,
.huu-uib-hpmx-modal__dot.is-active {
  background: #ffffff;
  transform: scale(1.15);
}

.huu-uib-hpmx-media__count,
.huu-uib-hpmx-modal__count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 16, 28, 0.75);
  color: #ffffff;
  font-size: 0.82rem;
  line-height: 1;
}

.huu-uib-hpmx-modal-open {
  overflow: hidden;
}

.huu-uib-hpmx-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.huu-uib-hpmx-modal[hidden] {
  display: none;
}

.huu-uib-hpmx-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.86);
  backdrop-filter: blur(10px);
}

.huu-uib-hpmx-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100vw - 40px));
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(7, 12, 22, 0.38);
  background: #ffffff;
}

.huu-uib-hpmx-modal__dialog--video .huu-uib-hpmx-modal__header,
.huu-uib-hpmx-modal__dialog--gallery .huu-uib-hpmx-modal__header {
  background: #0c1220;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.huu-uib-hpmx-modal__dialog--gallery {
  width: min(92vw, 1280px);
  max-width: min(92vw, 1280px);
  height: min(86vh, 880px);
  background: #0c1220;
}

.huu-uib-hpmx-modal__header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
}

.huu-uib-hpmx-modal__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
}

.huu-uib-hpmx-modal__close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.huu-uib-hpmx-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.huu-uib-hpmx-modal__body {
  padding: 24px;
  background: #ffffff;
}

.huu-uib-hpmx-modal__dialog--video .huu-uib-hpmx-modal__body {
  padding: 20px;
  background: #111827;
}

.huu-uib-hpmx-modal__body iframe,
.huu-uib-hpmx-modal__body video,
.huu-uib-hpmx-modal__body embed,
.huu-uib-hpmx-modal__body object {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 18px;
  background: #000000;
}

.huu-uib-hpmx-modal__gallery {
  position: relative;
  flex: 1 1 auto;
  min-height: min(70vh, 820px);
  height: 100%;
  background: #0c1220;
  overflow: hidden;
}

.huu-uib-hpmx-modal__dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
}

.huu-uib-hpmx-modal__figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-content: center;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.01);
  transition:
    opacity 0.28s ease,
    transform 0.32s ease,
    visibility 0.28s ease;
  pointer-events: none;
}

.huu-uib-hpmx-modal__figure.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.huu-uib-hpmx-modal__figure img {
  display: block;
  width: 100%;
  height: min(70vh, 720px);
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.huu-uib-hpmx-modal__figure figcaption {
  padding: 16px 24px 24px;
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Animation system */
.huu-uib-hpmx-animate {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-property: opacity, transform;
  transition-duration: 700ms;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

html.elementor-editor-active .huu-uib-hpmx-animate,
body.elementor-editor-active .huu-uib-hpmx-animate,
html.elementor-preview .huu-uib-hpmx-animate,
body.elementor-preview .huu-uib-hpmx-animate {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

html:not(.elementor-editor-active):not(.elementor-preview) .huu-uib-hpmx-animate[data-huu-hpmx-animation]:not([data-huu-hpmx-animation="none"]) {
  opacity: 0;
}

html:not(.elementor-editor-active):not(.elementor-preview) .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-up"] {
  transform: translate3d(0, 30px, 0);
}

html:not(.elementor-editor-active):not(.elementor-preview) .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-down"] {
  transform: translate3d(0, -30px, 0);
}

html:not(.elementor-editor-active):not(.elementor-preview) .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-left"] {
  transform: translate3d(30px, 0, 0);
}

html:not(.elementor-editor-active):not(.elementor-preview) .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-right"] {
  transform: translate3d(-30px, 0, 0);
}

html:not(.elementor-editor-active):not(.elementor-preview) .huu-uib-hpmx-animate[data-huu-hpmx-animation="zoom-in"] {
  transform: scale(0.94);
}

.huu-uib-hpmx-animate.is-visible,
.huu-uib-hpmx-animate[data-huu-hpmx-animation="none"] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Editor replay seguro: o JS ativa esta classe só no editor */
.huu-uib-hpmx.huu-uib-hpmx--editor-animating .huu-uib-hpmx-animate[data-huu-hpmx-animation]:not([data-huu-hpmx-animation="none"]) {
  opacity: 0 !important;
}

.huu-uib-hpmx.huu-uib-hpmx--editor-animating .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-up"] {
  transform: translate3d(0, 30px, 0) !important;
}

.huu-uib-hpmx.huu-uib-hpmx--editor-animating .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-down"] {
  transform: translate3d(0, -30px, 0) !important;
}

.huu-uib-hpmx.huu-uib-hpmx--editor-animating .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-left"] {
  transform: translate3d(30px, 0, 0) !important;
}

.huu-uib-hpmx.huu-uib-hpmx--editor-animating .huu-uib-hpmx-animate[data-huu-hpmx-animation="fade-right"] {
  transform: translate3d(-30px, 0, 0) !important;
}

.huu-uib-hpmx.huu-uib-hpmx--editor-animating .huu-uib-hpmx-animate[data-huu-hpmx-animation="zoom-in"] {
  transform: scale(0.94) !important;
}


@media (min-width: 1025px) {
  .huu-uib-hpmx.huu-uib-hpmx--has-side-media .huu-uib-hpmx__grid {
    grid-template-columns: var(--huu-uib-hpmx-columns);
  }
}

@media (max-width: 1024px) {
  .huu-uib-hpmx__grid {
    grid-template-columns: 1fr;
  }

  .huu-uib-hpmx__media-column {
    order: var(--huu-uib-hpmx-side-order-tablet);
    justify-self: stretch;
  }

  .huu-uib-hpmx__actions[data-huu-button-width-tablet="full"] .huu-uib-hpmx__button {
    width: 100%;
  }

  .huu-uib-hpmx__actions[data-huu-button-width-tablet="auto"] {
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  .huu-uib-hpmx__media-column {
    order: var(--huu-uib-hpmx-side-order-mobile);
  }

  .huu-uib-hpmx__title {
    font-size: clamp(2rem, 12vw, 3.6rem);
  }

  .huu-uib-hpmx__text {
    font-size: 1rem;
  }

  .huu-uib-hpmx__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .huu-uib-hpmx__actions[data-huu-button-width-mobile="auto"] {
    align-items: flex-start;
  }

  .huu-uib-hpmx__actions[data-huu-button-width-mobile="full"] .huu-uib-hpmx__button {
    width: 100%;
  }

  .huu-uib-hpmx-media__visual,
  .huu-uib-hpmx-media__slider,
  .huu-uib-hpmx-media__slide {
    min-height: 220px;
  }

  .huu-uib-hpmx-modal {
    padding: 12px;
  }

  .huu-uib-hpmx-modal__dialog,
  .huu-uib-hpmx-modal__dialog--gallery {
    width: min(100%, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    border-radius: 18px;
  }

  .huu-uib-hpmx-modal__header {
    padding: 14px;
  }

  .huu-uib-hpmx-modal__body {
    padding: 16px;
  }

  .huu-uib-hpmx-modal__figure img {
    max-height: calc(100vh - 140px);
  }

  .huu-uib-hpmx-modal__figure figcaption {
    padding: 14px 16px 18px;
  }

  .huu-uib-hpmx-modal__gallery {
    min-height: 52vh;
  }
}