/* ==========================================================================
   Caffè Toninho — Enoteca: Smart Pairing + Carta dei Vini
   Stili coerenti col design system del sito (tokens style.css).
   ========================================================================== */

/* --------------------------------------------------------------------------
   SMART PAIRING — sezione (sostituisce la vecchia CTA, stesso container)
   -------------------------------------------------------------------------- */

.smart-pairing-section {
  margin-right: var(--_spacing-system---spacing--spacing-sm);
  margin-left: var(--_spacing-system---spacing--spacing-sm);
  border-radius: var(--_spacing-system---border-radius--radius-m);
  background-color: var(--primary-color);
  position: relative;
  overflow: visible;
  padding-top: var(--_spacing-system---spacing--spacing-8xl);
  padding-bottom: var(--_spacing-system---spacing--spacing-8xl);
}

.smart-pairing-bg {
  position: absolute;
  inset: 0%;
  overflow: hidden;
  pointer-events: none;
  border-radius: var(--_spacing-system---border-radius--radius-m);
}

.smart-pairing-bg-img {
  position: absolute;
  inset: 0%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(0.85);
}

.smart-pairing-bg::after {
  content: '';
  position: absolute;
  inset: 0%;
  background-image: linear-gradient(180deg, #2c1a12 0%, #2c1a12d9 42%, #2c1a12 100%);
}

.sp-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sp-head {
  text-align: center;
  max-width: 640px;
  margin-bottom: var(--_spacing-system---spacing--spacing-5xl);
}

.sp-eyebrow {
  color: var(--dark-gray);
  font-size: var(--_typography---body-text--text-xxs);
  font-weight: var(--_typography---font-weight--medium);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-button);
  text-transform: uppercase;
  margin-bottom: var(--_spacing-system---spacing--spacing-l);
}

.sp-title {
  color: var(--black);
  font-family: var(--_typography---fonts--primary-font);
  font-size: var(--_typography---typography--h2);
  line-height: var(--_typography---line-height--line-height-s);
  font-weight: var(--_typography---font-weight--light);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-xxl);
  margin: 0;
}

.sp-title .sp-accent {
  font-style: italic;
}

.sp-sub {
  color: var(--dark-gray);
  font-size: var(--_typography---body-text--text-s);
  margin-top: var(--_spacing-system---spacing--spacing-l);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   COMMAND BAR — barra di ricerca in vetro
   -------------------------------------------------------------------------- */

.sp-root {
  width: 100%;
  max-width: 640px;
  position: relative;
}

.sp-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--_spacing-system---spacing--spacing-m);
  padding: 6px 6px 6px 22px;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  background-color: #f3e8d814;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid #f3e8d84d;
  transition: border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-root.is-active .sp-bar,
.sp-root.has-selection .sp-bar {
  border-color: #f3e8d8b3;
  background-color: #f3e8d81f;
  box-shadow: 0 24px 60px -18px #0d0705cc, 0 0 0 4px #f3e8d80d;
}

.sp-bar-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--dark-gray);
  transition: color 0.3s ease;
}

.sp-root.is-active .sp-bar-icon,
.sp-root.has-selection .sp-bar-icon {
  color: var(--black);
}

.sp-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--black);
  font-family: var(--_typography---fonts--text-body);
  font-size: var(--_typography---body-text--text-s);
  font-weight: var(--_typography---font-weight--light);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-3xs);
  padding: 14px 0;
}

.sp-input::placeholder {
  color: #b8a59580;
}

.sp-spinner {
  flex: 0 0 auto;
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #f3e8d833;
  border-top-color: var(--dark-gray);
  animation: sp-spin 0.7s linear infinite;
}

.sp-spinner.is-visible {
  display: block;
}

.sp-root.is-searching .sp-spinner {
  display: block;
}

.sp-root.is-searching .sp-spinner {
  animation-duration: 0.7s;
}

.sp-clear {
  flex: 0 0 auto;
  display: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--dark-gray);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sp-root.has-selection .sp-clear {
  display: flex;
}

.sp-clear:hover {
  background-color: #f3e8d81f;
  color: var(--black);
}

.sp-clear svg {
  width: 14px;
  height: 14px;
}

.sp-search-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--_spacing-system---spacing--spacing-xs);
  height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  background-color: var(--black);
  color: var(--primary-color);
  font-family: var(--_typography---fonts--text-body);
  font-size: var(--_typography---body-text--text-xxs);
  font-weight: var(--_typography---font-weight--medium);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-button);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background-color 0.3s ease;
}

