.recifes-timeline {
  position: relative;
  max-width: 1100px;
  margin: 60px auto;
  padding: 20px 0;
}

/* Linha central */
.recifes-timeline::after {
  content: '';
  position: absolute;
  width: 6px; /* mais grossa */
  background: #bbb;
  top: 60px; /* começa no 1º ícone */
  bottom: 60px; /* termina no último ícone */
  left: 50%;
  margin-left: -3px;
  z-index: 0; /* atrás das bolinhas */
}

/* Itens */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease-in-out;
  z-index: 1; /* na frente da linha */
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Alternância */
.timeline-item.top { left: 0; text-align: right; }
.timeline-item.bottom { left: 50%; text-align: left; }

/* Bolinhas com ícones */
.timeline-item .circle {
  width: 90px;
  height: 90px;
  background: #f48024;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 20px;
  right: -45px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 2; /* acima da linha cinza */
}

.timeline-item.bottom .circle {
  left: -45px;
  right: auto;
}

.timeline-item .circle i {
  font-size: 38px;
  color: #fff;
}

/* Conteúdo */
.timeline-item .content {
  background: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: inline-block;
  max-width: 380px;
  margin: 5px; /* afastamento da bolinha */
  transition: all 0.3s ease;
}

.timeline-item .content:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Ano */
.timeline-item .year {
  font-size: 20px;
  font-weight: bold;
  color: #1a2a40;
  display: block;
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 15px;
  color: #444;
  margin: 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .recifes-timeline::after { left: 45px; }
  .timeline-item {
    width: 100%;
    padding-left: 90px;
    padding-right: 20px;
  }
  .timeline-item.top, .timeline-item.bottom { text-align: left; left: 0; }
  .timeline-item .circle { left: 0; margin-left: 0; }
}
