/* Adattamenti del CSS statico (style.css) alla versione Next.js. */

/* foto di sfondo delle fasce: ora sono <Image> ottimizzate invece di background CSS */
.sec-bg { object-fit: cover; }
.biz > .sec-bg { object-position: 62% 38%; }
.vb > .sec-bg { object-position: 50% 55%; }
.vb, .biz { position: relative; isolation: isolate; overflow: hidden; }

/* controllo dell'età: la classe arriva da uno script in <head>, così il velo c'è già al primo disegno */
html.gate-open .gate { display: grid; }
html.gate-open body { overflow: hidden; }

/* immagini di next/image dentro i riquadri che il CSS statico già posiziona */
.lineup__bottle img, .wx__img img, .wx__solo img, .vb__b img, .bstrip__logo img, .bt__tile img, .card__media img, .pdp__media img { color: transparent; }

/* modulo contatti: stato di invio */
.form.is-sending button[type="submit"] { opacity: .6; pointer-events: none; }
.form__err { display: none; color: var(--accent); font-size: 14px; }
.form.is-error .form__err { display: block; }

/* selettore lingua: link invece di bottoni */
.lang a.is-on { color: var(--ink); }

/* fascia scura con foto (Colonne, sfondo "Dark with photo"): foto da next/image */
.band--beer.has-img::before { display: none; }
.band--beer > .sec-bg { z-index: -2; object-position: 62% 38%; mix-blend-mode: luminosity; opacity: .6; }
/* nel menu mobile i link della lingua non devono prendere lo stile delle voci grandi */
.menu .lang a { display: inline; border: 0; padding: 0; font: inherit; color: inherit; }
.menu .lang a.is-on { color: var(--ink); }

/* ── Negozio: elementi nuovi rispetto al sito statico ───────────────────── */
.pdp__wholesale { display: flex; align-items: baseline; gap: 10px; margin-top: -6px; }
.pdp__wholesale b { font: 400 1.4rem/1 var(--ff-display); color: var(--accent); }
.pdp__was { margin-top: -10px; color: var(--faint); text-decoration: line-through; font-size: 15px; }
.pdp__variant { display: grid; gap: 6px; max-width: 320px; }
.pdp__variant .select { height: 44px; font-size: 15px; }
.pdp__stock { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #3d6b2e; }
.pdp__stock.is-out { color: var(--red); }
.pdp__buy .btn:disabled, .co .btn:disabled { opacity: .45; cursor: not-allowed; }
.citem.is-error .citem__name span { color: var(--red); }
.citem__price s { color: var(--faint); margin-left: 4px; }
.cosum__coupon { display: flex; gap: 8px; margin: 14px 0 4px; }
.cosum__coupon input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--card); font: 500 13px var(--mono); letter-spacing: .04em; }
.pnote.is-error { color: var(--red); }
.pnote--link { padding: 0; text-align: left; text-decoration: underline; cursor: pointer; }
.pforgot { margin-top: 10px; display: grid; gap: 10px; }
.porders { margin-top: 26px; width: 100%; display: grid; gap: 10px; }
.porders a { text-decoration: underline; }
.porders__note { display: block; color: var(--mute); }
.plist { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.plist th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); padding: 10px 8px; border-bottom: 1px solid var(--ink); }
.plist td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
.plist td small { color: var(--mute); }
.plist .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.plist a:hover { color: var(--accent); }
@media (max-width: 700px) { .plist th:nth-child(2), .plist td:nth-child(2), .plist th:nth-child(3), .plist td:nth-child(3) { display: none; } }

/* ---------- Opzioni avanzate delle pagine (tab "Të avancuara") ---------- */
body:has(.adv-flags[data-hide~="header"]) .nav { display: none; }
body:has(.adv-flags[data-hide~="announcement"]) .topbar { display: none; }
body:has(.adv-flags[data-hide~="announcement"]) .nav { top: 0; }
body:has(.adv-flags[data-hide~="footer"]) .foot { display: none; }
html.gate-open:has(.adv-flags[data-hide~="agegate"]) .gate { display: none; }
html.gate-open:has(.adv-flags[data-hide~="agegate"]) body { overflow: auto; }