.sp-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px #0d0705b3;
}

.sp-search-btn:active {
  transform: translateY(0) scale(0.98);
}

.sp-search-btn svg {
  width: 15px;
  height: 15px;
}

/* Dropdown suggerimenti */

/* NOTA: il CSS globale Webflow applica a tutti gli `ul` background-clip:text
   con -webkit-text-fill-color:transparent (testo invisibile). Per questo il
   dropdown è un DIV: la regola non si applica. */
.sp-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  margin: 0 !important;
  padding: var(--_spacing-system---spacing--spacing-s);
  list-style: none;
  border-radius: 18px;
  background-color: #221a15;
  border: 1px solid #f3e8d826;
  box-shadow: 0 32px 80px -24px #0d0705e6;
  display: none;
  z-index: 30;
  max-height: 336px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.sp-suggestions::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

.sp-suggestions.is-open {
  display: block;
}

/* Se sotto non c'è spazio, il dropdown si apre sopra la barra */
.sp-suggestions.flip-up {
  top: auto;
  bottom: calc(100% + 10px);
}

.sp-suggestions.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sp-suggestion {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--_spacing-system---spacing--spacing-m);
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-text-fill-color: currentcolor !important;
  background-color: transparent;
  transition: background-color 0.25s ease;
}

.sp-suggestion:hover,
.sp-suggestion.is-selected {
  background-color: #f3e8d80f;
}

.sp-suggestion-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #f3e8d80f;
  border: 1px solid #f3e8d81a;
  color: var(--dark-gray);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.sp-suggestion:hover .sp-suggestion-icon,
.sp-suggestion.is-selected .sp-suggestion-icon {
  color: var(--black);
  border-color: #f3e8d840;
}

.sp-suggestion-icon svg {
  width: 17px;
  height: 17px;
}

.sp-suggestion-label {
  flex: 1 1 auto;
  color: #f3e8d8 !important;
  -webkit-text-fill-color: #f3e8d8 !important;
  font-family: var(--_typography---fonts--text-body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: normal;
}

.sp-suggestion-meta {
  flex: 0 0 auto;
  color: #b8a5959e !important;
  -webkit-text-fill-color: #b8a5959e !important;
  font-size: 12px;
  font-weight: 400;
}

/* Chip di ispirazione */

.sp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--_spacing-system---spacing--spacing-s);
  margin-top: var(--_spacing-system---spacing--spacing-2xl);
}

.sp-chips-label {
  width: 100%;
  text-align: center;
  color: #b8a59580;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: var(--_spacing-system---spacing--spacing-xxs);
}

.sp-chip {
  border: 1px solid #f3e8d826;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  background-color: transparent;
  color: var(--dark-gray);
  font-family: var(--_typography---fonts--text-body);
  font-size: 13px;
  font-weight: var(--_typography---font-weight--regular);
  letter-spacing: 0.2px;
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.35s ease, color 0.35s ease, background-color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-chip:hover {
  border-color: #f3e8d873;
  color: var(--black);
  background-color: #f3e8d80a;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   RISULTATI PAIRING
   -------------------------------------------------------------------------- */

.sp-results {
  display: none;
}

.sp-results.is-visible {
  display: block;
  animation: sp-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-results-inner {
  width: 100%;
  max-width: 940px;
  margin-top: var(--_spacing-system---spacing--spacing-6xl);
}

.sp-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--_spacing-system---spacing--spacing-l);
  margin-bottom: var(--_spacing-system---spacing--spacing-3xl);
  padding-bottom: var(--_spacing-system---spacing--spacing-l);
  border-bottom: 1px solid #f3e8d81a;
}

.sp-results-eyebrow {
  color: var(--dark-gray);
  font-size: 12px;
  font-weight: var(--_typography---font-weight--medium);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-button);
  text-transform: uppercase;
  margin: 0 0 var(--_spacing-system---spacing--spacing-s);
}

.sp-results-title {
  color: var(--black);
  font-family: var(--_typography---fonts--primary-font);
  font-size: var(--_typography---typography--h3);
  line-height: var(--_typography---line-height--line-height-s);
  font-weight: var(--_typography---font-weight--light);
  letter-spacing: var(--_typography---letter-spacing--h3-letter-spacing);
  margin: 0;
  text-transform: capitalize;
}

.sp-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--_spacing-system---spacing--spacing-xs);
  border: 1px solid #f3e8d826;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  background: transparent;
  color: var(--dark-gray);
  font-family: var(--_typography---fonts--text-body);
  font-size: 12px;
  letter-spacing: 0.4px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.sp-reset-btn:hover {
  color: var(--black);
  border-color: #f3e8d873;
}

