/* Acetaia Meloria 1903 — stili condivisi.
   Le sezioni delle pagine usano gli stili in linea del design originale (Claude Design);
   qui stanno font, header, carrello, stati hover e piccoli aggiustamenti. */

/* Rete di sicurezza: l’attributo hidden vince sempre. Senza, basta un display
   nel foglio di stile per far ricomparire qualcosa che il codice aveva nascosto. */
[hidden] { display: none !important; }


@font-face { font-family: 'EB Garamond'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/eb-garamond.woff2') format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/eb-garamond-italic.woff2') format('woff2'); }
@font-face { font-family: 'Karla'; font-style: normal; font-weight: 300 600; font-display: swap; src: url('../fonts/karla.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-mono.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 148px; }
body { margin: 0; background: #f6f2ea; color: #241a12; -webkit-font-smoothing: antialiased; font-family: Karla, system-ui, sans-serif; }
a { color: #6d1f2c; text-decoration: none; transition: color .2s, background .2s, border-color .2s, box-shadow .25s, opacity .2s; }
a:hover { color: #241a12; }
img { display: block; max-width: 100%; }
button { transition: background .2s, color .2s, border-color .2s; }
input::placeholder, textarea::placeholder { color: #a89478; }
:focus-visible { outline: 2px solid #6d1f2c; outline-offset: 3px; }
.page { font-family: Karla, system-ui, sans-serif; background: #f6f2ea; overflow-x: hidden; overflow-x: clip; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #241a12; color: #f6f2ea; padding: 10px 16px; }
.skip:focus { left: 8px; color: #f6f2ea; }

/* Stati hover (dal design) */
.h-ink:hover { background: #241a12 !important; color: #f6f2ea !important; }
.h-ink-light:hover { background: #241a12 !important; color: #f7ece9 !important; }
.h-ghost:hover { border-color: #241a12 !important; background: rgba(36,26,18,0.06) !important; }
.h-lift:hover { box-shadow: rgba(36,26,18,0.13) 0 18px 44px !important; }
.h-lift2:hover { box-shadow: rgba(36,26,18,0.14) 0 20px 50px !important; }
.h-fade:hover { opacity: 0.88 !important; }
.h-wine-soft:hover { background: rgba(247,236,233,0.1) !important; }
.h-lift, .h-lift2 { transition: box-shadow .25s; }

/* Header */
.announce { background: #241a12; color: #e8ddcb; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; display: flex; justify-content: center; gap: 8px 32px; align-items: center; padding: 11px 24px; flex-wrap: wrap; text-align: center; }
.announce .dot { opacity: 0.35; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(246,242,234,0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(36,26,18,0.12); }
.header__bar { max-width: 1280px; margin: 0 auto; padding: 8px clamp(18px, 3vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: clamp(14px, 2.5vw, 40px); }
.header__logo { display: flex; flex: none; }
.header__logo img { height: clamp(62px, 10vw, 112px); width: auto; }
.header__desk { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 32px; }
.nav { display: flex; gap: clamp(16px, 2vw, 26px); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.nav a { color: #241a12; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { color: #6d1f2c; }
.nav a[aria-current="page"] { color: #6d1f2c; border-bottom-color: #6d1f2c; }
.header__tools { display: flex; gap: 18px; align-items: center; justify-content: flex-end; font-size: 14px; white-space: nowrap; }
.langs { display: flex; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.08em; }
.langs a { color: #8a7a68; border-bottom: 1px solid transparent; }
.langs a:hover { color: #241a12; }
.langs a[aria-current="true"] { color: #241a12; border-bottom-color: #241a12; }
.cart-btn { color: #241a12; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.cart-btn--cta { display: inline-flex; align-items: center; gap: 8px; background: #6d1f2c; color: #f6f2ea; padding: 11px 16px; border-radius: 2px; font-size: 14px; letter-spacing: 0.03em; }
.cart-btn--cta:hover { color: #f6f2ea; }
.cart-count { min-width: 20px; height: 20px; border-radius: 10px; background: rgba(246,242,234,0.22); display: inline-flex; align-items: center; justify-content: center; font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 0 5px; }
.cart-btn:hover { color: #6d1f2c; }
.header__cta { background: #6d1f2c; color: #f6f2ea; padding: 12px 20px; border-radius: 2px; font-size: 13px; letter-spacing: 0.03em; }
.header__mob { display: none; align-items: center; gap: 8px; }
.header__mob .cart-btn--cta { min-width: 46px; height: 42px; padding: 0 12px; font-size: 12.5px; }
.burger { width: 48px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: none; border: 1px solid rgba(36,26,18,0.25); border-radius: 2px; cursor: pointer; }
.burger span { width: 20px; height: 1.5px; background: #241a12; display: block; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobmenu { border-top: 1px solid rgba(36,26,18,0.12); background: #f6f2ea; padding: 22px clamp(18px, 3vw, 32px) 28px; display: flex; flex-direction: column; gap: 4px; }
.mobmenu[hidden] { display: none; }
.mobmenu > a { color: #241a12; font-size: 19px; font-weight: 600; padding: 13px 0; border-bottom: 1px solid rgba(36,26,18,0.1); }
.mobmenu > a[aria-current="page"] { color: #6d1f2c; }
.mobmenu > a.mobmenu__cta { margin-top: 18px; text-align: center; background: #6d1f2c; color: #f6f2ea; padding: 17px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 2px; border: 0; }
.mobmenu .langs { justify-content: center; margin-top: 18px; font-size: 12px; gap: 14px; letter-spacing: 0.12em; }
@media (max-width: 1140px) {
  .header__desk { display: none; }
  .header__mob { display: flex; }
}
@media (min-width: 1001px) { .mobmenu { display: none !important; } }

/* Filtri shop / blog */
[data-filter] { transition: background .2s, color .2s, border-color .2s; }
[data-filter][aria-pressed="true"] { background: #241a12 !important; color: #f6f2ea !important; border-color: #241a12 !important; }
[data-filter][aria-pressed="false"] { background: transparent !important; color: #4a3b2d !important; border-color: rgba(36,26,18,0.25) !important; }
[data-filter][aria-pressed="false"]:hover { border-color: #241a12 !important; }
[data-cat][hidden] { display: none !important; }

/* Galleria prodotto */
[data-thumb][aria-current="true"] { border-color: #6d1f2c !important; }

/* Form */
form input, form select, form textarea { width: 100%; letter-spacing: normal; text-transform: none; }
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: #6d1f2c !important; }
.form-privacy { font-family: Karla, sans-serif; font-size: 12.5px; line-height: 1.5; color: #8a7a68; letter-spacing: normal; text-transform: none; text-align: center; margin: -6px 0 0; }
.form-privacy a { color: #6d1f2c; border-bottom: 1px solid rgba(109,31,44,0.35); }
.form-ok { background: #e7efe2; color: #2f4a26; padding: 14px 16px; font-size: 14.5px; line-height: 1.5; font-family: Karla, sans-serif; }
.form-ok[hidden] { display: none; }
.form-inline-note { flex-basis: 100%; font-size: 12.5px; color: rgba(247,236,233,0.7); margin: 0; }
.form-inline-note a { color: #f7ece9; border-bottom: 1px solid rgba(247,236,233,0.4); }
.form-inline-note.ok { color: #f7ece9; font-size: 15px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Articoli "in arrivo" nel blog */
.soon { color: #6d1f2c; }

/* Carrello */
.drawer-bg { position: fixed; inset: 0; background: rgba(20,13,8,0.45); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #f6f2ea; z-index: 90; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(20,13,8,0.25); visibility: hidden; }
body.cart-open { overflow: hidden; }
body.cart-open .drawer { transform: none; visibility: visible; }
body.cart-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid rgba(36,26,18,0.12); }
.drawer__head .drawer__title { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: 28px; margin: 0; }
.drawer__close { background: none; border: 0; font-size: 30px; cursor: pointer; color: #241a12; line-height: 1; padding: 4px 8px; }
.drawer__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__empty { color: #6b5b49; font-size: 15px; padding: 24px 0; line-height: 1.6; }
.drawer__empty a { border-bottom: 1px solid #6d1f2c; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(36,26,18,0.12); }
.line img { width: 64px; height: 64px; object-fit: contain; background: #fbf9f5; mix-blend-mode: multiply; }
.line__name { font-family: 'EB Garamond', Georgia, serif; font-size: 18px; line-height: 1.2; color: #241a12; }
.line__qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.line__qty button { width: 28px; height: 28px; border: 1px solid rgba(36,26,18,0.25); background: none; cursor: pointer; border-radius: 2px; font-size: 15px; color: #241a12; }
.line__qty button:hover { border-color: #241a12; }
.line__gift { font-size: 12.5px; color: #8a7a68; margin-top: 4px; }
.line__price { font-family: 'EB Garamond', Georgia, serif; font-size: 18px; }
.drawer__foot { padding: 22px 24px 26px; border-top: 1px solid rgba(36,26,18,0.12); display: flex; flex-direction: column; gap: 12px; }
.drawer__row { display: flex; justify-content: space-between; font-size: 14.5px; color: #4a3b2d; }
.drawer__row[hidden] { display: none; }   /* altrimenti display:flex vince sull’attributo hidden */
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.drawer__total strong { font-family: 'EB Garamond', Georgia, serif; font-size: 26px; font-weight: 400; }
.drawer__checkout { display: block; text-align: center; background: #6d1f2c; color: #f6f2ea; border: 0; padding: 17px; font-family: Karla, sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.drawer__checkout:hover { background: #241a12; color: #f6f2ea; }
.drawer__checkout[disabled] { opacity: .45; cursor: default; }
.drawer__foot small { font-size: 12.5px; color: #8a7a68; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140px); background: #241a12; color: #f6f2ea; padding: 14px 22px; font-size: 14px; z-index: 95; transition: transform .3s; border-radius: 2px; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }

/* Articolo del blog e pagine testuali */
.prose h2 { font-family: 'EB Garamond', Georgia, serif; font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 48px 0 16px; color: #241a12; }
.prose p, .prose li { font-size: 18px; line-height: 1.75; color: #332820; font-weight: 400; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 24px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; color: #241a12; }
.prose a { border-bottom: 1px solid rgba(109,31,44,0.4); }
.notice { background: #fbeee0; border-left: 3px solid #c9a86a; padding: 16px 18px; font-size: 15px; line-height: 1.6; color: #4a3b2d; margin-bottom: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Hero della Home: foto ravvicinata sulle botti, titolo su una riga da tablet in su */
.hero-img { object-position: 60% 60%; }
@media (min-width: 900px) { .hero-h1 { white-space: nowrap; } }
@media (max-width: 899px) { .hero-img { object-position: 72% 50%; transform: scale(1.8); transform-origin: 72% 100%; } }

/* Testo solo per screen reader e motori di ricerca */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Titolo della Home: un po' più di respiro tra le due righe */
.hero-h1 { line-height: 1.14 !important; }
/* Il riquadro del titolo è largo quanto il titolo: il sottotitolo si adatta sotto */
@media (min-width: 900px) { .hero-lead { width: 0; min-width: 100%; } }

/* Sezione "famiglia" in Home: foto a tutta larghezza, riquadro a destra; su telefono il riquadro va in basso */
@media (max-width: 899px) {
  #storia { align-items: flex-end !important; min-height: 0 !important; }
  #storia .storia-wrap { padding-top: 330px !important; padding-bottom: 28px !important; }
  #storia .storia-img { left: 0 !important; width: 100% !important; object-position: 46% 0% !important; }
}
@media (min-width: 900px) and (max-width: 1200px) { #storia .storia-img { left: -35% !important; width: 135% !important; } }
#storia .storia-img { max-width: none; }

/* Sezione visite in Home: su telefono il riquadro va in basso e la foto resta visibile sopra */
@media (max-width: 899px) {
  #visite { display: block !important; min-height: 0 !important; }
  #visite .visite-img { position: relative !important; display: block; height: 380px !important; object-position: 62% 60% !important; }
  #visite .visite-wrap { padding-top: 0 !important; padding-bottom: 28px !important; margin-top: -56px; }
}

/* Contatti in Home: su telefono il testo sta sopra tutta la foto, velo più uniforme per leggerlo */
@media (max-width: 899px) { #contatti > img + div { background: rgba(20, 13, 8, 0.66) !important; } }
@media (max-width: 899px) { .acetaia-hero-img { object-position: 50% 15% !important; } }

/* Pagina L'acetaia: su telefono foto sopra e riquadro sotto (come la sezione visite della Home) */
@media (max-width: 899px) {
  .come-si-fa, #visita { display: block !important; min-height: 0 !important; }
  .come-si-fa .csf-img, #visita .invito-img { position: relative !important; display: block; height: 320px !important; }
  .come-si-fa .csf-wrap, #visita > div:last-child { padding-top: 0 !important; margin-top: -56px; }
}
@media (max-width: 899px) { .come-si-fa .csf-img { left: 0 !important; width: 100% !important; } }
@media (min-width: 900px) and (max-width: 1200px) { .come-si-fa .csf-img { left: -30% !important; width: 130% !important; } }

/* Sezioni con foto a tutto campo e riquadro (pagina Visite): su telefono foto sopra e riquadro sotto */
@media (max-width: 899px) {
  .foto-blocco { display: block !important; min-height: 0 !important; }
  .foto-blocco .fb-img { position: relative !important; display: block; height: 320px !important; }
  .foto-blocco .fb-wrap { padding-top: 0 !important; margin-top: -56px; }
  .visite-hero-img { object-position: 78% 50% !important; }
}

/* Domande frequenti (pagina Visite): + / − al posto del triangolino */
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; color: rgb(109, 31, 44); font-weight: 300; }
.faq[open] summary::after { content: "–"; }
.faq summary:hover { color: rgb(109, 31, 44); }

/* ── Blog: ricerca, categorie, testata a tre e griglia (stile rivista) ── */
.blog-tools { border-top: 1px solid rgba(36, 26, 18, 0.1); }
.blog-tools__row, .blog-cats__row { max-width: 1280px; margin: 0 auto; padding: 16px clamp(18px, 3vw, 32px); display: flex; gap: 16px; align-items: center; }
.blog-search { flex: 1; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(36, 26, 18, 0.18); background: #fff; padding: 0 16px; color: rgb(138, 122, 104); border-radius: 2px; }
.blog-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 14px 0; font: 16px Karla, sans-serif; color: rgb(36, 26, 18); min-width: 0; }
.blog-search:focus-within { border-color: rgb(109, 31, 44); }
.blog-count { font-size: 13.5px; color: rgb(108, 92, 75); white-space: nowrap; }
.blog-cats { background: rgb(239, 232, 220); border-top: 1px solid rgba(36, 26, 18, 0.1); border-bottom: 1px solid rgba(36, 26, 18, 0.1); }
.blog-cats__row { flex-wrap: wrap; gap: 10px; padding-top: 20px; padding-bottom: 20px; }
.pill { background: transparent; color: rgb(74, 59, 45); border: 1px solid rgba(36, 26, 18, 0.25); padding: 10px 18px; font: 13.5px Karla, sans-serif; border-radius: 100px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pill:hover { border-color: rgb(109, 31, 44); color: rgb(109, 31, 44); }
.pill[aria-pressed="true"] { background: rgb(109, 31, 44); border-color: rgb(109, 31, 44); color: rgb(246, 242, 234); }
.blog-list { max-width: 1280px; margin: 0 auto; padding: clamp(36px, 4.5vw, 60px) clamp(18px, 3vw, 32px) clamp(64px, 8vw, 100px); }
.blog-empty { text-align: center; color: rgb(107, 91, 73); padding: 40px 0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2vw, 26px); }
.bc { position: relative; display: flex; flex-direction: column; background: rgb(251, 249, 245); color: rgb(36, 26, 18); overflow: hidden; box-shadow: rgba(36, 26, 18, 0.06) 0 2px 10px; transition: transform .35s ease, box-shadow .35s ease; }
.bc:hover { transform: translateY(-3px); box-shadow: rgba(36, 26, 18, 0.16) 0 18px 40px; }
.bc-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: rgb(230, 220, 203); display: flex; align-items: center; justify-content: center; }
.bc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.bc:hover .bc-media img { transform: scale(1.04); }
.bc-contain { background: rgb(251, 249, 245); }
.bc-contain img { object-fit: contain; padding: 22px; mix-blend-mode: multiply; }
.bc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-tags--media { position: absolute; top: 14px; left: 14px; }
.bc-tags--body { display: none; margin-bottom: 14px; }
.bc-tag { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; background: rgb(109, 31, 44); color: rgb(247, 236, 233); padding: 6px 10px; }
.bc-tag--hot { background: rgb(216, 184, 120); color: rgb(36, 26, 18); }
.bc-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bc-title { font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: 23px; line-height: 1.15; margin: 0; }
.bc-lead { font-size: 14.5px; line-height: 1.6; color: rgb(84, 69, 54); margin: 0; font-weight: 300; }
.bc-meta { margin-top: auto; padding-top: 6px; font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: rgb(124, 107, 88); }

/* schede con il titolo sopra la foto (testata e file "larga + alta"), solo senza filtri */
.blog-grid:not(.is-filtered) .bc--over { justify-content: flex-end; min-height: 300px; background: rgb(43, 29, 20); color: rgb(246, 242, 234); }
.blog-grid:not(.is-filtered) .bc--big { grid-column: span 2; grid-row: span 2; min-height: clamp(460px, 48vw, 660px); }
.blog-grid:not(.is-filtered) .bc--wide { grid-column: span 2; }
.blog-grid:not(.is-filtered) .bc--wide, .blog-grid:not(.is-filtered) .bc--wide + .bc--over { min-height: clamp(340px, 30vw, 420px); }
.blog-grid:not(.is-filtered) .bc--over .bc-media { position: absolute; inset: 0; aspect-ratio: auto; }
.blog-grid:not(.is-filtered) .bc--over .bc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 13, 8, 0.88) 0%, rgba(20, 13, 8, 0.45) 45%, rgba(20, 13, 8, 0.05) 100%); }
.blog-grid:not(.is-filtered) .bc--over .bc-tags--media { display: none; }
.blog-grid:not(.is-filtered) .bc--over .bc-tags--body { display: flex; }
.blog-grid:not(.is-filtered) .bc--over .bc-body { position: relative; flex: 0 0 auto; padding: clamp(22px, 2.6vw, 38px); }
.blog-grid:not(.is-filtered) .bc--over .bc-lead { display: none; }
.blog-grid:not(.is-filtered) .bc--over .bc-meta { color: rgba(246, 242, 234, 0.72); }
.blog-grid:not(.is-filtered) .bc--big .bc-title { font-size: clamp(30px, 3.2vw, 46px); line-height: 1.06; max-width: 22ch; }
.blog-grid:not(.is-filtered) .bc--wide .bc-title { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; max-width: 26ch; }
.blog-grid:not(.is-filtered) .bc--big .bc-lead { display: block; color: rgba(246, 242, 234, 0.82); font-size: 16px; max-width: 56ch; }
.bc .soon { color: inherit; }

@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-grid:not(.is-filtered) .bc--big { grid-row: span 1; min-height: 480px; }
  .blog-grid:not(.is-filtered) .bc--wide + .bc--over { grid-column: span 2; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-grid:not(.is-filtered) .bc--big, .blog-grid:not(.is-filtered) .bc--wide, .blog-grid:not(.is-filtered) .bc--wide + .bc--over { grid-column: span 1; }
  .blog-grid:not(.is-filtered) .bc--big { min-height: 440px; }
  .blog-tools__row { flex-wrap: wrap; }
  .blog-search { flex-basis: 100%; }
}

/* ── Articolo: testo a sinistra, colonna a destra con visita e aceti ── */
.article-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(40px, 5vw, 72px); }
.article-cols .prose { max-width: 760px; }
.article-aside { display: flex; flex-direction: column; gap: 22px; }
.aside-box--prod { position: sticky; top: 148px; }
.aside-box { background: rgb(251, 249, 245); border: 1px solid rgba(36, 26, 18, 0.1); border-top: 3px solid rgb(109, 31, 44); padding: 24px 24px 26px; }
.aside-eyebrow { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgb(109, 31, 44); margin-bottom: 12px; }
.aside-title { font-family: "EB Garamond", Georgia, serif; font-size: 26px; line-height: 1.12; margin: 0 0 12px; color: rgb(36, 26, 18); }
.aside-title em { color: rgb(109, 31, 44); }
.aside-text { font-size: 15px; line-height: 1.65; color: rgb(74, 59, 45); font-weight: 300; margin: 0 0 20px; }
.aside-btn { display: block; text-align: center; background: rgb(109, 31, 44); color: rgb(246, 242, 234); padding: 15px 18px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px; }
.aside-prod { display: grid; grid-template-columns: 150px 1fr; grid-template-rows: auto auto 1fr; column-gap: 16px; row-gap: 6px; padding: 14px 0; border-bottom: 1px solid rgba(36, 26, 18, 0.1); }
.aside-prod__img { grid-row: 1 / 4; display: block; aspect-ratio: 3 / 4; background: rgb(246, 242, 234); overflow: hidden; }
.aside-prod__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(1.12); transition: transform .5s ease; }
.aside-prod__img:hover img { transform: scale(1.2); }
.aside-prod__name { font-family: "EB Garamond", Georgia, serif; font-size: 18px; line-height: 1.18; color: rgb(36, 26, 18); align-self: end; }
.aside-prod__price { font-family: "EB Garamond", Georgia, serif; font-size: 24px; color: rgb(109, 31, 44); }
.aside-prod__price small { display: block; font-family: Karla, sans-serif; font-size: 12px; color: rgb(138, 122, 104); }
.aside-prod__add { align-self: start; display: block; text-align: center; background: rgb(109, 31, 44); color: rgb(246, 242, 234); padding: 11px 10px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 2px; margin-top: 6px; }
.aside-link { display: inline-block; margin-top: 16px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid rgb(109, 31, 44); padding-bottom: 3px; }
@media (max-width: 960px) {
  .article-cols { grid-template-columns: minmax(0, 1fr); }
  .aside-box--prod { position: static; }
}

/* ── Articolo: sintesi in apertura e indice ── */
.sintesi { border-left: 3px solid rgb(109, 31, 44); background: rgb(239, 232, 220); padding: 22px 26px; margin: 0 0 28px; }
.sintesi-title { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgb(109, 31, 44); margin: 0 0 10px; }
.sintesi p:last-child { font-size: 17px; line-height: 1.65; color: rgb(36, 26, 18); margin: 0; font-weight: 400; }
.toc { border: 1px solid rgba(36, 26, 18, 0.14); background: rgb(251, 249, 245); padding: 22px 26px; margin: 0 0 36px; }
.toc-title { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: rgb(160, 143, 122); margin: 0 0 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.toc li { margin: 0; border-top: 1px solid rgba(36, 26, 18, 0.08); }
.toc li:first-child { border-top: 0; }
.toc a { display: flex; gap: 14px; align-items: baseline; padding: 10px 0; font-size: 16px; line-height: 1.4; color: rgb(36, 26, 18); }
.toc a:hover { color: rgb(109, 31, 44); }
.toc .toc-n { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.16em; color: rgb(124, 107, 88); }
.prose h2 { scroll-margin-top: 148px; }

/* Titoli numerati nel corpo dell'articolo, come nell'indice */
.prose { counter-reset: sez; }
.prose h2 { color: #6d1f2c; }
.prose h2::before { counter-increment: sez; content: counter(sez) ". "; }

/* Spesso comprati insieme: totale pieno barrato accanto a quello scontato */
.bundle-was { text-decoration: line-through; color: rgb(140, 124, 106); font-size: 0.72em; margin-right: 6px; }

/* ── Spesso comprati insieme: riquadri affiancati uniti dal + ── */
.bundle-grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 16px; margin-bottom: 8px; }
.bundle-card { position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid rgba(36,26,18,0.12); padding: 16px 16px 18px; transition: border-color .2s, box-shadow .2s; }
.bundle-card__add { margin-top: 4px; min-height: 54px; background: #6d1f2c; color: #f6f2ea; border: 1px solid #6d1f2c; border-radius: 2px; padding: 16px 28px; font-family: Karla, sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background .2s, border-color .2s; }
.bundle-card__add:hover { background: #5a1924; border-color: #5a1924; }
.bundle-card:hover { border-color: rgba(109,31,44,0.45); box-shadow: rgba(36,26,18,0.08) 0 6px 18px; }
.bundle-card__media { display: block; height: 320px; background: #fbf9f5; }
.bundle-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; }
.bundle-card__name { font-family: "EB Garamond", Georgia, serif; font-size: 18px; line-height: 1.2; color: #241a12; margin-top: auto; }
.bundle-card__name:hover, .bundle-card__media:hover + .bundle-card__name { color: #6d1f2c; text-decoration: underline; text-underline-offset: 3px; }
.bundle-card__price { font-family: "EB Garamond", Georgia, serif; font-size: 22px; color: #241a12; }
/* Su telefono i riquadri restano verticali come sul computer: la foto deve restare
   la prima cosa che si vede, non una miniatura di fianco al pulsante. */
@media (max-width: 760px) {
  .bundle-grid { grid-template-columns: 1fr; gap: 14px; }
  .bundle-card__media { height: 230px; }
  .bundle-card__name { font-size: 17px; }
  .bundle-card__add { min-height: 50px; padding: 14px 20px; font-size: 13px; }
}

/* Spesso comprati insieme: quantita per riquadro */
.bundle-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bundle-qty { display: inline-flex; align-items: center; border: 1px solid rgba(36,26,18,0.2); border-radius: 2px; }
.bundle-qty button { width: 30px; height: 30px; background: none; border: 0; font-size: 16px; line-height: 1; color: #241a12; cursor: pointer; }
.bundle-qty button:hover { color: #6d1f2c; }
.bundle-qty span { min-width: 24px; text-align: center; font-size: 14px; }

/* Carrello: il numero fa uno scatto quando cambia */
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); background: rgba(246,242,234,0.45); } 100% { transform: scale(1); } }
.cart-count.bump { animation: cart-bump .42s ease; }
@media (prefers-reduced-motion: reduce) { .cart-count.bump { animation: none; } }

/* Schede prodotto: tutta la scheda è cliccabile, il pulsante resta indipendente */
.pcard { position: relative; }
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard [data-add], .pcard .h-ink { position: relative; z-index: 2; }
.pcard:hover .pcard__link { color: #6d1f2c; }

/* ── Barra contatti rapidi (telefono, WhatsApp, modulo) ── */
.fab { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; background: #6d1f2c; box-shadow: rgba(20,13,8,0.22) 0 -4px 18px; }
.fab__item { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 8px calc(13px + env(safe-area-inset-bottom)); color: #f6f2ea; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; border-left: 1px solid rgba(246,242,234,0.18); }
.fab__item:first-child { border-left: 0; }
.fab__item:hover { background: rgba(0,0,0,0.12); color: #f6f2ea; }
.fab__ic { display: inline-flex; }
.fab__item--wa svg { stroke: #25d366; }   /* verde WhatsApp solo sull'icona */
@media (min-width: 900px) {
  .fab { left: auto; right: 22px; bottom: 22px; flex-direction: column; border-radius: 2px; overflow: hidden; }
  .fab__item { border-left: 0; border-top: 1px solid rgba(246,242,234,0.18); padding: 15px 22px; gap: 11px; font-size: 13px; justify-content: flex-start; }
  .fab__item svg { width: 21px; height: 21px; }
  .fab__item:first-child { border-top: 0; }
}
/* la barra contatti e fissa in fondo: il footer le lascia lo spazio sotto */
@media (max-width: 899px) { footer { padding-bottom: calc(40px + 58px + env(safe-area-inset-bottom)) !important; } }

/* Scheda prodotto: quantita semplice (conserve e accessori) */
.qty { display: inline-flex; align-items: center; border: 1px solid rgba(36,26,18,0.24); border-radius: 2px; margin: 0 0 20px; }
.qty button { width: 46px; height: 50px; background: none; border: 0; font-size: 20px; color: #241a12; cursor: pointer; }
.qty button:hover { color: #6d1f2c; }
.qty span { min-width: 40px; text-align: center; font-size: 16px; }

/* Scheda prodotto: scaglioni di quantita — righe tipografiche, nello stile delle altre tabelle */
.tiers-lab { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #7c6b58; margin: 26px 0 20px; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin: 0 0 22px; border-top: 1px solid rgba(36,26,18,0.16); border-bottom: 1px solid rgba(36,26,18,0.16); }
.tier { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-height: 104px; background: none; border: 0; border-left: 1px solid rgba(36,26,18,0.1); border-bottom: 2px solid transparent; padding: 16px 10px 14px; cursor: pointer; font: inherit; color: #241a12; text-align: center; transition: background .2s, border-color .2s; }
.tier:first-child { border-left: 0; }
.tier:hover { background: rgba(109,31,44,0.04); }
.tier[aria-pressed="true"] { background: #fbf9f5; border-bottom-color: #6d1f2c; }
.tier[aria-pressed="true"] .tier__n { color: #6d1f2c; }
.tier__n { font-family: "EB Garamond", Georgia, serif; font-size: 30px; line-height: 1; }
.tier__lab { font-size: 11.5px; color: #6c5c4b; }
.tier__unit { font-size: 12px; color: #8c7c6a; margin-top: 5px; }
.tier__note { font-family: "IBM Plex Mono", monospace; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: #7c6b58; margin-top: 5px; }
.tier__seal { position: absolute; top: -14px; right: 6px; width: 40px; height: 40px; z-index: 2; border-radius: 50%; background: #d8b878; color: #241a12; display: flex; align-items: center; justify-content: center; font-family: "EB Garamond", Georgia, serif; font-size: 13.5px; transform: rotate(-8deg); box-shadow: 0 0 0 4px #f6f2ea; }
.tier[aria-pressed="true"] .tier__seal { background: #c9a35f; box-shadow: 0 0 0 4px #fbf9f5; }
@media (max-width: 560px) {
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier { padding: 15px 9px 13px; }
  /* a due per riga la coccarda sporgente si accavallava alle righe: qui sta dentro */
  .tier__seal { top: 7px; right: 7px; width: 34px; height: 34px; font-size: 12px; box-shadow: none; }
  .tier[aria-pressed="true"] .tier__seal { box-shadow: none; }
}

/* Scheda prodotto: riepilogo del prezzo dello scaglione scelto */
.tier-sum { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.tier-sum__full { font-family: "EB Garamond", Georgia, serif; font-size: 20px; color: #8c7c6a; text-decoration: line-through; }
.tier-sum__net { font-family: "EB Garamond", Georgia, serif; font-size: 30px; color: #241a12; line-height: 1; }
.tier-sum__save { background: #6d1f2c; color: #f6f2ea; font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; }

/* Carrello: scelta del paese di destinazione */
.drawer__dest { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(36,26,18,0.12); font-size: 14.5px; color: #4a3b2d; }
.drawer__dest select { flex: 0 1 190px; font: inherit; font-size: 14px; color: #241a12; background: #fff; border: 1px solid rgba(36,26,18,0.25); border-radius: 2px; padding: 8px 10px; }
.drawer__dest select:focus-visible { outline: 2px solid #6d1f2c; outline-offset: 1px; }
.drawer__row--tot { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(36,26,18,0.16); font-family: "EB Garamond", Georgia, serif; font-size: 20px; color: #241a12; }
.drawer__row--tot span:last-child { font-size: 24px; }

/* Carrello: dati per la fattura, visibili solo se servono */
.drawer__fatt { display: grid; gap: 8px; margin: -4px 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(36,26,18,0.12); }
.drawer__fatt[hidden] { display: none; }
.drawer__fatt input { font: inherit; font-size: 14px; color: #241a12; background: #fff; border: 1px solid rgba(36,26,18,0.25); border-radius: 2px; padding: 9px 10px; width: 100%; }
.drawer__fatt input::placeholder { color: #9b8b79; }
.drawer__fatt input:focus-visible { outline: 2px solid #6d1f2c; outline-offset: 1px; }
.drawer__fatt input[aria-invalid="true"] { border-color: #a3313f; background: #fdf6f5; }
.drawer__fatt-riga { display: grid; grid-template-columns: 90px 1fr; gap: 8px; }
.drawer__fatt-nota { font-size: 12.5px; line-height: 1.5; color: #7c6b58; margin: 2px 0 0; }

/* ── Cassa in tre passaggi ─────────────────────────────────────────── */
.cassa { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(18px, 3vw, 32px) clamp(56px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.cassa__main { background: #fff; border: 1px solid rgba(36,26,18,0.12); padding: clamp(22px, 3vw, 36px); }
.cassa__steps { display: flex; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0 0 18px; border-bottom: 1px solid rgba(36,26,18,0.12); font-size: 13px; color: #9b8b79; flex-wrap: wrap; }
.cassa__steps li { display: flex; align-items: center; gap: 7px; padding-right: 10px; }
.cassa__steps li span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(36,26,18,0.25); display: grid; place-items: center; font-size: 12px; }
.cassa__steps li[aria-current="step"] { color: #241a12; }
.cassa__steps li[aria-current="step"] span { background: #6d1f2c; border-color: #6d1f2c; color: #f6f2ea; }
.cassa__steps li.fatto { color: #6d1f2c; }
.cassa__steps li.fatto span { border-color: #6d1f2c; color: #6d1f2c; }
.cassa__h { font-family: "EB Garamond", Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; margin: 0 0 20px; color: #241a12; }
.cassa__h--small { font-size: 21px; margin-bottom: 16px; }
.cassa__lab { display: block; font-size: 12.5px; letter-spacing: 0.04em; color: #6c5c4b; margin-bottom: 5px; }
.cassa__in { width: 100%; font: inherit; font-size: 15px; color: #241a12; background: #fff; border: 1px solid rgba(36,26,18,0.25); border-radius: 2px; padding: 10px 11px; margin-bottom: 4px; }
.cassa__in:focus-visible { outline: 2px solid #6d1f2c; outline-offset: 1px; }
.cassa__in[aria-invalid="true"] { border-color: #a3313f; background: #fdf6f5; }
.cassa__nota { font-size: 12.5px; line-height: 1.55; color: #7c6b58; margin: 6px 0 18px; }
.cassa__fatt { display: grid; gap: 8px; margin-top: 14px; }
.cassa__fatt[hidden] { display: none; }
.cassa__due { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.cassa__azioni { display: flex; gap: 10px; align-items: center; margin-top: 24px; }
.cassa__avanti, .cassa__paga { background: #6d1f2c; color: #f6f2ea; border: 1px solid #6d1f2c; border-radius: 2px; min-height: 52px; padding: 15px 30px; font-family: Karla, sans-serif; font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.cassa__avanti:hover, .cassa__paga:hover { background: #5a1924; }
.cassa__avanti:disabled, .cassa__paga:disabled { opacity: .6; cursor: default; }
.cassa__indietro { background: none; border: 0; color: #6c5c4b; font: inherit; font-size: 14px; cursor: pointer; padding: 10px 4px; }
.cassa__indietro:hover { color: #6d1f2c; }
.cassa__err { background: #fdf6f5; border-left: 3px solid #a3313f; color: #8a2733; font-size: 14px; line-height: 1.55; padding: 12px 14px; margin: 18px 0 0; }
.cassa__ripilogo { background: #fff; border: 1px solid rgba(36,26,18,0.12); padding: 24px; position: sticky; top: 148px; }
.cassa__riga { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: #4a3b2d; padding: 9px 0; border-bottom: 1px solid rgba(36,26,18,0.08); }
.cassa__testo { font-size: 16px; line-height: 1.65; color: #4a3b2d; margin: 0 0 18px; }
.cassa__scelta { display: flex; align-items: center; gap: 10px; font-size: 16px; color: #241a12; background: #fff; border: 1px solid rgba(36,26,18,0.25); border-radius: 2px; padding: 14px 16px; cursor: pointer; }
.cassa__scelta input { width: 18px; height: 18px; margin: 0; accent-color: #6d1f2c; flex: none; }
.cassa__row { display: flex; justify-content: space-between; font-size: 14.5px; color: #4a3b2d; margin-top: 10px; }
.cassa__row--tot { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(36,26,18,0.16); font-family: "EB Garamond", Georgia, serif; font-size: 20px; color: #241a12; }
.cassa__row--tot span:last-child { font-size: 24px; }
.cassa__row--sconto { color: #2f6b4f; }
.cassa__codice { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(36,26,18,0.12); }
.cassa__codice-riga { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.cassa__codice-riga .cassa__in { margin-bottom: 0; text-transform: uppercase; }
.cassa__applica { font: inherit; font-size: 14px; color: #6d1f2c; background: none; border: 1px solid rgba(109,31,44,0.4); border-radius: 2px; padding: 10px 14px; cursor: pointer; }
.cassa__applica:hover { background: #6d1f2c; color: #fff; }
.cassa__applica:disabled { opacity: .5; cursor: default; }
.cassa__codice .cassa__nota { margin: 8px 0 0; }
@media (max-width: 860px) {
  .cassa { grid-template-columns: 1fr; }
  .cassa__ripilogo { position: static; order: -1; }
  .cassa__azioni { flex-direction: column-reverse; align-items: stretch; }
  .cassa__avanti, .cassa__paga { width: 100%; }
}

/* Home, "Ci hanno raccontato": tre schede alla volta, lo scorrimento e' in site.js */
.press-griglia { --spazio: clamp(22px, 2.6vw, 34px); gap: var(--spazio); grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--spazio)) / 3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.press-griglia::-webkit-scrollbar { display: none; }
.press-griglia > * { scroll-snap-align: start; }
.press-frecce { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.press-frecce button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(36, 26, 18, 0.28); background: none; color: rgb(36, 26, 18); font-size: 18px; line-height: 1; cursor: pointer; transition: background 0.2s, color 0.2s; }
.press-frecce button:hover { background: rgb(36, 26, 18); color: rgb(246, 242, 234); }
@media (max-width: 1100px) { .press-griglia { grid-auto-columns: calc((100% - var(--spazio)) / 2); } }
@media (max-width: 640px) { .press-griglia { grid-auto-columns: 86%; } }
