/* ============================================================
   SOCIAL GAME ACIREALE - Arcade Night Edition
   Palette: notte profonda + neon arancio / ciano / magenta
   Font: Press Start 2P (display pixel) · Orbitron (titoli)
         Space Grotesk (body)
   ============================================================ */

/* ==================== TOKENS ==================== */
:root {
    /* superficie - blu notte profondo, mai nero piatto */
    --bg-0: #06091a;
    --bg-1: #0b1230;
    --bg-2: #101a42;
    --card: rgba(18, 26, 62, 0.72);
    --card-solid: #131c40;

    /* neon */
    --orange: #ff7a1a;
    --orange-soft: #ffab63;
    --cyan: #00d4ff;
    --magenta: #ff3ec8;
    --green: #2bff9e;
    --gold: #ffcf3f;

    /* testi */
    --ink: #eef2ff;
    --ink-dim: #9aa7d4;
    --ink-faint: #5c6a9c;

    /* bordi / linee */
    --line: rgba(120, 150, 255, 0.16);
    --line-hot: rgba(255, 122, 26, 0.55);

    /* glow */
    --glow-orange: rgba(255, 122, 26, 0.45);
    --glow-cyan: rgba(0, 212, 255, 0.4);
    --glow-magenta: rgba(255, 62, 200, 0.35);

    /* font */
    --font-pixel: 'Press Start 2P', monospace;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;

    /* z-index scale */
    --z-bg: 0;
    --z-sprites: 2;
    --z-content: 3;
    --z-header: 100;
    --z-cursor: 900;
    --z-loader: 1000;

    --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-0);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    /* griglia arcade globale + nebbia di colore ambientale */
    background-image:
        radial-gradient(ellipse 80% 55% at 15% -5%, rgba(0, 212, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 70% 50% at 85% 15%, rgba(255, 122, 26, 0.09), transparent 60%),
        radial-gradient(ellipse 60% 45% at 50% 110%, rgba(255, 62, 200, 0.07), transparent 60%),
        linear-gradient(rgba(110, 140, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 140, 255, 0.045) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
    background-attachment: fixed;
}

::selection {
    background: var(--orange);
    color: var(--bg-0);
}

/* scanline CRT + vignettatura - molto sottili, atmosfera da schermo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: var(--z-cursor);
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.022) 0 1px,
        transparent 1px 3px
    );
    mix-blend-mode: overlay;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
    background: radial-gradient(ellipse 120% 100% at 50% 45%, transparent 62%, rgba(3, 5, 14, 0.55) 100%);
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2rem;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* ==================== LOADER - BOOT ARCADE ==================== */
.loader {
    position: fixed;
    inset: 0;
    z-index: var(--z-loader);
    background: var(--bg-0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    transition: opacity 0.55s var(--ease-smooth), visibility 0.55s;
}

.loader.done {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    font-family: var(--font-pixel);
    font-size: clamp(0.8rem, 2.6vw, 1.15rem);
    color: var(--ink);
    text-align: center;
    line-height: 2;
    text-shadow: 0 0 18px var(--glow-cyan);
}

.loader-logo em {
    font-style: normal;
    color: var(--orange);
    text-shadow: 0 0 18px var(--glow-orange);
}

.loader-bar {
    width: min(320px, 70vw);
    height: 14px;
    border: 2px solid var(--line-hot);
    padding: 2px;
    background: rgba(255, 122, 26, 0.06);
}

.loader-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: repeating-linear-gradient(
        90deg,
        var(--orange) 0 8px,
        var(--gold) 8px 16px
    );
    box-shadow: 0 0 16px var(--glow-orange);
    transition: width 0.25s steps(6);
}

.loader-text {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    color: var(--cyan);
    letter-spacing: 0.2em;
    animation: blink-hard 1s steps(2) infinite;
}

/* ==================== CURSORE CUSTOM ==================== */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-cursor);
    pointer-events: none;
    border-radius: 50%;
    will-change: transform;
}

.cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--orange);
    box-shadow: 0 0 12px var(--glow-orange);
    mix-blend-mode: screen;
}

.cursor-ring {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--cyan);
    box-shadow: 0 0 14px var(--glow-cyan), inset 0 0 8px rgba(0, 212, 255, 0.18);
    transition: width 0.25s var(--ease-spring), height 0.25s var(--ease-spring),
                border-color 0.25s, background 0.25s;
    mix-blend-mode: screen;
}

.cursor-ring.hot {
    width: 52px;
    height: 52px;
    border-color: var(--orange);
    background: rgba(255, 122, 26, 0.10);
}

body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }

@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ==================== PARTICELLE ==================== */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: var(--z-bg);
    pointer-events: none;
}

/* ==================== HEADER & NAV ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: linear-gradient(180deg, rgba(6, 9, 26, 0.92), rgba(6, 9, 26, 0.78));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.3s var(--ease-smooth), border-color 0.3s;
}

.header.scrolled {
    border-bottom-color: var(--line-hot);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(255, 122, 26, 0.25);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.9rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-dim);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.25s;
}

/* underline pixel - si riempie a blocchi */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 9px);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-smooth);
}