.sp-reset-btn-x {
  font-size: 15px;
  line-height: 1;
}

.sp-group-label {
  color: #b8a5959e;
  font-size: 12px;
  font-weight: var(--_typography---font-weight--medium);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-button);
  text-transform: uppercase;
  margin: var(--_spacing-system---spacing--spacing-3xl) 0 var(--_spacing-system---spacing--spacing-l);
}

.sp-group-label:first-child {
  margin-top: 0;
}

.sp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--_spacing-system---spacing--spacing-l);
}

.sp-wine-card {
  border: 1px solid #f3e8d81a;
  border-radius: var(--_spacing-system---border-radius--radius-m);
  background-color: #f3e8d80a;
  padding: var(--_spacing-system---spacing--spacing-l) var(--_spacing-system---spacing--spacing-2xl);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s ease, background-color 0.45s ease;
  display: flex;
  flex-direction: column;
  gap: var(--_spacing-system---spacing--spacing-m);
}

.sp-wine-img {
  width: 100%;
  height: 160px;
  border-radius: var(--_spacing-system---border-radius--radius-s);
  background-size: cover;
  background-position: center;
  background-color: #f3e8d80f;
  flex-shrink: 0;
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-wine-img:hover {
  transform: scale(1.03);
}

/* Lightbox */

.enoteca-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,8,6,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.enoteca-lightbox.is-open {
  display: flex;
}

.enoteca-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  object-fit: contain;
  cursor: default;
  animation: lb-in .25s cubic-bezier(0.22,1,.36,1);
}

@keyframes lb-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.enoteca-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.enoteca-lightbox-close:hover { opacity: 1; }

.enoteca-lightbox-meta {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: #f5ede4;
  font-size: 14px;
  text-align: center;
  max-width: 80vw;
  line-height: 1.5;
  pointer-events: none;
}

.sp-wine-card:hover {
  transform: translateY(-4px);
  border-color: #f3e8d840;
  background-color: #f3e8d812;
}

.sp-wine-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--_spacing-system---spacing--spacing-l);
}

.sp-wine-ident {
  min-width: 0;
}

.sp-wine-name {
  display: block;
  color: var(--black);
  font-family: var(--_typography---fonts--primary-font);
  font-size: 19px;
  font-weight: var(--_typography---font-weight--light);
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.sp-wine-sub {
  display: block;
  color: #b8a5959e;
  font-size: 13px;
  margin-top: 3px;
}

.sp-wine-price {
  flex: 0 0 auto;
  color: var(--black);
  font-size: 15px;
  font-weight: var(--_typography---font-weight--medium);
  white-space: nowrap;
}

.sp-wine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--_spacing-system---spacing--spacing-m);
}

.sp-wine-tag {
  border-radius: var(--_spacing-system---border-radius--button-radius);
  font-size: 11px;
  font-weight: var(--_typography---font-weight--regular);
  letter-spacing: 0.3px;
  padding: 4px 12px;
  text-transform: uppercase;
}

.sp-wine-tag.cat {
  border: 1px solid #f3e8d826;
  color: var(--dark-gray);
}

.sp-wine-tag.region {
  border: 1px solid #ce3633;
  color: var(--black);
  background-color: #ce36331f;
}

.sp-wine-why {
  color: #b8a595b3;
  font-size: 13px;
  font-style: italic;
  margin-top: var(--_spacing-system---spacing--spacing-m);
  padding-top: var(--_spacing-system---spacing--spacing-m);
  border-top: 1px dashed #f3e8d81f;
}

.sp-results-foot {
  color: #b8a59580;
  font-size: 13px;
  text-align: center;
  margin-top: var(--_spacing-system---spacing--spacing-4xl);
}

/* Empty state */

.sp-empty {
  text-align: center;
  padding: var(--_spacing-system---spacing--spacing-6xl) var(--_spacing-system---spacing--spacing-l);
  max-width: 520px;
  margin: 0 auto;
}

.sp-empty-title {
  color: var(--black);
  font-family: var(--_typography---fonts--primary-font);
  font-size: var(--_typography---typography--h4);
  font-weight: var(--_typography---font-weight--light);
  margin: 0 0 var(--_spacing-system---spacing--spacing-m);
}

.sp-empty-sub {
  color: #b8a5959e;
  font-size: var(--_typography---body-text--text-xxs);
  margin: 0;
}

