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

:root {
    --primary: #c1ff72;
    --primary-light: #d4ff8f;
    --primary-dark: #a8e85c;
    --secondary: #f1f5f9;
    --accent: #000000;
    --black: #0f172a;
    --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: #0f172a;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header */
.header {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 90vw;
    width: auto;
}

/* Header contratto */
.header.collapsed {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    top: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.collapsed .header-content {
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    opacity: 1;
    transition: all 0.4s ease;
}

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

.header.collapsed .logo img {
    height: 28px;
}

.nav {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateX(0);
}

.header.collapsed .nav {
    gap: 1.25rem;
}

.nav a {
    color: rgba(15, 23, 42, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    white-space: nowrap;
}

.nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 30px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav a:hover {
    color: var(--gray-900);
    transform: translateY(-1px);
}

/* Link navbar quando header è contratto */
.header.collapsed .nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.header.collapsed .nav a::before {
    background: rgba(255, 255, 255, 0.1);
}

.header.collapsed .nav a:hover {
    color: var(--white);
}

.cta-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    padding: 0.6rem 1.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: 0.9rem;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 255, 114, 0.4);
}

/* CTA quando navbar è contratta */
.header.collapsed .cta-nav {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    padding: 0.5rem 1.25rem;
    box-shadow: 0 4px 15px rgba(193, 255, 114, 0.4);
}

.header.collapsed .cta-nav:hover {
    box-shadow: 0 6px 20px rgba(193, 255, 114, 0.5);
}

/* 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;
}

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

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

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

.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 */
.about {
    padding: 8rem 2rem;
    background: var(--gray-50);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.stat-card {
    text-align: center;
    padding: 2rem;
    background: var(--primary-dark);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-600);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: var(--accent);
    text-align: center;
}

.cta-section .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Services Section */
.services {
    padding: 8rem 2rem;
    background: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Process Section */
.process {
    padding: 8rem 2rem;
    background: var(--accent);
}

.process .section-badge {
    background: var(--primary);
    color: var(--accent);
}

.process .section-title {
    color: var(--white);
}

.process .section-description {
    color: rgba(255, 255, 255, 0.8);
}

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

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
}

.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 */
.consulting {
    padding: 8rem 2rem;
    background: var(--white);
}

.consulting-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.consulting-features {
    list-style: none;
}

.consulting-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--gray-600);
}

.consulting-features .icon {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
    /* Header ottimizzato per mobile */
    .header {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        padding: 0.75rem 1rem;
        max-width: none;
        width: auto;
        border-radius: 50px;
    }
    
    .header.collapsed {
        padding: 0.5rem 1rem;
        right: 1rem;
        left: 1rem;
        transform: none;
        width: auto;
        top: 0.5rem;
    }
    
    .nav {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
        gap: 1rem;
    }
    
    .header.collapsed .header-content {
        justify-content: center;
        gap: 0;
    }
    
    .logo {
        display: flex;
    }
    
    .logo img {
        height: 28px;
    }
    
    .header.collapsed .logo {
        display: none;
    }
    
    .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;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
        margin-bottom: 1rem;
    }
    
    .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;
    }
    
    .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 {
        padding: 4rem 1.5rem;
    }
    
    .cta-section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Ultra mobile per schermi molto piccoli */
    .header {
        top: 0.75rem;
        right: 0.75rem;
        left: 0.75rem;
        transform: none;
        padding: 0.6rem 0.8rem;
        border-radius: 40px;
    }
    
    .header.collapsed {
        right: 0.75rem;
        left: 0.75rem;
        transform: none;
        top: 0.5rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 12vw, 3rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .services, .about, .process, .consulting, .cta-section {
        padding: 3rem 1rem;
    }
    
    .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;
} 