/* =====================================================================
   Verlo — 3D, motion graphics & animazioni
   ===================================================================== */
@property --ry { syntax: "<angle>"; inherits: true; initial-value: -28deg; }
@property --rx { syntax: "<angle>"; inherits: true; initial-value: -8deg; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
    --ink: #0b221d;
    --ink-2: #12332b;
    --violet: #1e4a40;
    --cyan: #f7d774;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

.page-enter { animation: pageIn .6s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; } }

h1, h2, .face-ver, .stats-grid b { font-family: "Space Grotesk", Inter, sans-serif; }

/* ---------- Reveal on scroll (attivo solo con JS) ---------- */
.js [data-reveal] {
    opacity: 0;
    translate: 0 36px;
    filter: blur(6px);
    transition: opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s), filter .9s var(--ease-out) var(--d, 0s);
}
.js [data-reveal].in { opacity: 1; translate: 0 0; filter: none; }
.stagger > [data-reveal]:nth-child(4n+2) { --d: .08s; }
.stagger > [data-reveal]:nth-child(4n+3) { --d: .16s; }
.stagger > [data-reveal]:nth-child(4n+4) { --d: .24s; }

/* Split text (titolo hero) */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split-word > span { display: inline-block; translate: 0 110%; rotate: 6deg; transition: translate 1s var(--ease-out), rotate 1s var(--ease-out); transition-delay: calc(var(--i) * 60ms + .1s); }
.split-ready .split-word > span { translate: 0 0; rotate: 0deg; }

