/* =====================================================
   DIGITALIZZATO - 3D WOW EFFECTS v2.0
   Effetti 3D Intensi, Particelle AI Dinamiche, Parallax
   
   Colori Brand + Accenti Tech Neon:
   - Teal: #0D9488 (primario)
   - Orange: #F97316 (accento/CTA)
   - Neon Cyan: #22D3EE (tech glow)
   - Neon Purple: #A855F7 (tech accent)
   - Dark: #0a0f1a (sfondo hero)
   ===================================================== */

/* =====================================================
   1. CSS VARIABLES - COLORI 3D & NEON INTENSI
   ===================================================== */

:root {
    /* Neon accents - più luminosi */
    --neon-cyan: #22D3EE;
    --neon-cyan-bright: #67E8F9;
    --neon-purple: #A855F7;
    --neon-purple-bright: #C084FC;
    --neon-orange: #FB923C;
    --neon-orange-bright: #FDBA74;
    --neon-teal: #2DD4BF;
    --neon-teal-bright: #5EEAD4;
    --neon-green: #4ADE80;
    
    /* Glow effects - più intensi */
    --glow-cyan: 0 0 15px rgba(34, 211, 238, 0.6), 0 0 30px rgba(34, 211, 238, 0.4), 0 0 60px rgba(34, 211, 238, 0.2);
    --glow-cyan-intense: 0 0 20px rgba(34, 211, 238, 0.8), 0 0 40px rgba(34, 211, 238, 0.5), 0 0 80px rgba(34, 211, 238, 0.3);
    --glow-orange: 0 0 15px rgba(249, 115, 22, 0.6), 0 0 30px rgba(249, 115, 22, 0.4), 0 0 60px rgba(249, 115, 22, 0.2);
    --glow-orange-intense: 0 0 20px rgba(249, 115, 22, 0.8), 0 0 40px rgba(249, 115, 22, 0.5), 0 0 80px rgba(249, 115, 22, 0.3);
    --glow-teal: 0 0 15px rgba(13, 148, 136, 0.6), 0 0 30px rgba(13, 148, 136, 0.4), 0 0 60px rgba(13, 148, 136, 0.2);
    --glow-purple: 0 0 15px rgba(168, 85, 247, 0.6), 0 0 30px rgba(168, 85, 247, 0.4), 0 0 60px rgba(168, 85, 247, 0.2);
    
    /* 3D Shadows */
    --shadow-3d: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 16px 32px rgba(0, 0, 0, 0.15);
    --shadow-3d-hover: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 16px 32px rgba(0, 0, 0, 0.15),
        0 32px 64px rgba(0, 0, 0, 0.2);
    --shadow-3d-intense:
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(13, 148, 136, 0.2);
}

/* =====================================================
   2. HERO 3D - SFONDO FUTURISTICO AI
   ===================================================== */

.hero-3d {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #050810 0%, #0a1628 30%, #0d2025 60%, #0a1418 100%);
    overflow: hidden;
    perspective: 1500px;
    padding-top: 90px; /* Spazio per header */
    padding-bottom: var(--space-12, 3rem);
}

/* ===== GRIGLIA 3D PROSPETTICA ===== */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(700px) rotateX(65deg) translateY(-30%);
    transform-origin: center top;
    animation: gridMove 25s linear infinite;
    opacity: 0.6;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Seconda griglia per effetto profondità */
.hero-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 120px 120px;
    animation: gridMove 40s linear infinite reverse;
}

/* ===== GRADIENTE OVERLAY CON SFERE ===== */
.hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 30%, rgba(34, 211, 238, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 70%, rgba(249, 115, 22, 0.15) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(13, 148, 136, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 100% 60% at 70% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: gradientPulse 8s ease-in-out infinite;
}

@keyframes gradientPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* ===== SCAN LINE EFFECT ===== */
.hero-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    animation: scanLine 4s ease-in-out infinite;
    opacity: 0.5;
    z-index: 5;
}

@keyframes scanLine {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { top: 100%; opacity: 0; }
}

