/* === Storia page — Editorial Storytelling === */

/* ---------- Reveal animations ---------- */
.sr-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.sr-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-reveal-delay-1 {
  transition-delay: 0.1s;
}

.sr-reveal-delay-2 {
  transition-delay: 0.2s;
}

.sr-reveal-delay-3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .sr-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Base section rhythm ---------- */
.storia-section {
  padding: 96px 24px;
}

/* ---------- Typography scale ---------- */
.storia-h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.storia-h2--light {
  color: #fff;
}

.storia-p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--color-text-light);
  max-width: 680px;
}

.storia-p strong {
  font-weight: 600;
  color: var(--color-text);
}

/* ── Content card (used in CTA section) ── */
.content-card {
  border: 1px solid var(--color-border);
  padding: 32px 24px;
  background: var(--color-bg-alt);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: var(--color-primary);
}

/* ===================================================================
   HERO SECTION — Card overlay at bottom (original style)
   =================================================================== */
.storia-hero {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--color-header-bg);
  margin-top: -1px;
  /* copre il border-bottom dell'header fisso durante lo scroll */
}

.storia-hero-bg {
  position: absolute;
  inset: 0;
}

.storia-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storia-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.15) 100%);
}

/* Card del titolo — stesso linguaggio delle altre card hero */
.storia-hero-content {
  position: absolute;
  z-index: 1;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 540px;
  color: #fff;
  background: rgba(39,39,37,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 32px 36px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-align: center;
}
.storia-hero-content:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--color-accent);
}

.storia-hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.storia-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.18;
  margin-bottom: 10px;
}

.storia-hero-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  .storia-hero-content {
    bottom: 24px;
    width: calc(100% - 32px);
    padding: 18px 20px;
  }
}

/* ===================================================================
   ORIGINI 1960 — Two-column: oversize year + text (no image)
   =================================================================== */
.storia-origini {
  background: var(--color-bg);
  position: relative;
}

.storia-origini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

.storia-origini-grid {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 56px;
  align-items: start;
}

.storia-origini-year {
  font-family: var(--font-heading);
  font-size: clamp(88px, 11vw, 160px);
  line-height: 0.9;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  user-select: none;
}

@media (max-width: 900px) {
  .storia-origini-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .storia-origini-year {
    font-size: clamp(64px, 14vw, 96px);
  }
}

/* ===================================================================
   MOMENTO CHIAVE 1973 — Full-bleed image with quote overlay
   =================================================================== */
.storia-moment {
  position: relative;
  min-height: 55vh;
  min-height: 55svh;
  max-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-header-bg);
  overflow: hidden;
}

.storia-moment-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.storia-moment-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.storia-moment-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(39, 39, 37, 0.85) 0%, rgba(63, 45, 11, 0.7) 100%);
  z-index: 1;
}

.storia-moment-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.storia-moment-content {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  max-width: 720px;
  text-align: center;
  color: #fff;
  padding: 40px 24px;
}

.storia-claim-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.storia-claim-quote {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  font-style: italic;
}

.storia-claim-support {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto;
}

/* ===================================================================
   STATS SECTION — Compact, airy
   =================================================================== */
.storia-stats-section {
  background: var(--color-bg-alt);
}

.storia-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.storia-stat-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--color-bg);
  border-top: 3px solid transparent;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.storia-stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.12);
  border-top-color: var(--color-primary);
}

.storia-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 400;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 14px;
}

.storia-stat-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 8px;
}

.storia-stat-card .desc-text {
  font-size: 14px;
  color: var(--color-text-light);
}

@media (max-width: 900px) {
  .storia-stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .storia-section {
    padding: 72px 20px;
  }
}

/* ===================================================================
   TIMELINE — Vertical, alternating, editorial
   =================================================================== */
.storia-timeline-section {
  background: var(--color-bg);
  position: relative;
}

.storia-timeline-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

.storia-timeline-wrap {
  margin-top: 48px;
}

.storia-timeline {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
}

.storia-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-border), var(--color-primary) 30%, var(--color-primary) 70%, var(--color-border));
  transform: translateX(-50%);
}

.tl-item {
  position: relative;
  display: flex;
  margin-bottom: 60px;
  width: 100%;
}

.tl-item:last-child {
  margin-bottom: 0;
}

.tl-marker {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tl-dot {
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 4px solid var(--color-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-primary);
  z-index: 3;
}

.tl-line {
  width: 2px;
  height: 40px;
  background: var(--color-primary);
  margin-top: -2px;
}

.tl-content {
  width: calc(50% - 40px);
  padding: 24px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tl-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.tl-item.left .tl-content {
  margin-left: auto;
}

.tl-item.right .tl-content {
  margin-right: auto;
}

.tl-item.has-image .tl-content {
  padding-bottom: 0;
}

.tl-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.tl-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.tl-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.tl-image-wrap {
  margin: 0 -32px -24px -32px;
  overflow: hidden;
}

.tl-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-content:hover .tl-image {
  transform: scale(1.02);
}

/* Timeline reveal */
.tl-item.tl-hidden {
  opacity: 0;
}

.tl-item.left.tl-hidden {
  transform: translateX(-30px);
}

.tl-item.right.tl-hidden {
  transform: translateX(30px);
}

.tl-item.tl-hidden.visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tablet */
@media (max-width: 900px) {
  .storia-timeline::before {
    left: 30px;
  }

  .tl-marker {
    left: 30px;
    transform: none;
  }

  .tl-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }

  .tl-item.left .tl-content,
  .tl-item.right .tl-content {
    margin-left: 80px !important;
  }

  .tl-item.left.tl-hidden,
  .tl-item.right.tl-hidden {
    transform: translateX(-20px);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .storia-timeline::before {
    left: 18px;
  }

  .tl-marker {
    left: 18px;
  }

  .tl-dot {
    width: 12px;
    height: 12px;
  }

  .tl-content {
    width: calc(100% - 56px);
    margin-left: 56px !important;
    padding: 20px 20px;
  }

  .tl-image {
    height: 180px;
  }

  .tl-item.left.tl-hidden,
  .tl-item.right.tl-hidden {
    transform: translateX(-15px);
  }
}

/* ===================================================================
   EVOLUZIONE — Magazine-style alternating cards
   =================================================================== */
.storia-evoluzione {
  background: var(--color-bg);
}

.storia-evoluzione header {
  margin-bottom: 56px;
}

.evo-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.evo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.evo-card.reverse {
  direction: rtl;
}

.evo-card.reverse>* {
  direction: ltr;
}

.evo-image-wrap {
  aspect-ratio: 4/3;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.15);
}

.evo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.evo-card:hover .evo-image {
  transform: scale(1.04);
}

.evo-text {
  padding: 8px 0;
}

.evo-text h3 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.25;
}

