/* ==========================================================================
   NOSSA HISTÓRIA - ESTILOS DEDICADOS
   Decolar Consórcios — Composição Editorial Corporativa & Institucional
   ========================================================================== */

:root {
  --historia-bg-dark: #0e1117;
  --historia-bg-dark-surface: #151922;
  --historia-border-light: #e2e8f0;
  --historia-border-subtle: #eaecf0;
  --historia-text-title: #111827;
  --historia-text-body: #475467;
  --historia-text-muted: #64748b;
  --historia-accent-red: #e2231a;
  --historia-accent-orange: #ff7a1a;
  --historia-bg-light: #f8fafc;
}

/* Base da página de história */
.story-page {
  background-color: var(--color-white, #ffffff);
  color: var(--historia-text-body);
  overflow-x: hidden;
  position: relative;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Indicador de progresso de leitura sutil no topo */
.story-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--historia-accent-red) 0%, var(--historia-accent-orange) 100%);
  z-index: 999;
  transition: width 0.1s linear;
}

/* Estrutura base de seções */
.story-section {
  position: relative;
  width: 100%;
  padding-block: clamp(56px, 8vh, 88px);
  box-sizing: border-box;
}

.story-section .container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 3.5vw, 32px);
  box-sizing: border-box;
}

/* Eyebrow Editorial Corporativo */
.editorial-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--historia-accent-red);
  margin-bottom: 14px;
}

/* Alinhado à esquerda: sem traços laterais (padrão sóbrio e limpo) */
.editorial-eyebrow::before,
.editorial-eyebrow::after {
  content: none;
}

/* Centralizado: dois traços discretos e simétricos, um de cada lado */
.editorial-eyebrow--center {
  margin-inline: auto;
  gap: 12px;
}

.editorial-eyebrow--center::before,
.editorial-eyebrow--center::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.75;
}

/* Destaques tipográficos pontuais institucionais */
.editorial-highlight {
  background: linear-gradient(135deg, var(--historia-accent-red) 0%, var(--historia-accent-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  font-weight: 800;
}

.closing-highlight {
  background: linear-gradient(135deg, #ff7a1a 0%, #ff9e54 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  font-weight: 800;
}

/* Títulos e Tipografia Editorial */
.editorial-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(1.95rem, 2.75vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--historia-text-title);
  margin: 0 0 18px 0;
}

.editorial-lead {
  font-size: clamp(1.02rem, 0.25vw + 0.96rem, 1.14rem);
  line-height: 1.75;
  color: var(--historia-text-body);
  margin: 0 0 28px 0;
  max-width: 580px;
  text-wrap: pretty;
}

/* Cabeçalho de Seções Centradas */
.section-header {
  max-width: 720px;
  margin: 0 auto clamp(26px, 3.5vh, 38px);
  text-align: center;
}

.section-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(2rem, 2.8vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--historia-text-title);
  margin: 0 0 10px 0;
  text-wrap: balance;
}

.section-subtitle {
  font-size: clamp(0.98rem, 0.2vw + 0.94rem, 1.08rem);
  line-height: 1.65;
  color: var(--historia-text-muted);
  max-width: 620px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* Reveal Items com Fade & Slide Up sutil */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   01 — ABERTURA INSTITUCIONAL & GRID EDITORIAL
   ========================================================================== */
.section-about-intro {
  background: #ffffff;
  border-bottom: 1px solid var(--historia-border-subtle);
}

.editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(36px, 5vw, 68px);
}

.editorial-grid--intro {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 4.5vw, 56px);
}

.editorial-grid--reversed {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 4vw, 52px);
  align-items: center;
}

.editorial-col-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.editorial-col-media {
  position: relative;
  width: 100%;
}

/* ==========================================================================
   SISTEMA DE MOLDURAS PARA FOTOGRAFIAS INSTITUCIONAIS REAIS
   ========================================================================== */
.institutional-photo-frame {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background-color: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.08),
              0 0 0 1px rgba(15, 23, 42, 0.02);
  display: block;
  box-sizing: border-box;
  margin: 0;
}

/* Moldura da Fachada (proporção 4:3 para enquadramento mais aberto, valorizando o prédio) */
#foto-institucional-abertura {
  aspect-ratio: 4 / 3;
}

