/* ============================================================
   gods3dplan — DESIGN CATEGORIE, CATALOGO, BESTSELLER (27/11)
   Caricato dopo site.css, ui.css e pages.css.
   - etichetta della categoria (pastiglia con icona) e «Foto reale»
   - card prodotto e pagina catalogo (barra filtri, griglia, stato «in arrivo»)
   - home: griglia categorie simmetrica, bestseller, linea delle garanzie
   ============================================================ */

:root {
  --filo: #E4572E;          /* arancio filamento: accento del marchio nella linea delle garanzie */
  --cat-ink: #A8401F;       /* variante leggibile del colore della passione (la imposta setAccent) */
}

/* testi nel colore della passione: sempre nella variante leggibile */
.hero-title .accent { color: var(--cat-ink, var(--cat)); }
.logo-word b { color: var(--brand); }

/* ============================================================
   ETICHETTA CATEGORIA — pastiglia con icona nel colore della passione
   ============================================================ */
.prod-cat.cat-tag,
.prod-info .prod-cat.cat-tag,
.bs-card .prod-cat.cat-tag,
.bs-feat .prod-cat.cat-tag {
  grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 10px; padding: 3px 11px 3px 3px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--cc) 9%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 20%, transparent);
  color: var(--cc-ink, #3B392F);
  font-family: var(--font-body); font-size: 12px; font-weight: 650; letter-spacing: .005em; line-height: 1.2; text-transform: none;
  white-space: nowrap; max-width: 100%;
}
.cat-tag > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.cat-tag-ic {
  display: grid; place-items: center; flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--cc) 78%, #fff) 0%, var(--cc) 55%, color-mix(in srgb, var(--cc) 82%, #000) 100%);
  color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 8px -3px color-mix(in srgb, var(--cc) 80%, transparent);
}
.cat-tag-ic .cat-ic { width: 12px; height: 12px; stroke-width: 2.1; }
.prod-cat.cat-tag i { display: none; }

