/**
 * DomShop — Home Redesign v2 (Commercial Premium Hybrid)
 *
 * Stili per i componenti home:
 *   0) Promo bar sticky (.ds-promobar)
 *   1) Hero full-width compact con prezzo (.ds-hero)
 *   2) FAQ 2 colonne con chevron animato bg nero / icona gialla (.ds-faq)
 *   3) Trustrow inline compact (.ds-trustrow)
 *   4) Review widget classico — grid 4 colonne compact (.ds-review-widget-wrapper)
 *
 * Solo token --ds-* del tema. Selettori prefissati `section.ds-hero` ecc
 * per battere la specificità delle regole esistenti nel theme style.css.
 */

/* =========================================================================
   0) PROMO BAR — sticky top yellow strip (sale-driven)
   ========================================================================= */
.ds-promobar {
  background: var(--ds-yellow, #FFC107);
  color: var(--ds-black, #2b2b2b);
  font-family: var(--ds-font, "Inter", system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 10px 24px;
  text-align: center;
  line-height: 1.4;
  position: relative;
  z-index: 200;
}
.ds-promobar a {
  color: var(--ds-black, #2b2b2b);
  text-decoration: underline;
  font-weight: 700;
}
.ds-promobar strong { font-weight: 800; }
.ds-promobar__divider {
  display: inline-block;
  margin: 0 12px;
  opacity: .35;
}
@media (max-width: 600px) {
  .ds-promobar { font-size: 12px; padding: 9px 14px; }
  .ds-promobar__divider { margin: 0 8px; }
}

/* =========================================================================
   1) HERO — Sale-driven (Commercial Premium)
   Full-width sezione, contenuto split 1:1, prezzo block + CTA singolo grande
   + live counter SVG + mosaic 3-img a destra con sticker sconto
   ========================================================================= */
section.ds-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  background: var(--ds-surface, #fbfbf7) !important;
  background-image: none !important;
  padding: clamp(36px, 5vw, 64px) 24px !important;
  margin: 0 !important;
  min-height: 0 !important;
  color: var(--ds-black, #2b2b2b) !important;
  overflow: visible !important;
}

section.ds-hero > .ds-hero__bg,
section.ds-hero > .ds-hero__overlay,
section.ds-hero > .ds-hero__accent,
section.ds-hero .ds-hero__scroll { display: none !important; }

section.ds-hero .ds-hero__inner {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

section.ds-hero .ds-hero__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

section.ds-hero .ds-hero__content {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  max-width: none !important;
  gap: 14px;
}

section.ds-hero .ds-hero__title {
  font-family: var(--ds-font, "Inter", system-ui, sans-serif) !important;
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -.025em !important;
  color: var(--ds-black, #2b2b2b) !important;
  margin: 0 !important;
  text-shadow: none !important;
  text-wrap: balance;
}

section.ds-hero .ds-hero__tagline {
  font-size: 17px !important;
  font-weight: 500 !important;
  color: var(--ds-black, #2b2b2b) !important;
  margin: 0 !important;
  text-shadow: none !important;
  line-height: 1.5;
}
section.ds-hero .ds-hero__tagline strong {
  font-weight: 800 !important;
  background: linear-gradient(transparent 60%, var(--ds-yellow, #FFC107) 60%);
  padding: 0 2px;
}

/* Rating inline */
section.ds-hero .ds-hero__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ds-muted, rgba(0,0,0,.6));
}
section.ds-hero .ds-hero__rating-stars {
  color: #f5b73d;
  letter-spacing: .1em;
  font-family: Times, serif;
  font-size: 15px;
}
section.ds-hero .ds-hero__rating-text strong {
  color: var(--ds-black, #2b2b2b);
  font-weight: 700;
}

/* Pricing block */
section.ds-hero .ds-hero__pricing {
  display: flex !important;
  align-items: baseline !important;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--ds-bg, #fff);
  border: 1px solid var(--ds-border, rgba(0,0,0,.12));
  border-radius: var(--ds-radius, 12px);
  padding: 14px 18px;
  margin: 4px 0 !important;
}
section.ds-hero .ds-hero__price-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ds-muted, rgba(0,0,0,.6));
}
section.ds-hero .ds-hero__price {
  font-size: clamp(30px, 3.5vw, 40px);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ds-black, #2b2b2b);
  line-height: 1;
}
section.ds-hero .ds-hero__price-strike {
  font-size: 16px;
  font-weight: 500;
  color: var(--ds-muted, rgba(0,0,0,.6));
  text-decoration: line-through;
}
section.ds-hero .ds-hero__discount {
  font-size: 13px;
  font-weight: 800;
  background: var(--ds-yellow, #FFC107);
  color: var(--ds-black, #2b2b2b);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
}

/* CTA singolo grande giallo con prezzo nel bottone */
section.ds-hero .ds-hero__cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  background: var(--ds-yellow, #FFC107) !important;
  color: var(--ds-black, #2b2b2b) !important;
  padding: 16px 30px !important;
  border: none !important;
  border-radius: 999px !important;
  font-family: var(--ds-font, "Inter", system-ui, sans-serif) !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  letter-spacing: .02em !important;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(255, 193, 7, .35);
  transition: transform .2s, box-shadow .2s;
  margin-top: 4px !important;
  text-shadow: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
section.ds-hero .ds-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 193, 7, .45);
}
section.ds-hero .ds-hero__cta-price {
  font-size: 14px;
  font-weight: 700;
  background: var(--ds-black, #2b2b2b);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
}

/* Guarantees row */
section.ds-hero .ds-hero__guarantees {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
section.ds-hero .ds-hero__guarantee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ds-muted, rgba(0,0,0,.6));
}
section.ds-hero .ds-hero__guarantee svg {
  width: 14px;
  height: 14px;
  color: var(--ds-success, #2f7d4a);
  flex-shrink: 0;
}

/* Live counter (flame SVG, no emoji) */
section.ds-hero .ds-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ds-black, #2b2b2b);
  font-weight: 600;
  background: var(--ds-surface-2, #f1f1ec);
  padding: 8px 14px;
  border-radius: 999px;
  margin-top: 8px;
}
section.ds-hero .ds-hero__live-icon {
  width: 16px;
  height: 16px;
  color: var(--ds-yellow, #FFC107);
  flex-shrink: 0;
}

/* RIGHT — mosaic 3 immagini + sticker rotato */
section.ds-hero .ds-hero__media {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
  border-radius: 0 !important;
}
section.ds-hero .ds-hero__mosaic {
  display: grid !important;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  aspect-ratio: 1 / 1;
}
section.ds-hero .ds-hero__mosaic-item {
  border-radius: var(--ds-radius, 12px);
  overflow: hidden;
  background: var(--ds-surface-2, #f1f1ec);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
section.ds-hero .ds-hero__mosaic-item:nth-child(1) { grid-row: 1 / 3; }
section.ds-hero .ds-hero__mosaic-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

/* Sticker rotondo % sconto rotato */
section.ds-hero .ds-hero__sticker {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 96px;
  height: 96px;
  background: var(--ds-yellow, #FFC107);
  color: var(--ds-black, #2b2b2b);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-family: var(--ds-font, "Inter", system-ui, sans-serif);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  transform: rotate(-12deg);
  z-index: 5;
  border: 4px solid #fff;
  text-align: center;
  padding: 0 6px;
}
section.ds-hero .ds-hero__sticker-pct {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
section.ds-hero .ds-hero__sticker-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 2px;
}

@media (max-width: 900px) {
  section.ds-hero .ds-hero__grid { grid-template-columns: 1fr !important; }
  section.ds-hero .ds-hero__mosaic { aspect-ratio: 16/10; max-height: 360px; margin: 0 auto; }
  section.ds-hero .ds-hero__sticker { width: 80px; height: 80px; top: -12px; right: -12px; }
  section.ds-hero .ds-hero__sticker-pct { font-size: 16px; }
}

/* =========================================================================
   2) FAQ — 2 colonne con chevron rotate (bg nero, icona gialla)
   ========================================================================= */
.ds-faq {
  max-width: 1080px;
  margin: clamp(48px, 6vw, 80px) auto;
  padding: 0 24px;
  background: transparent;
}
.ds-faq__head {
  text-align: center;
  margin-bottom: 32px;
}
.ds-faq__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ds-muted, rgba(0,0,0,.6));
  margin-bottom: 10px;
}
.ds-faq__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--ds-black, #2b2b2b);
  margin: 0;
}

/* Grid 2 colonne */
.ds-faq__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
@media (max-width: 720px) {
  .ds-faq__list { grid-template-columns: 1fr; }
}

.ds-faq__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ds-faq__item {
  background: var(--ds-bg, #fff);
  border: 1px solid var(--ds-border, rgba(0,0,0,.12));
  border-radius: var(--ds-radius, 12px);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.ds-faq__item:hover {
  border-color: var(--ds-border-strong, rgba(0,0,0,.22));
}
.ds-faq__item.is-open {
  border-color: var(--ds-black, #2b2b2b);
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.ds-faq__question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  font-family: var(--ds-font, "Inter", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ds-black, #2b2b2b);
}
.ds-faq__qtext { flex: 1 1 auto; }

/* Chevron: bg NERO del tema, icona GIALLO del tema, ruota su open */
.ds-faq__chevron {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ds-black, #2b2b2b);
  color: var(--ds-yellow, #FFC107);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.ds-faq__chevron svg { width: 13px; height: 13px; }
/* Closed → chevron down (default). Open → ruota 180° (= chevron up) */
.ds-faq__item.is-open .ds-faq__chevron {
  transform: rotate(180deg);
}

.ds-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.16,1,.3,1);
}
.ds-faq__item.is-open .ds-faq__answer { max-height: 500px; }
.ds-faq__answerInner {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ds-muted, rgba(0,0,0,.6));
}

/* =========================================================================
   3) TRUSTROW — Full-bleed background, icone e testi più grandi
   ========================================================================= */
.ds-trustrow {
  /* full-width: NO max-width, NO border-radius, NO margin auto orizzontale */
  max-width: none !important;
  width: 100% !important;
  margin: clamp(48px, 5vw, 72px) 0 !important;
  padding: clamp(36px, 4vw, 56px) 24px !important;
  background: var(--ds-surface, #fbfbf7) !important;
  border-radius: 0 !important;
  color: var(--ds-black, #2b2b2b) !important;
  /* Garantiamo full-bleed anche se siamo dentro <main> con max-width */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  /* fix scroll horizontal: clip overflow */
  max-width: 100vw !important;
  box-sizing: border-box;
}

.ds-trustrow .ds-trustrow__inner {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 28px !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.ds-trustrow .ds-trustrow__item {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  text-align: left !important;
  padding: 0 !important;
  position: static;
}
.ds-trustrow .ds-trustrow__item::before { display: none !important; }

.ds-trustrow .ds-trustrow__icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 64px !important;
  height: 64px !important;
  border-radius: 999px;
  background: var(--ds-bg, #fff);
  border: 1px solid var(--ds-border, rgba(0,0,0,.12));
  color: var(--ds-black, #2b2b2b);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ds-trustrow .ds-trustrow__icon svg { width: 28px; height: 28px; }

.ds-trustrow .ds-trustrow__text {
  font-family: var(--ds-font, "Inter", system-ui, sans-serif);
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -.005em !important;
  text-transform: none !important;
  color: var(--ds-black, #2b2b2b) !important;
  line-height: 1.3;
  margin: 0 !important;
  display: block;
}
.ds-trustrow .ds-trustrow__text small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ds-muted, rgba(0,0,0,.6));
  margin-top: 4px;
  letter-spacing: 0;
}

/* Tablet & mobile: 4 item impilati verticalmente, icona+testo allineati a sinistra */
@media (max-width: 900px) {
  .ds-trustrow {
    padding: clamp(28px, 6vw, 40px) 20px !important;
  }
  .ds-trustrow .ds-trustrow__inner {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    max-width: 480px !important;
  }
  .ds-trustrow .ds-trustrow__item {
    gap: 14px !important;
  }
  .ds-trustrow .ds-trustrow__icon { width: 52px !important; height: 52px !important; }
  .ds-trustrow .ds-trustrow__icon svg { width: 22px; height: 22px; }
  .ds-trustrow .ds-trustrow__text { font-size: 15px !important; }
  .ds-trustrow .ds-trustrow__text small { font-size: 12px; }
}

/* =========================================================================
   4) REVIEW WIDGET CLASSICO — Grid 4 colonne compact ("wall of love")
   ========================================================================= */
.ds-review-widget-wrapper {
  max-width: 1320px;
  margin: clamp(36px, 5vw, 56px) auto;
  padding: 0 24px;
  background: transparent;
}
.ds-review-widget-wrapper .ds-review-widget-header {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
  padding: 0 !important;
}
.ds-review-widget-wrapper .ds-review-title {
  font-family: var(--ds-font);
  font-size: clamp(22px, 2.4vw, 28px) !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
  line-height: 1.1 !important;
  color: var(--ds-black, #2b2b2b) !important;
  margin: 0 !important;
}
.ds-review-widget-wrapper .ds-review-nav { display: none !important; }

.ds-review-widget-wrapper .ds-sectionsell__carousel {
  overflow: visible !important;
  padding: 0 !important;
}
.ds-review-widget-wrapper .ds-review-carousel {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  overflow: visible !important;
}
.ds-review-widget-wrapper .ds-review-card {
  background: var(--ds-bg, #fff) !important;
  border: 1px solid var(--ds-border, rgba(0,0,0,.12)) !important;
  border-radius: var(--ds-radius, 12px) !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  transition: transform .2s, box-shadow .2s;
}
.ds-review-widget-wrapper .ds-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

/* Stars compact */
.ds-review-widget-wrapper .ds-review-stars {
  font-size: 0 !important;
  line-height: 1;
}
.ds-review-widget-wrapper .ds-review-stars .ds-star {
  width: 14px !important;
  height: 14px !important;
  display: inline-block !important;
}
.ds-review-widget-wrapper .ds-review-stars .ds-star + .ds-star { margin-left: 2px; }
.ds-review-widget-wrapper .ds-review-stars .ds-star.filled path { fill: #f5b73d !important; }
.ds-review-widget-wrapper .ds-review-stars .ds-star.empty path { fill: rgba(0,0,0,.15) !important; }

/* Header con avatar+nome+verified (riposizionato a piè di card) */
.ds-review-widget-wrapper .ds-review-card-header {
  display: flex !important;
  align-items: center;
  gap: 10px;
  order: 99;
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--ds-border, rgba(0,0,0,.12));
}
.ds-review-widget-wrapper .ds-review-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 999px !important;
  background: var(--ds-surface-2, #f1f1ec) !important;
  color: var(--ds-black, #2b2b2b) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  flex-shrink: 0 !important;
}
.ds-review-widget-wrapper .ds-review-meta {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}
.ds-review-widget-wrapper .ds-review-author {
  font-weight: 700 !important;
  font-size: 12px !important;
  color: var(--ds-black, #2b2b2b) !important;
}
.ds-review-widget-wrapper .ds-review-verified {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 10px !important;
  color: var(--ds-success, #2f7d4a) !important;
  font-weight: 600 !important;
}
.ds-review-widget-wrapper .ds-review-verified svg { width: 10px; height: 10px; }

/* Content msg */
.ds-review-widget-wrapper .ds-review-content { order: 2; }
.ds-review-widget-wrapper .ds-review-content p {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: var(--ds-black, #2b2b2b) !important;
  margin: 0 !important;
  font-weight: 500 !important;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product link */
.ds-review-widget-wrapper .ds-review-product {
  order: 3;
  padding-top: 10px;
  border-top: 1px dashed var(--ds-border, rgba(0,0,0,.12));
  font-size: 11px !important;
  color: var(--ds-muted, rgba(0,0,0,.6)) !important;
  font-weight: 500 !important;
}
.ds-review-widget-wrapper .ds-review-product span { margin-right: 4px; }
.ds-review-widget-wrapper .ds-review-product a {
  color: var(--ds-black, #2b2b2b) !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  border-bottom: 1px solid transparent !important;
}
.ds-review-widget-wrapper .ds-review-product a:hover {
  border-bottom-color: var(--ds-black, #2b2b2b) !important;
}

.ds-review-widget-wrapper .ds-review-stars { order: 1; }

@media (max-width: 1080px) {
  .ds-review-widget-wrapper .ds-review-carousel { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 720px) {
  .ds-review-widget-wrapper .ds-review-carousel { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  .ds-review-widget-wrapper .ds-review-carousel { grid-template-columns: 1fr !important; }
}
