/* ==============================================================
   BANNER DE ABERTURA DAS PÁGINAS INTERNAS (galeria.html)
   ============================================================== */

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(78vh, 760px);
  padding: 200px var(--gutter) clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
  color: var(--paper);
  background: var(--forest);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  animation: page-hero-zoom 2400ms var(--ease-out) both;
}

/* Escurece a foto para o texto e o header ficarem legíveis */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 17, 16, 0.55) 0%, rgba(11, 17, 16, 0.1) 40%, rgba(11, 17, 16, 0.72) 100%);
}

.page-hero-content {
  max-width: 760px;
}

.page-hero .eyebrow {
  color: var(--paper);
}

.page-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  animation: rise-in 1200ms var(--ease-out) 200ms both;
}

.page-hero-lead {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(253, 241, 225, 0.86);
  font-size: var(--fs-subtitle);
  font-weight: var(--fw-regular);
  line-height: var(--lh-subtitle);
  letter-spacing: var(--ls-subtitle);
  animation: rise-in 1200ms var(--ease-out) 350ms both;
}

.page-hero-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  text-decoration: none;
  animation: rise-in 1200ms var(--ease-out) 500ms both;
}

.page-hero-back:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes page-hero-zoom {
  from {
    scale: 1.08;
  }
  to {
    scale: 1;
  }
}

/* rise-in também é definido em hero.css; repetido aqui porque
   as páginas internas não carregam o CSS do hero da home. */
@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 28px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

/* ==============================================================
   RESPONSIVO
   ============================================================== */

@media (max-width: 980px) {
  .page-hero {
    padding-top: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-bg,
  .page-hero-title,
  .page-hero-lead,
  .page-hero-back {
    animation: none;
  }
}
