/* IMPORTA FONT PREMIUM */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Outfit:wght@700;900&display=swap');

:root {
    --bg-main: #020617;
    --bg-card: #0F172A;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-blue: #3B82F6;
    --accent-glow: rgba(59, 130, 246, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-main); color: var(--text-main); line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; }

/* =========================================
   1. NAVBAR & DROPDOWN
   ========================================= */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05); padding: 15px 5%;
    display: flex; justify-content: space-between; align-items: center;
    transition: all 0.3s ease;
}
nav.scrolled { padding: 10px 5%; background: rgba(2, 6, 23, 0.95); }

.nav-brand { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; white-space: nowrap; }
.nav-brand img { height: 32px; width: auto; object-fit: contain; }

.nav-links { display: flex; gap: 25px; align-items: center; transition: opacity 0.3s ease; }
nav.scrolled .nav-links { opacity: 0; pointer-events: none; position: absolute; visibility: hidden; }

.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 15px; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

.dropdown { position: relative; display: inline-block; }
.dropbtn { 
    background: none; border: none; color: var(--text-muted); 
    font-size: 15px; font-weight: 600; cursor: pointer; padding: 0; 
    font-family: 'Inter', sans-serif;
}
.dropdown-content { 
    display: none; position: absolute; background-color: rgba(15, 23, 42, 0.95); 
    backdrop-filter: blur(10px); min-width: 220px; box-shadow: 0px 10px 30px rgba(0,0,0,0.5); 
    z-index: 1000; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); 
    margin-top: 10px; overflow: hidden;
}
.dropdown-content.lang-drop { min-width: 140px; right: 0; left: auto; }

.dropdown-content a { 
    color: #CBD5E1; padding: 16px 20px; text-decoration: none; 
    display: block; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dropdown-content a:hover { background-color: rgba(59, 130, 246, 0.2); color: #fff; }
.dropdown-content.show { display: block !important; animation: slideUp 0.2s ease; }

.btn-nav-download { 
    background: var(--accent-blue); color: #fff !important; padding: 8px 18px; 
    border-radius: 20px; text-transform: uppercase; font-size: 12px !important; 
    letter-spacing: 1px; transition: 0.3s; text-decoration: none !important;
    display: flex; align-items: center; gap: 6px;
}
.btn-nav-download:hover { background: #1D4ED8; box-shadow: 0 5px 15px var(--accent-glow); transform: translateY(-1px); }

/* =========================================
   2. ELEMENTI COMUNI E VIDEO
   ========================================= */
.hero-tag { display: inline-block; padding: 6px 14px; background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); color: var(--accent-blue); border-radius: 30px; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }

.video-showcase { width: 100%; max-width: 900px; margin: 40px auto; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); }
.video-showcase video { width: 100%; height: auto; display: block; }

.phone-video-container { max-width: 300px; margin: 0 auto; border-radius: 25px; border: 4px solid #1E293B; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.5); position: relative; }
.phone-video-container video, .phone-video-container img { width: 100%; height: auto; display: block; }

.dual-phone-grid { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.dual-phone-grid .phone-video-container { flex: 1; max-width: 280px; margin: 0; }

.feature-row { display: flex; align-items: center; gap: 30px; max-width: 1000px; margin: 0 auto; text-align: left; }
.feature-text { flex: 1; }
.feature-text p { color: var(--text-muted); font-size: 18px; }
.feature-visual { flex: 1; display: flex; justify-content: center; }

/* =========================================
   EFFETTO NEON GLOW ANIMATO
   ========================================= */
.hero-section {
    position: relative;
    padding: 140px 5% 100px 5%;
    text-align: center;
    overflow: hidden; /* Blocca le luci dentro questa sezione */
}

.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* Sfera in alto a sinistra (Blu) */
.hero-section::before {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    max-width: 600px;
    max-height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, rgba(59, 130, 246, 0) 70%);
    animation: floatGlow1 8s infinite alternate ease-in-out;
}

/* Sfera in basso a destra (Viola/Indaco) */
.hero-section::after {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    max-width: 500px;
    max-height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, rgba(139, 92, 246, 0) 70%);
    animation: floatGlow2 11s infinite alternate ease-in-out;
}

/* MOVIMENTI AMPI, PULSAZIONE E SCALA */
@keyframes floatGlow1 {
    0%   { transform: translate(0, 0) scale(0.9); opacity: 0.4; }
    33%  { transform: translate(120px, 60px) scale(1.1); opacity: 0.8; }
    66%  { transform: translate(60px, 140px) scale(0.95); opacity: 0.5; }
    100% { transform: translate(-30px, 80px) scale(1.15); opacity: 0.7; }
}

@keyframes floatGlow2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.3; }
    33%  { transform: translate(-130px, -90px) scale(1.2); opacity: 0.7; }
    66%  { transform: translate(-50px, -150px) scale(0.9); opacity: 0.4; }
    100% { transform: translate(40px, -60px) scale(1.1); opacity: 0.6; }
}

/* =========================================
   3. ECOSISTEMA PREMIUM E IMMAGINI
   ========================================= */