/* «Foto reale»: piccolo sigillo con la macchina fotografica, non più testo grigio */
.prod-rate.real-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; border-radius: var(--r-sm);
  background: rgba(21, 20, 15, .045); box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .06);
  color: #4A463D; font-family: var(--font-body); font-size: 11.5px; font-weight: 650; letter-spacing: .02em; line-height: 1.2; white-space: nowrap;
}
.prod-rate.real-tag svg { flex: 0 0 auto; color: #2E8B57; }

/* ============================================================
   CARD PRODOTTO — più pulita e raffinata
   ============================================================ */
.prod .prod-media {
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c) 8%, #F4EFE6);
  box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .05);
}
.prod.is-photo .prod-media { background: #EDE7DC; }
.prod:hover .prod-media { box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .04), 0 26px 44px -26px rgba(60, 45, 25, .5); }
.prod .prod-badge {
  top: 12px; left: 12px; padding: 6px 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.prod .prod-add { width: 44px; height: 44px; margin-top: calc(100% * var(--ar) - 58px); right: 12px; font-size: 20px; }
.prod .prod-add:hover { background: var(--ink); }
.prod-info { padding-top: 14px; }
.prod-meta { align-items: center; }

/* ============================================================
   CATALOGO — barra filtri, griglia, stato vuoto
   ============================================================ */
.shop .shop-bar {
  padding: 8px; gap: 8px 10px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 1px 2px rgba(60, 45, 25, .05), 0 22px 44px -30px rgba(60, 45, 25, .45);
}
.shop .shop-cats { flex: 1 1 100%; flex-wrap: nowrap; gap: 3px; overflow-x: auto; scrollbar-width: none; }
.shop .shop-cats::-webkit-scrollbar { display: none; }
.shop .fchip {
  flex: 0 0 auto; gap: 6px; height: 40px; padding: 0 5px 0 10px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; white-space: nowrap; color: var(--ink-2); background: transparent;
  transition: background .3s, color .3s, box-shadow .3s;
}
.shop .fchip .cat-ic { color: var(--chip-ink, var(--chip, var(--ink))); }
.shop .fchip:hover { background: color-mix(in srgb, var(--chip, #15140F) 8%, #fff); color: var(--ink); }
.fchip-n {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: var(--r-pill);
  background: rgba(21, 20, 15, .06); color: var(--ink-2);
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
}
.fchip[data-cat=""] { padding-left: 14px; }
.fchip.is-soon .fchip-n { background: transparent; box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .14); color: var(--muted); font-weight: 600; font-style: italic; }
.shop .fchip.is-on {
  background: var(--chip-ink, var(--ink)); color: #fff;
  box-shadow: 0 10px 20px -12px var(--chip-ink, var(--ink));
}
.shop .fchip.is-on .cat-ic { color: #fff; }
.shop .fchip.is-on .fchip-n { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.shop .ftoggle { height: 40px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .6); }
.shop .fselect { height: 40px; font-weight: 600; font-size: 13.5px; }
.shop .shop-meta { font-size: 13.5px; color: var(--muted); }
.shop .shop-meta > span:first-child { font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.shop .prod-grid { gap: 40px 22px; margin-top: clamp(22px, 2.4vw, 34px); }

/* griglia vuota per i filtri: messaggio morbido */
.grid-empty.empty-soft { display: grid; justify-items: center; gap: 12px; padding: clamp(46px, 6vw, 80px) 20px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.grid-empty.empty-soft p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.02em; color: var(--ink); }
.empty-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; font-size: 14.5px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(21, 20, 15, .25); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.empty-link:hover { text-decoration-color: currentColor; }

/* passione senza pezzi: «in arrivo» con la copertina della passione */
.grid-empty.empty-cat {
  grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch;
  padding: 0; overflow: hidden; border-radius: var(--r-lg); text-align: left; color: var(--ink);
  background: color-mix(in srgb, var(--cc) 9%, #FBF8F2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 14%, transparent), 0 40px 80px -56px rgba(60, 45, 25, .55);
}
.empty-cat-foto { position: relative; isolation: isolate; overflow: hidden; min-height: 340px; }
.empty-cat-foto img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; }
/* gli strati che salgono, a ciclo lento: il pezzo è «in stampa» */
.empty-cat-stampa {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: soft-light;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .9) 0 1px, rgba(255, 255, 255, 0) 1px 7px);
  animation: emptyStampa 5.5s var(--ease) infinite;
}
@keyframes emptyStampa { 0% { clip-path: inset(100% 0 0 0); opacity: 1; } 70% { clip-path: inset(0 0 0 0); opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.empty-cat-body { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 60px); }
.empty-cat-kick {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 13px 3px 3px; border-radius: var(--r-pill);
  background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cc) 18%, transparent);
  color: var(--cc-ink); font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.empty-cat-kick .cat-tag-ic { width: 24px; height: 24px; }
.empty-cat-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.empty-cat-title em { color: var(--cc-ink); }
.empty-cat-sub { max-width: 30em; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.grid-empty .btn-primary { color: #fff; text-decoration: none; }
.empty-cat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
@media (max-width: 760px) {
  .grid-empty.empty-cat { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-lg); }
  .empty-cat-foto { min-height: 0; aspect-ratio: 5 / 4; }
  .empty-cat-body { padding: 24px 20px 28px; }
  .empty-cat-actions .btn { width: 100%; justify-content: space-between; }
}

/* ============================================================
   HOME — CATEGORIE: griglia simmetrica 2 · 3 · 4
   ============================================================ */
.cg-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.25vw, 18px); }
.cg-tile {
  --h: clamp(230px, 20vw, 290px);
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  grid-column: span 3; min-height: var(--h); padding: clamp(16px, 1.6vw, 24px);
  border-radius: var(--r-lg); -webkit-clip-path: inset(0 round 30px); clip-path: inset(0 round 30px);
  background: color-mix(in srgb, var(--c) 16%, #F1ECE3); color: var(--ink);
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.cg-tile:nth-child(-n + 2) { grid-column: span 6; --h: clamp(320px, 30vw, 440px); padding: clamp(20px, 2.2vw, 32px); }
.cg-tile:nth-child(n + 3):nth-child(-n + 5) { grid-column: span 4; --h: clamp(270px, 24vw, 340px); }
.cg-tile:hover { transform: translateY(var(--lift, -4px)); box-shadow: 0 30px 50px -34px color-mix(in srgb, var(--c) 55%, rgba(21, 20, 15, .55)); }
.cg-tile:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 4px; }

/* foto + strati + ritaglio + testina, tutti alla stessa scala */
.cg-media { position: absolute; inset: 0; z-index: -1; }
.cg-media img {
  /* più alta del riquadro e ritagliata in basso: gli oggetti scendono e lasciano spazio al titolo */
  position: absolute; inset: 0 0 auto 0; width: 100%; height: calc(100% + 2 * var(--dy, 8%)); max-width: none; object-fit: cover;
  object-position: var(--ox, 50%) var(--oy, 58%); transform-origin: 50% 62%;
  transform: scale(1.02); transition: transform 1.4s var(--ease);
}
.cg-tile:hover .cg-media img { transform: scale(1.07); }
.cg-tile:nth-child(-n + 2) { --dy: 9%; }
.cg-tile:nth-child(n + 3):nth-child(-n + 5) { --dy: 12%; }
.cg-media::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, rgba(255, 255, 255, .55)) 0%, rgba(255, 255, 255, 0) 42%);
}
.cg-strati {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .6; mix-blend-mode: soft-light;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .95) 0 1px, rgba(255, 255, 255, 0) 1px 7px);
  clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease);
}
.cg-media .cg-cut { z-index: 2; }
.cg-testina {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .95) 30%, rgba(255, 255, 255, .95) 70%, rgba(255, 255, 255, 0));
  box-shadow: 0 0 14px 2px rgba(255, 255, 255, .55);
  transition: bottom 1.3s var(--ease);
}
.cg-tile:hover .cg-strati, .cg-tile:focus-visible .cg-strati { clip-path: inset(0 0 0 0); }
.cg-tile:hover .cg-testina, .cg-tile:focus-visible .cg-testina { bottom: 100%; animation: cgTestina 1.3s linear forwards; }
@keyframes cgTestina { 0% { opacity: 0; } 8% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; } }
/* touch: niente hover, gli strati si stampano una volta quando la tessera entra nello schermo */
@media (hover: none) {
  .cg-tile.in .cg-strati { clip-path: inset(0 0 0 0); transition-delay: calc(.35s + var(--i, 0) * .07s); }
  .cg-tile.in .cg-testina { bottom: 100%; animation: cgTestina 1.3s linear forwards; transition-delay: calc(.35s + var(--i, 0) * .07s); animation-delay: calc(.35s + var(--i, 0) * .07s); }
}

.cg-head { display: flex; align-items: center; gap: 8px; }
.cg-ic {
  display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; color: #fff;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 75%, #fff) 0%, var(--c) 55%, color-mix(in srgb, var(--c) 80%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -8px var(--c);
}
.cg-conta {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 7px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
  font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--ink-2); white-space: nowrap;
}
.cg-conta b { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cg-tile.is-soon .cg-conta { background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .16); color: var(--c-ink); }

