:root {
  --preto: #0b0906;
  --preto-2: #15110b;
  --dourado: #d4a64a;
  --dourado-claro: #f3d58a;
  --dourado-escuro: #8a6424;
  --texto: #efe6d2;
  --texto-suave: #b8ab90;
  --erro: #ff8a7a;
  --borda: rgba(212, 166, 74, 0.28);
  --gradiente: linear-gradient(135deg, #f6dc94 0%, #d4a64a 45%, #a87a2c 100%);
  --raio: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body:has(dialog[open]) { overflow: hidden; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--preto);
  color: var(--texto);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }

/* ---------- Botões ---------- */
.botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--gradiente);
  color: #1a1206;
  font: 700 1rem/1.2 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(212, 166, 74, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(212, 166, 74, 0.5); }
.botao:active { transform: translateY(0); }
.botao:disabled { filter: grayscale(0.6) brightness(0.8); cursor: wait; transform: none; }
.botao--largo { width: 100%; }
:focus-visible { outline: 3px solid var(--dourado-claro); outline-offset: 3px; }

/* ---------- Cabeçalho ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 96px;
  overflow: hidden;
  isolation: isolate;
  background: var(--preto);
}
.hero__fundo {
  position: absolute;
  inset: -40px;
  z-index: -1;
  background: url('../img/arte-2027.jpg') center / cover no-repeat;
  filter: blur(40px) brightness(0.3) saturate(1.1);
  transform: scale(1.1);
}
.hero__arte { margin: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero__arte img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
}
.hero__botao {
  position: absolute;
  left: 50%;
  bottom: max(28px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  white-space: nowrap;
  animation: pulsar 2.4s ease-in-out infinite;
}
.hero__botao:hover { transform: translateX(-50%) translateY(-2px); }
/* Tela mais larga que a arte: a arte ocupa a tela inteira (corta topo e base) */
.hero__cheia, .hero__ano { display: none; }
@media (min-aspect-ratio: 1/1) and (min-width: 900px) {
  .hero { padding: 0; }
  .hero__fundo, .hero__arte { display: none; }
  .hero__cheia {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(ellipse min(26vw, 44vh) min(15vw, 24vh) at 50% 0, rgba(11, 9, 6, 0.98) 55%, rgba(11, 9, 6, 0) 100%),
      linear-gradient(180deg, rgba(11, 9, 6, 0.8) 0%, rgba(11, 9, 6, 0) 20%, rgba(11, 9, 6, 0) 76%, rgba(11, 9, 6, 0.92) 100%),
      url('../img/arte-2027.jpg') center 72% / cover no-repeat;
  }
  .hero__ano {
    display: block;
    position: absolute;
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(19vw, 30vh, 380px);
    filter: drop-shadow(0 6px 30px rgba(212, 166, 74, 0.35));
  }
  .hero__botao { bottom: 5vh; }
}

@keyframes pulsar {
  0%, 100% { box-shadow: 0 8px 30px rgba(212, 166, 74, 0.35); }
  50% { box-shadow: 0 8px 44px rgba(243, 213, 138, 0.7); }
}

/* ---------- Seções ---------- */
.secao {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 16px;
  text-align: center;
}
.sobretitulo {
  margin: 0 0 8px;
  color: var(--dourado);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.secao h2 {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  font-weight: 800;
  color: var(--dourado-claro);
  margin-bottom: 16px;
}
.secao__intro { max-width: 640px; margin: 0 auto 40px; color: var(--texto-suave); }

/* Linha do tempo */
.linha-do-tempo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: passo;
}
.linha-do-tempo li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 22px 24px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: linear-gradient(180deg, rgba(212, 166, 74, 0.08), rgba(212, 166, 74, 0.02));
  text-align: left;
  counter-increment: passo;
}
.linha-do-tempo li::before {
  content: counter(passo);
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(212, 166, 74, 0.18);
}
.quando { padding-right: 36px; color: var(--dourado); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.linha-do-tempo strong { font-size: 1.3rem; color: var(--texto); }
.linha-do-tempo li > span:last-child { color: var(--texto-suave); font-size: 0.95rem; }

/* Carta */
.secao--carta {
  max-width: 760px;
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
}
.secao--carta p { font-size: clamp(1.05rem, 2.6vw, 1.2rem); margin: 0 0 16px; }
.secao--carta p:last-child { margin-bottom: 0; color: var(--dourado-claro); font-weight: 600; }

/* Números */
.numeros {
  list-style: none;
  margin: 24px 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.numeros li {
  padding: 22px 12px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  background: var(--preto-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.numeros strong {
  font-size: clamp(1.9rem, 7vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradiente);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.numeros span { color: var(--texto-suave); font-size: 0.88rem; line-height: 1.35; }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--raio);
  overflow: hidden;
  border: 1px solid var(--borda);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  background: var(--preto-2);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__capa { position: absolute; inset: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__capa img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: opacity 0.2s ease; }
.video__capa:hover img { opacity: 0.95; }
.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gradiente);
  box-shadow: 0 10px 40px rgba(212, 166, 74, 0.5);
}
.video__play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #1a1206;
}

.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 32px;
}
.galeria img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.galeria img:first-child { grid-column: 1 / -1; }

