/* =====================================================================
   PALCO DE PONTOS (topo da pagina)
   ===================================================================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.palco { position: relative; height: 320svh; background: var(--palco); }
.palco-fixo { position: sticky; top: 0; height: 100svh; overflow: hidden; touch-action: pan-y; }
#pontos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 4; }

.voce-tag {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0;
  background: var(--amarelo); color: var(--tinta);
  font-size: 11px; line-height: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 1px 6px; border-radius: 4px; white-space: nowrap;
  transition: opacity 500ms var(--curva); will-change: transform;
}

/* topo */
.topo { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 0; max-width: 1200px; margin: 0 auto; }
.topo-logo { flex: none; }
.topo-logo img { height: 48px; width: auto; border-radius: 8px; }
/* contador regressivo de palhetas: horas brancas sobre preto, segundos pretos sobre branco */
.relogio { margin-left: auto; display: flex; gap: 5px; align-items: flex-start; }
.rel-grupo { display: grid; justify-items: center; gap: 3px; }
.rel-par { display: flex; gap: 2px; perspective: 120px; }
.rel-d {
  position: relative; display: grid; place-items: center;
  width: 15px; height: 24px; border-radius: 3px;
  background: #0A0A0A; color: #FFFFFF;
  font-size: 15px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 2px 4px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 50%; backface-visibility: hidden;
}
/* a dobra da palheta */
.rel-d::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.55); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.rel-seg .rel-d { background: #F4F1EA; color: #0A0A0A; }
.rel-seg .rel-d::after { background: rgba(0, 0, 0, 0.28); box-shadow: none; }
.rel-d.vira { animation: palheta 420ms var(--curva); }
@keyframes palheta {
  0% { transform: rotateX(88deg); filter: brightness(0.55); }
  60% { transform: rotateX(-12deg); filter: brightness(1.08); }
  100% { transform: rotateX(0); filter: none; }
}
.rel-grupo small { font-size: 8px; line-height: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #FFFFFF; opacity: 0.8; }
@media (min-width: 600px) {
  .relogio { gap: 8px; }
  .rel-par { gap: 3px; }
  .rel-d { width: 32px; height: 46px; border-radius: 5px; font-size: 30px; }
  .rel-grupo small { font-size: 11px; line-height: 14px; }
}
@media (max-width: 599px) { .topo { gap: 6px; padding-left: 14px; padding-right: 14px; } .topo-logo img { height: 34px; } .topo .btn { padding: 8px 10px; font-size: 12.5px; } .relogio { gap: 4px; } }
/* logo sem fundo: direto sobre o azul da pagina */
.topo-logo img, .rodape-logo { border-radius: 0; }
@media (min-width: 900px) { .topo-logo img { height: 62px; } }
@media (prefers-reduced-motion: reduce) { .rel-d.vira { animation: none; } }
.topo .btn { padding: 8px 16px; font-size: 14px; }

/* cenas */
.cena { position: absolute; left: 0; right: 0; top: 76px; bottom: 0; z-index: 3; display: flex; flex-direction: column; padding: 0 20px 20px; max-width: 1200px; margin: 0 auto; will-change: opacity; }
.cena-b { opacity: 0; visibility: hidden; pointer-events: none; }

/* --- cena A: titulo em pontos --- */
.cena-a { justify-content: center; pointer-events: none; }
.cena-a a, .cena-a button { pointer-events: auto; }
.hero-data { font-size: 12px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.hero-data strong { background: var(--amarelo); color: var(--tinta); font-weight: 800; padding: 2px 8px; margin-right: 6px; border-radius: 4px; }
.titulo-slot { width: 100%; aspect-ratio: 1.42 / 1; max-height: 38svh; }
.titulo-leve { font-weight: 300; text-transform: uppercase; white-space: nowrap; font-size: clamp(22px, 8.2vw, 40px); line-height: 1.1; letter-spacing: 0.02em; margin-top: 8px; }
.hero-convite { max-width: 520px; font-size: 15px; line-height: 22px; margin-top: 16px; color: #D8E6FB; text-wrap: pretty; }
.cena-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.dica { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ciano); }
.dica i { font-size: 18px; animation: acena 2.4s var(--curva) infinite; }
@keyframes acena { 0%, 100% { transform: translateX(-4px) rotate(-8deg); } 50% { transform: translateX(6px) rotate(8deg); } }
.rolar i { animation: desce 1.6s var(--curva) infinite; }
@keyframes desce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* --- cena B: mapas de lugares --- */
.cena-b { justify-content: center; }
.cena-titulo { font-weight: 800; text-transform: uppercase; font-size: clamp(21px, 6vw, 46px); line-height: 1.04; letter-spacing: -0.02em; max-width: 820px; text-wrap: balance; }
.cena-sub { font-size: 14px; line-height: 20px; color: #D8E6FB; margin-top: 10px; max-width: 520px; text-wrap: pretty; }
.legenda { display: flex; gap: 16px; margin-top: 10px; font-size: 11px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #B9CEF0; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 8px; height: 8px; border-radius: 9999px; background: var(--branco); display: inline-block; }
.legenda .l-ocupado i { background: #3DDC84; }
.legenda .l-voce i { background: var(--amarelo); }

.mapas { display: grid; gap: 10px; margin-top: 16px; }
.mapa {
  display: block; width: 100%; text-align: left; cursor: pointer; border: 0; color: var(--branco);
  background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2);
  border-radius: 16px; padding: 10px 12px 12px;
  transition: background-color 300ms var(--curva), box-shadow 300ms var(--curva), opacity 300ms var(--curva), transform 500ms var(--curva);
}
.mapa:hover { box-shadow: inset 0 0 0 1.5px var(--branco); }
.mapa:active { transform: scale(0.985); }
.mapa-topo { display: flex; align-items: baseline; gap: 8px; }
.mapa .slab-hora { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.mapa .slab-periodo { font-size: 11px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #B9CEF0; transition: color 300ms var(--curva); }
.mapa .slab-num { margin-left: auto; font-size: 12px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mapa .slab-num b { font-size: 18px; font-weight: 800; }
.mapa-slot { display: block; width: 100%; aspect-ratio: 34 / 5; margin-top: 8px; }
.mapa.poucas .slab-num { color: var(--amarelo); }

/* escolhido fica verde; os demais ficam opacos */
.mapa.escolhido { background: var(--verde); box-shadow: inset 0 0 0 1.5px var(--verde); }
.mapa.escolhido .slab-periodo { color: #D4F5E0; }
.mapas.tem-escolha .mapa:not(.escolhido) { opacity: 0.45; }
.mapas.tem-escolha .mapa:not(.escolhido):hover { opacity: 0.85; }
.mapa.esgotado { cursor: not-allowed; opacity: 0.4; }

.cena-acao { margin-top: 14px; min-height: 48px; display: flex; align-items: center; }
.cena-acao .btn { width: 100%; animation: sobe 500ms var(--curva); }
.cena-espera { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ciano); display: inline-flex; align-items: center; gap: 8px; }
.cena-espera i { font-size: 18px; }

@media (min-width: 600px) {
  .mapa { padding: 14px 16px 16px; }
  .mapa .slab-hora { font-size: 32px; }
  .hero-convite { font-size: 17px; line-height: 26px; }
  .cena-sub { font-size: 16px; line-height: 24px; }
}

@media (min-width: 900px) {
  .topo { padding: 24px 48px 0; }
  .topo-logo img { height: 56px; }
  .cena { top: 96px; padding: 0 48px 40px; }
  .hero-data { font-size: 14px; margin-bottom: 20px; }
  .titulo-slot { aspect-ratio: 5.5 / 1; max-height: none; max-width: 1040px; }
  .titulo-leve { font-size: clamp(36px, 4.6vw, 62px); margin-top: 12px; }
  .hero-convite { margin-top: 24px; }
  .cena-pe { margin-top: 32px; }
  .mapas { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
  .mapa { padding: 20px 20px 22px; border-radius: 20px; }
  .mapa .slab-hora { font-size: 44px; }
  .mapa .slab-num b { font-size: 26px; }
  .mapa-slot { aspect-ratio: 17 / 10; margin-top: 16px; }
  .cena-acao { margin-top: 24px; }
  .cena-acao .btn { width: auto; }
  .legenda { margin-top: 14px; }
}

/* todos os textos sobre o azul: branco e em negrito (botoes e o selo da data mantem a cor propria) */
.topo-faltam, .hero-data, .titulo-leve, .hero-convite, .dica, .dica i,
.cena-titulo, .cena-sub, .legenda, .legenda span, .cena-espera, .cena-espera i,
.mapa, .mapa .slab-hora, .mapa .slab-periodo, .mapa .slab-num, .mapa.poucas .slab-num, .mapa.escolhido .slab-periodo,
.inscricao-titulo, .inscricao-texto, .rodape-titulo, .rodape-texto {
  color: #FFFFFF; font-weight: 700;
}
/* data do evento em destaque: selo verde com letra branca; dia e local maiores */
.hero-data { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; line-height: 20px; letter-spacing: 0.04em; margin-bottom: 18px; }
.hero-data strong { background: var(--verde); color: #FFFFFF; font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: 0.01em; padding: 7px 12px; margin-right: 0; border-radius: 8px; }
@media (min-width: 900px) {
  .hero-data { font-size: 20px; line-height: 26px; gap: 10px 16px; margin-bottom: 24px; }
  .hero-data strong { font-size: 32px; padding: 9px 16px; border-radius: 10px; }
}

/* ---------- palestrante: cartao escuro, da cor do fundo da foto, com ele apontando para o texto ---------- */
.palestrante {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 104px; align-items: center;
  margin: 0 0 16px; min-height: 108px; max-width: 520px; /* primeiro item da cena, acima da data */
  border-radius: 18px; color: #FFFFFF;
  background: linear-gradient(180deg, #121539 0%, #171847 55%, #2A2260 100%);
  box-shadow: 0 10px 28px rgba(4, 16, 44, 0.35);
}
.pal-texto { padding: 12px 4px 12px 16px; min-width: 0; position: relative; z-index: 1; }
.pal-rotulo { font-size: 10px; line-height: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amarelo); }
.pal-nome { font-size: 21px; line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; margin-top: 2px; }
.pal-tema { font-size: 15.5px; line-height: 19px; font-weight: 700; margin-top: 6px; text-wrap: balance; }
.pal-tema span { display: block; font-size: 9px; line-height: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; opacity: 0.7; }
.pal-foto {
  position: absolute; right: 0; top: 0; width: 132px; height: 100%; object-fit: cover; object-position: 50% 9%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}
@media (min-width: 900px) {
  /* mesma largura do titulo em pontos, para o conjunto ficar proporcional */
  .palestrante { grid-template-columns: 1fr clamp(190px, 24svh, 250px); height: clamp(156px, 21svh, 210px); min-height: 0; max-width: 1040px; margin-bottom: 16px; border-radius: 22px; }
  .pal-texto { padding: 12px 12px 12px 32px; }
  .pal-rotulo { font-size: 12px; line-height: 16px; }
  .pal-nome { font-size: clamp(27px, 2.5vw, 40px); margin-top: 2px; }
  .pal-tema { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.18; margin-top: 8px; }
  .pal-tema span { font-size: 11px; line-height: 15px; }
  /* foto reduzida para caber o corpo: rosto, microfone e a mao que aponta para o texto */
  .pal-foto { width: clamp(190px, 24svh, 250px); object-position: 50% 4%; }
  /* com o cartao em cima, aperta os respiros para tudo caber na primeira tela */
  .hero-data { margin-bottom: 16px; }
  .hero-convite { margin-top: 14px; }
  .cena-pe { margin-top: 20px; }
}
.palestrante { flex: none; } /* nao encolhe quando a tela e baixa */
@media (min-width: 900px) and (max-height: 820px) { .hero-convite { display: none; } }

/* telas baixas (celular com barra do navegador) */
@media (max-width: 899px) and (max-height: 790px) { .hero-convite { display: none; } }
@media (max-width: 899px) and (max-height: 680px) {
  .cena-sub { display: none; }
  .mapas { gap: 8px; margin-top: 12px; }
}

/* entrada dos textos da cena A */
.js .cena-a > * { opacity: 0; transform: translateY(16px); }
.js.palco-pronto .cena-a > * { opacity: 1; transform: none; transition: opacity 900ms var(--curva), transform 900ms var(--curva); }
.js.palco-pronto .cena-a > :nth-child(1) { transition-delay: 250ms; }
.js.palco-pronto .cena-a > :nth-child(2) { transition-delay: 400ms; }
.js.palco-pronto .cena-a > :nth-child(4) { transition-delay: 900ms; }
.js.palco-pronto .cena-a > :nth-child(5) { transition-delay: 1100ms; }
.js.palco-pronto .cena-a > :nth-child(6) { transition-delay: 1300ms; }
.js.palco-pronto .cena-a > :nth-child(7) { transition-delay: 1500ms; }

/* sem JavaScript: titulo em texto comum */
html:not(.js) .palco { height: auto; }
html:not(.js) .palco-fixo { position: static; height: auto; padding-bottom: 48px; }
html:not(.js) .cena { position: static; }
html:not(.js) .cena-a { padding-top: 96px; }
html:not(.js) .titulo-slot { display: none; }
html:not(.js) .sr { position: static; width: auto; height: auto; clip-path: none; font-weight: 800; font-size: 56px; line-height: 1; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .dica i, .rolar i, .cena-acao .btn { animation: none; }
  .js .cena-a > * { opacity: 1; transform: none; transition: none; }
}