.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-link.active { color: var(--orange); text-shadow: 0 0 14px var(--glow-orange); }
.nav-link.active::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--orange);
    box-shadow: 0 0 8px var(--glow-orange);
    border-radius: 2px;
    transition: all 0.3s var(--ease-spring);
}

/* ==================== HERO - SALA GIOCHI ==================== */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8.5rem 0 5rem;
}

/* pavimento a griglia prospettica - synthwave */
.hero::before {
    content: '';
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -8%;
    height: 46%;
    z-index: var(--z-bg);
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.22) 2px, transparent 2px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.22) 2px, transparent 2px);
    background-size: 56px 56px;
    transform: perspective(620px) rotateX(63deg);
    transform-origin: top center;
    mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 96%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 96%);
    animation: grid-run 3.2s linear infinite;
}

@keyframes grid-run {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 0 56px, 0 0; }
}

/* sole/orizzonte arcade dietro il titolo */
.hero::after {
    content: '';
    position: absolute;
    z-index: var(--z-bg);
    left: 50%;
    top: 16%;
    width: min(760px, 92vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 122, 26, 0.16) 0%, rgba(255, 62, 200, 0.07) 38%, transparent 68%);
    animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.07); }
}

/* sprite pixel-art fluttuanti */
.hero-sprites { position: absolute; inset: 0; z-index: var(--z-sprites); pointer-events: none; }

.sprite {
    position: absolute;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.35));
    animation: float-sprite 6s ease-in-out infinite;
    will-change: transform;
    transition: transform 0.4s var(--ease-smooth);
}

.sprite svg { display: block; width: 100%; height: auto; image-rendering: pixelated; }

.sprite--pad     { width: 96px; top: 13%; left: 2%;  animation-delay: 0s; }
.sprite--cart    { width: 66px;  top: 76%; left: 1.5%; animation-delay: -2.1s; filter: drop-shadow(0 0 14px rgba(255, 122, 26, 0.4)); }
.sprite--joy     { width: 82px;  top: 13%; right: 6%; animation-delay: -3.4s; }
.sprite--heart   { width: 44px;  top: 56%; right: 13%; animation-delay: -1.2s; filter: drop-shadow(0 0 12px rgba(255, 62, 200, 0.5)); }
.sprite--coin    {
    width: 56px; top: 80%; right: 5%;
    animation: float-sprite 6s ease-in-out -4s infinite;
    filter: drop-shadow(0 0 14px rgba(255, 207, 63, 0.55));
}
.sprite--coin .coin-flip { display: block; animation: coin-flip 3.4s linear infinite; transform-style: preserve-3d; }

@keyframes float-sprite {
    0%, 100% { translate: 0 0; rotate: -3deg; }
    50% { translate: 0 -22px; rotate: 4deg; }
}

@keyframes coin-flip {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(360deg); }
}

.hero-content {
    position: relative;
    z-index: var(--z-content);
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* kicker in stile gettone */
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-pixel);
    font-size: 0.62rem;
    color: var(--cyan);
    letter-spacing: 0.22em;
    border: 1px solid rgba(0, 212, 255, 0.4);
    padding: 0.85rem 1.2rem;
    background: rgba(0, 212, 255, 0.06);
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    margin-bottom: 2.2rem;
    text-shadow: 0 0 12px var(--glow-cyan);
    animation: rise-in 0.7s var(--ease-spring) 0.15s both;
}

.hero-kicker .dot-live {
    width: 8px;
    height: 8px;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: blink-soft 1.6s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 900;
    line-height: 0.98;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin-bottom: 2rem;
}

.hero-title .line {
    display: block;
    animation: rise-in 0.8s var(--ease-spring) both;
}

.hero-title .line-1 {
    font-size: clamp(2.7rem, 8.4vw, 6.4rem);
    color: transparent;
    -webkit-text-stroke: 2px rgba(238, 242, 255, 0.85);
    animation-delay: 0.25s;
    text-shadow: 6px 6px 0 rgba(0, 212, 255, 0.18);
}

.hero-title .line-2 {
    font-size: clamp(2.9rem, 9.6vw, 7.4rem);
    color: var(--orange);
    text-shadow:
        0 0 22px var(--glow-orange),
        0 0 70px rgba(255, 122, 26, 0.35),
        4px 4px 0 rgba(255, 62, 200, 0.30);
    animation:
        rise-in 0.8s var(--ease-spring) 0.38s both,
        neon-flicker 7s linear 2s infinite;
    position: relative;
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(34px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.55; }
    94% { opacity: 1; }
    96% { opacity: 0.75; }
    97% { opacity: 1; }
}

.hero-sub {
    max-width: 560px;
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    color: var(--ink-dim);
    margin-bottom: 1.6rem;
    animation: rise-in 0.8s var(--ease-spring) 0.5s both;
}

.hero-sub strong { color: var(--ink); font-weight: 600; }

/* badge aperto/chiuso calcolato in JS */
.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.7rem 1.15rem;
    border: 1px solid var(--line);
    background: rgba(11, 18, 48, 0.7);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    margin-bottom: 2.4rem;
    animation: rise-in 0.8s var(--ease-spring) 0.6s both;
}

