/* A imagem acompanha a rolagem enquanto o conteúdo segue no fluxo da página. */
body.site-refino .hero-imersivo {
  position: relative;
  isolation: isolate;
  background: var(--refino-base);
}

.hero-imersivo-cena {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-imersivo-cena picture,
.hero-imersivo-cena img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-imersivo-cena picture {
  position: relative;
  z-index: 0;
  transform-origin: center bottom;
}

.hero-imersivo-cena img {
  object-fit: cover;
  object-position: center;
}

.hero-imersivo-cena::before {
  position: absolute;
  content: "";
  pointer-events: none;

  z-index: 1;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 74% at 50% 45%, #050a30c9 24%, #050a308c 59%, transparent 100%),
    linear-gradient(180deg, #050a305c, #050a3038 35%, #050a3073 80%, #050a30b3);
}

.hero-imersivo .site-hero-layout {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  min-block-size: clamp(36rem, calc(100svh - 90px), 65rem);
  padding-block: clamp(3rem, 7vh, 5.5rem) clamp(5rem, 10vh, 7.5rem);
  text-align: center;
}

.hero-imersivo .nova-hero-copy {
  width: 100%;
  max-width: 63rem;
}

body.site-refino .hero-imersivo .nova-kicker {
  justify-content: center;
  margin-inline: auto;
}

.hero-imersivo .nova-kicker::after {
  width: 1.4rem;
  height: 1px;
  flex: none;
  background: currentColor;
  content: "";
}

body.site-refino .hero-imersivo h1 {
  max-width: 17ch;
  margin: .38em auto .36em;
  font-size: clamp(2.1rem, 6.1vw, 5.625rem);
  letter-spacing: -.062em;
  text-shadow: 0 2px 22px #050a3073;
}

body.site-refino .hero-imersivo .nova-hero-intro {
  max-width: 59ch;
  margin-inline: auto;
  color: var(--refino-ivory);
  line-height: 1.6;
  text-shadow: 0 1px 8px #050a30;
}

.hero-imersivo .nova-hero-actions {
  justify-content: center;
  gap: .45rem 1.25rem;
}

.hero-imersivo .nova-hero-actions .button {
  max-inline-size: 100%;
  justify-content: center;
  text-align: center;
}

.hero-imersivo .nova-hero-actions .text-link {
  text-shadow: 0 1px 8px #050a30;
}

.hero-imersivo .nova-hero-actions a:focus-visible {
  outline: 2px solid var(--refino-ivory);
  outline-offset: 4px;
}

@keyframes hero-imersivo-entrada {
  from { opacity: .82; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-imersivo[data-hero-entrada] :is(.nova-kicker, h1, .nova-hero-intro) {
    animation: hero-imersivo-entrada 440ms var(--motion-out, cubic-bezier(.22, 1, .36, 1)) both;
  }

  .hero-imersivo[data-hero-entrada] h1 { animation-delay: 42ms; }
  .hero-imersivo[data-hero-entrada] .nova-hero-intro { animation-delay: 82ms; }

  .hero-imersivo[data-hero-movimento] .hero-imersivo-cena picture {
    --hero-deslocamento: 24px;
    transform: translateY(calc(var(--hero-progresso, 0) * var(--hero-deslocamento)))
      scale(calc(1 + var(--hero-progresso, 0) * .05));
  }
}

@media (max-width: 760px) {
  .hero-imersivo .site-hero-layout {
    min-block-size: max(0px, calc(100svh - 73px));
    padding-block: clamp(2.35rem, 7vh, 4.5rem) clamp(3.5rem, 9vh, 5rem);
  }

  .hero-imersivo-cena::before {
    background:
      radial-gradient(ellipse 76% 58% at 50% 45%, #050a30e8 18%, #050a30c9 55%, transparent 100%),
      linear-gradient(180deg, #050a305c, #050a304f 72%, #050a3099);
  }

  body.site-refino .hero-imersivo h1 {
    font-size: clamp(2rem, 8.4vw, 3.85rem);
    letter-spacing: -.054em;
  }

  body.site-refino .hero-imersivo .nova-hero-intro { font-size: clamp(.94rem, 3.65vw, 1rem); }

  .hero-imersivo .nova-hero-actions { margin-top: 1.15rem; }

  .hero-imersivo[data-hero-movimento] .hero-imersivo-cena picture { --hero-deslocamento: 10px; }
}

@media (min-width: 761px) and (max-width: 1200px) and (orientation: portrait) {
  .hero-imersivo-cena img { object-position: center 32%; }
}

@media (max-width: 360px) {
  .hero-imersivo .site-hero-layout {
    align-items: start;
    padding-block-start: 1.3rem;
  }
  body.site-refino .hero-imersivo .nova-hero-intro { line-height: 1.48; }
  .hero-imersivo .nova-hero-actions { margin-top: .95rem; }
  .hero-imersivo .nova-hero-actions .text-link { gap: .35rem; font-size: .84375rem; }
  body.site-refino .hero-imersivo .nova-kicker { gap: .5rem; }

  body.site-refino .hero-imersivo .nova-kicker::before,
  .hero-imersivo .nova-kicker::after { width: .75rem; }
}

@media (max-width: 360px) and (max-height: 640px) {
  .hero-imersivo .site-hero-layout { padding-block-start: 1rem; }
}

@media (forced-colors: active) {
  .hero-imersivo-cena { display: none; }
  .hero-imersivo :is(h1, p, .text-link) { text-shadow: none; }
}