/* Pela Graça e Fé — estilos
   Conceito: estreia de cinema. Couro verde da marca, ouro estampado, tipografia de livro. */

@font-face {
  font-family: "Cinzel";
  src: url("/fonts/cinzel-latin-wght.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --breu: #03110c;
  --breu-2: #061c14;
  --verde: #0e3628;
  --verde-luz: #1d5c45;
  --ouro: #d4af37;
  --ouro-escuro: #8a6a1e;
  --ouro-luz: #f7e9b5;
  --marfim: #f4efe3;
  --marfim-2: #b9b49f;
  --linha: rgba(212, 175, 55, 0.28);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --texto: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --lateral: clamp(1rem, 5vw, 3rem);
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--breu-2);
  color: var(--marfim);
  font-family: var(--texto);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ouro-luz);
  outline-offset: 3px;
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.pular {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ouro);
  color: #1b1404;
  text-decoration: none;
}
.pular:focus {
  top: 1rem;
}

/* ---------- Cabeçalho ---------- */

.topo {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--lateral);
  padding-top: max(0.7rem, env(safe-area-inset-top));
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.topo.solido {
  background: rgba(3, 17, 12, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--linha);
}

.marca {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.marca img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.marca span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ouro-luz);
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.6vw, 2rem);
}
.menu .texto {
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--marfim);
  opacity: 0.82;
  transition: opacity 0.2s, color 0.2s;
}
.menu .texto:hover {
  opacity: 1;
  color: var(--ouro-luz);
}
.menu .ig {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--linha);
  border-radius: 50%;
  color: var(--ouro-luz);
  transition: background-color 0.2s, border-color 0.2s;
}
.menu .ig:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--ouro);
}

@media (max-width: 720px) {
  .menu .texto {
    display: none;
  }
  .marca span {
    font-size: 0.92rem;
  }
}

/* ---------- Botões ---------- */

.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.65rem 1.35rem;
  border: 1px solid var(--ouro);
  border-radius: 2px;
  font-family: var(--texto);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.botao.ouro {
  background: linear-gradient(180deg, #f0d684 0%, #d4af37 52%, #b38c27 100%);
  border-color: #f3dc94;
  color: #1a1305;
  font-weight: 600;
}
.botao.ouro:hover {
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2), 0 12px 32px -10px rgba(212, 175, 55, 0.6);
}
.botao.contorno {
  background: rgba(3, 17, 12, 0.35);
  color: var(--ouro-luz);
}
.botao.contorno:hover {
  background: rgba(212, 175, 55, 0.12);
}

/* ---------- Abertura (a estreia) ---------- */

.abertura {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(70% 58% at 50% 36%, rgba(29, 92, 69, 0.9) 0%, rgba(14, 54, 40, 0.88) 36%, rgba(3, 17, 12, 0) 76%),
    var(--breu);
}
/* grão de película */
.abertura::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
/* vinheta */
.abertura::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* holofotes */
.feixe {
  position: absolute;
  bottom: -6vh;
  z-index: -2;
  width: clamp(220px, 30vw, 520px);
  height: 130vh;
  pointer-events: none;
  transform-origin: 50% 100%;
  background: linear-gradient(to top, rgba(247, 233, 181, 0) 0%, rgba(247, 233, 181, 0.09) 14%, rgba(247, 233, 181, 0.17) 44%, rgba(247, 233, 181, 0.06) 76%, rgba(247, 233, 181, 0) 100%);
  clip-path: polygon(47% 100%, 53% 100%, 100% 0, 0 0);
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0.75;
}
.feixe.esq {
  left: 8%;
  --giro: 26deg;
  transform: rotate(var(--giro));
}
.feixe.dir {
  right: 8%;
  --giro: -26deg;
  transform: rotate(var(--giro));
}
@media (max-width: 720px) {
  .feixe.esq {
    left: 0;
    --giro: 12deg;
  }
  .feixe.dir {
    right: 0;
    --giro: -12deg;
  }
}

.abertura-centro {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7rem var(--lateral) 1rem;
  text-align: center;
}

.titulo {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.3rem, 11vw, 9.25rem);
  line-height: 0.98;
  letter-spacing: 0.04em;
  /* ouro polido + brilho que atravessa uma vez */
  background-image:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 42%, rgba(255, 252, 238, 0.95) 50%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #fbf0c8 0%, #ecd07a 24%, #d4af37 46%, #94701f 66%, #d9b95a 84%, #f7e7ae 100%);
  background-size: 260% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.45)) drop-shadow(0 20px 44px rgba(212, 175, 55, 0.22));
}
.titulo span {
  display: block;
}