.hero-status .st-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--ink-faint);
    box-shadow: 0 0 8px currentColor;
}

.hero-status.is-open .st-dot { background: var(--green); color: var(--green); animation: blink-soft 1.8s ease-in-out infinite; }
.hero-status.is-open { color: var(--green); border-color: rgba(43, 255, 158, 0.4); }
.hero-status.is-closed .st-dot { background: var(--magenta); color: var(--magenta); }
.hero-status.is-closed { color: var(--magenta); border-color: rgba(255, 62, 200, 0.4); }

.hero-status .st-hours { color: var(--ink-dim); font-weight: 500; letter-spacing: 0.06em; }

.hero-cta {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
    animation: rise-in 0.8s var(--ease-spring) 0.72s both;
}

/* barra crediti in basso */
.hero-credits {
    position: absolute;
    z-index: var(--z-content);
    left: 2rem;
    bottom: 2rem;
    font-family: var(--font-pixel);
    font-size: 0.58rem;
    letter-spacing: 0.24em;
    color: var(--ink-faint);
    display: flex;
    gap: 1.6rem;
    align-items: center;
}

.hero-credits b { color: var(--gold); font-weight: 400; }

.hero-credits .press-start {
    color: var(--ink);
    animation: blink-hard 1.2s steps(2) infinite;
}

@keyframes blink-hard { 50% { opacity: 0; } }
@keyframes blink-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* indicatore scroll - mouse */
.scroll-hint {
    position: absolute;
    z-index: var(--z-content);
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.scroll-hint .mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--ink-faint);
    border-radius: 12px;
    position: relative;
}

.scroll-hint .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 7px;
    margin-left: -1.5px;
    background: var(--orange);
    box-shadow: 0 0 8px var(--glow-orange);
    border-radius: 2px;
    animation: wheel-drop 1.7s ease-in-out infinite;
}

.scroll-hint span {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
}

@keyframes wheel-drop {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(10px); }
}

/* ==================== BOTTONI - PRESSABILI ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1.05rem 2rem;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transition: transform 0.16s var(--ease-spring), box-shadow 0.16s var(--ease-spring),
                background 0.25s, color 0.25s, border-color 0.25s;
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
    will-change: transform;
}

.btn .btn-arrow { transition: transform 0.25s var(--ease-spring); }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-primary {
    background: linear-gradient(160deg, var(--orange), #e85d04);
    color: #fff;
    border-color: var(--orange-soft);
    box-shadow: 0 6px 0 #7a2f02, 0 14px 38px var(--glow-orange);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #7a2f02, 0 22px 52px var(--glow-orange);
}

.btn-primary:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #7a2f02, 0 8px 22px var(--glow-orange);
}

.btn-ghost {
    background: rgba(0, 212, 255, 0.05);
    color: var(--cyan);
    border-color: rgba(0, 212, 255, 0.55);
    box-shadow: 0 6px 0 rgba(0, 84, 102, 0.8), 0 12px 34px rgba(0, 212, 255, 0.16);
    text-shadow: 0 0 12px var(--glow-cyan);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    background: rgba(0, 212, 255, 0.13);
    box-shadow: 0 9px 0 rgba(0, 84, 102, 0.8), 0 18px 46px rgba(0, 212, 255, 0.3);
}

.btn-ghost:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(0, 84, 102, 0.8);
}

/* bottone piccolo */
.btn-sm { padding: 0.8rem 1.4rem; font-size: 0.74rem; }

/* ==================== MARQUEE LED ==================== */
.marquee {
    border-top: 1px solid var(--line-hot);
    border-bottom: 1px solid var(--line-hot);
    background: linear-gradient(90deg, rgba(255, 122, 26, 0.08), rgba(0, 212, 255, 0.06), rgba(255, 62, 200, 0.07));
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-run 30s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
    font-family: var(--font-pixel);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    color: var(--ink-dim);
    padding: 0 2.2rem;
    white-space: nowrap;
    text-transform: uppercase;
}

.marquee-track span b { color: var(--orange); font-weight: 400; text-shadow: 0 0 10px var(--glow-orange); }
.marquee-track span i { font-style: normal; color: var(--cyan); text-shadow: 0 0 10px var(--glow-cyan); }

@keyframes marquee-run {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==================== SEZIONI ==================== */
section {
    padding: 6.5rem 0;
    position: relative;
}

/* testata di sezione con numero arcade + numero fantasma */
.sec-head {
    display: flex;
    align-items: baseline;
    gap: 1.4rem;
    margin-bottom: 1.2rem;
}

.sec-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.6vw, 3.1rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--ink);
}

.sec-title em {
    font-style: normal;
    color: var(--orange);
    text-shadow: 0 0 20px var(--glow-orange);
}

.sec-intro {
    font-size: 1.12rem;
    color: var(--ink-dim);
    max-width: 640px;
    margin-bottom: 3.4rem;
}

/* ==================== REVEAL ON SCROLL ==================== */
.reveal {
    opacity: 0;
    transform: perspective(900px) translateY(46px) rotateX(9deg);
    transform-origin: top center;
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-spring);
    transition-delay: calc(var(--d, 0) * 1ms);
    will-change: opacity, transform;
}

