.history-page { overflow: hidden; color: #0b2951; font-family: "Manrope", sans-serif; }
.history-page .container { max-width: 1180px; }

.history-hero { padding: 25px 0 76px; background: radial-gradient(circle at 85% 16%,rgba(148,92,219,.18),transparent 29%),radial-gradient(circle at 8% 94%,rgba(188,154,240,.2),transparent 26%),linear-gradient(135deg,#fbf9ff,#eee6ff); }
.history-breadcrumb { margin-bottom: 46px; font-size: 12px; font-weight: 700; }
.history-breadcrumb a { color: #7650c9; text-decoration: none; }
.history-breadcrumb .active { color: #64748b; }
.history-kicker,
.section-heading > span { display: block; margin-bottom: 11px; color: #8252cf; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.history-hero h1 { max-width: 700px; margin-bottom: 21px; font-size: clamp(43px,5vw,62px); font-weight: 800; line-height: 1.06; letter-spacing: -.055em; }
.history-hero p { max-width: 680px; margin-bottom: 29px; color: #52647a; font-size: 15px; line-height: 1.75; }
.history-marks { display: flex; flex-wrap: wrap; gap: 11px; }
.history-marks > div { min-width: 130px; padding: 13px 15px; background: rgba(255,255,255,.72); border: 1px solid rgba(115,68,185,.15); border-radius: 12px; }
.history-marks strong,
.history-marks span { display: block; }
.history-marks strong { margin-bottom: 3px; color: #7849c0; font-size: 18px; font-weight: 800; }
.history-marks span { color: #657285; font-size: 10px; line-height: 1.4; }

.history-photo-placeholder { position: relative; min-height: 440px; overflow: hidden; background: linear-gradient(145deg,rgba(244,237,255,.95),rgba(220,205,245,.85)); border: 1px solid rgba(113,67,184,.18); border-radius: 25px; box-shadow: 0 20px 50px rgba(65,35,111,.13); }
.history-photo-placeholder::before,
.history-photo-placeholder::after { position: absolute; content: ""; border: 1px solid rgba(120,75,190,.15); border-radius: 50%; }
.history-photo-placeholder::before { top: -100px; right: -80px; width: 280px; height: 280px; }
.history-photo-placeholder::after { bottom: -120px; left: -80px; width: 320px; height: 320px; }
.photo-placeholder-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 35px; text-align: center; }
.photo-placeholder-content > span { display: inline-flex; width: 68px; height: 68px; margin-bottom: 18px; align-items: center; justify-content: center; color: #fff; font-size: 27px; background: linear-gradient(135deg,#9b69e1,#7041bd); border-radius: 20px; box-shadow: 0 12px 25px rgba(112,64,189,.24); }
.photo-placeholder-content strong { font-size: 16px; font-weight: 800; }
.photo-placeholder-content small { margin-top: 5px; color: #6f7887; font-size: 11px; }
.photo-caption { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; gap: 9px; padding: 13px 15px; color: #fff; font-size: 11px; background: rgba(9,40,78,.9); border-radius: 11px; backdrop-filter: blur(8px); }
.photo-caption i { color: #c9a5ff; }

.history-origin { padding: 78px 0 82px; background: #fff; }
.history-origin h2 { margin: 0; font-size: clamp(32px,4vw,44px); font-weight: 800; line-height: 1.18; letter-spacing: -.045em; }
.origin-copy p { color: #657285; font-size: 13px; line-height: 1.85; }
.origin-copy .lead-copy { color: #263f5f; font-size: 17px; font-weight: 600; line-height: 1.75; }
.origin-copy blockquote { position: relative; margin: 26px 0 0; padding: 22px 24px 22px 56px; background: #f4edff; border-left: 4px solid #8755cf; border-radius: 0 15px 15px 0; }
.origin-copy blockquote i { position: absolute; top: 19px; left: 20px; color: #8755cf; font-size: 23px; }
.origin-copy blockquote p { margin: 0; color: #553d77; font-size: 13px; font-weight: 700; line-height: 1.65; }

.history-timeline-section { padding: 76px 0 87px; background: #f7f7fb; }
.section-heading { max-width: 760px; margin-bottom: 47px; }
.centered-heading { margin-right: auto; margin-left: auto; text-align: center; }
.centered-heading h2::after { left: 50%; transform: translateX(-50%); }
.section-heading h2 { margin-bottom: 11px; font-size: clamp(31px,3.5vw,42px); font-weight: 800; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: #667285; font-size: 14px; line-height: 1.7; }

.history-timeline { position: relative; max-width: 1010px; margin: 0 auto; }
.history-timeline::before { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; content: ""; background: linear-gradient(#d7c3f1,#8b58d2,#d7c3f1); transform: translateX(-50%); }
.timeline-item { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; margin-bottom: 28px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-year { position: relative; z-index: 2; display: flex; grid-column: 2; width: 76px; height: 76px; margin: 18px auto 0; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; text-align: center; background: linear-gradient(135deg,#9866dd,#7041bd); border: 7px solid #f7f7fb; border-radius: 50%; box-shadow: 0 9px 22px rgba(112,64,189,.2); }
.timeline-card { grid-row: 1; max-width: 430px; padding: 25px; background: #fff; border: 1px solid #e5e3ea; border-radius: 18px; box-shadow: 0 12px 34px rgba(20,39,73,.07); }
.timeline-item.left .timeline-card { grid-column: 1; justify-self: end; }
.timeline-item.right .timeline-card { grid-column: 3; justify-self: start; }
.timeline-card > span { display: inline-flex; width: 49px; height: 49px; margin-bottom: 16px; align-items: center; justify-content: center; color: #8252ce; font-size: 20px; background: #efe5fd; border-radius: 15px; }
.timeline-card h3 { margin-bottom: 9px; font-size: 17px; font-weight: 800; }
.timeline-card p { margin: 0; color: #687486; font-size: 12px; line-height: 1.75; }
.timeline-card.featured { color: #fff; background: linear-gradient(145deg,#9563dc,#6638ae); border-color: transparent; }
.timeline-card.featured > span { color: #fff; background: rgba(255,255,255,.16); }
.timeline-card.featured p { color: rgba(255,255,255,.8); }

.history-chapters { padding: 82px 0 88px; background: #fff; }
.history-feature { position: relative; padding: 34px; overflow: hidden; background: #fbfaff; border: 1px solid #e8e1f1; border-radius: 24px; box-shadow: 0 15px 42px rgba(30,49,80,.06); }
.history-feature-congress { display: grid; grid-template-columns: 70px minmax(250px,.75fr) minmax(460px,1.5fr); gap: 25px; align-items: start; }
.feature-icon { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; color: #fff; font-size: 24px; background: linear-gradient(135deg,#9867de,#7040bc); border-radius: 18px; box-shadow: 0 11px 24px rgba(112,64,189,.2); }
.feature-copy h3 { margin-bottom: 12px; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.035em; }
.feature-copy p { color: #667487; font-size: 12px; line-height: 1.8; }
.feature-copy p:last-child { margin-bottom: 0; }
.history-event-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.history-event-grid article { padding: 15px 13px; background: #fff; border: 1px solid #e7def1; border-radius: 13px; }
.history-event-grid strong,
.history-event-grid span,
.history-event-grid small { display: block; }
.history-event-grid strong { margin-bottom: 3px; color: #8050ca; font-size: 16px; font-weight: 800; }
.history-event-grid span { margin-bottom: 3px; color: #15345c; font-size: 11px; font-weight: 800; }
.history-event-grid small { color: #7a8594; font-size: 9px; line-height: 1.45; }
.feature-note { grid-column: 2 / -1; display: flex; gap: 8px; margin: 0; padding-top: 2px; color: #738093; font-size: 10px; line-height: 1.55; }
.feature-note i { color: #8958d0; }
.history-feature-row { margin-top: 24px; }
.history-feature-row .history-feature { display: flex; flex-direction: column; }
.history-feature-row .feature-icon { margin-bottom: 22px; }
.compact-history-list { margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid #e6deef; }
.compact-history-list li { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e6deef; }
.compact-history-list strong { color: #8151ca; font-size: 11px; font-weight: 800; }
.compact-history-list span { color: #5f6f83; font-size: 10px; line-height: 1.5; }
.feature-highlight { display: flex; gap: 14px; margin-top: auto; padding: 20px; color: #fff; background: linear-gradient(135deg,#0b2f5d,#10274a); border-radius: 16px; }
.feature-highlight i { flex: 0 0 auto; color: #c8a5f5; font-size: 21px; }
.feature-highlight span { font-size: 11px; font-weight: 700; line-height: 1.65; }

.history-impact { padding: 80px 0; background: linear-gradient(135deg,#f6f1fd,#fbfaff); }
.history-impact h2 { margin-bottom: 17px; font-size: clamp(32px,4vw,44px); font-weight: 800; line-height: 1.16; letter-spacing: -.045em; }
.history-impact .col-lg-5 > p { color: #647287; font-size: 13px; line-height: 1.8; }
.impact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.impact-grid article { display: flex; gap: 15px; padding: 21px; background: rgba(255,255,255,.9); border: 1px solid #e8dff3; border-radius: 17px; box-shadow: 0 9px 25px rgba(50,35,80,.05); }
.impact-grid article > span { display: inline-flex; flex: 0 0 45px; width: 45px; height: 45px; align-items: center; justify-content: center; color: #8252ce; font-size: 18px; background: #efe5fd; border-radius: 13px; }
.impact-grid h3 { margin: 2px 0 6px; font-size: 13px; font-weight: 800; }
.impact-grid p { margin: 0; color: #6b788a; font-size: 10px; line-height: 1.65; }

.history-specialty { padding: 83px 0; background: #fff; }
.specialty-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; padding: 45px; color: #fff; background: radial-gradient(circle at 95% 5%,rgba(151,95,220,.35),transparent 34%),linear-gradient(140deg,#082b58,#071e3d); border-radius: 25px; box-shadow: 0 20px 50px rgba(8,34,69,.15); }
.specialty-copy h2 { margin-bottom: 18px; font-size: clamp(29px,3.5vw,40px); font-weight: 800; line-height: 1.18; letter-spacing: -.045em; }
.specialty-copy p { color: rgba(255,255,255,.7); font-size: 12px; line-height: 1.8; }
.training-centers { padding: 27px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 18px; }
.training-centers h3 { display: flex; gap: 10px; margin-bottom: 19px; align-items: center; font-size: 14px; font-weight: 800; }
.training-centers h3 i { color: #c7a3f5; font-size: 18px; }
.training-centers > div { display: flex; flex-wrap: wrap; gap: 8px; }
.training-centers span { padding: 8px 10px; color: rgba(255,255,255,.85); font-size: 9px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; }
.training-centers small { display: block; margin-top: 20px; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.65; }

.history-pioneers { padding: 75px 0; background: #fff; }
.pioneers-panel { padding: 43px; background: linear-gradient(145deg,#fbfaff,#f2ecfb); border: 1px solid #e5dcef; border-radius: 24px; }
.pioneers-intro { max-width: 760px; margin-bottom: 28px; }
.pioneers-intro h2 { margin-bottom: 11px; font-size: clamp(30px,3.7vw,41px); font-weight: 800; letter-spacing: -.04em; }
.pioneers-intro p { margin: 0; color: #657285; font-size: 13px; line-height: 1.75; }
.pioneers-names { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 19px; }
.pioneers-names span { padding: 10px 13px; color: #543579; font-size: 11px; font-weight: 700; background: #fff; border: 1px solid #e4d8f2; border-radius: 10px; box-shadow: 0 5px 14px rgba(71,44,109,.05); }
.pioneers-panel > small { color: #747d8b; font-size: 10px; }

.history-legacy { padding: 0 0 80px; background: #fff; }
.legacy-panel { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 41px 44px; color: #fff; background: radial-gradient(circle at 90% -10%,rgba(180,134,242,.4),transparent 34%),linear-gradient(135deg,#0b2c57,#0a2143); border-radius: 23px; box-shadow: 0 18px 40px rgba(9,34,69,.17); }
.legacy-panel > div { max-width: 770px; }
.legacy-panel > div > span { display: block; margin-bottom: 8px; color: #cdb0f6; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.legacy-panel h2 { margin-bottom: 9px; font-size: clamp(27px,3.2vw,37px); font-weight: 800; letter-spacing: -.04em; }
.legacy-panel p { margin: 0; color: rgba(255,255,255,.73); font-size: 13px; line-height: 1.65; }
.legacy-panel .btn { display: inline-flex; flex-shrink: 0; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; color: #fff; font-size: 12px; font-weight: 800; background: #8754d1; border-radius: 11px; }
.legacy-panel .btn:hover { background: #9866df; }

@media (max-width: 991.98px) {
  .history-breadcrumb { margin-bottom: 34px; }
  .history-photo-placeholder { min-height: 420px; }
  .history-timeline::before { left: 38px; }
  .timeline-item { grid-template-columns: 76px 1fr; gap: 15px; }
  .timeline-year { grid-column: 1; grid-row: 1; width: 66px; height: 66px; margin-top: 15px; font-size: 11px; }
  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card { grid-column: 2; grid-row: 1; justify-self: stretch; max-width: none; }
  .legacy-panel { align-items: flex-start; flex-direction: column; }
  .history-feature-congress { grid-template-columns: 70px 1fr; }
  .history-event-grid { grid-column: 1 / -1; }
  .feature-note { grid-column: 1 / -1; }
  .specialty-panel { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 767.98px) {
  .history-hero { padding: 21px 0 53px; }
  .history-breadcrumb { margin-bottom: 29px; }
  .history-hero h1 { font-size: 39px; }
  .history-hero p { font-size: 14px; }
  .history-marks > div { flex: 1 1 100px; }
  .history-photo-placeholder { min-height: 340px; }
  .history-origin { padding: 56px 0 61px; }
  .history-origin h2 { font-size: 32px; }
  .origin-copy .lead-copy { font-size: 15px; }
  .history-timeline-section { padding: 57px 0 65px; }
  .history-timeline::before { left: 27px; }
  .timeline-item { grid-template-columns: 55px 1fr; gap: 10px; }
  .timeline-year { width: 52px; height: 52px; margin-top: 15px; border-width: 5px; font-size: 9px; }
  .timeline-card { padding: 21px; }
  .history-chapters { padding: 58px 0 63px; }
  .history-feature { padding: 25px 21px; border-radius: 20px; }
  .history-feature-congress { display: block; }
  .history-feature-congress .feature-icon { margin-bottom: 20px; }
  .history-event-grid { grid-template-columns: repeat(2,1fr); margin-top: 24px; }
  .feature-note { margin-top: 17px; }
  .history-impact { padding: 58px 0; }
  .impact-grid { grid-template-columns: 1fr; }
  .history-specialty { padding: 59px 0; }
  .specialty-panel { padding: 31px 24px; border-radius: 20px; }
  .training-centers { padding: 22px; }
  .history-pioneers { padding: 56px 0; }
  .pioneers-panel { padding: 31px 24px; border-radius: 20px; }
  .history-legacy { padding-bottom: 63px; }
  .legacy-panel { padding: 31px 25px; border-radius: 20px; }
  .legacy-panel .btn { width: 100%; }
}

/* Legendas e textos auxiliares seguem o mínimo de leitura da home. */
.page-v2 :where(
  .history-marks span, .photo-placeholder-content small, .photo-caption,
  .history-event-grid span, .history-event-grid small, .feature-note,
  .compact-history-list strong, .compact-history-list span,
  .feature-highlight span, .impact-grid p, .training-centers span,
  .training-centers small, .pioneers-names span, .pioneers-panel > small,
  .legacy-panel > div > span
) { font-size: 12px; }

@media (max-width: 575.98px) {
  .page-v2 .timeline-year { font-size: 12px; }
}