/* Moldura da Equipe (proporção 16:11 para presença ampliada e equilíbrio vertical com o texto) */
#foto-institucional-equipe {
  aspect-ratio: 16 / 11;
}

/* Tratamento visual das fotografias reais */
.institutional-photo-frame .institutional-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Enquadramento da Fachada: aberto, mostrando letreiro superior 3D e entrada sem cortes */
.institutional-img--fachada {
  object-position: center 18%;
}

.institutional-photo-frame:hover .institutional-img--fachada {
  transform: scale(1.02);
}

/* Enquadramento da Equipe: zoom suave mantendo pessoas e logo Decolar em destaque */
.institutional-img--equipe {
  object-position: center center;
  transform: scale(1.15);
  transform-origin: 47% 48%;
}

.institutional-photo-frame:hover .institutional-img--equipe {
  transform: scale(1.17);
}

/* ==========================================================================
   02 — TRAJETÓRIA (CARROSSEL 3D COVERFLOW REFINADO & COMPACTO)
   ========================================================================== */
.section-timeline {
  background: #F4F5F7;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding-block: clamp(48px, 6.5vh, 72px);
}

:root {
  --cf-spacing: clamp(260px, 24vw, 340px);
  --cf-card-w: clamp(275px, 27vw, 330px);
  --cf-card-h: clamp(345px, 39vh, 385px);
  --cf-stage-h: clamp(405px, 46vh, 450px);
  --cf-rot-y: 16deg;
  --cf-side-scale: 0.88;
  --cf-center-scale: 1;
}

.coverflow-3d-wrap {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  overflow: hidden;
  padding-block: 4px 12px;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: var(--cf-stage-h);
  perspective: 1100px;
  perspective-origin: 50% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
  outline: none;
}

.coverflow-stage:focus-visible {
  outline: 2px solid rgba(226, 35, 26, 0.4);
  outline-offset: 4px;
  border-radius: 14px;
}

.coverflow-stage.is-dragging {
  cursor: grabbing;
}

.coverflow-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.coverflow-card {
  position: absolute;
  width: var(--cf-card-w);
  min-height: var(--cf-card-h);
  background: #ffffff;
  border: 1px solid var(--historia-border-light);
  border-radius: 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  filter: none !important;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 700ms ease,
              border-color 700ms ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

/* Filete sutil no topo */
.coverflow-card-accent {
  width: 100%;
  height: 3px;
  background: var(--historia-border-light);
  transition: background 500ms ease;
  flex-shrink: 0;
}

/* Slot Center (0): Destaque nítido, escala nativa 1:1 (sem blur de interpolação) */
.coverflow-card.slot-center {
  transform: translate3d(0, 0, 32px) rotateY(0deg) scale(var(--cf-center-scale));
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
  box-shadow:
    0 20px 42px -10px rgba(15, 23, 42, 0.14),
    0 0 0 1px rgba(226, 35, 26, 0.28);
  border-color: #cbd5e1;
  cursor: default;
}

.coverflow-card.slot-center .coverflow-card-accent,
.coverflow-card-accent--highlight {
  background: linear-gradient(90deg, var(--historia-accent-red) 0%, var(--historia-accent-orange) 100%);
  height: 3.5px;
}

/* Slot Right (+1): Lateral direito, totalmente opaco e nítido em perspectiva */
.coverflow-card.slot-right {
  transform: translate3d(calc(var(--cf-spacing) * 1), 0, -45px) rotateY(calc(var(--cf-rot-y) * -1)) scale(var(--cf-side-scale));
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  border-color: #d1d5db;
}

.coverflow-card.slot-right:hover {
  border-color: #cbd5e1;
}

/* Slot Left (-1): Lateral esquerdo, totalmente opaco e nítido em perspectiva */
.coverflow-card.slot-left {
  transform: translate3d(calc(var(--cf-spacing) * -1), 0, -45px) rotateY(var(--cf-rot-y)) scale(var(--cf-side-scale));
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
  border-color: #d1d5db;
}

.coverflow-card.slot-left:hover {
  border-color: #cbd5e1;
}

/* Slot Back: Oculto no fundo para transição limpa */
.coverflow-card.slot-back {
  transform: translate3d(0, 0, -200px) rotateY(0deg) scale(0.75);
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
}

/* Container de mídia fotográfica do card */
.coverflow-card-media {
  position: relative;
  width: 100%;
  height: clamp(160px, 19vh, 185px);
  overflow: hidden;
  background-color: #0f172a;
  flex-shrink: 0;
}

.coverflow-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: opacity 500ms ease;
}

