/* =====================================================
   CTA FINAL — NOSSA HISTÓRIA (ISOLADO)
   Só afecta body.page-nossa-historia
===================================================== */

body.page-nossa-historia .qs-cta{
  padding: 72px 16px;
  background: #0b0f14;
  color: #fff;
}

body.page-nossa-historia .qs-cta .qs-container{
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

body.page-nossa-historia .qs-cta h2{
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

body.page-nossa-historia .qs-cta p{
  margin: 0 0 22px;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

body.page-nossa-historia .qs-cta .qs-btn{
  background: #FFD200;
  color: #111;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

body.page-nossa-historia .qs-cta .qs-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}

/* =====================================================
   FIX CORTE FEIO — HEADER TIMELINE (premium)
   Só afecta body.page-nossa-historia
===================================================== */

/* 1) garante que não há "linha" do tema a cortar o bloco */
body.page-nossa-historia .bs-timeline .container{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* 2) fundo da secção mais limpo + fade no fundo para não "cortar" */
body.page-nossa-historia .bs-timeline{
  background: #ffffff !important; /* fica igual à página (remove aquele bloco cinza) */
  position: relative;
  padding: 54px 0 64px !important;
}

/* fade no fundo (remove o corte seco) */
body.page-nossa-historia .bs-timeline::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-1px;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #ffffff 70%);
  pointer-events:none;
}

/* 3) header com espaçamento e tipografia mais "banco" */
body.page-nossa-historia .bs-tl-head{
  max-width: 920px !important;
  margin: 0 auto 24px !important;
  padding: 0 !important;
}

body.page-nossa-historia .bs-tl-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(15,28,46,.72) !important;
}

body.page-nossa-historia .bs-tl-kicker::after{
  content:"";
  width: 56px;
  height: 3px;
  border-radius: 99px;
  background: #FFD200;
  opacity: 1;
  transform: translateY(1px);
}

body.page-nossa-historia .bs-tl-head h2{
  margin: 12px 0 10px !important;
  font-size: clamp(34px, 4vw, 52px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.04em !important;
  color: #0b1220 !important;
  font-weight: 900 !important;
}

body.page-nossa-historia .bs-tl-head p{
  margin: 0 !important;
  max-width: 860px;
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: rgba(36,48,65,.72) !important;
}

/* 4) remove a linha dura (se estiver a causar o “corte”) */
body.page-nossa-historia .bs-tl-line{
  height: 0 !important;
  margin: 0 !important;
  background: none !important;
}

/* 5) dá um “respiro” antes de começar a timeline */
body.page-nossa-historia .bs-tl-wrap{
  margin-top: 28px !important;
}

/* mobile */
@media (max-width: 640px){
  body.page-nossa-historia .bs-tl-head h2{
    font-size: 40px !important;
  }
  body.page-nossa-historia .bs-tl-head p{
    font-size: 16.5px !important;
  }
}

/* =====================================================
   FIX: Header Timeline deslocado para a direita
   Só afecta body.page-nossa-historia
===================================================== */

/* 1) força o container desta secção a usar a mesma largura/alinhamento do site */
body.page-nossa-historia .bs-timeline .container{
  width: min(1180px, calc(100% - 48px)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2) garante que o header e a timeline não têm "offset" interno */
body.page-nossa-historia .bs-tl-head,
body.page-nossa-historia .bs-tl-wrap,
body.page-nossa-historia .bs-tl-more-wrap{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* 3) no mobile dá um padding igual ao resto do site */
@media (max-width: 768px){
  body.page-nossa-historia .bs-timeline .container{
    width: calc(100% - 32px) !important;
  }
}

/* =====================================================
   TIMELINE — Ajuste Premium Corporativo
   Só afecta body.page-nossa-historia
===================================================== */

body.page-nossa-historia .bs-timeline{
  position: relative;
  padding: 60px 0 70px;
  background: linear-gradient(
      180deg,
      rgba(255,210,0,.06) 0%,
      rgba(255,210,0,.03) 40%,
      #ffffff 100%
  );
}

/* Barra lateral corporativa subtil */
body.page-nossa-historia .bs-timeline::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:6px;
  background: linear-gradient(180deg,#FFD200,#f4c400);
}

/* ================= HEADER ================= */

body.page-nossa-historia .bs-tl-head{
  max-width: 880px;
  margin: 0 auto 30px;
  animation: tlFadeUp .8s cubic-bezier(.2,.75,.2,1);
}

/* Kicker */
body.page-nossa-historia .bs-tl-kicker{
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(15,28,46,.65);
}

body.page-nossa-historia .bs-tl-kicker::after{
  width: 48px;
  height: 3px;
  background: #FFD200;
}

/* 🔹 TÍTULO MENOR E MAIS ELEGANTE */
body.page-nossa-historia .bs-tl-head h2{
  font-size: clamp(30px, 3vw, 40px) !important;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
  color: #0b1220;
}

/* Subtexto */
body.page-nossa-historia .bs-tl-head p{
  font-size: 17px;
  line-height: 1.7;
  max-width: 760px;
  color: rgba(36,48,65,.75);
}

/* Remove linha antiga se existir */
body.page-nossa-historia .bs-tl-line{
  display:none;
}

/* ================= ANIMAÇÃO ================= */

@keyframes tlFadeUp{
  from{
    opacity:0;
    transform: translateY(20px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVO ================= */

@media (max-width:768px){
  body.page-nossa-historia .bs-tl-head h2{
    font-size: 28px !important;
  }
  body.page-nossa-historia .bs-tl-head p{
    font-size: 16px;
  }
}
/* =====================================================
   TIMELINE — animação ao expandir/fechar
===================================================== */
body.page-nossa-historia .bs-tl-item{
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.75,.2,1);
  will-change: opacity, transform;
}
body.page-nossa-historia .bs-tl-item.is-hidden{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

/* =====================================================
   TIMELINE — QUADRO FECHADO AMARELO CORPORATIVO
   Só afecta body.page-nossa-historia
===================================================== */

body.page-nossa-historia .bs-timeline{
  padding: 32px 0 36px !important;
  background: #f7f9fc !important;
}

/* QUADRO FECHADO */
body.page-nossa-historia .bs-timeline .container{
  position: relative;
  background: #ffffff !important;

  /* moldura institucional */
  border: 2px solid #FFD200 !important;
  border-radius: 18px !important;

  /* sombra premium */
  box-shadow:
    0 20px 60px rgba(15,28,46,.08),
    0 6px 20px rgba(15,28,46,.04);

  padding: 26px 28px 28px !important;
}

/* detalhe glow suave no canto superior */
body.page-nossa-historia .bs-timeline .container::after{
  content:"";
  position:absolute;
  top:-2px;
  left:-2px;
  width:120px;
  height:120px;
  border-top-left-radius:18px;
  background: radial-gradient(circle at top left,
      rgba(255,210,0,.25),
      transparent 70%);
  pointer-events:none;
}

/* header compacto */
body.page-nossa-historia .bs-tl-head{
  margin-bottom: 14px !important;
}

/* título mais equilibrado */
body.page-nossa-historia .bs-tl-head h2{
  font-size: clamp(24px, 2.2vw, 30px) !important;
  margin: 8px 0 8px !important;
  font-weight: 900 !important;
}

/* texto ligeiramente menor */
body.page-nossa-historia .bs-tl-head p{
  font-size: 14.5px !important;
  line-height: 1.6 !important;
}

/* timeline mais próxima */
body.page-nossa-historia .bs-tl-wrap{
  margin-top: 12px !important;
  padding-left: 46px !important;
}

/* botão alinhado ao centro dentro do quadro */
body.page-nossa-historia .bs-tl-more-wrap{
  margin-top: 12px !important;
  text-align: center;
  padding-left: 0 !important;
}

/* mobile */
@media (max-width:768px){
  body.page-nossa-historia .bs-timeline .container{
    padding: 20px 18px 22px !important;
  }
}

body.page-nossa-historia .bs-tl-item{
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.75,.2,1);
  will-change: opacity, transform;
}
body.page-nossa-historia .bs-tl-item.is-hidden{
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}