/* =====================================================
   3. PARTICELLE AI DINAMICHE
   ===================================================== */

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Particella base */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
    animation: particleFloat 10s ease-in-out infinite;
    opacity: 0.7;
}

/* Variazioni particelle */
.particle:nth-child(odd) {
    background: var(--neon-teal);
    box-shadow: var(--glow-teal);
    animation-duration: 12s;
    animation-name: particleFloat2;
}

.particle:nth-child(3n) {
    background: var(--neon-purple);
    box-shadow: var(--glow-purple);
    animation-duration: 14s;
    width: 3px;
    height: 3px;
    animation-name: particleFloat3;
}

.particle:nth-child(5n) {
    background: var(--neon-orange);
    box-shadow: var(--glow-orange);
    animation-duration: 11s;
    width: 5px;
    height: 5px;
}

.particle:nth-child(7n) {
    background: var(--neon-cyan-bright);
    width: 6px;
    height: 6px;
    box-shadow: var(--glow-cyan-intense);
    animation-duration: 8s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-50px) translateX(25px) scale(1.3);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) translateX(-15px) scale(0.7);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-70px) translateX(30px) scale(1.2);
        opacity: 0.9;
    }
}

@keyframes particleFloat2 {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translateY(-40px) translateX(-30px) rotate(180deg) scale(1.4);
        opacity: 1;
    }
    66% {
        transform: translateY(-80px) translateX(20px) rotate(360deg) scale(0.8);
        opacity: 0.5;
    }
}

@keyframes particleFloat3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(40px, -60px) scale(1.5);
        opacity: 0.9;
    }
}

/* ===== CONNESSIONI AI (Linee) ===== */
.ai-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

.ai-line {
    stroke: url(#lineGradient);
    stroke-width: 1;
    fill: none;
    opacity: 0.4;
    animation: linePulse 3s ease-in-out infinite;
}

.ai-line:nth-child(odd) {
    animation-delay: -1.5s;
    stroke: var(--neon-purple);
    opacity: 0.3;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.2; stroke-dashoffset: 0; }
    50% { opacity: 0.6; stroke-dashoffset: 50; }
}

/* =====================================================
   4. LOGO 3D ANIMATO CON EFFETTO WOW
   ===================================================== */

.logo-3d-container {
    position: relative;
    display: inline-block;
    perspective: 1200px;
    margin-bottom: var(--space-10, 2.5rem);
}

.logo-3d {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: logoFloat 8s ease-in-out infinite;
    will-change: transform;
}

.logo-3d img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: 
        drop-shadow(0 0 30px rgba(34, 211, 238, 0.6))
        drop-shadow(0 0 60px rgba(13, 148, 136, 0.4))
        drop-shadow(0 0 90px rgba(34, 211, 238, 0.2));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    animation: logoPulseGlow 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: translateY(-15px) rotateY(8deg) rotateX(3deg);
    }
    50% {
        transform: translateY(-8px) rotateY(-5deg) rotateX(-2deg);
    }
    75% {
        transform: translateY(-20px) rotateY(6deg) rotateX(4deg);
    }
}

@keyframes logoPulseGlow {
    0%, 100% {
        filter: 
            drop-shadow(0 0 30px rgba(34, 211, 238, 0.6))
            drop-shadow(0 0 60px rgba(13, 148, 136, 0.4))
            drop-shadow(0 0 90px rgba(34, 211, 238, 0.2));
    }
    50% {
        filter: 
            drop-shadow(0 0 40px rgba(34, 211, 238, 0.8))
            drop-shadow(0 0 80px rgba(13, 148, 136, 0.6))
            drop-shadow(0 0 120px rgba(34, 211, 238, 0.3));
    }
}

/* ===== GLOW RING ANIMATO ===== */
.logo-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    transform: translate(-50%, -50%);
    border: 2px solid transparent;
    border-radius: 50%;
    background: 
        linear-gradient(#0a0f1a, #0a0f1a) padding-box,
        conic-gradient(from 0deg, var(--neon-cyan), var(--neon-purple), var(--neon-orange), var(--neon-teal), var(--neon-cyan)) border-box;
    animation: ringRotate 6s linear infinite;
    opacity: 0.7;
}

