/* ==================================
   V3 "FICHISSIMO" TEMPLATE STYLES - ROBUST RESPONSIVE
   ================================== */
/* Root variables are now handled in style.css to ensure consistency across the dashboard */

* { box-sizing: border-box; }

html, body { 
    scroll-behavior: smooth; 
    overflow-x: hidden; 
    width: 100vw; 
    margin: 0;
    padding: 0;
}

body.immersive-theme {
    background-color: var(--bg-dark); color: var(--text-main); font-family: 'Outfit', sans-serif;
}

.site-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--red-neon); }
.cursor-outline {
    width: 40px; height: 40px; border: 2px solid rgba(255, 42, 42, 0.5);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}
.cursor-hover { width: 60px; height: 60px; background-color: rgba(255, 42, 42, 0.1); border-color: transparent; }

/* Noise Overlay */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; pointer-events: none;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    z-index: 1000; mix-blend-mode: overlay;
}

/* ==================
   NEON UTILS
   ================== */
.neon-glow { text-shadow: 0 0 10px var(--red-neon), 0 0 20px var(--red-neon); }
.neon-text { color: var(--red-neon); text-shadow: 0 0 15px rgba(255, 42, 42, 0.4); }
.neon-outline { -webkit-text-stroke: 2px var(--red-neon); text-shadow: 0 0 30px rgba(255, 42, 42, 0.5); }
.neon-border { border-color: rgba(255, 42, 42, 0.6) !important; box-shadow: 0 0 15px rgba(255, 42, 42, 0.3); }
.neon-box { box-shadow: 0 0 30px rgba(255, 42, 42, 0.2); border: 1px solid rgba(255, 42, 42, 0.3); }
.neon-box-heavy { box-shadow: 0 0 50px rgba(255, 42, 42, 0.3); border: 1px solid rgba(255, 42, 42, 0.5); background: rgba(20, 0, 0, 0.8); }
.neon-marquee { box-shadow: 0 0 30px rgba(255, 42, 42, 0.3) !important; }

.neon-btn { 
    background: #000; 
    color: #fff; 
    border: 1px solid var(--red-neon); 
    box-shadow: 0 0 20px rgba(255, 42, 42, 0.3), inset 0 0 10px rgba(255, 42, 42, 0.2);
    transition: all 0.3s ease;
}
.neon-btn:hover {
    background: var(--red-neon);
    color: #fff;
    box-shadow: 0 0 40px rgba(255, 42, 42, 0.8);
}

.neon-hover:hover {
    box-shadow: 0 20px 40px rgba(255, 42, 42, 0.25) !important;
    border-color: rgba(255, 42, 42, 0.5) !important;
}

.neon-text-hover:hover {
    color: var(--red-neon);
    text-shadow: 0 0 15px rgba(255, 42, 42, 0.6);
}

/* Navbar */
.nav-ultra { position: absolute; top: 0; left: 0; width: 100%; padding: 20px 5%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; }
.nav-brand { font-size: 1.8rem; font-weight: 900; letter-spacing: 1px; color: #fff; }
.nav-brand span { color: var(--red-neon); }
.magnetic-btn { display: inline-flex; justify-content: center; align-items: center; transition: all 0.2s ease-out; text-decoration: none; }
.pulse-glow { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 10px 20px; border-radius: 30px; font-weight: 600; gap: 8px; font-size: 0.9rem; backdrop-filter: blur(10px); }
.pulse-glow:hover { background: #fff; color: #000; box-shadow: 0 0 20px rgba(255,255,255,0.5); }

/* Hero Section */
.hero-ultra { position: relative; width: 100%; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px 5% 60px 5%; overflow: hidden; }
.hero-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(50%) brightness(0.5); }
.hero-vignette { position: absolute; inset: 0; background: radial-gradient(circle, transparent 10%, var(--bg-dark) 100%); z-index: 1; pointer-events: none;}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1000px; margin: 0 auto; width: 100%; }

.text-reveal { margin: 0; padding: 5px 0; overflow: hidden; }
.text-reveal span { display: block; transform: translateY(120%); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); opacity: 0; }
.text-reveal span.is-visible { transform: translateY(0); opacity: 1; }

.hero-content h1 span { font-size: clamp(2.5rem, 12vw, 8rem); font-weight: 900; line-height: 1; text-transform: uppercase; letter-spacing: -2px; }
.outline-text { -webkit-text-stroke: 2px rgba(255,255,255,0.8); color: transparent; }

