/* =====================
   SEZIONE STORIA
===================== */

.story-section {
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 3.125em;
  font-size: 2.2rem;
  color: var(--color-primary);
}

.cards-grid {
  display: flex;
}

/* =====================
   CARD
===================== */

.story-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.story-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.card-year {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.story-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

/* TESTO SCROLLABILE */
.story-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
  overflow-y: auto;
  padding-right: 6px;
}

/* =====================
   SWIPER
===================== */

.story-swiper {
  width: 100%;
  padding-bottom: 3.125em;
  overflow: visible;
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
}

/* =====================
   MOBILE
===================== */

@media (max-width: 768px) {

  .section-title {
    margin-bottom: 1.2em;
  }

  .story-swiper {
    overflow: hidden;
  }

  .cards-grid {
    display: flex;
    gap: 0;
  }

  .swiper-slide {
    display: flex;
    justify-content: center;
  }

  .story-card {
    height: 500px; /* leggermente più compatta */
  }
}