.sp-empty-reset {
  margin-top: var(--_spacing-system---spacing--spacing-2xl);
  border: 1px solid #f3e8d826;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  background: transparent;
  color: var(--dark-gray);
  font-family: var(--_typography---fonts--text-body);
  font-size: 13px;
  letter-spacing: 0.4px;
  padding: 11px 22px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.sp-empty-reset:hover {
  color: var(--black);
  border-color: #f3e8d873;
}

/* --------------------------------------------------------------------------
   CARTA DEI VINI
   -------------------------------------------------------------------------- */

.wine-list-section {
  padding-top: var(--_spacing-system---spacing--section-spacing);
  padding-bottom: var(--_spacing-system---spacing--section-spacing);
  position: relative;
}

.wl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--_spacing-system---spacing--spacing-l);
  margin-bottom: var(--_spacing-system---spacing--spacing-3xl);
}

.wl-head-titles {
  display: flex;
  flex-direction: column;
  gap: var(--_spacing-system---spacing--spacing-m);
}

.wl-title {
  color: var(--black);
  font-family: var(--_typography---fonts--primary-font);
  font-size: var(--_typography---typography--h2);
  line-height: var(--_typography---line-height--line-height-s);
  font-weight: var(--_typography---font-weight--light);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-xxl);
  margin: 0;
}

.wl-subtitle {
  color: var(--dark-gray);
  font-size: var(--_typography---body-text--text-xxs);
  font-weight: var(--_typography---font-weight--medium);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-button);
  text-transform: uppercase;
}

.wl-count {
  color: #b8a5959e;
  font-size: 13px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  padding-bottom: 6px;
}

/* Barra filtri */

.wl-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--_spacing-system---spacing--spacing-s);
  margin-bottom: var(--_spacing-system---spacing--spacing-4xl);
}

.wl-search-wrap {
  position: relative;
  flex: 1 1 220px;
  max-width: 340px;
  min-width: 200px;
}

.wl-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #b8a5959e;
  pointer-events: none;
}

.wl-search-input {
  width: 100%;
  height: 48px;
  padding: 0 18px 0 44px;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  border: 1px solid #4d3e36;
  background-color: transparent;
  color: var(--black);
  font-family: var(--_typography---fonts--text-body);
  font-size: 14px;
  font-weight: var(--_typography---font-weight--light);
  outline: none;
  transition: border-color 0.35s ease, background-color 0.35s ease;
}

.wl-search-input::placeholder {
  color: #b8a59580;
}

.wl-search-input:focus {
  border-color: #b8a595;
  background-color: #f3e8d80a;
}

.wl-select {
  height: 48px;
  padding: 0 40px 0 18px;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  border: 1px solid #4d3e36;
  background-color: transparent;
  color: var(--black);
  font-family: var(--_typography---fonts--text-body);
  font-size: 14px;
  font-weight: var(--_typography---font-weight--light);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8a595' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px;
  transition: border-color 0.35s ease;
}

.wl-select:hover {
  border-color: #b8a595;
}

.wl-select:focus {
  border-color: #ce3633;
}

.wl-select.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.wl-select option {
  background-color: #2a211d;
  color: var(--black);
}

.wl-reset {
  height: 48px;
  padding: 0 20px;
  border-radius: var(--_spacing-system---border-radius--button-radius);
  border: 1px solid #4d3e36;
  background-color: transparent;
  color: var(--dark-gray);
  font-family: var(--_typography---fonts--text-body);
  font-size: 13px;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.wl-reset:hover {
  color: var(--black);
  border-color: #b8a595;
}

/* Griglia carta */

.wl-grid {
  display: flex;
  flex-direction: column;
  gap: var(--_spacing-system---spacing--spacing-6xl);
}

.wl-area-title {
  color: #b8a5959e;
  font-size: 13px;
  font-weight: var(--_typography---font-weight--medium);
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: var(--_spacing-system---spacing--spacing-2xl);
}

.wl-root.is-flat .wl-area-title,
.wl-root.is-flat .wl-region-title {
  display: none;
}

.wl-root.is-flat .wl-region-block {
  margin-bottom: var(--_spacing-system---spacing--spacing-2xl);
}

.wl-region-block {
  margin-bottom: var(--_spacing-system---spacing--spacing-4xl);
}

.wl-region-block:last-child {
  margin-bottom: 0;
}

.wl-region-title {
  color: var(--black);
  font-family: var(--_typography---fonts--primary-font);
  font-size: var(--_typography---typography--h5);
  font-weight: var(--_typography---font-weight--light);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-s);
  margin: 0 0 var(--_spacing-system---spacing--spacing-l);
}