.hero-desc { margin-top: 20px; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--text-main); font-weight: 400; max-width: 600px; margin-inline: auto; line-height: 1.6; }

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; transition: opacity 1.5s ease; pointer-events: none; z-index: 2; }
.scroll-indicator.is-visible { opacity: 1; }
.scroll-indicator span { font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: #ccc; }
.mouse { width: 22px; height: 34px; border: 2px solid #ccc; border-radius: 12px; position: relative; }
.wheel { width: 4px; height: 6px; background: #fff; border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scroller 2s infinite; }
@keyframes scroller { 0% { top: 6px; opacity: 1; } 100% { top: 16px; opacity: 0; } }

/* Marquee Scroller Safe */
.marquee-wrapper { width: 100%; overflow: hidden; position: relative; background: var(--red-neon); padding: 15px 0; margin: 60px 0; border-top: 2px solid #fff; border-bottom: 2px solid #fff; z-index: 10; }
.marquee { display: flex; width: max-content; }
.marquee-content { display: flex; animation: marquee-anim 15s linear infinite; font-weight: 900; font-size: clamp(1.5rem, 3vw, 2.5rem); text-transform: uppercase; color: #000; }
.marquee-content span { padding-right: 40px; white-space: nowrap; }
@keyframes marquee-anim { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Bento Grid 12 Cols */
.bento-section { padding: 40px 5% 80px 5%; max-width: 1400px; margin: 0 auto; }
.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }

.bento-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; transform-style: preserve-3d; }
.bento-card:hover { border-color: rgba(255,255,255,0.2); }
.tilt-element { transition: box-shadow 0.3s ease-out, border-color 0.3s; }
.tilt-element:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 5; }

.primary-card { grid-column: span 8; min-height: 380px; padding: 40px; background: #fff; color: #000; }
.primary-card h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin: 0 0 16px 0; line-height: 1.1; letter-spacing: -1px; }
.primary-card p { font-size: clamp(1rem, 1.5vw, 1.2rem); color: #333; margin: 0 0 24px 0; line-height: 1.5; max-width: 90%; }
.simple-btn { padding: 12px 24px; border-radius: 20px; font-weight: 600; font-size: 0.95rem; align-self: flex-start; }

.image-card-1 { grid-column: span 4; min-height: 380px; }
.image-card-2 { grid-column: span 8; min-height: 300px; }

.image-card-1 img, .image-card-2 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: transform 0.5s ease, filter 0.5s; }
.bento-card:hover img { filter: grayscale(0%); transform: scale(1.05); }
.image-label { position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); padding: 8px 16px; border-radius: 20px; font-weight: 600; color: #fff; transform: translateZ(20px); font-size: 0.9rem; z-index: 2; pointer-events: none;}

.stat-card { grid-column: span 4; min-height: 300px; text-align: center; padding: 30px; }
.stat-content { transform: translateZ(30px); }
.stat-value { font-size: clamp(3.5rem, 6vw, 6rem); font-weight: 900; background: linear-gradient(to bottom, #fff, #555); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 10px;}
.stat-label { font-size: 0.9rem; color: #fff; text-transform: uppercase; font-weight: 800; letter-spacing: 2px; }

.social-banner { grid-column: span 12; min-height: 200px; padding: 40px; background: linear-gradient(135deg, var(--red-dark), #110000); }
.social-banner-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; transform: translateZ(20px); flex-wrap: wrap; gap: 20px; }
.social-text { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -1px; margin: 0; }
.yt-btn { background: #fff; color: #000; padding: 16px 32px; border-radius: 40px; font-size: 1.1rem; font-weight: 800; gap: 10px; white-space: nowrap; transition: 0.3s; border: none;}
.yt-btn:hover { background: var(--red-neon); color: #fff; box-shadow: 0 0 30px rgba(255, 42, 42, 0.6);}

/* =======================================
   CARDS HAND REELS
   ======================================= */
.reels-section { padding: 80px 0 100px 0; overflow-x: hidden; width: 100vw; }
.reels-header { text-align: center; margin-bottom: 60px; max-width: 100%; padding: 0 5%; }

.cards-hand-wrapper {
    position: relative;
    height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    width: 100%;
}

.reel-card-stacked {
    position: absolute;
    width: 300px;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    background: #000;
}

.reel-card-stacked video { width: 100%; height: 100%; object-fit: cover; }
.reel-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 50%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; pointer-events: none; }
.reel-icon { font-size: 2rem; margin-bottom: 10px; }
.reel-title { font-weight: 700; font-size: 1.1rem; line-height: 1.4; color: #fff; }

/* Deck Spread State Default */
.reel-card-stacked:nth-child(1) { transform: translateX(-160px) rotate(-12deg) scale(0.9); z-index: 1; }
.reel-card-stacked:nth-child(2) { transform: translateX(0) rotate(0deg) scale(1); z-index: 2; }
.reel-card-stacked:nth-child(3) { transform: translateX(160px) rotate(12deg) scale(0.9); z-index: 1; }

/* Hover Interactions (Only on computers with mouse) */
@media (hover: hover) and (pointer: fine) {
    .cards-hand-wrapper:hover .reel-card-stacked {
        filter: brightness(0.4);
    }
    
    .cards-hand-wrapper .reel-card-stacked:hover {
        filter: brightness(1);
        transform: translateY(-40px) translateX(0) rotate(0deg) scale(1.1) !important;
        z-index: 10;
        box-shadow: 0 0 50px rgba(255, 42, 42, 0.6);
        border-color: var(--red-neon);
    }
    
    /* Espande le altre carte delicatamente quando una viene hoverata */
    .cards-hand-wrapper .reel-card-stacked:nth-child(1):hover ~ .reel-card-stacked:nth-child(2) { transform: translateX(80px) rotate(5deg) scale(0.9); z-index: 2;}
    .cards-hand-wrapper .reel-card-stacked:nth-child(1):hover ~ .reel-card-stacked:nth-child(3) { transform: translateX(200px) rotate(15deg) scale(0.85); z-index: 1;}
    .cards-hand-wrapper .reel-card-stacked:nth-child(2):hover ~ .reel-card-stacked:nth-child(3) { transform: translateX(180px) rotate(12deg) scale(0.9); z-index: 1;}
}


/* Parallax Format Strips */
.format-strips { padding: 0 0 60px 0; overflow: hidden; width: 100vw; }
.center { text-align: center; }
.strip-container { position: relative; width: 100%; height: 300px; overflow: hidden; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,0.1); }
.strip-image { position: absolute; top: -10%; left: 0; width: 100%; height: 120%; background-size: cover; background-position: center; filter: grayscale(100%) brightness(0.4); transition: filter 0.5s ease; z-index: 0; will-change: transform; object-fit: cover;}
.strip-container:hover .strip-image { filter: grayscale(0%) brightness(0.6); }
.strip-header { position: relative; z-index: 1; text-align: center; color: white; padding: 0 20px; text-shadow: 0 5px 20px rgba(0,0,0,0.8); }
.strip-header h2 { font-size: clamp(2.5rem, 6vw, 5.5rem); font-weight: 900; margin: 0; text-transform: uppercase; letter-spacing: 2px; line-height: 1.1; }
.strip-header p { font-size: clamp(0.9rem, 2vw, 1.1rem); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 10px; }

/* Contact Section */
.contact-section { padding: 80px 5% 120px 5%; display: flex; justify-content: center; align-items: center; }
.contact-container { max-width: 800px; width: 100%; text-align: center; padding: 60px 40px; border-radius: 30px; }
.contact-desc { font-size: 1.2rem; color: #aaa; margin-bottom: 40px; line-height: 1.6; }
.mail-btn { padding: 18px 40px; font-size: 1.2rem; border-radius: 40px; display: inline-flex; }

/* Footer */
.footer-ultra { padding: 60px 5% 40px 5%; background: #000; border-top: 1px solid #1a1a1a; width: 100%; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; padding-bottom: 30px; border-bottom: 1px solid #222; margin-bottom: 30px; flex-wrap: wrap; gap: 20px; }
.f-brand { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; letter-spacing: -2px; margin: 0; }
.footer-btn { font-size: clamp(1.1rem, 3vw, 1.4rem); text-decoration: underline; text-decoration-color: var(--red-neon); text-underline-offset: 6px; color: #fff; }
.f-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.f-socials { display: flex; gap: 20px; font-size: 1.6rem; }
.f-socials a { color: #888; transition: color 0.3s; }
.f-copy { color: #666; font-size: 0.9rem; }

/* Reveal Animations */
.reveal-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 1024px) {
    .primary-card { grid-column: span 12; min-height: 350px;}
    .image-card-1 { grid-column: span 6; min-height: 300px;}
    .stat-card { grid-column: span 6; min-height: 300px;}
    .image-card-2 { grid-column: span 12; min-height: 300px;}
    .social-banner-inner { flex-direction: column; text-align: center; justify-content: center;}
}

@media (max-width: 768px) {
    body.immersive-theme { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none !important; }
    
    .nav-ultra { padding: 15px 5%; }
    .pulse-glow { padding: 8px 16px; font-size: 0.85rem;}

    .hero-ultra { padding-top: 80px; }
    
    .bento-grid { display: flex; flex-direction: column; gap: 16px; }
    .bento-card { min-height: 280px; padding: 24px; border-radius: 20px; }
    .primary-card { padding: 30px 24px; }
    
    .social-banner { padding: 40px 20px; }
    
    /* Disattiva animazioni complesse Touch su mobile per evitare bug */
    .tilt-element:hover { box-shadow: none; transform: none; border-color: rgba(255,255,255,0.08); }
    .image-card img { transition: none; }
    
    .reels-section { padding-top: 40px; padding-bottom: 60px;}
    /* Trasforma Hand of Cards in uno stream Flex per Smartphone */
    .cards-hand-wrapper {
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
        perspective: none;
    }
    .reel-card-stacked, 
    .reel-card-stacked:nth-child(1),
    .reel-card-stacked:nth-child(2),
    .reel-card-stacked:nth-child(3) {
        position: relative;
        transform: none !important;
        width: 100%;
        max-width: 320px;
        height: 500px;
        z-index: 1 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    
    .strip-container { height: 200px; }
    
    .contact-container { padding: 40px 20px; }
    .mail-btn { font-size: 1rem; padding: 15px 30px; }
    
    .footer-grid, .f-bottom { flex-direction: column; text-align: center; justify-content: center;}
}

@media (max-width: 480px) {
    .hero-content h1 span { font-size: 3.5rem; letter-spacing: -1px;}
    .primary-card h2 { font-size: 1.8rem; }
    .stat-value { font-size: 3.5rem; }
}