/* Cotas */
.cotas { display: grid; gap: 20px; margin-top: 32px; }
.cota {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 24px;
  border: 1px solid var(--dourado);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 166, 74, 0.18), transparent 70%),
    var(--preto-2);
  box-shadow: 0 0 0 1px rgba(212, 166, 74, 0.08), 0 20px 50px rgba(0, 0, 0, 0.5);
}
.cota h3 { font-size: 1.6rem; font-weight: 800; color: var(--dourado-claro); }
.cota p { margin: 0 0 8px; color: var(--texto-suave); max-width: 340px; }

/* Rodapé */
.rodape {
  padding: 48px 16px 40px;
  border-top: 1px solid var(--borda);
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.85rem;
}
.rodape img { width: 220px; margin: 0 auto 16px; }
.rodape p { margin: 0; }

/* ---------- Modal de reserva ---------- */
dialog {
  width: min(520px, calc(100% - 32px));
  max-height: 90vh;
  max-height: 90dvh;
  padding: 0;
  border: 1px solid var(--dourado);
  border-radius: 20px;
  background: var(--preto-2);
  color: var(--texto);
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(4px); }
.fechar {
  position: sticky;
  top: 8px;
  float: right;
  margin: 8px 8px 0 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--borda);
  border-radius: 50%;
  background: var(--preto);
  color: var(--texto);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.reserva__cabecalho {
  padding: 28px 24px 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 166, 74, 0.22), transparent 75%);
  border-bottom: 1px solid var(--borda);
}
.reserva__cabecalho h2 { font-size: 1.4rem; color: var(--dourado-claro); }
.reserva__valor {
  margin: 8px 0 6px;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradiente);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reserva__condicoes { margin: 0; padding: 0; list-style: none; color: var(--texto); font-size: 0.92rem; }

form { padding: 20px 24px 24px; display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--texto); }
input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(239, 230, 210, 0.2);
  border-radius: 10px;
  background: #0f0c08;
  color: var(--texto);
  font: 500 16px 'Montserrat', sans-serif;
}
input:focus { border-color: var(--dourado); outline: none; box-shadow: 0 0 0 3px rgba(212, 166, 74, 0.25); }
input[aria-invalid='true'] { border-color: var(--erro); }
small { color: var(--erro); font-weight: 500; min-height: 0; }
small:empty { display: none; }
.armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-erro { margin: 0; color: var(--erro); font-size: 0.9rem; }
.form-erro:empty { display: none; }
.reserva__nota { margin: 0; color: var(--texto-suave); font-size: 0.8rem; text-align: center; }

.sucesso { padding: 36px 24px 32px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.sucesso__icone {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradiente);
  color: #1a1206;
  font-size: 2rem;
  font-weight: 800;
}
.sucesso h3 { font-size: 1.5rem; color: var(--dourado-claro); }
.sucesso p { margin: 0 0 8px; color: var(--texto); }

/* ---------- Telas maiores ---------- */
@media (min-width: 720px) {
  .linha-do-tempo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numeros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cotas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .galeria { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .galeria img:first-child { grid-column: span 2; grid-row: span 2; }
  .secao { padding: 96px 24px; }
}
@media (min-width: 1024px) {
  .linha-do-tempo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .botao { transition: none; }
  .hero__botao { animation: none; }
}
