/* --- CONFIGURAZIONE E VARIABILI --- */
:root {
    --primary: #0EA5E9;       /* Sky Blue */
    --primary-dark: #0284C7;
    --secondary: #06B6D4;     /* Cyan */
    --accent: #F59E0B;        /* Amber */
    --dark: #0F172A;          /* Navy Dark */
    --light: #F8FAFC;         /* Light Gray */
    --white: #FFFFFF;
    --text-main: #334155;
    --text-light: #64748B;
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --shadow: 0 10px 40px -10px rgba(14, 165, 233, 0.2);
}

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

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

h1, h2, h3, .counter { font-family: 'Poppins', sans-serif; color: var(--dark); }
a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white !important;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}
.btn-primary:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.5);
    color: white !important;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* --- NAVBAR --- */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-content { display: flex; justify-content: space-between; align-items: center; }

.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    color: var(--primary-dark); 
    display: flex; 
    align-items: center; 
    gap: 10px;
    z-index: 1002;
}

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--dark); font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.hamburger { 
    display: none; 
    font-size: 1.5rem; 
    color: var(--dark); 
    cursor: pointer;
    z-index: 1002;
    position: relative;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 160px; /* Un po' più spazio sopra per la navbar */
    padding-bottom: 80px;
    /* Sfondo leggermente più pulito */
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 50%),
                radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.05), transparent 50%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

/* Badge e Testi (Invariati) */
.badge {
    background: rgba(14, 165, 233, 0.1); color: var(--primary);
    padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
    margin-bottom: 20px; display: inline-block;
}

.hero-text h1 { font-size: 3.5rem; line-height: 1.15; margin-bottom: 20px; letter-spacing: -1px;}
.hero-text p { font-size: 1.15rem; color: var(--text-light); margin-bottom: 35px; max-width: 90%; }
.cta-group { display: flex; align-items: center; }

/* --- NUOVO VISUAL SEMPLICE (Card Fluttuante) --- */
.hero-visual {
    position: relative;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Bagliore di sfondo morbido */
.hero-glow {
    position: absolute;
    width: 350px; height: 350px;
    background: var(--gradient);
    filter: blur(100px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

/* La card principale in stile "vetro" */
.glass-preview-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.65); /* Trasparenza */
    backdrop-filter: blur(20px); /* Effetto sfocatura dietro */
    -webkit-backdrop-filter: blur(20px); /* Per Safari */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 25px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    /* Animazione fluttuante molto lenta e dolce */
    animation: gentleFloat 8s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Stili interni della card */
.card-header-dots {
    display: flex; align-items: center; margin-bottom: 25px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot.red { background: #EF4444; } .dot.yellow { background: #F59E0B; } .dot.green { background: #10B981; }

.card-body { display: flex; flex-direction: column; gap: 15px; }

.flight-row {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 15px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.5);
    transition: 0.3s;
}
.flight-row:hover { background: rgba(255, 255, 255, 0.8); transform: translateX(5px); }

.flight-icon {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-right: 15px;
}
.flight-icon.up { background: rgba(14, 165, 233, 0.1); color: var(--primary); }
.flight-icon.down { background: rgba(6, 182, 212, 0.1); color: var(--secondary); }

.flight-info { flex-grow: 1; }
.flight-info strong { display: block; font-size: 1rem; color: var(--dark); }
.flight-info span { font-size: 0.85rem; color: var(--text-light); }

.status-badge {
    padding: 5px 10px; border-radius: 30px; font-size: 0.75rem; font-weight: 600;
}
.status-badge.on-time { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.status-badge.delayed { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }

.mini-stats-row {
    display: flex; gap: 15px; margin-top: 10px; padding-top: 15px; border-top: 1px solid rgba(0,0,0,0.05);
}
.mini-stat {
    display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); font-weight: 500;
}
.mini-stat i { color: var(--primary); }

/* Responsive per la nuova Hero */
@media (max-width: 768px) {
    .hero { padding-top: 120px; padding-bottom: 60px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .cta-group { justify-content: center; }
    /* Su mobile nascondiamo la card complessa o la semplifichiamo */
    .hero-visual { height: auto; margin-top: 20px; }
    .glass-preview-card { max-width: 100%; animation: none; /* Niente float su mobile per performance */ }
}

/* --- COUNTERS SECTION --- */
.counters-section {
    background: var(--dark);
    padding: 60px 0;
    color: white;
    margin: 40px 0;
    border-radius: 0; /* Full width band */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-box i { font-size: 2rem; color: var(--secondary); margin-bottom: 15px; }
.stat-box h3 { font-size: 3rem; color: white; display: inline-block; margin-bottom: 5px; }
.stat-box span { font-size: 1.5rem; color: var(--primary); }
.stat-box p { color: #94A3B8; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }

/* --- FEATURES ZIG-ZAG --- */
.features-section { padding: 80px 0; }
.section-title { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-content h3 { font-size: 2rem; margin-bottom: 15px; }
.feature-content p { color: var(--text-light); margin-bottom: 25px; }
.feature-list li { margin-bottom: 10px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.feature-list i { color: var(--success); }

.icon-small {
    width: 50px; height: 50px; background: rgba(14, 165, 233, 0.1);
    color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}

.feature-image { position: relative; }
.feature-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.image-placeholder {
    width: 100%; height: 350px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: white;
    box-shadow: var(--shadow);
}
.gradient-1 { background: linear-gradient(135deg, #3B82F6, #0EA5E9); }
.gradient-2 { background: linear-gradient(135deg, #10B981, #06B6D4); }
.gradient-3 { background: linear-gradient(135deg, #6366F1, #8B5CF6); }

/* --- TESTIMONIALS --- */
.testimonials-section { padding: 60px 0; background: #F1F5F9; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.review-card {
    background: white; padding: 30px; border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.stars { color: var(--accent); margin-bottom: 15px; letter-spacing: 2px; }
.review-card p { font-style: italic; color: var(--text-light); margin-bottom: 20px; }
.author { display: flex; align-items: center; gap: 15px; }
.author img { width: 50px; height: 50px; border-radius: 50%; }
.author h4 { font-size: 1rem; margin-bottom: 2px; }
.author span { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* --- FOOTER --- */
footer { background: var(--dark); color: #94A3B8; padding: 60px 0 20px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: white; margin-bottom: 15px; }
.footer-links h4 { color: white; margin-bottom: 20px; }
.footer-links a { display: block; color: #94A3B8; margin-bottom: 10px; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed; 
        top: 0; 
        right: 0; 
        height: 100vh; 
        width: 70%;
        background: white; 
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateX(100%); 
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { 
        font-size: 1.2rem;
        padding: 10px 20px;
    }
    .hamburger { display: block; }
    
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-visual { height: 300px; margin-top: 30px; }
    .cta-group { justify-content: center; flex-wrap: wrap; }
    .btn-outline { margin-left: 0; margin-top: 10px; }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    .feature-row { grid-template-columns: 1fr; gap: 40px; }
    .feature-row.reverse { display: flex; flex-direction: column-reverse; }
    .feature-image img { height: 250px; }
    
    .reviews-grid { grid-template-columns: 1fr; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}