/* ===============================
   HERO / VIDEO COM LARGURA TOTAL
   =============================== */

.hero {
  width: 100%;
  min-height: 60vh;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

/* Overlay opcional */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

/* Centralização estática */
.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  text-align: center;
  color: white;
  padding: 0 1rem;
  opacity: 1;
  transition: opacity 0.6s ease, transform 0.6s ease;
}



.hero-text .subtitle {
  font-size: 1.6rem;
  font-weight: 300;
  margin: 0;
}

.hero-text .title {
  font-size: 3.2rem;
  font-weight: 700;
  margin: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}


/* Quando desaparece ao fazer scroll */
.hero-text.fade-out {
  opacity: 0;
  transform: translate(-50%, -80%);
  filter: blur(4px);
}


/* ===============================
   RESPONSIVO
   =============================== */

@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
    height: 80vh;
  }
   .hero-text .subtitle {
    font-size: 1.2rem;
  }

  .hero-text .title {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 45vh;
  height: 70vh;
 }
  .hero-text .subtitle {
  font-size: 1rem;
 }

  .hero-text .title {
    font-size: 1.4rem;
    white-space: nowrap;
  }
  
}

@supports (height: 100dvh) {
  .hero {
    min-height: 60dvh;
    height: 100dvh;
  }
}

@supports (height: 100svh) {
  .hero {
    min-height: 60svh;
    height: 100svh;
  }
}

@media (orientation: landscape) and (max-height: 600px) {
  :root {
    --hero-header-offset: calc(76px + env(safe-area-inset-top, 0px));
  }

  .hero {
    margin-top: 0;
    min-height: 70vh;
    height: calc(100vh - var(--hero-header-offset, 76px) + 64px);
    max-height: 100vh;
  }

  @supports (height: 100dvh) {
    .hero {
      min-height: 70vh;
      height: calc(100dvh - var(--hero-header-offset, 76px) + 64px);
      max-height: 100dvh;
    }
  }

  @supports (height: 100svh) {
    .hero {
      min-height: 70vh;
      height: calc(150svh - var(--hero-header-offset, 76px) + 64px);
      max-height: 100svh;
    }
  }
}

