/* =========================================================================
   shop.css — stili dedicati alle pagine shop
   Usa le CSS variables del design system Borgo Vivente già definite in
   style.css: --terracotta, --terracotta-dark, --terracotta-light,
   --oliva, --corallo, --notte, --notte-soft, --avorio, --avorio-warm,
   --grigio-pietra
   ========================================================================= */

/* ---------- Container & sezioni ---------- */
.shop-section { padding: 56px 0; }
.shop-section--tinted { background: var(--avorio-warm); }
.shop-section--hero {
  padding: 80px 0 48px;
  text-align: center;
  background: var(--avorio-warm);
  background-image: linear-gradient(180deg, var(--avorio-warm) 0%, var(--avorio) 100%);
}
.shop-section--hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 48px);
}
.shop-section--hero .shop-lead {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--notte-soft);
  line-height: 1.55;
}
.shop-eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}

/* ---------- Breadcrumb shop ---------- */
.shop-breadcrumb {
  font-size: 13px;
  color: var(--grigio-pietra);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.shop-breadcrumb a {
  color: var(--grigio-pietra);
  text-decoration: none;
  transition: color 0.2s ease;
}
.shop-breadcrumb a:hover { color: var(--terracotta); }
.shop-breadcrumb-sep { margin: 0 6px; opacity: 0.6; }

/* ---------- Grid card ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  gap: 24px;
  justify-content: start;
}
.shop-grid--cat {
  grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
  gap: 24px;
}
/* Modifier: forza 4 colonne fisse (desktop) — usato in catalogo /it/shop */
.shop-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1023px) {
  .shop-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .shop-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .shop-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Card prodotto / categoria ---------- */
.shop-card {
  display: block;
  text-decoration: none;
  color: var(--notte);
  background: #fff;
  border: 1px solid var(--avorio-warm);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(29, 34, 48, 0.04);
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(29, 34, 48, 0.10);
  border-color: var(--terracotta-light);
}
.shop-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--avorio-warm);
  overflow: hidden;
}
.shop-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--avorio-warm);
}
.shop-card__img[src$=".svg"], .shop-card__img[src$=".SVG"] {
  object-fit: contain;
  padding: 24px;
  box-sizing: border-box;
}
.shop-card__img--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grigio-pietra);
  font-size: 32px;
}
.shop-card__body { padding: 16px 18px 20px; }
.shop-card__title {
  margin: 0 0 6px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--notte);
}
.shop-card__lead {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--grigio-pietra);
  line-height: 1.5;
  min-height: 39px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card__price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  color: var(--notte);
  line-height: 1;
}
.shop-card__price-old {
  display: inline-block;
  text-decoration: line-through;
  color: var(--grigio-pietra);
  font-weight: 400;
  font-size: 14px;
  margin-right: 8px;
  font-family: 'Manrope', sans-serif;
}
.shop-card__price-sale { color: var(--terracotta); }
.shop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--terracotta);
  color: var(--avorio);
}
.shop-card__media { position: relative; }

/* ---------- Tasti / filtri sotto-categorie ---------- */
.shop-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.shop-pill {
  padding: 8px 16px;
  border: 1px solid var(--avorio-warm);
  border-radius: 9999px;
  background: var(--avorio);
  color: var(--notte-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.shop-pill:hover {
  background: var(--terracotta);
  color: var(--avorio);
  border-color: var(--terracotta);
}
.shop-pill--active {
  background: var(--notte);
  color: var(--avorio);
  border-color: var(--notte);
}

/* ---------- Scheda prodotto ---------- */
.shop-prodotto { padding: 40px 0 80px; }
.shop-prodotto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.shop-prodotto__gallery img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--avorio-warm);
}
.shop-prodotto__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.shop-prodotto__thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.shop-prodotto__thumbs img:hover { transform: scale(1.05); }
.shop-prodotto__thumbs img.is-active { border-color: var(--terracotta); }

