* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c1ff72;
    --primary-light: #d4ff8f;
    --primary-dark: #a8e85c;
    --secondary: #f1f5f9;
    --accent: #000000;
    --black: #000000;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #000000;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--black) 0%, #1a1a1a 50%, var(--black) 100%);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(193, 255, 114, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 80% 60%, rgba(193, 255, 114, 0.06) 0%, transparent 25%),
        radial-gradient(circle at 40% 80%, rgba(193, 255, 114, 0.04) 0%, transparent 25%),
        radial-gradient(circle at 70% 20%, rgba(193, 255, 114, 0.05) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

html {
    scroll-behavior: smooth;
}

/* SIDE PANEL HEADER */
.header {
    position: fixed;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}

/* Menu Toggle Button - Enhanced */
.menu-toggle {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(193, 255, 114, 0.1), transparent);
    transition: left 0.6s ease;
}

.menu-toggle:hover {
    background: rgba(193, 255, 114, 0.12);
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    color: var(--primary);
    box-shadow: 0 8px 30px rgba(193, 255, 114, 0.2);
}

.menu-toggle:hover::before {
    left: 100%;
}

.menu-toggle svg {
    transition: all 0.3s ease;
}

.menu-toggle:hover svg {
    transform: rotate(180deg) scale(1.1);
}

/* Side Panel - Enhanced */
.side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 30, 0.95) 50%, rgba(10, 10, 20, 0.98) 100%);
    backdrop-filter: blur(40px) saturate(1.2);
    z-index: 1001;
    transition: right 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 3rem 2rem 8rem 2rem;
    border-left: 2px solid rgba(193, 255, 114, 0.3);
    box-shadow: -20px 0 80px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
}

.side-panel.active {
    right: 0;
    animation: panelSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Panel slide-in animation */
@keyframes panelSlideIn {
    0% {
        right: -100%;
        opacity: 0;
        transform: translateX(50px);
    }
    50% {
        opacity: 0.8;
    }
    100% {
        right: 0;
        opacity: 1;
        transform: translateX(0);
    }
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(193, 255, 114, 0.2);
    position: relative;
}

.panel-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    animation: headerLineExpand 1s ease-out 0.3s forwards;
}

@keyframes headerLineExpand {
    to { width: 60px; }
}

.panel-logo img {
    height: 30px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.panel-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 1.2rem 0 1.2rem 3rem;
    margin: 0.5rem 0;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(30px);
    animation: navItemSlideIn 0.5s ease-out forwards;
}

.panel-nav a:nth-child(1) { animation-delay: 0.1s; }
.panel-nav a:nth-child(2) { animation-delay: 0.2s; }
.panel-nav a:nth-child(3) { animation-delay: 0.3s; }
.panel-nav a:nth-child(4) { animation-delay: 0.4s; }

@keyframes navItemSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.panel-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.panel-nav a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(193, 255, 114, 0.1), rgba(193, 255, 114, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

.panel-nav a .nav-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    opacity: 0.7;
}

.panel-nav a:hover {
    color: var(--primary);
    transform: translateX(8px) scale(1.02);
    background: rgba(193, 255, 114, 0.08);
    border-color: rgba(193, 255, 114, 0.3);
    box-shadow: 0 8px 30px rgba(193, 255, 114, 0.15);
}

.panel-nav a:hover::before {
    transform: scaleY(1);
}

.panel-nav a:hover::after {
    opacity: 1;
}

