/* timeline verticale */
.main-timeline {
  position: relative;
}

/* timeline verticale */
.main-timeline::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: rgba(186, 228, 239, 1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container intorno al contenuto */
.timeline {
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* cerchi sulla timeline */
.timeline::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  right: -13px;
  background-color: rgba(186, 228, 239, 1);
  border: 5px solid rgba(107, 190, 69, 1);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

/* container a sinistra */
.sinistra {
  padding: 0px 40px 20px 0px;
  left: 0;
}

/* container a sinistra */
.destra {
  padding: 0px 0px 20px 40px;
  left: 50%;
}

/* frecce a destra del container (puntando a destra) */
.sinistra::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  right: 30px;
  border: medium solid white;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent rgba(186, 228, 239, 1);
}

/* frecce a sinistra container (puntando a sinistra) */
.destra::before {
  content: " ";
  position: absolute;
  top: 18px;
  z-index: 1;
  left: 30px;
  border: medium solid white;
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(186, 228, 239, 1) transparent transparent;
}

/* fissare i cerchi sulla linea a destra */
.destra::after {
  left: -12px;
}

/* Media queries - timeline responsiva per schermi inferiori a 600px */
@media screen and (max-width: 600px) {
  /* timeline a sinistra */
  .main-timeline::after {
    left: 31px;
  }

  /* container full-width */
  .timeline {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  /* tutte le frecce rivolte a sinistra (media-querie) */
  .timeline::before {
    left: 60px;
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent rgba(186, 228, 239, 1) transparent transparent;
  }

  /* tutti i cerchi nello stesso punto */
  .sinistra::after,
  .destra::after {
    left: 18px;
  }

  .sinistra::before {
    right: auto;
  }

  /* container di destra come quelli di sinistra */
  .destra {
    left: 0%;
  }
}