/* Pagine riservate: password, solo partner, private */
.access-gate { min-height: 60vh; display: grid; place-items: center; padding: 96px 0; }
.access-gate__box { max-width: 520px; text-align: center; }
.access-gate h1 { font: 400 clamp(32px, 4vw, 44px)/1.1 var(--ff-display); margin-bottom: 16px; }
.access-gate p { color: var(--mute); margin-bottom: 28px; }
.access-gate .btn { background: var(--ink); color: var(--paper); }
.access-gate .btn:hover { background: var(--accent); }
.access-gate__form { display: grid; gap: 14px; text-align: left; }
.access-gate__form label { display: grid; gap: 6px; font-size: 14px; }
.access-gate__form input { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font: inherit; }
.access-gate__form input:focus { border-color: var(--ink); outline: none; }
.access-gate__err { color: var(--accent); margin: 0 !important; font-size: 14px; }

/* ---------- Negozio: opzioni avanzate (checkout, scheda prodotto, area partner) ---------- */
.pay-opts--row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.pay-opt.is-off { opacity: .5; cursor: not-allowed; }
.pickup-at { display: grid; gap: 6px; align-content: start; font-size: 14px; }
.pickup-at b { font-weight: 500; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cosum__total dd small { display: block; font-size: 12px; font-weight: 400; color: var(--mute); text-align: right; }
.xsell { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.xsell ul { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.xsell li { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; }
.xsell__img { display: block; width: 56px; aspect-ratio: 1; background: var(--card); }
.xsell__name { display: grid; gap: 2px; font-size: 14px; }
.xsell__name span { color: var(--mute); font-size: 13px; }
.xsell .btn--sm { width: 40px; padding: 0; }
.pdp__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pdp__thumbs button { width: 64px; aspect-ratio: 1; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 2px; cursor: pointer; overflow: hidden; }
.pdp__thumbs button.is-on, .pdp__thumbs button:hover { border-color: var(--ink); }
.pdp__rules { font-size: 13px; color: var(--mute); margin-top: -4px; }
.pbook { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; text-align: left; }
.pbook__row { display: grid; grid-template-columns: 1fr 1fr 1.6fr 36px; gap: 8px; }
.pbook__row input { height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font: inherit; font-size: 14px; min-width: 0; }
.pbook__row input:focus { border-color: var(--ink); outline: none; }
.pbook__rm { border: 1px solid var(--line); border-radius: 2px; background: none; font-size: 18px; cursor: pointer; }
.pbook__rm:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .pay-opts--row { grid-template-columns: 1fr; }
  .pbook__row { grid-template-columns: 1fr 1fr 36px; }
  .pbook__row input:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
}

/* Icone dei metodi di pagamento (footer e checkout) */
.pay { align-items: center; flex-wrap: wrap; }
.pay svg { display: block; flex: none; border-radius: 3px; }
.pay--inline { margin-top: 6px; gap: 5px; }
.pay--inline svg { width: 34px; height: auto; }

/* ---------- Bottoni WhatsApp / Instagram (Cilësimet e faqes → Butonat e kontaktit) ---------- */
.fab { position: fixed; z-index: 90; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.fab--right { right: 20px; align-items: flex-end; }
.fab--left { left: 20px; align-items: flex-start; }
.fab__btn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: #fff; box-shadow: 0 6px 18px rgba(26, 24, 21, .22); transition: transform .25s var(--ease), box-shadow .25s; }
.fab__btn:hover, .fab__btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 24, 21, .28); }
.fab__btn--wa { background: #25d366; }
.fab__btn--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.fab__tip { position: absolute; top: 50%; transform: translateY(-50%); padding: 7px 11px; border-radius: 2px; background: var(--ink); color: var(--paper); font-size: 13px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.fab--right .fab__tip { right: calc(100% + 10px); }
.fab--left .fab__tip { left: calc(100% + 10px); }
.fab__btn:hover .fab__tip, .fab__btn:focus-visible .fab__tip { opacity: 1; }
/* sotto il velo del controllo dell'età, fuori da carrello e area partner se richiesto */
html.gate-open .fab { display: none; }
body:has(main[data-page="checkout"], main[data-page="partner"]) .fab--hide-checkout { display: none; }
/* il messaggio "aggiunto al carrello" passa sopra i bottoni */
body:has(.site-toast.is-on) .fab { transform: translateY(-64px); }
.fab { transition: transform .4s var(--ease); }
@media (max-width: 640px) {
  .fab--right { right: 14px; }
  .fab--left { left: 14px; }
  .fab__btn { width: 48px; height: 48px; }
  .fab__tip { display: none; }
}
@media print { .fab { display: none; } }

/* "Designed by …" in piccolo, in fondo al footer */
.foot__credit { font-size: 11.5px; opacity: .75; }
.foot__credit a { text-decoration: underline; text-underline-offset: 2px; }
.foot__credit a:hover { color: var(--accent); opacity: 1; }

/* Riga finale del footer: nota a sinistra, credits al centro, pagamenti e copyright a destra */
@media (min-width: 901px) {
  .foot__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  .foot__credit { justify-self: center; text-align: center; }
  .foot__end { justify-self: end; display: flex; align-items: center; gap: 20px; }
}
@media (max-width: 900px) {
  .foot__note:empty { display: none; }
  .foot__end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
}
/* vicino al fondo pagina i bottoni salgono sopra la riga finale del footer (FabDock imposta --fab-lift) */
.fab { bottom: calc(max(20px, env(safe-area-inset-bottom)) + var(--fab-lift, 0px)); transition: bottom .35s var(--ease), transform .4s var(--ease); }

/* ---------- WhatsApp: pillola + finestrella di chat ---------- */
.wachat { position: relative; display: flex; flex-direction: column; align-items: inherit; }
.wachat__launcher { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 6px 22px 6px 6px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 14.5px/1 var(--sans); letter-spacing: .01em; cursor: pointer; box-shadow: 0 10px 28px rgba(26, 24, 21, .28), 0 2px 6px rgba(26, 24, 21, .18); transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.wachat__launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26, 24, 21, .32), 0 2px 6px rgba(26, 24, 21, .18); }
.wachat__launcher:focus-visible { outline: 2px solid #25d366; outline-offset: 3px; }
.wachat.is-open .wachat__launcher { background: #2a2622; }
.wachat__icon { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #25d366; color: #fff; flex: none; }
/* puntino "online" con un battito leggero */
.wachat__pulse { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: #7cf3a5; border: 2px solid var(--ink); }
.wachat__pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #7cf3a5; opacity: 0; animation: wachat-pulse 2.4s ease-out infinite; }
@keyframes wachat-pulse { 0% { transform: scale(.6); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wachat__pulse::after { animation: none; } }

.wachat__panel { position: absolute; bottom: calc(100% + 14px); width: min(330px, calc(100vw - 28px)); border-radius: 16px; overflow: hidden; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(26, 24, 21, .28), 0 4px 12px rgba(26, 24, 21, .12); transform-origin: bottom right; animation: wachat-in .28s var(--ease); }
.fab--right .wachat__panel { right: 0; }
.fab--left .wachat__panel { left: 0; transform-origin: bottom left; }
.wachat__panel[hidden] { display: none; }
@keyframes wachat-in { from { transform: translateY(10px) scale(.97); } }
.wachat__head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 16px; background: var(--ink); color: var(--paper); }
.wachat__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper); flex: none; }
.wachat__avatar img { width: 34px; height: auto; }
.wachat__who { display: grid; gap: 3px; min-width: 0; }
.wachat__who b { font: 600 15px/1.2 var(--sans); }
.wachat__who small { display: flex; align-items: flex-start; gap: 6px; line-height: 1.35; font-size: 12.5px; color: rgba(246, 242, 235, .72); }
.wachat__dot { width: 7px; height: 7px; margin-top: .3em; border-radius: 50%; background: #25d366; flex: none; }
.wachat__close { margin-left: auto; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; }
.wachat__close:hover { background: rgba(246, 242, 235, .12); }
/* sfondo "chat" in toni carta */
.wachat__body { padding: 22px 16px 26px; background-color: #efe8dc; background-image: radial-gradient(rgba(26, 24, 21, .05) 1px, transparent 1px); background-size: 14px 14px; }
.wachat__bubble { position: relative; max-width: 88%; margin: 0; padding: 10px 12px 18px; border-radius: 0 10px 10px 10px; background: #fff; font-size: 14.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(26, 24, 21, .1); animation: wachat-in .35s .12s var(--ease) both; }
.wachat__bubble::before { content: ''; position: absolute; top: 0; left: -7px; border: 7px solid transparent; border-top-color: #fff; border-right-color: #fff; border-width: 0 7px 8px 0; }
.wachat__bubble time { position: absolute; right: 9px; bottom: 4px; font-size: 10.5px; color: var(--faint); }
.wachat__cta { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px; height: 48px; border-radius: 999px; background: #25d366; color: #0b3d1e; font: 600 14.5px/1 var(--sans); transition: background .2s, transform .2s; }
.wachat__cta:hover { background: #20bd5b; transform: translateY(-1px); }
.wachat__cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Instagram, sopra: più piccolo e discreto */
.fab__btn--ig { width: 46px; height: 46px; }
.fab--right .fab__btn--ig { margin-right: 5px; }
.fab--left .fab__btn--ig { margin-left: 5px; }
@media (max-width: 640px) {
  .wachat__launcher { padding: 5px; height: 56px; }
  .wachat__text { display: none; }
  .wachat__icon { width: 46px; height: 46px; }
}

/* Sotto il footer niente fascia chiara, in modo definitivo.
   Il colore chiaro della pagina sta sul <main> (che contiene tutti i contenuti); html e body hanno il colore
   del footer. Così qualunque cosa finisca dopo il footer, ovvero lo scorrimento elastico oltre la fine,
   arrotondamenti dello zoom (125%, 150%) o elementi aggiunti in fondo alla pagina da estensioni del browser,
   ha lo stesso colore del footer e non si vede. */
html { background: var(--paper-2); }
body { background: var(--paper-2); }
body > main { background: var(--paper); }

/* ---------- Assistente dei contatti: avatar AFSD → WhatsApp / Instagram ---------- */
.cdock { position: relative; display: flex; flex-direction: column; align-items: inherit; }
.cdock__launcher { position: relative; display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; background: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(26, 24, 21, .26), 0 0 0 1px rgba(26, 24, 21, .06); transition: transform .3s var(--ease), box-shadow .3s, background .3s; }
.cdock__launcher:hover { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 14px 34px rgba(26, 24, 21, .3), 0 0 0 1px rgba(26, 24, 21, .06); }
.cdock__launcher:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cdock__face { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; transition: transform .3s var(--ease), opacity .2s; }
.cdock__face img { width: 46px; height: auto; }
.cdock__x { position: absolute; inset: 0; display: grid; place-items: center; color: var(--paper); opacity: 0; transform: rotate(-90deg); transition: transform .3s var(--ease), opacity .2s; }
.cdock:not(.is-closed) .cdock__launcher { background: var(--ink); }
.cdock:not(.is-closed) .cdock__face { opacity: 0; transform: scale(.6); }
.cdock:not(.is-closed) .cdock__x { opacity: 1; transform: none; }
.cdock__online { position: absolute; right: 3px; bottom: 3px; width: 13px; height: 13px; border-radius: 50%; background: #25d366; border: 2.5px solid #fff; }
.cdock__online::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #25d366; opacity: 0; animation: wachat-pulse 2.6s ease-out infinite; }
.cdock:not(.is-closed) .cdock__online { display: none; }
@media (prefers-reduced-motion: reduce) { .cdock__online::after { animation: none; } }

/* fumetto di saluto */
.cdock__hello { position: absolute; bottom: calc(100% + 12px); display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 10px 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 14px; white-space: nowrap; box-shadow: 0 10px 28px rgba(26, 24, 21, .18); animation: wachat-in .35s var(--ease); }
.fab--right .cdock__hello { right: 4px; border-bottom-right-radius: 4px; }
.fab--left .cdock__hello { left: 4px; border-bottom-left-radius: 4px; }
.cdock__hello button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--mute); font-size: 16px; line-height: 1; cursor: pointer; }

/* scelta del canale */
.cdock__menu { position: absolute; bottom: calc(100% + 14px); display: grid; gap: 10px; width: max-content; animation: wachat-in .28s var(--ease); }
.fab--right .cdock__menu { right: 0; justify-items: end; }
.fab--left .cdock__menu { left: 0; justify-items: start; }
.cdock__opt { display: flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; box-shadow: 0 8px 22px rgba(26, 24, 21, .18), 0 0 0 1px rgba(26, 24, 21, .05); font: inherit; transition: transform .2s var(--ease), box-shadow .2s; }
.cdock__opt:hover, .cdock__opt:focus-visible { transform: translateX(-3px); box-shadow: 0 12px 28px rgba(26, 24, 21, .24), 0 0 0 1px rgba(26, 24, 21, .05); outline: none; }
.fab--left .cdock__opt:hover, .fab--left .cdock__opt:focus-visible { transform: translateX(3px); }
.cdock__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; flex: none; }
.cdock__opt--wa .cdock__ic { background: #25d366; }
.cdock__opt--ig .cdock__ic { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.cdock__txt { display: grid; gap: 2px; }
.cdock__txt b { font: 600 14.5px/1.2 var(--sans); }
.cdock__txt small { font-size: 12px; color: var(--mute); }
.cdock__menu .cdock__opt:nth-child(2) { animation: wachat-in .32s .05s var(--ease) both; }

/* la finestra di chat ora sta sopra l'avatar */
.cdock .wachat__panel { position: absolute; bottom: calc(100% + 14px); }
.fab--right .cdock .wachat__panel { right: 0; }
.fab--left .cdock .wachat__panel { left: 0; }
.wachat__back { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -4px; border: 0; border-radius: 50%; background: transparent; color: var(--paper); cursor: pointer; }
.wachat__back:hover { background: rgba(246, 242, 235, .12); }
@media (max-width: 640px) {
  .cdock__launcher { width: 58px; height: 58px; }
  .cdock__hello { font-size: 13.5px; }
}

/* assistente dei contatti compatto: cerchio da 48 px, solo la scritta AFSD */
.cdock__launcher { width: 48px; height: 48px; box-shadow: 0 4px 14px rgba(26, 24, 21, .18), 0 0 0 1px rgba(26, 24, 21, .07); }
.cdock__launcher:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(26, 24, 21, .22), 0 0 0 1px rgba(26, 24, 21, .07); }
.cdock__face img { width: 34px; height: auto; }
.cdock__x svg { width: 18px; height: 18px; }
.cdock__online { right: 1px; bottom: 1px; width: 10px; height: 10px; border-width: 2px; }
.cdock__online::after { inset: -4px; }
.wachat__avatar img { width: 32px; }
.fab--right { right: 16px; }
.fab--left { left: 16px; }
@media (max-width: 640px) {
  .cdock__launcher { width: 46px; height: 46px; }
  .fab--right { right: 12px; }
  .fab--left { left: 12px; }
}
/* footer sempre in fondo con la sua altezza naturale: su pagine corte si allunga il contenuto, non il footer */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .foot { flex: none; }
/* la barra che si nasconde scorrendo deve scivolare via, non sparire (la regola generica .is-hidden dei filtri la toglieva dal layout e la pagina saltava) */
.nav.is-hidden { display: block !important; }

/* Controllo dell'età, versione Sì / No */
.gate__yesno { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; width: 100%; }
.gate__yesno .btn { width: 100%; justify-content: center; }
.gate--yesno .gate__note.is-bad { color: var(--accent); }
@media (max-width: 420px) { .gate__yesno { grid-template-columns: 1fr; } .gate__yesno .btn--dark { order: -1; } }

/* ---------- Preventivi (area partner) ---------- */
.qpill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--paper-2); color: var(--mute); vertical-align: middle; }
.qpill.is-sent { background: #fdf0d8; color: #8a5a00; }
.qpill.is-converted, .qpill.is-accepted { background: #e2f1e6; color: #2e6b45; }
.qpill.is-declined, .qpill.is-expired { background: #f3e1df; color: var(--accent); }
.qlist li { align-items: center; }
.qreq__rows { display: grid; gap: 8px; }
.qreq__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 500; }
.qreq__cart { background: none; border: 0; padding: 0; font-size: 13px; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qreq__row { display: grid; grid-template-columns: minmax(0, 1fr) 78px 92px 36px; gap: 8px; align-items: center; }
.qreq__row select { width: 100%; height: 46px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; font: inherit; font-size: 14px; }
.qreq__row input { height: 46px !important; text-align: center; padding: 0 6px !important; }
.qreq__price { font-size: 13px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
.qreq__rm { height: 36px; border: 1px solid var(--line); border-radius: 2px; background: none; font-size: 18px; cursor: pointer; }
.qreq__rm:hover { border-color: var(--accent); color: var(--accent); }
.qreq__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.qreq__est { font-size: 13.5px; color: var(--mute); }
.qreq__done { display: grid; gap: 6px; padding: 18px 20px; border-left: 3px solid #2e7d4f; background: #fff; }
.qreq textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 2px; background: #fff; font: inherit; font-size: 15px; }
@media (max-width: 560px) { .qreq__row { grid-template-columns: minmax(0, 1fr) 70px 36px; } .qreq__price { display: none; } }
.qview { max-width: 900px; }
.qview__table { width: 100%; }
.qview__table tfoot td { padding-top: 6px; color: var(--mute); }
.qview__total td { font-weight: 700; color: var(--ink) !important; font-size: 17px; border-top: 1px solid var(--ink); padding-top: 10px !important; }
.qview__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 22px 0 0; }
.qview__meta dt { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.qview__note { margin: 18px 0 0; padding: 14px 16px; background: var(--paper); border-left: 3px solid var(--accent); }
.qview__links { margin: 18px 0 0; }
.qresp { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.qresp__btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.qresp__reason { display: grid; gap: 6px; font-size: 13.5px; }
.qresp__reason textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); background: #fff; font: inherit; }

/* scelte a "chip" (es. Biznes / Klient privat): il radio resta nascosto e grande 1px. La regola generale
   ".pform input { width: 100% }" lo rendeva largo quanto lo schermo e su telefono la pagina si allargava a destra */
.chips label { position: relative; }
.chips input, .pform .chips input:not([type="checkbox"]) { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; border: 0; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }

/* ---------- Menu su telefono: apertura e chiusura animate ----------
   Prima passava da display:none a visibile (non animabile). Ora resta nella pagina ma nascosto:
   apre come una tendina dall'alto e le voci entrano una dopo l'altra; chiude più in fretta. */
.menu {
  display: block;
  visibility: hidden;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .42s cubic-bezier(.7, 0, .3, 1) .08s, visibility 0s linear .5s;
}
body.menu-open .menu {
  visibility: visible;
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  transition: clip-path .6s var(--ease), visibility 0s;
}
@media (max-width: 820px) {
  .menu, .menu-open .menu { display: flex; }
}
.menu > a, .menu__foot {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .2s ease, transform .25s ease;
}
body.menu-open .menu > a, body.menu-open .menu__foot {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
body.menu-open .menu > a:nth-child(1) { transition-delay: .12s; }
body.menu-open .menu > a:nth-child(2) { transition-delay: .17s; }
body.menu-open .menu > a:nth-child(3) { transition-delay: .22s; }
body.menu-open .menu > a:nth-child(4) { transition-delay: .27s; }
body.menu-open .menu > a:nth-child(5) { transition-delay: .32s; }
body.menu-open .menu > a:nth-child(6) { transition-delay: .37s; }
body.menu-open .menu > a:nth-child(7) { transition-delay: .42s; }
body.menu-open .menu > a:nth-child(n+8) { transition-delay: .46s; }
body.menu-open .menu__foot { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .menu, body.menu-open .menu { clip-path: none; transition: opacity .2s ease, visibility 0s linear .2s; opacity: 0; }
  body.menu-open .menu { opacity: 1; transition: opacity .2s ease, visibility 0s; }
  .menu > a, .menu__foot, body.menu-open .menu > a, body.menu-open .menu__foot { transform: none; opacity: 1; transition: none; }
}
/* con il menu aperto l'assistente dei contatti (e il suo fumetto) non copre il numero di telefono in fondo */
.fab { transition: opacity .3s ease, visibility 0s linear 0s; }
body.menu-open .fab { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }

/* velo di passaggio tra le pagine (base.css): lo stesso logo dell'intestazione (assets/img/logo-dark.png), non la
   copia identica in assets/css/img/, così il browser lo scarica una volta sola */
html::after, html::before { background-image: url(../img/logo-dark.png); }

/* cambio lingua: la pagina nell'altra lingua compare subito, senza il velo d'entrata (inc/lang-speed.php) */
html.no-pt::after { animation: none; opacity: 0; visibility: hidden; }
