/* ==========================================================================
   Carrossel do hero da home — baile de 12/12 (03/12 a 12/12/2026)
   Usa as variáveis do body.home-v2 (style.css). Arquivo próprio, carregado
   só na home, depois do style.css: em 13/12 sai junto com o carrossel
   (basta tirar o <link> da home; o style.css e as outras páginas não mudam).
   Mobile-first; desktop a partir de 900px.
   Slide 1 com teste A/B de 2 fotos (data-foto-1212 no <html>), hero mais
   baixo no celular (sem min-height; slides de foto centralizados), foto do
   DJ Chico Gorman no slide 3.
   ========================================================================== */

.efen-hero {
  min-height: 0;                 /* anula o min-height do .v2-hero antigo */
  justify-content: flex-start;
  background: var(--v2-dark);
}

/* Todos os slides na mesma célula do grid: a altura do carrossel é a do
   slide mais alto, então nada "pula" quando o slide troca. */
.efen-slides {
  display: grid;
  touch-action: pan-y;           /* rolagem vertical livre; o swipe lateral é do JS */
}
.efen-slide {
  grid-area: 1 / 1;
  position: relative; overflow: hidden;
  min-height: 0;                 /* celular: a altura é a do slide mais alto */
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .9s ease, visibility 0s linear .9s;
}
.efen-slide.is-active {
  opacity: 1; visibility: visible;
  transition: opacity .9s ease, visibility 0s;
  z-index: 1;
}

.efen-wrap {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 20px;
}

/* ---- Tipografia comum dos slides ---- */
.efen-title {
  font-family: var(--font-display); font-weight: 800;
  line-height: .95; letter-spacing: .01em; text-transform: uppercase;
  font-size: clamp(2.6rem, 11vw, 5rem);
}
.efen-title--xl { font-size: clamp(3.2rem, 15vw, 7rem); }
.efen-title--xl span { display: block; color: var(--gold); }
.efen-lead {
  font-family: var(--font-sub); font-weight: 600;
  font-size: 1.02rem; line-height: 1.5; margin-top: 14px;
}
.efen-cta { margin-top: 24px; }

/* ---- Slide 1: Quininho (fundo creme; a foto de estúdio já vem com o
   branco virado creme, então foto e fundo se fundem) ---- */
.efen-slide--quininho {
  background: var(--v2-cream); color: var(--v2-ink);
}
.efen-q-text { padding: 22px 0 12px; text-align: center; }
.efen-pill {
  display: inline-block; margin-bottom: 14px;
  background: var(--v2-ink); color: var(--gold);
  font-family: var(--font-sub); font-weight: 700; font-size: .72rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.efen-slide--quininho .efen-pill { margin-bottom: 12px; }
.efen-slide--quininho .efen-lead { margin-top: 10px; font-size: .98rem; }
.efen-slide--quininho .efen-title { color: var(--v2-ink); }
.efen-slide--quininho .efen-lead { color: var(--v2-ink-soft); }
.efen-when {
  margin-top: 10px;
  font-family: var(--font-sub); font-weight: 700; font-size: 1rem;
  color: var(--v2-ink); letter-spacing: .02em;
}
/* Linha da meia-noite: 12/12 é a véspera; o 13/12 começa no meio do baile */
.efen-midnight {
  margin: 8px auto 0; max-width: 34em;
  font-family: var(--font-sub); font-weight: 600; font-size: .9rem; line-height: 1.45;
  color: var(--v2-ink-soft);
}
.efen-slide--quininho .efen-cta { margin-top: 16px; }
/* Celular: texto em cima, foto embaixo numa faixa de altura fixa
   (v1 deixava a foto crescer e o hero inteiro ficava alto demais) */
.efen-q-photo {
  position: relative; order: 2;
  flex: 1 0 210px; min-height: 210px;
}
.efen-q-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 14%;   /* foto A: chapéu no alto da faixa */
}
/* Teste A/B: só a foto do data-foto-1212 aparece (sem JS, fica a A) */
.efen-foto--b { display: none; }
html[data-foto-1212="b"] .efen-foto--a { display: none; }
html[data-foto-1212="b"] .efen-foto--b { display: block; }
/* Foto B (horizontal, braços abertos): no celular, chapéu no alto da faixa */
.efen-foto--b img { object-position: 50% 0; }

