/* Paginas /historia/cdl-natal e /historia/cdl-jovem */
.historia { padding-top: 2rem; padding-bottom: 3.5rem; max-width: 1040px; }

/* Ancoras */
.historia-ancoras { display: flex; gap: .5rem; margin: 0 0 2rem; padding: 0 0 .25rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.historia-ancoras::-webkit-scrollbar { display: none; }
.historia-ancoras a { flex: 0 0 auto; padding: .55rem 1.1rem; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; background: #f3f5f9; color: #1a478a; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
.historia-ancoras a:hover, .historia-ancoras a:focus-visible { background: #1a478a; color: #fff; }
.historia-secao { scroll-margin-top: 90px; margin-bottom: 2.5rem; }

/* Titulos de secao */
.historia-titulo { position: relative; margin: 0 0 1.25rem; padding-bottom: .75rem; font-size: 1.75rem; font-weight: 700; color: #223d80; line-height: 1.25; }
.historia-titulo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: #00933f; }
.historia-titulo--centro { text-align: center; }
.historia-titulo--centro::after { left: 50%; transform: translateX(-50%); }

/* Texto corrido */
.historia-texto { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; color: #2b2f33; }
.historia-texto p { margin: 0 0 1.1rem; }
.historia-texto .historia-lide { font-size: 1.2rem; line-height: 1.65; color: #1a2b4a; }
.historia-texto strong { color: #1a478a; }

/* Cards missao / visao / valores */
.historia-duo, .historia-trio { display: grid; gap: 1.25rem; margin: 0 0 2.5rem; scroll-margin-top: 90px; }
.historia-duo { grid-template-columns: repeat(2, 1fr); }
.historia-trio { grid-template-columns: repeat(3, 1fr); }
.historia-card { padding: 1.5rem; border: 1px solid #e5e7eb; border-top: 4px solid #1a478a; border-radius: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.historia-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(26, 71, 138, .18); }
.historia-card:nth-child(even) { border-top-color: #00933f; }
.historia-card__titulo { margin: 0 0 .75rem; font-size: 1.35rem; font-weight: 700; color: #1a478a; }
.historia-card__titulo i { margin-right: .35rem; color: #00933f; }
.historia-card p { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: #2b2f33; }
.historia-card--destaque { background: #f3f7fc; border-top-color: #00933f; }
.historia-lista { margin: 0; padding: 0; list-style: none; }
.historia-lista li { position: relative; padding: .4rem 0 .4rem 1.6rem; line-height: 1.6; }
.historia-lista li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: .45rem; color: #00933f; }

/* CDL Jovem: sobre + objetivos */
.historia-grade-jovem { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 1rem; }
.historia-grade-jovem .historia-secao { margin-bottom: 1rem; }

/* Numeros */
.historia-numeros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0 0 1.25rem; }
.historia-numero { margin: 0; padding: 1.25rem 1rem; border-radius: 12px; background: #223d80; color: #fff; text-align: center; font-size: 1.5rem; font-weight: 700; }
.historia-numero i { display: block; margin-bottom: .25rem; font-size: 1.8rem; color: #7be0a6; }
.historia-chamada { margin: 0 0 2rem; text-align: center; font-size: 1.2rem; font-weight: 500; color: #4b5563; line-height: 1.5; }

/* Linha do tempo (presidentes) */
.linha-tempo { position: relative; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.linha-tempo::before { content: ""; position: absolute; top: 0; bottom: 0; left: 28px; width: 3px; background: #dbe3f0; border-radius: 2px; }
.linha-tempo__item { position: relative; margin: 0 0 1rem; padding-left: 74px; }
.linha-tempo__marco { position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 1; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #1a478a; color: #fff; font-weight: 700; font-size: 1.05rem; box-shadow: 0 0 0 4px #fff; }
.linha-tempo__item--atual .linha-tempo__marco { background: #00933f; }
.linha-tempo__card { padding: 1rem 1.15rem; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.linha-tempo__card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(26, 71, 138, .18); border-color: rgba(26, 71, 138, .3); }
.linha-tempo__item--atual .linha-tempo__card { border-color: #00933f; background: #f1faf5; }
.linha-tempo__nome { margin: 0; font-size: 1.1rem; font-weight: 700; color: #1a2b4a; line-height: 1.35; overflow-wrap: anywhere; }
.linha-tempo__cargo { margin: .15rem 0 0; font-size: .9rem; font-weight: 600; color: #00933f; }

@media (min-width: 768px) {
  .linha-tempo::before { left: 50%; margin-left: -1.5px; }
  .linha-tempo__item { width: 50%; padding: 0 44px 0 0; }
  .linha-tempo__item:nth-child(even) { margin-left: 50%; padding: 0 0 0 44px; }
  .linha-tempo__marco { left: auto; right: -29px; }
  .linha-tempo__item:nth-child(even) .linha-tempo__marco { right: auto; left: -29px; }
  .linha-tempo__item:nth-child(odd) .linha-tempo__card { text-align: right; }
}

@media (max-width: 991.98px) {
  .historia-grade-jovem { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 767.98px) {
  .historia { padding-top: 1.25rem; padding-bottom: 2.5rem; }
  .historia-titulo { font-size: 1.45rem; }
  .historia-texto { font-size: 1.05rem; }
  .historia-texto .historia-lide { font-size: 1.12rem; }
  .historia-duo, .historia-trio { grid-template-columns: 1fr; gap: 1rem; }
  .historia-numeros { gap: .75rem; }
  .historia-numero { font-size: 1.15rem; padding: 1rem .5rem; }
  .historia-chamada { font-size: 1.05rem; }
  .linha-tempo__marco { width: 52px; height: 52px; font-size: 1rem; }
  .linha-tempo::before { left: 25px; }
  .linha-tempo__item { padding-left: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .historia-card, .linha-tempo__card { transition: none; }
  .historia-card:hover, .linha-tempo__card:hover { transform: none; }
}
