/* ==============================
   SEÇÕES TEMÁTICAS - PAGES CONTEÚDO
   ============================== */

.section-wrapper {
  margin: 3rem 0;
  padding: 0;
}

.DivInicial h2 {
  font-family: 'Tan', serif;
  font-weight: 700;
}

/* Header da Seção com Cor (sem bordas) */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-header h2 {
  font-size: 1.5rem;
  font-family: 'Tan', serif;
  font-weight: 700;
  margin: 0;
  color: var(--cor-secundaria);
}

/* Cores por tema (apenas texto) */
.section-header.origins { color: #0066cc; }

.section-header.territorial { color: #009933; }

.section-header.identity { color: #d4a574; }

.section-header.historical { color: #cc3300; }

.section-header.migration { color: #ff9900; }

.section-header.social { color: #8b6f47; }

.section-header.book { color: #663399; }

.section-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--texto-principal);
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(211, 106, 67, 0.05);
  border-left: 4px solid var(--cor-terciaria);
  border-radius: 4px;
}

/* Container de conteúdo da seção */
.section-content {
  margin: 1.5rem 0;
}

/* Subtópico (dentro de accordion ou direto) */
.subtopic {
  margin: 1.5rem 0;
  padding: 1rem 0;
}

.subtopic-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cor-terciaria);
  margin-bottom: 0.5rem;
  font-family: 'Alice', serif;
}

.subtopic-text {
  font-size: 0.95rem;
  line-height: 1rem;
  text-align: justify;
}

/* Highlight para Números/Datas/Estatísticas */
.highlight-stat {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  background: rgba(212, 165, 116, 0.15);
  border-radius: 4px;
  font-weight: 700;
  color: var(--cor-secundaria);
}

/* ==============================
   ACCORDION (Expansível/Colapsável)
   ============================== */

.accordion {
  margin: 1rem 0;
}

.accordion-item {
  border: 1px solid rgba(163, 58, 38, 0.15);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  overflow: hidden;
  background: white;
  transition: all 0.3s ease;
}

.accordion-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  background: #fafaf8;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--cor-secundaria);
  transition: all 0.3s ease;
  font-family: 'Alice', serif;
  gap: 1rem;
}

.accordion-trigger:hover {
  background: var(--bg-card);
  color: var(--cor-terciaria);
}

.accordion-trigger::before {
  content: '▶';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-trigger.active::before {
  transform: rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: visible;
  transition: max-height 0.3s ease;
  background: white;
}

.accordion-content.active {
  max-height: none;
  overflow: visible;
}

.accordion-body {
  padding: 2rem 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--texto-principal);
  text-align: justify;
}

.accordion-body h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cor-secundaria);
  margin: 1.5rem 0 0.8rem 0;
  font-family: 'Alice', serif;
}

.accordion-body h4:first-child {
  margin-top: 0;
}

.accordion-body p {
  margin: 0.5rem 0;
}

.accordion-body ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.accordion-body li {
  margin: 0.5rem 0;
}

/* ==============================
   LISTA COM ÍCONES/CORES
   ============================== */

.colored-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.colored-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: rgba(211, 106, 67, 0.03);
  border-left: 4px solid var(--cor-terciaria);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.colored-list li:hover {
  background: rgba(211, 106, 67, 0.08);
  transform: translateX(4px);
}

.colored-list-icon {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-width: 45px;
  border-radius: 50%;
  background: var(--cor-terciaria);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 45px;
  text-align: center;
}

.colored-list-text {
  flex: 1;
}

.colored-list-title {
  font-weight: 600;
  color: var(--cor-secundaria);
  margin-bottom: 0.3rem;
  font-family: 'Tan', serif;
}

.colored-list-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--texto-principal);
}

/* ==============================
   QUOTE/DESTAQUE
   ============================== */

.leader-quote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(163, 58, 38, 0.05) 100%);
  border-left: 5px solid var(--cor-terciaria);
  border-radius: 8px;
  font-style: italic;
  color: var(--cor-secundaria);
  font-family: 'Alice', serif;
  font-size: 1rem;
}

.leader-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--cor-terciaria);
  line-height: 0.5;
  margin-right: 0.5rem;
}

.leader-attribution {
  margin-top: 0.8rem;
  text-align: right;
  font-size: 0.9rem;
  color: var(--texto-principal);
  font-weight: 600;
}

/* ==============================
   VÍDEO CONTAINER
   ============================== */

.video-container-section {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.video-wrapper {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==============================
   REFERÊNCIAS
   ============================== */

.referencias-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--cor-terciaria);
}

.referencias-section h2 {
  font-size: 1.5rem;
  font-family: 'Tan', serif;
  color: var(--cor-secundaria);
  margin-bottom: 1.5rem;
  text-align: left;
}

.referencias-section h3 {
  font-size: 1.3rem;
  color: var(--cor-secundaria);
  font-family: 'Tan', serif;
  margin-bottom: 1.5rem;
}

.lista-referencias {
  list-style: none;
  padding: 0;
}

.lista-referencias li {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
  font-size: 0.9rem;
  text-align: justify;
}

.lista-referencias li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--cor-terciaria);
  font-size: 1rem;
}

/* ==============================
   ANEXOS
   ============================== */

.anexos-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 3px solid var(--cor-terciaria);
}

.anexos-section h2 {
  font-size: 1.5rem;
  font-family: 'Tan', serif;
  color: var(--cor-secundaria);
  margin-bottom: 1.5rem;
  text-align: left;
}

/* ==============================
   RESPONSIVIDADE
   ============================== */

@media (max-width: 768px) {
  .section-header {
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .section-icon {
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
  }

  .section-intro {
    font-size: 0.9rem;
    padding: 0.8rem;
    margin: 1rem 0;
  }

  .colored-list li {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .accordion-trigger {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .accordion-body {
    padding: 0.8rem;
    font-size: 0.9rem;
  }

  .leader-quote {
    padding: 1rem;
    font-size: 0.9rem;
  }

  .video-wrapper {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .section-header {
    gap: 0.6rem;
    margin-bottom: 0.8rem;
  }

  .section-header h2 {
    font-size: 1.05rem;
  }

  .section-icon {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .section-intro {
    font-size: 0.85rem;
    padding: 0.6rem;
    margin: 0.8rem 0;
  }

  .colored-list li {
    padding: 0.6rem;
    gap: 0.6rem;
    flex-direction: column;
  }

  .colored-list-icon {
    margin-bottom: 0.3rem;
  }

  .accordion-trigger {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .accordion-body {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .accordion-item {
    margin-bottom: 0.6rem;
  }

  .subtopic {
    margin: 1rem 0;
    padding: 0.8rem 0;
  }

  .subtopic-title {
    font-size: 0.95rem;
  }

  .subtopic-text {
    font-size: 0.85rem;
  }

  .lista-referencias li {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .leader-quote {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
}