.reveal.in {
    opacity: 1;
    transform: perspective(900px) translateY(0) rotateX(0);
}

/* ==================== CARD 3D - struttura tilt ==================== */
.card-3d {
    position: relative;
    transform-style: preserve-3d;
    will-change: transform;
}

.card-glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s;
    background: radial-gradient(
        300px circle at var(--gx, 50%) var(--gy, 50%),
        rgba(255, 122, 26, 0.16),
        transparent 65%
    );
    pointer-events: none;
    z-index: 1;
}

.card-3d:hover .card-glow { opacity: 1; }

.card-inner {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
    background: var(--card);
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
    padding: 2.2rem 1.9rem;
    height: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.35s, box-shadow 0.35s, background 0.35s;
}

.card-3d:hover .card-inner {
    border-color: var(--line-hot);
    background: rgba(22, 31, 72, 0.85);
    box-shadow: 0 30px 60px rgba(3, 5, 14, 0.7), 0 0 40px rgba(255, 122, 26, 0.10);
}

/* angoli HUD luminosi agli estremi del taglio */
.card-inner::before,
.card-inner::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: 0;
    transition: opacity 0.35s;
}

.card-inner::before {
    top: 0;
    right: 0;
    border-top: 2px solid var(--cyan);
    border-right: 2px solid var(--cyan);
    transform: translate(-18px, 0) rotate(45deg) translateY(-9px);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.card-inner::after {
    bottom: 0;
    left: 0;
    border-bottom: 2px solid var(--orange);
    border-left: 2px solid var(--orange);
    transform: translate(18px, 0) rotate(45deg) translateY(9px);
    box-shadow: 0 0 10px var(--glow-orange);
}

.card-3d:hover .card-inner::before,
.card-3d:hover .card-inner::after { opacity: 1; }

/* ==================== CHI SIAMO ==================== */
.about { padding-top: 5.5rem; }

.about-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.08rem;
    color: var(--ink-dim);
    margin-bottom: 1.4rem;
    line-height: 1.85;
}

.about-text strong { color: var(--orange); font-weight: 600; }
.about-text strong.cy { color: var(--cyan); }

/* stat counter stile scoreboard */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
}

.stat {
    border: 1px solid var(--line);
    background: rgba(11, 18, 48, 0.6);
    padding: 1.3rem 0.8rem;
    text-align: center;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: border-color 0.3s, transform 0.3s var(--ease-spring);
}

.stat:hover { border-color: var(--line-hot); transform: translateY(-4px); }

.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 16px rgba(255, 207, 63, 0.45);
    font-variant-numeric: tabular-nums;
}

.stat span {
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    letter-spacing: 0.16em;
    color: var(--ink-faint);
    text-transform: uppercase;
}

/* pannello "high score" */
.about-panel {
    position: relative;
    border: 1px solid var(--line);
    background: linear-gradient(165deg, rgba(19, 28, 64, 0.9), rgba(9, 14, 38, 0.9));
    padding: 2.4rem;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
    overflow: hidden;
}

.about-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 122, 26, 0.14), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(0, 212, 255, 0.12), transparent 45%);
    pointer-events: none;
}

.panel-label {
    font-family: var(--font-pixel);
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: var(--magenta);
    text-shadow: 0 0 12px var(--glow-magenta);
    margin-bottom: 1.8rem;
    display: block;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.9rem 0;
    border-bottom: 1px dashed rgba(120, 150, 255, 0.18);
    position: relative;
}

.panel-row:last-child { border-bottom: none; }

.panel-row .pr-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    color: var(--ink);
}

.panel-row .pr-val {
    font-family: var(--font-pixel);
    font-size: 0.58rem;
    color: var(--gold);
}

/* ==================== COSA OFFRIAMO ==================== */
.products { background: linear-gradient(180deg, transparent, rgba(11, 18, 48, 0.55) 18%, rgba(11, 18, 48, 0.55) 82%, transparent); }

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
    perspective: 1100px;
}

.product-card .card-inner { text-align: left; display: flex; flex-direction: column; }

.product-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    font-size: 1.9rem;
    margin-bottom: 1.6rem;
    background: rgba(255, 122, 26, 0.10);
    border: 1px solid rgba(255, 122, 26, 0.35);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    filter: drop-shadow(0 0 14px rgba(255, 122, 26, 0.3));
    transition: transform 0.35s var(--ease-spring);
}

.card-3d:hover .product-icon { transform: translateZ(20px) scale(1.1) rotate(-4deg); }

.product-card:nth-child(2) .product-icon { background: rgba(0, 212, 255, 0.10); border-color: rgba(0, 212, 255, 0.4); filter: drop-shadow(0 0 14px rgba(0, 212, 255, 0.3)); }
.product-card:nth-child(3) .product-icon { background: rgba(255, 62, 200, 0.10); border-color: rgba(255, 62, 200, 0.4); filter: drop-shadow(0 0 14px rgba(255, 62, 200, 0.3)); }

.product-title {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.8rem;
    color: var(--ink);
}

