:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations {
  --bn-catalog-line: rgba(255, 255, 255, 0.72);
  --bn-catalog-text: #fff;
  --bn-catalog-dark: #202020;
  position: relative;
  z-index: 3;
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 16px;
  gap: 10px;
}

/* Il prezzo è già riportato nei pulsanti delle variazioni. */
.woocommerce ul.products li.product.bn-has-catalog-variations .price,
.home .wc-block-product.bn-has-catalog-variations > .wp-block-woocommerce-product-price {
  display: none !important;
}

@supports selector(:has(*)) {
  .woocommerce ul.products li.product:has(.bn-catalog-variations) .price,
  .home .wc-block-product:has(.bn-catalog-variations) > .wp-block-woocommerce-product-price {
    display: none !important;
  }
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations * {
  box-sizing: border-box;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations__label {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations__buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation.is-selected {
  grid-column: 1 / -1;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations.has-open-variation .bn-catalog-variation:not(.is-selected) {
  display: none;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__button {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 8px 30px 8px 10px;
  place-content: center;
  gap: 2px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease,
    border-radius 180ms ease;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__button:hover,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__button:focus-visible {
  border-color: var(--bn-catalog-dark);
  background: var(--bn-catalog-dark);
  color: var(--bn-catalog-text);
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation.is-selected .bn-catalog-variation__button {
  border-color: #fff;
  border-radius: 7px 7px 0 0;
  background: #fff;
  color: var(--bn-catalog-dark);
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__name {
  font-size: 13px;
  font-weight: 700;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__price,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__price .amount {
  color: inherit;
  font-size: 11px;
  font-weight: 500;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__chevron {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 180ms ease;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation.is-open .bn-catalog-variation__chevron {
  transform: translateY(-30%) rotate(225deg);
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__confirm {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: max-height 260ms ease, opacity 180ms ease;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation.is-open .bn-catalog-variation__confirm {
  max-height: 120px;
  opacity: 1;
  pointer-events: auto;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__confirm-inner {
  display: grid;
  grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  padding: 8px;
  border: 1px solid #fff;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: transparent;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity {
  display: grid;
  grid-template-columns: 32px minmax(24px, 1fr) 32px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.16);
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__control,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: center;
  box-shadow: none;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__control {
  font-size: 18px;
  cursor: pointer;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__control:hover,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__control:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__control:disabled {
  opacity: 0.32;
  cursor: not-allowed;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__input {
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  appearance: textfield;
  -moz-appearance: textfield;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__input::-webkit-inner-spin-button,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-quantity__input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit:hover,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit:active,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit.is-loading,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit.is-added {
  background: #fff;
  color: var(--bn-catalog-dark);
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit.is-loading,
:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit:disabled {
  opacity: 1;
  cursor: wait;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit--fallback {
  margin-top: 8px;
}

:where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations__status {
  min-height: 1em;
  margin: 0;
  color: inherit;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
}

@media (max-width: 544px) {
  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variations__buttons {
    grid-template-columns: 1fr;
  }

  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__button {
    min-height: 44px;
  }

  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__confirm-inner {
    grid-template-columns: 1fr;
  }

  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation.is-open .bn-catalog-variation__confirm {
    max-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__button,
  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__chevron,
  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__confirm,
  :where(.woocommerce ul.products li.product, .wc-block-product) .bn-catalog-variation__submit {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Home / WooCommerce Product Collection — trasposizione del blocco Figma.
   -------------------------------------------------------------------------- */

.home .wp-block-woocommerce-product-collection {
  --bn-showcase-card-width: clamp(320px, 42vw, 532px);
  --bn-showcase-gap: 20px;
  width: 100%;
  max-width: none;
  overflow: visible;
}

/* Il titolo di sezione "Prodotti" è già presente sopra alla collection. */
.home .wp-block-woocommerce-product-collection > .wp-block-heading {
  display: none;
}

.home .wp-block-woocommerce-product-collection .wc-block-product-template {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: var(--bn-showcase-card-width);
  align-items: start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 50px max(20px, calc((100vw - 1280px) / 2)) 34px;
  gap: var(--bn-showcase-gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: max(20px, calc((100vw - 1280px) / 2));
  scroll-snap-type: inline proximity;
  scrollbar-color: rgba(184, 169, 20, 0.9) rgba(255, 255, 255, 0.12);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.home .wp-block-woocommerce-product-collection .wc-block-product-template::-webkit-scrollbar {
  height: 7px;
}

.home .wp-block-woocommerce-product-collection .wc-block-product-template::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
}

.home .wp-block-woocommerce-product-collection .wc-block-product-template::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: #b8a914;
}

.home .wp-block-woocommerce-product-collection .wc-block-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "image image"
    "title price"
    "actions actions";
  align-content: start;
  width: 100% !important;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  background: #1e1e1e;
  color: #fff;
  text-align: left;
  scroll-snap-align: start;
  transition: opacity 220ms ease;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-image {
  grid-area: image;
  width: 100%;
  aspect-ratio: 532 / 646;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #e9ddb6;
}

.home .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image > a,
.home .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.home .wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
  object-fit: cover;
  object-position: center;
  filter: none;
  box-shadow: none;
  transform: none !important;
  transition: none !important;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-post-title {
  grid-area: title;
  min-width: 0;
  margin: 24px 12px 0 8px;
  color: #fff;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: clamp(24px, 2vw, 32px) !important;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-align: left !important;
  text-transform: uppercase;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-price {
  grid-area: price;
  align-self: start;
  min-width: max-content;
  margin: 23px 8px 0 0;
  color: #fff;
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: clamp(20px, 1.7vw, 28px) !important;
  font-weight: 400;
  line-height: 1.1;
  text-align: right !important;
  white-space: nowrap;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-price .amount,
.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-price .woocommerce-Price-currencySymbol {
  color: inherit;
  font: inherit;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .bn-catalog-variations {
  grid-area: actions;
  margin: 18px 8px 0;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-product-meta {
  display: none;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variations__label {
  display: block;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-family: "Avenir Next", Avenir, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variations__buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__button {
  min-height: 52px;
  padding: 8px 30px 8px 12px;
  border-color: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__name {
  font-size: 17px;
  font-weight: 800;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__price,
.home .wp-block-woocommerce-product-collection .bn-catalog-variation__price .amount {
  font-size: 13px;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variations__status:empty {
  display: none;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variations__status:not(:empty) {
  margin-top: 4px;
}

@media (max-width: 921px) {
  .home .wp-block-woocommerce-product-collection {
    --bn-showcase-card-width: min(72vw, 440px);
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product-template {
    padding-inline: 24px;
    scroll-padding-inline: 24px;
  }
}

@media (max-width: 544px) {
  .home .wp-block-woocommerce-product-collection {
    --bn-showcase-card-width: 86vw;
    --bn-showcase-gap: 14px;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product-template {
    padding: 30px 16px 24px;
    scroll-padding-inline: 16px;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-post-title {
    margin-top: 18px;
    font-size: 24px !important;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-price {
    margin-top: 18px;
    font-size: 19px !important;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product > .bn-catalog-variations {
    margin-top: 14px;
  }

  .home .wp-block-woocommerce-product-collection .bn-catalog-product-meta {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .home .wp-block-woocommerce-product-collection .bn-catalog-variations__buttons {
    grid-template-columns: 1fr;
  }
}

/* Showcase verticale: stessa struttura delle card Shop, con immagine da 500px. */
.home .site-content {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.home .wp-block-woocommerce-product-collection {
  --bn-showcase-card-width: 375px;
  position: relative;
  height: auto;
  max-height: none;
  overflow: visible;
}

.home .wp-block-woocommerce-product-collection .wc-block-product-template {
  align-items: start;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 0;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  contain: paint;
}

.home .wp-block-woocommerce-product-collection .wc-block-product-template::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.home .wp-block-woocommerce-product-collection .wc-block-product {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  max-height: none;
  overflow: visible;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-image {
  width: 100%;
  height: 500px;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 8px;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-post-title {
  width: 100%;
  margin: 13px 0 8px;
  font-size: 20px !important;
  line-height: 1.05;
  text-align: left !important;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-price {
  width: 100%;
  min-width: 0;
  margin: 0 0 7px;
  font-size: 16px !important;
  line-height: 1.15;
  text-align: left !important;
}

.home .wp-block-woocommerce-product-collection .wc-block-product > .bn-catalog-variations {
  align-self: stretch;
  width: 100%;
  margin: 16px 0 0;
  gap: 10px;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-product-meta {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.25;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variations__buttons {
  gap: 8px;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__button {
  min-height: 48px;
  padding: 8px 30px 8px 10px;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__name {
  font-size: 13px;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__price,
.home .wp-block-woocommerce-product-collection .bn-catalog-variation__price .amount {
  font-size: 11px;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__confirm-inner {
  padding: 8px;
  gap: 8px;
}

.home .wp-block-woocommerce-product-collection .bn-showcase-navigation {
  position: absolute;
  z-index: 20;
  inset: 0;
  pointer-events: none;
}

.home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button {
  position: absolute;
  top: 250px;
  display: grid;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: rgba(30, 30, 30, 0.88);
  color: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}

.home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button--previous {
  left: -44px;
}

.home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button--next {
  right: -44px;
}

.home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button:hover,
.home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #1e1e1e;
  outline: 0;
}

.home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button:focus-visible {
  box-shadow: 0 0 0 3px rgba(184, 169, 20, 0.72);
}

.home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button:disabled {
  visibility: visible;
  opacity: 0.32;
  cursor: default;
  pointer-events: none;
}

@media (min-width: 922px) {
  .home .wp-block-woocommerce-product-collection .wc-block-product-template {
    justify-content: start;
    padding-left: 0 !important;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product:first-child {
    margin-left: 0 !important;
  }
}

@media (max-width: 921px) {
  .home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button--previous {
    left: -20px;
  }

  .home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button--next {
    right: -20px;
  }
}

@media (max-width: 544px) {
  .home .wp-block-woocommerce-product-collection {
    /* Una card intera + anteprima della successiva come affordance allo swipe. */
    --bn-showcase-card-width: 75%;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-image {
    width: 100%;
    height: 500px;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-post-title {
    margin: 13px 0 8px;
    font-size: 20px !important;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product > .wp-block-woocommerce-product-price {
    margin: 0 0 7px;
    font-size: 16px !important;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product > .bn-catalog-variations {
    margin: 16px 0 0;
  }

  .home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   Home / Servizi — stesso gesto touch e la stessa anteprima del prodotto dopo.
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
  body.home .servizi-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    gap: 16px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  body.home .servizi-carousel::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  body.home .servizi-carousel > .wp-block-column {
    flex: 0 0 75% !important;
    width: 75%;
    min-width: 75%;
    margin: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .wp-block-woocommerce-product-collection .bn-showcase-navigation__button {
    transition: none;
  }

  .home .wp-block-woocommerce-product-collection .wc-block-product-template,
  body.home .servizi-carousel {
    scroll-behavior: auto;
  }
}

/* Stati interattivi: stessi contrasti della pagina Shop. */
.home .wp-block-woocommerce-product-collection
  .bn-catalog-variation.is-selected
  .bn-catalog-variation__button {
  border-color: #fff !important;
  background: #fff !important;
  color: #202020 !important;
}

.home .wp-block-woocommerce-product-collection
  .bn-catalog-variation.is-selected
  .bn-catalog-variation__button:hover,
.home .wp-block-woocommerce-product-collection
  .bn-catalog-variation.is-selected
  .bn-catalog-variation__button:focus-visible {
  border-color: #fff !important;
  background: #fff !important;
  color: #202020 !important;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-quantity__control,
.home .wp-block-woocommerce-product-collection .bn-catalog-quantity__input {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  box-shadow: none !important;
  opacity: 1 !important;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-quantity__input {
  border-right: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.32) !important;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__submit {
  border-color: #fff !important;
  background: transparent !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__submit:hover,
.home .wp-block-woocommerce-product-collection .bn-catalog-variation__submit:focus-visible {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-variation__submit:active,
.home .wp-block-woocommerce-product-collection .bn-catalog-variation__submit.is-loading,
.home .wp-block-woocommerce-product-collection .bn-catalog-variation__submit.is-added {
  background: #fff !important;
  color: #202020 !important;
  -webkit-text-fill-color: #202020;
}

/* Una sola variazione deve occupare tutta la riga, in home e nello Shop. */
:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-variations__buttons
  > .bn-catalog-variation:only-child {
  grid-column: 1 / -1;
  width: 100%;
}

/* Neutralizza padding e dimensioni applicati da Astra ai button e agli input. */
:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-quantity {
  grid-template-columns: 30px minmax(28px, 1fr) 30px !important;
  height: 44px;
  min-height: 44px;
  align-items: stretch;
}

:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-quantity__control,
:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-quantity__input {
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-quantity__control {
  display: grid !important;
  place-items: center;
  font-size: 18px !important;
  text-align: center;
}

:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-quantity__input {
  display: block !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-align: center !important;
  text-indent: 0 !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  appearance: textfield !important;
  -moz-appearance: textfield !important;
  border-right: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.32) !important;
}

@media (min-width: 545px) {
  .home .wp-block-woocommerce-product-collection
    .bn-catalog-variation__confirm-inner {
    grid-template-columns: minmax(132px, 0.5fr) minmax(0, 1fr);
  }
}

/* Toast di conferma: sostituisce il notice bianco WooCommerce nello Shop. */
.bn-catalog-toast-region.woocommerce-notices-wrapper {
  position: fixed !important;
  z-index: 1000001;
  top: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
  display: flex;
  width: min(390px, calc(100vw - 48px));
  margin: 0 !important;
  padding: 0 !important;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

body.admin-bar .bn-catalog-toast-region.woocommerce-notices-wrapper {
  top: max(56px, calc(env(safe-area-inset-top) + 40px));
}

.bn-catalog-toast-region .bn-catalog-toast.woocommerce-message {
  display: grid !important;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  width: 100%;
  min-height: 82px;
  margin: 0 !important;
  padding: 16px 14px 16px 16px !important;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(215, 189, 66, 0.7) !important;
  border-left: 3px solid #d7bd42 !important;
  border-radius: 10px;
  background: linear-gradient(145deg, #303030, #222) !important;
  color: #fff !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42) !important;
  opacity: 0;
  transform: translate3d(28px, 0, 0) scale(0.98);
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
}

.bn-catalog-toast-region .bn-catalog-toast.woocommerce-message::before,
.bn-catalog-toast-region .bn-catalog-toast.woocommerce-message::after {
  display: none !important;
  content: none !important;
}

.bn-catalog-toast-region .bn-catalog-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.bn-catalog-toast-region .bn-catalog-toast.is-leaving {
  opacity: 0;
  transform: translate3d(18px, -6px, 0) scale(0.98);
}

.bn-catalog-toast__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d7bd42;
  border-radius: 50%;
  color: #d7bd42;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.bn-catalog-toast__content {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.bn-catalog-toast__content .button.wc-forward {
  display: inline;
  min-height: 0;
  margin: 0 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #d7bd42 !important;
  font: inherit;
  font-weight: 750;
  line-height: inherit;
  text-decoration: none;
}

.bn-catalog-toast__content .button.wc-forward:hover,
.bn-catalog-toast__content .button.wc-forward:focus-visible {
  color: #fff !important;
  outline: none;
}

.bn-catalog-toast__close {
  display: grid !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 0 2px !important;
  place-items: center;
  align-self: start;
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: #fff !important;
  font: inherit;
  font-size: 19px !important;
  font-weight: 400;
  line-height: 1 !important;
  cursor: pointer;
}

.bn-catalog-toast__close:hover,
.bn-catalog-toast__close:focus-visible {
  border-color: #fff !important;
  background: #fff !important;
  color: #202020 !important;
  outline: none;
}

@media (max-width: 600px) {
  .bn-catalog-toast-region.woocommerce-notices-wrapper {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
  }

  body.admin-bar .bn-catalog-toast-region.woocommerce-notices-wrapper {
    top: max(58px, calc(env(safe-area-inset-top) + 46px));
  }

  .bn-catalog-toast-region .bn-catalog-toast.woocommerce-message {
    grid-template-columns: 30px minmax(0, 1fr) 26px;
    min-height: 74px;
    padding: 13px 11px 13px 13px !important;
    gap: 10px;
  }

  .bn-catalog-toast__icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bn-catalog-toast-region .bn-catalog-toast.woocommerce-message {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Rifiniture Home mobile.
   -------------------------------------------------------------------------- */

/* Le varianti delle card restano affiancate anche sugli schermi piccoli. */
@media (max-width: 544px) {
  .home .wp-block-woocommerce-product-collection
    .bn-catalog-variations__buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Il carosello Servizi rimane utilizzabile senza mostrare la scrollbar. */
.home .servizi-carousel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.home .servizi-carousel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* --------------------------------------------------------------------------
   Card prodotti esauriti.
   -------------------------------------------------------------------------- */

/* Il vecchio invito "Scegli" non deve suggerire un'azione disponibile. */
.woocommerce ul.products li.product.outofstock .ast-on-card-button,
.woocommerce ul.products li.product.outofstock
  > .astra-shop-summary-wrap
  > .button.product_type_variable {
  display: none !important;
}

/* Il prezzo utile resta leggibile nei due formati disabilitati. */
.woocommerce ul.products li.product.outofstock .price {
  display: none !important;
}

:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-variations--sold-out
  .bn-catalog-variations__label {
  color: rgba(255, 255, 255, 0.52);
}

:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-variation--disabled
  .bn-catalog-variation__button,
:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-variation--disabled
  .bn-catalog-variation__button:hover,
:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-variation--disabled
  .bn-catalog-variation__button:focus {
  padding-right: 10px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.48);
  cursor: not-allowed;
  opacity: 0.72;
  pointer-events: none;
  outline: none;
  box-shadow: none;
}

:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-variation--disabled
  .bn-catalog-variation__price,
:where(.woocommerce ul.products li.product, .wc-block-product)
  .bn-catalog-variation--disabled
  .bn-catalog-variation__price
  .amount {
  color: inherit;
}

/* Il badge della home deve riferirsi alla card, non al blocco variazioni. */
.home .wc-block-product:has(.bn-catalog-variations--sold-out) {
  position: relative;
}

.home .wc-block-product .bn-catalog-variations--sold-out {
  position: static;
}

/* Badge compatto, leggibile e ancorato all'angolo dell'immagine. */
.woocommerce ul.products li.product.outofstock .ast-shop-product-out-of-stock,
.home .wc-block-product .bn-catalog-sold-out-badge {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;
  bottom: auto;
  left: auto;
  display: inline-flex;
  width: auto;
  min-height: 28px;
  padding: 6px 10px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.9) !important;
  color: rgba(255, 255, 255, 0.84) !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

/* Astra rendeva il badge bianco al passaggio del mouse: blocca l'override. */
.woocommerce ul.products li.product.outofstock:hover
  .ast-shop-product-out-of-stock,
.woocommerce ul.products li.product.outofstock
  a:hover
  .ast-shop-product-out-of-stock,
.home .wc-block-product:hover .bn-catalog-sold-out-badge {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background: rgba(30, 30, 30, 0.94) !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   Home: quantità e CTA condividono la stessa riga e la stessa altezza.
   -------------------------------------------------------------------------- */
.home .wp-block-woocommerce-product-collection
  .bn-catalog-variation__confirm-inner {
  grid-template-columns: minmax(108px, 0.42fr) minmax(0, 1fr) !important;
  align-items: stretch !important;
  white-space: nowrap !important;
}

.home .wp-block-woocommerce-product-collection .bn-catalog-quantity,
.home .wp-block-woocommerce-product-collection
  .bn-catalog-variation__submit {
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  align-self: stretch;
}

.home .wp-block-woocommerce-product-collection
  .bn-catalog-variation__submit {
  display: flex !important;
  padding: 7px 8px !important;
  align-items: center;
  justify-content: center;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
}

.home .wp-block-woocommerce-product-collection
  .bn-catalog-variation__submit
  > span {
  display: block;
  white-space: nowrap !important;
}

/* Sui telefoni più stretti la disposizione verticale evita compressioni. */
@media (max-width: 360px) {
  .home .wp-block-woocommerce-product-collection
    .bn-catalog-variation__confirm-inner {
    grid-template-columns: 1fr !important;
  }
}