.wl-rows {
  display: flex;
  flex-direction: column;
}

.wl-row {
  display: flex;
  align-items: center;
  gap: var(--_spacing-system---spacing--spacing-l);
  padding: var(--_spacing-system---spacing--spacing-m) var(--_spacing-system---spacing--spacing-s);
  border-bottom: 1px solid #4d3e3680;
  transition: background-color 0.4s ease, padding-left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-row:last-child {
  border-bottom: none;
}

.wl-row:hover {
  background-color: #f3e8d80a;
  padding-left: var(--_spacing-system---spacing--spacing-l);
}

.wl-thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: var(--_spacing-system---border-radius--radius-s);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.wl-thumb:hover {
  transform: scale(1.04);
}

.wl-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3e8d80f;
  border: 1px solid #f3e8d81a;
}

.wl-thumb-placeholder span {
  color: var(--dark-gray);
  font-family: var(--_typography---fonts--primary-font);
  font-size: 19px;
  font-weight: var(--_typography---font-weight--light);
}

.wl-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wl-name {
  color: var(--black);
  font-size: 16px;
  font-weight: var(--_typography---font-weight--regular);
  letter-spacing: var(--_typography---letter-spacing--letter-spacing-4xs);
}

.wl-sub {
  color: #b8a5959e;
  font-size: 13px;
}

.wl-pairing {
  color: #b8a595b3;
  font-size: 12.5px;
  font-style: italic;
}

.wl-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--_spacing-system---spacing--spacing-l);
}

.wl-region-tag {
  display: none;
}

.wl-price {
  color: var(--black);
  font-size: 15px;
  font-weight: var(--_typography---font-weight--medium);
  white-space: nowrap;
}

/* Empty state carta */

.wl-empty {
  display: none;
  text-align: center;
  padding: var(--_spacing-system---spacing--spacing-6xl) 0;
}

.wl-empty.is-visible {
  display: block;
}

.wl-empty-title {
  color: var(--black);
  font-family: var(--_typography---fonts--primary-font);
  font-size: var(--_typography---typography--h4);
  font-weight: var(--_typography---font-weight--light);
  margin: 0 0 var(--_spacing-system---spacing--spacing-s);
}

.wl-empty-sub {
  color: #b8a5959e;
  font-size: var(--_typography---body-text--text-xxs);
  margin: 0;
}

/* Skeleton */

.wl-row-skeleton {
  pointer-events: none;
}

.wl-thumb-skeleton {
  background-color: #f3e8d80f;
}

.wl-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background-color: #f3e8d80f;
  animation: sp-pulse 1.4s ease-in-out infinite;
}

.wl-skeleton-line.w90 {
  width: 90%;
}

.wl-skeleton-line.w50 {
  width: 50%;
  margin-top: 8px;
}

.wl-skeleton-line.price {
  width: 64px;
  margin-left: auto;
}

.wl-row-skeleton .wl-side {
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   ANIMAZIONI
   -------------------------------------------------------------------------- */

@keyframes sp-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sp-pulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sp-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-suggestions,
  .sp-wine-card,
  .sp-chip,
  .sp-search-btn,
  .wl-row,
  .sp-results.is-visible {
    transition: none;
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */

@media screen and (max-width: 991px) {
  .sp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .smart-pairing-section {
    margin-right: 0;
    margin-left: 0;
    border-radius: 0;
    padding-top: var(--_spacing-system---spacing--spacing-6xl);
    padding-bottom: var(--_spacing-system---spacing--spacing-6xl);
  }

  .sp-title {
    font-size: var(--_typography---typography--h3);
  }

  .sp-bar {
    padding-left: 18px;
  }

  .sp-search-btn {
    height: 42px;
    padding: 0 20px;
  }

  .sp-search-btn .sp-search-btn-label {
    display: none;
  }

  .sp-search-btn {
    padding: 0;
    width: 42px;
  }

  .sp-cards-grid {
    grid-template-columns: 1fr;
    gap: var(--_spacing-system---spacing--spacing-m);
  }

  .sp-results-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--_spacing-system---spacing--spacing-l);
  }

  .wl-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .wl-filters {
    flex-direction: column;
    align-items: stretch;
  }

  .wl-search-wrap {
    max-width: none;
  }

  .wl-select,
  .wl-reset {
    width: 100%;
  }

  .wl-region-tag {
    display: none;
  }

  .wl-thumb {
    width: 72px;
    height: 72px;
  }

  .wl-pairing {
    display: none;
  }
}