.logo-glow-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--neon-cyan), transparent, var(--neon-purple), transparent, var(--neon-orange), transparent, var(--neon-cyan));
    filter: blur(20px);
    opacity: 0.6;
    animation: ringRotate 6s linear infinite reverse;
}

/* Secondo anello */
.logo-glow-ring::after {
    content: '';
    position: absolute;
    top: -25px;
    left: -25px;
    right: -25px;
    bottom: -25px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.2);
    animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ringPulse {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        transform: scale(1.05);
    }
}

/* ===== ORBITING DOTS ===== */
.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan-intense);
    top: 50%;
    left: 50%;
    animation: orbitDot 5s linear infinite;
    transform-origin: 0 0;
}

.orbit-dot:nth-child(2) {
    animation-delay: -1.67s;
    background: var(--neon-orange);
    box-shadow: var(--glow-orange-intense);
    width: 8px;
    height: 8px;
}

.orbit-dot:nth-child(3) {
    animation-delay: -3.34s;
    background: var(--neon-purple);
    box-shadow: var(--glow-purple);
    width: 6px;
    height: 6px;
}

@keyframes orbitDot {
    from {
        transform: rotate(0deg) translateX(135px) rotate(0deg);
    }
    to {
        transform: rotate(360deg) translateX(135px) rotate(-360deg);
    }
}

/* =====================================================
   5. TESTI 3D HERO CON EFFETTI
   ===================================================== */

.hero-3d-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--space-8, 2rem);
    max-width: 950px;
}

