.berios-history-timeline {
  position: relative;
  margin-top: 80px;
}

/* ===============================
   HISTORY ITEM
   =============================== */

.berios-history-item > * {
  min-width: 0;
}

.berios-history-item {
  display: grid;
  grid-template-columns: 250px 1fr 400px;
  gap: 60px;
  padding: 80px 0;
  border-top: 1px solid rgba(255,255,255,.2);
  align-items: start;
  max-width: 100%;
  box-sizing: border-box;

  /* trigger animazione */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.berios-history-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   YEAR (entra per primo)
   =============================== */

.history-year {
  font-size: min(7.5vw, 112px);
  font-weight: 300;
  line-height: 0;

  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.berios-history-item.is-visible .history-year {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   CONTENT + IMAGE (entrano dopo)
   =============================== */

.history-content,
.history-image {
  margin-top: 50px;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.35s;
}

.berios-history-item.is-visible .history-content,
.berios-history-item.is-visible .history-image {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   TYPOGRAPHY
   =============================== */

.history-content h3 {
  margin-bottom: 16px;
  font-size: 32px;
}

.history-content p {
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

.history-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ===============================
   BREAKPOINTS
   =============================== */

@media (max-width: 1200px) {
  .berios-history-item {
    grid-template-columns: 200px 1fr 300px;
    gap: 40px;
  }
}

@media (max-width: 991px) {
  .berios-history-item {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .history-year {
    line-height: 1;
    font-size: 36px;
  }

  .history-content,
  .history-image {
    margin-top: 0;
  }

  .history-content h3 {
    font-size: 25px;
  }

  .history-content p {
    font-size: 14px;
  }
}
