/*
Theme Name: Ricambi Barca by ABM Nautica
Theme URI: https://ricambibarca.it
Author: Bomber
Description: Tema WooCommerce per Ricambi Barca by ABM Nautica. Catalogo Recmar via plugin recmar-sync.
Version: 0.1.64
Requires PHP: 8.1
Text Domain: deck
*/

/* ---------- Token ---------- */
:root {
	--bg: #f7f9fb;
	--fg: #081c2e;
	--navy: #081c2e;
	--navy-2: #0c2a44;
	--primary: #f06428;
	--primary-2: #d9541c;
	--accent: #e7f7fb;
	--accent-fg: #0a6682;
	--teal: #16a8c8;
	--muted: #eef3f6;
	--muted-fg: #617181;
	--border: #dce4ea;
	--input: #ced9e0;
	--card: #fff;
	--ok: #1e8e3e;
	--warn: #e8a317;
	--danger: #c92b39;
	--radius: .55rem;
	--radius-lg: 1rem;
	--shadow: 0 1px 2px rgba(8, 28, 46, .06), 0 8px 24px -12px rgba(8, 28, 46, .18);
	--shadow-lg: 0 12px 40px -12px rgba(8, 28, 46, .35);
	--font: "Manrope", Arial, sans-serif;
	--mono: "Roboto Mono", ui-monospace, Menlo, monospace;
	--container: 1240px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-fg); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); font-size: .78em; letter-spacing: .02em; }
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-fg); margin-bottom: .6rem; }
.eyebrow--light { color: var(--teal); }
.muted { color: var(--muted-fg); }
.screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.3rem; border-radius: var(--radius); border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; line-height: 1.1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(240, 100, 40, .6); }
.btn--primary:hover { background: var(--primary-2); color: #fff; }
.btn--ghost { background: #fff; border-color: var(--border); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--light { background: #fff; color: var(--navy); }
.btn--link { padding: 0; background: none; border: 0; font-weight: 700; color: var(--accent-fg); }
.btn--link:hover { text-decoration: underline; }
.btn svg, .icon { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #cfe3ee; font-size: .8rem; }
.topbar .container { display: flex; justify-content: center; gap: 2.5rem; padding: .45rem 20px; flex-wrap: wrap; }
.topbar span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: var(--shadow); }
.header-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: .9rem 20px; }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo__mark { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; color: #7fd6ea; }
.logo__mark svg { width: 24px; height: 24px; }
/* Il nome è più lungo del vecchio marchio: meno spaziatura, o non ci sta accanto alla ricerca. */
.logo__name { font-weight: 800; font-size: 1.08rem; letter-spacing: .09em; line-height: 1; white-space: nowrap; }
.logo__sub { display: block; font-size: .58rem; letter-spacing: .12em; color: var(--muted-fg); font-weight: 600; margin-top: .2rem; }
/* Anteprima dei risultati mentre si scrive */
.sugg { position: absolute; top: calc(100% + .45rem); left: 0; right: 0; z-index: 60; background: #fff;
	border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(11, 37, 58, .16);
	overflow: hidden; max-height: min(70vh, 30rem); overflow-y: auto; text-align: left; }
.sugg__item { display: grid; grid-template-columns: 48px 1fr auto; gap: .75rem; align-items: center;
	padding: .6rem .8rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--fg); }
.sugg__item:last-of-type { border-bottom: 0; }
.sugg__item:hover, .sugg__item.is-active { background: var(--bg); }
.sugg__media { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
	background: var(--bg); border-radius: .35rem; overflow: hidden; }
.sugg__media img { width: 100%; height: 100%; object-fit: contain; }
.sugg__body { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.sugg__body strong { font-size: .92rem; font-weight: 700; line-height: 1.25;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg__meta { font: 500 .68rem/1 var(--mono, inherit); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-fg); }
.sugg__testo { font-size: .78rem; color: var(--muted-fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sugg__prezzo { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sugg__prezzo .woocommerce-Price-amount { font-size: .9rem; }
.sugg__prezzo.is-out { font-weight: 500; font-size: .78rem; color: var(--muted-fg); }
/* Più specifico di ".site-search button", che è assoluto e coprirebbe tutto il riquadro. */
.site-search .sugg__tutti, .hero__search .sugg__tutti, .sugg__tutti {
	position: static; display: block; width: 100%; inset: auto; padding: .7rem .8rem;
	border: 0; border-top: 1px solid var(--border); border-radius: 0;
	background: var(--bg); color: var(--navy); font: 600 .85rem/1.2 inherit; text-align: left; cursor: pointer; }
.site-search .sugg__tutti:hover, .hero__search .sugg__tutti:hover { background: var(--border); }
.sugg__vuoto { margin: 0; padding: .9rem .8rem; font-size: .85rem; color: var(--muted-fg); }
@media (max-width: 768px) { .sugg__testo { display: none; } .sugg { max-height: 60vh; } }

.site-search { position: relative; max-width: 620px; width: 100%; margin: 0 auto; }
.site-search input { width: 100%; padding: .8rem 5.4rem .8rem 2.8rem; border: 1px solid var(--input); border-radius: var(--radius); background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.site-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 168, 200, .18); background: #fff; }
.search__icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted-fg); pointer-events: none; }
.site-search button { position: absolute; right: .35rem; top: .35rem; bottom: .35rem; padding: 0 1rem; border: 0; border-radius: .4rem; background: var(--primary); color: #fff; font-weight: 700; cursor: pointer; }
.header-actions { display: flex; gap: 1.2rem; }
.header-actions a { display: flex; flex-direction: column; align-items: center; gap: .15rem; font-size: .68rem; color: var(--muted-fg); position: relative; }
.header-actions svg { width: 22px; height: 22px; color: var(--fg); }
.header-actions .count { position: absolute; top: -6px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--primary); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }

/* Nav */
.site-nav { border-top: 1px solid var(--border); background: #fff; }
.site-nav .container { display: flex; align-items: stretch; gap: .25rem; padding: 0 20px; }
.nav-all { display: flex; align-items: center; gap: .6rem; background: var(--navy); color: #fff; font-weight: 700; padding: .85rem 1.3rem; border: 0; cursor: pointer; }
.nav-all svg { width: 18px; height: 18px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0; flex: 1; margin: 0; padding: 0 .3rem; list-style: none; }
.nav-links a, .nav-links .nav-link { display: flex; align-items: center; gap: .2rem; padding: .85rem .5rem; font-weight: 600; font-size: .82rem; white-space: nowrap; position: relative; background: none; border: 0; cursor: pointer; color: inherit; }
@media (max-width: 1300px) { .nav-link__chev { display: none; } }
.nav-links a::after, .nav-links .nav-link::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .55rem; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav-links a:hover::after, .nav-links .current > a::after, .nav-links .current > .nav-link::after, .nav-links .nav-link:hover::after, .nav-links .nav-link.is-open::after { transform: scaleX(1); }
.nav-link__chev { width: 14px; height: 14px; color: var(--muted-fg); transition: transform .2s var(--ease); }
.nav-link.is-open .nav-link__chev { transform: rotate(180deg); }
.nav-item { position: static; }
/* Pannello di una macro-area */
.site-nav .mega--cat .mega__inner { display: block; padding: 1.4rem 20px 1.8rem; }
.mega__head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--muted); }
.mega__head > .icon { width: 44px; height: 44px; border-radius: .7rem; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.mega__head > .icon svg { width: 22px; height: 22px; }
.mega__head strong { display: block; font-size: 1.05rem; }
.mega__head span { font-size: .8rem; color: var(--muted-fg); }
.mega__head .btn { margin-left: auto; padding: .6rem 1rem; font-size: .85rem; }
.mega__head .btn svg { width: 16px; height: 16px; background: none; }
.mega__list { list-style: none; margin: 0; padding: 0; columns: 4; column-gap: 2rem; }
.mega__list li { break-inside: avoid; }
.mega__list li a { display: flex; justify-content: space-between; gap: .6rem; padding: .35rem 0; font-size: .88rem; color: var(--fg); border-bottom: 1px dashed var(--muted); }
.mega__list li a:hover { color: var(--accent-fg); }
.mega__list li a span { font-family: var(--mono); font-size: .7rem; color: var(--muted-fg); }
@media (max-width: 1024px) { .mega__list { columns: 2; } }
.nav-offers { display: flex; align-items: center; gap: .3rem; padding: 0 .5rem; color: var(--primary); font-weight: 700; }
.nav-burger { display: none; }

/* Mega menu */
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s var(--ease); z-index: 40; }
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.site-nav .mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem 2rem; padding: 1.6rem 20px 2rem; }
.mega__col h4 { font-size: .9rem; margin-bottom: .5rem; display: flex; justify-content: space-between; }
.mega__col h4 span { color: var(--muted-fg); font-weight: 500; font-size: .75rem; }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col li a { display: flex; justify-content: space-between; padding: .28rem 0; font-size: .86rem; color: var(--muted-fg); }
.mega__col li a:hover { color: var(--accent-fg); }
.mega__col li a span { font-family: var(--mono); font-size: .7rem; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 470px; }
.hero__copy { padding: 4.5rem 20px 3rem; max-width: 620px; justify-self: end; width: 100%; }
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #7fd6ea; }
.hero__lead { color: #b9d2df; font-size: 1.05rem; max-width: 480px; }
.hero__search { position: relative; display: flex; background: #fff; border-radius: var(--radius); padding: .4rem; margin: 1.6rem 0 2rem; max-width: 520px; box-shadow: var(--shadow-lg); }
.hero__search input { flex: 1; border: 0; padding: .6rem .9rem .6rem 2.4rem; color: var(--fg); background: transparent; min-width: 0; }
.hero__search .search__icon { left: 1.1rem; }
.hero__search input:focus { outline: none; }
.hero__stats { display: flex; gap: 2.5rem; }
.hero__stats strong { display: block; font-size: 1.15rem; }
.hero__stats span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8fb2c4; }
.hero__visual { position: relative; background: linear-gradient(135deg, #0a3350 0%, #16a8c8 60%, #7fd6ea 100%); overflow: hidden; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__waves { position: absolute; inset: auto 0 -2px; width: 100%; height: 45%; opacity: .55; }
.hero__waves path { animation: wave 9s linear infinite; }
.hero__waves path:nth-child(2) { animation-duration: 14s; opacity: .6; }
.hero__waves path:nth-child(3) { animation-duration: 20s; opacity: .35; }
.hero__card { position: absolute; right: 2rem; bottom: 2rem; background: #fff; color: var(--fg); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-lg); max-width: 330px; }
.hero__card .icon { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.hero__card small { display: block; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-fg); }
.hero__card strong { font-size: .95rem; }
.hero__card .arrow { margin-left: auto; }

/* ---------- Sezioni ---------- */
.section { padding: 3.5rem 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.6rem; gap: 1rem; }
.section__head h2 { margin: 0; }

.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.cat-tile { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.cat-tile .icon { width: 46px; height: 46px; border-radius: .7rem; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; flex: none; transition: transform .22s var(--ease); }
.cat-tile:hover .icon { transform: scale(1.08) rotate(-4deg); }
.cat-tile strong { display: block; font-size: .95rem; }
.cat-tile span { font-size: .76rem; color: var(--muted-fg); }
.cat-tile .chev { margin-left: auto; color: var(--muted-fg); }

/* Griglia prodotti */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
/* Il CSS di WooCommerce assegna larghezze in percentuale e float alle card: sopra una griglia creano card di larghezza diversa */
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product, ul.products li.pcard { width: auto !important; float: none !important; margin: 0 !important; clear: none !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
/* Pagine con risultati prodotto: larghezza piena, fino a 6 colonne sugli schermi larghi */
.container--wide { max-width: 2000px; }
.archive-layout ul.products { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 1200px) { .archive-layout ul.products { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1500px) { .archive-layout ul.products { grid-template-columns: repeat(5, 1fr); } .archive-layout { grid-template-columns: 270px 1fr; gap: 2rem; } }
@media (min-width: 1750px) { .archive-layout ul.products { grid-template-columns: repeat(6, 1fr); } }
.cat-hero--search .cat-hero__search { margin: 1rem 0 0; max-width: 560px; }
.cat-hero--search .cat-hero__search input { padding-left: 2.4rem; }
.pcard { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem; display: flex; flex-direction: column; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard__media { position: relative; aspect-ratio: 1; display: block; overflow: hidden; border-radius: .6rem; background: #fff; margin-bottom: .9rem; }
/* Foto sempre dentro il quadrato, qualunque proporzione abbia l'originale */
.pcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; transition: transform .35s var(--ease); }
.pcard__media .placeholder { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__media .placeholder { color: var(--border); width: 40%; height: auto; }
.product-gallery .placeholder { height: auto; }
.cat-hero > .icon { width: 90px; height: 90px; }
.cat-hero .search__icon { width: 18px; height: 18px; color: var(--muted-fg); opacity: 1; }
.hero__card .icon svg, .helpbox .icon svg, .cat-tile .icon svg, .compat .icon svg, .trust__item svg { width: 22px; height: 22px; }
.logo__mark svg { width: 24px; height: 24px; }
.header-actions svg { width: 22px; height: 22px; }
.pcard__tag { position: absolute; top: .4rem; left: .4rem; background: var(--primary); color: #fff; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: .25rem .5rem; border-radius: .3rem; text-transform: uppercase; }
.pcard__meta { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .7rem; margin-bottom: .3rem; }
.pcard__brand { color: var(--accent-fg); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pcard__ref { font-family: var(--mono); color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__title { font-size: .92rem; font-weight: 700; line-height: 1.3; margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.5em; }
.pcard__title a:hover { color: var(--accent-fg); }
.pcard__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: end; padding-top: .8rem; border-top: 1px solid var(--muted); }
.pcard__price { font-size: 1.15rem; font-weight: 800; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .3rem; line-height: 1.2; }
.pcard__price--range { font-size: .98rem; letter-spacing: -.01em; }
.pcard__price small { font-size: .62rem; color: var(--muted-fg); font-weight: 500; white-space: nowrap; }
.pcard__price del { color: var(--muted-fg); font-size: .8rem; font-weight: 500; margin-right: .3rem; }
.pcard__add { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; transition: background .18s, transform .18s var(--ease); }
.pcard__add:hover { background: var(--primary); color: #fff; transform: scale(1.08); }
.pcard__add.added { background: var(--ok); }
.pcard__add svg { width: 18px; height: 18px; }
.pcard__add.loading svg { animation: spin 1s linear infinite; }
.pcard .recmar-stock { font-size: .76rem; margin: .1rem 0 .4rem; }

/* Badge giacenza del plugin */
.recmar-stock--low .recmar-stock__dot { animation: pulse 1.6s ease-in-out infinite; }

/* Banner promo */
.promo { background: radial-gradient(120% 140% at 85% 20%, #13506f 0%, var(--navy-2) 45%, var(--navy) 100%); color: #fff; border-radius: var(--radius-lg); padding: 3rem; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem; overflow: hidden; position: relative; }
.promo h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.promo p { color: #b9d2df; }
.promo__pct { text-align: center; }
.promo__pct strong { display: block; font-size: clamp(3rem, 6vw, 5rem); line-height: 1; letter-spacing: -.04em; color: #7fd6ea; }
.promo__pct span { color: #b9d2df; font-size: .85rem; }
.promo__pct small { display: block; color: #7fd6ea; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .4rem; }

.duo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; }
.helpbox { background: var(--accent); border-radius: var(--radius-lg); padding: 2.2rem; display: flex; gap: 1.4rem; align-items: flex-start; }
.helpbox .icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.helpbox h2 { font-size: 1.5rem; }
.trust { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .5rem 1.6rem; }
.trust__item { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--muted); }
.trust__item:last-child { border-bottom: 0; }
.trust__item svg { width: 22px; height: 22px; color: var(--accent-fg); flex: none; }
.trust__item strong { display: block; font-size: .92rem; }
.trust__item span { font-size: .78rem; color: var(--muted-fg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9d2df; margin-top: 3rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 20px 2.4rem; align-items: start; }
.site-footer .logo__mark { background: #fff; color: var(--navy); }
.site-footer .logo__name { color: #fff; }
.site-footer .logo__sub { color: #8fb2c4; }
.site-footer a:hover { color: #fff; }
.footer__brand p { font-size: .85rem; margin: 1rem 0 1.2rem; }
.footer__phone small { display: block; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #7fd6ea; margin-bottom: .3rem; }
.footer__num { display: block; font-size: 1.4rem; font-weight: 800; color: #fff; }
.footer__phone span { display: block; font-size: .75rem; }
.footer__mail { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-size: .82rem; }
.footer__mail svg { width: 16px; height: 16px; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.footer__social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.footer__social a:hover { background: rgba(255,255,255,.1); border-color: transparent; }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .9rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__col a { font-size: .85rem; }
.footer__pay { border-top: 1px solid rgba(255,255,255,.08); }
.footer__pay .container { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 1.4rem 20px; flex-wrap: wrap; }
.footer__paycol small { display: flex; align-items: center; gap: .4rem; font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: #7fd6ea; }
.footer__paycol small svg { width: 15px; height: 15px; }
.footer__paycol strong { display: block; color: #fff; font-size: .95rem; margin-top: .5rem; }
.footer__paycol span { display: block; font-size: .78rem; margin-top: .35rem; }
.footer__paycol a { text-decoration: underline; text-underline-offset: 2px; }
.footer__paycol--ship { text-align: right; }
.footer__paycol--ship small { justify-content: flex-end; }
.footer__marks { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .1rem; }
.paymark { display: block; line-height: 0; }
.paymark svg { border-radius: 5px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .74rem; }
.footer__bottom .container { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 20px; }

/* ---------- Archivio ---------- */
.breadcrumbs { font-size: .78rem; color: var(--muted-fg); padding: 1.1rem 0 .4rem; }
.breadcrumbs a:hover { color: var(--accent-fg); }
.breadcrumbs span.sep { margin: 0 .5rem; opacity: .5; }
.cat-hero { background: radial-gradient(110% 160% at 90% 10%, #14516f 0%, var(--navy-2) 50%, var(--navy) 100%); color: #fff; border-radius: var(--radius-lg); padding: 2.6rem 2.6rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin: .6rem 0 1.4rem; }
.cat-hero h1 { margin-bottom: .4rem; }
.cat-hero p { color: #b9d2df; margin: 0; max-width: 560px; }
.cat-hero > svg, .cat-hero > .icon svg { width: 90px; height: 90px; color: #7fd6ea; opacity: .8; flex: none; }
.search-tips { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1rem 0 0; color: var(--muted-fg); font-size: .9rem; }
.search-tips a { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border: 1px solid var(--input); border-radius: 999px; background: #fff; color: var(--fg); font-weight: 600; text-decoration: none; }
.search-tips a svg { width: 14px; height: 14px; }
.search-tips a:hover { border-color: var(--teal); color: var(--teal); }
.subcats { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.subcats a { flex: none; display: flex; align-items: center; gap: .7rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; font-weight: 600; font-size: .88rem; transition: border-color .15s, transform .18s var(--ease); }
.subcats a:hover { border-color: var(--teal); transform: translateY(-2px); }
.subcats a.current { border-color: var(--teal); background: var(--accent); }
.subcats a span { background: var(--muted); border-radius: 1rem; padding: .1rem .5rem; font-size: .7rem; color: var(--muted-fg); font-family: var(--mono); }
.archive-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.archive-bar .woocommerce-result-count { margin: 0; font-size: .85rem; color: var(--muted-fg); }
.archive-bar .woocommerce-result-count strong { color: var(--fg); }
.woocommerce-ordering select { padding: .6rem 2.2rem .6rem .9rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.archive-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; align-items: start; }
.filters { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9d3dc transparent; }
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: #c9d3dc; border-radius: 3px; }
.filters__search { width: 100%; margin: 0 0 .5rem; padding: .45rem .7rem; border: 1px solid var(--input); border-radius: var(--radius); font: inherit; font-size: .82rem; background: var(--bg); }
.filters__search:focus { outline: none; border-color: var(--teal); background: #fff; }
.filters li.is-hidden { display: none; }
.filters__empty { font-size: .78rem; color: var(--muted-fg); padding: .3rem 0; }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.filters__head h3 { margin: 0; font-size: 1rem; }
.filters__head a { font-size: .75rem; color: var(--primary); font-weight: 700; }
.filters .widget { border-top: 1px solid var(--muted); padding: .9rem 0; }
.filters .widget-title, .filters .widget h2 { font-size: .8rem; font-weight: 700; margin: 0 0 .5rem; text-transform: none; letter-spacing: 0; }
.filters ul { list-style: none; margin: 0; padding: 0; max-height: 300px; overflow: auto; scrollbar-width: thin; scrollbar-color: #c9d3dc transparent; }
.filters ul::-webkit-scrollbar { width: 6px; }
.filters ul::-webkit-scrollbar-thumb { background: #c9d3dc; border-radius: 3px; }
.filters li { display: flex; justify-content: flex-start; align-items: center; font-size: .84rem; padding: .22rem 0; color: var(--muted-fg); text-align: left; }
.filters li a { display: flex; align-items: center; gap: .5rem; flex: 1 1 auto; justify-content: flex-start; margin: 0 !important; padding: 0 !important; text-align: left; }
.filters li > .count { margin-left: auto; padding-left: .5rem; }
.filters li a::before { content: ""; width: 15px; height: 15px; border: 1px solid var(--input); border-radius: 3px; background: #fff; flex: none; transition: background .15s, border-color .15s; }
.filters li.chosen a::before, .filters li a:hover::before { background: var(--teal); border-color: var(--teal); }
.filters li .count { font-family: var(--mono); font-size: .68rem; }
/* Tutto allineato a sinistra, anche i widget WooCommerce */
.filters, .filters * { text-align: left; }
.filters ul, .filters li, .filters .woocommerce-widget-layered-nav-list { margin-left: 0; padding-left: 0; }
.filters .widget-cats li.chosen a { color: var(--fg); font-weight: 700; }
.filters .widget-cats li a::before { border-radius: 50%; }

/* Filtro prezzo: barra a due cursori */
.widget-price { margin: 0; }
.range { position: relative; height: 28px; margin: .6rem 0 .2rem; }
.range__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--border); }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--teal); border-radius: 2px; }
.range input[type=range] { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 28px; margin: 0; background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); box-shadow: 0 1px 4px rgba(8,28,46,.25); cursor: grab; pointer-events: auto; }
.range input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--teal); box-shadow: 0 1px 4px rgba(8,28,46,.25); cursor: grab; pointer-events: auto; }
.range input[type=range]::-webkit-slider-runnable-track { background: transparent; }
.range input[type=range]::-moz-range-track { background: transparent; }
.range__labels { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 700; margin-bottom: .6rem; }
.range__apply { padding: .5rem .9rem; font-size: .8rem; }
.woocommerce-pagination { display: flex; justify-content: center; margin: 2rem 0; }
.woocommerce-pagination ul { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: block; min-width: 38px; padding: .5rem .6rem; text-align: center; border: 1px solid var(--border); border-radius: .4rem; background: #fff; font-weight: 600; font-size: .85rem; }
.woocommerce-pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: .9rem 1rem; margin: 1rem 0; list-style: none; }
.woocommerce-error { border-left-color: var(--danger); }
.woocommerce-message { border-left-color: var(--ok); }

/* ---------- Scheda prodotto ---------- */
.product-layout { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 2.5rem; align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin-bottom: 1.2rem; }
.product-gallery { position: relative; width: 100%; max-width: 420px; }
.product-gallery .woocommerce-product-gallery, .woocommerce div.product .product-gallery div.images { width: 100% !important; float: none !important; margin: 0; border: 1px solid var(--muted); border-radius: var(--radius); padding: .8rem; background: #fff; }
.product-gallery .woocommerce-product-gallery__wrapper { margin: 0; }
.product-gallery .woocommerce-product-gallery__image img { width: 100%; height: auto; max-height: 380px; object-fit: contain; margin: 0 auto; }
.product-gallery .woocommerce-product-gallery__trigger { top: .5rem; right: .5rem; }
.product-gallery .placeholder { color: var(--border); width: 40%; margin: 4rem auto; }
.product-gallery .onsale { position: absolute; top: .6rem; left: .6rem; z-index: 2; background: var(--primary); color: #fff; font-size: .7rem; font-weight: 800; padding: .3rem .6rem; border-radius: .3rem; }
.pdetail__meta { display: flex; gap: 1rem; align-items: baseline; font-size: .74rem; margin-bottom: .6rem; }
.pdetail__brand { color: var(--accent-fg); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pdetail__ref { font-family: var(--mono); color: var(--muted-fg); }
.pdetail h1 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 1rem; }
.pdetail .price { font-size: 2rem; font-weight: 800; margin: 0 0 1rem; display: flex; align-items: baseline; gap: .6rem; }
.pdetail .price del { font-size: 1rem; color: var(--muted-fg); font-weight: 500; }
.pdetail .price ins { text-decoration: none; }
.pdetail .price .vat { font-size: .7rem; color: var(--muted-fg); font-weight: 500; }
.pdetail .price .save { margin-left: auto; background: var(--accent); color: var(--accent-fg); font-size: .7rem; font-weight: 700; padding: .3rem .6rem; border-radius: .4rem; }
.stockbox { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1.2rem; background: var(--bg); }
.stockbox .recmar-stock { margin: 0; font-size: .95rem; }
.stockbox .recmar-stock__text { font-weight: 700; }
.stockbox--ok { border-color: #bfe3cb; background: #f0faf3; }
.stockbox--low { border-color: #f5dfae; background: #fff8e8; }
.stockbox--none { border-color: #f1c2c6; background: #fdf1f2; }
.pdetail form.cart { display: flex; gap: .8rem; align-items: stretch; margin-bottom: 1rem; }
.pdetail .quantity { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.pdetail .quantity input { width: 60px; text-align: center; border: 0; padding: .8rem 0; background: transparent; -moz-appearance: textfield; }
.pdetail .quantity input::-webkit-outer-spin-button, .pdetail .quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdetail .qty-btn { width: 40px; border: 0; background: transparent; cursor: pointer; font-size: 1.2rem; color: var(--muted-fg); }
.pdetail .single_add_to_cart_button { flex: 1; justify-content: center; font-size: 1rem; }
.pdetail .single_add_to_cart_button.disabled, .pdetail .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
/* Prodotti con versioni (tendina WooCommerce) */
.pdetail .variations { width: 100%; margin: 0 0 1rem; border-collapse: collapse; }
.pdetail .variations th, .pdetail .variations td { padding: .3rem 0; text-align: left; vertical-align: middle; }
.pdetail .variations th label { font-size: .78rem; font-weight: 700; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .08em; }
.woocommerce div.product .pdetail form.cart .variations select { display: none; }
.pdetail .variations select { width: 100%; padding: .8rem 2.4rem .8rem .9rem; border: 1px solid var(--input); border-radius: var(--radius); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23617181' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px; appearance: none; font-weight: 600; }
.pdetail .variations select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,168,200,.18); }
.pdetail .reset_variations { display: inline-block; margin-top: .3rem; font-size: .75rem; color: var(--muted-fg); }
.vswatches { display: flex; flex-wrap: wrap; gap: .5rem; padding: .2rem 0; }
.vswatch { padding: .55rem .9rem; border: 1px solid var(--input); border-radius: .5rem; background: #fff; color: var(--fg); font: inherit; font-size: .88rem; font-weight: 600; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, color .15s, box-shadow .15s; }
.vswatch:hover { border-color: var(--teal); }
.vswatch.is-active { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 0 0 3px rgba(11, 37, 58, .15); }
.vswatch.is-out { color: var(--muted-fg); border-style: dashed; background: var(--bg); }
.vswatch.is-out span { text-decoration: line-through; text-decoration-thickness: 2px; }
.vswatch.is-out.is-active { background: var(--muted-fg); border-color: var(--muted-fg); color: #fff; box-shadow: none; }
/* Combinazione che non esiste a catalogo con le altre scelte fatte: non è esaurita, proprio non c'è. */
.vswatch.is-off { opacity: .38; }
.vswatch.is-off:hover { border-color: var(--input); }
.vswatches__note { width: 100%; font-size: .75rem; color: var(--muted-fg); }
.pdetail .single_variation_wrap .woocommerce-variation-price { display: none; }
.pdetail .single_variation_wrap .woocommerce-variation-availability { display: none; }
.pdetail .wc-no-matching-variations { display: none !important; }
/* Nome esteso della versione scelta: dice a parole cosa si sta comprando. */
.pdetail .woocommerce-variation-description { margin: 0 0 .9rem; padding: .7rem .9rem; border-left: 3px solid var(--teal); background: var(--bg); border-radius: 0 var(--radius) var(--radius) 0; font-size: .9rem; color: var(--fg); }
.pdetail .woocommerce-variation-description p { margin: 0; }
.pdetail .woocommerce-variation-add-to-cart { display: flex; gap: .8rem; }
.pdetail .woocommerce-variation-add-to-cart .quantity { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.pdetail .woocommerce-variation-add-to-cart .quantity input { width: 70px; text-align: center; border: 0; padding: .8rem 0; background: transparent; }
.pdetail .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1; background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); font-weight: 700; font-size: 1rem; padding: .8rem 1.3rem; cursor: pointer; }
.pdetail .woocommerce-variation-add-to-cart .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.pdetail .woocommerce-variation-add-to-cart .single_add_to_cart_button:hover { background: var(--primary-2); }
.pcard__versions { font-size: .7rem; color: var(--accent-fg); font-weight: 700; }
.pdetail__perks { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; }
.pdetail__perks div { display: flex; gap: .6rem; align-items: flex-start; font-size: .78rem; color: var(--muted-fg); }
.pdetail__perks svg { width: 20px; height: 20px; color: var(--accent-fg); flex: none; }
.pdetail__perks strong { display: block; color: var(--fg); }
.compat { display: flex; align-items: center; gap: 1rem; background: var(--accent); border-radius: var(--radius); padding: .9rem 1.1rem; }
.compat .icon { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.compat strong { display: block; font-size: .9rem; }
.compat span { font-size: .75rem; color: var(--muted-fg); }
.compat .arrow { margin-left: auto; }
.product_meta { font-size: .78rem; color: var(--muted-fg); margin-top: 1rem; }
.product_meta > span { margin-right: 1.2rem; }
.product_meta a { color: var(--accent-fg); }

.ptabs { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ptabs__nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); padding: 0 1.2rem; }
.ptabs__nav button { background: none; border: 0; padding: 1rem 1.2rem; font-weight: 600; color: var(--muted-fg); cursor: pointer; position: relative; }
.ptabs__nav button::after { content: ""; position: absolute; left: 1.2rem; right: 1.2rem; bottom: -1px; height: 2px; background: var(--teal); transform: scaleX(0); transition: transform .2s var(--ease); }
.ptabs__nav button.active { color: var(--fg); }
.ptabs__nav button.active::after { transform: scaleX(1); }
.ptabs__panel { display: none; padding: 1.8rem 2rem; }
.ptabs__panel.active { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; animation: fadeUp .35s var(--ease); }
.ptabs__panel.active.single { display: block; }
.ptabs__panel h2 { font-size: 1.4rem; }
.ptabs__panel .desc { color: var(--muted-fg); white-space: pre-line; }
.spec { width: 100%; border-collapse: collapse; font-size: .85rem; }
.spec th, .spec td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--muted); vertical-align: top; }
.spec th { color: var(--muted-fg); font-weight: 500; width: 45%; }
.spec td { font-weight: 700; text-align: right; }
.related { margin-top: 2.5rem; }
.related h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* ---------- Carrello ---------- */
.wc-page { margin: .4rem 0 2.5rem; }
.cart-head { display: flex; justify-content: space-between; align-items: end; margin: .6rem 0 1.2rem; }
.cart-head h1 { margin: 0; }
.cart-head h1 small { font-size: .95rem; font-weight: 500; color: var(--muted-fg); margin-left: .5rem; }
.cart-head .btn--link .arrow { transform: rotate(180deg); }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: .8rem; }
.cart-ship { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; align-items: center; background: #f0faf3; border: 1px solid #bfe3cb; border-radius: var(--radius); padding: .9rem 1.1rem; }
.cart-ship svg { width: 22px; height: 22px; color: var(--ok); grid-row: span 2; }
.cart-ship strong { display: block; font-size: .92rem; }
.cart-ship span { font-size: .78rem; color: var(--muted-fg); }
.cart-ship__bar { grid-column: 2; height: 6px; border-radius: 3px; background: #d6ecdc; overflow: hidden; }
.cart-ship__bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .6s var(--ease); }
.cart-item { display: grid; grid-template-columns: 96px 1fr auto auto; gap: 1.2rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.2rem; }
.cart-item__media { width: 96px; height: 96px; display: block; border: 1px solid var(--muted); border-radius: .6rem; overflow: hidden; background: #fff; }
.cart-item__media img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__title { font-size: .95rem; margin: .1rem 0 .3rem; line-height: 1.3; }
.cart-item__version { display: block; font-size: .78rem; font-weight: 500; color: var(--muted-fg); margin-top: .15rem; }
.cart-item .recmar-stock { font-size: .76rem; margin: .1rem 0 .4rem; }
.cart-item__remove { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; color: var(--danger); font-weight: 600; }
.cart-item__remove svg { width: 13px; height: 13px; }
.cart-item__qty .quantity { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.cart-item__qty .quantity input { width: 64px; text-align: center; border: 0; padding: .6rem 0; background: transparent; }
.cart-item__price { text-align: right; min-width: 110px; font-weight: 800; font-size: 1.1rem; }
.cart-item__price small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted-fg); }
.cart-item__price del { font-size: .8rem; color: var(--muted-fg); font-weight: 500; }
.cart-actions { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.cart-actions .coupon { display: flex; gap: .5rem; }
.cart-actions .coupon input { padding: .7rem .9rem; border: 1px solid var(--input); border-radius: var(--radius); min-width: 200px; }
.woocommerce .cart-summary .cart-collaterals .cart_totals, .woocommerce-page .cart-summary .cart-collaterals .cart_totals { float: none; width: 100%; }
.cart-summary { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 1.6rem; position: sticky; top: 150px; }
.cart-summary h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.cart-summary .shop_table { width: 100%; border-collapse: collapse; }
.cart-summary .shop_table th, .cart-summary .shop_table td { padding: .55rem 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: #cfe3ee; text-align: left; }
.cart-summary .shop_table td { text-align: right; color: #fff; }
.cart-summary .shop_table .order-total th, .cart-summary .shop_table .order-total td { border-bottom: 0; padding-top: 1rem; font-size: 1rem; }
.cart-summary .shop_table .order-total td .amount { font-size: 1.6rem; font-weight: 800; }
.cart-summary .shop_table .woocommerce-shipping-totals td { text-align: left; }
.cart-summary .shop_table small.includes_tax, .cart-summary .woocommerce-shipping-destination { color: #8fb2c4; font-size: .75rem; }
.cart-summary .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
.cart-summary a { color: #7fd6ea; }
.cart-summary .wc-proceed-to-checkout { margin-top: 1.2rem; }
.cart-summary .checkout-button { display: flex !important; justify-content: center; align-items: center; gap: .5rem; width: 100%; padding: .95rem 1.2rem; font-size: 1rem; text-align: center; }
.cart-summary__note { display: flex; align-items: center; gap: .4rem; justify-content: center; font-size: .72rem; color: #8fb2c4; margin: .9rem 0 0; }
.cart-summary__note svg { width: 14px; height: 14px; }
.cart-empty { text-align: center; padding: 3rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.cart-empty .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; margin: 0 auto 1rem; }
.cart-empty .icon svg { width: 28px; height: 28px; }
.cart-empty h1 { font-size: 1.6rem; }
.woocommerce-notices-wrapper .woocommerce-message, .woocommerce-notices-wrapper .woocommerce-error, .woocommerce-notices-wrapper .woocommerce-info { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.woocommerce-notices-wrapper .button { padding: .5rem .9rem; font-size: .8rem; }
.cart-item.cart_item .woocommerce-price-suffix { display: none; }

/* ---------- Checkout / account (base WooCommerce) ---------- */
/* ---------- Checkout (stesso impianto del carrello) ---------- */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 1.5rem; align-items: start; }
.checkout-layout > .woocommerce-NoticeGroup, .checkout-layout > .woocommerce-error, .checkout-layout > .woocommerce-info { grid-column: 1 / -1; }
.checkout-main { display: grid; gap: 1.2rem; min-width: 0; }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr; gap: 1.2rem; width: 100%; }
.woocommerce .checkout-layout .col2-set .col-1, .woocommerce .checkout-layout .col2-set .col-2, .woocommerce-page .checkout-layout .col2-set .col-1, .woocommerce-page .checkout-layout .col2-set .col-2 { width: auto; float: none; }
.checkout-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; }
.checkout-card:empty { display: none; }
.checkout-card h3 { font-size: 1.05rem; margin: 0 0 .9rem; }
.checkout-card h3 label { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; cursor: pointer; }
.woocommerce-checkout .form-row { margin: 0 0 .75rem; padding: 0; }
.woocommerce-checkout .form-row label { font-size: .78rem; font-weight: 700; color: var(--muted-fg); margin-bottom: .25rem; display: block; }
.woocommerce-checkout .form-row .required { color: var(--primary); text-decoration: none; }
.woocommerce-checkout .form-row .input-text, .woocommerce-checkout .form-row textarea, .woocommerce-checkout .select2-container .select2-selection--single { width: 100%; min-height: 44px; padding: .6rem .8rem; border: 1px solid var(--input); border-radius: var(--radius); background: #fff; font: inherit; }
.woocommerce-checkout .form-row textarea { min-height: 96px; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered { line-height: 28px; padding-left: 0; }
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow { height: 42px; }
.woocommerce-checkout .form-row .input-text:focus, .woocommerce-checkout .form-row textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22,168,200,.18); }
.woocommerce-checkout .form-row.woocommerce-invalid .input-text { border-color: var(--danger); }
.woocommerce form.checkout .form-row-first, .woocommerce form.checkout .form-row-last { width: calc(50% - .4rem); float: left; }
.woocommerce form.checkout .form-row-last { float: right; }
.woocommerce-checkout .form-row-wide { clear: both; }
.woocommerce-checkout .woocommerce-billing-fields__field-wrapper::after, .woocommerce-checkout .woocommerce-shipping-fields__field-wrapper::after { content: ""; display: table; clear: both; }
.woocommerce-checkout .woocommerce-form__label-for-checkbox { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--fg); text-transform: none; font-weight: 600; }
.woocommerce-checkout .woocommerce-form__label-for-checkbox input { width: 16px; height: 16px; accent-color: var(--teal); }
.woocommerce-checkout .woocommerce-additional-fields h3 { margin-top: 1.2rem; }
.checkout-perks { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .82rem; color: var(--muted-fg); padding: 0 .4rem; }
.checkout-perks span { display: inline-flex; align-items: center; gap: .45rem; }
.checkout-perks svg { width: 18px; height: 18px; color: var(--teal); }
/* Riquadro ordine: tabella prodotti, spedizione, totali e pagamento */
.checkout-summary .shop_table th, .checkout-summary .shop_table td { vertical-align: top; }
.checkout-summary .shop_table thead { display: none; }
.checkout-summary .shop_table .cart_item td.product-name { color: #cfe3ee; text-align: left; font-size: .86rem; line-height: 1.35; }
.checkout-summary .shop_table .cart_item .product-quantity { color: #8fb2c4; font-weight: 400; }
.checkout-summary .shop_table .cart_item .variation { display: block; margin: .2rem 0 0; font-size: .74rem; color: #8fb2c4; }
.checkout-summary .shop_table .cart_item .variation dt, .checkout-summary .shop_table .cart_item .variation dd { display: inline; margin: 0; float: none; padding: 0; }
.checkout-summary .shop_table .cart_item .variation p { display: inline; margin: 0; }
.checkout-summary .shop_table .cart_item td.product-total { white-space: nowrap; }
.checkout-summary .shop_table tfoot th { font-weight: 600; }
.checkout-summary .shop_table .cart-subtotal th, .checkout-summary .shop_table .cart-subtotal td { padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.18); }
.checkout-summary .woocommerce-shipping-methods li { display: flex; align-items: center; gap: .5rem; padding: .15rem 0; font-size: .86rem; }
.checkout-summary .woocommerce-shipping-methods label { color: #fff; }
.checkout-summary .woocommerce-shipping-methods input { accent-color: var(--primary); }
.woocommerce .checkout-summary #payment, .woocommerce-page .checkout-summary #payment { background: transparent; border-radius: 0; margin-top: 1rem; }
.checkout-summary #payment ul.payment_methods { list-style: none; margin: 0; padding: 0 0 .8rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.woocommerce .checkout-summary #payment ul.payment_methods li { padding: .55rem 0; line-height: 1.4; border: 0; font-size: .9rem; }
.checkout-summary #payment ul.payment_methods label { color: #fff; font-weight: 600; display: inline; padding-left: .2rem; }
.checkout-summary #payment ul.payment_methods input[type=radio] { accent-color: var(--primary); }
.woocommerce .checkout-summary #payment div.payment_box, .woocommerce-page .checkout-summary #payment div.payment_box { background: rgba(255,255,255,.08); color: #cfe3ee; font-size: .8rem; border-radius: var(--radius); margin: .5rem 0 0; padding: .8rem .9rem; }
.woocommerce .checkout-summary #payment div.payment_box::before, .woocommerce-page .checkout-summary #payment div.payment_box::before { border-bottom-color: rgba(255,255,255,.08); }
.checkout-summary #payment .woocommerce-notice, .checkout-summary #payment .woocommerce-info { background: rgba(255,255,255,.08); color: #cfe3ee; border: 0; border-radius: var(--radius); padding: .8rem .9rem; font-size: .84rem; margin: 0 0 .8rem; }
.woocommerce .checkout-summary #payment div.form-row.place-order, .woocommerce-page .checkout-summary #payment div.form-row.place-order { padding: 1rem 0 0; margin: 0; }
/* PayPal disegna i suoi pulsanti e il messaggio "paga in 3 rate" in nero, pensati per sfondo chiaro:
   dentro il riquadro ordine, che è blu scuro, sparivano. Gli diamo una zona bianca tutta loro. */
.checkout-summary .ppcp-messages,
.checkout-summary .ppc-button-wrapper,
.checkout-summary [id^="ppc-button"],
.checkout-summary .ppcp-button-apm { background: #fff; border-radius: var(--radius); }
.checkout-summary .ppcp-messages { padding: .5rem .7rem; margin: .2rem 0 .6rem; }
.checkout-summary .ppc-button-wrapper,
.checkout-summary [id^="ppc-button"] { padding: .5rem; }
.checkout-summary .ppc-button-wrapper [id^="ppc-button"] { padding: 0; }
.checkout-summary .woocommerce-terms-and-conditions-wrapper { font-size: .78rem; color: #8fb2c4; margin-bottom: .8rem; }
.checkout-summary .woocommerce-terms-and-conditions-wrapper a { color: #7fd6ea; }
.checkout-summary .woocommerce-privacy-policy-text p { margin: 0 0 .6rem; }
.woocommerce .checkout-summary #place_order, .woocommerce-page .checkout-summary #place_order { display: flex !important; justify-content: center; width: 100%; padding: .95rem 1.2rem; font-size: 1rem; }
.checkout-summary .blockUI.blockOverlay { border-radius: var(--radius-lg); }
@media (max-width: 900px) {
	.cart-layout { grid-template-columns: 1fr; }
	.cart-summary { position: static; }
	.cart-item { grid-template-columns: 72px 1fr; grid-template-areas: "media body" "qty price"; }
	.cart-item__media { grid-area: media; width: 72px; height: 72px; }
	.cart-item__body { grid-area: body; }
	.cart-item__qty { grid-area: qty; }
	.cart-item__price { grid-area: price; }
	.checkout-layout { grid-template-columns: 1fr; }
	.checkout-summary { position: static; }
	.woocommerce form.checkout .form-row-first, .woocommerce form.checkout .form-row-last { width: 100%; float: none; }
}

/* ---------- Carrello / checkout / account (base WooCommerce) ---------- */
.page-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; margin: 1rem 0 2rem; }
.page-wrap h1 { margin-bottom: 1.2rem; }
.woocommerce table.shop_table { border: 0; border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border: 0; border-bottom: 1px solid var(--muted); padding: .9rem .5rem; }
.woocommerce .button, .wc-block-components-button, .checkout-button { background: var(--primary) !important; color: #fff !important; border-radius: var(--radius) !important; font-weight: 700 !important; border: 0 !important; }
.woocommerce .button.alt:hover, .checkout-button:hover { background: var(--primary-2) !important; }
.wc-block-components-product-name, .wc-block-components-order-summary-item__description { font-weight: 600; }
.wc-block-cart, .wc-block-checkout { --wc-form-border-radius: var(--radius); }
.woocommerce-cart-form .product-remove a { color: var(--danger); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { padding: .7rem .9rem; border: 1px solid var(--input); border-radius: var(--radius); }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: .6rem .8rem; border-radius: .4rem; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--accent); color: var(--accent-fg); font-weight: 700; }

/* ---------- Pagine statiche (chi siamo, faq, spedizioni, legali...) ---------- */
.pagelayout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 3rem; }
.pagelayout__main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.4rem; }
.pagenav { position: sticky; top: 130px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1rem; }
.pagenav__lead { display: none; }
.pagenav__title { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-fg); margin: 1rem 0 .5rem; }
.pagenav__title:first-child { margin-top: 0; }
.pagenav ul { list-style: none; margin: 0 0 .2rem; padding: 0; display: grid; gap: .15rem; }
.pagenav a { display: flex; align-items: center; gap: .55rem; padding: .45rem .55rem; border-radius: .45rem; font-size: .85rem; }
.pagenav a:hover { background: var(--muted); color: var(--fg); }
.pagenav svg { width: 17px; height: 17px; color: var(--muted-fg); flex: none; }
.pagenav .current a { background: var(--accent); color: var(--accent-fg); font-weight: 700; }
.pagenav .current svg { color: var(--accent-fg); }

.pagehead { border-bottom: 1px solid var(--muted); padding-bottom: 1.4rem; margin-bottom: 1.8rem; }
.pagehead h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.pagehead__lead { font-size: 1.02rem; color: var(--muted-fg); max-width: 62ch; margin: 0; }
.pagesub { font-size: 1.3rem; margin: 2.2rem 0 1rem; display: flex; align-items: baseline; gap: .6rem; }
.pagesub__count { font-size: .8rem; font-weight: 600; color: var(--muted-fg); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin: 2.2rem 0 .7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.02rem; margin: 1.6rem 0 .4rem; }
.prose p, .prose li { font-size: .95rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: .45rem; }
.prose a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--primary); }
.prose .btn { text-decoration: none; color: #fff; }
.prose .btn:hover { color: #fff; }

.datatable { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: .9rem; }
.datatable th, .datatable td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--muted); }
.datatable thead th { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-fg); }
.datatable tbody th { font-weight: 600; }
.datatable .is-closed { color: var(--muted-fg); }

.factgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; margin: 1.6rem 0 2rem; }
.fact { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem; }
.fact .icon { width: 38px; height: 38px; border-radius: .6rem; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; margin-bottom: .7rem; }
.fact .icon svg { width: 20px; height: 20px; }
.fact strong { display: block; font-size: 1.05rem; }
.fact > span { display: block; font-size: .8rem; color: var(--muted-fg); margin-top: .2rem; }

.callout { display: flex; gap: .9rem; background: var(--accent); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; margin: 1.6rem 0; }
.callout .icon { color: var(--accent-fg); flex: none; }
.callout .icon svg { width: 22px; height: 22px; }
.callout strong { display: block; margin-bottom: .2rem; }
.callout p { margin: 0; font-size: .9rem; }
.callout--warn { background: #fff5e4; }
.callout--warn .icon { color: #a86a00; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.steps li { counter-increment: step; position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1rem 1.2rem 1rem 3.4rem; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .82rem; font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; margin-bottom: .15rem; }
.steps p { margin: 0; font-size: .9rem; color: var(--muted-fg); }
.steps a { color: var(--accent-fg); text-decoration: underline; text-underline-offset: 2px; }

.chipnav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.chipnav a { font-size: .8rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; background: var(--muted); color: var(--muted-fg); }
.chipnav a:hover { background: var(--accent); color: var(--accent-fg); }

.faqgroup { margin-bottom: 2.2rem; scroll-margin-top: 130px; }
.faqgroup h2 { font-size: 1.2rem; margin-bottom: .8rem; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .5rem; background: #fff; }
.faq summary { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: .85rem 1rem; cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-fg); }
.faq__chev { flex: none; color: var(--muted-fg); transition: transform .2s var(--ease); }
.faq[open] { border-color: var(--input); }
.faq[open] .faq__chev { transform: rotate(180deg); }
.faq__body { padding: 0 1rem 1rem; max-width: none; }
.faq__body p:last-child, .faq__body ul:last-child { margin-bottom: 0; }

.cards-accepted { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.cards-accepted > span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-fg); margin-right: .3rem; }
.paygrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; margin-bottom: 2rem; }
.paycard { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; }
.paycard .icon { width: 38px; height: 38px; border-radius: .6rem; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; margin-bottom: .7rem; }
.paycard .icon svg { width: 20px; height: 20px; }
.paycard strong { display: block; font-size: 1rem; }
.paycard p { font-size: .87rem; color: var(--muted-fg); margin: .4rem 0 .8rem; }
.paycard__meta { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: .3rem; border-top: 1px solid var(--muted); padding-top: .7rem; }
.paycard__meta li { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; }
.paycard__meta svg { width: 16px; height: 16px; color: var(--muted-fg); flex: none; }

.contactgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .9rem; margin-bottom: 2rem; }
.contactcard { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.2rem; background: #fff; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
a.contactcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.contactcard .icon { width: 38px; height: 38px; border-radius: .6rem; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; margin-bottom: .7rem; }
.contactcard .icon svg { width: 20px; height: 20px; }
.contactcard strong { display: block; font-size: 1rem; }
.contactcard > span { display: block; font-size: .82rem; color: var(--muted-fg); margin-top: .3rem; }
.sociallinks { display: flex; gap: .6rem; flex-wrap: wrap; }
.sociallinks a { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--border); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.sociallinks a:hover { border-color: var(--accent-fg); color: var(--accent-fg); }
.sociallinks svg { width: 17px; height: 17px; }

.formbox { margin: 0 0 1.4rem; padding: 1.1rem 1.2rem; background: var(--bg); border-left: 3px solid var(--primary); border-radius: 0 var(--radius) var(--radius) 0; font-size: .88rem; }
.formbox p:last-child { margin-bottom: 0; }

.sitemap { margin-bottom: 1.4rem; }
.sitemap__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.sitemap__col h3 { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-size: .95rem; padding-bottom: .4rem; border-bottom: 1px solid var(--muted); }
.sitemap__col h3 span { font-size: .72rem; font-weight: 600; color: var(--muted-fg); }
.sitemap__col ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .3rem; }
.sitemap__col a { display: flex; justify-content: space-between; gap: .5rem; font-size: .84rem; }
.sitemap__col a span { color: var(--muted-fg); font-size: .74rem; }
.sitemap__col a:hover { color: var(--accent-fg); }
.taglist { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.taglist a { display: inline-flex; align-items: baseline; gap: .35rem; font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; background: var(--muted); }
.taglist a span { font-size: .7rem; color: var(--muted-fg); }
.taglist a:hover { background: var(--accent); color: var(--accent-fg); }

.pagehelp { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; padding: 1.3rem; border-radius: var(--radius-lg); background: var(--accent); }
.pagehelp .icon { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.pagehelp p { margin: .1rem 0 0; font-size: .87rem; }
.pagehelp__actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- Motion ---------- */
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transition .6s; transition-property: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; } .reveal[data-delay="4"] { transition-delay: .32s; }
/* Le animazioni d'ingresso partono solo se il JS conferma che la pagina è visibile: senza JS o in background il contenuto resta leggibile. */
body.motion .hero__copy > * { animation: fadeUp .7s var(--ease) both; }
body.motion .hero__copy > *:nth-child(2) { animation-delay: .1s; } body.motion .hero__copy > *:nth-child(3) { animation-delay: .2s; } body.motion .hero__copy > *:nth-child(4) { animation-delay: .3s; } body.motion .hero__copy > *:nth-child(5) { animation-delay: .4s; }
.hero__card { animation: float 6s ease-in-out infinite; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; transition: all .3s var(--ease); z-index: 100; display: flex; gap: .8rem; align-items: center; font-size: .9rem; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: #7fd6ea; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.cat-grid, ul.products { grid-template-columns: repeat(3, 1fr); }
	.archive-layout ul.products { grid-template-columns: repeat(2, 1fr); }
	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { min-height: 260px; }
	.product-layout, .duo, .promo { grid-template-columns: 1fr; }
	.mega__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
	.header-main { grid-template-columns: auto 1fr auto; grid-template-areas: "logo . actions" "search search search"; gap: .8rem 1rem; padding: .7rem 16px; }
	.logo { grid-area: logo; }
	.header-actions { grid-area: actions; justify-self: end; gap: .9rem; }
	.site-search { grid-area: search; }
	.header-actions a span { display: none; }
	.topbar .container { justify-content: center; }
	.site-nav .container { padding: 0 16px; }
	.nav-all { width: 100%; justify-content: center; }
	.site-nav .mega__grid { grid-template-columns: 1fr; gap: 1rem; }
	.mega { max-height: 70vh; overflow-y: auto; }
	.cat-hero { padding: 1.6rem 1.4rem; }
	.cat-hero > svg, .cat-hero .icon { display: none; }
	.archive-bar { flex-direction: column; align-items: flex-start; gap: .6rem; }
	.hero__copy { padding: 3rem 20px 2rem; }
	.hero__stats { gap: 1.4rem; flex-wrap: wrap; }
	.section { padding: 2.4rem 0; }
	.promo { padding: 2rem 1.4rem; }
	.helpbox { padding: 1.6rem; flex-direction: column; }
	.product-layout { padding: 1.2rem; gap: 1.4rem; }
	.ptabs__panel { padding: 1.2rem; }
	.nav-links, .nav-offers { display: none; }
	.nav-burger { display: flex; }
	.cat-grid, ul.products, .archive-layout ul.products { grid-template-columns: repeat(2, 1fr); }
	.archive-layout { grid-template-columns: 1fr; }
	.filters { position: static; }
	.ptabs__panel.active { grid-template-columns: 1fr; }
	.pdetail form.cart { flex-wrap: wrap; }
	.hero__card { position: static; margin: 1rem; max-width: none; }
}
@media (max-width: 640px) {
	/* Versioni: etichetta sopra e pulsanti a tutta larghezza */
	.pdetail .variations, .pdetail .variations tbody, .pdetail .variations tr, .pdetail .variations th, .pdetail .variations td { display: block; width: 100%; }
	.pdetail .variations th { padding-bottom: .2rem; }
	.vswatch { padding: .6rem .8rem; font-size: .85rem; }
}
@media (max-width: 480px) {
	/* Due colonne anche sul telefono: card compatte */
	ul.products, .archive-layout ul.products { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
	.pcard { padding: .6rem; border-radius: .7rem; }
	.pcard__media { margin-bottom: .5rem; }
	.pcard__meta { font-size: .6rem; }
	.pcard__title { font-size: .78rem; min-height: 3.1em; margin-bottom: .3rem; }
	.pcard .recmar-stock { font-size: .68rem; margin: 0 0 .3rem; }
	.pcard__foot { padding-top: .5rem; }
	.pcard__price { font-size: .95rem; }
	.pcard__price small { display: none; }
	.pcard__add { width: 32px; height: 32px; }
	.pcard__add svg { width: 15px; height: 15px; }
	.topbar span:not(:first-child) { display: none; }
	.product-gallery { max-width: none; }
	.product-gallery .woocommerce-product-gallery__image img { max-height: 280px; }
}
@media (max-width: 1024px) {
	.product-gallery { max-width: 460px; margin: 0 auto; }
}

/* ---------- Mobile: niente scroll orizzontale ---------- */
/* Le colonne "1fr" non scendono sotto la larghezza del contenuto: minmax(0, 1fr) sì. clip non rompe l'header sticky. */
body { overflow-x: clip; }
.cat-tile, .pcard, .filters, .archive-layout > * { min-width: 0; }
@media (max-width: 1024px) {
	.cat-grid, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.archive-layout ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.cat-grid, ul.products, .archive-layout ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.archive-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
	.cat-grid { grid-template-columns: minmax(0, 1fr); }
	.cat-tile { padding: .9rem 1rem; }
}

/* ---------- Aggiungi al carrello dalle card ---------- */
/* WooCommerce inserisce "Visualizza carrello" accanto al bottone e sfonda la card: la conferma c'è già nel riquadro in basso. */
.pcard .added_to_cart { display: none !important; }
.pcard__add { position: relative; flex: none; }
.pcard__add svg { transition: opacity .15s; }
.pcard__add.loading { pointer-events: none; }
.pcard__add.loading svg, .pcard__add.added svg { opacity: 0; }
.pcard__add.loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.pcard__add.added { background: var(--ok); }
.pcard__add.added::after { content: ""; position: absolute; inset: 0; margin: auto; width: 13px; height: 7px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.toast { width: max-content; max-width: calc(100vw - 2rem); }
.toast a { white-space: nowrap; }
@media (max-width: 480px) {
	.toast { left: 1rem; right: 1rem; width: auto; max-width: none; justify-content: space-between; transform: translateY(20px); }
	.toast.show { transform: none; }
}

/* ---------- Menu mobile: hamburger e pannello laterale ---------- */
.nav-burger { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--border); border-radius: .6rem; background: #fff; color: var(--fg); cursor: pointer; }
.nav-burger svg { width: 22px; height: 22px; }
.mnav { display: none; }
@media (max-width: 768px) {
	.site-nav { display: none; }
	.nav-burger { display: flex; grid-area: burger; }
	.header-main { grid-template-columns: auto 1fr auto; grid-template-areas: "burger logo actions" "search search search"; }
	.logo { justify-self: start; }
	.mnav { display: block; position: fixed; inset: 0; z-index: 200; visibility: hidden; transition: visibility 0s linear .3s; }
	.mnav.is-open { visibility: visible; transition: none; }
	.mnav__overlay { position: absolute; inset: 0; background: rgba(8, 24, 38, .55); opacity: 0; transition: opacity .3s var(--ease); }
	.mnav.is-open .mnav__overlay { opacity: 1; }
	.mnav__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); background: #fff; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
	.mnav.is-open .mnav__panel { transform: none; }
	.mnav__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 16px; border-bottom: 1px solid var(--border); }
	.mnav__close { width: 40px; height: 40px; border: 0; border-radius: .6rem; background: var(--bg); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
	.mnav__close svg { width: 20px; height: 20px; }
	.mnav__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
	.mnav__link { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .95rem 16px; font-weight: 700; color: var(--fg); border-bottom: 1px solid var(--muted); }
	.mnav__link span { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--muted-fg); }
	.mnav__link--offer { color: var(--primary); }
	.mnav__link svg { width: 18px; height: 18px; }
	.mnav__group { border-bottom: 1px solid var(--muted); }
	.mnav__group summary { display: flex; align-items: center; gap: .7rem; padding: .7rem 16px; font-weight: 600; color: var(--fg); cursor: pointer; list-style: none; }
	.mnav__group summary::-webkit-details-marker { display: none; }
	.mnav__group summary > span.icon { width: 34px; height: 34px; border-radius: .55rem; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
	.mnav__group summary > span.icon svg { width: 18px; height: 18px; }
	.mnav__chev { width: 18px; height: 18px; margin-left: auto; color: var(--muted-fg); transition: transform .2s var(--ease); flex: none; }
	.mnav__group[open] summary { color: var(--accent-fg); }
	.mnav__group[open] .mnav__chev { transform: rotate(180deg); }
	.mnav__group ul { list-style: none; margin: 0; padding: 0 16px .5rem 57px; }
	.mnav__group li a { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem 0; font-size: .9rem; color: var(--fg); border-bottom: 1px dashed var(--muted); }
	.mnav__group li:last-child a { border-bottom: 0; }
	.mnav__group li a span { font-family: var(--mono); font-size: .7rem; color: var(--muted-fg); }
	.mnav__group li.mnav__all a { font-weight: 700; color: var(--accent-fg); }
	.mnav__group li.current a { color: var(--primary); font-weight: 700; }
	.mnav__foot { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .8rem 16px 1rem; border-top: 1px solid var(--border); background: var(--bg); }
	.mnav__foot a { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; font-weight: 600; font-size: .88rem; color: var(--fg); }
	.mnav__foot a svg { width: 18px; height: 18px; }
	.mnav__foot a .count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: #fff; font-size: .68rem; display: grid; place-items: center; }
	.mnav__foot p { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .4rem; margin: .1rem 0 0; font-size: .76rem; color: var(--muted-fg); }
	.mnav__foot p svg { width: 15px; height: 15px; }
	html.mnav-lock, html.mnav-lock body { overflow: hidden; }
}

/* ---------- Categoria sul telefono: filtri e ordinamento in una barra ---------- */
/* Su desktop niente cambia: il pannello è "display: contents", la sidebar resta dov'era. */
.filters-wrap { display: contents; }
.filters__scroll { display: contents; }
.filters-wrap__overlay, .filters__bar, .filters__foot { display: none; }
.archive-tools { display: flex; align-items: center; gap: .6rem; }
.tool-btn { display: none; }
.subcats-wrap { display: contents; }
.subcats-bar { display: none; }
.tool-btn__badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: #fff; font-family: var(--mono); font-size: .68rem; font-weight: 500; display: inline-grid; place-items: center; }

@media (max-width: 768px) {
	/* Barra appiccicata sotto l'header: i prodotti cominciano subito, i filtri restano a portata. */
	.archive-bar { position: sticky; top: var(--deck-hh, 112px); z-index: 40; flex-direction: row; align-items: center; gap: .5rem; margin: 0 -20px 1rem; padding: .5rem 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
	.archive-bar .woocommerce-result-count { display: none; }
	.archive-tools { flex: 1; gap: .5rem; }
	.tool-btn, .archive-bar .woocommerce-ordering { flex: 1 1 0; min-width: 0; margin: 0; }
	.tool-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 44px; padding: 0 .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--fg); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
	.tool-btn svg { width: 18px; height: 18px; color: var(--muted-fg); }
	.archive-bar .woocommerce-ordering select { width: 100%; height: 44px; padding: 0 1.5rem 0 .7rem; font-weight: 700; font-size: .85rem; color: var(--fg); text-overflow: ellipsis; }

	/* Pannello dei filtri: stesso impianto del menu (entra da sinistra, blocca lo scroll dietro). */
	.filters-wrap { display: block; position: fixed; inset: 0; z-index: 210; visibility: hidden; transition: visibility 0s linear .3s; }
	.filters-wrap.is-open { visibility: visible; transition: none; }
	.filters-wrap__overlay { display: block; position: absolute; inset: 0; background: rgba(8, 24, 38, .55); opacity: 0; transition: opacity .3s var(--ease); }
	.filters-wrap.is-open .filters-wrap__overlay { opacity: 1; }
	.filters { position: absolute; top: 0; bottom: 0; left: 0; width: min(90vw, 380px); max-height: none; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 0; overflow: hidden; box-shadow: var(--shadow-lg); transform: translateX(-100%); transition: transform .3s var(--ease); }
	.filters-wrap.is-open .filters { transform: none; }
	.filters__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 16px; border-bottom: 1px solid var(--border); }
	.filters__bar h3 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1rem; }
	.filters__bar svg { width: 18px; height: 18px; color: var(--muted-fg); }
	.filters__close { width: 40px; height: 40px; border: 0; border-radius: .6rem; background: var(--bg); color: var(--fg); display: grid; place-items: center; cursor: pointer; }
	.filters__close svg { width: 20px; height: 20px; }
	.filters__scroll { display: block; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .8rem 16px 1rem; }
	.filters__scroll .filters__head { margin-bottom: .2rem; }
	.filters__scroll .filters__head h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-fg); }
	.filters ul { max-height: 42vh; padding-right: .35rem; }
	.filters li { padding: .45rem 0; font-size: .9rem; }
	.filters li a::before { width: 18px; height: 18px; }
	.filters__foot { display: block; padding: .8rem 16px 1rem; border-top: 1px solid var(--border); background: var(--bg); }
	.filters__foot .btn { width: 100%; justify-content: center; }

	/* Famiglie: una riga sola che scorre di lato, invece di sei righe di chip. */
	.subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
	.subcats::-webkit-scrollbar { display: none; }
	.subcats a { scroll-snap-align: start; white-space: nowrap; padding: .6rem .85rem; font-size: .84rem; }
	/* Si vede che si scorre: sfumatura sul bordo e barretta sotto le chip. */
	.subcats-wrap { display: block; position: relative; margin-bottom: 1rem; }
	.subcats { margin: 0 -20px .5rem; padding: 0 20px 2px; }
	.subcats-wrap.is-scrollable.at-start .subcats { -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, #000 78%, transparent 100%); }
	.subcats-wrap.is-scrollable:not(.at-start):not(.at-end) .subcats { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 78%, transparent 100%); }
	.subcats-wrap.is-scrollable:not(.at-start).at-end .subcats { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%); mask-image: linear-gradient(90deg, transparent 0, #000 8%); }
	.subcats-bar { display: none; height: 3px; border-radius: 2px; background: var(--muted); }
	.subcats-wrap.is-scrollable .subcats-bar { display: block; }
	.subcats-bar span { display: block; height: 100%; border-radius: 2px; background: var(--teal); }


	/* Intestazione più bassa: il primo prodotto sale di un altro schermo. */
	.cat-hero { padding: 1.2rem 1.2rem; margin: .4rem 0 1rem; }
	.cat-hero h1 { font-size: 1.4rem; }
	.cat-hero p { font-size: .84rem; }
}

/* ---------- Negozio sul telefono: macro-aree compatte ---------- */
/* Solo nell'archivio (in home i riquadri restano grandi): otto righe intere rimandavano i prodotti troppo in basso. */
@media (max-width: 768px) {
	.cat-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	.cat-grid--compact .cat-tile { align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: .7rem; }
	.cat-grid--compact .cat-tile .icon { width: 34px; height: 34px; border-radius: .5rem; }
	.cat-grid--compact .cat-tile .icon svg { width: 18px; height: 18px; }
	.cat-grid--compact .cat-tile strong { font-size: .8rem; line-height: 1.25; }
	.cat-grid--compact .cat-tile > span > span { font-size: .68rem; }
	.cat-grid--compact .cat-tile .chev { display: none; }
}

/* ---------- Header sul telefono: la ricerca diventa un'icona quando si scorre ---------- */
/* Torna al suo posto (riga sotto il logo) al tocco dell'icona; in cima alla pagina ricompare da sola. */
.header-search-toggle { display: none; position: relative; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--fg); cursor: pointer; }
.header-search-toggle svg { width: 22px; height: 22px; }
/* Area toccabile più larga dell'icona, senza allargare il riquadro nel flex dell'header. */
.header-search-toggle::after { content: ""; position: absolute; inset: -10px; }
@media (max-width: 768px) {
	.header-actions { align-items: center; }
	.site-header.is-compact .header-search-toggle { display: inline-flex; width: 22px; height: 22px; }
	.site-header.is-compact.search-open .header-search-toggle { color: var(--accent-fg); }
	.site-header.is-compact:not(.search-open) .site-search { display: none; }
	.site-header.is-compact:not(.search-open) .header-main { row-gap: 0; }
}

/* ---------- Scheda prodotto sul telefono ---------- */
/* Il link "Cancella" di WooCommerce è nascosto con visibility: hidden e teneva 40px vuoti sotto le versioni. */
.pdetail .reset_variations[style*="hidden"] { display: none; }

/* Barra d'acquisto fissa: il pulsante vero resta comunque nella pagina, questo lo richiama. */
.buybar { display: none; }
@media (max-width: 768px) {
	.buybar { display: flex; align-items: center; gap: .7rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -14px rgba(8, 28, 46, .6); transform: translateY(130%); transition: transform .25s var(--ease); }
	.buybar.is-on { transform: none; }
	.buybar__price { font-weight: 800; font-size: 1.05rem; line-height: 1.15; white-space: nowrap; }
	.buybar__price del { font-size: .75rem; font-weight: 500; color: var(--muted-fg); margin-right: .25rem; }
	.buybar__price ins { text-decoration: none; }
	.buybar__btn { flex: 1; min-width: 0; justify-content: center; white-space: nowrap; font-size: .92rem; padding: .8rem .6rem; }
	.buybar.is-wait .buybar__btn { background: var(--navy-2); box-shadow: none; }
	.single-product .site-footer { padding-bottom: 76px; }

	/* Testa della scheda più bassa: briciole su una riga, niente cornice doppia, foto più corta */
	.breadcrumbs { white-space: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: .8rem 20px .3rem; }
	.breadcrumbs::-webkit-scrollbar { display: none; }
	.product-layout { padding: .9rem; gap: 1rem; }
	.product-gallery .woocommerce-product-gallery, .woocommerce div.product .product-gallery div.images { border: 0; padding: 0; }
	.product-gallery .woocommerce-product-gallery__image img { max-height: 230px; }
	.pdetail h1 { font-size: 1.25rem; margin-bottom: .6rem; }
	.pdetail .price { font-size: 1.6rem; margin-bottom: .7rem; }

	/* Quantità e pulsante sulla stessa riga, uguali sul prodotto semplice e su quello con le versioni */
	/* Solo la riga quantità+pulsante non va a capo: il form del prodotto variabile deve restare impilato
	   (tabella delle versioni sopra, pulsante sotto), altrimenti finiscono affiancati. */
	.pdetail form.cart { gap: .6rem; }
	.pdetail .woocommerce-variation-add-to-cart { flex-wrap: nowrap; gap: .6rem; }
	.pdetail .quantity, .pdetail .woocommerce-variation-add-to-cart .quantity { flex: none; width: 104px; }
	.pdetail .quantity input { width: 32px; }
	.pdetail .qty-btn { width: 36px; }
	.pdetail .single_add_to_cart_button { flex: 1 1 auto; min-width: 0; font-size: .92rem; padding: .8rem .6rem; white-space: nowrap; }
}
@media (max-width: 480px) {
	.product-gallery .woocommerce-product-gallery__image img { max-height: 230px; }
}

/* WooCommerce mette una sua spunta in ::before sugli avvisi e finiva sopra la prima lettera:
   il segnale qui è la barra colorata a sinistra. */
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { display: none; }

/* ---------- Pagine statiche e footer sul telefono ---------- */
@media (max-width: 1024px) {
	.footer__top { grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; }
	.footer__brand { grid-column: 1 / -1; }
	.pagelayout { grid-template-columns: 1fr; gap: 1rem; }
	/* L'indice diventa una nuvola di scorciatoie sopra il testo, senza i titoli dei gruppi. */
	.pagelayout__side { position: static; }
	.pagelayout__side { order: 2; }
	.pagenav { position: static; padding: .9rem; display: flex; flex-wrap: wrap; gap: .35rem; }
	.pagenav__lead { display: block; width: 100%; margin: 0 0 .2rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-fg); }
	.pagenav__title { display: none; }
	.pagenav ul { display: contents; }
	.pagenav a { white-space: nowrap; background: var(--muted); border-radius: 999px; padding: .35rem .8rem; }
	.pagenav svg { display: none; }
}
@media (max-width: 768px) {
	.pagelayout__main { padding: 1.3rem; border-radius: .8rem; }
	.pagehead { padding-bottom: 1rem; margin-bottom: 1.2rem; }
	.pagehead__lead { font-size: .95rem; }
	.prose h2 { font-size: 1.15rem; margin-top: 1.8rem; }
	.steps li { padding: .9rem 1rem .9rem 3rem; }
	.steps li::before { left: .8rem; top: .9rem; }
	.pagehelp { flex-direction: column; align-items: flex-start; }
	.pagehelp__actions { margin-left: 0; width: 100%; }
	.pagehelp__actions .btn { flex: 1; justify-content: center; }
	.datatable { font-size: .82rem; }
	.datatable th, .datatable td { padding: .5rem .4rem; }
	.mnav__help { display: flex; flex-wrap: wrap; gap: .3rem; width: 100%; margin-top: .2rem; }
	.mnav__help a { font-size: .78rem; padding: .3rem .7rem; border-radius: 999px; background: var(--muted); color: var(--muted-fg); }
	.footer__top { grid-template-columns: 1fr; gap: 1.4rem; text-align: left; }
	.footer__pay .container { flex-direction: column; gap: 1.2rem; }
	.footer__paycol--ship { text-align: left; }
	.footer__paycol--ship small { justify-content: flex-start; }
	.footer__bottom .container { flex-direction: column; gap: .4rem; }
	.footer__social { margin-top: 1rem; }
}

/* Prodotto con versioni: la tabella delle versioni e la riga quantità+pulsante sono due righe intere.
   Senza questo, in `form.cart` (flex) finivano affiancate e su desktop il pulsante restava largo 101px
   con la scritta su due righe. */
.pdetail form.cart { flex-wrap: wrap; }
.pdetail form.cart .variations, .pdetail form.cart .single_variation_wrap { flex: 1 0 100%; }
/* Novità: pallina NEW sulla card, voce di menu e carosello in home */
.pcard__new { position: absolute; top: .4rem; right: .4rem; z-index: 2; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: .6rem; font-weight: 800; letter-spacing: .04em; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(240, 100, 40, .45); }
.nav-new { display: flex; align-items: center; gap: .4rem; padding: 0 .5rem; font-weight: 700; color: var(--fg); }
.nav-new:hover { color: var(--primary); }
.nav-new__dot { background: var(--primary); color: #fff; font-size: .55rem; font-weight: 800; letter-spacing: .04em; padding: .2rem .35rem; border-radius: .3rem; }
.mnav__link--new { justify-content: flex-start; gap: .5rem; }
.eyebrow--new { color: var(--primary); }

.carousel { position: relative; margin: 0 -20px; padding: 0 20px; }
ul.products--carousel { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 0 8px; }
ul.products--carousel::-webkit-scrollbar { display: none; }
ul.products--carousel > li { flex: 0 0 260px; scroll-snap-align: start; }
.carousel__tools { display: flex; align-items: center; gap: .5rem; }
.carousel__btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .18s, color .18s, opacity .18s; }
.carousel__btn:hover { background: var(--navy); color: #fff; }
.carousel__btn[disabled] { opacity: .35; cursor: default; }
.carousel__btn[disabled]:hover { background: #fff; color: var(--navy); }
.carousel__btn .flip { transform: rotate(180deg); }
@media (max-width: 768px) {
	ul.products--carousel > li { flex: 0 0 72%; }
	.carousel__tools .carousel__btn { display: none; }
}

/* Categorie in home con la foto: tre riquadri grandi per le famiglie più popolose, gli altri a tessera */
.cat-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cat-photos--small { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 1rem; }
.catp { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: #fff; aspect-ratio: 16 / 10; box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.catp--lg { aspect-ratio: 4 / 3; }
.catp:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.catp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.catp:hover img { transform: scale(1.06); }
.catp::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 28, 46, .88) 0%, rgba(8, 28, 46, .45) 38%, rgba(8, 28, 46, 0) 72%); }
.catp__body { position: absolute; z-index: 2; left: 1rem; right: 1rem; bottom: .9rem; display: flex; flex-direction: column; gap: .15rem; }
.catp__body strong { font-size: 1rem; line-height: 1.25; text-shadow: 0 1px 12px rgba(8, 28, 46, .5); }
.catp--lg .catp__body { left: 1.4rem; right: 1.4rem; bottom: 1.3rem; }
.catp--lg .catp__body strong { font-size: 1.5rem; }
.catp__body > span { display: flex; align-items: center; gap: .4rem; font-size: .75rem; color: #cfe3ee; }
.catp__body .arrow { transition: transform .25s var(--ease); }
.catp:hover .catp__body .arrow { transform: translateX(4px); }
/* Hero: foto di sfondo, con il blu del tema che sfuma sopra il testo */
.hero__photo { position: absolute; inset: 0; }
.hero__visual::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--navy) 0%, rgba(8, 28, 46, .45) 20%, rgba(8, 28, 46, 0) 55%); }
.hero__waves, .hero__card { z-index: 2; }
@media (max-width: 1100px) {
	.cat-photos--small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.cat-photos { grid-template-columns: minmax(0, 1fr); }
	.cat-photos--small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-photos--small .catp { aspect-ratio: 4 / 3; }
	.catp--lg { aspect-ratio: 16 / 9; }
	.catp--lg .catp__body strong { font-size: 1.25rem; }
	.hero__visual::before { background: linear-gradient(180deg, rgba(8, 28, 46, .75) 0%, rgba(8, 28, 46, .15) 40%); }
}

/* Rollover leggibili anche sul grigio della pagina: ombra corta e densa invece di quella diffusa */
.pcard:hover, .catp:hover, .cat-tile:hover { box-shadow: 0 10px 22px -8px rgba(8, 28, 46, .45), 0 2px 6px rgba(8, 28, 46, .12); }
.pcard:hover { border-color: #b9cad7; }
.cat-tile:hover { border-color: #b9cad7; }
.catp:hover::after { background: linear-gradient(to top, rgba(8, 28, 46, .92) 0%, rgba(8, 28, 46, .5) 42%, rgba(8, 28, 46, .08) 80%); }
.catp:hover .catp__body > span { color: #fff; }

/* Striscia fotografica con la frase, fra le novità e la selezione dal catalogo */
.band { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); color: #fff; display: flex; align-items: center; min-height: 340px; box-shadow: var(--shadow); }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 28, 46, .92) 0%, rgba(8, 28, 46, .78) 38%, rgba(8, 28, 46, .12) 72%, rgba(8, 28, 46, 0) 100%); }
.band__copy { position: relative; z-index: 2; padding: 2.6rem 2.8rem; max-width: 600px; }
.band__copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); line-height: 1.15; margin: .2rem 0 .7rem; text-shadow: 0 2px 18px rgba(8, 28, 46, .45); }
.band__copy p { color: #cfe3ee; margin-bottom: 1.4rem; max-width: 430px; }
@media (max-width: 768px) {
	.band { min-height: 400px; align-items: flex-end; }
	.band::after { background: linear-gradient(180deg, rgba(8, 28, 46, .25) 0%, rgba(8, 28, 46, .55) 45%, rgba(8, 28, 46, .95) 100%); }
	.band__copy { padding: 1.6rem 1.4rem 1.8rem; }
	.band__copy h2 br { display: none; }
}

/* ---------- Marchio Bomber (footer e Credits) ---------- */
a.bomber { display: inline-flex; flex-direction: column; align-items: center; gap: .3em; font-size: 22px; color: inherit; text-decoration: none; line-height: 1; }
.bomber__mark { font-family: "Archivo Black", var(--font); font-weight: 400; letter-spacing: -.028em; line-height: .9; white-space: nowrap; }
.bomber__mark span, .bomber__payoff em { color: #ff4d3d; }
.bomber__payoff { font-size: max(8px, .36em); font-weight: 700; letter-spacing: .2em; text-indent: .2em; text-transform: uppercase; white-space: nowrap; }
.bomber__payoff em { font-style: normal; }
a.bomber:hover { color: inherit; opacity: .85; }
.prose a.bomber--page { font-size: 40px; margin: .4rem 0 1.4rem; color: var(--fg); }
.footer__credits { display: inline-flex; align-items: center; gap: .7rem; }
.footer__credits a.bomber { font-size: 17px; color: #fff; }