.shop-prodotto__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin: 0 0 10px;
  line-height: 1.15;
}
.shop-prodotto__meta {
  font-size: 14px;
  color: var(--grigio-pietra);
  margin: 0 0 18px;
}
.shop-prodotto__lead {
  font-size: 17px;
  color: var(--notte-soft);
  line-height: 1.6;
  margin: 0 0 24px;
}
.shop-prodotto__price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--terracotta);
  margin: 24px 0;
  line-height: 1;
}
.shop-prodotto__price-old {
  font-family: 'Manrope', sans-serif;
  text-decoration: line-through;
  color: var(--grigio-pietra);
  font-weight: 400;
  font-size: 22px;
  margin-right: 12px;
}
.shop-prodotto__price-iva {
  font-size: 13px;
  color: var(--grigio-pietra);
  font-weight: 400;
  font-family: 'Manrope', sans-serif;
  margin-left: 10px;
}
.shop-prodotto__addtocart {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 24px 0;
}
.shop-prodotto__features {
  margin: 30px 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--notte-soft);
}
.shop-prodotto__features li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--avorio-warm);
}
.shop-prodotto__features li:last-child { border-bottom: 0; }
.shop-prodotto__features b { color: var(--notte); }

.shop-prodotto__corpo {
  margin-top: 60px;
  max-width: 780px;
}
.shop-prodotto__corpo h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
}
.shop-prodotto__corpo p, .shop-prodotto__corpo li { font-size: 16px; line-height: 1.7; }

.shop-unavailable {
  padding: 14px 16px;
  background: var(--avorio-warm);
  border-left: 4px solid var(--corallo);
  border-radius: 6px;
  color: var(--notte);
  font-size: 14px;
}

/* ---------- Bottoni shop ---------- */
.shop-btn {
  display: inline-block;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  line-height: 1;
}
.shop-btn--primary { background: var(--terracotta); color: var(--avorio); }
.shop-btn--primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(200, 85, 61, 0.25); color: var(--avorio); }
.shop-btn--secondary { background: var(--notte); color: var(--avorio); }
.shop-btn--secondary:hover { background: var(--notte-soft); transform: translateY(-2px); color: var(--avorio); }
.shop-btn--ghost { background: transparent; color: var(--notte-soft); border: 1px solid var(--avorio-warm); }
.shop-btn--ghost:hover { background: var(--avorio-warm); color: var(--notte); }
.shop-btn--lg { padding: 16px 32px; font-size: 16px; }
.shop-btn--block { display: block; width: 100%; box-sizing: border-box; }

/* ---------- Quantità input ---------- */
.shop-qty-input {
  width: 76px;
  padding: 10px 12px;
  border: 1px solid var(--avorio-warm);
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  text-align: center;
}
.shop-qty-input:focus { outline: none; border-color: var(--terracotta); }

/* ---------- Carrello ---------- */
.shop-cart { padding: 40px 0 80px; }
.shop-cart__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-top: 30px;
}
.shop-cart__row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--avorio-warm);
}
.shop-cart__row img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--avorio-warm);
}
.shop-cart__row-title {
  margin: 0 0 4px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--notte);
}
.shop-cart__row-meta { font-size: 13px; color: var(--grigio-pietra); margin: 0 0 10px; }
.shop-cart__row-controls { display: flex; gap: 10px; align-items: center; }
.shop-cart__row-controls .shop-qty-input { width: 60px; padding: 4px 8px; font-size: 14px; }
.shop-cart__row-total {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  text-align: right;
}
.shop-cart__remove { color: var(--terracotta); font-size: 12px; margin-left: 8px; }
.shop-cart__remove:hover { color: var(--terracotta-dark); text-decoration: underline; }

