/* =============================== */
/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

/* =============================== */
/* CABEÇALHO */
header {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
  color: white;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* =============================== */
/* TIMELINE */
.timeline {
  position: relative;
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 2rem;
}

/* Linha central */
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #2563eb;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* =============================== */
/* CONTAINERS DE EVENTOS */
.container {
  padding: 1rem 2rem;
  position: relative;
  width: 50%;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

/* Lados alternados */
.left {
  left: 0;
  transform: translateX(-50px);
}

.right {
  left: 50%;
  transform: translateX(50px);
}

/* CAIXA DE CONTEÚDO */
.content {
  padding: 1rem 1.5rem;
  background-color: #fff;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* TÍTULOS DAS DATAS */
.content h2 {
  color: #2563eb;
  margin-bottom: 0.5rem;
}

/* BOLINHAS NA LINHA */
.container::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #2563eb;
  border: 4px solid #2563eb;
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.left::after {
  right: -14px;
}

.right::after {
  left: -14px;
}

/* =============================== */
/* CLASSE DE ANIMAÇÃO (JS) */
.container.show {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* DIFERENTES DELAYS (OPCIONAL PARA EFEITO CASCATA) */
.container:nth-child(odd) {
  transition-delay: 0.1s;
}
.container:nth-child(even) {
  transition-delay: 0.2s;
}

/* =============================== */
/* RESPONSIVO */
@media screen and (max-width: 768px) {
  .timeline::after {
    left: 20px;
  }

  .container {
    width: 100%;
    padding-left: 60px;
    padding-right: 25px;
  }

  .container.right {
    left: 0;
  }

  .container::after {
    left: 0;
  }

  .left, .right {
    transform: translateX(0);
  }
}

/* =============================== */
/* RODAPÉ */
footer {
  text-align: center;
  padding: 1rem;
  background: #2563eb;
  color: white;
  font-size: 0.9rem;
}
