/* Cunia AMISCIM: Cunia (Hubert & Fischer) estendida com Ã Õ À Ç Â Ê Ô (tools/estender_fonte_cunia.py) */
@font-face {
  font-family: "Cunia AMISCIM";
  src: url("fontes/cunia-amiscim.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

/* Hero AMISCIM: estilos do componente público */
.hero {
  isolation: isolate; /* a mesclagem da logomarca age só dentro do Hero */
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
  background: #1b0a0d;
  outline: none;
  touch-action: pan-y;
  user-select: none;
}
.hero:focus-visible { box-shadow: inset 0 0 0 3px #fbbf0f; }

.hero__palco, .hero__slide {
  position: absolute;
  inset: 0;
}
.hero__palco { z-index: 0; isolation: isolate; }
.hero__slide { opacity: 0; overflow: hidden; }
.hero__slide.is-ativo { z-index: 1; }
.hero__slide--capa { background: center / cover no-repeat; }

.hero__midia--capa { background-color: #1b0a0d; }
.hero__midia {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  transform-origin: center;
  will-change: transform;
}

/* Vídeo YouTube cobrindo a área (tamanho calculado via JS) */
.hero__cover {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
.hero__cover.is-visivel { opacity: 1; }
.hero__cover iframe, .hero__yt {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  pointer-events: none;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Máscara vazada */
.hero__mascara {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
.hero__mascara text { font-weight: 400; } /* letter-spacing vem do atributo (painel) */

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

/* Controles */
.hero__controles {
  position: absolute;
  left: 0; right: 0;
  bottom: 14px; /* dentro da faixa reservada abaixo da palavra (ver layoutMascara) */
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.hero__controles > * { pointer-events: auto; }

.hero__dots { display: flex; gap: 8px; }
.hero__dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(122, 16, 32, 0.28);
  cursor: pointer;
  transition: width 0.35s ease, background 0.35s ease;
}
.hero__dot.is-ativo { width: 30px; background: #fbbf0f; }
.hero__dot:focus-visible { outline: 2px solid #7a1020; outline-offset: 2px; }

.hero__som {
  position: absolute;
  z-index: 10;
  top: clamp(14px, 3vh, 28px);
  right: clamp(16px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #7a1020;
  color: #fff;
  font: 600 14px/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.hero__som svg { width: 20px; height: 20px; fill: currentColor; }
.hero__som[hidden] { display: none; }
.hero__som:hover { background: #95172b; }
.hero__som:focus-visible { outline: 3px solid #fbbf0f; outline-offset: 2px; }
.hero__som.is-chamando { animation: hero-pulso 1.6s ease-in-out infinite; }
@keyframes hero-pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251,191,15,.7); }
  50% { box-shadow: 0 0 0 12px rgba(251,191,15,0); }
}

@media (max-width: 640px) {
  .hero { height: 78svh; min-height: 420px; }
  .hero__som span { display: none; }
  .hero__som { padding: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__cover, .hero__dot { transition: none; }
  .hero__som.is-chamando { animation: none; }
}

/* Logomarca / mandala (posição e tamanho via JS: layoutMarca) */
.hero__marca {
  position: absolute;
  z-index: 6;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center;
}
.hero__marca[hidden] { display: none; }