.shop-summary {
  background: var(--avorio-warm);
  padding: 24px;
  border-radius: 16px;
  height: fit-content;
  position: sticky;
  top: 110px;
}
.shop-summary h3 { margin: 0 0 16px; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 22px; }
.shop-summary table { width: 100%; font-size: 15px; }
.shop-summary table td { padding: 6px 0; }
.shop-summary table td:last-child { text-align: right; }
.shop-summary__total td {
  border-top: 2px solid var(--notte);
  padding-top: 14px !important;
  font-size: 18px;
}
.shop-summary__total td:last-child {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 22px;
  font-weight: 500;
}

.shop-cart__empty {
  padding: 80px 0;
  text-align: center;
  color: var(--grigio-pietra);
}
.shop-cart__empty p { font-size: 18px; margin: 0 0 24px; }

/* ---------- Checkout ---------- */
.shop-checkout { padding: 40px 0 80px; }
.shop-checkout__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}
.shop-checkout h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px;
  margin: 30px 0 16px;
}
.shop-checkout h3:first-child { margin-top: 0; }
.shop-field { display: block; margin-bottom: 14px; font-size: 14px; color: var(--notte-soft); }
.shop-field input, .shop-field textarea, .shop-field select,
.shop-input, input.shop-input, textarea.shop-input, select.shop-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--avorio-warm);
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  background: var(--avorio);
  color: var(--notte);
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.shop-field input:focus, .shop-field textarea:focus, .shop-field select:focus,
.shop-input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(200, 85, 61, 0.12);
}
.shop-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.shop-row-3 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 14px; }
.shop-row-3-21 { display: grid; grid-template-columns: 3fr 1fr; gap: 14px; }

.shop-paymethod {
  display: block;
  padding: 16px;
  border: 1px solid var(--avorio-warm);
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.15s ease;
  background: var(--avorio);
}
.shop-paymethod:hover { border-color: var(--terracotta-light); }
.shop-paymethod input[type=radio] { margin-right: 8px; }
.shop-paymethod--disabled {
  opacity: 0.5;
  border-style: dashed;
  cursor: not-allowed;
  background: transparent;
}
.shop-paymethod-desc { margin: 6px 0 0 24px; font-size: 13px; color: var(--grigio-pietra); }

.shop-consent {
  margin-top: 30px;
  padding: 20px;
  background: var(--avorio-warm);
  border-radius: 12px;
}
.shop-consent label { display: block; margin-bottom: 10px; font-size: 14px; line-height: 1.5; }
.shop-consent label:last-child { margin-bottom: 0; }
.shop-consent input[type=checkbox] { margin-right: 8px; }
.shop-consent a { color: var(--terracotta); text-decoration: underline; }