.hero-3d-title {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    color: #fff;
    text-shadow: 
        0 0 60px rgba(34, 211, 238, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.4);
    margin-bottom: var(--space-4, 1rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.hero-3d-title .text-gradient-3d {
    background: linear-gradient(
        135deg, 
        var(--neon-cyan-bright) 0%, 
        #fff 30%, 
        var(--neon-teal) 50%, 
        #fff 70%, 
        var(--neon-orange) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    background-size: 300% 300%;
    display: inline-block;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-3d-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto var(--space-10, 2.5rem);
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-3d-subtitle strong {
    color: var(--neon-cyan-bright);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

/* =====================================================
   6. CTA BUTTONS 3D CON GLOW
   ===================================================== */

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4, 1rem);
    justify-content: center;
    margin-bottom: var(--space-8, 2rem);
}

.btn-3d {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-4, 1rem) var(--space-8, 2rem);
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: var(--text-lg, 1.125rem);
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    transform: perspective(500px) translateZ(0);
    overflow: hidden;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-3d:hover::before {
    left: 100%;
}

.btn-3d:hover {
    transform: perspective(500px) translateZ(25px) translateY(-5px);
}

.btn-3d:active {
    transform: perspective(500px) translateZ(15px) translateY(-2px);
}

/* Primary 3D - Orange Neon */
.btn-3d-primary {
    background: linear-gradient(135deg, var(--neon-orange) 0%, #ea580c 100%);
    color: #fff;
    box-shadow: 
        0 4px 20px rgba(249, 115, 22, 0.5),
        0 8px 40px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.btn-3d-primary:hover {
    box-shadow: 
        0 8px 30px rgba(249, 115, 22, 0.6),
        0 16px 60px rgba(249, 115, 22, 0.4),
        0 0 80px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* WhatsApp 3D */
.btn-3d-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    box-shadow: 
        0 4px 20px rgba(37, 211, 102, 0.5),
        0 8px 40px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.btn-3d-whatsapp:hover {
    box-shadow: 
        0 8px 30px rgba(37, 211, 102, 0.6),
        0 16px 60px rgba(37, 211, 102, 0.4),
        0 0 80px rgba(37, 211, 102, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* =====================================================
   7. TRUST BADGES 3D GLASSMORPHISM
   ===================================================== */

.trust-badges-3d {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4, 1rem);
    justify-content: center;
    margin-top: var(--space-8, 2rem);
}

.trust-badge-3d {
    display: flex;
    align-items: center;
    gap: var(--space-2, 0.5rem);
    padding: var(--space-3, 0.75rem) var(--space-5, 1.25rem);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.trust-badge-3d i {
    color: var(--neon-cyan);
    font-size: 1.2em;
    text-shadow: 0 0 15px rgba(34, 211, 238, 0.6);
}

.trust-badge-3d:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(34, 211, 238, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* =====================================================
   8. SCROLL INDICATOR ANIMATO
   ===================================================== */

.scroll-indicator-3d {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    z-index: 10;
}

.scroll-indicator-3d i {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
    animation: scrollBounce 2s ease-in-out infinite;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* =====================================================
   9. FLOATING ELEMENTS MIGLIORATI
   ===================================================== */

.float-element {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.float-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.25) 0%, transparent 70%);
    filter: blur(50px);
    animation: floatSlow 20s ease-in-out infinite;
    will-change: transform;
}

.float-circle-orange {
    background: radial-gradient(circle, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    animation-delay: -7s;
    width: 300px;
    height: 300px;
}

.float-circle-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    animation-delay: -14s;
    width: 280px;
    height: 280px;
}

.float-circle-teal {
    background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 70%);
    animation-delay: -3s;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(40px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.95); }
    75% { transform: translate(20px, -20px) scale(1.05); }
}

/* =====================================================
   10. CARDS 3D CON PROFONDITÀ
   ===================================================== */

.card-3d {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    padding: var(--space-8, 2rem);
    box-shadow: var(--shadow-3d);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    border: 1px solid rgba(13, 148, 136, 0.1);
    overflow: hidden;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-teal), var(--neon-cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(3deg) rotateY(-3deg) translateY(-12px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(34, 211, 238, 0.1);
}

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

/* Card Glow Border */
.card-3d-glow {
    position: relative;
}

.card-3d-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--neon-cyan), transparent 40%, transparent 60%, var(--neon-orange));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

/* Card Featured */
.card-featured {
    border: 2px solid rgba(249, 115, 22, 0.3);
    background: linear-gradient(135deg, #fffbf5 0%, #fff 100%);
}

.card-featured::before {
    background: linear-gradient(90deg, var(--neon-orange), var(--neon-orange-bright), var(--neon-orange));
    opacity: 1;
}

/* Card Badge */
.card-badge {
    position: absolute;
    top: var(--space-4, 1rem);
    right: var(--space-4, 1rem);
    padding: var(--space-1, 0.25rem) var(--space-3, 0.75rem);
    background: linear-gradient(135deg, var(--neon-orange), #ea580c);
    color: #fff;
    font-size: var(--text-xs, 0.75rem);
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* =====================================================
   11. ICON BOX 3D
   ===================================================== */

.icon-3d {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-radius: 20px;
    font-size: 2rem;
    color: var(--teal-primary, #0D9488);
    margin-bottom: var(--space-4, 1rem);
    box-shadow: 
        0 4px 15px rgba(13, 148, 136, 0.2),
        inset 0 -3px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: perspective(500px) translateZ(0);
}

.card-3d:hover .icon-3d {
    transform: perspective(500px) translateZ(30px) rotateY(-15deg);
    box-shadow: 
        0 8px 25px rgba(13, 148, 136, 0.3),
        0 0 30px rgba(13, 148, 136, 0.15);
}

.icon-3d-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    color: var(--orange-accent, #F97316);
    box-shadow: 
        0 4px 15px rgba(249, 115, 22, 0.2),
        inset 0 -3px 6px rgba(0, 0, 0, 0.05);
}

.card-3d:hover .icon-3d-orange {
    box-shadow: 
        0 8px 25px rgba(249, 115, 22, 0.3),
        0 0 30px rgba(249, 115, 22, 0.15);
}

/* =====================================================
   12. STATS 3D GLASSMORPHISM
   ===================================================== */

.stats {
    display: grid;
    gap: var(--space-6, 1.5rem);
}

.stats-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.stat-3d {
    text-align: center;
    padding: var(--space-8, 2rem) var(--space-6, 1.5rem);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-3d:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-8px);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(34, 211, 238, 0.15);
}

.stat-3d-number {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon-cyan-bright), #fff, var(--neon-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-2, 0.5rem);
}

.stat-3d-label {
    font-size: var(--text-sm, 0.875rem);
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* =====================================================
   13. SEZIONI 3D
   ===================================================== */

.section-3d {
    position: relative;
    overflow: hidden;
}

/* Mesh gradient per sezioni chiare */
.mesh-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(at 30% 20%, rgba(13, 148, 136, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 10%, rgba(34, 211, 238, 0.06) 0px, transparent 50%),
        radial-gradient(at 10% 60%, rgba(249, 115, 22, 0.04) 0px, transparent 50%),
        radial-gradient(at 90% 80%, rgba(168, 85, 247, 0.04) 0px, transparent 50%);
    pointer-events: none;
}

/* =====================================================
   14. SCROLL ANIMATIONS
   ===================================================== */

[data-animate-3d] {
    opacity: 0;
    transform: perspective(1000px) translateY(50px) rotateX(12deg);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate-3d].visible {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(0);
}

[data-animate-3d="left"] {
    transform: perspective(1000px) translateX(-80px) rotateY(-12deg);
}

[data-animate-3d="left"].visible {
    transform: perspective(1000px) translateX(0) rotateY(0);
}

[data-animate-3d="right"] {
    transform: perspective(1000px) translateX(80px) rotateY(12deg);
}

[data-animate-3d="right"].visible {
    transform: perspective(1000px) translateX(0) rotateY(0);
}

[data-animate-3d="scale"] {
    transform: scale(0.7) translateY(30px);
    opacity: 0;
}

[data-animate-3d="scale"].visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Stagger children */
[data-animate-3d-stagger] > * {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate-3d-stagger].visible > *:nth-child(1) { transition-delay: 0.1s; }
[data-animate-3d-stagger].visible > *:nth-child(2) { transition-delay: 0.2s; }
[data-animate-3d-stagger].visible > *:nth-child(3) { transition-delay: 0.3s; }
[data-animate-3d-stagger].visible > *:nth-child(4) { transition-delay: 0.4s; }
[data-animate-3d-stagger].visible > *:nth-child(5) { transition-delay: 0.5s; }
[data-animate-3d-stagger].visible > *:nth-child(6) { transition-delay: 0.6s; }

[data-animate-3d-stagger].visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   15. WHATSAPP FLOAT 3D
   ===================================================== */

.whatsapp-float-3d {
    position: fixed;
    bottom: var(--space-6, 1.5rem);
    right: var(--space-6, 1.5rem);
    width: 68px;
    height: 68px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    z-index: 9999;
    box-shadow: 
        0 4px 20px rgba(37, 211, 102, 0.5),
        0 8px 40px rgba(37, 211, 102, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float-3d:hover {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 
        0 10px 35px rgba(37, 211, 102, 0.6),
        0 20px 60px rgba(37, 211, 102, 0.4),
        0 0 100px rgba(37, 211, 102, 0.2);
    color: #fff;
}

@keyframes whatsappPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5), 0 8px 40px rgba(37, 211, 102, 0.3); 
    }
    50% { 
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 8px 50px rgba(37, 211, 102, 0.4); 
    }
}

/* =====================================================
   16. RESPONSIVE - MOBILE OPTIMIZATIONS
   ===================================================== */

/* Tablet */
@media (max-width: 768px) {
    /* Riduce intensità ma mantiene impatto */
    .hero-grid {
        opacity: 0.4;
        animation-duration: 35s;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
    
    .particles-container .particle:nth-child(n+20) {
        display: none;
    }
    
    .logo-3d {
        width: 160px;
        height: 160px;
    }
    
    .logo-glow-ring {
        width: 200px;
        height: 200px;
    }
    
    .orbit-dot {
        width: 8px;
        height: 8px;
    }
    
    .orbit-dot:nth-child(3) {
        display: none;
    }
    
    .float-circle {
        width: 220px;
        height: 220px;
    }
    
    .btn-3d {
        padding: var(--space-3, 0.75rem) var(--space-6, 1.5rem);
        font-size: var(--text-base, 1rem);
    }
    
    .card-3d:hover {
        transform: perspective(1000px) translateY(-6px);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn-3d {
        width: 100%;
        max-width: 300px;
    }
    
    [data-animate-3d] {
        transform: translateY(35px);
    }
    
    [data-animate-3d="left"],
    [data-animate-3d="right"] {
        transform: translateY(35px);
    }
    
    .trust-badges-3d {
        flex-direction: column;
        align-items: center;
    }
    
    .trust-badge-3d {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
    
    /* Card 3D tablet */
    .card-3d {
        padding: 24px 20px;
    }
    
    .card-3d h3, .card-3d h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .card-3d p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    /* Check-list fix tablet */
    .card-3d .check-list,
    .check-list {
        margin-bottom: 16px;
    }
    
    .card-3d .check-list li,
    .check-list li {
        padding-left: 28px;
        margin-bottom: 10px;
        font-size: 0.95rem;
        line-height: 1.55;
    }
    
    .card-3d .check-list li::before,
    .check-list li::before {
        width: 20px;
        font-size: 1rem;
        top: 0;
    }
    
    .icon-3d {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        margin-bottom: 16px;
    }
}

/* Mobile piccolo */
@media (max-width: 480px) {
    .hero-grid {
        opacity: 0.25;
    }
    
    .particles-container .particle:nth-child(n+12) {
        display: none;
    }
    
    .logo-3d {
        width: 130px;
        height: 130px;
    }
    
    .logo-glow-ring {
        width: 165px;
        height: 165px;
    }
    
    .logo-glow-ring::after {
        display: none;
    }
    
    .orbit-dot {
        display: none;
    }
    
    .float-circle {
        display: none;
    }
    
    .hero-3d {
        min-height: auto;
        padding: calc(80px + var(--space-10, 2.5rem)) var(--space-4, 1rem) var(--space-10, 2.5rem);
    }
    
    .hero-3d-content {
        padding: var(--space-4, 1rem);
    }
    
    .hero-3d-title {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }
    
    .hero-3d-subtitle {
        font-size: 1rem;
    }
    
    .card-3d {
        padding: 20px 16px;
    }
    
    .card-3d h3, .card-3d h4 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }
    
    .card-3d p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Check-list fix mobile piccolo */
    .card-3d .check-list li,
    .check-list li {
        padding-left: 26px;
        margin-bottom: 10px;
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .card-3d .check-list li::before,
    .check-list li::before {
        width: 18px;
        font-size: 0.9rem;
    }
    
    .stat-3d {
        padding: var(--space-5, 1.25rem);
    }
    
    .icon-3d {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .whatsapp-float-3d {
        width: 56px;
        height: 56px;
        font-size: 1.6rem;
        bottom: 16px;
        right: 16px;
    }
}

/* =====================================================
   17. REDUCED MOTION - ACCESSIBILITÀ
   ===================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-grid,
    .particle,
    .logo-3d,
    .logo-3d img,
    .logo-glow-ring,
    .logo-glow-ring::before,
    .logo-glow-ring::after,
    .orbit-dot,
    .float-circle,
    .whatsapp-float-3d,
    .hero-gradient-overlay,
    .hero-3d::before {
        animation: none !important;
    }
    
    .card-3d:hover,
    .btn-3d:hover,
    .stat-3d:hover,
    .trust-badge-3d:hover {
        transform: none !important;
    }
    
    [data-animate-3d],
    [data-animate-3d-stagger] > * {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .btn-3d::before {
        display: none;
    }
}

/* =====================================================
   18. HIGH CONTRAST MODE
   ===================================================== */

@media (prefers-contrast: high) {
    .hero-3d {
        background: #000;
    }
    
    .hero-3d-title,
    .hero-3d-subtitle,
    .stat-3d-label {
        color: #fff;
        text-shadow: none;
    }
    
    .card-3d {
        border: 2px solid #000;
    }
    
    .btn-3d {
        border: 2px solid #fff;
    }
}
