/* PRIMO NATIVE 0.2.0 — Header isolato, filtri e catalogo WooCommerce. */
.home .primo-home-shell__header {color:var(--primo-text);}
.home .primo-home-shell__bar {grid-template-columns:minmax(180px,1fr) auto auto;}
.home .primo-home-shell__brand {max-width:215px;}
.home .primo-home-shell__logo--light, .home .primo-home-shell__header.is-condensed .primo-home-shell__logo--light {opacity:1;visibility:visible;}
.home .primo-home-shell__nav {display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:.45rem;}
.home .primo-home-shell__pill {min-height:45px;padding:.55rem .8rem;border-radius:9px;box-shadow:none;background:rgba(255,255,255,.85);border-color:rgba(21,21,22,.08);white-space:nowrap;font-size:.9rem;}
.home .primo-home-shell__pill--dark {color:white;background:#151516;border-color:#151516;}
.home .primo-home-shell__header:not(.is-condensed) .primo-home-shell__catalog-toggle.primo-home-shell__pill--dark{color:#fff;background:#151516;}
.home .primo-home-shell__header.is-condensed .primo-home-shell__catalog-toggle.primo-home-shell__pill--dark{color:var(--primo-text);background:transparent;}
.home .primo-home-shell__catalog-submenu {z-index:110;}
.home .primo-home-shell__actions {gap:.4rem;}
.home .primo-home-shell__icon {width:43px;height:43px;border-radius:10px;box-shadow:none;background:rgba(255,255,255,.82);border:1px solid rgba(21,21,22,.08);}
.home .primo-home-shell__header.is-condensed .primo-home-shell__icon {background:rgba(255,255,255,.6);}
.home .primo-home-shell__icon img{width:24px;height:24px;}
@media(max-width:1230px){.home .primo-home-shell__nav{gap:.15rem}.home .primo-home-shell__pill{padding:.5rem .55rem;font-size:.81rem}.home .primo-home-shell__brand{max-width:175px}}
@media(max-width:1100px){.home .primo-home-shell__bar{grid-template-columns:auto 1fr auto}.home .primo-home-shell__nav{display:none}.home .primo-home-shell__brand{grid-column:2;max-width:min(190px,40vw)}}
@media(max-width:782px){.home .primo-home-shell__brand{max-width:min(160px,42vw)}}
/* WooCommerce archivi: categoria e filtri non modificano la query senza selezione. */
.primo-native-catalog-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:clamp(1.25rem,2.8vw,2.75rem);align-items:start;}
.primo-native-catalog-products{min-width:0;}
.primo-native-filters{background:rgba(255,255,255,.75);border:1px solid var(--primo-border);border-radius:20px;padding:1.25rem;position:sticky;top:110px;}
.primo-native-filters__top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border-bottom:1px solid var(--primo-border);padding-bottom:.9rem;margin-bottom:1rem;}
.primo-native-filters__top h2{margin:0;font-size:1.3rem;font-weight:600;}
.primo-native-filters__top a{font-size:.85rem;text-decoration:underline;}
.primo-native-filters__form{display:grid;gap:.8rem;}
.primo-native-filters__form>label:not(.primo-native-filters__check){font-weight:600;font-size:.88rem;margin-top:.25rem;}
.primo-native-filters select,.primo-native-filters input[type=number]{width:100%;min-width:0;min-height:43px;background:#fff;border:1px solid var(--primo-border-strong);border-radius:9px;padding:.5rem .65rem;color:var(--primo-text);}
.primo-native-filters__price{min-width:0;border:0;padding:0;margin:.6rem 0 0;display:grid;grid-template-columns:1fr 1fr;gap:.4rem .6rem;}
.primo-native-filters__price legend{font-weight:600;font-size:.88rem;margin-bottom:.7rem;}
.primo-native-filters__price label{font-size:.8rem;}
.primo-native-filters__check{display:flex;align-items:center;gap:.65rem;font-size:.9rem;}
.primo-native-filters__check input{width:18px;height:18px;accent-color:#151516;}
.primo-native-filters__form button{margin-top:.55rem;min-height:44px;background:#151516;border:0;border-radius:9px;color:#fff;cursor:pointer;font-weight:600;padding:.5rem 1rem;}
.primo-native-filters__form button:hover{background:#42372f;}
.primo-shop-toolbar{width:100%;}
.primo-native-catalog-products ul.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.15rem;list-style:none;margin:0;padding:0;}
.primo-native-catalog-products ul.products::before,.primo-native-catalog-products ul.products::after{content:none;}
.primo-native-catalog-products ul.products li.product{width:auto;float:none;margin:0;}
@media(max-width:1180px){.primo-native-catalog-layout{grid-template-columns:215px minmax(0,1fr);gap:1.4rem}.primo-native-catalog-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.primo-native-catalog-layout{grid-template-columns:1fr}.primo-native-filters{position:static}.primo-native-catalog-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.primo-native-catalog-products ul.products{grid-template-columns:1fr}}
/* Carrello e checkout resi da WooCommerce, non dagli snapshot Elementor. */
.primo-native-content{padding:3rem 0 5rem;}
.primo-native-content .woocommerce{max-width:100%;}
.primo-native-content .entry-content{margin-top:1.5rem;}

.primo-native-filters__categories{padding-bottom:1rem;border-bottom:1px solid var(--primo-border);margin-bottom:1.25rem;}
.primo-native-filters__categories h3{font-size:.94rem;margin:0 0 .65rem;}
.primo-native-filters__categories summary{font-weight:600;cursor:pointer;padding:.45rem 0;}
.primo-native-filters__categories ul{list-style:none;margin:.3rem 0 .8rem;padding:0 0 0 .75rem;}
.primo-native-filters__categories li{margin:.4rem 0;}
.primo-native-filters__categories li a{font-size:.91rem;}
.primo-native-menu-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem;}
.primo-native-menu-categories li{margin:0;}
@media(max-width:850px){.primo-native-menu-categories{grid-template-columns:repeat(2,minmax(0,1fr))}}

.primo-home-shell__catalog-submenu{visibility:hidden;}
.primo-home-shell__catalog-group.is-open .primo-home-shell__catalog-submenu{visibility:visible;}


/* Primo Native 0.2.1: layout del catalogo e pannelli filtri coerenti con la grafica Primo. */
.primo-shop-catalog .site-shell.primo-native-catalog-layout {
  --primo-shell: 1440px;
  grid-template-columns: minmax(210px, 238px) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.4vw, 2.4rem);
  align-items: start;
}
.primo-native-filters {
  background: #ebe5e1;
  border: 1px solid rgba(21,21,22,.10);
  border-radius: 24px;
  padding: clamp(1rem, 1.7vw, 1.5rem);
  box-shadow: 0 14px 35px rgba(21,21,22,.055);
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.primo-native-filters__top h2 {font-size:1.15rem;letter-spacing:-.02em;}
.primo-native-filters__top a {border-bottom:1px solid currentColor;text-decoration:none;font-weight:600;}
.primo-native-filters__categories details {border-bottom:1px solid rgba(21,21,22,.08);}
.primo-native-filters__categories summary {font-size:.98rem;padding:.65rem 0;font-weight:700;}
.primo-native-filters__categories ul {padding:0 0 .4rem .65rem;margin:.15rem 0 .45rem;}
.primo-native-filters__categories li a {display:block;padding:.22rem 0;font-size:.9rem;}
.primo-native-filters__form {gap:0;}
.primo-native-filters__group {border-bottom:1px solid rgba(21,21,22,.11);padding:.35rem 0;}
.primo-native-filters__group-title {list-style:none;display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.75rem 0;font-size:.94rem;font-weight:700;cursor:pointer;}
.primo-native-filters__group-title::-webkit-details-marker {display:none;}
.primo-native-filters__group-title::after {content:'+';margin-left:auto;font-size:1.18rem;line-height:1;font-weight:400;}
.primo-native-filters__group[open]>.primo-native-filters__group-title::after {content:'−';}
.primo-native-filters__selected {display:inline-flex;align-items:center;justify-content:center;border-radius:50%;min-width:20px;height:20px;background:#151516;color:#fff;font-size:.7rem;font-weight:700;}
.primo-native-filters__options {display:flex;flex-wrap:wrap;gap:.4rem;padding:0 0 .85rem;max-height:220px;overflow:auto;scrollbar-width:thin;}
.primo-native-filters__option {position:relative;display:inline-flex;align-items:center;min-height:35px;padding:.32rem .7rem;border:1px solid rgba(21,21,22,.16);border-radius:999px;background:rgba(255,255,255,.65);font-size:.82rem;line-height:1.25;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s;}
.primo-native-filters__option:hover,.primo-native-filters__option:focus-within {border-color:#151516;}
.primo-native-filters__option.is-selected {background:#151516;color:#fff;border-color:#151516;}
.primo-native-filters__option input {position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer;}
.primo-native-filters__option:has(input:checked) {background:#151516;color:#fff;border-color:#151516;}
.primo-native-filters__option:has(input:focus-visible) {outline:3px solid #8b5d3b;outline-offset:2px;}
.primo-native-filters__price {margin:1.15rem 0 .7rem;}
.primo-native-filters__price legend {font-size:.96rem;letter-spacing:-.01em;}
.primo-native-filters__price input[type=number] {background:rgba(255,255,255,.85);border-radius:12px;}
.primo-native-filters__check {padding:.4rem 0;font-weight:500;}
.primo-native-filters__form button {border-radius:999px;margin-top:1.15rem;font-size:.92rem;min-height:48px;}
.primo-native-catalog-products {min-width:0;}
/* Le card e il pulsante WooCommerce nel catalogo restano operativi. */
.primo-native-catalog-products ul.products {gap:clamp(.8rem,1.6vw,1.35rem);}
/* Scheda prodotto: evita l'espansione a tutta larghezza e recupera i contenitori. */
body.single-product .site-content--shop {width:100%;max-width:100%;}
body.single-product .site-content--shop .primo-single-product {width:100%;margin:0 auto;padding:clamp(1.2rem,3vw,3rem) 1rem 4rem;}
body.single-product .primo-single-product__shell {width:100%;max-width:1280px;margin:0 auto;}
body.single-product .primo-single-product__gallery-column {padding:clamp(.8rem,1.4vw,1.5rem);background:rgba(255,255,255,.75);border:1px solid var(--primo-border);border-radius:28px;min-width:0;}
body.single-product .primo-single-product__summary {background:rgba(255,255,255,.86);}
body.single-product .primo-single-product__secondary {margin-top:.5rem;}
@media (max-width:1080px) {
 .primo-shop-catalog .site-shell.primo-native-catalog-layout {grid-template-columns:205px minmax(0,1fr);gap:1.15rem;}
 .primo-native-catalog-products ul.products {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:800px) {
 .primo-shop-catalog .site-shell.primo-native-catalog-layout {grid-template-columns:1fr;}
 .primo-native-filters {position:static;max-height:none;}
 .primo-native-catalog-products ul.products {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.single-product .primo-single-product__grid {grid-template-columns:1fr;}
 body.single-product .primo-single-product__summary {position:static;}
}
@media (max-width:520px) {
 .primo-native-catalog-products ul.products {grid-template-columns:1fr;}
 body.single-product .primo-single-product__gallery-column {border-radius:19px;padding:.7rem;}
 body.single-product .primo-single-product__summary {border-radius:22px;}
}

/* Primo Native 0.2.2 - scheda descrizioni e caratteristiche */
body.single-product .primo-single-product__summary .woocommerce-product-details__short-description {
    display:block!important;visibility:visible!important;opacity:1!important;
    margin:1rem 0 1.35rem;line-height:1.65;color:var(--primo-text,#282828);
}
body.single-product .primo-native-caratteristiche {font-size:1rem;line-height:1.75;}
body.single-product .primo-native-caratteristiche strong {font-weight:700;}
body.single-product .primo-native-caratteristiche ul {padding-left:1.5rem;list-style:disc;}

/* Primo Native 0.2.3 — ultime correzioni di dettaglio grafico. */
/* WooCommerce imposta per default .onsale come cerchio verde a sinistra:
   stessa etichetta nera, contenuta nel margine destro, in home, archivi e scheda. */
body .primo-product-card .primo-product-card__media > .onsale,
body.single-product .primo-single-product .onsale {
  position: absolute !important;
  top: 0.75rem !important;
  right: 0.75rem !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0.42rem 0.7rem !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #151516 !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 0.78rem !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  z-index: 10;
}
body.single-product .primo-single-product__gallery-column { position: relative; }

/* Annulla qualunque dissolvenza residua della foto principale sulle card. */
body .primo-product-card .primo-product-card__media .primo-product-card__image--primary,
body .primo-product-card .primo-product-card__media:hover .primo-product-card__image--primary {
  opacity: 1 !important;
  visibility: visible;
  transform: none;
}
/* Ogni card usa l'immagine principale; non carichiamo piu' una foto di rollover. */
body .primo-product-card .primo-product-card__media {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
}
body .primo-product-card .primo-product-card__media .primo-product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

/* Una sola riga per Uomo -> Ciabatte, senza spezzare lettere o parole. */
body .primo-product-card__taxonomy { flex-wrap: nowrap; min-width: 0; overflow: hidden; }
body .primo-product-card__taxonomy .product-cat { min-width: 0; white-space: nowrap; }
body .primo-product-card__taxonomy .product-cat span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body .primo-product-card__taxonomy .cat-arrow { width: 9px; height: 9px; }

/* Evita che il gradiente sopra l'hero copra con angoli retti
   gli angoli inferiori già arrotondati dell'immagine. */
@media (min-width: 961px) {
  .primo-home-hero__visual--desktop,
  .primo-home-hero__overlay,
  .primo-home-hero__overlay::before {
    border-radius: calc(var(--primo-radius) + 8px);
  }
  .primo-home-hero__overlay { overflow: hidden; }
}

/* Primo Native 0.2.4 — barra filtri adattiva, senza ritagli e senza scorrimento interno. */
.primo-shop-catalog .site-shell.primo-native-catalog-layout {
  grid-template-columns: clamp(265px, 24vw, 325px) minmax(0, 1fr);
  gap: clamp(1rem, 2.1vw, 2.1rem);
  align-items: start;
}
.primo-shop-catalog .primo-native-filters {
  position: static;
  top: auto;
  width: 100%;
  max-width: none;
  min-width: 0;
  height: max-content;
  max-height: none;
  overflow: visible;
  box-sizing: border-box;
  padding: clamp(1.05rem, 1.7vw, 1.5rem);
}
.primo-native-filters__form, .primo-native-filters__categories,
.primo-native-filters__group, .primo-native-filters__price { min-width: 0; max-width: 100%; }
.primo-native-filters__group {
  box-sizing: border-box;
  height: auto;
  max-height: none;
  margin: 0 0 .65rem;
  padding: .4rem .75rem;
  border: 1px solid rgba(21,21,22,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.40);
}
.primo-native-filters__options {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-height: none;
  overflow: visible;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: .45rem;
  padding: .25rem 0 .85rem;
}
.primo-native-filters__option { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.primo-native-filters__option span { overflow-wrap: anywhere; }
.primo-native-filters__group-title { min-height: 38px; }
.primo-native-filters__hint { font-size: .76rem; color: var(--primo-muted,#68605c); line-height: 1.45; margin: .8rem 0 0; }
/* Separazione reale tra le due righe di taglie (plugin Variation Swatches). */
.primo-native-catalog-products .primo-product-card__pricing .cfvsw-swatches-container,
.primo-native-catalog-products .primo-product-card__pricing .cfvsw-shop-variations .cfvsw-swatches-container {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  row-gap: .9rem !important;
  column-gap: .5rem !important;
}
@media (max-width: 1080px) {
  .primo-shop-catalog .site-shell.primo-native-catalog-layout {
    grid-template-columns: minmax(225px, 255px) minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .primo-shop-catalog .site-shell.primo-native-catalog-layout { grid-template-columns: 1fr; }
  .primo-shop-catalog .primo-native-filters { width: 100%; }
}

/* Primo Native 0.2.6 — sidebar solo categorie + demo guidata su Stage. */
.primo-native-filters--essential .primo-native-filters__top { margin-bottom: 1.1rem; }
.primo-native-filters--essential .primo-native-filters__top h2 { font-size: 1.12rem; }
.primo-native-filters--essential .primo-native-filters__categories { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.primo-native-filters--essential .primo-native-filters__categories h3 { margin: 0 0 .6rem; }
.primo-native-smart-demo {
  background: rgba(255,255,255,.79);
  border: 1px solid rgba(21,21,22,.12);
  border-radius: 18px;
  padding: 1.05rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 8px 20px rgba(21,21,22,.045);
}
.primo-native-smart-demo__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; font-size: .74rem; font-weight: 700; color: #625448; }
.primo-native-smart-demo__badge { display: inline-block; background: #151516; color: #fff; border-radius: 999px; padding: .3rem .55rem; font-size: .64rem; line-height: 1.2; letter-spacing: .07em; }
.primo-native-smart-demo h3 { font-size: 1.12rem; letter-spacing: -.025em; margin: .85rem 0 .45rem; line-height: 1.35; }
.primo-native-smart-demo p { margin: 0 0 .9rem; color: #554b44; font-size: .86rem; line-height: 1.5; }
.primo-native-smart-demo label { display: block; font-size: .81rem; font-weight: 700; margin-bottom: .45rem; }
.primo-native-smart-demo textarea {
  display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 125px; resize: vertical;
  border: 1px solid rgba(21,21,22,.25); border-radius: 12px;
  padding: .75rem; background: #fff; color: #181614;
  font: inherit; font-size: .88rem; line-height: 1.55;
}
.primo-native-smart-demo textarea:focus-visible { outline: 2px solid #91674b; outline-offset: 2px; }
.primo-native-smart-demo button {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; border-radius: 999px; margin-top: .8rem;
  padding: .65rem .95rem; border: none; background: #151516; color: white;
  font: inherit; font-size: .87rem; font-weight: 700; cursor: pointer;
}
.primo-native-smart-demo button:hover, .primo-native-smart-demo button:focus-visible { background: #49372c; }
.primo-native-smart-demo button span { font-size: 1.15rem; }
.primo-native-smart-demo .primo-native-smart-demo__disclaimer { font-size: .72rem; margin: .8rem 0 0; color: #71665f; }
.primo-native-demo-result { padding: 1.1rem 1.3rem; border-radius: 15px; background: #ece7e2; margin-bottom: 1.6rem; }
.primo-native-demo-result strong { display: block; font-size: 1.05rem; }
.primo-native-demo-result p { margin: .35rem 0 0; line-height: 1.5; font-size: .9rem; }
.primo-native-demo-empty { padding: 1.35rem; background: rgba(255,255,255,.9); border: 1px solid rgba(21,21,22,.12); border-radius: 15px; font-weight: 600; }


/* Primo Native 0.2.7 — ricerca intelligente dimostrativa in homepage (solo Stage).
   Condivide form, frase e destinazione Shop con il box della sidebar. */
.primo-editorial-page--home .primo-section--smart-demo {
  padding: clamp(2rem, 4vw, 3.25rem) 0 0;
}
.primo-native-smart-demo--home {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.4rem, 4vw, 3.3rem);
  align-items: center;
  margin: 0;
  padding: clamp(1.4rem, 4vw, 2.7rem);
  background: linear-gradient(125deg, #f0e8df 0%, #fffaf5 52%, #ffffff 100%);
  border-color: rgba(62, 46, 32, .18);
  border-radius: 24px;
  box-shadow: 0 16px 42px rgba(51, 38, 29, .09);
}
.primo-native-smart-demo--home .primo-native-smart-demo__eyebrow {
  margin-bottom: 1rem;
  font-size: .8rem;
  letter-spacing: .015em;
}
.primo-native-smart-demo--home h2 {
  max-width: 19ch;
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 3.1vw, 3rem);
  line-height: 1.13;
  letter-spacing: -.037em;
}
.primo-native-smart-demo--home .primo-native-smart-demo__home-copy > p:last-child {
  max-width: 45ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}
.primo-native-smart-demo--home form {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.45rem);
  background: #fff;
  border: 1px solid rgba(62, 46, 32, .13);
  border-radius: 17px;
}
.primo-native-smart-demo--home label { font-size: .88rem; }
.primo-native-smart-demo--home textarea {
  min-height: 105px;
  font-size: .98rem;
  line-height: 1.6;
}
.primo-native-smart-demo--home button { min-height: 52px; font-size: .96rem; }
.primo-native-smart-demo--home .primo-native-smart-demo__disclaimer {
  margin-bottom: 0;
  line-height: 1.4;
}
@media (max-width: 820px) {
  .primo-native-smart-demo--home { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .primo-native-smart-demo--home h2 { max-width: none; }
}
@media (max-width: 480px) {
  .primo-native-smart-demo--home { border-radius: 18px; padding: 1.1rem; }
  .primo-native-smart-demo--home form { padding: .9rem; }
  .primo-native-smart-demo--home textarea { min-height: 118px; }
}

/* Primo Native 0.2.8 — ricerca WooCommerce nativa, senza builder. */
.primo-native-product-search{margin-bottom:1.25rem;padding:1rem;background:#faf8f5;border:1px solid #ded9d1;border-radius:8px;}
.primo-native-product-search label{display:block;font-weight:650;margin:0 0 .55rem;}
.primo-native-product-search__row{display:flex;gap:.65rem;flex-wrap:wrap;}
.primo-native-product-search input[type=search]{flex:1 1 190px;min-width:0;min-height:44px;border:1px solid #b7b1ac;border-radius:4px;padding:.65rem .8rem;font-size:1rem;}
.primo-native-product-search button{min-height:44px;padding:.65rem 1.2rem;background:#24211f;color:white;border:0;border-radius:4px;cursor:pointer;}

/* Primo Native 0.2.9 — tessere senza ritaglio: foto intera centrata. */
body .primo-product-card .primo-product-card__media .primo-product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}

/* Un solo percorso d'acquisto dalle tessere: apertura della scheda prodotto. */
.primo-native-catalog-products .primo-product-card__choose {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}

/* Forza una card per riga in verticale e orizzontale sugli smartphone,
   neutralizzando anche float e larghezze assegnati da WooCommerce. */
@media screen and (max-width: 767px) {
  body .site-content--shop .primo-native-catalog-products ul.products {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.15rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  body .site-content--shop .primo-native-catalog-products ul.products > li.product {
    display: block;
    grid-column: auto;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
  }
  body .site-content--shop .primo-native-catalog-products ul.products > li.product .primo-product-card__inner {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Primo Native 0.2.10 — prezzo unico sotto al titolo.
   La disponibilita' e l'eventuale descrizione variante restano visibili,
   senza il vecchio riquadro vuoto/ripetuto sotto le taglie. */
body.single-product .primo-single-product__summary .primo-single-product__primary-price {
  margin-top: 1.2rem;
}
body.single-product .primo-single-product__summary .primo-single-product__primary-price > .price,
body.single-product .primo-single-product__summary .primo-single-product__primary-price > .price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem;
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 700;
}
body.single-product .primo-single-product__summary .primo-single-product__primary-price del,
body.single-product .primo-single-product__summary .primo-single-product__primary-price del .amount {
  text-decoration: line-through !important;
  text-decoration-thickness: 1px !important;
  opacity: .7;
}
body.single-product .primo-single-product__summary .primo-single-product__price-prefix {
  font-size: .66em;
  font-weight: 500;
}
body.single-product .primo-single-product__summary .woocommerce-variation-price {
  display: none !important;
}
body.single-product .primo-single-product__summary .single_variation_wrap {
  margin-top: .55rem;
  min-height: 0;
}
body.single-product .primo-single-product__summary .woocommerce-variation {
  display: block;
  min-height: 0;
  padding: 0;
  margin: 0 0 .55rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.single-product .primo-single-product__summary .woocommerce-variation:empty,
body.single-product .primo-single-product__summary .woocommerce-variation:not(:has(.woocommerce-variation-description:not(:empty), .woocommerce-variation-availability:not(:empty))) {
  display: none;
}
body.single-product .primo-single-product__summary .woocommerce-variation-description,
body.single-product .primo-single-product__summary .woocommerce-variation-availability {
  margin: 0 0 .55rem;
}