.ornamento {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: clamp(1.1rem, 3vh, 1.75rem) 0 0;
  color: var(--ouro);
}
.ornamento span {
  width: clamp(44px, 9vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ouro));
}
.ornamento span:last-child {
  background: linear-gradient(90deg, var(--ouro), transparent);
}
.ornamento .ic {
  width: 18px;
  height: 18px;
}

.epigrafe {
  margin: clamp(1rem, 2.6vh, 1.6rem) 0 0;
  max-width: 34ch;
}
.epigrafe p {
  margin: 0;
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.42;
  color: var(--marfim);
}
.ref,
.assinatura {
  display: block;
  margin-top: 0.85rem;
  font-family: var(--display);
  font-style: normal;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  color: var(--ouro);
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.6rem, 4.5vh, 2.6rem);
}

/* carretel de cartazes */
.carretel {
  position: relative;
  min-width: 0;
  padding: clamp(1.25rem, 3.5vh, 2rem) 0 clamp(1.25rem, 3.5vh, 2.25rem);
}
.faixa {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.carretel ul {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: rolar 80s linear infinite;
}
.carretel li {
  margin-right: 14px;
}
.carretel li button {
  display: block;
  width: clamp(78px, 8.4vw, 124px);
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 2px;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.carretel li button:hover,
.carretel li button:focus-visible {
  opacity: 1;
  transform: translateY(-4px);
  border-color: var(--ouro);
}
.carretel li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carretel:hover ul,
.carretel:focus-within ul,
.carretel.parado ul {
  animation-play-state: paused;
}
.pausar {
  position: absolute;
  right: clamp(0.4rem, 2.5vw, 1.75rem);
  top: 50%;
  margin-top: -17px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 50%;
  background: rgba(3, 17, 12, 0.7);
  color: var(--ouro-luz);
  cursor: pointer;
}
.pausar .i-play,
.carretel.parado .pausar .i-pausa {
  display: none;
}
.carretel.parado .pausar .i-play {
  display: block;
}

@keyframes rolar {
  to {
    transform: translateX(-50%);
  }
}

/* sequência de estreia (uma vez) */
@media (prefers-reduced-motion: no-preference) {
  .feixe {
    animation: holofote-entra 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both, holofote-varre 16s ease-in-out 2.2s infinite alternate;
  }
  .feixe.dir {
    animation-delay: 0.15s, 2.35s;
  }
  .titulo {
    animation: titulo-entra 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both, brilho 1.7s ease-in-out 1.45s both;
  }
  .ornamento,
  .epigrafe,
  .abertura .acoes,
  .carretel {
    animation: surge 1.1s ease-out both;
  }
  .ornamento {
    animation-delay: 1.2s;
  }
  .epigrafe {
    animation-delay: 1.5s;
  }
  .abertura .acoes {
    animation-delay: 1.85s;
  }
  .carretel {
    animation-delay: 2.1s;
  }
}

@keyframes holofote-entra {
  from {
    opacity: 0;
    transform: rotate(calc(var(--giro) * 2.6));
  }
  to {
    opacity: 0.75;
    transform: rotate(var(--giro));
  }
}
@keyframes holofote-varre {
  from {
    transform: rotate(var(--giro));
  }
  to {
    transform: rotate(calc(var(--giro) * 0.45));
  }
}
@keyframes titulo-entra {
  from {
    opacity: 0;
    letter-spacing: 0.28em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.04em;
  }
}
@keyframes brilho {
  from {
    background-position: 150% 0, 0 0;
  }
  to {
    background-position: -50% 0, 0 0;
  }
}
@keyframes surge {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .carretel ul {
    animation: none;
  }
  .faixa {
    overflow-x: auto;
  }
  .pausar {
    display: none;
  }
}

@media (max-width: 520px) {
  .abertura .acoes .botao {
    flex: 1 1 100%;
    max-width: 21rem;
  }
  .acoes-dia .botao {
    flex: 1 1 100%;
  }
}

/* ---------- Seções ---------- */

.secao {
  padding: clamp(4.5rem, 11vw, 8.5rem) var(--lateral);
}
.secao h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: 0.03em;
  color: var(--marfim);
}

/* ---------- Mensagem de hoje ---------- */

.hoje {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(48% 70% at 27% 0%, rgba(29, 92, 69, 0.55) 0%, rgba(29, 92, 69, 0) 70%),
    linear-gradient(180deg, var(--breu) 0%, var(--breu-2) 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}
.hoje-grade {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 27rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: center;
}
.palco {
  position: relative;
  padding-bottom: 3.5rem;
}
/* cone de luz sobre o quadro */
.palco::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -55%;
  width: 150%;
  height: 120%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side at 50% 100%, rgba(247, 233, 181, 0.16), rgba(247, 233, 181, 0));
  pointer-events: none;
}
.quadro {
  position: relative;
  display: block;
  border: 1px solid rgba(212, 175, 55, 0.6);
  background: #000;
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.95), 0 0 70px -14px rgba(212, 175, 55, 0.3);
  cursor: zoom-in;
  -webkit-box-reflect: below 6px linear-gradient(transparent 76%, rgba(255, 255, 255, 0.16));
}
.quadro img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hoje-texto {
  max-width: 36rem;
}
.data {
  margin: 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ouro-luz);
}
.hoje h2 {
  margin: 0.25rem 0 1.4rem;
}
.texto-dia {
  margin: 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--ouro);
}
.texto-dia p {
  margin: 0;
  font-size: clamp(1.35rem, 2.3vw, 1.65rem);
  line-height: 1.5;
}
.acoes-dia {
  justify-content: flex-start;
  margin-top: 2rem;
}
.nota {
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
  color: var(--marfim-2);
}

