/* Hero estático e específico por página — mobile-first */
.hero-static {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0d141a;
  min-height: 520px !important;
}

.hero-static .hero-content {
  padding-top: 44px !important;
  padding-bottom: 44px !important;
}

/* Desativa o carrossel antigo aplicado por pseudo-elementos. */
.hero-static::before,
.hero-static::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.hero-static .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
}

.hero-static .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-static .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(13, 20, 26, 0.76) 0%,
    rgba(13, 20, 26, 0.62) 42%,
    rgba(13, 20, 26, 0.9) 100%
  );
  pointer-events: none;
}

.hero-static .hero-content,
.hero-static > .p-shell {
  position: relative;
  z-index: 2;
}

/* Pontos focais mobile, definidos por ambiente. */
.hero-home .hero-media img { object-position: 50% 58%; }
.hero-endocrinologia .hero-media img { object-position: 50% 56%; }
.hero-nutricao .hero-media img { object-position: 50% 55%; }
.hero-psiquiatria .hero-media img { object-position: 50% 54%; }
.hero-particular .hero-media img { object-position: 50% 55%; }
.hero-emagrecimento .hero-media img { object-position: 50% 57%; }

@media (min-width: 768px) {
  .hero-static {
    min-height: 620px !important;
  }

  .hero-static .hero-content {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .hero-static .hero-media {
    left: auto;
    width: 44%;
  }

  .hero-static .hero-overlay {
    background: linear-gradient(
      90deg,
      #0d141a 0%,
      rgba(13, 20, 26, 0.99) 47%,
      rgba(13, 20, 26, 0.76) 58%,
      rgba(13, 20, 26, 0.08) 76%,
      rgba(13, 20, 26, 0.02) 100%
    );
  }

  .hero-static .hero-copy {
    width: min(54%, 620px);
    max-width: 620px !important;
  }

  .hero.hero-static .hero-copy {
    padding: 64px 0;
  }

  .hero.hero-static .hero-copy h1 {
    font-size: clamp(42px, 4.4vw, 56px);
    line-height: 1.08;
  }

  .hero-home .hero-media img { object-position: 50% 60%; }
  .hero-endocrinologia .hero-media img { object-position: 50% 56%; }
  .hero-nutricao .hero-media img { object-position: 50% 54%; }
  .hero-psiquiatria .hero-media img { object-position: 50% 54%; }
  .hero-particular .hero-media img { object-position: 50% 54%; }
  .hero-emagrecimento .hero-media img { object-position: 50% 57%; }
}

@media (max-width: 560px) {
  .hero.hero-static .hero-copy {
    padding: 48px 0 56px;
  }

  .hero.hero-static .hero-copy h1 {
    font-size: 36px;
    line-height: 1.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-static,
  .hero-static * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
