/* ═══════════════════════════════════════════
   DCER CAPIXABA – PÁGINA DE HISTÓRIA
═══════════════════════════════════════════ */

/* ── Hero ── */
.hist-hero {
  background: linear-gradient(135deg, #001a5e 0%, #0047CC 55%, #002F8A 100%);
  padding: 110px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hist-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hist-hero-tag {
  display: inline-block;
  border: 1.5px solid rgba(245,184,0,.5);
  color: var(--gold);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hist-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}
.hist-hero h1 span { color: var(--gold); }
.hist-hero p {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}
.hist-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hist-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px;
  padding: 9px 20px;
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  transition: background .2s;
}
.hist-pill:hover {
  background: rgba(255,255,255,.18);
}
.hist-pill i { color: var(--gold); }

/* ── Milestones strip ── */
.hist-milestones {
  background: linear-gradient(135deg, var(--dark), #1a2a4a);
  padding: 64px 0;
}
.hist-milestones-title {
  text-align: center;
  color: #fff;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 40px;
}
.hist-milestones-title span { color: var(--gold); }
.hist-milestones-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.hist-milestone {
  text-align: center;
  padding: 20px 36px;
  border-right: 1px solid rgba(255,255,255,.1);
  flex: 1;
  min-width: 140px;
}
.hist-milestone:last-child { border-right: none; }
.hist-milestone-year {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.hist-milestone-label {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── Chapter sections ── */
.hist-chapter { padding: 80px 0; }
.hist-chapter-usa    { background: #fff; }
.hist-chapter-brasil { background: var(--blue-bg); }

.hist-chapter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hist-chapter-inner.reverse       { direction: rtl; }
.hist-chapter-inner.reverse > *   { direction: ltr; }

/* ── Flag badge ── */
.hist-flag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 50px;
  padding: 8px 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  margin-bottom: 14px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--dark);
}
.hist-flag-em { font-size: 1.2rem; }

/* ── Part tag ── */
.hist-part-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.tag-usa {
  background: #E8F0FF;
  color: var(--blue);
  border: 1px solid rgba(0,71,204,.2);
}
.tag-brasil {
  background: #FEF9E7;
  color: var(--gold-dark);
  border: 1px solid rgba(245,184,0,.4);
}

/* ── Chapter title & lead ── */
.hist-chapter-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.hist-chapter-title span        { color: var(--blue); }
.hist-chapter-title span.gold   { color: var(--gold); }

.hist-chapter-lead {
  font-size: .95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ── Timeline ── */
.hist-timeline {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
.hist-tl-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hist-tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  margin-top: 2px;
}
.hist-tl-dot.blue { background: var(--blue); color: #fff; }
.hist-tl-dot.gold { background: var(--gold); color: var(--dark); }

.hist-tl-content > strong {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}
.hist-tl-content p {
  font-size: .83rem;
  color: var(--gray);
  line-height: 1.65;
}

/* ── Quote block ── */
.hist-quote {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 16px;
  padding: 24px 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hist-quote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 8rem;
  opacity: .08;
  font-family: Georgia, serif;
  line-height: 1;
}
.hist-quote p {
  font-size: .93rem;
  font-style: italic;
  line-height: 1.7;
  position: relative;
  z-index: 1;
  color: #fff;
}
.hist-quote cite {
  display: block;
  margin-top: 10px;
  font-size: .78rem;
  opacity: .75;
  font-style: normal;
  position: relative;
  z-index: 1;
  color: #fff;
}
.hist-quote.gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}
.hist-quote.gold p,
.hist-quote.gold cite { color: var(--dark); }

/* ── Photos ── */
.hist-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #001a5e, #0047CC);
}
.hist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hist-photo.portrait {
  aspect-ratio: 3/4;
  max-width: 380px;
  margin: 0 auto;
}
.hist-photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,.58);
  padding: 10px 16px;
  font-size: .75rem;
  color: rgba(255,255,255,.87);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ── Chapter divider ── */
.hist-divider {
  text-align: center;
  padding: 60px 24px 48px;
  position: relative;
}
.hist-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,71,204,.2), transparent);
}
.hist-divider-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(245,184,0,.3);
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  color: var(--gold);
}

/* ── Capixaba section ── */
.hist-capixaba {
  padding: 80px 0;
  background: #fff;
}
.hist-cap-card {
  background: linear-gradient(135deg, var(--blue-bg), #dce9ff);
  border-radius: 24px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hist-cap-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(0,71,204,.1);
  color: var(--blue);
  margin-bottom: 14px;
}
.hist-cap-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 14px;
}
.hist-cap-title span { color: var(--blue); }
.hist-cap-text {
  font-size: .92rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 0;
}
.hist-cap-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}
.hist-cap-stat {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 14px rgba(0,71,204,.08);
  text-align: center;
}
.hist-cap-stat strong {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--blue);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.hist-cap-stat span {
  font-size: .74rem;
  color: var(--gray);
}
.hist-cap-photo {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 16/11;
  background: linear-gradient(135deg, #001a5e, #0047CC);
}
.hist-cap-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Footer social override (herda do style.css) ── */
.social-ig { background: #E1306C; color: #fff; }
.social-yt { background: #FF0000; color: #fff; }
.social-wa { background: #25d366; color: #fff; }

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 900px) {
  .hist-chapter-inner,
  .hist-chapter-inner.reverse,
  .hist-cap-card {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 36px;
  }
  .hist-chapter-inner.reverse > * { direction: ltr; }
  .hist-photo.portrait { max-width: 100%; aspect-ratio: 4/3; }
  .hist-cap-card { padding: 32px 24px; }
}
@media (max-width: 600px) {
  .hist-milestones-grid { gap: 0; }
  .hist-milestone { min-width: 100px; padding: 14px 16px; }
  .hist-milestone-year { font-size: 1.5rem; }
  .hist-cap-stats { grid-template-columns: 1fr 1fr; }
}