.cg-body { display: grid; gap: 8px; order: -1; margin-bottom: 14px; }
.cg-tile .cg-body { order: 0; margin: 14px 0 auto; }
.cg-name {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.6vw, 1.55rem);
  line-height: 1; letter-spacing: -.035em; font-variation-settings: "opsz" 72; color: var(--ink);
}
.cg-desc { display: none; max-width: 22em; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.cg-tile:nth-child(-n + 2) .cg-name { font-size: clamp(2.1rem, 3.5vw, 3.3rem); letter-spacing: -.045em; }
.cg-tile:nth-child(-n + 2) .cg-desc { display: block; max-width: 19em; font-size: 15.5px; }
.cg-tile:nth-child(n + 3):nth-child(-n + 5) .cg-name { font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.cg-tile:nth-child(n + 3):nth-child(-n + 5) .cg-desc { display: block; max-width: 15em; font-size: 14px; }

.cg-go {
  position: absolute; right: clamp(14px, 1.4vw, 20px); bottom: clamp(14px, 1.4vw, 20px); display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--ink);
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--sh-md);
  transition: background .35s, color .35s, transform .7s var(--ease);
}
.cg-tile:hover .cg-go { background: var(--c-ink); color: #fff; transform: translateX(3px); }

@media (max-width: 1100px) {
  .cg-tile { --h: 220px; }
  .cg-tile:nth-child(-n + 2) { --h: 320px; }
  .cg-tile:nth-child(n + 3):nth-child(-n + 5) { --h: 260px; }
  .cg-tile:nth-child(n + 3):nth-child(-n + 5) .cg-desc { display: none; }
  .cg-tile:nth-child(n + 6) .cg-conta { padding: 6px 9px; font-size: 11.5px; }
  .cg-tile:nth-child(n + 6) .cg-ic { width: 30px; height: 30px; }
  .cg-tile:nth-child(n + 6) .cg-go { width: 36px; height: 36px; }
}
/* telefono: una tessera grande, poi quattro coppie */
@media (max-width: 700px) {
  .cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cg-tile, .cg-tile:nth-child(n + 3):nth-child(-n + 5), .cg-tile:nth-child(n + 6) { grid-column: span 1; --h: 196px; padding: 13px; border-radius: var(--r-lg); -webkit-clip-path: inset(0 round 24px); clip-path: inset(0 round 24px); }
  .cg-tile:nth-child(1) { grid-column: span 2; --h: 280px; padding: 18px; }
  .cg-tile:nth-child(2) { grid-column: span 1; --h: 196px; padding: 13px; }
  .cg-tile:nth-child(n + 2) .cg-desc { display: none !important; }
  .cg-tile:nth-child(1) .cg-name { font-size: 2.1rem; }
  .cg-tile:nth-child(n + 2) .cg-name { font-size: 1.15rem !important; letter-spacing: -.03em; }
  .cg-tile .cg-body { margin-top: 10px; }
  .cg-tile:nth-child(n + 2) .cg-head { gap: 6px; }
  .cg-tile:nth-child(n + 2) .cg-ic { width: 28px; height: 28px; }
  .cg-tile:nth-child(n + 2) .cg-ic svg { width: 14px; height: 14px; }
  .cg-tile:nth-child(n + 2) .cg-conta { padding: 5px 8px; font-size: 11.5px; }
  .cg-tile:nth-child(n + 2) .cg-conta b { font-size: 12px; }
  .cg-tile:nth-child(n + 2) .cg-go { width: 32px; height: 32px; right: 10px; bottom: 10px; }
  .cg-tile:nth-child(n + 2) .cg-go svg { width: 15px; height: 15px; }
}

/* ============================================================
   HOME — BESTSELLER: il N°1 in grande, poi sei card compatte
   ============================================================ */
.bs-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); gap: clamp(14px, 1.5vw, 22px); transition: opacity .28s, transform .28s; }
.bs-body.is-out { opacity: 0; transform: translateY(10px); }
.bs-feat {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(520px, 46vw, 660px); padding: clamp(16px, 1.6vw, 22px);
  border-radius: var(--r-lg); -webkit-clip-path: inset(0 round 30px); clip-path: inset(0 round 30px);
  background: #2A261F; color: #fff;
}
.bs-feat-media { position: absolute; inset: 0; z-index: -2; }
.bs-feat-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.6s var(--ease); }
.bs-feat:hover .bs-feat-media img { transform: scale(1.04); }
.bs-feat::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14, 12, 9, .34) 0%, rgba(14, 12, 9, 0) 22%, rgba(14, 12, 9, 0) 42%, rgba(14, 12, 9, .62) 70%, rgba(14, 12, 9, .9) 100%),
    radial-gradient(80% 50% at 0% 100%, color-mix(in srgb, var(--cc) 45%, transparent) 0%, transparent 70%);
}
.bs-feat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bs-feat .prod-cat.cat-tag { margin: 0; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: none; }
.bs-feat-n { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .78; letter-spacing: -.06em; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.bs-feat-n small { margin-right: 2px; font-size: .32em; letter-spacing: 0; vertical-align: top; opacity: .8; }
.bs-feat-body { display: grid; justify-items: start; gap: 10px; padding: 4px clamp(4px, .8vw, 12px) clamp(4px, .8vw, 12px); }
.bs-kick { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.bs-kick::before { content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--cc); }
.bs-feat-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3vw, 2.8rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.bs-feat-name a { text-decoration: none; background-image: linear-gradient(90deg, var(--cc, #E8C36A) 0 50%, currentColor 50% 100%); background-size: 200.5% 100%; background-position: 100% 0; background-repeat: no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-position .7s var(--ease); }
.bs-feat:hover .bs-feat-name a, .bs-feat-name a:focus-visible { background-position: 0 0; }
.bs-feat-desc { max-width: 32em; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .82); text-wrap: pretty; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bs-feat-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; width: 100%; margin-top: 6px; }
.bs-feat-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2vw, 1.9rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bs-feat .prod-rate.real-tag { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: #fff; }
.bs-feat .prod-rate.real-tag svg { color: #8FE3B0; }
.bs-feat-add.btn { margin-left: auto; height: 52px; background: #fff; color: var(--ink); }
.bs-feat-add.btn:hover { background: #fff; }
.bs-feat-add.added { background: #12A150; color: #fff; }

.bs-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.2vw, 16px); align-content: stretch; }
.bs-card {
  position: relative; display: flex; flex-direction: column; padding: 7px; border-radius: var(--r-lg);
  background: #fff; box-shadow: 0 1px 2px rgba(60, 45, 25, .05), 0 18px 34px -26px rgba(60, 45, 25, .45);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
  animation: bsIn .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * .05s);
}
@keyframes bsIn { from { opacity: 0; transform: translateY(12px); } }
.bs-card:hover { transform: translateY(var(--lift, -4px)); box-shadow: 0 1px 2px rgba(60, 45, 25, .05), 0 30px 46px -28px rgba(60, 45, 25, .55); }
.bs-card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 1 / 1; border-radius: var(--r-md); background: #EDE7DC; }
.bs-card-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform 1.2s var(--ease); }
.bs-card:hover .bs-card-media img { transform: scale(1.06); }
.bs-card-n {
  position: absolute; top: 9px; left: 9px; padding: 5px 9px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-display); font-weight: 700; font-size: 12.5px; letter-spacing: -.01em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums;
}
.bs-card-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 12px 7px 5px; }
.bs-card .prod-cat.cat-tag { margin-bottom: 8px; font-size: 11.5px; padding-right: 9px; }
.bs-card .cat-tag-ic { width: 19px; height: 19px; }
.bs-card-name { font-family: var(--font-display); font-weight: 650; font-size: 15.5px; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.bs-card-name a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.bs-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: auto; padding-top: 10px; }
.bs-card-price { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bs-card-add {
  position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 19px; line-height: 1; transition: background .3s, transform .5s var(--ease);
}
.bs-card-add:hover { background: var(--cc-ink); transform: rotate(90deg); }
.bs-card-add.added { background: #12A150; transform: none; }

@media (max-width: 1180px) {
  .bs-body { grid-template-columns: minmax(0, 1fr); }
  .bs-feat { min-height: 520px; }
}
@media (max-width: 700px) {
  .bs-feat { min-height: 470px; border-radius: var(--r-lg); -webkit-clip-path: inset(0 round 24px); clip-path: inset(0 round 24px); }
  .bs-feat-add.btn { width: 100%; margin-left: 0; justify-content: space-between; }
  .bs-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bs-card { padding: 6px; border-radius: var(--r-md); }
  .bs-card-media { border-radius: 15px; }
  .bs-card-name { font-size: 14.5px; }
}

/* ============================================================
   HOME — LINEA DELLE GARANZIE: «nastro» di filamento che scorre sempre
   ============================================================ */
.trust-line .trust-view {
  padding: 12px 0; border-radius: var(--r-md);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 1px, rgba(255, 255, 255, 0) 1px 5px),
    linear-gradient(180deg, #1D1B16 0%, #15140F 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--sh-md);
}
/* il filo arancio lungo il bordo, come il filamento che esce dalla bobina */
.trust-line .trust-view::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(228, 87, 46, 0), var(--filo) 18%, #F2A23A 50%, var(--filo) 82%, rgba(228, 87, 46, 0));
  opacity: .85;
}
/* mai in pausa al passaggio del mouse; si ferma solo se il fuoco da tastiera è su una voce */
.trust-line .trust-view:hover .trust-track,
.trust-line .trust-view:focus-within .trust-track { animation-play-state: running; }
.trust-line .trust-view:has(:focus-visible) .trust-track { animation-play-state: paused; }
.trust-line .trust-group li { padding: 0; }
.trust-line .trust-group li::after {
  /* separatore: tre strati impilati */
  content: ""; position: static; flex: 0 0 auto; width: 14px; height: 11px; margin: 0 4px; border-radius: 0; transform: none;
  background:
    linear-gradient(var(--filo), var(--filo)) 50% 0 / 6px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .45), rgba(255, 255, 255, .45)) 50% 50% / 10px 2px no-repeat,
    linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .25)) 50% 100% / 14px 2px no-repeat;
}
.trust-it { display: flex; align-items: center; gap: 12px; padding: 4px 22px; border-radius: var(--r-sm); color: #F4EFE4; white-space: nowrap; }
.trust-line .trust-ic {
  width: 38px; height: 38px; border-radius: var(--r-sm); color: #FF8A5B;
  background: linear-gradient(150deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: background .35s, color .35s, transform .6s var(--ease);
}
.trust-line .trust-txt b { color: #fff; font-size: 15px; font-weight: 650; }
.trust-line .trust-txt small { color: rgba(244, 239, 228, .58); font-size: 12px; }
.trust-it:hover .trust-ic { background: var(--filo); color: #fff; transform: translateY(-2px) rotate(-6deg); }
.trust-it:hover .trust-txt b { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.trust-it:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .trust-line .trust-view { border-radius: var(--r-md); padding: 12px 10px; }
  .trust-line .trust-view.is-static .trust-group { flex-wrap: wrap; justify-content: center; row-gap: 10px; }
  .trust-line .trust-view.is-static .trust-group li { flex: 0 0 auto; padding: 0; }
  .trust-line .trust-view.is-static .trust-group li:last-child::after { display: none; }
}
@media (max-width: 600px) {
  .trust-line .trust-view { padding: 9px 0; border-radius: var(--r-md); }
  .trust-it { gap: 10px; padding: 3px 16px; }
  .trust-line .trust-ic { width: 32px; height: 32px; border-radius: var(--r-sm); }
  .trust-line .trust-txt b { font-size: 14px; }
}

/* ============================================================
   HERO — diapositiva finale di una passione ancora vuota
   ============================================================ */
.stage-cta-soon {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  font-style: normal; font-size: 13px; font-weight: 600; color: #fff;
}
.stage-cta-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ping 2.4s var(--ease) infinite; }

@media (prefers-reduced-motion: reduce) {
  .cg-tile, .cg-media img, .cg-go, .bs-card, .bs-feat-media img, .bs-card-media img { transition: none; }
  .cg-tile:hover, .bs-card:hover { transform: none; }
  .cg-tile:hover .cg-media img, .bs-card:hover .bs-card-media img, .bs-feat:hover .bs-feat-media img { transform: scale(1.02); }
  .cg-strati { transition: none; }
  .cg-testina { display: none; }
  .bs-card { animation: none; }
  .empty-cat-stampa { animation: none; clip-path: inset(0 0 0 0); opacity: .6; }
  .stage-cta-soon::before { animation: none; }
}

/* ordine della barra: prima conteggio, «Azzera i filtri», filtri e ordinamento; sotto, le passioni */
.shop .shop-bar .shop-cats { order: 4; margin-top: 2px; padding-top: 8px; border-top: 1px solid rgba(21, 20, 15, .07); }
.shop .shop-bar .shop-meta { order: 1; }
.shop .shop-bar .shop-tools { order: 2; }

/* ============================================================
   RIFINITURA (29/11) — barra filtri, card, pagamento
   ============================================================ */

/* filtri: stati al passaggio, al fuoco e alla pressione coerenti fra pastiglie, interruttori e menu */
.shop .ftoggle { transition: background .3s, border-color .3s, color .3s, box-shadow .3s; }
.shop .ftoggle:hover { background: #fff; border-color: rgba(21, 20, 15, .22); }
.shop .ftoggle.is-on:hover { background: var(--ink); border-color: var(--ink); }
.shop .fselect { cursor: pointer; transition: border-color .3s, background-color .3s; }
.shop .fselect:hover { border-color: rgba(21, 20, 15, .26); background-color: #fff; }
.shop .fchip:focus-visible, .shop .ftoggle:focus-visible, .shop .fselect:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r-pill); }
.shop .fchip:active, .shop .ftoggle:active { transform: scale(.97); }
.shop .fchip, .shop .ftoggle { transition: background .3s, color .3s, box-shadow .3s, border-color .3s, transform .25s var(--ease); }

/* «Azzera i filtri»: piccolo pulsante con la crocetta, non un link qualsiasi */
.shop .shop-meta #shopReset {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: var(--r-pill);
  background: rgba(21, 20, 15, .05); color: var(--ink-2); text-decoration: none;
  font-size: 12.5px; font-weight: 600; line-height: 1; transition: background .3s, color .3s;
}
.shop .shop-meta #shopReset::before { content: "×"; font-size: 15px; font-weight: 500; line-height: 1; margin-top: -1px; }
.shop .shop-meta #shopReset:hover { background: var(--ink); color: #fff; }
/* pastiglie alte 28px: il tocco si allarga a 44px senza cambiarne il disegno (::before è già la crocetta di «Azzera», ::after quella della fascia) */
.shop .shop-meta #shopReset, .shop .shop-meta #shopPrice { position: relative; }
.shop .shop-meta #shopReset::after, .shop .shop-meta #shopPrice::before { content: ""; position: absolute; inset: -8px -4px; }

/* card: pulsante «+» e link con il fuoco visibile sopra la foto */
.prod .prod-add:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.prod .prod-media:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.prod .prod-add:active { transform: scale(.92); }

/* telefono: i filtri scorrono in una riga sola (con dissolvenza al bordo), le etichette restano a sinistra */
@media (max-width: 900px) {
  .shop .shop-bar .shop-tools {
    flex: 1 1 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; gap: 6px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
    padding-right: 24px;
  }
  .shop .shop-bar .shop-tools::-webkit-scrollbar { display: none; }
  .shop .shop-bar .shop-tools .fselect { order: -1; flex: 0 0 auto; }
  .prod-grid .prod-meta { align-items: flex-start; }
}

/* ============================================================
   PAGAMENTO — passaggi, blocchi numerati, riepilogo
   ============================================================ */
.co-steps {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.co-steps li { display: inline-flex; align-items: center; gap: 6px; }
.co-steps li + li::before { content: ""; width: 18px; height: 1px; margin-right: 2px; background: rgba(21, 20, 15, .2); }
.co-steps .co-step {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 13px 0 5px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .08); color: inherit; line-height: 1;
}
.co-steps .co-step i {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal;
  background: rgba(21, 20, 15, .07); color: var(--ink-2); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.co-steps .is-done .co-step { color: var(--ink-2); }
.co-steps .is-done .co-step i { background: #12A150; color: #fff; }
.co-steps .is-now .co-step { background: var(--ink); color: #fff; box-shadow: var(--sh-md); }
.co-steps .is-now .co-step i { background: #fff; color: var(--ink); }
.co-steps button.co-step { cursor: pointer; transition: background .3s, box-shadow .3s; }
.co-steps button.co-step:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(21, 20, 15, .18); }

.co .co-block { padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 1px 2px rgba(60, 45, 25, .04); }
.co .co-block + .co-block { margin-top: 14px; }
.co .co-block > h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 1.35rem; }
.co-num {
  display: grid; place-items: center; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.co .field small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.co .note { border-radius: var(--r-md); }
.co-pay .btn { justify-content: space-between; }
.co-pay .form-fine { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 12px; text-align: center; }
.co-pay .form-fine:not(.is-ok)::before {
  content: ""; width: 12px; height: 12px; flex: 0 0 auto; opacity: .7;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315140F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.5' width='16' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}
.co-pay .form-fine.is-ok { padding: 12px 14px; border-radius: var(--r-sm); background: rgba(18, 161, 80, .08); color: #0D6E38; line-height: 1.5; text-align: left; }

/* riepilogo: miniatura in alto, dettagli su righe leggibili */
.co-sum .co-line { align-items: start; }
.co-sum .co-line .cart-ph { display: block; overflow: hidden; aspect-ratio: 1; }
.co-sum .co-line .cart-ph img { width: 100%; height: 100%; object-fit: cover; }
.co-sum .co-line small { display: block; margin-top: 4px; line-height: 1.45; text-wrap: pretty; }
.co-sum .co-line strong { padding-top: 1px; font-variant-numeric: tabular-nums; }
.co-sum .co-rows span:last-child { font-variant-numeric: tabular-nums; }
.co-sum .cart-continue { display: block; width: 100%; margin-top: 14px; padding: 12px; border-radius: var(--r-pill); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(21, 20, 15, .25); text-underline-offset: 4px; transition: background .3s, text-decoration-color .3s; }
.co-sum .cart-continue:hover { background: rgba(21, 20, 15, .05); text-decoration-color: currentColor; }

/* carrello vuoto: un riquadro unico al posto del modulo, su tutta la larghezza */
.co.is-empty { grid-template-columns: minmax(0, 1fr); }
.co.is-empty .co-sum { display: none; }
.co-empty {
  display: grid; justify-items: center; gap: 12px; padding: clamp(46px, 6vw, 84px) 24px; border-radius: var(--r-lg); text-align: center;
  background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.co-empty h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.co-empty .page-lead { margin: 0 auto; max-width: 28em; }
.co-empty .page-actions { justify-content: center; margin-top: 10px; }

@media (max-width: 600px) {
  .co .co-block { padding: 18px 16px 20px; border-radius: var(--r-md); }
  .co-steps { gap: 4px; font-size: 12px; }
  .co-steps { column-gap: 14px; }
  .co-steps li + li::before { display: none; }
  .co-steps .co-step { padding-right: 10px; }
}

/* fascia di prezzo arrivata da URL (catalogo.html?min=…&max=…): pastiglia che si toglie con un clic */
.shop .shop-meta #shopPrice {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px 0 12px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums;
  transition: background .3s;
}
.shop .shop-meta #shopPrice::after { content: "×"; font-size: 15px; font-weight: 500; opacity: .75; }
.shop .shop-meta #shopPrice:hover { background: #3B392F; }

/* ============================================================
   CORREZIONI DOPO LA REVISIONE (29/11)
   ============================================================ */

/* etichetta della passione sulle card: testo scurito (68% colore + inchiostro), contrasto AA su ogni passione */
.prod-cat.cat-tag, .prod-info .prod-cat.cat-tag { color: color-mix(in srgb, var(--cc) 68%, #15140F); }

/* filtro attivo: fondo inchiostro e testo bianco (la regola .shop .ftoggle lo copriva) */
.shop .ftoggle.is-on, .shop-sheet .ftoggle.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.shop .ftoggle.is-on:hover, .shop-sheet .ftoggle.is-on:hover { background: #2B2A24; border-color: #2B2A24; }
.shop-toggles { display: flex; align-items: center; gap: 4px; }

/* passioni senza pezzi che portano altrove: Aziende → configuratore, Su misura → preventivo */
.shop .fchip.is-link .fchip-n, .shop-sheet .fchip.is-link .fchip-n {
  width: auto; padding: 0 9px; white-space: nowrap; background: color-mix(in srgb, var(--chip) 12%, #fff); color: color-mix(in srgb, var(--chip) 68%, #15140F);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--chip) 22%, transparent); font-style: normal; font-weight: 700; font-size: 11.5px;
}
.shop .fchip.is-link:hover .fchip-n { background: var(--chip-ink, var(--ink)); color: #fff; box-shadow: none; }
.fchip.is-link { text-decoration: none; }

/* pulsante «Filtri» e pannello dal basso: solo su telefono */
.shop-filtri { display: none; }
.shop-sheet { display: none; }
@media (max-width: 900px) {
  .shop .shop-bar { gap: 8px; padding: 8px; }
  .shop .shop-bar .shop-meta { flex: 1 1 100%; }
  .shop .shop-bar .shop-tools { flex: 1 1 100%; overflow: visible; -webkit-mask-image: none; mask-image: none; padding-right: 0; gap: 8px; }
  .shop .shop-bar .shop-tools .fselect { order: 0; flex: 1 1 auto; min-width: 0; height: 44px; }
  .shop-filtri {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; height: 44px; padding: 0 16px 0 14px;
    border-radius: var(--r-pill); background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; line-height: 1;
    box-shadow: var(--sh-md); transition: transform .25s var(--ease);
  }
  .shop-filtri::before {
    content: ""; width: 16px; height: 16px; flex: 0 0 auto;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h4M12 17h8'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='17' r='2'/%3E%3C/svg%3E");
  }
  .shop-filtri:active { transform: scale(.97); }
  .shop-filtri b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: #fff; color: var(--ink); font-size: 11.5px; font-weight: 700; }
  .shop-filtri b[hidden] { display: none; }

  .shop-sheet[open] {
    display: block; position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: min(86svh, 720px); margin: 0; padding: 0; border: 0;
    border-radius: 26px 26px 0 0; background: #FBF8F2; color: var(--ink); box-shadow: var(--sh-lg);
    animation: sheetSu .45s var(--ease);
  }
  .shop-sheet::backdrop { background: rgba(21, 20, 15, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  @keyframes sheetSu { from { transform: translateY(100%); } }
  .shop-sheet-in { display: flex; flex-direction: column; max-height: inherit; }
  .shop-sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 8px 22px; }
  .shop-sheet-h::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: rgba(21, 20, 15, .16); }
  .shop-sheet-h h2 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.03em; }
  .shop-sheet-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(21, 20, 15, .06); font-size: 22px; line-height: 1; }
  .shop-sheet-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 16px; }
  .shop-sheet-k { margin: 14px 4px 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
  .shop-sheet .shop-toggles { flex-wrap: wrap; gap: 8px; }
  .shop-sheet .ftoggle { height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff; font-size: 14.5px; font-weight: 600; }
  .shop-sheet .shop-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 0; border: 0; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .shop-sheet .fchip {
    display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 12px; border-radius: var(--r-md); min-width: 0;
    background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
  }
  .shop-sheet .fchip .cat-ic { color: var(--chip-ink, var(--chip, var(--ink))); }
  .shop-sheet .fchip .fchip-lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .shop-sheet .fchip[data-cat=""] { grid-column: 1 / -1; justify-content: center; }
  .shop-sheet .fchip.is-on { background: var(--chip-ink, var(--ink)); color: #fff; box-shadow: none; }
  .shop-sheet .fchip.is-on .cat-ic { color: #fff; }
  .shop-sheet .fchip.is-on .fchip-n { background: rgba(255, 255, 255, .2); color: #fff; }
  .shop-sheet-f { display: flex; align-items: center; gap: 12px; padding: 12px 18px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #FBF8F2; }
  .shop-sheet-reset { padding: 0 6px; height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(21, 20, 15, .3); }
  .shop-sheet-f .btn { flex: 1 1 auto; justify-content: center; height: 52px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) { .shop-sheet[open] { animation: none; } }

/* ---------- pagamento: campi obbligatori, errori in linea, codice sconto ---------- */
.co-steps[hidden] { display: none; }
.co-legend { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.co-req { margin-left: 3px; color: #B23A1E; text-decoration: none; border: 0; cursor: help; }
.co-opt { margin-left: 6px; font-size: 11.5px !important; font-weight: 500; color: var(--muted); }
.co .field { align-content: start; }
.co .field small { margin-top: 0; }
.co-err { margin: 0; min-height: 0; font-size: 12.5px; font-weight: 600; color: #A1361C; }
.co-err:empty { display: none; }
.co .field.is-err input { border-color: #C2552F; background: #FFF8F5; }
.co .field.is-err input:focus { box-shadow: 0 0 0 4px rgba(194, 85, 47, .12); }
.co .field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: #fff right 16px center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2315140F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); cursor: pointer; }
.co-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.co-grid > .field { grid-column: span 3; }
.co-grid > .field.wide { grid-column: 1 / -1; }
.co-grid > .co-cap { grid-column: span 2; }
.co-grid > .co-citta { grid-column: span 4; }
.co-grid > .co-prov { grid-column: span 2; }
.co-grid > .co-paese { grid-column: span 4; }
@media (max-width: 600px) {
  .co .form-grid { grid-template-columns: minmax(0, 1fr); }
  .co-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .co-grid > .field, .co-grid > .co-citta, .co-grid > .co-paese { grid-column: 1 / -1; }
  .co-grid > .co-cap { grid-column: span 3; }
  .co-grid > .co-prov { grid-column: span 3; }
  .co-grid > .co-citta { grid-row: auto; }
}
.co-pay .form-fine.is-err { padding: 12px 14px; border-radius: var(--r-sm); background: #FFF1EC; color: #A1361C; text-align: left; justify-content: flex-start; }
.co-pay .form-fine.is-err::before { display: none; }
#coPayLbl { font-variant-numeric: tabular-nums; }

.co-code { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.co-code label { font-size: 13px; font-weight: 600; }
.co-code-row { display: flex; gap: 8px; }
.co-code-row input {
  flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r-pill); background: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; transition: border-color .25s;
}
.co-code-row input::placeholder { font-weight: 500; letter-spacing: 0; text-transform: none; color: #8D877A; }
.co-code-row input:hover { border-color: rgba(21, 20, 15, .22); }
.co-code-row input:focus { outline: none; border-color: var(--ink); }
.co-code-row input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.co-code-row input[aria-invalid="true"] { border-color: #C2552F; }
.co-code-go { flex: 0 0 auto; height: 46px; padding: 0 18px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; transition: background .3s, transform .25s var(--ease); }
.co-code-go:hover { background: #2B2A24; }
.co-code-go:active { transform: scale(.97); }
.co-code-msg { margin: 0; font-size: 12.5px; line-height: 1.45; }
.co-code-msg:empty { display: none; }
.co-code-msg.is-ok { color: #0D6E38; }
.co-code-msg.is-err { color: #A1361C; }
.co-code-on { justify-content: flex-end !important; margin-top: -4px; }
.co-code-on button { font-size: 12.5px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.co-code-on button:hover { color: var(--ink); }
@media (max-width: 900px) {
  .shop-sheet .fchip .fchip-lbl { text-align: left; }
  .shop-sheet .fchip.is-link { grid-column: 1 / -1; }
  .shop-sheet .fchip-n { flex: 0 0 auto; white-space: nowrap; }
}
.co .field label .co-opt { display: inline; margin: 0 0 0 6px; }

/* ============================================================
   SECONDA REVISIONE (29/11)
   ============================================================ */

/* B2: passioni su una riga sola senza tagli; se lo schermo è stretto vanno a capo, mai nascoste */
@media (min-width: 901px) {
  .shop .shop-bar .shop-cats { flex-wrap: wrap; overflow: visible; row-gap: 4px; -webkit-mask-image: none; mask-image: none; padding-right: 0; }
  .shop .fchip { gap: 5px; padding: 0 4px 0 9px; font-size: 13px; }
  .shop .fchip[data-cat=""] { padding-inline: 16px; }
  .fchip-n { min-width: 22px; height: 22px; padding: 0 5px; font-size: 11px; }
}
.shop .fchip.is-link .fchip-n, .shop-sheet .fchip.is-link .fchip-n { white-space: nowrap; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; }
.shop .fchip.is-link { flex-shrink: 0; }
/* passioni senza risultati con la ricerca o la fascia di prezzo attuale */
.shop .fchip.is-zero, .shop-sheet .fchip.is-zero { opacity: .45; }

/* B7: pannello Filtri: pastiglie a larghezza naturale (niente nomi troncati) e fasce di prezzo */
@media (max-width: 900px) {
  .shop-sheet .shop-cats { display: flex; flex-wrap: wrap; gap: 8px; }
  .shop-sheet .fchip { height: 44px; padding: 0 6px 0 12px; border-radius: 999px; }
  .shop-sheet .fchip .fchip-lbl { flex: 0 1 auto; overflow: visible; text-overflow: clip; }
  .shop-sheet .fchip[data-cat=""] { flex: 0 0 auto; padding-inline: 18px; }
  .shop-sheet .fchip.is-link { grid-column: auto; }
  .shop-fasce { display: flex; flex-wrap: wrap; gap: 8px; }
  .shop-fasce .ftoggle::before { display: none; }
  .shop-fasce .ftoggle { font-variant-numeric: tabular-nums; }
}

/* B8: titoli delle card interi (fino a tre righe, niente puntini) */
.prod-grid .prod-name { display: block; -webkit-line-clamp: unset; overflow: visible; }

/* B16: «Mostra altri» sotto la griglia */
.shop-more { display: grid; justify-items: center; gap: 12px; margin-top: clamp(34px, 4vw, 52px); }
.shop-more[hidden] { display: none; }
.shop-more-n { margin: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.shop-more .btn { padding: 16px 28px; font-weight: 600; background: #fff; transition: background .3s, color .3s, border-color .3s; }
.shop-more .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* B4: messaggi del codice leggibili (≥ 4,5:1 sulla carta) */
#coCodeMsg.is-err { color: #B3261E; }
#coCodeMsg.is-ok { color: #0B6232; }
.co-err, .co-pay .form-fine.is-err { color: #B3261E; }

/* B5: telefono, campi tutti alla stessa larghezza; CAP e Provincia affiancati alla pari */
.co .field input, .co .field select { width: 100%; box-sizing: border-box; }
@media (max-width: 600px) {
  .co .co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co .co-grid > .field { grid-column: 1 / -1; order: 0; }
  .co .co-grid > .co-citta { order: 1; }
  .co .co-grid > .co-cap { grid-column: 1 / 2; order: 2; }
  .co .co-grid > .co-prov { grid-column: 2 / 3; order: 2; }
  .co .co-grid > .co-paese { order: 3; }
}

/* B14: carrello vuoto con il dado e quattro pezzi da cui ripartire */
.co-empty .empty-die { display: block; width: 64px; height: 64px; margin: 0 auto 4px; color: var(--ink); }
.co-empty .empty-die svg { width: 100%; height: 100%; }
.co-sugg { margin-top: clamp(36px, 4vw, 56px); }
.co-sugg-t { margin: 0 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -.03em; }
/* la regola globale .is-err (site.css, rosso chiaro pensato per fondi scuri) qui non vale: fondo crema */
#coCodeMsg.is-err, .co-pay #coFine.is-err { color: #B3261E !important; }
.co .field.is-err { color: inherit !important; }
.co .field.is-err .co-err { color: #B3261E !important; }
#coCodeMsg.is-ok, .co-pay #coFine.is-ok { color: #0B6232 !important; }
/* passaggi del pagamento: su telefono il trattino non resta mai da solo all'inizio della riga */
@media (max-width: 600px) {
  .co-steps { flex-wrap: wrap; row-gap: 6px; }
  .co-steps li { white-space: nowrap; }
  .co-steps { column-gap: 14px; }
  .co-steps li + li::before { display: none; }
}

/* ============================================================
   DETTAGLI (29/11, seconda passata)
   ============================================================ */
/* telefono: scorrendo in giù la barra dei filtri si ritira sotto il menu, scorrendo in su torna */
@media (max-width: 900px) {
  .shop .shop-bar { transition: transform .4s var(--ease), opacity .3s; }
  .shop .shop-bar.is-via { transform: translateY(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .shop .shop-bar { transition: none; }
}
/* stato vuoto: «Azzera i filtri» accanto al «su misura» */
.grid-empty .empty-azzera { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; text-decoration: underline; text-decoration-color: rgba(21, 20, 15, .25); text-underline-offset: 4px; }
.grid-empty .empty-azzera:hover { text-decoration-color: currentColor; }
/* telefono: la prima fila di card compare subito, senza animazione d'ingresso */
.prod-grid .prod.is-subito.reveal.in { opacity: 1; animation: none; }
/* pagamento, telefono: etichetta corta per il passo 2, così i tre passi stanno su una riga con i trattini */
.co-steps .co-corto { display: none; }
@media (max-width: 600px) {
  .co-steps { flex-wrap: nowrap; column-gap: 4px; }
  .co-steps li + li::before { display: block; width: 12px; margin-right: 0; }
  .co-steps .co-lungo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .co-steps .co-corto { display: inline; }
}
/* 320px: trattini e pastiglie più stretti, «3 Conferma» resta nella riga */
@media (max-width: 360px) {
  .co-steps li { gap: 4px; }
  .co-steps li + li::before { width: 8px; }
  .co-steps .co-step { padding: 0 8px 0 4px; gap: 5px; }
}
/* catalogo filtrato per passione: l'etichetta della passione su ogni card si toglie */
.senza-cat .prod-cat, .senza-cat .prod-info .prod-cat.cat-tag { display: none; }
/* ordine confermato: niente scelta dei buoni nel riquadro del Club */
.co-sum.is-chiuso .co-buoni { display: none; }
/* buono non ancora usabile: testo leggibile, solo il pallino resta spento */
.co-buoni .co-buono.is-off { opacity: 1; color: #5E594F; }
.co-buoni .co-buono.is-off input { opacity: .45; }
.co-buoni .co-buono.is-off b { color: var(--ink-2); }
/* pagamento: la fascia della newsletter («-10% sul primo ordine») non serve qui */
body[data-page="checkout"] .ft-news { display: none; }
/* card cliccabili: alla pressione si abbassano appena */
.cg-tile:active, .bs-card:active { transform: scale(.99); }
@media (hover: hover) { .cg-tile:active, .bs-card:active { transform: translateY(var(--lift, -4px)) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .cg-tile:active, .bs-card:active { transform: none; } }
/* schermi touch: niente sollevamento «appiccicato» dopo il tocco, solo la pressione */
@media (hover: none) {
  .cg-tile:hover, .bs-card:hover { transform: none; }
  .cg-tile:active, .bs-card:active { transform: scale(.99); }
}
/* codice sconto: il campo si restringe, «Applica» resta dentro la card a ogni larghezza */
.co-code-row { min-width: 0; }
.co-code-row #coCode { width: 0; min-width: 0; flex: 1 1 auto; }
.co-code-row .co-code-go { flex: 0 0 auto; }
/* Paese: un campo fisso, non un menu con una voce sola */
.co .field input[readonly] { background: rgba(255, 255, 255, .5); color: var(--ink-2); cursor: default; }
/* riga personalizzata nel riepilogo: «Modifica» riapre la scheda con le stesse scelte */
.co-sum .co-line .co-modifica { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(21, 20, 15, .25); text-underline-offset: 3px; }
.co-sum .co-line .co-modifica:hover { text-decoration-color: currentColor; }
/* passo 3 dell'anteprima: riepilogo dell'ordine di prova */
.co-fatto-k { margin: 4px 0 10px; font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -.02em; color: var(--ink); }
.co-fatto-list { margin: 16px 0 20px; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.co-fatto-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.co-fatto-list li b { font-variant-numeric: tabular-nums; }
.co-fatto-list li.tot { font-weight: 650; color: var(--ink); }

/* ============================================================
   GIRO 9 (30/11) — pagamento: dettagli del riepilogo e della conferma
   ============================================================ */
/* «Modifica»: area di tocco alta 32 px senza spostare la riga */
.co-sum .co-line .co-modifica { margin-top: 0; padding: 6px 0 7px; }
.co-sum .co-line .co-modifica:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
/* quanto manca alla spedizione gratuita: una riga piccola sotto «Spedizione» */
.co-rows .co-ship-hint { margin: -4px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
/* conferma: righe con le cifre in colonna, sconti in verde, totale più deciso */
.co-fatto-list li > span { min-width: 0; text-wrap: pretty; }
.co-fatto-list li > b { flex: 0 0 auto; white-space: nowrap; }
.co-fatto-list li.is-sconto { color: #0E7A41; }
.co-fatto-list li.tot { padding-top: 14px; font-size: 15.5px; }
.co-fatto-list li.tot b { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.025em; }

/* catalogo: la parola cercata accanto al conteggio resta com'è stata scritta (non in maiuscoletto) */
.shop .shop-count .shop-q { font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
/* pastiglie «Azzera i filtri» e fascia di prezzo: anello di fuoco come gli altri filtri */
.shop .shop-meta #shopReset:focus-visible, .shop .shop-meta #shopPrice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* ordine di prova chiuso: niente più inviti ad aggiungere pezzi */
.co-sum.is-chiuso .co-ship-hint { display: none; }