.panel-nav a:hover .nav-icon {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

/* Special styling for contact link */
.panel-nav a[href="#contact"] {
    background: linear-gradient(135deg, rgba(193, 255, 114, 0.1), rgba(193, 255, 114, 0.05));
    border: 1px solid rgba(193, 255, 114, 0.2);
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

.panel-nav a[href="#contact"]:hover {
    background: linear-gradient(135deg, rgba(193, 255, 114, 0.2), rgba(193, 255, 114, 0.1));
    border-color: rgba(193, 255, 114, 0.4);
    box-shadow: 0 8px 30px rgba(193, 255, 114, 0.2);
}

.panel-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    padding: 1.2rem 2.5rem 1.2rem 3.5rem;
    margin: 2rem 0 0.5rem 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(193, 255, 114, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: ctaSlideIn 0.6s ease-out 0.5s forwards;
}

@keyframes ctaSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.panel-cta .cta-icon {
    position: absolute;
    left: 1.2rem;
    font-size: 1.1rem;
    transition: all 0.4s ease;
}

.panel-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 20px 50px rgba(193, 255, 114, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.panel-cta:hover::before {
    left: 100%;
}

.panel-cta:hover .cta-icon {
    transform: scale(1.2) rotate(15deg);
}

/* Panel Footer */
.panel-footer {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(193, 255, 114, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: footerSlideIn 0.6s ease-out 0.6s forwards;
}

@keyframes footerSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-info-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 1rem;
    text-align: center;
}

.panel-social {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.social-item:hover {
    background: rgba(193, 255, 114, 0.1);
    border-color: rgba(193, 255, 114, 0.3);
    color: var(--primary);
    transform: scale(1.05);
}

.social-icon {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.social-item:hover .social-icon {
    transform: scale(1.2);
}

/* Decorative elements */
.side-panel::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(193, 255, 114, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatingGlow 4s ease-in-out infinite;
}

.side-panel::after {
    content: '';
    position: absolute;
    bottom: 30%;
    right: -20px;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(193, 255, 114, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatingGlow 3s ease-in-out infinite reverse;
}

@keyframes floatingGlow {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.8;
    }
}

/* Overlay - Enhanced */
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
    animation: overlayFadeIn 0.4s ease-out;
}

@keyframes overlayFadeIn {
    0% {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    100% {
        opacity: 1;
        backdrop-filter: blur(2px);
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f0f1a;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transform: rotate(180deg);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    text-align: left;
    z-index: 2;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 900px;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    background: var(--primary);
    color: var(--accent);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(193, 255, 114, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.hero-stats {
    margin-top: 2rem;
}

.hero-stats p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Video Prominente Hero */
.hero-video-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 90vh;
    border-radius: 30px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-video-prominent {
    width: 100%;
    height: 100%;
    object-fit: cover;
    rotate: 180deg;
}

.hero-content-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 4rem 3rem 3rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s ease;
}

.hero-content-overlay.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-text-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    transform: translateY(-60px);
}

/* Animazioni sequenziali per gli elementi del testo */
.hero-text-box .hero-title {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease;
    transition-delay: 0.3s;
}

.hero-text-box .hero-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.5s;
}

.hero-text-box .hero-cta {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    transition-delay: 0.7s;
}

/* Quando il contenuto overlay è visibile, mostra tutti gli elementi */
.hero-content-overlay.show .hero-title,
.hero-content-overlay.show .hero-subtitle,
.hero-content-overlay.show .hero-cta {
    opacity: 1;
    transform: translateY(0);
}



.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.btn-secondary {
    background: var(--primary);
    color: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* About Section - Updated to use unified background */
.about {
    padding: 8rem 2rem;
    position: relative;
}

/* Removed - using unified background */

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about .section-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--black);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.3);
}

.about .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about .section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about .section-description:last-child {
    margin-bottom: 3rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(193, 255, 114, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(193, 255, 114, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 1rem;
}

/* Why Section - Updated with new clean design */
.why-section {
    padding: 8rem 2rem;
    position: relative;
}

.why-section .section-content {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(193, 255, 114, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    border-color: rgba(193, 255, 114, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.why-card:hover::before {
    opacity: 1;
}

.why-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.why-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.why-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* AI Brain Animation */
.ai-brain {
    position: relative;
    width: 40px;
    height: 40px;
}

.brain-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--black);
    border-radius: 50%;
    animation: brainPulse 2s ease-in-out infinite;
}

.brain-dot:nth-child(1) { top: 8px; left: 8px; animation-delay: 0s; }
.brain-dot:nth-child(2) { top: 8px; right: 8px; animation-delay: 0.5s; }
.brain-dot:nth-child(3) { bottom: 8px; left: 8px; animation-delay: 1s; }
.brain-dot:nth-child(4) { bottom: 8px; right: 8px; animation-delay: 1.5s; }

.brain-connection {
    position: absolute;
    height: 2px;
    background: var(--black);
    opacity: 0.6;
}

.brain-connection:nth-child(1) {
    top: 50%;
    left: 12px;
    right: 12px;
    animation: connectionPulse 3s ease-in-out infinite;
}

.brain-connection:nth-child(2) {
    top: 12px;
    bottom: 12px;
    left: 50%;
    width: 2px;
    animation: connectionPulse 3s ease-in-out infinite 1.5s;
}

/* Performance Chart Animation */
.performance-chart {
    position: relative;
    width: 40px;
    height: 30px;
    display: flex;
    align-items: end;
    gap: 3px;
}

.chart-bar {
    width: 6px;
    background: var(--white);
    border-radius: 3px 3px 0 0;
    animation: chartGrow 2s ease-in-out infinite;
}

.chart-bar:nth-child(1) { animation-delay: 0s; }
.chart-bar:nth-child(2) { animation-delay: 0.2s; }
.chart-bar:nth-child(3) { animation-delay: 0.4s; }
.chart-bar:nth-child(4) { animation-delay: 0.6s; }

.chart-trend {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--white) 50%, transparent 100%);
    animation: trendMove 3s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes chartGrow {
    0%, 100% { transform: scaleY(0.8); }
    50% { transform: scaleY(1.2); }
}

@keyframes trendMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* CTA Section - Updated to use unified background */
.cta-section {
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    background: black;
}

/* Removed - using unified background */

.cta-section .section-title {
    color: var(--white);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.cta-section .section-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Services Section - Updated to use unified background */
.services {
    padding: 8rem 2rem;
    position: relative;
}

/* Removed - using unified background */

.services .section-content {
    position: relative;
    z-index: 2;
}

.services .section-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--black);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.3);
}

.services .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services .section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 4rem;
    max-width: 700px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(193, 255, 114, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    border-color: rgba(193, 255, 114, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

/* .service-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 30px 30px 0 0;
    z-index: 1;
} */

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Process Section - Updated to use unified background */
.process {
    padding: 8rem 2rem;
    position: relative;
}

/* Removed - using unified background */

.process .section-content {
    position: relative;
    z-index: 2;
    margin-bottom: 4rem;
}

.process .section-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--black);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.3);
}

.process .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.process .section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 2;
}

.process-step {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* .process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px 20px 0 0;
    z-index: 1;
} */

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.process-step p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Consulting Section - Updated to use unified background */
.consulting {
    padding: 8rem 2rem;
    position: relative;
}

/* Removed - using unified background */

.consulting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.consulting .section-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--black);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.3);
}

