/* RESET / BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Lora", serif;
  -webkit-font-smoothing: antialiased;
}

/* CONTAINER PRINCIPAL */
.story-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
}

/* SLIDE */
.slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}

/* IMAGEM DO SLIDE */
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* OVERLAY ESCURO */
.slide-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* CONTEÚDO DO SLIDE */
/* A formatação será definida pela classe dinâmica: .center (centralizado) ou .justified (justificado) */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  width: 90vw; /* Ocupa 90% da largura da viewport */
  padding: 0 2vw; /* Menos padding para aproveitar mais a largura */
}

.slide-content.center {
  text-align: center;
}
.slide-content.justified {
  text-align: justify;
  text-align-last: center;
}
@media (max-width: 768px) {
  .slide-content {
    max-width: 90vw;
    padding: 0;
  }
}
.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0.5rem 0;
}
.slide-content h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0 0 2rem;
  font-weight: 400;
}
.slide-content p {
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.55;
  margin: 0 0 1.5rem;
  word-break: break-word;
}

/* SCROLL HINT */
.scroll-hint {
  margin-top: 2.5rem;
  font-size: clamp(1rem, 2.8vw, 1.1rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  opacity: 0.85;
}
.arrow-down {
  font-size: 2rem;
  animation: arrow 1.2s infinite ease-in-out;
}
@keyframes arrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.35rem);
  }
}

/* BOTÃO DE CTA */
.cta-button {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: clamp(1rem, 3vw, 1.1rem);
  transition: background 0.25s;
}
