/* ==============================================================================
   SPAGNOLLI SPUMANTI — SLIDER SHOWCASE "LE CREAZIONI" (Disìo · Fr|Al · Velour)
   Stile fedele alla Home di Spagnolli Spumanti (Sezione DISÌO BLANC DE NOIRS):
   - Sfondo neutro chiaro caldo (#fbfaf7 / #ffffff)
   - Tipografia: 'Spagnolli' / 'Playfair Display'
   - Titolo h3 in maiuscolo (DISìo, FR|AL, VELOUR)
   - Categoria h5 spaziatura ampia
   - Divisore dorato orizzontale
   - Testi brevi calibrati identici allo stile della Home
   - Bottiglia affiancata a foto semplice e pulita, con scorrimento elegante e parallasse fluido
   ============================================================================== */

:root {
  --sp-home-bg: #fbfaf7;
  --sp-title-color: #1a1a1a;
  --sp-sub-color: #888080;
  --sp-text-color: #4a4744;
  --sp-gold: #c5a059;
  --sp-gold-bg: rgba(226, 160, 71, 0.42);
  --sp-font-serif: "Spagnolli", "Playfair Display", Georgia, serif;
  --sp-font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sp-ease: cubic-bezier(.22, .61, .36, 1);
}

body.slider-active-body {
  background-color: var(--sp-home-bg) !important;
  color: var(--sp-text-color) !important;
  font-family: var(--sp-font-sans) !important;
  overflow-x: hidden;
}

/* ==============================================================================
   WRAPPER SEZIONE PRINCIPALE (Stile Elementor Home)
   ============================================================================== */
.sp-creazioni-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 90px);
  padding: 80px 24px 60px;
  box-sizing: border-box;
  background-color: var(--sp-home-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sp-creazioni-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==============================================================================
   VIEWPORT E SLIDES
   ============================================================================== */
.sp-slider-viewport {
  position: relative;
  width: 100%;
  min-height: 520px;
}

.sp-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--sp-ease), visibility 0.6s var(--sp-ease);
}

.sp-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Griglia 2 Colonne (Testo a Sinistra, Visual a Destra) */
.sp-slide-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 50px;
}

/* ==============================================================================
   COLONNA SINISTRA: TIPOGRAFIA IDENTICA ALLA SEZIONE HOME
   ============================================================================== */
.sp-col-content {
  padding-right: 20px;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s var(--sp-ease) 0.1s, transform 0.6s var(--sp-ease) 0.1s;
}

.sp-slide.is-active .sp-col-content {
  opacity: 1;
  transform: translateX(0);
}

.sp-product-title {
  font-family: var(--sp-font-serif);
  font-size: clamp(42px, 4.8vw, 68px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--sp-title-color);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin: 0 0 8px 0;
}

.sp-product-category {
  font-family: var(--sp-font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sp-sub-color);
  margin: 0 0 18px 0;
}

.sp-product-divider {
  width: 100px;
  height: 2px;
  background-color: var(--sp-gold);
  margin-bottom: 24px;
}

.sp-product-desc {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--sp-text-color);
  text-align: justify;
  margin: 0 0 32px 0;
  max-width: 520px;
}

/* Bottone "Scopri di più" con stile Under-Overlay identico alla Home */
.sp-product-cta {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a !important;
  text-decoration: none;
  position: relative;
  padding: 4px 6px;
  transition: color 0.3s ease;
}

.sp-product-cta::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 8px;
  background-color: var(--sp-gold-bg);
  z-index: -1;
  transition: height 0.25s ease, background-color 0.25s ease;
}

.sp-product-cta:hover {
  color: #000000 !important;
}

.sp-product-cta:hover::before {
  height: 100%;
  background-color: rgba(226, 160, 71, 0.7);
}

/* ==============================================================================
   COLONNA DESTRA: FOTO SEMPLICE AFFIANCATA ALLA BOTTIGLIA + PARALLASSE
   ============================================================================== */
.sp-col-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s var(--sp-ease) 0.15s, transform 0.6s var(--sp-ease) 0.15s;
}

.sp-slide.is-active .sp-col-visual {
  opacity: 1;
  transform: translateX(0);
}

.sp-visual-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Foto semplice con cornice elegante e bordo discreto */
.sp-photo-card {
  position: absolute;
  left: 20px;
  width: 300px;
  height: 380px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  will-change: transform;
  transition: transform 0.15s ease-out;
  z-index: 1;
}

.sp-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bottiglia elegante con ombra morbida */
.sp-bottle-card {
  position: absolute;
  right: 30px;
  height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.14));
  will-change: transform;
  transition: transform 0.12s ease-out;
  z-index: 2;
}

.sp-bottle-card img {
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ==============================================================================
   BARRA CONTROLLI SLIDER (In basso, pulita e minimale)
   ============================================================================== */
.sp-slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Tabs con nomi dei prodotti */
.sp-tabs-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.sp-tab-trigger {
  background: none;
  border: none;
  padding: 8px 4px;
  font-family: var(--sp-font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c867c;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
}

.sp-tab-trigger span.num {
  font-size: 11px;
  opacity: 0.7;
  margin-right: 6px;
}

.sp-tab-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--sp-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.sp-tab-trigger.is-active {
  color: #1a1a1a;
  font-weight: 600;
}

.sp-tab-trigger.is-active::after {
  transform: scaleX(1);
}

.sp-tab-trigger:hover {
  color: #1a1a1a;
}

/* Frecce di navigazione */
.sp-arrow-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1a1a1a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.sp-arrow-btn:hover {
  background-color: var(--sp-gold);
  border-color: var(--sp-gold);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(197, 160, 89, 0.28);
}

/* ==============================================================================
   RESPONSIVE DESIGN
   ============================================================================== */
@media (max-width: 960px) {
  .sp-creazioni-section {
    padding: 50px 20px 40px;
  }
  .sp-slide-row {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .sp-col-content {
    padding-right: 0;
  }
  .sp-product-divider {
    margin: 0 auto 20px;
  }
  .sp-product-desc {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .sp-col-visual {
    min-height: 400px;
  }
  .sp-visual-stage {
    height: 400px;
  }
  .sp-photo-card {
    left: calc(50% - 150px);
    width: 240px;
    height: 300px;
    opacity: 0.6;
  }
  .sp-bottle-card {
    right: calc(50% - 70px);
    height: 380px;
  }
  .sp-slider-controls {
    flex-direction: column;
    gap: 20px;
  }
  .sp-tabs-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}
