/* hero */
.hero {
    /* margin-top: 90px; */
    position: relative;
}

/* =====================================================
   Home: hero full-screen atrás do header
   ===================================================== */
.hero.hero--home.swiper-hero {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

/* Home hero sempre em full-bleed (evita faixa lateral em 1320, 1280, etc.) */
.home .hero.hero--home.swiper-hero {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw !important;
  max-width: none !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Garante banner 100% da viewport em qualquer desktop/notebook */
.hero.hero--home .swiper,
.hero.hero--home .swiper-wrapper,
.hero.hero--home .swiper-slide,
.hero.hero--home .swiper-slide > div {
  width: 100% !important;
  max-width: 100% !important;
}

/* Evita "faixa" lateral em resoluções intermediárias (ex.: 1320) */
@media (min-width: 992px) {
  .home .hero.hero--home {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .home .hero.hero--home .hero-slide-media__img {
    object-position: center center !important;
  }
}

/* Home: slide — proporção Figma + mínimo em função da viewport (evita faixas vazias) */
.hero.hero--home .swiper-slide > div.hero-slide-media {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  background-color: #1a0d0d;
  background-position: center center;
  aspect-ratio: 1920 / 988;
  min-height: clamp(22rem, 86vh, 61.75rem);
  min-height: clamp(22rem, 86svh, 61.75rem);
  max-height: min(61.75rem, 94vh);
}

@media (max-width: 991.98px) {
  .hero.hero--home .swiper-slide > div.hero-slide-media {
    aspect-ratio: unset;
    max-height: none;
    min-height: clamp(23rem, 88vh, 42rem);
    min-height: clamp(23rem, 88svh, 42rem);
  }
}

/* Cobre todo o bloco; utilitários Bootstrap (position/top/start/w/h) no HTML */
.hero.hero--home .hero-slide-media__img {
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 11s ease-out;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
}

.hero.hero--home .swiper-slide-active > div.hero-slide-media .hero-slide-media__img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero--home .hero-slide-media__img {
    transition: none;
    transform: scale(1) !important;
  }
}

/* Overlay Figma: gradiente + multiply em toda a área do slide (inclui zona do header transparente) */
.hero.hero--home .swiper-slide > div::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #291212 0%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* Conteúdo sobre o gradiente — padding fluido (header transparente + respiro inferior) */
.hero.hero--home .swiper-slide > div .hero-content-wrap {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding-top: clamp(7.5rem, 12vw + 4rem, 24.5rem);
  padding-bottom: clamp(1rem, 3.5vw, 2.75rem);
}

/* Bloco de texto com largura fixa (~635px do Figma) */
.hero.hero--home .hero-inner {
  display: block;
  width: 100%;
}

.hero.hero--home .hero-article {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0;
}

/* Posição por alinhamento — à esquerda: respeita área da seta (inset + largura do botão) */
.hero.hero--home .hero-inner.hero-pos--left .hero-article {
  text-align: left;
  padding-left: max(
    clamp(18px, 2.2vw, 44px),
    calc(var(--hero-arrow-inset) + 3.5rem)
  );
}

.hero.hero--home .hero-inner.hero-pos--center .hero-article {
  text-align: center;
}

.hero.hero--home .hero-inner.hero-pos--right .hero-article {
  text-align: right;
  padding-right: max(
    clamp(18px, 2.2vw, 44px),
    calc(var(--hero-arrow-inset) + 3.5rem)
  );
}

/* Desktop médio: ligeiro ajuste de padding (tipografia já é fluida com clamp) */
@media (min-width: 992px) and (max-width: 1399px) {
  .hero.hero--home .swiper-slide > div .hero-content-wrap {
    padding-top: clamp(7rem, 11vw + 3.5rem, 20rem);
  }

  .hero.hero--home .hero-inner.hero-pos--left .hero-article {
    padding-left: max(
      clamp(1rem, 2.5vw, 3.5rem),
      calc(var(--hero-arrow-inset) + 3.5rem)
    );
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero.hero--home .swiper-slide > div .hero-content-wrap {
    padding-top: clamp(6.75rem, 14vw + 2rem, 19rem);
  }

  .hero.hero--home .hero-inner.hero-pos--left .hero-article {
    padding-left: max(
      clamp(1.1rem, 3vw, 3.75rem),
      calc(var(--hero-arrow-inset) + 3.5rem)
    );
  }
}

/* Logo opcional */
.hero.hero--home .hero-article__logo {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero.hero--home .hero-article__logo img {
  max-width: 100%;
  height: auto;
}

/* Título — escala em todas as resoluções (reforça .text-white do Bootstrap no HTML) */
.hero.hero--home .hero-article__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw + 0.75rem, 3.65rem);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  margin-bottom: clamp(0.35rem, 1.1vw, 1rem);
}

.hero.hero--home .hero-inner.hero-pos--center .hero-article__title {
  text-align: center;
}

.hero.hero--home .hero-inner.hero-pos--left .hero-article__title {
  text-align: left;
}

/* À direita (Figma): título em caixa alta, alinhado à direita */
.hero.hero--home .hero-inner.hero-pos--right .hero-article__title {
  text-align: right;
  text-transform: uppercase;
}

/* Linha do botão CTA — centro por omissão; left/right sobrescrevem abaixo */
.hero.hero--home .hero-btn-row,
.hero.hero--home [data-hero-cta-row],
.hero.hero--home .hero-article > div:has(> a.btn-hero) {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.hero.hero--home .hero-inner.hero-pos--center .hero-btn-row {
  justify-content: center !important;
}

.hero.hero--home .hero-inner.hero-pos--left .hero-btn-row,
.hero.hero--home .hero-inner.hero-pos--left [data-hero-cta-row],
.hero.hero--home .hero-inner.hero-pos--left .hero-article > div:has(> a.btn-hero) {
  justify-content: flex-start !important;
}

.hero.hero--home .hero-inner.hero-pos--right .hero-btn-row,
.hero.hero--home .hero-inner.hero-pos--right [data-hero-cta-row],
.hero.hero--home .hero-inner.hero-pos--right .hero-article > div:has(> a.btn-hero) {
  justify-content: flex-end !important;
}

.hero.hero--home .hero-inner.hero-pos--right .hero-article__logo {
  display: flex;
  justify-content: flex-end;
}

/* Subtítulo à direita: formato frase (Figma), sem uppercase forçado */
.hero.hero--home .hero-inner.hero-pos--right .hero-descricao,
.hero.hero--home .hero-inner.hero-pos--right .hero-descricao * {
  text-transform: none !important;
}

/* Descrição do banner home — não depende de body.home; força cor/uppercase/peso sobre estilos do WYSIWYG */
.hero.hero--home .hero-descricao * {
  text-transform: uppercase !important;
  color: inherit !important;
  font-weight: 600 !important;
}

.hero.hero--home .hero-descricao {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(0.78rem, 0.85vw + 0.52rem, 1.375rem);
  line-height: 1.35;
  margin-bottom: clamp(0.5rem, 1.4vw, 1.25rem);
  color: #ffffff;
  text-align: inherit;
}

.hero.hero--home .hero-descricao p {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  margin-bottom: 0.5em;
}

.hero.hero--home .hero-descricao p:last-child {
  margin-bottom: 0;
}

/* Botão hero (compatível com .btn do Bootstrap no banner da home) */
.hero .btn-hero,
.hero a.btn.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(6.5rem, 28vw, 10.25rem);
  min-height: clamp(2.35rem, 8vw, 3.25rem);
  padding: clamp(0.45rem, 1.5vw, 0.65rem) clamp(0.85rem, 3.5vw, 1.5rem) !important;
  background-color: #fc2e36;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(0.8rem, 2.1vw, 1.15rem);
  line-height: 1.2;
  text-transform: capitalize;
  letter-spacing: 0;
  text-align: center;
  border: none;
  border-radius: 50px;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
  box-sizing: border-box;
}

@media (hover: hover) {
  .hero .btn-hero:hover,
  .hero .btn-hero:focus-visible,
  .hero a.btn.btn-hero:hover,
  .hero a.btn.btn-hero:focus-visible {
    background-color: #d9222a;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(252, 46, 54, 0.35);
  }
}

.hero .btn-hero:focus-visible,
.hero a.btn.btn-hero:focus-visible {
  background-color: #d9222a;
  color: #fff !important;
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

@media (max-width: 767.98px) {
  /*
   * Figma mobile 360: alerta 125px + coluna ~730px; título ~300, setas ~480, CTA ~656
   */
  .hero.hero--home .swiper-slide > div.hero-slide-media {
    min-height: max(44rem, min(100svh, 53.5rem));
    min-height: max(44rem, min(100vh, 53.5rem));
  }

  .hero.hero--home {
    --hero-arrow-inset: 7px;
    /* Centro vertical das setas ~480px no frame Figma → ~59% da altura útil típica */
    --hero-arrow-y: 59%;
  }

  .hero.hero--home .swiper-slide > div .hero-content-wrap {
    padding-top: clamp(16.5rem, 83.33vw, 18.75rem);
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
    padding-left: 0;
    padding-right: 0;
  }

  /* Com logo opcional no slide: menos padding; título desce com o bloco */
  .hero.hero--home .swiper-slide > div .hero-content-wrap:has(.hero-article__logo) {
    padding-top: clamp(10rem, 52vw, 12.5rem);
  }

  .hero.hero--home .hero-inner.hero-pos--left .hero-article,
  .hero.hero--home .hero-inner.hero-pos--center .hero-article,
  .hero.hero--home .hero-inner.hero-pos--right .hero-article {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 20.375rem;
    text-align: center !important;
  }

  .hero.hero--home .hero-inner.hero-pos--left .hero-article,
  .hero.hero--home .hero-inner.hero-pos--right .hero-article {
    padding-left: clamp(0.65rem, 4.2vw, 1.2rem) !important;
    padding-right: clamp(0.65rem, 4.2vw, 1.2rem) !important;
  }

  .hero.hero--home .hero-article__logo {
    margin-bottom: 0.75rem;
  }

  .hero.hero--home .hero-article__title {
    font-size: clamp(2rem, 13.9vw, 3.125rem) !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin-bottom: 0 !important;
    min-height: 0;
  }

  .hero.hero--home .hero-descricao {
    font-size: 1.125rem !important;
    line-height: 1.555 !important;
    font-weight: 600 !important;
    text-align: center !important;
    max-width: 18.0625rem;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 1.4375rem !important;
    margin-bottom: 0 !important;
    text-transform: none !important;
  }

  .hero.hero--home .hero-descricao * {
    font-size: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
  }

  .hero.hero--home .hero-btn-row,
  .hero.hero--home [data-hero-cta-row],
  .hero.hero--home .hero-article > div:has(> a.btn-hero) {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 1.4375rem !important;
  }

  .hero .btn-hero,
  .hero a.btn.btn-hero {
    min-width: 8.1875rem !important;
    max-width: 8.1875rem !important;
    min-height: 2.6875rem !important;
    padding: 0.75rem 1.5625rem !important;
    font-size: 1rem !important;
    line-height: 1.1875 !important;
  }

  .hero.hero--home .hero-btn-row .btn-hero,
  .hero.hero--home [data-hero-cta-row] .btn-hero,
  .hero.hero--home .hero-article > div:has(> a.btn-hero) .btn-hero {
    margin-inline: auto !important;
  }

  .hero.hero--home .hero-home-arrows .hero-home-arrow-btn,
  .hero.hero--home .hero-home-arrows .swiper-button-prev,
  .hero.hero--home .hero-home-arrows .swiper-button-next {
    top: var(--hero-arrow-y) !important;
    transform: translateY(-50%) !important;
  }

  .hero.hero--home .hero-home-arrows .swiper-button-prev {
    left: var(--hero-arrow-inset) !important;
  }

  .hero.hero--home .hero-home-arrows .swiper-button-next {
    right: var(--hero-arrow-inset) !important;
  }

  .hero.hero--home .hero-home-arrow-img {
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
  }
}

.hero .swiper-wrapper {
    height: auto;
}

.hero .swiper-slide>div {
    /* padding-block: 52px; */

    display: flex;
    /* align-items: center; */

    width: 100%;
    height: 100%;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: left center;
}

.hero .swiper-button-prev,
.hero .swiper-button-next {
    color: #d7cbcb;
    opacity: .75;
    transform: translateY(-50%);
}

.hero .swiper-button-prev::after,
.hero .swiper-button-next::after {
    font-size: 1.75rem;
}

/* Não aplicar altura fixa ao banner da home (.hero-slide-media também usa .dark-mode) */
.hero .dark-mode:not(.hero-slide-media) {
    position: relative;
    display: flex;
    width: 100%;
    height: 360px;
    overflow: hidden;
}

.hero .dark-mode:not(.hero-slide-media) article {
    background-color: rgba(0, 0, 0, .75);
    color: var(--white);
    position: relative;
    z-index: 2;
}

.hero .dark-mode:not(.hero-slide-media) picture {
    overflow: hidden;
}

.hero .dark-mode:not(.hero-slide-media) picture>img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    display: block;
}

.hero article > h3,
.hero .hero-article__title {
  font-size: 2.5rem;
}

/* Home: tipografia completa do título em .hero.hero--home .hero-article__title (acima) */

.swiper-hero,
.swiper-acompanhe-a-acao {
  width: 100%;
  min-width: 320px;
  overflow: hidden;
}

/* =====================================================
   Home: setas do Swiper — Figma: faixa a 527px em artboard 988px (≈53,35%);
   mesma linha vertical em todas as resoluções; insets ~50px em 1920 → clamp
   ===================================================== */
.hero.hero--home {
  position: relative;
  /* Figma: 527÷988 ≈ 53,35%; insets ~50px em 1920px */
  --hero-arrow-inset: clamp(0.5rem, 2.6vw, 3.125rem);
  --hero-arrow-y: 53.35%;
}

@media (max-width: 575.98px) {
  .hero.hero--home {
    --hero-arrow-inset: 7px;
    --hero-arrow-y: 59%;
  }
}

.hero.hero--home .hero-home-arrows {
  pointer-events: none;
}

/* Especificidade acima do Swiper CDN — sem !important */
.hero.hero--home .hero-home-arrows .hero-home-arrow-btn,
.hero.hero--home .hero-home-arrows .swiper-button-prev,
.hero.hero--home .hero-home-arrows .swiper-button-next {
  position: absolute;
  top: var(--hero-arrow-y, 53.35%);
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  transform: translateY(-50%);
  width: clamp(2.75rem, 7vw, 3.375rem);
  height: clamp(2.75rem, 7vw, 3.375rem);
  min-width: 44px;
  min-height: 44px;
  color: transparent;
  opacity: 1;
  pointer-events: auto;
  background: none;
  border: none;
  z-index: 12;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.hero.hero--home .hero-home-arrows .swiper-button-prev {
  left: var(--hero-arrow-inset);
}

.hero.hero--home .hero-home-arrows .swiper-button-next {
  right: var(--hero-arrow-inset);
}

.hero.hero--home .hero-home-arrows .swiper-button-prev:hover,
.hero.hero--home .hero-home-arrows .swiper-button-next:hover,
.hero.hero--home .hero-home-arrows .swiper-button-prev:focus,
.hero.hero--home .hero-home-arrows .swiper-button-next:focus {
  opacity: 0.85;
}

@media (hover: hover) {
  .hero.hero--home .hero-home-arrows .swiper-button-prev:hover .hero-home-arrow-img,
  .hero.hero--home .hero-home-arrows .swiper-button-next:hover .hero-home-arrow-img {
    transform: scale(1.08);
  }

  .hero.hero--home .hero-home-arrows .swiper-button-prev:active .hero-home-arrow-img,
  .hero.hero--home .hero-home-arrows .swiper-button-next:active .hero-home-arrow-img {
    transform: scale(0.96);
  }
}

.hero.hero--home .hero-home-arrow-img {
  display: block;
  width: clamp(1.15rem, 4.2vw, 3.375rem);
  height: clamp(1.15rem, 4.2vw, 3.375rem);
  max-width: 54px;
  max-height: 54px;
  object-fit: contain;
  pointer-events: none;
  transition: transform 0.28s ease;
}

/* Esconde glyph padrão do Swiper — ícone é o <img> */
.hero.hero--home .hero-home-arrows .swiper-button-prev::after,
.hero.hero--home .hero-home-arrows .swiper-button-next::after {
  display: none !important;
  content: none !important;
}

.hero.hero--home .hero-home-arrows .swiper-button-disabled {
  opacity: 0.4 !important;
}

.swiper {
  height: 100%;
}

.swiper-slide {
    height: auto !important;
}
.swiper-content {
    height: 100% !important
}

/* responsive — heros internos com .dark-mode (exclui banner home .hero-slide-media) */
@media(max-width: 767px) {
    .hero .dark-mode:not(.hero-slide-media) {
        flex-direction: column;
    }
    
    .hero .dark-mode:not(.hero-slide-media) article {
        width: 100% !important;
        min-height: 360px;
    }
    
    .hero .dark-mode:not(.hero-slide-media) picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }
    
    .hero article>h3,
    .hero .hero-article__title {
        font-size: 1.75rem;
    }
}

@media(min-width: 768px) {
    .hero .dark-mode:not(.hero-slide-media) {
        flex-direction: row;
    }
    
    .hero .dark-mode:not(.hero-slide-media) article {
        width: 50%;
    }
    
    .hero .dark-mode:not(.hero-slide-media) picture {
        position: relative;
        width: 50%;
        height: auto;
    }
}

@media(min-width:1024px) {
    .hero .swiper-button-prev::after,
    .hero .swiper-button-next::after {
        font-size: 2.25rem;
    }

    /* .hero .dark-mode article {
        background-color: var(--gray);
    } */
}