/* ---------- Pagina grazie ---------- */
.shop-thanks { padding: 80px 0; max-width: 720px; margin: 0 auto; }
.shop-thanks__icon {
  width: 88px;
  height: 88px;
  background: var(--oliva);
  color: var(--avorio);
  border-radius: 50%;
  line-height: 88px;
  font-size: 44px;
  margin: 0 auto 24px;
  text-align: center;
}
.shop-thanks h1 {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.shop-thanks__sub { text-align: center; font-size: 18px; color: var(--notte-soft); margin: 0 0 30px; }
.shop-thanks__box {
  background: var(--avorio-warm);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
}
.shop-thanks__alert {
  background: #FEF6E1;
  border-left: 4px solid #B07C2E;
  padding: 20px;
  border-radius: 8px;
  margin: 24px 0;
}
.shop-thanks__cta { text-align: center; margin-top: 40px; }
.shop-thanks__cta .shop-btn { margin: 0 6px; }

/* ---------- Account ---------- */
.shop-account { padding: 60px 0; }
.shop-account .shop-account--centered { max-width: 380px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.shop-account h1 {
  text-align: center;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 8px;
}
.shop-account__sub { text-align: center; color: var(--grigio-pietra); margin: 0 0 24px; font-size: 14px; }
.shop-account__form { margin-top: 20px; }
.shop-account--centered .shop-field { margin-bottom: 12px; font-size: 13px; }
.shop-account--centered .shop-field input,
.shop-account--centered .shop-field select {
  padding: 10px 12px;
  font-size: 14px;
}
.shop-account--centered .shop-btn { font-size: 14px; padding: 11px 22px; }
.shop-account__divider {
  border-top: 1px solid var(--avorio-warm);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}
.shop-account__divider a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.shop-account__divider a:hover { text-decoration: underline; }

.shop-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
}
.shop-dashboard-tile {
  display: block;
  padding: 24px;
  background: var(--avorio);
  border: 1px solid var(--avorio-warm);
  border-radius: 12px;
  text-decoration: none;
  color: var(--notte);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.shop-dashboard-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(29, 34, 48, 0.08);
  border-color: var(--terracotta-light);
}
.shop-dashboard-tile h3 { margin: 0 0 6px; font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 600; }
.shop-dashboard-tile p { margin: 0; color: var(--grigio-pietra); font-size: 14px; }
.shop-dashboard-tile--danger { color: var(--terracotta); }

.shop-orders-table {
  width: 100%;
  margin-top: 24px;
  border-collapse: collapse;
  font-size: 14px;
}
.shop-orders-table thead th {
  background: var(--avorio-warm);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  color: var(--notte-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.shop-orders-table tbody td { padding: 14px 12px; border-bottom: 1px solid var(--avorio-warm); }
.shop-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--avorio);
}

/* ---------- Toolbar & paginazione lista ---------- */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--avorio-warm);
  flex-wrap: wrap;
}
.shop-toolbar__count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grigio-pietra);
  font-weight: 500;
}
.shop-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--notte-soft);
}
.shop-toolbar__sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--avorio-warm);
  border-radius: 8px;
  background: var(--avorio);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--notte);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231D2230' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.shop-toolbar__sort select:focus { outline: none; border-color: var(--terracotta); }

.shop-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 48px 0 0;
}
.shop-pagination__btn {
  display: inline-block;
  min-width: 40px;
  padding: 10px 16px;
  text-align: center;
  border: 1px solid var(--avorio-warm);
  border-radius: 8px;
  background: var(--avorio);
  color: var(--notte-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.shop-pagination__btn:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.shop-pagination__btn.is-active {
  background: var(--notte);
  border-color: var(--notte);
  color: var(--avorio);
}

/* ---------- Hero / category header ---------- */
.shop-cat-header { padding: 40px 0 20px; }
.shop-cat-header h1 {
  margin: 8px 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
}
.shop-cat-header__lead {
  font-size: 17px;
  color: var(--notte-soft);
  max-width: 780px;
  line-height: 1.55;
}

/* ---------- Empty state ---------- */
.shop-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--grigio-pietra);
  font-size: 15px;
}

/* ---------- Gallery con lightbox ---------- */
.shop-prodotto__cover-link {
  display: block;
  position: relative;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
}
.shop-prodotto__cover-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 34, 48, 0);
  transition: background 0.2s ease;
  pointer-events: none;
}
.shop-prodotto__cover-link:hover::after { background: rgba(29, 34, 48, 0.08); }
.shop-prodotto__zoom-icon {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--notte);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(29, 34, 48, 0.15);
  z-index: 2;
}

/* ---------- Quantity stepper ---------- */
.shop-qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--avorio-warm);
  border-radius: 9999px;
  overflow: hidden;
  background: var(--avorio);
}
.shop-qty-stepper button {
  border: none;
  background: transparent;
  color: var(--notte);
  font-size: 20px;
  font-weight: 600;
  width: 40px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: 'Manrope', sans-serif;
}
.shop-qty-stepper button:hover { background: var(--avorio-warm); }
.shop-qty-stepper button:active { background: var(--terracotta); color: var(--avorio); }
.shop-qty-stepper input {
  border: none;
  width: 50px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
  color: var(--notte);
  -moz-appearance: textfield;
}
.shop-qty-stepper input::-webkit-outer-spin-button,
.shop-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-qty-stepper input:focus { outline: none; }

