/* ---------- BASE ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --dark: #0b0b0b;
  --light: #ffffff;
  --muted-dark: #777; /* Cinza para texto inativo em fundo claro */
  --muted-light: #888; /* Cinza claro para texto inativo em fundo escuro */
  --accent: #000;
  --bg: #f5f5f5;
  --max-width: 1200px;

  /* --- ESPAÇAMENTO FLUIDO --- */
  --gap: clamp(1.125rem, 3vw, 1.75rem); /* 18px a 28px */
}
html,
body {
  height: 100%;
}
body {
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- LAYOUT SNAP ---------- */
.snap-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.snap-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  /* --- PADDING FLUIDO --- */
  padding: clamp(1.5rem, 5vw, 3rem) var(--gap);
}
.section--light {
  background: var(--light);
  color: var(--dark);
}
.section--dark {
  background: var(--dark);
  color: var(--light);
}
.section-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section-header {
  text-align: left;
  margin-bottom: 18px;
  padding-left: 6px;
}
.section-header h1 {
  /* --- TAMANHO DE FONTE FLUIDO --- */
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}
.kicker {
  color: inherit;
  font-size: 0.95rem;
}

/* --- SEÇÃO DO BODY ATUALIZADA PARA SER INTRINSECAMENTE RESPONSIVA --- */
.section-body {
  display: flex;
  flex-wrap: wrap-reverse; /* Permite que os itens quebrem a linha naturalmente */
  gap: var(--gap);
  align-items: center;
  justify-content: center; /* Centraliza para um melhor visual em telas médias */
  width: 100%;
}
.content-left {
  flex: 1 1 480px; /* Base de 480px, pode crescer e encolher */
  text-align: left;
}
.content-right {
  flex: 1 1 400px; /* Base de 400px, pode crescer e encolher */
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead {
  font-size: clamp(1rem, 2.5vw, 1.1rem); /* Fonte fluida */
  line-height: 1.6; /* Melhora a legibilidade */
  margin-bottom: 14px;
  color: inherit;
}
.meta-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
  color: inherit;
}
.meta-list li {
  margin-bottom: 8px;
  color: inherit;
  font-size: 0.95rem;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.btn {
  background: var(--accent);
  color: var(--light);
  padding: 10px 14px;
  text-decoration: none;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.18s ease;
}
.btn.ghost {
  background: transparent;
  color: inherit;
  border: 2px solid currentColor;
  padding: 8px 12px;
  font-weight: 600;
}
.btn:hover {
  transform: translateY(-3px);
}
.thumb {
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* O media query de 900px para o layout foi removido, pois agora é automático.
   Mantemos apenas os ajustes para telas muito pequenas.
*/
@media (max-width: 520px) {
  .lb-thumbs .thumb-mini {
    width: 72px;
    height: 48px;
  }
  .side-nav {
    display: none;
  }
}

/* ---------- LIGHTBOX ---------- */
.lb{position:fixed;inset:0;display:none;align-items:center;justify-content:center;z-index:9999;background:rgba(0,0,0,0.85)}.lb[aria-hidden="false"]{display:flex}.lb-inner{width:100%;max-width:1100px;padding:20px;display:flex;flex-direction:column;gap:16px;align-items:center}.lb-media{width:100%;min-height:340px;display:flex;align-items:center;justify-content:center}.lb-media img,.lb-media video{max-width:100%;max-height:70vh;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5)}.lb-controls{display:flex;gap:12px;align-items:center}.lb-controls button{background:#fff;color:#000;border:0;padding:8px 12px;border-radius:8px;cursor:pointer;font-weight:700}.lb-close{position:fixed;right:22px;top:18px;z-index:10000;background:transparent;border:0;color:#fff;font-size:28px;cursor:pointer}.lb-thumbs{display:flex;gap:10px;overflow:auto;width:100%;padding:6px;justify-content:center}.lb-thumbs .thumb-mini{width:92px;height:64px;flex:0 0 auto;border-radius:6px;overflow:hidden;border:2px solid transparent;cursor:pointer}.lb-thumbs .thumb-mini img,.lb-thumbs .thumb-mini video{width:100%;height:100%;object-fit:cover;display:block}.lb-thumbs .thumb-mini.active{border-color:#fff;transform:scale(1.03);box-shadow:0 8px 20px rgba(255,255,255,.06)}

/* ---------- NAV (side quick links) ---------- */
.side-nav {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
}
.side-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.side-nav a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
  transition: color 0.3s ease;
}
.side-nav.theme-light a {
  color: var(--muted-dark);
}
.side-nav.theme-light a.active {
  color: var(--dark);
}
.side-nav.theme-dark a {
  color: var(--muted-light);
}
.side-nav.theme-dark a.active {
  color: var(--light);
}

/* ---------- ESTILOS ADAPTATIVOS PARA BOTÕES ---------- */
.section--dark .btn:not(.ghost) {
  background: var(--light);
  color: var(--dark);
}
.section--light .btn:not(.ghost):hover {
  background: #333;
}
.section--dark .btn:not(.ghost):hover {
  background: #e0e0e0;
}

/* ---------- ESTILOS DO SLIDER DE IMAGENS (Aprimorado) ---------- */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 420px;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
  font-size: 24px;
  font-weight: bold;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.1s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}
.slider-btn.prev {
  left: 8px;
}
.slider-btn.next {
  right: 8px;
}
.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.05);
}
.slider-container .thumb img {
  border-radius: 10px;
}

/* ---------- ESTILOS PARA "IMAGEM EM BREVE" (NOVO) ---------- */
.thumb.coming-soon {
  background-color: #eee;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  border: 2px dashed #ccc;
  box-shadow: none;
  cursor: default;
  user-select: none;
}
.section--dark .thumb.coming-soon {
  background-color: #333;
  color: #ccc;
  border-color: #555;
}

/* =================================================================== */
/* ========== AJUSTES DE NAVEGAÇÃO RESPONSIVA (NOVO CÓDIGO) ========== */
/* =================================================================== */

/* 1. Em telas maiores, criamos um "espaço seguro" para a navegação lateral.
      Isso impede que o texto fique embaixo dela. */
@media (min-width: 769px) {
  .section-inner {
    /* Adiciona um padding à esquerda com a largura aproximada da nav */
    padding-left: 100px; 
  }
}


/* 2. Em telas menores (tablets e celulares), transformamos a nav lateral em uma barra no topo. */
@media (max-width: 768px) {
  /* Adiciona um espaçamento no topo do corpo da página para não esconder o conteúdo */
  body {
    padding-top: 60px; /* Altura da nossa nova barra de navegação */
  }

  .side-nav {
    /* Transforma a nav em uma barra horizontal fixa no topo */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    transform: translateY(0); /* Reseta a centralização vertical */
    
    /* Estilos para a barra */
    background: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    
    /* Centraliza os links dentro da barra */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }
  
  .section--dark .side-nav {
      background: var(--dark);
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .side-nav ul {
    flex-direction: row; /* Alinha os links horizontalmente */
    gap: 16px; /* Espaçamento entre os links */
    padding: 0;
  }
}
