.timeline-container.timeline-full-width {
  width: 100%;
  --timeline-active: #2a9547;
  --timeline-inactive: #d3ead9;
  --timeline-content-background: #e4e8d9;
}

.timeline-container .timeline-navigation {
  width: 100%;
  background: #fff;
  padding: 2rem 0 1rem;
  overflow: hidden;
}

.timeline-container .timeline-nav__item {
  box-sizing: border-box;
}

.timeline-container .timeline-nav__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  padding: 0.125rem 0 0;
  border: 0;
  background: transparent;
  color: #161616;
  font: inherit;
  cursor: pointer;
}

.timeline-container .timeline-nav__button::before {
  content: '';
  position: absolute;
  top: 0.625rem;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: var(--timeline-inactive);
}

.timeline-container .timeline-nav__dot {
  position: relative;
  z-index: 1;
  height: 1.5rem;
  width: 1.5rem;
  border-radius: 50%;
  background: var(--timeline-inactive);
}

.timeline-container .timeline-nav__button.is-active .timeline-nav__dot {
  background: var(--timeline-active);
}

.timeline-container .timeline-nav__year {
  display: block;
  padding-top: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
}

.timeline-container .timeline-nav__button:focus-visible {
  outline: 0.125rem solid var(--timeline-active);
  outline-offset: -0.125rem;
}

/* Slick verticale richiede un'altezza definita. */
.timeline-container .timeline-content {
  width: 100%;
  height: clamp(23.375rem, 65vh, 41.125rem);
  background: var(--timeline-content-background);
}

.timeline-container .timeline-content__slide {
  box-sizing: border-box;
  padding: clamp(1.375rem, 4vw, 3.375rem);

}

.timeline-container .timeline-content__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.375rem, 4vw, 3.5rem);
}

.timeline-container .timeline-content__text,
.timeline-container .timeline-content__media {
  min-width: 0;
}

.timeline-container .timeline-content__year {
  margin: 0 0 2rem;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1.1;
}

.timeline-container .timeline-content__body {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  line-height: 1.5;
}

.timeline-container .timeline-content__media img {
  display: block;
  max-width: 100%;
  max-height: 60vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 767px) {
  .timeline-container .timeline-nav__year {
    font-size: 0.875rem;
  }
  .timeline-container .timeline-content {
    height: 32.25rem;
  }
  .timeline-container .timeline-content__slide {
    padding: 1.375rem 1rem;
    overflow-y: auto;
  }
  .timeline-container .timeline-content__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.875rem;
    height: auto;
  }
  .timeline-container .timeline-content__year {
    margin-bottom: 1rem;
  }
  .timeline-container .timeline-content__media img {
    max-height: 14.5rem;
  }
}
.timeline-container .timeline-content .slick-slide {
  height: clamp(23.375rem, 65vh, 41.125rem);
}

.timeline-nav .slick-prev::before,
.timeline-nav .slick-next::before {
  content: none !important;
}

.timeline-nav .slick-prev,
.timeline-nav .slick-next {
  background: transparent;
  border: 0;
  color: #2a9547;
  font-size: 1.5rem;
  cursor: pointer;
}

.timeline-container .timeline-navigation {
  position: relative;
}

.timeline-container .timeline-nav .slick-prev,
.timeline-container .timeline-nav .slick-next {
  position: absolute;
  top: 14px;
  /*transform: translateY(-50%);*/
  z-index: 10;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2a9547;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-container .timeline-nav .slick-prev {
  left: 0;
}

.timeline-container .timeline-nav .slick-next {
  right: 0;
}

.timeline-container .timeline-nav .slick-prev::before,
.timeline-container .timeline-nav .slick-next::before {
  content: none;
}