/* Enquadramentos personalizados para cada marco da trajetória */
/* 1988: Claudemir ao computador vintage — foco no rosto e composição */
.coverflow-card-img--1988 {
  object-position: 48% 18%;
}

/* 1990: Claudemir central de terno em reunião — preserva topo da cabeça e interlocutores */
.coverflow-card-img--1990 {
  object-position: 52% 8%;
}

/* 1990 a 2006: Claudemir à esquerda orientando equipe corporativa */
.coverflow-card-img--1990-2006 {
  object-position: 24% 36%;
}

/* 2007: Retrato executivo de Claudemir em sua mesa de diretoria */
.coverflow-card-img--2007 {
  object-position: 72% 20%;
}

/* Etiqueta "Foto atual · 2026": esclarece que o retrato do fundador é
   recente, não uma fotografia de época de 2007. Ancorada no canto
   inferior esquerdo da mídia (position: relative), sem interferir no
   enquadramento da foto. */
.coverflow-card-photo-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

/* Corpo interno do card */
.coverflow-card-body {
  padding: clamp(14px, 1.8vw, 18px) clamp(16px, 2vw, 20px) clamp(16px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
}

.coverflow-card-year {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(1.6rem, 2.1vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #374151;
  line-height: 1;
  margin-bottom: 6px;
}

.coverflow-card.slot-center .coverflow-card-year {
  color: var(--historia-accent-red);
}

.coverflow-card-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.015em;
  line-height: 1.32;
  margin: 0 0 6px 0;
}

.coverflow-card-desc {
  font-size: 0.81rem;
  line-height: 1.52;
  color: #475467;
  margin: 0;
}

/* Nota editorial externa e discreta */
.timeline-disclaimer {
  text-align: center;
  font-size: 0.76rem;
  color: #94a3b8;
  margin: 16px auto 0;
  max-width: 600px;
  line-height: 1.4;
  letter-spacing: 0.015em;
}

/* Controles do Carrossel */
.coverflow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-inline: 8px;
}

.coverflow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--historia-border-light);
  background: #ffffff;
  color: var(--historia-text-body);
  cursor: pointer;
  transition: all 200ms ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.coverflow-btn:hover {
  border-color: var(--historia-accent-orange);
  color: var(--historia-accent-orange);
  background: rgba(255, 122, 26, 0.05);
  transform: scale(1.05);
}

.coverflow-btn:active {
  transform: scale(0.95);
}

.coverflow-pills {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #e5e7eb;
  padding: 3px 4px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
}

.coverflow-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--historia-text-muted);
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 200ms ease;
  white-space: nowrap;
}

.coverflow-pill-btn:hover {
  color: var(--historia-text-title);
}

.coverflow-pill-btn.is-active {
  background: linear-gradient(135deg, var(--historia-accent-red) 0%, var(--historia-accent-orange) 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(226, 35, 26, 0.25);
}

/* ==========================================================================
   03 — A DECOLAR CONSÓRCIOS HOJE & LINHA DE INFORMAÇÕES
   ========================================================================== */
.section-today {
  background: #ffffff;
  border-bottom: 1px solid var(--historia-border-subtle);
}

/* Linha de Informações Institucionais (Sem cards pesados) */
.institutional-facts-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 2.5vw, 28px);
  padding-top: 24px;
  border-top: 1px solid var(--historia-border-subtle);
  width: 100%;
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.fact-tag {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--historia-text-title);
  line-height: 1.2;
}

.fact-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--historia-text-muted);
}

