/*
 * Mpinfo – nuova scheda prodotto, versione "1 · Colorata" (dal prototipo RESTYLE SITO).
 * Tutte le regole sono confinate sotto .mpsp per non toccare il resto del sito.
 */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
	font-weight: 200 800;
	font-display: swap;
}

/* BeTheme mette #Content a z-index:0: barra d'acquisto, pannelli e foto a schermo intero
   finirebbero sotto l'header fisso. Solo sulle schede col nuovo modello. */
body.mpsp-scheda-nuova #Content.mpsp-page { z-index: auto; }

.mpsp {
	--bg: #ffffff;
	--surface: #f5f6fa;
	--line: #e4e6ee;
	--ink: #121633;
	--muted: #5d6280;
	--brand: #2a27e9;
	--brand-dark: #0b1a48;
	--brand-soft: #ecebff;
	--ok: #147a4a;
	--ok-soft: #e5f5ec;
	--warn: #9a5b00;
	--sale: #c8102e;
	--font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--fs-xs: .8125rem; --fs-s: .9375rem; --fs-m: 1.0625rem; --fs-l: 1.375rem; --fs-xl: 1.75rem; --fs-xxl: 1.875rem;
	--radius: 14px;
	--img-h: clamp(380px, 38vw, 500px);
	font-family: var(--font);
	font-size: var(--fs-s);
	line-height: 1.55;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}
.mpsp *, .mpsp *::before, .mpsp *::after { box-sizing: border-box; }
.mpsp h1, .mpsp h2, .mpsp h3 { margin: 0; font-family: var(--font); color: inherit; text-wrap: balance; line-height: 1.2; letter-spacing: normal; text-transform: none; }
.mpsp p { margin: 0; }
.mpsp button { font: inherit; color: inherit; cursor: pointer; }
.mpsp :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.mpsp [hidden] { display: none !important; }
.mpsp-wrap { max-width: 1200px; margin: 0 auto; padding: 24px 16px 0; }
/* BeTheme azzera il margine laterale su tablet: lo rimetto. */
.mpsp-page .section_wrapper.mpsp-wrap { padding-left: 16px !important; padding-right: 16px !important; box-sizing: border-box; }

