/* =====================
   INTRODUÇÃO
===================== */
.introducao {
  margin: 50px 20%;
}

.introducao h1 {
  margin: 0 0 30px;
  text-align: center;
  font-size: 40px;
}

.introducao p {
  margin: 0 0 20px;
  font-size: 19px;
  text-align: center;
}

/* =====================
   TIMELINE CONTAINER
===================== */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 40px 0;
}

/* vertical line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 5px;
  background-color: #ff8800a4;
  transform: translateX(-50%);
}

/* =====================
   EVENT ROW (GRID)
===================== */
.event {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  margin-bottom: 80px;
}

/* dot */
.dot {
  width: 25px;
  height: 25px;
  background-color: #ff7e00;
  border-radius: 50%;
  justify-self: center;
  align-self: center;
  transform: scale(0.5);
  opacity: 0;
  transition: 0.4s ease;
}

.event.active .dot {
  opacity: 1;
  transform: scale(1);
}

/* dot animation */
@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.3);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* =====================
   LEFT / RIGHT SWITCH
===================== */
.event:nth-child(odd) .content {
  grid-column: 1;
}
.event:nth-child(odd) .imagem {
  grid-column: 3;
}

.event:nth-child(even) .content {
  grid-column: 3;
}
.event:nth-child(even) .imagem {
  grid-column: 1;
}

/* =====================
   CONTENT CARD
===================== */
.content {
  border: 2px solid #ff7e00;
  border-radius: 20px;
  padding: 20px 10px 10px 20px;
  background-color: transparent;
  transition: background-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.event.active .content {
  background-color: #ff7e00;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);

}

.content h3 {
  margin-bottom: 0.35em;
  /* font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; */
  font-size: 30px;
}

.content p {
  font-family: Roboto, sans-serif;
  font-size: 19px;
  color: black;
  margin: 0 0 2em;
  line-height: 1.6;
}

/* =====================
   IMAGE BLOCK
===================== */
.imagem img {
  width: 90%;
  height: auto;
}

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

  .introducao{ 
    margin: 70px 10%; 
  } 
  
  .introducao p{ 
    font-size: 19px; 
  }

  .event {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
    padding-left: 40px;
    margin-bottom: 60px;
  }

  .content{
    margin-bottom: 30px;
    order: 1;
  }

  .content p {
    margin:0;
  }

  .imagem {
    order: 2;
  }

  .imagem img {
    width: 100%;
    height: auto;
    display: block;
  }

  .timeline::before {
    left: 20px;
    transform: none;
  }

  .dot {
    align-self: flex-start;
    margin-left: -50px;
  }
}

@media (max-width: 1024px) {
  .timeline{
    padding: 40px 20px;
  }
}