/* ─────────────────────────────────────
   HERO CAROUSEL — corrigido
   Problema anterior: slides sem width:100%
   causava sobreposição de títulos
───────────────────────────────────── */
.io-hero {
  width: 100%;
  position: relative;
  height: 88vh;
  min-height: 500px;
  max-height: 860px;
  border-bottom: 2px solid var(--ink);
  /* overflow:hidden essencial para o carrossel */
  overflow: hidden;
  background: var(--ink);
}

/* Container dos slides — flex linha */
.io-hero__slides {
  position: relative;
  height: 100%;
}

/* Cada slide: oculto por padrão, mostra só o ativo */
.io-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  overflow: hidden;
}
.io-hero__slide--ativo {
  opacity: 1;
  pointer-events: auto;
  position: relative;   /* ocupa espaço no fluxo para o hero ter altura */
}

/* ── MÍDIA ──────────────────────────
   object-fit:cover = preenche sem distorcer
   object-position:center = foca no centro da imagem
   (mude para "center top" se quiser focar no topo)
*/
.io-hero__media {
  position: absolute;
  inset: 0;
}
.io-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.55);
}
/* Portrait mobile — foca no topo para não cortar o rosto */
@media (max-width: 768px) and (orientation: portrait) {
  .io-hero__media img {
    object-position: top center;
    min-height: 100%;
  }
  /* Hero ocupa mais altura em portrait para mostrar a imagem */
  .io-hero { height: 82vh; min-height: 440px; }
}
@media (max-width: 480px) and (orientation: portrait) {
  .io-hero { height: 78vh; min-height: 400px; }
  .io-hero__media img { object-position: top center; }
}
.io-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.55);
}
.io-hero__media iframe {
  position: absolute;
  inset: -8%;       /* negativo para esconder barras do YT */
  width: 116%;
  height: 116%;
  pointer-events: none;
}

/* Efeitos visuais */
.io-hero__halftone {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(26,23,18,0.15) 1px, transparent 1px);
  background-size: 4px 4px;
  mix-blend-mode: multiply;
}
.io-hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  mix-blend-mode: multiply; opacity: 0.35;
}
.io-hero__grad {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(26,23,18,0.95) 0%,
    rgba(26,23,18,0.4)  40%,
    rgba(26,23,18,0.0)  100%
  );
}

/* ── CONTEÚDO ───────────────────────
   Cada slide tem seu próprio bloco de conteúdo
   position:absolute + z-index garante que só
   o slide visível mostre seu texto
*/
.io-hero__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 4;
  padding: 0 8% clamp(32px, 5vh, 60px);
}

.io-hero__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
  width: fit-content;
}
.io-hero__tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  animation: io-blink 1.8s infinite; flex-shrink: 0;
}
@keyframes io-blink { 0%,100%{opacity:1} 50%{opacity:0.2} }

.io-hero__title {
  font-family: var(--font-display);
  font-style: italic; font-weight: 400;
  font-size: clamp(32px, 5vw, 64px);
  color: #fff; line-height: 1.08;
  margin-bottom: 16px;
  max-width: min(700px, 70%);   /* limita para não cruzar a tela toda */
}
.io-hero__title strong {
  font-style: normal;
  font-family: var(--font-body); font-weight: 800;
  color: var(--terra-lt);
  font-size: clamp(28px, 4.5vw, 58px);
  display: block;
  margin-top: 4px;
}

.io-hero__sub {
  font-size: clamp(14px, 1.5vw, 17px);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: min(520px, 60%);
  margin-bottom: 28px;
}

/* Decoração */
.io-hero__type-badge {
  position: absolute; top: 20px; left: 8%;
  z-index: 5; font-family: var(--font-mono); font-size: 11px;
  color: var(--cream); background: rgba(26,23,18,0.6);
  padding: 4px 12px; letter-spacing: 0.09em;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(4px);
}
.io-hero__corner {
  position: absolute; top: 20px; right: 120px;
  width: 76px; height: 76px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  z-index: 3; pointer-events: none;
}
.io-hero__corner-inner {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.4); text-align: center; line-height: 1.4;
}
.io-hero__ep-num {
  position: absolute; right: 8%; bottom: 100px;
  font-family: var(--font-body); font-weight: 800;
  font-size: clamp(90px, 12vw, 160px); line-height: 1;
  color: rgba(255,255,255,0.05); letter-spacing: -6px;
  pointer-events: none; user-select: none; z-index: 2;
}
.io-hero__credits {
  position: absolute; top: 20px; right: 210px;
  z-index: 5; font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.4); background: rgba(26,23,18,0.45);
  padding: 4px 12px; backdrop-filter: blur(4px);
}
.io-hero__credits strong { color: rgba(255,255,255,0.7); font-weight: 400; }

/* Controles */
.io-hero__controls {
  position: absolute; bottom: clamp(24px,4vh,44px); right: 8%;
  z-index: 5; display: flex; align-items: center; gap: 8px;
}
.io-hero__dots { display: flex; gap: 8px; }
.io-hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3); border: none; padding: 0;
  cursor: pointer; transition: all 0.35s;
}
.io-hero__dot.active {
  background: var(--terra); width: 28px; border-radius: 4px;
}
.io-hero__arr {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background var(--transition), border-color var(--transition);
}
.io-hero__arr:hover { background: var(--terra); border-color: var(--terra); }

/* Progresso */
.io-hero__progress {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: rgba(255,255,255,0.1); z-index: 5;
}
.io-hero__progress-bar { height: 100%; background: var(--terra); width: 0%; }

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
  .io-hero { height: 80vh; }
  .io-hero__title { max-width: 80%; }
  .io-hero__sub { max-width: 75%; }
  .io-hero__credits { display: none; }
}
@media (max-width: 768px) {
  .io-hero { height: 75vh; min-height: 420px; }
  .io-hero__content { padding: 0 5% clamp(24px,4vh,44px); }
  .io-hero__sub { display: none; }
  .io-hero__ep-num { display: none; }
  .io-hero__corner { display: none; }
  .io-hero__title { max-width: 90%; font-size: clamp(28px,6vw,42px); }
  .io-hero__type-badge { left: 5%; }
  .io-hero__controls { right: 5%; }
}
@media (max-width: 480px) {
  .io-hero { height: 70vh; min-height: 360px; }
  .io-hero__title { font-size: 26px; }
  .io-hero__title strong { font-size: 24px; }
  /* tag: 8px → 11px para legibilidade 30+ */
  .io-hero__tag { font-size: 11px; padding: 5px 12px; }
  /* subtítulo volta em mobile pequeno com fonte menor */
  .io-hero__sub { display: block; font-size: 13px; max-width: 95%; }
  /* controles maiores para toque */
  .io-hero__arr { width: 38px; height: 38px; }
  .io-hero__dot { width: 10px; height: 10px; }
}