.product-description {
    color: var(--ink-dim);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* --- mini console: card "Ordini Online" --- */
.mini-console .card-inner {
    background: linear-gradient(170deg, #1b2450, #10173a);
    border-color: rgba(0, 212, 255, 0.4);
    padding: 0;
    overflow: hidden;
}

.mini-screen {
    margin: 1.4rem 1.4rem 0;
    background: #05070f;
    border: 2px solid rgba(0, 212, 255, 0.45);
    box-shadow: inset 0 0 26px rgba(0, 212, 255, 0.16), 0 0 20px rgba(0, 212, 255, 0.12);
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* scanline dello schermo */
.mini-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to bottom, rgba(0, 212, 255, 0.06) 0 1px, transparent 1px 4px);
    pointer-events: none;
}

.mini-screen .ms-title {
    font-family: var(--font-pixel);
    font-size: 0.62rem;
    color: var(--green);
    text-shadow: 0 0 12px rgba(43, 255, 158, 0.6);
    letter-spacing: 0.14em;
    margin-bottom: 0.9rem;
}

.mini-screen .ms-coin {
    font-family: var(--font-pixel);
    font-size: 0.56rem;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 207, 63, 0.6);
    animation: blink-hard 1.1s steps(2) infinite;
}

.mini-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem;
}

/* d-pad in CSS puro */
.dpad {
    width: 52px;
    height: 52px;
    position: relative;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}

.dpad::before, .dpad::after {
    content: '';
    position: absolute;
    background: #0a0e22;
    border: 1px solid rgba(120, 150, 255, 0.3);
}

.dpad::before { left: 17px; top: 0; width: 18px; height: 52px; }
.dpad::after { top: 17px; left: 0; width: 52px; height: 18px; }

.ab-buttons { display: flex; gap: 0.7rem; align-items: center; }

.ab-buttons i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.55), inset 0 2px 4px rgba(255, 255, 255, 0.35);
    transition: transform 0.15s;
}

.ab-buttons .b-a { background: var(--magenta); }
.ab-buttons .b-b { background: var(--cyan); transform: translateY(8px); }
.card-3d:hover .ab-buttons .b-b { transform: translateY(8px); }
.card-3d:hover .ab-buttons .b-a { transform: translateY(-2px); }

.mini-copy { padding: 0 1.4rem 1.6rem; }

.mini-copy h3 {
    font-family: var(--font-display);
    font-size: 1.06rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.mini-copy p { color: var(--ink-dim); font-size: 0.92rem; line-height: 1.7; }

/* ==================== GALLERY / SLIDER ==================== */
.gallery {
    position: relative;
    margin-top: 2.6rem;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    box-shadow: 0 30px 70px rgba(3, 5, 14, 0.75), 0 0 50px rgba(0, 212, 255, 0.07);
    background: var(--bg-1);
}

.gallery-track {
    display: flex;
    transition: transform 0.55s var(--ease-smooth);
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-slide img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    filter: saturate(1.1);
    transition: transform 6s var(--ease-smooth);
}

.gallery-slide.is-active img { transform: scale(1.06); }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4.5rem 2.4rem 2.2rem;
    background: linear-gradient(to top, rgba(4, 6, 16, 0.95) 20%, transparent);
}

.gallery-caption .cap-tag {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    color: var(--cyan);
    display: block;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 10px var(--glow-cyan);
}

.gallery-caption h3 {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.4rem;
}

.gallery-caption p { color: var(--ink-dim); font-size: 1rem; }

.gallery-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 10;
    pointer-events: none;
}

.gallery-btn {
    pointer-events: auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    background: rgba(6, 9, 26, 0.75);
    border: 1px solid var(--line-hot);
    color: var(--orange);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.25s var(--ease-spring);
    text-shadow: 0 0 10px var(--glow-orange);
}

.gallery-btn:hover {
    background: var(--orange);
    color: var(--bg-0);
    transform: scale(1.08);
    box-shadow: 0 0 26px var(--glow-orange);
    text-shadow: none;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

.gallery-dot {
    width: 22px;
    height: 8px;
    background: rgba(120, 150, 255, 0.25);
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}

.gallery-dot.active {
    width: 40px;
    background: var(--orange);
    box-shadow: 0 0 14px var(--glow-orange);
}

.gallery-dot:hover { background: var(--cyan); }

/* ==================== CATEGORIE ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    perspective: 1200px;
}

.category-card .card-inner { padding: 0; overflow: hidden; }

.category-image {
    height: 230px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s var(--ease-smooth);
}

.card-3d:hover .category-image { transform: scale(1.06); }

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg, rgba(6, 9, 26, 0.72), rgba(255, 122, 26, 0.28));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s;
}

/* HUD chip behind the glyph so the white icon reads cleanly over any photo */
.category-overlay::before {
    content: "";
    position: absolute;
    width: 86px;
    height: 86px;
    background: rgba(6, 9, 26, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line-hot);
    clip-path: polygon(13px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%, 0 13px);
    box-shadow: 0 0 26px rgba(0, 212, 255, 0.16), inset 0 0 20px rgba(0, 212, 255, 0.08);
    transition: transform 0.45s var(--ease-spring), border-color 0.4s, box-shadow 0.4s;
}

.card-3d:hover .category-overlay {
    background: linear-gradient(150deg, rgba(6, 9, 26, 0.45), rgba(0, 212, 255, 0.3));
}

.card-3d:hover .category-overlay::before {
    transform: rotate(6deg) scale(1.06);
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.34), inset 0 0 22px rgba(0, 212, 255, 0.14);
}

