/* timeline-section.css */



/* Esconde o carrossel mobile no desktop */
.timeline-mobile {
  display: none;
}

/* 1) Sessão geral */
.timeline-section {
  background: radial-gradient(ellipse at center, #1AA53F 0%, #028036 100%);
  padding: 100px 0;
}

/* 2) Wrapper contendo linha e setas */
.timeline-wrapper {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 3) Linha fixa atravessando todo o wrapper */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.5);
  transform: translateY(-50%);
  z-index: 1;
}

/* 4) Botões de navegação */
.timeline-wrapper .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9);
  color: #028036;
  font-size: 1.5rem;
  line-height: 40px;
  text-align: center;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.timeline-wrapper .nav.prev { left: 0; }
.timeline-wrapper .nav.next { right: 0; }

/* 5) Inner: largura de 1080px e overflow escondido */
.timeline-inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
}

/* 6) Remove qualquer pseudo-linha no inner */
.timeline-inner::before {
  display: none;
}

/* 7) Track: flex de 3 itens */
.timeline-inner .timeline-track {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* 8) Itens: 1/3 de largura cada */
.timeline-inner .timeline-item {
  flex: 0 0 calc((100% - 2*32px) / 3);
  margin: 0;            /* zera margens antigas */
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* 9) Destaque do ativo */
.timeline-inner .timeline-item.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
}

/* 10) Zig-zag via margin-top */
/* Ímpares (1,3,5) — blocos “subidos” menos que os pares */
.timeline-inner .timeline-item:nth-child(odd) {
  margin-top: 30px;    /* ajuste este valor até ficar justo acima da linha */
}
/* Pares (2,4,6) — blocos “descidos” */
.timeline-inner .timeline-item:nth-child(even) {
  margin-top: 330px;    /* ajuste até ficar logo abaixo da linha */
}

/* 11) Tipografia interna */
.timeline-inner .timeline-item .year {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.timeline-inner .timeline-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.timeline-inner .timeline-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  margin: 0;
  max-width: 360px;
}

.timeline-wrapper .nav {
  background: #ffffff !important;   /* cor sólida, sem transparência */
  opacity: 1 !important;         /* garante 100% de opacidade */
}



/* ---------------------------------------------------------- */
/*                           MOBILE                           */
/* ---------------------------------------------------------- */
@media (max-width: 768px) {

  /* Esconde timeline desktop */
  .timeline-section {
    display: none !important;
  }

  /* Container principal da Timeline Mobile */
  .timeline-mobile {
    display: block;
    background: radial-gradient(ellipse at center, #1AA53F 0%, #028036 100%);
    position: relative;
    overflow: hidden;
    padding: 0; /* Apenas topo/baixo controlados pelos internos */
  }

  /* Topo da Timeline Mobile (Texto + Título) */
  .timeline-mobile-topo {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
    padding: 48px 16px 32px 16px;
    text-align: center;
    position: relative;
  }

  .timeline-mobile-topo h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    margin: 0 0 24px 0;
  }

  .timeline-mobile-topo p {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    text-align: justify;
    line-height: 1.8;
    margin: 0 auto 24px auto;
    max-width: 680px;
    padding: 0;
  }

  /* Inner da Timeline Mobile (Carrossel) */
  .timeline-mobile-inner {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
    padding: 48px 16px 40px 16px; /* padding-top e bottom simétricos */
    overflow: hidden;
    position: relative;
  }

  .timeline-mobile-track {
    display: flex;
    transition: transform 0.4s ease;
  }

  .timeline-mobile-item {
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    padding: 24px;
    box-sizing: border-box;
  }

  .timeline-mobile-item .year {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
  }

  .timeline-mobile-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
  }

  .timeline-mobile-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin: 0 auto;
    max-width: 340px;
  }

  /* Setas do Carrossel */
  .mobile-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: none;
    color: #fff;
    font-size: 40px;
    line-height: 36px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .mobile-nav.prev {
    left: 16px;
  }

  .mobile-nav.next {
    right: 16px;
  }

  /* Ajuste do banner da Empresa no mobile */
  .empresa-banner,
  .empresa-banner .banner-inner,
  .empresa-banner .banner-slide,
  .empresa-banner .banner-slide img,
  .empresa-banner .banner-slide video {
    height: 50vh !important;
    min-height: 50vh !important;
    max-height: 50vh !important;
    width: 100% !important;
    object-fit: cover !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 768px) {
  
  /* BOTÕES */
  .timeline-mobile-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: #fff;
    width: 36px;
    height: 36px;
    font-size: 42px;
    line-height: 46px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  
  .timeline-mobile-prev {
    left: 0px;
  }
  
  .timeline-mobile-next {
    right: 0px;
  }

  
  .timeline-divider {
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 24px auto 32px auto;
  }
}

@media (max-width: 768px) {
  .timeline-mobile-inner {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 auto;
    padding: 32px 16px 40px 16px; /* padding-top reduzido */
    overflow: hidden;
    position: relative;
  }
}

/* ---------------------------------------------------------- */
/* Ajuste Final Mobile Timeline - Padding + Linha */
/* ---------------------------------------------------------- */
@media (max-width: 768px) {

  .timeline-divider {
    width: 100% !important;
    height: 1px !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    margin-top: 48px !important; /* Mais respiro acima */
    margin-bottom: 0 !important; /* Remove o buraco abaixo */
  }

  .timeline-mobile-inner {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0px 16px 24px 16px !important; /* Top menor, igualado */
    overflow: hidden !important;
    position: relative !important;
  }
}