/* ---------- Topbar marquee ---------- */
.topbar { padding: 0; overflow: hidden; background: var(--ink); }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; padding: 9px 0; animation: marquee 32s linear infinite; }
.marquee-track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Header ---------- */
.site-header { transition: box-shadow .3s, background .3s; }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(15, 23, 42, .08); }
.logo-mark { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--violet), var(--cyan)); background-size: 200% 200%; animation: gradShift 6s ease infinite; }
.cart-btn { transition: transform .2s; }
.cart-btn:hover { transform: translateY(-2px); }
.cart-btn.bump { animation: bump .6s var(--ease-spring); }
.cart-count[hidden] { display: none; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.92) rotate(4deg); } }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary { color: #1a1405; background: linear-gradient(135deg, #f7c948, #f0b11d 55%, #d99a06); background-size: 160% 160%; box-shadow: 0 8px 24px rgba(240, 177, 29, .35); transition: background-position .5s, box-shadow .3s, transform .2s; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 12px 32px rgba(240, 177, 29, .5); }
.btn-shine::after { content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
.btn-shine:hover::after { animation-duration: 1.2s; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
[data-magnetic] { transition: transform .3s var(--ease-out), background-position .5s, box-shadow .3s; }

/* =====================================================================
   SCATOLA SOFTWARE 3D
   ===================================================================== */
.box3d { --w: 150px; --h: 200px; --d: 34px; position: relative; width: var(--w); height: var(--h); perspective: 1400px; }
.box3d-sm { --w: 128px; --h: 172px; --d: 28px; }
.box3d-md { --w: 190px; --h: 254px; --d: 42px; }
.box3d-lg { --w: 250px; --h: 334px; --d: 56px; }
.box3d-inner { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: --ry .9s var(--ease-out), --rx .9s var(--ease-out); }

.face { position: absolute; overflow: hidden; backface-visibility: hidden; }
.face-front, .face-back { inset: 0; border-radius: 4px 6px 6px 4px; }
.face-front {
    transform: translateZ(calc(var(--d) / 2));
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(255, 255, 255, .28), transparent 50%),
        radial-gradient(90% 70% at 0% 100%, rgba(0, 0, 0, .35), transparent 60%),
        linear-gradient(155deg, color-mix(in srgb, var(--c) 85%, #fff) 0%, var(--c) 40%, color-mix(in srgb, var(--c) 50%, #000) 100%);
    color: #fff; display: flex; flex-direction: column; padding: 13%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), inset 0 -40px 60px -30px rgba(0, 0, 0, .35);
}
.face-front::before { /* motivo geometrico */
    content: ""; position: absolute; right: -35%; bottom: -10%; width: 110%; aspect-ratio: 1; border-radius: 50%;
    border: calc(var(--w) * .07) solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 calc(var(--w) * .1) rgba(255, 255, 255, .05);
}
.face-icon { width: 24%; aspect-ratio: 1; padding: 5%; border-radius: 22%; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.face-icon svg { width: 100%; height: 100%; display: block; }
.face-brand { margin-top: auto; font-size: calc(var(--w) * .085); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.face-ver { font-size: calc(var(--w) * .3); font-weight: 700; line-height: .95; letter-spacing: -.04em; text-shadow: 0 4px 20px rgba(0, 0, 0, .25); }
.face-ed { font-size: calc(var(--w) * .075); font-weight: 600; opacity: .92; min-height: 1.3em; }
.face-tag { margin-top: 10%; font-size: calc(var(--w) * .055); font-weight: 600; padding: 3% 6%; border-radius: 99px; background: rgba(0, 0, 0, .25); align-self: flex-start; white-space: nowrap; }
.face-shine { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 45%, transparent 60%); translate: -120% 0; animation: faceShine 6s ease-in-out infinite; animation-delay: var(--shine-delay, 0s); pointer-events: none; }
@keyframes faceShine { 0%, 70% { translate: -120% 0; } 100% { translate: 120% 0; } }

.face-back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 40%, #111), #0b0f1a); color: rgba(255, 255, 255, .75); font-size: calc(var(--w) * .07); padding: 14%; display: flex; align-items: flex-end; }
.face-right, .face-left { top: 0; height: var(--h); width: var(--d); left: calc((var(--w) - var(--d)) / 2); display: flex; align-items: center; justify-content: center; }
.face-right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #000), color-mix(in srgb, var(--c) 45%, #000)); }
.face-left  { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: color-mix(in srgb, var(--c) 40%, #000); }
.face-right span, .face-left span { writing-mode: vertical-rl; color: rgba(255, 255, 255, .85); font-weight: 700; font-size: calc(var(--d) * .32); letter-spacing: .06em; white-space: nowrap; }
.face-top, .face-bottom { left: 0; width: var(--w); height: var(--d); top: calc((var(--h) - var(--d)) / 2); }
.face-top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 75%, #fff), color-mix(in srgb, var(--c) 90%, #fff)); }
.face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: color-mix(in srgb, var(--c) 30%, #000); }

.box3d-shadow { position: absolute; left: 8%; right: -4%; bottom: calc(var(--h) * -.14); height: calc(var(--h) * .1); border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 23, 42, .45), transparent); filter: blur(6px); }
.floating { animation: floatY 6s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
.floating .box3d-shadow { animation: shadowPulse 6s ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
@keyframes floatY { 50% { translate: 0 -14px; } }
@keyframes shadowPulse { 50% { scale: .82; opacity: .6; } }

/* ---------- Card prodotto ---------- */
.product-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
    transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
    transition: transform .5s var(--ease-out), box-shadow .4s, opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s), filter .9s var(--ease-out) var(--d, 0s);
}
.product-card::after { /* spotlight che segue il mouse */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 177, 29, .16), transparent 45%);
}
.product-card:hover { box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .3); }
.product-card:hover::after { opacity: 1; }
.product-stage {
    position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; overflow: hidden; text-decoration: none !important;
    background: radial-gradient(60% 60% at 50% 45%, color-mix(in srgb, var(--c) 28%, #fff), color-mix(in srgb, var(--c) 6%, #f4f6fb) 70%);
}
.stage-grid { position: absolute; left: -50%; right: -50%; bottom: -30%; height: 70%; transform: perspective(300px) rotateX(62deg);
    background-image: linear-gradient(color-mix(in srgb, var(--c) 25%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c) 25%, transparent) 1px, transparent 1px);
    background-size: 32px 32px; mask-image: linear-gradient(to top, #000 10%, transparent 90%); animation: gridMove 4s linear infinite; }
@keyframes gridMove { to { background-position: 0 32px; } }
.product-stage .box3d { translate: 0 -4px; }
.product-card:hover .box3d-inner { --ry: -6deg; --rx: -2deg; }
.product-card:hover .box3d { animation: floatY 2.4s ease-in-out infinite; }
.product-card .badge-off { position: absolute; top: 14px; right: 14px; z-index: 2; background: #fff; color: var(--danger); font-weight: 800; font-size: .85rem; border-radius: 999px; padding: 4px 11px; box-shadow: 0 4px 14px rgba(220, 38, 38, .2); animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 85%, 100% { rotate: 0deg; } 90% { rotate: -8deg; } 95% { rotate: 6deg; } }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat, .kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.kicker { display: inline-block; margin-bottom: 8px; }
.product-body h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.product-body h3 a { color: var(--text); }
.product-body .muted { font-size: .9rem; margin: 0 0 16px; }

/* ---------- Pagina prodotto ---------- */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; margin-bottom: 48px; align-items: center; }
.detail-stage {
    position: relative; display: grid; place-items: center; min-height: 520px; border-radius: 28px; overflow: hidden;
    background: radial-gradient(60% 60% at 50% 40%, color-mix(in srgb, var(--c) 30%, #fff), color-mix(in srgb, var(--c) 8%, #eef2f8) 75%);
    border: 1px solid var(--border);
}
.detail-stage .badge-off { position: absolute; top: 20px; right: 20px; z-index: 2; background: #fff; color: var(--danger); font-weight: 800; border-radius: 999px; padding: 6px 14px; }
.blob-stage { width: 60%; aspect-ratio: 1; background: var(--c); opacity: .35; left: 20%; top: 15%; }
.drag-zone { position: relative; z-index: 1; padding: 40px 60px; cursor: grab; touch-action: pan-y; user-select: none; }
.drag-zone.dragging { cursor: grabbing; }
.drag-zone .box3d-inner { animation: sway 9s ease-in-out infinite alternate; }
.drag-zone.manual .box3d-inner { animation: none; transition: none; }
@keyframes sway { 0% { --ry: -38deg; --rx: -10deg; } 50% { --ry: -10deg; --rx: -4deg; } 100% { --ry: 20deg; --rx: -8deg; } }
.drag-hint { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; font-size: .82rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .7); backdrop-filter: blur(6px); padding: 6px 14px; border-radius: 99px; animation: hintPulse 2.4s ease-in-out infinite; }
@keyframes hintPulse { 50% { opacity: .5; } }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 96px 0 140px; isolation: isolate; }
.hero-photo { position: absolute; inset: -30% 0 0; background-size: cover; background-position: center; opacity: .38; z-index: -3; will-change: transform; }
.hero-overlay { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, var(--ink) 15%, rgba(11, 34, 29, .6) 55%, rgba(11, 34, 29, .2)), linear-gradient(0deg, var(--ink), transparent 40%); }
.hero-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; animation: blob 18s ease-in-out infinite alternate; pointer-events: none; }
.blob-1 { width: 520px; height: 520px; background: #f0b11d; opacity: .22; top: -160px; right: 5%; }
.blob-2 { width: 420px; height: 420px; background: #1e7a63; opacity: .5; bottom: -160px; left: -80px; animation-delay: -6s; }
.blob-3 { width: 300px; height: 300px; background: var(--cyan); opacity: .14; top: 40%; right: 30%; animation-delay: -12s; }
@keyframes blob { 33% { transform: translate(60px, -40px) scale(1.1); } 66% { transform: translate(-40px, 50px) scale(.92); } 100% { transform: translate(30px, 20px) scale(1.05); } }

.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin-bottom: 22px; }
.grad-text { background: linear-gradient(90deg, #f7d774, #f0b11d, #ffe9a8, #f7d774); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s linear infinite; }
@keyframes gradShift { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.hero .lead { color: #cbd5e1; max-width: 540px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 6px 16px; font-size: .85rem; margin-bottom: 22px; backdrop-filter: blur(8px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-mini { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; color: #94a3b8; font-size: .92rem; }
.hero-mini b { color: #fff; font-size: 1.1rem; }
.hero-mini .sep { width: 4px; height: 4px; border-radius: 50%; background: #475569; }

/* Scena 3D */
.hero-scene { position: relative; height: 520px; perspective: 1600px; }
.scene-item { position: absolute; display: block; transition: transform .6s var(--ease-out); will-change: transform; }
.scene-item-0 { left: 2%; top: 22%; --float-delay: -1.5s; --shine-delay: 1s; }
.scene-item-1 { left: 32%; top: 6%; z-index: 2; --float-delay: 0s; --shine-delay: 0s; }
.scene-item-2 { right: 0; top: 40%; --float-delay: -3s; --shine-delay: 2s; }
.scene-item-0 .box3d-inner { --ry: 28deg; --rx: -6deg; }
.scene-item-1 .box3d-inner { --ry: -18deg; --rx: -10deg; }
.scene-item-2 .box3d-inner { --ry: -36deg; --rx: -4deg; }
.scene-item:hover .box3d-inner { --ry: 0deg; --rx: 0deg; }
.hero .box3d-shadow { background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); }
.scene-ring { position: absolute; left: 50%; top: 58%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; border: 1px dashed rgba(148, 163, 184, .35); transform: rotateX(74deg); animation: ringSpin 30s linear infinite; }
.scene-ring-2 { width: 380px; height: 380px; margin: -190px 0 0 -190px; border: 2px solid transparent; border-top-color: rgba(240, 177, 29, .9); border-right-color: rgba(247, 215, 116, .4); animation-duration: 8s; animation-direction: reverse; filter: drop-shadow(0 0 8px #f0b11d); }
@keyframes ringSpin { to { transform: rotateX(74deg) rotateZ(360deg); } }
.scene-chip { position: absolute; z-index: 3; padding: 10px 16px; border-radius: 14px; font-size: .88rem; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .6s var(--ease-out); white-space: nowrap; }
.chip-1 { left: 0; top: 4%; animation: floatY 5s ease-in-out infinite; }
.chip-2 { right: 4%; bottom: 6%; animation: floatY 7s ease-in-out infinite -2s; }

.scroll-hint { position: absolute; left: 50%; bottom: 80px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

/* ---------- Numeri ---------- */
.stats-band { position: relative; z-index: 3; margin-top: -64px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .85); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 30px 60px -25px rgba(15, 23, 42, .25); padding: 0; }
.stats-grid > div { display: grid; padding: 26px 24px; text-align: center; }
.stats-grid > div + div { border-left: 1px solid var(--border); }
.stats-grid b { font-size: 2.3rem; line-height: 1.1; background: linear-gradient(135deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-grid span { color: var(--muted); font-size: .9rem; font-weight: 500; }

/* ---------- Categorie con foto ---------- */
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cat-card { position: relative; display: block; min-height: 340px; border-radius: 24px; overflow: hidden; color: #fff; text-decoration: none !important; isolation: isolate;
    transform: perspective(1000px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease-out), opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s), filter .9s var(--ease-out) var(--d, 0s); }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--ease-out); }
.cat-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 34, 29, .92) 10%, rgba(11, 34, 29, .2) 70%); }
.cat-card:hover img { scale: 1.08; }
.cat-content { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; }
.cat-content .product-cat { color: #f7d774; }
.cat-content h2 { margin: 6px 0 4px; font-size: 2rem; }
.cat-content p { color: #cbd5e1; margin: 0 0 14px; }
.cat-link { font-weight: 700; display: inline-flex; gap: 6px; transition: gap .3s; }
.cat-card:hover .cat-link { gap: 14px; }

/* ---------- Per chi è ---------- */
.section-dark { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: -350px; translate: -50% 0; background: radial-gradient(closest-side, rgba(240, 177, 29, .35), transparent); pointer-events: none; }
.audience-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 36px; }
.audience-card { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; isolation: isolate; }
.audience-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1.2s var(--ease-out), filter .6s; filter: saturate(.85); }
.audience-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11, 34, 29, .95) 5%, rgba(11, 34, 29, 0) 60%); transition: opacity .5s; }
.audience-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; translate: 0 38px; transition: translate .6s var(--ease-out); }
.audience-text h3 { font-size: 1.3rem; margin-bottom: 6px; }
.audience-text p { margin: 0; color: #cbd5e1; font-size: .9rem; opacity: 0; transition: opacity .5s; }
.audience-card:hover img { scale: 1.1; filter: saturate(1.1); }
.audience-card:hover .audience-text { translate: 0 0; }
.audience-card:hover .audience-text p { opacity: 1; }

/* ---------- Come funziona ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.how-photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -30px rgba(15, 23, 42, .4); }
.how-photo img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.how-badge { position: absolute; left: 24px; bottom: 24px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px); font-weight: 600; line-height: 1.3; animation: floatY 5s ease-in-out infinite; }
.how-badge b { font-family: "Space Grotesk"; font-size: 2rem; color: var(--accent); }
.timeline { position: relative; margin-top: 28px; display: grid; gap: 26px; }
.timeline-line { position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--border); }
.timeline-line span { position: absolute; inset: 0; background: linear-gradient(var(--primary), var(--violet)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: flex; gap: 20px; align-items: flex-start; }
.step > span { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #fff; border: 2px solid var(--border); color: var(--accent); font-weight: 800; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease-spring); }
.step.active > span { background: linear-gradient(135deg, var(--primary), var(--violet)); color: #fff; border-color: transparent; transform: scale(1.08); box-shadow: 0 8px 20px rgba(240, 177, 29, .35); }
.step h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.step p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { transition: border-color .3s, box-shadow .3s; }
.faq:hover { border-color: #f5d98a; }
.faq[open] { box-shadow: 0 10px 30px -15px rgba(240, 177, 29, .35); border-color: #f5d98a; }
.faq summary::after { transition: rotate .3s var(--ease-out); }
.faq[open] summary::after { content: "+"; rotate: 45deg; }
.faq[open] .faq-body { animation: faqOpen .5s var(--ease-out); }
@keyframes faqOpen { from { opacity: 0; translate: 0 -8px; } }
.faq-body p { margin: 0 0 16px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; padding: 110px 0; color: #fff; text-align: center; background: var(--ink); isolation: isolate; }
.cta-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .5; z-index: -2; animation: kenburns 24s ease-in-out infinite alternate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 50% 50%, rgba(11, 34, 29, .4), rgba(11, 34, 29, .92)); }
@keyframes kenburns { to { transform: scale(1.15) translate(-2%, -2%); } }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-inner p { color: #cbd5e1; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; margin-top: 0; }
.footer-glow { position: absolute; width: 600px; height: 300px; left: -100px; top: -150px; background: radial-gradient(closest-side, rgba(240, 177, 29, .18), transparent); animation: blob 20s ease-in-out infinite alternate; }

/* ---------- Toast & fly-to-cart ---------- */
.toast-zone { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; max-width: 360px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); animation: toastIn .5s var(--ease-spring); }
.toast.out { animation: toastOut .4s ease forwards; }
.toast-icon { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: #22c55e; font-weight: 800; }
.toast.error .toast-icon { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; translate: 40px 0; scale: .9; } }
@keyframes toastOut { to { opacity: 0; translate: 40px 0; } }
.fly-item { position: fixed; z-index: 200; width: 46px; height: 60px; border-radius: 6px; pointer-events: none; background: linear-gradient(155deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }

/* ---------- Ordine: successo ---------- */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; }
.success-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 16px; }
.success-icon svg { width: 100%; height: 100%; stroke: var(--success); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.success-icon circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.8s var(--ease-out) .2s forwards; fill: #dcfce7; fill-opacity: 0; }
.success-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease-out) .9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; fill-opacity: 1; } }
.license { transition: border-color .3s, background .3s; }
.license:hover { border-color: var(--primary); background: #fff8e6; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-inner, .product-detail, .how-grid { grid-template-columns: 1fr; }
    .hero { padding: 64px 0 120px; }
    .hero-scene { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .how-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
    .hero-scene { height: 340px; transform: scale(.78); transform-origin: top center; margin-bottom: -60px; }
    .scene-ring { width: 360px; height: 360px; margin: -180px 0 0 -180px; }
    .scroll-hint { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid > div:nth-child(3) { border-left: 0; }
    .stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
    .cat-grid { grid-template-columns: 1fr; }
    .cat-card { min-height: 280px; }
    .audience-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .audience-text { translate: 0 0; padding: 14px; }
    .audience-text p { display: none; }
    .detail-stage { min-height: 420px; }
    .box3d-lg { --w: 200px; --h: 268px; --d: 46px; }
}

/* ---------- Accessibilità: niente animazioni se richiesto ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-reveal] { opacity: 1; translate: none; filter: none; }
    .split-word > span { translate: none; rotate: none; }
}

/* Le card con tilt mantengono sia la transizione di reveal che quella del transform */
.js .product-card[data-reveal], .js .cat-card[data-reveal] {
    transition: transform .5s var(--ease-out), box-shadow .4s, opacity .9s var(--ease-out) var(--d, 0s), translate .9s var(--ease-out) var(--d, 0s), filter .9s var(--ease-out) var(--d, 0s);
}
.site-footer .footer-bottom a { display: inline; margin: 0; }
