/* ---------- Trilha ---------- */
.trilha, .aula { padding-top: 24px; padding-bottom: 72px; }
.trilha h1, .aula h1 { font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; margin: 16px 0 12px; }
.trilha-intro { font-size: 18px; color: var(--texto); margin: 0 0 24px; }

.progresso { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.progresso-barra { flex: 1 1 240px; height: 10px; border-radius: 10px; background: var(--fundo-suave); overflow: hidden; }
.progresso-barra span { display: block; height: 100%; width: 0; background: var(--roxo); border-radius: 10px; transition: width .3s; }
#progresso-texto { font-size: 15px; font-weight: 600; color: var(--texto); }

.modulo h2 { font-size: 22px; margin: 0 0 16px; }
.lista-aulas { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.item-aula {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--raio);
  border: 1px solid #E6E4F2; background: #FFFFFF;
  transition: border-color .15s, transform .15s;
}
.item-aula:hover { border-color: var(--roxo); transform: translateY(-1px); }
.item-numero {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--fundo-suave); color: var(--roxo);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.item-aula.concluida .item-numero { background: var(--roxo); color: #FFFFFF; }
.item-info { display: flex; flex-direction: column; gap: 3px; }
.item-titulo { font-weight: 700; font-size: 16px; }
.item-meta { font-size: 14px; color: var(--suave); }

/* ---------- Aula ---------- */
.aula { max-width: 780px; }
.migalhas { font-size: 14px; color: var(--suave); margin-bottom: 16px; }
.migalhas a { color: var(--roxo); font-weight: 600; }

.texto-aula { font-size: 18px; line-height: 1.75; color: #2A2650; }
.texto-aula h2 { font-size: 26px; margin: 40px 0 12px; color: var(--tinta); }
.texto-aula p { margin: 0 0 18px; }
.texto-aula ul, .texto-aula ol { margin: 0 0 18px; padding-left: 24px; }
.texto-aula li { margin-bottom: 8px; }
.texto-aula strong { color: var(--tinta); }

.bloco-lei, .bloco-exercicios { margin-top: 56px; }
.bloco-lei h2, .bloco-exercicios h2 { font-size: 26px; margin: 0 0 16px; }
.artigo { border: 1px solid #E6E4F2; border-radius: var(--raio); margin-bottom: 12px; background: #FBFBFE; }
.artigo summary { cursor: pointer; padding: 16px 20px; font-weight: 700; }
.artigo-texto { padding: 0 20px 18px; white-space: pre-line; font-size: 16px; line-height: 1.7; color: #2A2650; border-left: 3px solid var(--roxo); margin: 0 20px 18px; padding: 4px 0 4px 16px; }

.exercicio { border: 1px solid #E6E4F2; border-radius: 14px; padding: 20px; margin: 0 0 16px; }
.exercicio legend { font-weight: 700; font-size: 17px; line-height: 1.5; padding: 0 6px; }
.ex-numero { color: var(--roxo); }
.opcao {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-top: 8px; border-radius: 10px;
  border: 1.5px solid #E6E4F2; cursor: pointer; font-size: 16px;
}
.opcao:hover { border-color: var(--borda); background: var(--fundo-suave); }
.opcao input { margin-top: 4px; accent-color: var(--roxo); }
.opcao.certa { border-color: #1B8A4B; background: #E9F7EF; }
.opcao.errada { border-color: #C0392B; background: #FCEDEB; }
.feedback { margin-top: 14px; padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.6; }
.feedback p { margin: 4px 0 0; }
.feedback.ok { background: #E9F7EF; color: #145C33; }
.feedback.erro { background: #FCEDEB; color: #8A2A1F; }
.placar { font-size: 18px; font-weight: 700; color: var(--roxo); }

.concluir { margin-top: 40px; }
#botao-concluir { border: 0; cursor: pointer; font-family: inherit; }
#botao-concluir.feita { background: #1B8A4B; }

.navegacao-aulas { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 32px; border-top: 1px solid #E6E4F2; }
.navegacao-aulas .botao { max-width: 100%; }

@media (max-width: 960px) {
  .texto-aula { font-size: 17px; }
  .navegacao-aulas .botao { flex: 1 1 100%; text-align: center; }
}

.texto-aula h3 { font-size: 20px; margin: 28px 0 10px; color: var(--tinta); }
.texto-aula blockquote { margin: 0 0 18px; padding: 16px 20px; background: var(--fundo-suave); border-radius: var(--raio); }