.fact-divider {
  width: 1px;
  height: 38px;
  background: var(--historia-border-light);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   04 — NOSSO COMPROMISSO (3 PILARES COM DIVISÓRIAS FINAS)
   ========================================================================== */
.section-commitment {
  background: #F7F4F1;
  border-top: 1px solid #ede7e1;
  border-bottom: 1px solid #ede7e1;
}

.pillars-editorial-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: clamp(16px, 2.5vw, 36px);
  margin-top: clamp(24px, 3.5vh, 36px);
}

.pillar-editorial-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 0;
}

.pillar-number {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--historia-accent-red);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.pillar-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--historia-text-title);
  margin: 0 0 8px 0;
}

.pillar-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--historia-text-body);
  margin: 0;
  text-wrap: pretty;
}

.pillar-editorial-divider {
  width: 1px;
  background: #e2dbd4;
  height: 100%;
  min-height: 80px;
}

/* ==========================================================================
   05 — ENCERRAMENTO INSTITUCIONAL (PRETO/GRAFITE COM AÇÕES)
   ========================================================================== */
.section-closing {
  background-color: var(--historia-bg-dark);
  color: #ffffff;
  padding-block: clamp(64px, 9vh, 96px);
  text-align: center;
}

.closing-editorial-content {
  max-width: 760px;
  margin: 0 auto;
}

.closing-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-size: clamp(2.15rem, 3.3vw, 2.9rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.032em;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-wrap: balance;
}

.closing-subtitle {
  font-size: clamp(1.02rem, 0.25vw + 0.96rem, 1.14rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 36px auto;
  max-width: 580px;
  text-wrap: pretty;
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.closing-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

.closing-actions .btn-primary {
  background: linear-gradient(135deg, var(--historia-accent-red) 0%, var(--historia-accent-orange) 100%);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(226, 35, 26, 0.35);
}

.closing-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(226, 35, 26, 0.45);
}

.closing-actions .btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.closing-actions .btn-secondary:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVIDADE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .editorial-grid,
  .editorial-grid--intro,
  .editorial-grid--reversed {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .editorial-grid--reversed .editorial-col-media {
    order: -1;
  }

  .editorial-col-text {
    align-items: center;
    text-align: center;
  }

  .editorial-lead {
    margin-inline: auto;
  }

  .institutional-facts-row {
    justify-content: center;
  }

  .pillars-editorial-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .pillar-editorial-item {
    align-items: center;
  }

  .pillar-editorial-divider {
    width: 60px;
    height: 1px;
    min-height: 1px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .story-section {
    padding-block: clamp(40px, 6vh, 60px);
  }

  .institutional-facts-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .fact-divider {
    width: 48px;
    height: 1px;
  }

  :root {
    --cf-spacing: clamp(110px, 22vw, 185px);
    --cf-card-w: clamp(260px, 44vw, 310px);
    --cf-card-h: clamp(340px, 44vh, 380px);
    --cf-stage-h: clamp(395px, 48vh, 440px);
    --cf-rot-y: 12deg;
    --cf-side-scale: 0.85;
    --cf-center-scale: 1;
  }

  .coverflow-card-media {
    height: clamp(150px, 20vh, 175px);
  }

  .coverflow-card.slot-right,
  .coverflow-card.slot-left {
    opacity: 1;
  }

  .section-timeline {
    padding-bottom: clamp(60px, 8.5vh, 84px);
  }

  .coverflow-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  .coverflow-pills {
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 4px;
  }
}

@media (max-width: 600px) {
  :root {
    --cf-spacing: clamp(34px, 11vw, 56px);
    --cf-card-w: clamp(224px, 70vw, 286px);
    --cf-card-h: clamp(340px, 44vh, 380px);
    --cf-stage-h: clamp(395px, 48vh, 440px);
    --cf-rot-y: 8deg;
    --cf-side-scale: 0.82;
    --cf-center-scale: 1;
  }

  .editorial-eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .editorial-title {
    font-size: clamp(1.75rem, 6.2vw, 2.15rem);
  }

  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 1.95rem);
  }

  .closing-title {
    font-size: clamp(1.75rem, 5.8vw, 2.2rem);
  }

  .closing-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }

  .closing-actions .btn {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
  }

  .coverflow-pill-btn {
    padding: 4px 9px;
    font-size: 0.74rem;
  }
}