.category-icon-svg {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 10px rgba(0, 212, 255, 0.35));
    transition: transform 0.45s var(--ease-spring);
}

.card-3d:hover .category-icon-svg { transform: scale(1.12) rotate(6deg) translateZ(30px); }

.category-content { padding: 1.8rem 1.7rem 2rem; }

.category-content h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.category-content > p {
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 1.3rem;
    text-shadow: 0 0 10px var(--glow-orange);
}

.category-list { list-style: none; }

.category-list li {
    color: var(--ink-dim);
    padding: 0.5rem 0 0.5rem 1.6rem;
    position: relative;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(120, 150, 255, 0.12);
    transition: color 0.25s, padding-left 0.25s var(--ease-spring);
}

.category-list li:last-child { border-bottom: none; }

.category-list li::before {
    content: '▸';
    position: absolute;
    left: 0.2rem;
    color: var(--cyan);
    transition: transform 0.25s var(--ease-spring);
}

.category-list li:hover { color: var(--ink); padding-left: 1.9rem; }
.category-list li:hover::before { transform: translateX(3px); color: var(--orange); }

/* ==================== DOVE SIAMO ==================== */
.location-content {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.6rem;
    align-items: stretch;
}

.location-info { display: flex; flex-direction: column; gap: 1.6rem; perspective: 900px; }

.info-item {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
}

.info-item .card-inner { display: flex; gap: 1.3rem; align-items: flex-start; width: 100%; }

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px var(--glow-orange));
    transition: transform 0.3s var(--ease-spring);
}

.card-3d:hover .info-icon { transform: scale(1.2) rotate(-8deg); }

.info-text h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--orange);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.info-text p { color: var(--ink-dim); }

.hours { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.45rem; }

.hours p {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.92rem;
    padding: 0.45rem 0.7rem;
    background: rgba(6, 9, 26, 0.5);
    border-left: 2px solid rgba(120, 150, 255, 0.25);
    transition: border-color 0.25s, background 0.25s;
}

.hours p:hover { border-left-color: var(--orange); background: rgba(255, 122, 26, 0.06); }
.hours strong { color: var(--ink); font-weight: 600; }
.hours .h-time { color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.hours p.h-closed .h-time { color: var(--magenta); }

/* mappa con cornice neon + leggero tilt */
.location-map {
    position: relative;
    border: 1px solid var(--line);
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(3, 5, 14, 0.7), 0 0 44px rgba(0, 212, 255, 0.08);
    transition: transform 0.5s var(--ease-smooth), box-shadow 0.5s;
    min-height: 460px;
}

.location-map:hover {
    transform: perspective(1200px) rotateX(1.5deg) rotateY(-1.5deg) scale(1.012);
    box-shadow: 0 34px 80px rgba(3, 5, 14, 0.8), 0 0 60px rgba(0, 212, 255, 0.16);
}

.location-map iframe { display: block; width: 100%; height: 100%; min-height: 460px; filter: saturate(0.9) contrast(1.05); }

.map-badge {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    z-index: 5;
    font-family: var(--font-pixel);
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    color: var(--bg-0);
    background: var(--gold);
    padding: 0.6rem 0.9rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 207, 63, 0.4);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* ==================== OFFERTE ==================== */
.offers { background: linear-gradient(180deg, transparent, rgba(11, 18, 48, 0.55) 20%, rgba(11, 18, 48, 0.55) 80%, transparent); }

.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    perspective: 1100px;
}

.offer-card .card-inner { padding: 0; }

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-pixel);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    padding: 0.85rem 1.2rem;
    color: var(--bg-0);
    clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    margin: 1.8rem 0 0 1.8rem;
}

.offer-new .offer-badge { background: var(--green); box-shadow: 0 0 22px rgba(43, 255, 158, 0.4); }
.offer-preorder .offer-badge { background: var(--cyan); box-shadow: 0 0 22px rgba(0, 212, 255, 0.4); }
.offer-used .offer-badge { background: var(--gold); box-shadow: 0 0 22px rgba(255, 207, 63, 0.4); }

.offer-content { padding: 1.6rem 1.8rem 2rem; }

.offer-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.offer-content > p {
    color: var(--ink-dim);
    margin-bottom: 1.4rem;
    line-height: 1.75;
    font-size: 0.96rem;
}

.offer-content ul { list-style: none; margin-bottom: 1.8rem; }

.offer-content ul li {
    color: var(--ink-dim);
    padding: 0.55rem 0 0.55rem 2rem;
    position: relative;
    font-size: 0.94rem;
    border-bottom: 1px dashed rgba(120, 150, 255, 0.12);
    transition: color 0.25s;
}

.offer-content ul li:last-child { border-bottom: none; }