@media (max-width: 860px) {
  .hoje-grade {
    grid-template-columns: minmax(0, 1fr);
  }
  .palco {
    width: min(100%, 26rem);
    margin: 0 auto;
    padding-bottom: 2.5rem;
  }
}

/* ---------- Acervo ---------- */

.acervo {
  background: var(--breu-2);
}
.acervo-cab {
  max-width: 76rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.sub {
  margin: 0.6rem 0 0;
  color: var(--marfim-2);
}
.controles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.busca {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
}
.busca .ic {
  position: absolute;
  left: 0.9rem;
  color: var(--ouro);
  pointer-events: none;
}
.busca input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 1rem 0.6rem 2.7rem;
  border: 1px solid var(--linha);
  border-radius: 2px;
  background: rgba(3, 17, 12, 0.6);
  color: var(--marfim);
  font-family: var(--texto);
  font-size: 1.1rem;
}
.busca input::placeholder {
  color: var(--marfim-2);
  opacity: 0.85;
}
.busca input:focus {
  border-color: var(--ouro);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22);
}
.filtros {
  display: inline-flex;
  border: 1px solid var(--linha);
  border-radius: 2px;
}
.filtros button {
  min-height: 46px;
  padding: 0.5rem 1rem;
  border: 0;
  border-left: 1px solid var(--linha);
  background: none;
  font-size: 1.08rem;
  cursor: pointer;
  color: var(--marfim);
}
.filtros button:first-child {
  border-left: 0;
}
.filtros button[aria-pressed="true"] {
  background: rgba(212, 175, 55, 0.16);
  color: var(--ouro-luz);
}
.filtros button:hover {
  color: var(--ouro-luz);
}

.contagem {
  max-width: 76rem;
  margin: 1.75rem auto 1.25rem;
  font-size: 1.02rem;
  color: var(--marfim-2);
  min-height: 1.6em;
}

.grade-cartazes {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.9rem) clamp(0.85rem, 2.2vw, 1.75rem);
}
@media (min-width: 640px) {
  .grade-cartazes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .grade-cartazes {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.cartaz[hidden] {
  display: none;
}
.cartaz a {
  display: block;
  text-decoration: none;
}
.cartaz a:focus-visible {
  outline: none;
}
.moldura {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a2419;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 2px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.moldura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cartaz a:hover .moldura,
.cartaz a:focus-visible .moldura {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.8);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.5), 0 24px 50px -20px rgba(212, 175, 55, 0.5);
}
.cartaz a:focus-visible .moldura {
  outline: 2px solid var(--ouro-luz);
  outline-offset: 3px;
}
.legenda {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: center;
  color: var(--ouro-luz);
}

.vazio {
  max-width: 34rem;
  margin: 1rem auto 0;
  text-align: center;
  color: var(--marfim-2);
}
.vazio strong {
  color: var(--marfim);
  font-weight: 500;
}
.mais {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

/* ---------- Sobre ---------- */

.sobre {
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(29, 92, 69, 0.35), rgba(29, 92, 69, 0) 70%),
    var(--breu-2);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}
.sobre-intro {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}
.sobre-intro p {
  margin: 1.25rem 0 0;
  font-size: 1.3rem;
}
.trio {
  max-width: 72rem;
  margin: clamp(3rem, 7vw, 4.5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--linha);
  border-bottom: 1px solid var(--linha);
}
.trio > div {
  padding: 2.25rem clamp(1.25rem, 3vw, 2.5rem);
  border-left: 1px solid var(--linha);
}
.trio > div:first-child {
  border-left: 0;
}
.trio dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  color: var(--ouro-luz);
}
.trio dd {
  margin: 0.6rem 0 0;
}
.ler {
  font-style: italic;
  color: var(--ouro);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.ler:hover {
  color: var(--ouro-luz);
}
.versiculo-trio q {
  font-style: italic;
}
.versiculo-trio cite {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--display);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--ouro);
}
@media (max-width: 820px) {
  .trio {
    grid-template-columns: minmax(0, 1fr);
  }
  .trio > div {
    border-left: 0;
    border-top: 1px solid var(--linha);
    padding: 1.75rem 0.25rem;
  }
  .trio > div:first-child {
    border-top: 0;
  }
}