/* ---- Slides 2 e 3: foto de baile cheia + véu escuro ---- */
.efen-slide--foto {
  color: var(--cream);
  justify-content: center;       /* celular: sobra de altura dividida em cima e embaixo */
}
.efen-bg { position: absolute; inset: 0; z-index: 0; }
.efen-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
}
.efen-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,5,1,.84) 0%, rgba(13,5,1,.7) 60%, rgba(13,5,1,.9) 100%);
}
.efen-text { padding: 28px 0; text-align: center; }
/* Slide 3: foto do DJ Chico Gorman (vertical 4:5, ele no terço direito) */
.efen-slide--dj .efen-bg img { object-position: 62% 30%; }
.efen-slide--foto .efen-title { color: var(--white); text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.efen-slide--foto .efen-lead { color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,.5); }

.efen-lineup {
  list-style: none; margin: 18px auto 0; max-width: 560px;
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--font-sub); font-weight: 600; font-size: .98rem; line-height: 1.45;
  color: var(--cream); text-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.efen-lineup li { padding-top: 12px; border-top: 1px solid var(--v2-line-dark); }
.efen-lineup li:first-child { padding-top: 0; border-top: 0; }
.efen-lineup strong {
  display: block; color: var(--gold);
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase;
}

/* ---- Controles (barra escura logo abaixo dos slides) ---- */
.efen-controls {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 10px 20px 0;
}
.efen-controls[hidden] { display: none; }
.efen-arrow {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--cream);
  border: 1px solid rgba(255, 240, 208, .35);
  font-size: 1.7rem; line-height: 1; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.efen-arrow span { margin-top: -3px; }
.efen-arrow:hover, .efen-arrow:focus-visible { border-color: var(--gold); color: var(--gold); }
.efen-dots { display: flex; gap: 4px; }
.efen-dot {
  width: 28px; height: 28px; padding: 0; border: 0; background: transparent;
  cursor: pointer; position: relative;
}
.efen-dot::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 999px;
  background: rgba(255, 240, 208, .35);
  transition: width .3s, margin .3s, background .3s;
}
.efen-dot[aria-current="true"]::before { width: 24px; margin-left: -12px; background: var(--gold); }
.efen-dot:hover::before { background: var(--cream); }
.efen-dot[aria-current="true"]:hover::before { background: var(--gold); }
.efen-pause {
  margin-left: 6px;
  background: transparent; color: var(--cream);
  border: 1px solid rgba(255, 240, 208, .35); border-radius: 999px;
  font-family: var(--font-sub); font-weight: 700; font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 8px 12px; cursor: pointer;
}
.efen-pause:hover, .efen-pause:focus-visible { border-color: var(--gold); color: var(--gold); }
.efen-hero :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.efen-slide--quininho :focus-visible { outline-color: var(--v2-ink); }

.efen-hero .v2-hero-info { margin-top: 14px; }

/* ---- Desktop ---- */
@media (min-width: 900px) {
  .efen-slide { min-height: 600px; justify-content: center; }
  .efen-slide--foto { justify-content: center; }

  .efen-slide--quininho { flex-direction: row; align-items: center; }
  .efen-q-photo {
    position: absolute; top: 0; right: 0; bottom: 0;
    width: 54%; min-height: 0; order: 0;
  }
  .efen-q-photo { flex: none; }
  .efen-q-photo img { object-position: 50% 10%; }
  /* Foto B no desktop: inteira (braços abertos), encostada embaixo à direita;
     as bordas dela já são creme, então não precisa do véu da esquerda */
  .efen-foto--b img { object-fit: contain; object-position: 100% 100%; }
  html[data-foto-1212="b"] .efen-q-photo::before { display: none; }
  /* véu creme na borda esquerda da foto: costura foto e fundo */
  .efen-q-photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, var(--v2-cream) 0%, rgba(251,243,231,0) 28%);
  }
  .efen-q-text { max-width: 50%; text-align: left; padding: 56px 0; }
  .efen-slide--quininho .efen-lead { margin-top: 14px; font-size: 1.12rem; }
  .efen-when { margin-top: 14px; font-size: 1.05rem; }
  .efen-midnight {
    margin: 12px 0 0; max-width: 30em; font-size: .98rem;
    padding-left: 12px; border-left: 3px solid var(--gold);
  }
  .efen-slide--quininho .efen-cta { margin-top: 24px; }
  .efen-slide--dj .efen-bg img { object-position: 50% 18%; }

  .efen-text { max-width: 640px; text-align: left; padding: 64px 0; }
  .efen-lineup { margin-left: 0; }
  .efen-bg::after {
    background: linear-gradient(90deg, rgba(13,5,1,.92) 0%, rgba(13,5,1,.78) 45%, rgba(13,5,1,.35) 100%);
  }
  .efen-lead { font-size: 1.12rem; }
}

/* Sem animação para quem pede menos movimento (o JS também não passa
   os slides sozinho nesse caso). */
@media (prefers-reduced-motion: reduce) {
  .efen-slide, .efen-slide.is-active { transition: none; }
  .efen-dot::before { transition: none; }
}