/* ---------- Stock badge ---------- */
.shop-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Manrope', sans-serif;
  margin-bottom: 16px;
}
.shop-stock-badge--ok       { background: #E8F5EE; color: #1F5C3A; }
.shop-stock-badge--ok::before  { content: "●"; color: #2E8B57; font-size: 10px; }
.shop-stock-badge--low      { background: #FEF6E1; color: #6B4523; }
.shop-stock-badge--low::before { content: "●"; color: #B07C2E; font-size: 10px; }
.shop-stock-badge--out      { background: var(--avorio-warm); color: var(--grigio-pietra); }

/* ---------- Trust row ---------- */
.shop-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 0;
  margin: 24px 0;
  border-top: 1px solid var(--avorio-warm);
  border-bottom: 1px solid var(--avorio-warm);
}
.shop-trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--notte-soft);
  line-height: 1.4;
}
.shop-trust-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--terracotta);
}
.shop-trust-item b { display: block; color: var(--notte); font-size: 13px; margin-bottom: 2px; }

/* ---------- Tabs ---------- */
.shop-tabs {
  margin: 60px 0 40px;
  border-top: 1px solid var(--avorio-warm);
}
.shop-tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--avorio-warm);
  flex-wrap: wrap;
}
.shop-tabs__btn {
  padding: 16px 24px;
  background: transparent;
  border: none;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--grigio-pietra);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.shop-tabs__btn:hover { color: var(--notte); }
.shop-tabs__btn.is-active {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  font-weight: 600;
}
.shop-tabs__panel { padding: 32px 0; display: none; }
.shop-tabs__panel.is-active { display: block; }
.shop-tabs__panel { font-size: 16px; line-height: 1.7; color: var(--notte-soft); max-width: 780px; }
.shop-tabs__panel h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 22px; margin: 24px 0 12px; color: var(--notte); }
.shop-tabs__panel ul { padding-left: 20px; }
.shop-tabs__panel li { margin-bottom: 6px; }

/* ---------- Correlati ---------- */
.shop-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--avorio-warm);
}
.shop-related h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 24px;
}

/* ---------- Adjustments ---------- */
.shop-prodotto__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .shop-trust-row { grid-template-columns: 1fr; gap: 16px; }
  .shop-tabs__btn { padding: 12px 16px; font-size: 14px; }
  .shop-related h2 { font-size: 22px; }
}

/* ---------- Magnific Popup overrides (lightbox shop) ---------- */
.mfp-bg { background: var(--notte); opacity: 0.92; }
.mfp-image-holder .mfp-content { max-width: 1100px; }
.mfp-figure::after { background: transparent !important; box-shadow: none !important; }
.mfp-counter { color: var(--avorio-warm); font-family: 'Manrope', sans-serif; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .shop-prodotto__grid { grid-template-columns: 1fr; gap: 24px; }
  .shop-cart__grid { grid-template-columns: 1fr; gap: 24px; }
  .shop-checkout__grid { grid-template-columns: 1fr; gap: 24px; }
  .shop-summary { position: static; }
  .shop-row-3 { grid-template-columns: 1fr; }
  .shop-row-3-21 { grid-template-columns: 1fr; }
  .shop-row-2 { grid-template-columns: 1fr; }
  .shop-section, .shop-section--hero { padding: 40px 0; }
  .shop-prodotto, .shop-cart, .shop-checkout { padding: 24px 0 60px; }
  .shop-cart__row { grid-template-columns: 80px 1fr; }
  .shop-cart__row-total { grid-column: 1 / -1; text-align: left; padding-top: 8px; }
}

/* =========================================================================
   eventi — pagine /it/eventi (lista) coerente con design system Borgo Vivente
   ========================================================================= */

/* Hero con immagine + overlay */
.eventi-hero {
  position: relative;
  min-height: 360px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}
