/* === Nuovo carosello timeline (Draggable + Inertia) === */
.brand-story-draggable-section {
  position: relative;
  padding-bottom: 80px;
}

.story-throw {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.story-throw-viewport {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 64px rgba(8, 14, 28, 0.2);
}

.story-throw-track {
  display: flex;
  flex-wrap: nowrap;
  touch-action: pan-y;
  cursor: grab;
}

.story-throw-track.is-dragging {
  cursor: grabbing;
}

.story-throw-slide {
  position: relative;
  flex: 0 0 100%;
  margin: 0;
  min-height: 72vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: background-position;
}

.story-throw-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(4, 43, 96, 0.45), rgba(0, 0, 0, 0.3) 52%, rgba(8, 14, 28, 0.65));
}

.story-throw-content {
  position: absolute;
  left: 8%;
  bottom: 12%;
  z-index: 1;
  max-width: min(560px, 90%);
}

.story-throw-year {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.story-throw-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.08;
}

.story-throw-desc {
  margin: 10px 0 0;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.45;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-throw-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--theme-color2);
  box-shadow: 0 8px 24px rgba(8, 14, 28, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.story-throw-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}

.story-throw-prev {
  left: 16px;
}

.story-throw-next {
  right: 16px;
}

.story-throw-nav {
  margin-top: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.story-throw-nav::-webkit-scrollbar {
  display: none;
}

.story-throw-nav-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(26px, 3vw, 56px);
  min-width: 100%;
  padding-top: 26px;
}

.story-throw-nav-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  border-radius: 999px;
  background: #ced0d3;
}

.story-throw-dot {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-width: 78px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #c3c6cb;
  background: transparent;
  transition: color 0.2s ease;
  cursor: pointer;
}

.story-throw-dot.is-active {
  color: var(--theme-color);
  font-weight: 900;
}

.story-throw-dot.is-active::before {
  content: "";
  position: absolute;
  top: -26px;
  left: 50%;
  width: 56px;
  height: 5px;
  border-radius: 999px;
  background: var(--theme-color);
  transform: translateX(-50%);
}

@media (max-width: 991px) {
  .story-throw-slide {
    min-height: 62vh;
  }

  .story-throw-nav-track {
    min-width: max-content;
    justify-content: flex-start;
    gap: 24px;
    padding-right: 16px;
  }

  .story-throw-nav-track::before {
    right: 16px;
  }

  .story-throw-content {
    left: 7%;
    right: 7%;
    bottom: 10%;
  }

  .story-throw-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 767px) {
  .brand-story-draggable-section {
    padding-bottom: 58px;
  }

  .story-throw-slide {
    min-height: 56vh;
  }

  .story-throw-prev {
    left: 8px;
  }

  .story-throw-next {
    right: 8px;
  }

  .story-throw-nav {
    margin-top: 18px;
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .story-throw-nav-track {
    min-width: max-content;
    justify-content: flex-start;
    gap: 24px;
    padding-top: 16px;
    padding-right: 10px;
  }

  .story-throw-nav-track::before {
    right: 10px;
    height: 4px;
  }

  .story-throw-dot {
    min-width: auto;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
  }

  .story-throw-dot.is-active::before {
    top: -16px;
    width: 38px;
    height: 4px;
  }
}
