/* ==========================================================================
   VB-NetLandia — Negozio, area Software e area clienti
   Estende il design system di site.css (glass, gradienti, motion).
   ========================================================================== */

:root {
    --ok: #10b981;
    --warn: #f59e0b;
    --bad: #ef4444;
    --info: #3b82f6;
    --tap: 44px;
}

.narrow { max-width: 860px; }
.small { font-size: 14px; }
.h3 { font-size: 22px; }
.link { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.link-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap);
    background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent-text);
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.inline-form { display: inline-flex; margin: 0; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn-icon { width: 52px; height: 52px; padding: 0; }
.btn .is-filled, .link-btn .is-filled { fill: var(--pink); color: var(--pink); }
.btn.is-disabled, .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-danger { color: #fff; background: #b91c1c; box-shadow: 0 10px 30px -10px rgba(185, 28, 28, .6); }
.btn-danger:hover { background: #991b1b; }
.icon-btn {
    width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 50%;
    background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); cursor: pointer;
    transition: background .3s, color .3s;
}
.icon-btn:hover { background: rgba(239, 68, 68, .15); color: var(--error-text); }
.page-hero-sm { padding-bottom: 30px; }
.page-hero-sm h1 { font-size: clamp(32px, 4.6vw, 54px); }

/* ---------- Pillole ---------- */
.pill svg { width: 14px; height: 14px; }
.pill-promo { background: linear-gradient(120deg, #be123c, #c026d3); color: #fff; border: 0; } /* bianco ≥ 5:1 */
.pill-dist { background: var(--glass-strong); border: 1px solid var(--glass-border); color: var(--text-2); }
.pill-edition { background: color-mix(in srgb, var(--accent, #8b5cf6) 18%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent, #8b5cf6) 40%, transparent); margin-top: 14px; }
.pill-new { background: rgba(16, 185, 129, .16); color: var(--success-text); border: 1px solid rgba(16, 185, 129, .4); vertical-align: middle; margin-left: 6px; }
.pill-xs { padding: 2px 8px; font-size: 11px; margin-left: 6px; }

/* ---------- Header: carrello e area clienti ---------- */
.shop-icon-btn {
    position: relative; width: var(--tap); height: var(--tap); border-radius: 50%;
    display: grid; place-items: center; flex-shrink: 0;
    background: var(--glass); border: 1px solid var(--glass-border); color: var(--text);
    transition: background .3s, transform .4s var(--ease);
}
.shop-icon-btn:hover { background: var(--glass-strong); transform: translateY(-2px); }
.shop-icon-btn:focus-visible { border-radius: 50%; }
.cart-count {
    position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; display: grid; place-items: center;
    font: 800 11px/1 var(--font); color: #fff;
    background: linear-gradient(120deg, #7c3aed, #be185d); box-shadow: 0 4px 12px rgba(190, 24, 93, .5);
}
.cart-count[hidden] { display: none; }
.cart-btn.bump .cart-count { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.45); } 60% { transform: scale(.9); } }

/* ---------- Barra promozionale ---------- */
.promo-banner {
    width: min(100%, 1260px); margin: 0 auto 8px; border-radius: 999px; overflow: hidden;
    background: linear-gradient(120deg, #4c1d95, #86198f 55%, #9a3412), var(--promo-img, none);
    background-size: cover; color: #fff; box-shadow: var(--shadow);
}
.promo-banner.is-hidden { display: none; }
.promo-inner { display: flex; align-items: center; gap: 14px; padding: 6px 8px 6px 18px; flex-wrap: wrap; font-size: 14px; }
.promo-badge { padding: 3px 10px; border-radius: 999px; background: #fff; color: #86198f; font-weight: 800; font-size: 13px; }
.promo-text { margin: 0; font-weight: 700; flex: 1; min-width: 180px; }
.promo-countdown { margin: 0; display: inline-flex; align-items: center; gap: 6px; opacity: .95; }
.promo-timer { font: 700 13px var(--font-mono); padding: 2px 8px; background: rgba(0, 0, 0, .25); border-radius: 8px; }
.promo-timer:empty { display: none; }
.promo-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); min-height: 36px; }
.promo-cta:hover { background: rgba(255, 255, 255, .28); }
.promo-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .2); color: #fff; display: grid; place-items: center; cursor: pointer; }
.promo-banner :focus-visible { outline-color: #fff; }
[data-motion="reduce"] .promo-timer { display: none; }

/* ---------- Toolbar catalogo ---------- */
.hero-perks { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; list-style: none; padding: 0; margin: 26px 0 0; color: var(--text-2); font-weight: 600; font-size: 15px; }
.hero-perks li { display: inline-flex; gap: 8px; align-items: center; }
.hero-perks svg { color: var(--accent-text); }
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 10px; border-radius: 28px; margin-bottom: 18px; }
.shop-toolbar .search { min-height: var(--tap); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sub { margin: 0 0 18px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px; min-height: var(--tap); padding: 0 16px;
    border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-2);
    background: var(--glass); border: 1px solid var(--glass-border); transition: background .3s, color .3s;
}
.chip svg { width: 16px; height: 16px; }
.chip-sm { min-height: 38px; font-size: 13px; }
.chip:hover { background: var(--glass-strong); color: var(--text); }
.chip.active { background: #a21caf; border-color: transparent; color: #fff; }
.chip:focus-visible { border-radius: 999px; }
.sort-form { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); padding-right: 6px; }
.sort-form select, .coupon-row input {
    min-height: var(--tap); padding: 0 14px; border-radius: 999px; font: inherit; font-size: 15px;
    background: var(--input-bg); color: var(--text); border: 1px solid var(--glass-border);
}
.shop-js [data-autosubmit-fallback] { display: none; }
.results-count { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.empty-state { text-align: center; padding: clamp(36px, 6vw, 70px) 24px; border-radius: var(--radius); }
.empty-state > svg { width: 54px; height: 54px; color: var(--accent-text); margin: 0 auto 14px; stroke-width: 1.4; }
.empty-state h2 { font-size: 26px; }

/* ---------- Card software e prodotti ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; list-style: none; padding: 0; margin: 0; }
.sw-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; }
.sw-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sw-icon {
    width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0; overflow: hidden;
    display: grid; place-items: center; color: #fff; font: 700 28px var(--font-display);
    background: linear-gradient(135deg, var(--accent, #8b5cf6), color-mix(in srgb, var(--accent, #8b5cf6) 45%, #000));
    box-shadow: 0 14px 30px -12px var(--accent, #8b5cf6), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.sw-icon img { width: 100%; height: 100%; object-fit: cover; }
.sw-icon svg { width: 28px; height: 28px; }
.sw-icon-lg { width: 88px; height: 88px; border-radius: 24px; font-size: 40px; }
.sw-icon-xl { width: min(280px, 60vw); height: min(280px, 60vw); border-radius: 64px; font-size: 120px; margin: auto; }
.sw-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.sw-title { font-size: 22px; margin: 0; }
.sw-title a::after, .product-title a::after { content: ""; position: absolute; inset: 0; }
.sw-title a:focus-visible, .product-title a:focus-visible { outline: none; }
.sw-tagline { color: var(--text-2); margin: 0 0 6px; }
.platforms { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.platforms li { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--glass-strong); color: var(--text-2); }
.platforms svg { width: 14px; height: 14px; }
.sw-card-foot { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sw-meta { display: flex; flex-direction: column; gap: 4px; }
.version { font: 600 13px var(--font-mono); color: var(--muted); }

.product-card { padding: 0; display: flex; flex-direction: column; }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: linear-gradient(135deg, #312e81, #86198f 55%, #b45309); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-media .placeholder, .product-main.placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .7); }
.product-media .placeholder svg { width: 60px; height: 60px; stroke-width: 1.2; }
.product-badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.product-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.product-title { font-size: 20px; margin: 6px 0 8px; }

/* ---------- Prezzi ---------- */
.price { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.price-now { font: 700 22px/1.1 var(--font-display); color: var(--text); }
.price-lg .price-now { font-size: clamp(34px, 4vw, 46px); }
.price-free { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .price-free { background-image: linear-gradient(120deg, #6d28d9, #a21caf); }
.price-old { color: var(--muted); font-size: .95em; }
.price-suffix { color: var(--text-2); font-weight: 700; }
.price-vat { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.offer-end { display: inline-flex; gap: 6px; align-items: center; color: var(--warn-text); font-weight: 700; font-size: 14px; margin: 6px 0 0; }

/* ---------- Stelle ---------- */
.stars { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.stars-track { position: relative; display: inline-block; color: var(--glass-border); letter-spacing: 2px; line-height: 1; }
[data-theme="light"] .stars-track { color: #d6cdee; }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #f59e0b; }
.stars-count { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Disponibilità (icona + testo, mai solo colore) ---------- */
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 10px 0; }
.stock-available { color: var(--success-text); }
.stock-low, .stock-backorder { color: var(--warn-text); }
.stock-out { color: var(--error-text); }

/* ---------- Scheda software ---------- */
.sw-hero { padding: calc(var(--header-h) + 60px) 0 40px; position: relative; }
.sw-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; }
.sw-hero h1 { font-size: clamp(40px, 6vw, 72px); margin: 18px 0 12px; }
.sw-hero-id { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sw-hero .hero-sub { margin-bottom: 20px; }
.sw-facts { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.sw-facts li { display: inline-flex; gap: 7px; align-items: center; }
.sw-hero-price { margin-bottom: 22px; }
.hero-actions { align-items: center; }
.hero-note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-top: 18px; max-width: 560px; }
.hero-note svg { margin-top: 3px; }
.sw-hero-visual { position: relative; display: grid; place-items: center; min-height: 320px; }
.sw-glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 65%); filter: blur(40px); }
.device { position: relative; padding: 12px; border-radius: 30px; max-width: 100%; transform: rotate(-3deg); animation: float 7s ease-in-out infinite; }
.device img { border-radius: 20px; max-height: 520px; width: auto; margin: auto; }

.sw-subnav { position: sticky; top: 92px; z-index: 30; width: min(100% - 32px, 980px); margin: 0 auto; border-radius: 999px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.sw-subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; justify-content: center; min-width: max-content; }
.sw-subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.sw-subnav a:hover, .sw-subnav a.active { background: var(--glass-strong); color: var(--text); }
.sw-section { padding: clamp(56px, 8vw, 96px) 0 0; scroll-margin-top: 150px; }
.sw-overview { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }
.sw-article, .sw-req { padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); }
.sw-article h2, .sw-req h2 { font-size: 28px; display: flex; gap: 10px; align-items: center; }
.sw-req .prose { font-size: 16px; }

.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.feature-card { padding: 26px; }
.feature-card h3 { font-size: 19px; }
.feature-card p { font-size: 15px; }

/* Video con consenso (nessuna richiesta a terzi prima del clic) */
.video-facade { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 26px; display: grid; }
.video-poster { grid-area: 1 / 1; background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 60%), linear-gradient(135deg, #1e1b4b, #4a044e); display: grid; place-items: center; }
.video-poster svg { width: 84px; height: 84px; color: rgba(255, 255, 255, .25); }
.video-consent { grid-area: 1 / 1; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.video-consent p { max-width: 560px; margin: 0; font-size: 14px; color: #e9e3ff; }
.video-consent a { color: #fff; text-decoration: underline; }
.video-facade iframe { grid-area: 1 / 1; width: 100%; height: 100%; border: 0; z-index: 2; }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 10; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .zoom { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; }

/* Lightbox (dialog nativo: focus intrappolato e Esc gestiti dal browser) */
.lightbox { width: min(96vw, 1280px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: #0b0716; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(5, 3, 12, .86); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; gap: 10px; padding: 16px 16px 12px; }
.lightbox img { max-height: 78vh; width: auto; margin: auto; border-radius: 12px; }
.lightbox figcaption { text-align: center; color: #e9e3ff; font-size: 15px; }
.lb-counter { position: absolute; top: 14px; left: 18px; margin: 0; font-size: 13px; color: #c4bddb; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(20, 12, 40, .8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: #7c3aed; }
.lb-btn:focus-visible { outline: 3px solid #e879f9; outline-offset: 2px; }
.lb-prev { left: -14px; top: 50%; translate: 0 -50%; }
.lb-next { right: -14px; top: 50%; translate: 0 -50%; }
.lb-close { right: -14px; top: -14px; }

/* Tabella prezzi */
.pricing-grid { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; max-width: 1100px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px; overflow: visible; }
.price-card h3 { font-size: 24px; margin: 0; }
.price-card.is-highlight { transform: translateY(-8px); border-color: transparent; }
.price-card-single { max-width: 480px; margin: 0 auto; }
.price-ribbon {
    position: absolute; top: -14px; left: 50%; translate: -50% 0; z-index: 2;
    padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: linear-gradient(120deg, #7c3aed, #c026d3); box-shadow: 0 8px 20px -6px rgba(192, 38, 211, .6);
}
.price-features { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 8px; flex: 1; }
.price-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.price-features svg { margin-top: 4px; color: var(--success-text); }
.price-features li.is-off { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.price-features li.is-off svg { color: var(--muted); }
.buy-form { display: grid; gap: 14px; }
.qty-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qty-field label { font-weight: 700; font-size: 14px; color: var(--text-2); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--glass-border); }
.qty input { width: 64px; min-height: var(--tap); text-align: center; border: 0; background: transparent; color: var(--text); font: 700 16px var(--font); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; border-radius: 8px; }
.qty-btn { width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.qty-btn:hover { background: var(--glass-strong); }
.qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.qty-btn:focus-visible { border-radius: 50%; }
/* Pulsanti +/- dei moduli "Aggiungi al carrello" (type=button): visibili solo con JavaScript */
html:not(.shop-js) .buy-form .qty-btn { display: none; }
.trust-row { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.trust-row li { display: inline-flex; gap: 8px; align-items: center; }
.trust-row svg { color: var(--success-text); }
.trust-compact { justify-content: flex-start; margin-top: 18px; gap: 8px 18px; font-size: 13px; }

/* Versioni */
.release-list { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 14px; max-width: 920px; }
.release { padding: 20px 24px; border-radius: var(--radius-sm); }
.release.is-latest { border-color: color-mix(in srgb, var(--accent, #8b5cf6) 50%, transparent); }
.release-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: center; }
.release-id h3 { font-size: 19px; margin: 0 0 4px; }
.release-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: 14px; }
.release-meta span { display: inline-flex; gap: 6px; align-items: center; }
.locked { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.sha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; }
.sha-label { font-weight: 800; color: var(--muted); letter-spacing: .06em; }
.sha code { font: 12.5px var(--font-mono); word-break: break-all; color: var(--text-2); background: var(--glass); padding: 4px 8px; border-radius: 8px; max-width: 100%; }
.download-ready .sha { justify-content: center; }
.copy-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px;
    font: 700 13px var(--font); color: var(--text); background: var(--glass-strong); border: 1px solid var(--glass-border); cursor: pointer;
}
.copy-btn:hover { background: #7c3aed; color: #fff; }
.copy-btn.copied { background: #047857; color: #fff; }
.changelog { margin-top: 12px; }
.changelog summary, .cancel-box summary { cursor: pointer; font-weight: 700; color: var(--accent-text); min-height: var(--tap); display: flex; align-items: center; }
.changelog .prose { font-size: 15.5px; padding: 6px 0 0; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: var(--radius-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-weight: 700; font-size: 17px; min-height: var(--tap); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { transition: transform .35s var(--ease); color: var(--accent-text); }
.faq[open] summary svg { transform: rotate(45deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.faq-answer { padding: 0 22px 20px; color: var(--text-2); white-space: pre-line; }

/* Recensioni */
.rating-summary { display: flex; justify-content: center; font-size: 20px; }
.rating-summary .stars { font-size: 22px; }
.review-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 14px; }
.review { padding: 20px 22px; border-radius: var(--radius-sm); }
.review-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.review-head > div { flex: 1; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand-grad); }
.verified { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; font-weight: 700; color: var(--success-text); }
.review-text { margin: 12px 0 0; color: var(--text-2); white-space: pre-line; }
.review-form { padding: clamp(22px, 4vw, 34px); border-radius: var(--radius); }
.review-form h3 { font-size: 22px; }
.star-input { border: 0; padding: 0; margin: 0 0 18px; }
.star-input legend { font-weight: 700; margin-bottom: 6px; }
.star-radios { display: inline-flex; gap: 2px; }
.star-radios input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-radios label { font-size: 34px; line-height: 1; cursor: pointer; color: var(--glass-border); padding: 4px; min-width: var(--tap); min-height: var(--tap); display: grid; place-items: center; transition: color .2s, transform .2s; }
[data-theme="light"] .star-radios label { color: #cfc5ea; }
.star-radios label:has(~ input:checked), .star-radios input:checked + label { color: #f59e0b; }
.star-radios:hover label { color: #f59e0b; }
.star-radios label:hover ~ input + label, .star-radios label:hover ~ label { color: var(--glass-border); }
.star-radios input:focus-visible + label { outline: 3px solid var(--focus); border-radius: 10px; }

/* ---------- Messaggi e moduli ---------- */
.alert-warn { background: rgba(245, 158, 11, .14); border: 1px solid rgba(245, 158, 11, .45); color: var(--warn-text); }
.alert svg { flex-shrink: 0; }
.alert.small { font-size: 14px; padding: 12px 14px; }
.error-summary { padding: 20px 22px; border-radius: var(--radius-sm); margin-bottom: 22px; border: 2px solid var(--error-text); background: rgba(239, 68, 68, .1); }
.error-summary h2, .error-summary h3 { font-size: 19px; color: var(--error-text); display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--error-text); text-decoration: underline; font-weight: 600; }
.error-summary:focus { outline: 3px solid var(--focus); outline-offset: 3px; }
.field-help { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.field-error:empty { display: none; }
.field [aria-invalid="true"] { border-color: var(--error-text); }
.field select + label { top: 7px; font-size: 12px; color: var(--accent-text); font-weight: 700; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--bg-2); color: var(--text); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); margin: 0 0 14px; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: #a21caf; flex-shrink: 0; cursor: pointer; }
.check label { cursor: pointer; }
.check a { color: var(--accent-text); text-decoration: underline; }
.check-error { margin: -8px 0 14px 34px; }
.success-icon { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; display: grid; place-items: center; color: #fff; background: var(--brand-grad); box-shadow: 0 16px 40px -14px rgba(217, 70, 239, .7); }
.success-icon svg { width: 34px; height: 34px; }
.download-ready h2 { font-size: 28px; }
.form-row-3 { grid-template-columns: 1fr 1.4fr 1.2fr; }
.field-password { position: relative; }
.pw-toggle { position: absolute; right: 8px; top: 8px; width: var(--tap); height: var(--tap); border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
html:not(.shop-js) .pw-toggle { display: none; }
.pw-meter { display: block; height: 5px; border-radius: 4px; background: var(--glass-strong); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--bad); transition: width .3s, background .3s; }
.pw-meter[data-level="2"] span { background: var(--warn); }
.pw-meter[data-level="3"] span, .pw-meter[data-level="4"] span { background: var(--ok); }

/* ---------- Scheda prodotto negozio ---------- */
.product-page { padding: calc(var(--header-h) + 60px) 0 20px; }
.product-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; margin-top: 10px; }
.product-main { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.product-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.thumbs a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); position: sticky; top: 110px; }
.product-info h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 8px 0 10px; }
.product-info .lead { color: var(--text-2); font-size: 17px; }
.rating-link { display: inline-flex; margin-bottom: 10px; }
.variant-picker { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.variant-picker legend { font-weight: 700; margin-bottom: 10px; }
.variant-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 52px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: var(--glass); cursor: pointer; transition: border-color .3s, background .3s; }
.variant-option:has(input:checked) { border-color: var(--focus); background: color-mix(in srgb, #a21caf 14%, transparent); }
.variant-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.variant-option input { accent-color: #a21caf; width: 20px; height: 20px; }
.variant-option .vo-name { flex: 1; font-weight: 700; }
.variant-option .vo-price { font-weight: 700; color: var(--text-2); }
.variant-option.is-out { opacity: .55; cursor: not-allowed; }
.product-price { margin: 18px 0 0; }
.buy-row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.buy-row .qty-field { flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- Passi dell'acquisto ---------- */
.steps { list-style: none; padding: 0; margin: 26px auto 0; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; counter-reset: s; }
.steps li { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); background: var(--glass); border: 1px solid var(--glass-border); }
.steps li > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); font-size: 13px; }
.steps li > span svg { width: 16px; height: 16px; }
.steps .is-current { color: var(--text); border-color: var(--focus); }
.steps .is-current > span { background: linear-gradient(120deg, #7c3aed, #c026d3); color: #fff; }
.steps .is-done { color: var(--success-text); }
.steps .is-done > span { background: #047857; color: #fff; }

/* ---------- Carrello ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.cart-lines { padding: 10px 24px 20px; border-radius: var(--radius); }
.cart-lines > ul { list-style: none; padding: 0; margin: 0; }
.cart-line { display: grid; grid-template-columns: 76px 1fr auto auto auto; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--glass-border); }
.cart-line.has-problem { background: linear-gradient(90deg, rgba(239, 68, 68, .08), transparent); }
.cl-thumb { width: 76px; height: 76px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; color: #fff; font: 700 30px var(--font-display); background: linear-gradient(135deg, var(--accent, #8b5cf6), color-mix(in srgb, var(--accent, #8b5cf6) 45%, #000)); }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cl-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-name { font-weight: 800; font-size: 17px; }
.cl-name:hover { color: var(--accent-text); }
.cl-variant { font-weight: 700; color: var(--text-2); font-size: 14px; }
.cl-type { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.cl-type svg { width: 14px; height: 14px; }
.cl-unit { font-size: 14px; color: var(--text-2); }
.cl-unit del { color: var(--muted); margin-right: 4px; }
.cl-problem { display: flex; gap: 6px; align-items: center; margin: 6px 0 0; color: var(--error-text); font-weight: 700; font-size: 14px; }
.cl-qty { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; }
.cl-qty-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cl-total { text-align: right; min-width: 96px; }
.cl-total strong { display: block; font: 700 18px var(--font-display); }
.cl-total small { color: var(--muted); font-size: 12px; }
.cl-remove { margin: 0; }
.cart-continue { margin: 18px 0 0; }
.cart-summary { padding: 26px; border-radius: var(--radius); position: sticky; top: 110px; }
.cart-summary h2, .checkout-summary h2 { font-size: 22px; }
.coupon-form { margin-bottom: 18px; }
.coupon-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; border-radius: 999px; }
.coupon-row input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 18px; background: rgba(16, 185, 129, .12); border: 1px dashed rgba(16, 185, 129, .5); color: var(--success-text); }
.coupon-applied span { display: inline-flex; gap: 8px; align-items: center; }
[data-cart-root][aria-busy="true"] { opacity: .6; transition: opacity .2s; }

/* Totali */
.totals { margin: 0 0 18px; display: grid; gap: 4px; }
.totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.totals dt { color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.totals dt small { color: var(--muted); font-size: 12px; }
.totals dd { margin: 0; font-weight: 700; white-space: nowrap; }
.totals-saving dt, .totals-saving dd { color: var(--success-text); }
.totals-hint dd { white-space: normal; font-weight: 600; font-size: 13px; color: var(--accent-text); display: flex; gap: 6px; align-items: center; }
.totals-vat dt, .totals-vat dd { font-size: 14px; color: var(--muted); }
.totals-grand { border-top: 1px solid var(--glass-border); margin-top: 6px; padding-top: 12px !important; }
.totals-grand dt { color: var(--text); font-weight: 800; font-size: 18px; }
.totals-grand dd { font: 700 26px var(--font-display); }
.free-tag { color: var(--success-text); }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.checkout-main { display: grid; gap: 20px; min-width: 0; }
.co-step { border-radius: var(--radius); padding: 30px clamp(20px, 3vw, 34px) 24px; margin: 0; min-width: 0; }
.co-step > legend {
    float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 0;
    font: 700 22px var(--font-display);
}
.co-step > legend + * { clear: both; }
.co-num { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 16px; color: #fff; background: linear-gradient(120deg, #7c3aed, #c026d3); }
.co-logged, .co-login { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.segmented { border: 0; padding: 4px; margin: 0 0 8px; display: inline-flex; flex-wrap: wrap; gap: 4px; border-radius: 999px; background: var(--input-bg); border: 1px solid var(--glass-border); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--text-2); cursor: pointer; transition: background .3s, color .3s; }
.segmented input:checked + label { background: #a21caf; color: #fff; }
.segmented input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
.segmented + .field-help { margin: 0 0 18px; }
.choice-group { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.choice-group > legend { font-weight: 700; margin-bottom: 10px; }
.choice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: var(--glass); cursor: pointer; transition: border-color .3s, background .3s; }
.choice:hover { background: var(--glass-strong); }
.choice:has(input:checked) { border-color: var(--focus); background: color-mix(in srgb, #a21caf 12%, transparent); }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice input { width: 20px; height: 20px; accent-color: #a21caf; flex-shrink: 0; }
.choice-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--glass-strong); flex-shrink: 0; }
.choice-body { flex: 1; display: grid; gap: 2px; }
.choice-body small { color: var(--muted); font-size: 13px; }
.choice-price { font-weight: 800; white-space: nowrap; }
.consents { margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--glass-border); }
.check-waiver { padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); }
.place-order { margin-top: 18px; display: grid; gap: 10px; }
.place-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; font-weight: 700; }
.place-total strong { font: 700 28px var(--font-display); }
.place-total small { color: var(--muted); }
.checkout-summary { position: sticky; top: 110px; }
.sticky-summary { padding: 26px; border-radius: var(--radius); }
.sticky-summary[aria-busy="true"] { opacity: .6; }
.summary-lines { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.summary-lines li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; }
.sl-thumb { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--accent, #8b5cf6), color-mix(in srgb, var(--accent, #8b5cf6) 45%, #000)); }
.sl-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.sl-qty { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; background: var(--bg-2); color: var(--text); border: 1px solid var(--glass-border); }
.sl-name { font-weight: 700; font-size: 15px; display: grid; }
.sl-amount { font-weight: 700; white-space: nowrap; }
.shop-js [data-checkout][data-customer-type="private"] [data-show="business"],
.shop-js [data-checkout][data-customer-type="business"] [data-show="private"],
.shop-js [data-checkout][data-customer-type="business"] [data-check="DigitalWaiver"],
.shop-js [data-checkout][data-customer-type="business"] #Input_DigitalWaiver-error,
.shop-js [data-country]:not([data-country="IT"]) [data-show-country="IT"],
.shop-js [data-ship-same="true"] [data-ship-address],
.shop-js [data-create-account="false"] [data-account-fields] { display: none; }

/* ---------- Pagamento e conferma ---------- */
.pay-card h2 { font-size: 26px; }
.pay-amount { font-size: 18px; }
.pay-amount strong { font: 700 30px var(--font-display); display: block; }
.pay-alt { margin: 26px 0 10px; padding-top: 18px; border-top: 1px solid var(--glass-border); display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.pay-alt p { width: 100%; margin: 0; }
.thanks-hero { position: relative; overflow: hidden; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.success-badge { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 32px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #7c3aed, #c026d3); box-shadow: 0 20px 50px -16px rgba(192, 38, 211, .8); }
.success-badge.is-paid { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 20px 50px -16px rgba(16, 185, 129, .8); animation: pop .9s var(--ease) both; }
.success-badge svg { width: 44px; height: 44px; }
@keyframes pop { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.1) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.bank-box { padding: 26px; border-radius: var(--radius); margin-bottom: 22px; border-color: rgba(245, 158, 11, .45); }
.bank-box h2 { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.bank-details { display: grid; gap: 10px; margin: 0 0 12px; }
.bank-details > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; align-items: baseline; }
.bank-details dt { color: var(--muted); font-weight: 700; }
.bank-details dd { margin: 0; }
.pre { white-space: pre-line; }
.next-steps { padding: 26px; border-radius: var(--radius); margin-top: 22px; }
.next-steps ol { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.next-steps li svg { color: var(--accent-text); margin-top: 4px; }

/* Ordine */
.order-view { display: grid; gap: 18px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 20px 24px; border-radius: var(--radius); }
.order-head > div { display: grid; }
.order-number { font: 700 26px var(--font-display); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; white-space: nowrap; border: 1px solid; }
.status svg { width: 15px; height: 15px; }
.status-success { color: var(--success-text); background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .4); }
.status-warn { color: var(--warn-text); background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); }
.status-error { color: var(--error-text); background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .4); }
.status-info { color: var(--text); background: rgba(59, 130, 246, .14); border-color: rgba(59, 130, 246, .45); }
.order-box { padding: 22px 24px; border-radius: var(--radius); }
.order-box h2 { font-size: 20px; }
.order-box address { font-style: normal; color: var(--text-2); }
.order-lines { list-style: none; padding: 0; margin: 0 0 16px; }
.order-lines > li { padding: 14px 0; border-bottom: 1px solid var(--glass-border); }
.ol-main { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ol-amount { font-weight: 700; text-align: right; }
.ol-amount small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.license-keys { margin-top: 12px; display: grid; gap: 8px; }
.lk-title { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 700; color: var(--accent-text); font-size: 14px; }
.license-key { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 10px 8px 14px; border-radius: 12px; background: var(--glass-strong); border: 1px dashed var(--glass-border); }
.license-key code { flex: 1; font: 700 15px var(--font-mono); letter-spacing: .06em; word-break: break-all; }
.ol-downloads { margin-top: 12px; }
.dl-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 16px; }
.dl-list li { display: flex; flex-direction: column; gap: 4px; }
.dl-note { font-size: 13px; margin: 8px 0 0; }
.order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.pay-line { display: flex; gap: 8px; align-items: center; font-weight: 700; margin-bottom: 4px; }
.tracking { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; }
.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--glass-border); display: grid; gap: 12px; }
.timeline li { position: relative; color: var(--text-2); font-size: 15px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand-grad); }
.timeline time { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- Recesso ---------- */
.info-steps { padding-left: 20px; display: grid; gap: 12px; color: var(--text-2); }

/* ---------- Area clienti ---------- */
.auth-wrap { max-width: 540px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.auth-row .check { margin: 0; }
.auth-switch { text-align: center; margin: 20px 0 0; color: var(--text-2); }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.account-nav { padding: 12px; border-radius: var(--radius); position: sticky; top: 110px; }
.account-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.account-nav a { display: flex; gap: 10px; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: 14px; font-weight: 600; color: var(--text-2); }
.account-nav a:hover { background: var(--glass); color: var(--text); }
.account-nav a.active { background: linear-gradient(120deg, #7c3aed, #a21caf); color: #fff; }
.account-logout { margin: 8px 0 0; padding: 8px 14px 0; border-top: 1px solid var(--glass-border); }
.account-main { display: grid; gap: 20px; min-width: 0; }
.account-card { padding: clamp(20px, 3vw, 30px); border-radius: var(--radius); }
.account-card h2 { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.account-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stat-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat-tile { display: grid; gap: 4px; padding: 20px; border-radius: var(--radius-sm); transition: transform .4s var(--ease); }
.stat-tile:hover { transform: translateY(-4px); }
.stat-tile svg { color: var(--accent-text); width: 24px; height: 24px; }
.stat-tile strong { font: 700 34px/1 var(--font-display); }
.stat-tile span { color: var(--text-2); font-weight: 600; font-size: 14px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th, .data-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--glass-border); vertical-align: middle; }
.data-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.data-table tbody th { font-weight: 700; }
.data-table .num { text-align: right; white-space: nowrap; }
.license-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.license-card { padding: 22px 24px; border-radius: var(--radius); }
.lc-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.lc-head > div { flex: 1; min-width: 200px; }
.lc-head h2 { font-size: 20px; margin: 0 0 4px; }
.lc-head .sw-icon { width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
.cancel-box { margin-top: 10px; }
.cancel-box form { padding-top: 10px; }
.wish-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.wish-remove { margin: 8px 0 0; }
.danger-zone { border-color: rgba(239, 68, 68, .45); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .sw-hero-grid, .sw-overview, .product-grid { grid-template-columns: 1fr; }
    .sw-hero-visual { min-height: 0; max-width: 520px; margin: 0 auto; }
    .cart-layout, .checkout { grid-template-columns: 1fr; }
    .cart-summary, .checkout-summary, .product-info, .account-nav { position: static; }
    .account-layout { grid-template-columns: 1fr; }
    .account-nav ul { display: flex; overflow-x: auto; gap: 4px; }
    .account-nav a { white-space: nowrap; }
}
@media (max-width: 700px) {
    .cart-line { grid-template-columns: 60px 1fr auto; grid-template-areas: "thumb info remove" "qty qty total"; }
    .cl-thumb { grid-area: thumb; width: 60px; height: 60px; }
    .cl-info { grid-area: info; }
    .cl-remove { grid-area: remove; }
    .cl-qty { grid-area: qty; flex-direction: row; justify-content: flex-start; }
    .cl-total { grid-area: total; }
    .form-row-3 { grid-template-columns: 1fr; }
    .shop-toolbar { border-radius: 22px; }
    .sw-subnav { top: 80px; border-radius: 18px; }
    .sw-subnav ul { justify-content: flex-start; }
    .bank-details > div { grid-template-columns: 1fr; gap: 2px; }
    .promo-banner { border-radius: 18px; }
    .lb-prev { left: 6px; } .lb-next { right: 6px; } .lb-close { right: 6px; top: 6px; }
    .price-card.is-highlight { transform: none; }
}
@media (max-width: 600px) {
    .sw-grid, .gallery { grid-template-columns: 1fr; }
    .nav-actions .shop-icon-btn { width: 40px; height: 40px; }
}

/* ---------- Movimento ridotto ---------- */
[data-motion="reduce"] .device, [data-motion="reduce"] .success-badge.is-paid { animation: none; transform: none; }
[data-motion="reduce"] .confetti { display: none; }
@media (prefers-reduced-motion: reduce) {
    html:not([data-motion="full"]) .confetti { display: none; }
    html:not([data-motion="full"]) .device { animation: none; }
}

/* ---------- Stampa (riepiloghi ordine) ---------- */
@media print {
    .site-header, .site-footer, .backdrop, .to-top, .account-nav, .order-actions, .next-steps .hero-actions, .promo-banner { display: none !important; }
    .glass { box-shadow: none; backdrop-filter: none; }
}