.evo-text .desc-text {
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 900px) {
  .evo-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .evo-card.reverse {
    direction: ltr;
  }

  .evo-image-wrap {
    aspect-ratio: 16/9;
    max-height: 300px;
  }
}

/* ===================================================================
   STORE SIENA — Atmospheric full-bleed
   =================================================================== */
.storia-store {
  position: relative;
  min-height: 60vh;
  min-height: 60svh;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--color-header-bg);
  overflow: hidden;
}

.storia-store-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.storia-store-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.storia-store-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  z-index: 1;
}

.storia-store-content {
  position: relative;
  z-index: 2;
  width: calc(100% - 48px);
  max-width: 560px;
  color: #fff;
  padding: 48px 24px;
  margin-left: 48px;
}

.storia-store-content .storia-claim-eyebrow {
  margin-bottom: 16px;
}

.storia-store-content .storia-h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 20px;
}

.storia-store-text {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-bottom: 32px;
}

.storia-store-content .hero-btn.-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 14px 36px;
}

.storia-store-content .hero-btn.-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
  filter: none;
}

@media (max-width: 900px) {
  .storia-store-content {
    margin-left: 24px;
    max-width: 100%;
  }

  .storia-store-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
  }
}

@media (max-width: 600px) {
  .storia-store {
    min-height: 50vh;
  }
}

/* ===================================================================
   DIGITAL / OGGI — Clean two-column
   =================================================================== */
.storia-digital {
  background: var(--color-bg-alt);
}

.storia-digital-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.storia-digital-text .storia-h2 {
  margin-bottom: 24px;
}

.storia-digital-text .storia-p {
  margin-bottom: 20px;
}

.storia-digital-text .storia-p:last-child {
  margin-bottom: 0;
}

.digital-stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 2px;
}

.digital-stat {
  text-align: center;
}

.digital-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: var(--color-primary-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.digital-stat-label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
}

@media (max-width: 900px) {
  .storia-digital-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .digital-stats-mini {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===================================================================
   FINALE / SIGNATURE — Editorial closure
   =================================================================== */
.storia-finale {
  background: var(--color-header-bg);
  color: #fff;
  padding: 100px 24px;
}

.storia-finale .section-inner {
  max-width: 720px;
}

.storia-finale-content {
  text-align: center;
}

.storia-finale .storia-h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 28px;
}

.storia-finale-text {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin: 0 auto 56px;
}

.storia-signature {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.storia-signature-rule {
  display: block;
  width: 80px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 28px;
}

.storia-signature-brand {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 36px);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: #fff;
}

.storia-signature-claim {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.6;
  color: var(--color-accent);
}

/* ===================================================================
   CTA FINALE
   =================================================================== */
.storia-cta-section {
  background: var(--color-bg);
}

.storia-cta {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 32px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 2px;
}

.storia-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 28px;
}

/* ===================================================================
   RESPONSIVE HERO HEIGHTS
   =================================================================== */
@media (max-width: 900px) {
  .storia-hero {
    min-height: 60vh;
    min-height: 60svh;
    max-height: 650px;
  }

  .storia-moment {
    min-height: 45vh;
    min-height: 45svh;
    max-height: 500px;
  }

  .storia-store {
    min-height: 50vh;
    min-height: 50svh;
    max-height: 550px;
  }

  .storia-section {
    padding: 72px 20px;
  }
}

@media (max-width: 600px) {
  .storia-hero {
    min-height: 55vh;
    min-height: 55svh;
    max-height: 550px;
  }

  .storia-hero-content {
    padding-bottom: 40px;
  }

  .storia-moment {
    min-height: 40vh;
    min-height: 40svh;
    max-height: 420px;
  }

  .storia-store {
    min-height: 45vh;
    min-height: 45svh;
    max-height: 450px;
  }

  .storia-section {
    padding: 56px 16px;
  }

  .storia-finale {
    padding: 72px 16px;
  }
}

/* ── Storia responsive (moved from cart-popup.css) ── */
@media (max-width: 768px) {
  .sost-grid,
  .storia-founder-grid,
  .storia-misc-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .storia-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .storia-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ===================================================================
   PRINT
   =================================================================== */
@media print {
  .sr-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .storia-hero,
  .storia-moment,
  .storia-store {
    min-height: auto;
    page-break-inside: avoid;
  }

  .storia-hero-bg img,
  .storia-moment-bg img,
  .storia-store-bg img {
    print-color-adjust: exact;
  }
}