.eventi-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(29, 34, 48, 0.35) 0%,
    rgba(29, 34, 48, 0.65) 100%);
}
.eventi-hero__inner {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  text-align: center;
  color: var(--avorio);
  width: 100%;
  box-sizing: border-box;
}
.eventi-hero__eyebrow {
  color: var(--terracotta-light);
  margin-bottom: 18px;
}
.eventi-hero__title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  color: var(--avorio);
  font-weight: 600;
}
.eventi-hero__lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: 17px;
  color: rgba(252, 250, 246, 0.88);
  line-height: 1.5;
}

/* Sezione contenitore */
.eventi-section {
  padding: 48px 0 80px;
  background: var(--avorio);
}

/* Toolbar (pills + segnala) */
.eventi-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--avorio-warm);
}
.eventi-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 auto;
}
.eventi-pill {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--avorio-warm);
  border-radius: 9999px;
  background: var(--avorio);
  color: var(--notte-soft);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.eventi-pill:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
}
.eventi-pill--active {
  background: var(--notte);
  color: var(--avorio);
  border-color: var(--notte);
}
.eventi-pill--active:hover {
  background: var(--notte-soft);
  color: var(--avorio);
  border-color: var(--notte-soft);
}
.eventi-segnala {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--terracotta);
  color: var(--avorio);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.eventi-segnala:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  color: var(--avorio);
}
.eventi-segnala i { font-size: 12px; }

/* Grid */
.eventi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1023px) { .eventi-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (max-width: 640px)  { .eventi-grid { grid-template-columns: 1fr; gap: 20px; } }

/* Card evento */
.eventi-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--avorio-warm);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--notte);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 1px 3px rgba(29, 34, 48, 0.04);
}
.eventi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(29, 34, 48, 0.10);
  border-color: var(--terracotta-light);
}
.eventi-card__media {
  position: relative;
  overflow: hidden;
  background: var(--avorio-warm);
}
.eventi-card__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.eventi-card:hover .eventi-card__media img { transform: scale(1.04); }

/* Badge data sovrapposto sulla foto */
.eventi-card__date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--avorio);
  color: var(--notte);
  border-radius: 12px;
  padding: 8px 12px 6px;
  text-align: center;
  min-width: 54px;
  box-shadow: 0 4px 12px rgba(29, 34, 48, 0.18);
  line-height: 1;
}
.eventi-card__date-day {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}
.eventi-card__date-month {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--notte-soft);
  margin-top: 4px;
  font-weight: 500;
}

/* Badge "Concluso" per eventi passati */
.eventi-card__badge-passato {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(29, 34, 48, 0.85);
  color: var(--avorio);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}
.eventi-card--passato .eventi-card__media img { filter: grayscale(0.35) brightness(0.95); }

/* Corpo card */
.eventi-card__body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.eventi-card__title {
  margin: 0 0 8px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--notte);
  letter-spacing: -0.01em;
}
.eventi-card__lead {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grigio-pietra);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.eventi-card__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--avorio-warm);
}
.eventi-card__meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--notte-soft);
  line-height: 1.4;
}
.eventi-card__meta-item i {
  color: var(--terracotta);
  margin-top: 3px;
  font-size: 13px;
  width: 14px;
  flex-shrink: 0;
}

/* Empty state */
.eventi-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--grigio-pietra);
}
.eventi-empty i {
  font-size: 48px;
  color: var(--terracotta-light);
  margin-bottom: 20px;
  display: block;
}
.eventi-empty h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 24px;
  color: var(--notte);
  margin: 0 0 10px;
  font-weight: 600;
}
.eventi-empty p {
  font-size: 15px;
  margin: 0;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .eventi-hero { min-height: 280px; }
  .eventi-hero__inner { padding: 56px 20px; }
  .eventi-section { padding: 32px 0 60px; }
  .eventi-toolbar { flex-direction: column; align-items: stretch; }
  .eventi-segnala { justify-content: center; }
  .eventi-card__title { font-size: 18px; }
}
