.section-timeline {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  height: 100vh;
  /* background-color: #FFFFFF; Colore di sfondo predefinito */
  transition: background-color 0.1s ease; /* Transizione più rapida */
}

.timeline-container {
  height: 100vh;
  width: 100%;
  position: absolute;
  padding-top: 100px;
  padding-bottom: 100px;
}

.timeline-container article {
  position: relative;
  z-index: 1000;
  text-align: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.timeline-container article.year {
  height: 100vh;
  max-height: 3rem;
  position: relative;
  text-align: left;
}

.timeline-container article.year h2 {
  font-size: 2rem;
  line-height: 1;
  margin: 0;
  transition: color 0.1s ease; /* Transizione più rapida */
}
/*@media only screen and (max-width: 999px) {
  .timeline-container article.year h2 {
    font-size: 3rem;
  }
}*/

.timeline-container article.year h3 {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0;
  margin: 10px 0 0 0;
  transition: color 0.1s ease, opacity 0.1s ease; /* Transizione più rapida */
}

.timeline-container article.year p {
  line-height: 1.5;
  font-size: 1.25rem;
  opacity: 0;
  max-height: 0px;
  max-width: 800px;
  margin: 10px auto 0 auto;
  transition: color 0.1s ease, opacity 0.1s ease; /* Transizione più rapida */
}

#section-timeline article.year.active {
  max-height: 80vh;
}

#section-timeline article.year hgroup:after {
  content: '';
  position: absolute;
  top: 90%;
  left: 50%;
  width: 4px;
  height: 400px;
  max-height: 0px;
  transform: translateX(-50%) translateY(-100%);
}

#section-timeline article.year.active hgroup:after {
  max-height: 90px;
}

.timeline-container article.year.active h2 {
  font-size: 10rem;
}

.timeline-container article.year.active h3 {
  opacity: 1 !important;
  font-size: 3rem;
}

.timeline-container article.year.active p {
  opacity: 1 !important;
  max-height: 100%;
}

@media only screen and (max-width: 999px) {
  .timeline-container article.year p {
    font-size: 1rem;
  }
  .timeline-container article.year h3 {
    font-size: 2rem !important;
  }
  .page-id-941 .timeline-container {
    padding-left: 30px !important;
    padding-right: 30px !important;
  }
}
