/* =========================================================
   ABERTURA DA HOME — FACHADA COM FADE NO SCROLL
   ========================================================= */

.home-abertura {
  --home-abertura-amarelo: #ffd500;
  --home-abertura-preto: #080808;
  --home-abertura-largura: 1240px;

  position: relative;
  width: 100%;
  height: 125svh;
  min-height: 820px;
  overflow: visible;
  background: var(--home-abertura-preto);
  color: #fff;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.home-abertura,
.home-abertura *,
.home-abertura *::before,
.home-abertura *::after {
  box-sizing: border-box;
}

.home-abertura__stage {
  --home-abertura-progresso: 0;
  --home-abertura-imagem-opacidade: 1;
  --home-abertura-imagem-transformacao: translate3d(0, 0, 0) scale(1.02);
  --home-abertura-conteudo-opacidade: 1;
  --home-abertura-conteudo-y: 0px;

  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 70% 40%, #25200b 0, #090909 45%, #050505 100%);
}

.home-abertura__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: calc(1 - var(--home-abertura-progresso) * 0.24);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.58) 34%, rgba(0, 0, 0, 0.04) 68%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.04) 45%, rgba(0, 0, 0, 0.78) 100%);
}

.home-abertura__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 0.55px, transparent 0.7px);
  background-size: 4px 4px;
  mix-blend-mode: soft-light;
}

.home-abertura__midia {
  position: absolute;
  inset: -5%;
  z-index: 1;
  overflow: hidden;
  opacity: var(--home-abertura-imagem-opacidade);
  will-change: opacity;
}

.home-abertura__midia img {
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05) brightness(0.88);
  transform: var(--home-abertura-imagem-transformacao);
  transform-origin: center;
  will-change: transform;
}

.home-abertura__grade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 14.285vw 100%, 100% 25%;
  mask-image: linear-gradient(to right, #000, transparent 75%);
}

.home-abertura__conteudo {
  position: absolute;
  left: max(clamp(24px, 7vw, 112px), calc((100% - var(--home-abertura-largura)) / 2));
  bottom: clamp(92px, 11vh, 132px);
  z-index: 5;
  width: min(820px, calc(100% - clamp(48px, 14vw, 224px)));
  opacity: var(--home-abertura-conteudo-opacidade);
  transform: translate3d(0, var(--home-abertura-conteudo-y), 0);
  will-change: opacity, transform;
}

.home-abertura__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(18px, 2.4vh, 28px);
  color: var(--home-abertura-amarelo);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(0.68rem, 0.75vw, 0.8rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.home-abertura__eyebrow::before {
  content: "";
  width: 38px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.home-abertura__eyebrow span {
  color: #fff;
}

.home-abertura h1 {
  max-width: 850px;
  margin: 0;
  color: #fff;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: clamp(3rem, 6.65vw, 7.35rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.9;
  text-wrap: balance;
}

.home-abertura h1 strong {
  display: block;
  color: var(--home-abertura-amarelo);
  font-weight: inherit;
}

.home-abertura__texto {
  max-width: 620px;
  margin: clamp(24px, 3.2vh, 36px) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  font-weight: 600;
  line-height: 1.65;
}

.home-abertura__rolar {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: clamp(28px, 4vh, 46px);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-abertura__rolar-icone {
  position: relative;
  width: 30px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
}

.home-abertura__rolar-icone::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--home-abertura-amarelo);
  transform: translateX(-50%);
  animation: home-abertura-rolar 1.8s ease-in-out infinite;
}

.home-abertura__local {
  position: absolute;
  top: clamp(32px, 5vw, 72px);
  right: max(clamp(24px, 7vw, 112px), calc((100% - var(--home-abertura-largura)) / 2));
  z-index: 5;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(4, 4, 4, 0.28);
  opacity: var(--home-abertura-conteudo-opacidade);
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-abertura__local strong {
  font-size: 0.83rem;
  font-weight: 900;
}

.home-abertura__credito {
  position: absolute;
  right: max(clamp(24px, 7vw, 112px), calc((100% - var(--home-abertura-largura)) / 2));
  bottom: clamp(37px, 5vh, 60px);
  z-index: 5;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  opacity: var(--home-abertura-conteudo-opacidade);
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.home-abertura__ancora {
  height: 0;
  scroll-margin-top: 14px;
}

@keyframes home-abertura-rolar {
  0%, 100% {
    opacity: 0.35;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 14px);
  }
}

@media (hover: hover) and (pointer: fine) {
  .home-abertura__rolar:hover {
    color: var(--home-abertura-amarelo);
  }
}

@media (max-width: 820px) {
  .home-abertura {
    height: 122svh;
    min-height: 780px;
  }

  .home-abertura__stage {
    min-height: 640px;
  }

  .home-abertura__stage::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.73), rgba(0, 0, 0, 0.18)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.1) 15%, rgba(0, 0, 0, 0.84) 100%);
  }

  .home-abertura__midia img {
    object-position: 54% center;
  }

  .home-abertura__conteudo {
    left: 24px;
    bottom: 64px;
    width: calc(100% - 48px);
  }

  .home-abertura h1 {
    font-size: clamp(3.1rem, 11vw, 5.6rem);
  }

  .home-abertura__local {
    top: 25px;
    right: 24px;
  }

  .home-abertura__credito {
    display: none;
  }
}

@media (max-width: 620px) {
  .home-abertura {
    height: 118svh;
    min-height: 740px;
  }

  .home-abertura__stage {
    min-height: 620px;
  }

  .home-abertura__midia {
    inset: -2%;
  }

  .home-abertura__midia img {
    object-position: 51% center;
  }

  .home-abertura__conteudo {
    right: 18px;
    bottom: 38px;
    left: 18px;
    width: auto;
  }

  .home-abertura__eyebrow {
    max-width: 290px;
    flex-wrap: wrap;
    margin-bottom: 15px;
    letter-spacing: 0.13em;
  }

  .home-abertura__eyebrow::before {
    width: 28px;
  }

  .home-abertura h1 {
    font-size: clamp(2.85rem, 14vw, 4.5rem);
    line-height: 0.93;
  }

  .home-abertura__texto {
    margin-top: 19px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .home-abertura__rolar {
    margin-top: 24px;
    font-size: 0.72rem;
  }

  .home-abertura__rolar-icone {
    width: 26px;
    height: 40px;
  }

  .home-abertura__local {
    top: 18px;
    right: 18px;
    padding: 11px 13px;
  }

  .home-abertura__local strong {
    font-size: 0.72rem;
  }
}

@media (max-width: 390px) {
  .home-abertura__local {
    display: none;
  }

  .home-abertura h1 {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-abertura {
    height: auto;
    min-height: 0;
  }

  .home-abertura__stage {
    position: relative;
    height: min(900px, 100svh);
  }

  .home-abertura__rolar-icone::after {
    animation: none;
  }
}