.consulting .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.consulting .section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.consulting-features {
    list-style: none;
    margin-bottom: 2rem;
}

.consulting-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.consulting-features .icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.3);
}

/* Consultation Box - Enhanced styling */
.consultation-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(193, 255, 114, 0.2);
    padding: 3.5rem 3rem;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.consultation-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(193, 255, 114, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.consultation-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    border-color: rgba(193, 255, 114, 0.4);
}

.consultation-box:hover::before {
    opacity: 1;
}

/* .consultation-box::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 30px 30px 0 0;
    z-index: 1;
} */

.consultation-title {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.consultation-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.consultation-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--black);
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(193, 255, 114, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.consultation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(193, 255, 114, 0.5);
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Footer */
.footer {
    background: black;
    color: var(--primary);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

/* Responsive */
/* Comportamento desktop-only per header collassato */
@media (min-width: 769px) {
    /* Desktop - mantieni logo a sinistra e navbar a destra */
    .header {
        justify-content: space-between;
    }
    
    .navbar {
        justify-content: flex-end;
    }
    
    .header.collapsed .navbar {
        border-radius: 30px;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Header ottimizzato per mobile */
    .header {
        top: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    /* Logo rimane fuori dal background */
    .logo img {
        height: 28px;
    }
    
    .header.collapsed .logo img {
        height: 24px;
    }
    
    /* Navbar su mobile - nascosta nella hero, visibile quando collapsed */
    .navbar {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.9);
        transition: all 0.3s ease;
        padding: 0.5rem 1.25rem;
        border-radius: 25px;
        gap: 0;
    }
    
    /* Mostra navbar solo quando header è collapsed su mobile */
    .header.collapsed .navbar {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
        padding: 0.5rem 1rem;
    }
    
    /* Nascondi navigazione su mobile */
    .nav {
        display: none;
    }
    
    /* CTA button styling per mobile */
    .cta-nav {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }
    
    /* Hero ottimizzato per mobile */
    .hero-content {
        padding: 0 1.5rem;
        text-align: center !important;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.2rem);
        margin-bottom: 1rem;
        line-height: 1.1;
    }
    
    .hero-title .highlight {
        padding: 0.1rem 0.6rem;
        border-radius: 8px;
        display: inline-block;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 3rem;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }
    
    /* Services ottimizzato per mobile */
    .services {
        padding: 4rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 3rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Altri elementi mobile */
    .about-content,
    .consulting-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* NASCONDERE ABOUT-STATS SU MOBILE */
    .about-stats {
        display: none;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .process-step {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.2;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .about, .services, .process, .consulting, .why-section {
        padding: 4rem 1.5rem;
    }
    
    .why-content {
        gap: 2rem;
    }
    
    .why-item {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .why-visual {
        min-width: auto;
        height: auto;
    }
    
    .why-text h3 {
        font-size: 1.3rem;
    }
    
    .why-text p {
        font-size: 1rem;
    }
    
    .why-divider {
        margin: 1rem 0;
    }
    
    .divider-line {
        width: 60px;
    }
    
    .cta-section {
        padding: 4rem 1.5rem;
    }

    .menu-toggle {
        padding: 0.8rem 1.2rem;
        font-size: 0.8rem;
        gap: 0.4rem;
    }

    .side-panel {
        max-width: 100%;
        padding: 2rem 1.5rem 6rem 1.5rem;
    }

    .panel-header {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .panel-nav {
        gap: 0;
    }

    .panel-nav a {
        font-size: 1.2rem;
        padding: 1rem 1rem;
        margin: 0.3rem 0;
        text-align: left;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .panel-footer {
        bottom: 1.5rem;
        left: 1.5rem;
        right: 1.5rem;
        padding-top: 1.5rem;
    }

    .panel-info-text {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
    }

    .social-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Hero selector responsive */
    /* Hero Mobile */
    .hero-video-frame {
        width: 95%;
        height: 50vh;
        top: 30%;
        border-radius: 20px;
    }

    .hero-content-overlay {
        padding: 2rem 1.5rem 2rem;
    }

    .hero-text-box {
        transform: translateY(-80px);
    }

    .hero-text-box {
        padding: 0;
    }
}

@media (max-width: 480px) {
    /* Ultra mobile per schermi molto piccoli */
    .header {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .menu-toggle {
        padding: 0.7rem 1rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }

    .side-panel {
        padding: 1.5rem 1rem 5rem 1rem;
    }

    .panel-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .panel-nav a {
        font-size: 1.1rem;
        padding: 0.9rem 0.8rem;
        margin: 0.2rem 0;
        text-align: left;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .panel-footer {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        padding-top: 1rem;
    }

    .panel-info-text {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .social-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .panel-cta {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
        text-align: center !important;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 10vw, 2.8rem);
        line-height: 1.05;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }

    .process-step {
        padding: 1.5rem 1rem;
    }
    
    .services, .about, .process, .consulting, .cta-section, .why-section {
        padding: 3rem 1rem;
    }
    
    .why-item {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .why-text h3 {
        font-size: 1.1rem;
    }
    
    .why-text p {
        font-size: 0.95rem;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
    }
    
    .why-visual {
        min-width: auto;
        height: 100px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 10vw, 2rem);
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility classes */
.text-center {
    text-align: center;
}

/* General styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-badge {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--black);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.3);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* CSS file cleaned up - all unused option styles removed */

/* All unused option styles completely removed */ 