/* ---------- parte alta: foto a sinistra, acquisto a destra ---------- */
.mpsp-product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; padding-block: 8px 48px; align-items: start; }
.mpsp-left { align-self: stretch; display: flex; flex-direction: column; min-width: 0; }
.mpsp-gallery { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
/* Miniature: colonna un po' più larga delle foto e scorrimento senza barre né frecce. */
.mpsp-thumbs { display: flex; flex-direction: column; align-items: center; gap: 10px; max-height: var(--img-h); overflow-y: auto; overflow-x: hidden; padding: 2px 0; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; }
.mpsp-thumbs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mpsp-thumb { border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0; overflow: hidden; aspect-ratio: 3/4; width: 72px; flex: none; }
.mpsp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mpsp-thumb[aria-current="true"] { border-color: var(--brand); }
.mpsp-main-img { position: relative; background: var(--surface); border-radius: var(--radius); height: var(--img-h); max-width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; }
.mpsp-main-img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s ease; }
.mpsp-main-img.zoomed { cursor: zoom-in; }
.mpsp-main-img.zoomed img { transform: scale(2.4); transition: transform .25s ease, transform-origin 0s; }
.mpsp-zoom-btn { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 14px rgba(11,26,72,.12); z-index: 2; padding: 0; }
.mpsp-zoom-btn:hover { color: var(--brand); }
.mpsp-zoom-hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); background: rgba(11,26,72,.75); color: #fff; font-size: .75rem; padding: 5px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; transition: opacity .2s; }
.mpsp-main-img.zoomed .mpsp-zoom-hint { opacity: 0; }
.mpsp-badge { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.mpsp-badge--sale { background: var(--sale); }

.mpsp-buy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mpsp-buy-top { min-height: var(--img-h); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.mpsp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: var(--fs-xs); font-weight: 600; }
.mpsp-grade { background: var(--ok-soft); color: var(--ok); padding: 3px 10px; border-radius: 999px; }
.mpsp-grade--c { background: #fff3df; color: var(--warn); }
.mpsp-stock { display: flex; align-items: center; gap: 6px; color: var(--warn); }
.mpsp-stock.is-out { color: var(--sale); }
.mpsp-stock i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.mpsp .mpsp-title { font-size: var(--fs-xxl); font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.mpsp-subtitle { display: block; color: var(--muted); font-size: var(--fs-s); font-weight: 400; letter-spacing: 0; margin-top: 6px; line-height: 1.5; }

.mpsp-price-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.mpsp-price-col { display: flex; flex-direction: column; gap: 4px; }
.mpsp-price { font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--ink); }
.mpsp-price .woocommerce-Price-amount, .mpsp-price bdi { color: inherit; font-weight: inherit; }
.mpsp-price-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.mpsp-old-price { text-decoration: line-through; }
.mpsp-discount { background: var(--ok-soft); color: var(--ok); font-weight: 700; padding: 2px 8px; border-radius: 6px; }

/* form "aggiungi al carrello" di WooCommerce con lo stile del pulsante Acquista */
.mpsp-cart { flex: 1 1 200px; max-width: 320px; }
.mpsp .mpsp-cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 !important; padding: 0; border: 0; }
.mpsp .mpsp-cart .quantity { margin: 0 !important; }
/* Come nel prototipo: solo il pulsante "Acquista". Nascondo quantità (resta 1),
   disponibilità ripetuta e pulsanti rapidi (Apple Pay, Google Pay, PayPal…):
   i metodi di pagamento restano tutti disponibili al checkout. */
.mpsp .mpsp-cart > :not(form),
.mpsp .mpsp-cart .quantity,
.mpsp .mpsp-cart .stock,
.mpsp .mpsp-cart [class*="express-checkout"],
.mpsp .mpsp-cart [id*="payment-request"],
.mpsp .mpsp-cart .ppc-button-wrapper,
.mpsp .mpsp-cart [id^="ppc-button"],
.mpsp .mpsp-cart [id^="ppcp-"] { display: none !important; }
.mpsp .mpsp-cart .single_add_to_cart_button,
.mpsp .mpsp-cta {
	flex: 1 1 160px;
	background: var(--brand) !important; color: #fff !important; border: 0 !important; border-radius: 10px !important;
	padding: 15px 24px !important; margin: 0 !important; font-weight: 600 !important; font-size: var(--fs-m) !important;
	line-height: 1.2 !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important;
	transition: background .15s; height: auto !important; min-height: 50px;
}
.mpsp .mpsp-cart .single_add_to_cart_button:hover, .mpsp .mpsp-cta:hover { background: #1c19c9 !important; }
/* Carrello laterale del tema mentre il prodotto viene aggiunto: niente "carrello vuoto", solo un indicatore. */
body.mpsp-scheda-nuova .mfn-cart-holder.mpsp-adding .mfn-ch-content-wrapper,
body.mpsp-scheda-nuova .mfn-cart-holder.mpsp-adding .mfn-ch-footer { visibility: hidden; }
body.mpsp-scheda-nuova .mfn-cart-holder.mpsp-adding::before { content: ""; position: absolute; left: 50%; top: 42%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 3px solid #e3e5ef; border-top-color: #2a27e9; border-radius: 50%; animation: mpsp-spin .8s linear infinite; z-index: 2; }
body.mpsp-scheda-nuova .mfn-cart-holder.mpsp-adding::after { content: "Aggiungo al carrello…"; position: absolute; left: 0; right: 0; top: calc(42% + 30px); text-align: center; font-size: 15px; color: #5b6275; z-index: 2; }
@keyframes mpsp-spin { to { transform: rotate(360deg); } }
/* Niente cerchio di caricamento né spunta sul pulsante: si apre subito il carrello laterale. */
.mpsp .mpsp-cart .single_add_to_cart_button.loading, .mpsp .mpsp-cart .single_add_to_cart_button.added { opacity: 1 !important; }
.mpsp .mpsp-cart .single_add_to_cart_button.loading::after, .mpsp .mpsp-cart .single_add_to_cart_button.loading::before,
.mpsp .mpsp-cart .single_add_to_cart_button.added::after, .mpsp .mpsp-cart .single_add_to_cart_button.added::before { display: none !important; content: none !important; }
.mpsp .mpsp-cart form.cart > :not(.quantity):not(.single_add_to_cart_button):not(input[type="hidden"]) { flex-basis: 100%; }

.mpsp-klarna { font-size: var(--fs-xs); color: var(--muted); }
.mpsp-klarna--fallback { background: var(--surface); border-radius: 10px; padding: 10px 14px; }
/* Riga Klarna come nel prototipo: logo + rata + "Scopri di più" in blu (apre il pannello laterale). */
.mpsp-klarna--line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* BeTheme e WooCommerce forzano "img { height:auto; max-width:100% }": qui serve dimensione fissa. */
.mpsp img.mpsp-klarna-badge { height: 24px !important; width: 57px !important; max-width: none !important; flex: none; display: block; }
.mpsp-klarna--line p { flex: 1; min-width: 180px; margin: 0; }
.mpsp-klarna--line p b, .mpsp-klarna--line p b .woocommerce-Price-amount { color: var(--ink); font-weight: 600; }
.mpsp .mpsp-link { background: none !important; border: 0 !important; padding: 0 !important; margin: 0; min-height: 0; color: var(--brand) !important; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; box-shadow: none !important; }
.mpsp .mpsp-link:hover { color: var(--brand-dark) !important; }
.mpsp-paylist--klarna .mpsp-klarna-badge { margin-bottom: 10px; }
.mpsp-klarna-official { font-size: var(--fs-xs); color: var(--muted); }

.mpsp-perks { display: flex; flex-direction: column; gap: 8px; }
.mpsp-perk { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); border: 0; width: 100%; text-align: left; font-size: var(--fs-s); color: var(--ink); }
.mpsp-ico { flex: none; width: 36px; height: 36px; border-radius: 9px; background: var(--bg); display: grid; place-items: center; color: var(--brand); }
.mpsp-perk b { display: block; font-weight: 600; line-height: 1.35; }
.mpsp-perk small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.mpsp-chev { margin-left: auto; flex: none; color: var(--ink); transition: transform .2s; display: grid; }
.mpsp-toggle[aria-expanded="true"] { border-radius: 12px 12px 0 0; }
.mpsp-toggle[aria-expanded="true"] .mpsp-chev { transform: rotate(90deg); }
.mpsp-perk-body { font-size: var(--fs-s); color: var(--muted); background: var(--brand-soft); border-radius: 0 0 12px 12px; margin-top: -8px; padding: 4px 16px 16px 66px; display: flex; flex-direction: column; gap: 8px; }
.mpsp-perk-body b { color: var(--ink); font-weight: 600; }

.mpsp-rows { display: flex; flex-direction: column; }
.mpsp-row-btn { display: flex; align-items: center; justify-content: space-between; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 18px 2px; font-size: var(--fs-m); font-weight: 500; text-align: left; color: var(--ink); }

/* In breve */
.mpsp-tiles-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mpsp .mpsp-tiles-head h2 { font-size: var(--fs-m); font-weight: 700; }
.mpsp-tiles-head small { color: var(--muted); font-size: var(--fs-xs); }
.mpsp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Lo sfondo del sito è grigio chiaro (#f7f7f7): i riquadri sono più scuri per staccare, come nel prototipo su fondo bianco. */
.mpsp-tile { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; text-align: left; background: #e8eaf2; border: 1.5px solid transparent; border-radius: 12px; padding: 12px; min-width: 0; color: var(--ink); cursor: pointer; }
.mpsp-tile span { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.mpsp-tile b { font-weight: 600; font-size: var(--fs-s); line-height: 1.3; }
/* Il tema (BeTheme) colora ogni pulsante al passaggio del mouse/dito ("button:hover").
   Qui niente colore al passaggio: le caselle "In breve" diventano lilla solo quando sono aperte;
   "Scheda tecnica", "Garanzia" e le altre righe restano sempre uguali. */
.mpsp .mpsp-tile, .mpsp .mpsp-tile:hover, .mpsp .mpsp-tile:focus, .mpsp .mpsp-tile:active { background: #e8eaf2 !important; border-color: transparent !important; color: var(--ink) !important; background-image: none !important; box-shadow: none !important; }
.mpsp .mpsp-tile[aria-pressed="true"], .mpsp .mpsp-tile[aria-pressed="true"]:hover, .mpsp .mpsp-tile[aria-pressed="true"]:focus, .mpsp .mpsp-tile[aria-pressed="true"]:active { border-color: var(--brand) !important; background: var(--brand-soft) !important; }
.mpsp .mpsp-row-btn, .mpsp .mpsp-row-btn:hover, .mpsp .mpsp-row-btn:focus, .mpsp .mpsp-row-btn:active { background: none !important; background-image: none !important; color: var(--ink) !important; border-color: var(--line) !important; box-shadow: none !important; }
.mpsp .mpsp-toggle, .mpsp .mpsp-toggle:hover, .mpsp .mpsp-toggle:focus, .mpsp .mpsp-toggle:active { background: var(--brand-soft) !important; background-image: none !important; color: var(--ink) !important; box-shadow: none !important; }
.mpsp .mpsp-thumb:hover, .mpsp .mpsp-thumb:focus { background: var(--surface) !important; background-image: none !important; border-color: var(--line) !important; }
.mpsp .mpsp-thumb[aria-current="true"], .mpsp .mpsp-thumb[aria-current="true"]:hover { border-color: var(--brand) !important; }
.mpsp .mpsp-zoom-btn:hover, .mpsp .mpsp-zoom-btn:focus { background: var(--bg) !important; background-image: none !important; border-color: var(--line) !important; }
.mpsp .mpsp-tile, .mpsp .mpsp-row-btn, .mpsp .mpsp-toggle, .mpsp .mpsp-thumb { -webkit-tap-highlight-color: transparent; }
.mpsp-tile-explain { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; font-size: var(--fs-s); }
.mpsp-tile-explain b { display: block; margin-bottom: 2px; }

/* "Le cose importanti": su desktop il titolo sale sotto la foto, i riquadri restano a tutta larghezza */
.mpsp-imphead--up { margin-top: auto; padding-top: 32px; }
.mpsp-imphead--down { display: none; }
.mpsp-imphead .mpsp-lead { margin-bottom: 0; }

/* sezioni basse */
.mpsp-block { padding-block: 48px; }
.mpsp .mpsp-block h2, .mpsp .mpsp-imphead h2 { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; color: var(--brand-dark); }
.mpsp-eyebrow-label { display: inline-block; color: var(--brand); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.mpsp-lead { color: var(--muted); max-width: 62ch; margin-bottom: 28px !important; }
.mpsp-tinted { background: linear-gradient(160deg, var(--brand-soft) 0%, #f3f2ff 55%, #e8f6ef 100%); border-radius: 24px; padding: 32px; margin-block: 8px; }
.mpsp-important { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mpsp-card { background: var(--bg); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; box-shadow: 0 6px 24px rgba(42,39,233,.08); }
.mpsp .mpsp-card h3 { font-size: var(--fs-m); font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--brand-dark); }
.mpsp-card h3 .mpsp-ico { width: 34px; height: 34px; background: var(--brand-soft); }
.mpsp-card--green h3 .mpsp-ico { background: var(--ok-soft); color: var(--ok); }
.mpsp-card--amber h3 .mpsp-ico { background: #fff3df; color: var(--warn); }
.mpsp-card p { color: var(--muted); }
.mpsp-big { font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--brand); }
.mpsp-card--green .mpsp-big { color: var(--ok); }
.mpsp-big small { font-size: var(--fs-s); font-weight: 500; color: var(--muted); letter-spacing: 0; }
.mpsp-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.mpsp-meter i { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.mpsp-facts { display: flex; gap: 18px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }
.mpsp-facts b { color: var(--ink); font-size: var(--fs-s); }
.mpsp-tag-ok { align-self: flex-start; background: var(--ok-soft); color: var(--ok); font-weight: 600; font-size: var(--fs-xs); padding: 4px 10px; border-radius: 999px; }
.mpsp-card--amber .mpsp-tag-ok { background: #fff3df; color: var(--warn); }

.mpsp-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mpsp-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; background: linear-gradient(180deg, #f7f7ff 0, var(--bg) 120px); }
.mpsp .mpsp-group h3 { font-size: var(--fs-m); font-weight: 700; margin-bottom: 4px; color: var(--brand); }
.mpsp-plain { color: var(--muted); font-size: var(--fs-s); margin-bottom: 14px !important; }
.mpsp-group dl { margin: 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 0; }
.mpsp-group dt, .mpsp-group dd { padding-block: 9px; border-top: 1px solid var(--line); font-size: var(--fs-s); margin: 0; }
.mpsp-group dt { color: var(--muted); padding-right: 16px; font-weight: 400; }
.mpsp-group dd { text-align: right; font-weight: 500; }
.mpsp-group dd small { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-xs); }

.mpsp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.mpsp-steps li { background: var(--ok-soft); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-s); margin: 0; }
.mpsp-steps svg { color: var(--ok); }

.mpsp-description { border-top: 1px solid var(--line); }

.mpsp-contact { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 56px; }
.mpsp .mpsp-contact h3 { font-size: var(--fs-l); font-weight: 700; flex: 1 1 260px; color: #fff; }
.mpsp-contact span { opacity: .75; font-size: var(--fs-xs); display: block; }
.mpsp-contact b { font-weight: 600; user-select: all; }
.mpsp .mpsp-wa-btn { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #0b1a12 !important; font-weight: 700; text-decoration: none !important; border-radius: 10px; padding: 12px 18px; white-space: nowrap; }
.mpsp .mpsp-wa-btn:hover { background: #1ebe5b; }

/* pannelli laterali */
.mpsp-scrim { position: fixed; inset: 0; background: rgba(11,26,72,.45); z-index: 99990; }
.mpsp-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 99991; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(11,26,72,.15); animation: mpsp-slide .25s ease; }
@keyframes mpsp-slide { from { transform: translateX(30px); opacity: .4; } }
.mpsp-drawer header { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 600; }
.mpsp-close { grid-column: 3; background: none; border: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.mpsp-close:hover { background: var(--surface); }
.mpsp-drawer-body { overflow: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mpsp .mpsp-drawer-body h2 { font-size: var(--fs-l); font-weight: 700; }
.mpsp-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.mpsp-search input { border: 0 !important; outline: 0; flex: 1; padding: 12px 4px !important; font: inherit; background: transparent !important; color: var(--ink); min-width: 0; box-shadow: none !important; margin: 0 !important; }
.mpsp-search:focus-within { border-color: var(--brand); }
.mpsp-speclist { display: flex; flex-direction: column; }
.mpsp-speclist div { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.mpsp-speclist div span:last-child { color: var(--muted); text-align: right; }
.mpsp-empty { color: var(--muted); }
.mpsp-help { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 12px; background: var(--surface); }
.mpsp .mpsp-help h3 { font-size: var(--fs-m); font-weight: 700; }
.mpsp-help p { color: var(--muted); }
.mpsp-paylist { display: flex; flex-direction: column; gap: 12px; }
.mpsp-paylist div { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.mpsp-paylist b { display: block; }
.mpsp-paylist small { color: var(--muted); font-size: var(--fs-xs); }

/* foto a tutto schermo */
.mpsp-lightbox { position: fixed; inset: 0; z-index: 99995; background: rgba(6,10,28,.95); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 56px 16px 24px; }
.mpsp-lightbox img { max-width: min(100%, 1100px); max-height: calc(100% - 40px); object-fit: contain; border-radius: 8px; }
/* A tutto schermo i gesti delle dita li gestisce la scheda (ingrandisci, sposta, cambia foto). */
.mpsp-lightbox { touch-action: none; overscroll-behavior: contain; }
.mpsp-lightbox img { will-change: transform; transform-origin: 50% 50%; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.mpsp-lb-btn { z-index: 2; }
.mpsp-lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff !important; display: grid; place-items: center; padding: 0; }
.mpsp-lb-btn:hover { background: rgba(255,255,255,.28); }
.mpsp-lb-close { top: 14px; right: 14px; }
.mpsp-lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.mpsp-lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.mpsp-lb-count { color: rgba(255,255,255,.75); font-size: var(--fs-xs); }

/* barra di acquisto che compare scorrendo */
.mpsp-stickybar { position: fixed; left: 0; right: 0; top: 0; z-index: 9990; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 6px 24px rgba(11,26,72,.08); transform: translateY(-110%); transition: transform .25s ease; visibility: hidden; }
.mpsp-stickybar.show { transform: none; visibility: visible; }
.admin-bar .mpsp-stickybar { top: 32px; }
@media (max-width: 782px) { .admin-bar .mpsp-stickybar { top: 46px; } }
/* Su computer e tablet l'header di BeTheme resta fisso in alto: la barra va in basso per non sovrapporsi.
   Sui telefoni (sotto 768px) BeTheme ha già una barra in basso, quindi la nostra resta in alto. */
@media (min-width: 768px) {
	.mpsp-stickybar, .admin-bar .mpsp-stickybar { top: auto; bottom: 0; border-bottom: 0; border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(11,26,72,.08); }
	.mpsp-stickybar { transform: translateY(110%); }
	.mpsp-stickybar.show { transform: none; }
}
.mpsp-sb-row { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 20px; padding: 12px 16px; }
.mpsp-sb-ship { display: flex; align-items: center; gap: 12px; font-size: var(--fs-s); font-weight: 500; min-width: 0; }
.mpsp-sb-ship .mpsp-ico { background: var(--brand-soft); width: 38px; height: 38px; }
.mpsp-sb-price { margin-left: auto; }
.mpsp-sb-price .mpsp-price { font-size: 1.375rem; }
.mpsp .mpsp-sb-row .mpsp-cta { flex: 0 0 240px; padding: 13px 24px !important; }

/* ---------- tablet e mobile ---------- */
@media (max-width: 900px) {
	.mpsp-product { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.mpsp-buy-top { min-height: 0; }
	.mpsp { --img-h: clamp(320px, 80vw, 460px); }
	.mpsp-important, .mpsp-groups { grid-template-columns: minmax(0, 1fr); }
	.mpsp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mpsp-imphead--up { display: none; }
	.mpsp-imphead--down { display: block; }
}
@media (max-width: 560px) {
	.mpsp-wrap { padding-top: 12px; }
	.mpsp-gallery { grid-template-columns: minmax(0, 1fr); }
	.mpsp-thumbs { flex-direction: row; order: 2; overflow-x: auto; overflow-y: hidden; max-height: none; align-items: flex-start; padding: 0 2px; }
	.mpsp-thumb { width: 60px; }
	.mpsp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mpsp .mpsp-title { font-size: var(--fs-xl); }
	.mpsp-steps { grid-template-columns: minmax(0, 1fr); }
	.mpsp-tinted { padding: 32px 18px; }
	.mpsp-cart { max-width: none; }
	/* in alto anche su mobile: in basso c'è già la barra di BeTheme */
	.mpsp-sb-row { gap: 12px; padding: 10px 16px; }
	.mpsp-sb-ship { display: none; }
	.mpsp-sb-price { margin-left: 0; }
	.mpsp .mpsp-sb-row .mpsp-cta { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	.mpsp *, .mpsp-stickybar { animation: none !important; transition: none !important; }
}