.special-title-container {
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 30px; max-width: 700px;
    margin: 0 auto 50px auto; text-align: center; position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.special-title-container::after {
    content: ''; position: absolute; bottom: -1px; left: 50%;
    transform: translateX(-50%); width: 150px; height: 3px;
    background: linear-gradient(90deg, transparent, #3B82F6, transparent);
    box-shadow: 0 0 15px #3B82F6;
}

.eco-cards-container { display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }

/* FIX DEFINITIVO ECOSISTEMA DESKTOP */
.eco-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px; 
    padding: 0;
    display: flex; 
    align-items: center; /* Centra verticalmente */
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.3s ease; 
    overflow: hidden; 
}
.eco-card:hover { border-color: rgba(59, 130, 246, 0.4); transform: translateY(-3px); }

.eco-card-img {
    flex: 1; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 40px; /* Aria abbondante su tutti i lati, NIENTE TAGLI */
}
.eco-card-img img {
    width: auto; 
    max-width: 100%; 
    max-height: 400px; 
    object-fit: contain;
    border-radius: 20px !important; /* Forza bordi smussati ovunque */
    border: 4px solid #1E293B !important; /* Cornice perfetta e chiusa */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.eco-card-text { flex: 1.2; text-align: left; padding: 40px 40px 40px 0; }
.eco-card[style*="row-reverse"] .eco-card-text { padding: 40px 0 40px 40px; }
.eco-card-text h3 { color: #fff; font-size: 26px; font-family: 'Outfit', sans-serif; margin-bottom: 8px; }
.eco-card-text p { color: #94A3B8; font-size: 15px; line-height: 1.5; margin: 0; }

/* =========================================
   4. FUNZIONI MINORI & PAGINE LEGALI/CONTATTI
   ========================================= */
.minor-features { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; margin-top: 0; }
.minor-feature-card { background: var(--bg-card); padding: 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); width: 100%; max-width: 320px; text-align: center; } /* Testo centrato */
.minor-feature-card h4 { color: #fff; font-size: 19px; margin-bottom: 10px; font-family: 'Outfit', sans-serif; }
.minor-feature-card p { color: var(--text-muted); font-size: 14px; }

.content-wrapper { padding: 150px 5% 100px 5%; max-width: 900px; margin: 0 auto; }
.legal-box { background: var(--bg-card); padding: 50px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.legal-box h1 { font-family: 'Outfit', sans-serif; font-size: 36px; margin-bottom: 10px; color: #fff; }
.legal-box p, .legal-box li { color: #CBD5E1; margin-bottom: 15px; }
.legal-box h2 { color: var(--accent-blue); margin-top: 30px; margin-bottom: 15px; font-size: 22px; }

@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   5. REGOLE SOLO PER DESKTOP (Rimpicciolire A.R.E.S.)
   ========================================= */
@media (min-width: 993px) {
    .ares-horiz-video {
        max-width: 550px !important; /* Molto più piccolo, elegante e non prende tutto lo schermo */
        margin: 40px auto 0 auto !important;
        border-radius: 20px !important; /* Smussato */
    }
    .ares-vert-video {
        max-width: 280px !important;
        margin: 40px auto 0 auto !important;
    }
}

/* =========================================
   6. RESPONSIVE: OTTIMIZZAZIONE TELEFONI
   ========================================= */
@media (max-width: 992px) {
    .hero-section { 
        padding-top: 120px !important; 
    }
    nav { padding: 10px 4%; flex-direction: row !important; justify-content: space-between !important; align-items: center; flex-wrap: wrap; }
    .nav-brand { font-size: 17px !important; gap: 6px; white-space: nowrap; max-width: 50%; order: 1; }
    .nav-brand img { height: 26px; }
    .btn-nav-download { padding: 6px 12px; font-size: 11px !important; gap: 4px; max-width: 48%; white-space: nowrap; order: 2; margin-left: auto;}
    
    .nav-links { 
        width: 100%; order: 3; margin-top: 12px; display: flex;
        justify-content: space-between; align-items: center;
        flex-wrap: nowrap; overflow: hidden; padding-bottom: 5px; gap: 0;
    }
    
    .nav-links > a, .dropbtn { 
        font-size: 13px !important; 
        padding: 0 4px !important; 
        white-space: nowrap !important;
        font-family: 'Inter', sans-serif !important;
        font-weight: 600 !important;
    }
    
    .dropdown-content { position: fixed !important; top: 85px; left: 5% !important; width: 90% !important; z-index: 9999; margin-top: 0; }
    .nav-links .dropdown-content a { font-size: 18px !important; padding: 18px 20px !important; white-space: normal !important; }

    section h2, .special-title-container h2 { font-size: 30px !important; }
    
    .dual-phone-grid { flex-direction: row !important; gap: 10px !important; }
    .dual-phone-grid .phone-video-container { flex: 1; max-width: 50%; border-width: 3px; border-radius: 15px; }

    .feature-row { flex-direction: column; text-align: center; gap: 20px; }
    .feature-text { text-align: center !important; }

    /* L'ecosistema Mobile resta intoccato! */
    .eco-card, .eco-card[style*="direction: row-reverse"] { flex-direction: column !important; }
    .eco-card-img { padding: 30px 20px 0 20px !important; margin-bottom: 0 !important; width: 100%; }
    .eco-card-img img { 
        width: auto; max-width: 80%;
        border: 3px solid #0F172A !important; 
        border-radius: 15px !important; 
    }
    .eco-card-text { padding: 20px !important; text-align: center; width: 100%; }
}