.offer-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0.3rem;
    font-weight: 800;
    font-size: 1rem;
}

.offer-new ul li::before { color: var(--green); text-shadow: 0 0 8px rgba(43, 255, 158, 0.5); }
.offer-preorder ul li::before { color: var(--cyan); text-shadow: 0 0 8px rgba(0, 212, 255, 0.5); }
.offer-used ul li::before { color: var(--gold); text-shadow: 0 0 8px rgba(255, 207, 63, 0.5); }

.offer-content ul li:hover { color: var(--ink); }

.btn-offer {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 1.6rem;
    text-decoration: none;
    color: var(--ink);
    border: 1px solid var(--line-hot);
    background: rgba(255, 122, 26, 0.07);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.25s var(--ease-spring);
}

.btn-offer:hover {
    background: var(--orange);
    color: var(--bg-0);
    transform: translateY(-3px);
    box-shadow: 0 0 28px var(--glow-orange);
}

/* ==================== COMMUNITY ==================== */
.community .sec-head, .community .sec-intro { text-align: left; }

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
    perspective: 900px;
}

.social-card { text-decoration: none; display: block; }

.social-card .card-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 2rem;
}

.social-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform 0.35s var(--ease-spring);
}

.card-3d:hover .social-icon { transform: translateZ(24px) rotate(-6deg) scale(1.08); }