.convite {
  margin: clamp(3.5rem, 8vw, 5rem) auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.convite img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  box-shadow: 0 0 40px -6px rgba(212, 175, 55, 0.45);
}
.convite p {
  margin: 1.1rem 0 1.25rem;
  font-size: 1.3rem;
}

/* ---------- Créditos finais ---------- */

.creditos {
  padding: clamp(4.5rem, 10vw, 7.5rem) var(--lateral) 2.5rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  background: var(--breu);
  border-top: 1px solid rgba(212, 175, 55, 0.14);
  text-align: center;
}
.lista-creditos {
  max-width: 46rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(1rem, 4vw, 2.5rem);
  row-gap: 0.15rem;
}
.lista-creditos dt {
  grid-column: 1;
  text-align: right;
  padding-top: 1.6rem;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  line-height: 2;
  color: var(--ouro);
}
.lista-creditos dt:first-child {
  padding-top: 0;
}
.lista-creditos dd {
  grid-column: 2;
  margin: 0;
  text-align: left;
  font-size: 1.12rem;
}
.lista-creditos dt + dd {
  padding-top: 1.6rem;
}
.lista-creditos dt:first-child + dd {
  padding-top: 0;
}
.lista-creditos a {
  color: var(--ouro-luz);
  text-underline-offset: 0.2em;
}
.soli {
  margin: clamp(3.5rem, 8vw, 5rem) 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #f7e7ae, #d4af37 55%, #a07a23);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.soli-trad {
  margin: 0.3rem 0 0;
  font-style: italic;
  color: var(--marfim-2);
}
.direitos {
  margin: 3rem 0 0;
  font-size: 0.98rem;
  color: var(--marfim-2);
}

/* ---------- Sala escura (visualizador) ---------- */

.sala {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(2, 10, 7, 0.97);
  color: var(--marfim);
  overflow: hidden;
}
.sala::backdrop {
  background: rgba(2, 10, 7, 0.92);
}
.sala[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.sala-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--lateral);
  padding-top: max(0.7rem, env(safe-area-inset-top));
}
.sala-contador {
  margin: 0;
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--marfim-2);
}
.sala-fechar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--linha);
  border-radius: 2px;
  background: none;
  cursor: pointer;
  font-size: 1.05rem;
}
.sala-fechar:hover {
  border-color: var(--ouro);
  color: var(--ouro-luz);
}
.sala-figura {
  margin: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  padding: 0 var(--lateral) max(1rem, env(safe-area-inset-bottom));
}
.sala-figura img {
  align-self: center;
  width: auto;
  height: auto;
  max-width: min(100%, 760px);
  max-height: calc(100vh - 11.5rem);
  max-height: calc(100dvh - 11.5rem);
  aspect-ratio: 4 / 5;
  object-fit: contain;
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 0 110px -14px rgba(212, 175, 55, 0.28);
  transition: opacity 0.18s ease;
}
.sala-figura img.trocando {
  opacity: 0;
}
.sala-figura figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.8rem 1.4rem;
  padding-top: 1rem;
}
.sala-legenda {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--ouro-luz);
}
.sala-acoes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.seta {
  position: absolute;
  top: 50%;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  padding: 0;
  border: 1px solid var(--linha);
  border-radius: 50%;
  background: rgba(3, 17, 12, 0.72);
  color: var(--ouro-luz);
  cursor: pointer;
}
.seta .ic {
  width: 26px;
  height: 26px;
}
.seta:hover {
  border-color: var(--ouro);
  background: rgba(212, 175, 55, 0.14);
}
.seta.ant {
  left: clamp(0.5rem, 3vw, 2.5rem);
}
.seta.prox {
  right: clamp(0.5rem, 3vw, 2.5rem);
}
@media (max-width: 700px) {
  .seta {
    width: 44px;
    height: 44px;
    margin-top: -40px;
    background: rgba(3, 17, 12, 0.6);
  }
  .seta.ant {
    left: 0.35rem;
  }
  .seta.prox {
    right: 0.35rem;
  }
  .sala-acoes {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: center;
  }
  .sala-acoes .botao {
    flex: 1 1 0;
    max-width: 12rem;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  .sala-figura img {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.4), 0 0 46px -14px rgba(212, 175, 55, 0.3);
  }
}

body.sala-aberta {
  overflow: hidden;
}

/* ---------- Página 404 ---------- */

.abertura-404 {
  grid-template-rows: 1fr;
}
.titulo-404 {
  font-size: clamp(2.1rem, 7vw, 5rem);
}