/* ==========================================================================
   MOBILE COMPACT (<=767px) — NOSSA HISTÓRIA
   Desktop e tablet (>=768px) permanecem exatamente como estão nos blocos
   acima; este bloco só vale no mobile e, por vir depois no arquivo,
   sobrescreve — só nesta faixa — o que for necessário para uma narrativa
   mais compacta e fluida, sem remover texto nem fotografias.
   ========================================================================== */
@media (max-width: 767px) {

  /* 1) Abertura: menos vazio abaixo do header sticky; fotografia mais
     próxima da introdução; parágrafo alinhado à esquerda (um texto
     longo centralizado quebra a leitura em linhas irregulares). */
  .section-about-intro {
    padding-top: clamp(20px, 5.5vw, 28px);
  }

  .editorial-grid--intro {
    gap: clamp(18px, 4.5vw, 26px);
  }

  .section-about-intro .editorial-col-text {
    align-items: flex-start;
    text-align: left;
  }

  .section-about-intro .editorial-lead {
    margin-inline: 0;
  }

  /* 2) Linha do tempo: cartão central maior (mais presença fotográfica),
     cabeçalho mais colado ao carrossel, controles com áreas de toque
     confortáveis. Estrutura e lógica de navegação (JS) intocadas — só
     dimensões via variáveis CSS existentes. */
  .section-timeline .section-header {
    margin-bottom: clamp(16px, 3.4vh, 22px);
  }

  :root {
    --cf-spacing: clamp(26px, 9vw, 46px);
    --cf-card-w: clamp(250px, 86vw, 330px);
    --cf-card-h: clamp(350px, 48vh, 390px);
    --cf-stage-h: clamp(415px, 50vh, 450px);
    --cf-rot-y: 6deg;
    --cf-side-scale: 0.86;
    --cf-center-scale: 1;
  }

  .coverflow-3d-wrap {
    padding-block: 2px 8px;
  }

  .coverflow-card-media {
    height: clamp(165px, 23vh, 195px);
  }

  .coverflow-controls {
    gap: 12px;
  }

  .coverflow-pills {
    margin-bottom: 2px;
  }

  .coverflow-pill-btn {
    padding: 7px 11px;
    min-height: 32px;
  }

  .coverflow-btn {
    width: 44px;
    height: 44px;
  }

  /* 3) A Decolar hoje: menos vazio entre foto, texto e marcos; marcos
     reorganizados numa lista editorial compacta (mesmo padrão de
     divisórias finas usado em outras seções do site), em vez da coluna
     centralizada com traços curtos. */
  .section-today {
    padding-block: clamp(36px, 6vh, 52px);
  }

  .editorial-grid--reversed {
    gap: clamp(22px, 5vw, 30px);
  }

  .institutional-facts-row {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0;
    padding-top: 0;
    border-top: none;
    margin-top: clamp(18px, 4vw, 24px);
  }

  .fact-item {
    width: 100%;
    gap: 4px;
    padding-block: clamp(14px, 2vw, 18px);
    border-top: 1px solid var(--historia-border-subtle);
  }

  .institutional-facts-row .fact-item:first-child {
    padding-top: 0;
    border-top: none;
  }

  .fact-divider {
    display: none;
  }

  /* 4) Compromisso em cada etapa: lista institucional compacta — mesma
     lógica de divisória fina no topo, alinhada à esquerda, números
     01/02/03 como identificação, sem cards nem ícones decorativos. */
  .section-commitment {
    padding-block: clamp(40px, 6vh, 56px);
  }

  .pillars-editorial-grid {
    gap: 0;
    margin-top: clamp(18px, 3.5vh, 26px);
  }

  .pillar-editorial-item {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    padding: clamp(16px, 3vw, 20px) 0;
    border-top: 1px solid #ede3da;
  }

  .pillars-editorial-grid > .pillar-editorial-item:first-child {
    padding-top: 0;
    border-top: none;
  }

  .pillar-editorial-divider {
    display: none;
  }

  /* 5) CTA final: visual já aprovado — só um pequeno ajuste de espaço
     vertical para acompanhar a composição mais compacta do restante
     da página. Título, descrição, botões e fundo escuro inalterados. */
  .section-closing {
    padding-block: clamp(48px, 8vh, 72px);
  }
}