.social-icon.facebook {
    background: linear-gradient(150deg, #2b8bff, #0d5dbf);
    box-shadow: 0 0 26px rgba(43, 139, 255, 0.45);
}

.social-icon.instagram {
    background: linear-gradient(150deg, #f58529, #dd2a7b 55%, #8134af);
    box-shadow: 0 0 26px rgba(221, 42, 123, 0.45);
}

.social-icon svg { width: 30px; height: 30px; color: #fff; }

.social-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.social-info p {
    color: var(--cyan);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.social-info .soc-cta {
    display: inline-block;
    margin-top: 0.7rem;
    font-family: var(--font-pixel);
    font-size: 0.5rem;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    transition: color 0.25s, transform 0.25s var(--ease-spring);
}

.card-3d:hover .soc-cta { color: var(--orange); transform: translateX(4px); }

/* ==================== CONTATTI ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2.4rem;
    align-items: stretch;
    perspective: 1000px;
}

.contact-info-box .card-inner { display: flex; flex-direction: column; justify-content: center; }

.contact-info-box h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.35;
}

.contact-info-box h3 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 16px var(--glow-cyan); }

.contact-info-box p {
    color: var(--ink-dim);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1.6rem;
    background: rgba(255, 122, 26, 0.08);
    border: 1px solid var(--line-hot);
    color: var(--orange);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: all 0.25s var(--ease-spring);
    width: fit-content;
}

.email-link:hover {
    background: var(--orange);
    color: var(--bg-0);
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--glow-orange);
}

.email-icon { font-size: 1.3rem; }

/* form */
.contact-form .card-inner { padding: 2.4rem; }

.form-label {
    display: block;
    font-family: var(--font-pixel);
    font-size: 0.52rem;
    letter-spacing: 0.2em;
    color: var(--cyan);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.form-group { margin-bottom: 1.5rem; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(6, 9, 26, 0.75);
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(6, 9, 26, 0.95);
    box-shadow: 0 0 0 1px var(--orange), 0 0 24px rgba(255, 122, 26, 0.22);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.btn-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }

/* stato di successo del form */
.form-success {
    display: none;
    align-items: center;
    gap: 0.9rem;
    margin-top: 1.4rem;
    padding: 1.1rem 1.3rem;
    border: 1px solid rgba(43, 255, 158, 0.5);
    background: rgba(43, 255, 158, 0.07);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--green);
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    animation: rise-in 0.5s var(--ease-spring) both;
}

.form-success.show { display: flex; }

.form-success .ok-badge {
    font-family: var(--font-pixel);
    font-size: 0.7rem;
    background: var(--green);
    color: var(--bg-0);
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(6, 9, 26, 0.4), rgba(4, 6, 16, 0.95));
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

/* griglia finale come il pavimento della hero */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 140, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 140, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 55%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%);
    pointer-events: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.6rem;
    position: relative;
    gap: 2rem;
}

.footer-tag {
    font-family: var(--font-pixel);
    font-size: 0.52rem;
    letter-spacing: 0.22em;
    color: var(--ink-faint);
    text-transform: uppercase;
}

.footer-social { display: flex; gap: 1.2rem; }

.footer-social a {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    background: rgba(19, 28, 64, 0.8);
    border: 1px solid var(--line);
    color: var(--ink-dim);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.25s var(--ease-spring);
}

.footer-social a svg { width: 20px; height: 20px; }

.footer-social a:hover {
    color: var(--bg-0);
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px var(--glow-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(120, 150, 255, 0.12);
    position: relative;
}

.footer-bottom p {
    color: var(--ink-faint);
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}

.footer-bottom a {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s, text-shadow 0.25s;
}

.footer-bottom a:hover { color: var(--orange); text-shadow: 0 0 12px var(--glow-orange); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .sprite--pad { left: 2%; }
    .sprite--joy { right: 3%; }
}

@media (max-width: 968px) {
    .nav { padding: 0.8rem 1.4rem; }

    .nav-menu {
        position: fixed;
        left: 0;
        right: 0;
        top: 72px;
        flex-direction: column;
        gap: 0;
        background: rgba(6, 9, 26, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 1.2rem 2rem 2rem;
        border-bottom: 1px solid var(--line-hot);
        transform: translateY(-130%);
        transition: transform 0.4s var(--ease-spring);
        z-index: -1;
    }

    .nav-menu.active { transform: translateY(0); }

    .nav-menu li { border-bottom: 1px dashed rgba(120, 150, 255, 0.15); }
    .nav-menu li:last-child { border-bottom: none; }

    .nav-link {
        display: block;
        padding: 1.05rem 0;
        font-size: 0.9rem;
    }

    .nav-toggle { display: flex; z-index: 2; }

    .about-layout,
    .location-content,
    .contact-content { grid-template-columns: 1fr; }

    .about-panel { order: -1; }

    .hero { padding-top: 7.5rem; }
    .hero-credits { display: none; }
    .scroll-hint { display: none; }

    .offers-grid,
    .social-links { grid-template-columns: 1fr; }

    .footer-content { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .container { padding: 0 1.2rem; }
    section { padding: 4.6rem 0; }

    .products-grid,
    .categories-grid { grid-template-columns: 1fr; }

    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }

    .sprite--pad { width: 76px; top: 12%; left: 4%; }
    .sprite--cart { width: 54px; left: 6%; }
    .sprite--joy { width: 64px; top: 10%; right: 4%; }
    .sprite--heart { width: 34px; right: 10%; }
    .sprite--coin { width: 44px; right: 4%; }

    .gallery-slide img { height: 320px; }
    .gallery-caption { padding: 3rem 1.4rem 1.6rem; }
    .gallery-btn { width: 42px; height: 42px; font-size: 1.4rem; }

    .sec-head { flex-direction: column; gap: 0.5rem; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .stat b { font-size: 1.4rem; }

    .hours p { flex-direction: column; gap: 0.1rem; }

    .location-map, .location-map iframe { min-height: 340px; }
}

/* ==================== ACCESSIBILITÀ & PRESTAZIONI ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .sprite, #particles-canvas { display: none; }
}

/* focus visibile per tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* ==================== LOGO 3D · HEADER / FOOTER ==================== */
.logo3d-obj {
    position: relative;
    aspect-ratio: 306 / 315;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg));
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.logo3d-layer {
    position: absolute;
    inset: 0;
    -webkit-mask: url("logo-mask.png") center / 100% 100% no-repeat;
    mask: url("logo-mask.png") center / 100% 100% no-repeat;
    transform: translateZ(calc(var(--i, 0) * var(--step, -1.4px)))
               translate(calc(var(--i, 0) * var(--ox, 0.5px)), calc(var(--i, 0) * var(--oy, 0.7px)));
    backface-visibility: hidden;
}

.logo3d-obj.is-neon { --step: -1.5px; --ox: 0.6px; --oy: 0.85px; }
.logo3d-obj.is-neon .logo3d-layer { background: #3a1166; }
.logo3d-obj.is-neon .logo3d-face {
    background: linear-gradient(150deg, #ffd9a0 0%, #ff7a1a 46%, #ff3ec8 100%);
    filter: drop-shadow(0 0 10px rgba(255, 122, 26, 0.5)) drop-shadow(0 0 18px rgba(255, 62, 200, 0.28));
}

/* logo 3D come marchio nell'header e nel footer */
.nav-logo a,
.footer-logo a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo3d-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 122, 26, 0.32), rgba(255, 62, 200, 0.12) 45%, transparent 72%);
    filter: blur(7px);
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 0;
}

.logo3d-obj--mark {
    position: relative;
    z-index: 1;
    width: auto;
    cursor: pointer;
    --step: -0.5px;
    --ox: 0.22px;
    --oy: 0.32px;
    transform: perspective(700px) rotateX(calc(var(--ry, 0) * 1deg)) rotateY(calc(var(--rx, 0) * 1deg));
    animation: logoMarkFloat 7s ease-in-out infinite;
}

.nav-logo .logo3d-obj--mark { height: 52px; }
.footer-logo .logo3d-obj--mark { height: 62px; }

.nav-logo a:hover .logo3d-mark,
.footer-logo a:hover .logo3d-mark { opacity: 0.95; }

.nav-logo a:hover .logo3d-obj--mark,
.footer-logo a:hover .logo3d-obj--mark {
    transform: perspective(700px) rotateX(-12deg) rotateY(20deg) scale(1.07);
}

.nav-logo a:hover .logo3d-obj--mark.is-neon .logo3d-face {
    filter: drop-shadow(0 0 16px rgba(255, 122, 26, 0.85)) drop-shadow(0 0 30px rgba(255, 62, 200, 0.5));
}

@keyframes logoMarkFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -3px; }
}

@media (prefers-reduced-motion: reduce) {
    .logo3d-obj--mark { animation: none; }
}

