/* ==========================================================================
   Evolve App Showcase CSS Styling - MODERNIZED
   Aesthetics: Premium Dark Mode, Glassmorphism, Ambient Glow, High-Fidelity Mockups
   ========================================================================== */

/* --- Variabili & Design Tokens --- */
:root {
    --bg-dark: #050507;
    --bg-card: rgba(20, 20, 28, 0.4);
    --bg-navbar: rgba(5, 5, 7, 0.6);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    /* Palette Colori (HSL per manipolazione dinamica) */
    --primary-h: 263;
    --primary-s: 90%;
    --primary-l: 65%;
    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-glow: hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.25);
    
    --accent-h: 325;
    --accent-s: 85%;
    --accent-l: 60%;
    --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l));
    --accent-glow: hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
    
    --cyan-h: 188;
    --cyan-s: 90%;
    --cyan-l: 55%;
    --cyan: hsl(var(--cyan-h), var(--cyan-s), var(--cyan-l));
    
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-premium: 0 24px 48px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.1);
    --shadow-glow: 0 0 60px -10px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

/* --- Reset Standard --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* --- Sfondi e Sfere di Luce (Ambient Light) --- */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(circle at 50% 50%, rgba(20, 10, 45, 0.8) 0%, rgba(5, 5, 7, 0) 70%);
    transition: background 1.2s ease;
}

.gradient-ball {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.2;
    z-index: -3;
    pointer-events: none;
    animation: drift 25s infinite alternate ease-in-out;
}

.ball-1 { width: 500px; height: 500px; background: var(--primary); top: 5%; left: -5%; }
.ball-2 { width: 600px; height: 600px; background: var(--accent); bottom: 5%; right: -10%; animation-delay: -5s; animation-duration: 30s; }
.ball-3 { width: 400px; height: 400px; background: var(--cyan); top: 50%; left: 60%; animation-delay: -12s; animation-duration: 20s; }

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(120px, 90px) scale(1.1); }
    100% { transform: translate(-60px, 160px) scale(0.9); }
}

/* --- Classi Utilità e Tipografia --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.02em; }

.text-gradient {
    background: linear-gradient(135deg, #fff 20%, var(--primary) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-accent { color: var(--accent); }

/* --- Bottoni Moderni Glass --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    padding: 16px 32px;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-primary::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.5s ease;
}

.btn-primary:hover { transform: translateY(-4px); box-shadow: 0 15px 35px -5px rgba(139, 92, 246, 0.7), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid var(--border-highlight);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 24px;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.3); }

.btn-outline { background: transparent; color: #fff; border: 1px solid var(--border-color); padding: 14px 28px; }
.btn-outline:hover { border-color: var(--primary); background: rgba(139, 92, 246, 0.1); transform: translateY(-2px); }

.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* --- Header / Navbar Glassmorphism --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: var(--bg-navbar);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}
.navbar.scrolled { padding: 12px 0; background: rgba(5, 5, 7, 0.85); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
.navbar-container {
    max-width: 1400px; margin: 0 auto; padding: 20px 40px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-size: 1.6rem; font-weight: 800; font-family: var(--font-heading); }
.logo-img { height: 38px; width: auto; object-fit: contain; display: block; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: var(--transition-fast); position: relative; padding: 6px 0; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: var(--transition-fast); }
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; z-index: 110; }
.mobile-menu-toggle .bar { width: 25px; height: 2px; background-color: #fff; transition: var(--transition-fast); }

/* --- Mobile Menu Overlay con @starting-style (Modern Web) --- */
.mobile-menu {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background: rgba(5, 5, 7, 0.98); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    z-index: 99; display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; visibility: visible; }
.mobile-nav-links { display: flex; flex-direction: column; align-items: center; gap: 40px; transform: translateY(20px); transition: transform 0.4s ease; }
.mobile-menu.open .mobile-nav-links { transform: translateY(0); }
.mobile-link { color: var(--text-muted); text-decoration: none; font-size: 2rem; font-family: var(--font-heading); font-weight: 700; transition: var(--transition-fast); }
.mobile-link:hover { color: #fff; transform: scale(1.05); }

/* --- Hero Section --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 140px 40px 80px; position: relative; max-width: 1400px; margin: 0 auto; }
.hero-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; width: 100%; }
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-highlight);
    padding: 8px 20px; border-radius: 100px; margin-bottom: 24px;
    backdrop-filter: blur(10px);
}
.badge-icon { color: var(--accent); font-size: 0.9rem; }
.badge-text { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.95); }

.hero-title { font-size: 4.5rem; line-height: 1.05; margin-bottom: 28px; font-weight: 800; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 45px; max-width: 600px; font-weight: 400; line-height: 1.7; }
.hero-buttons { display: flex; gap: 24px; margin-bottom: 60px; flex-wrap: wrap; }
.hero-buttons .btn i { font-size: 1.6rem; }
.hero-buttons .btn span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.hero-buttons .btn span small { font-size: 0.7rem; opacity: 0.8; text-transform: uppercase; font-weight: 500; letter-spacing: 0.02em;}

.hero-stats { display: flex; gap: 40px; align-items: center; background: var(--bg-card); padding: 20px 40px; border-radius: 24px; border: 1px solid var(--border-color); backdrop-filter: blur(15px); }
.stat-item { display: flex; flex-direction: column; }
.stat-val { font-size: 2rem; font-weight: 800; font-family: var(--font-heading); color: #fff; display: flex; align-items: center; gap: 6px; }
.text-star { color: #FBBF24; font-size: 1.2rem; filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5)); }
.stat-lbl { font-size: 0.9rem; color: var(--text-muted); font-weight: 500;}
.stat-divider { width: 1px; height: 50px; background: var(--border-color); }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.phone-glow { position: absolute; width: 120%; height: 120%; background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(0,0,0,0) 60%); z-index: -1; filter: blur(60px); }

/* --- High-Fidelity iPhone Mockup & Screenshot Showcase --- */
.iphone-container-tilt { perspective: 1500px; display: flex; justify-content: center; align-items: center; }
.screenshot-showcase {
    position: relative; width: 320px; height: 650px; background: #0a0b10; border-radius: 36px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-premium), 0 0 0 8px rgba(255, 255, 255, 0.02);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; transform-style: preserve-3d;
}
.phone-screen-img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; }
.iphone-glare {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 35%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none; z-index: 5; border-radius: 36px;
}

/* --- Sezione SCROLL FEATURE WALKTHROUGH (BENTO STYLE) --- */
.features-scroll { position: relative; width: 100%; padding: 0; margin: 0; background: var(--bg-dark); }
.features-scroll-wrapper { display: flex; position: relative; max-width: 1400px; margin: 0 auto; padding: 100px 40px; gap: 80px; }

/* Lato Sinistro: Testo (Bento Blocks) */
.features-text-container { width: 50%; display: flex; flex-direction: column; gap: 100px; padding-bottom: 50vh; }
.feature-text-block {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
    padding: 60px; opacity: 0.25; transform: scale(0.95);
    background: var(--bg-card); border-radius: 32px; border: 1px solid var(--border-color);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.feature-text-block.active { opacity: 1; transform: scale(1); border-color: var(--border-highlight); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5); }

.feature-icon-wrapper {
    width: 70px; height: 70px; border-radius: 20px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 30px; border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
}
.feature-icon-wrapper.block-1 { background: rgba(139, 92, 246, 0.15); color: var(--primary); }
.feature-icon-wrapper.block-2 { background: rgba(236, 72, 153, 0.15); color: var(--accent); }
.feature-icon-wrapper.block-3 { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.feature-icon-wrapper.block-4 { background: rgba(139, 92, 246, 0.15); color: var(--primary); }
.feature-icon-wrapper.block-5 { background: rgba(236, 72, 153, 0.15); color: var(--accent); }
.feature-icon-wrapper.block-6 { background: rgba(6, 182, 212, 0.15); color: var(--cyan); }
.feature-icon-wrapper.block-7 { background: rgba(139, 92, 246, 0.15); color: var(--primary); }

.feature-text-block h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--primary); margin-bottom: 16px; font-weight: 800;}
.feature-text-block h3 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 24px; color: #fff; }
.feature-text-block p { font-size: 1.15rem; color: var(--text-muted); line-height: 1.8; }

/* Lato Destro: Telefono Sticky */
.features-phone-container { width: 50%; height: 100vh; position: sticky; top: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.sticky-phone-wrapper { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; width: 100%; }
.dynamic-glow-bg {
    position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--primary);
    filter: blur(160px); opacity: 0.3; z-index: -1; transition: background-color 0.8s ease, transform 1s ease;
}
.features-phone-container .screenshot-showcase { transform: scale(1.05); pointer-events: auto; }
.scroll-screen-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1) translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.scroll-screen-img.active { opacity: 1; transform: scale(1) translateY(0); z-index: 2; }

/* Indicatori Progresso */
.scroll-progress-indicator { position: absolute; right: -60px; display: flex; flex-direction: column; gap: 15px; z-index: 10; }
.progress-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: var(--transition-fast); pointer-events: auto; }
.progress-dot.active { background: #fff; transform: scale(1.5); box-shadow: 0 0 10px rgba(255,255,255,0.8); }

/* --- Sezione INTERACTIVE GALLERY BENTO / SLIDER --- */
.gallery-section { padding: 120px 40px; position: relative; overflow: hidden; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-title { font-size: 3.5rem; margin-bottom: 24px; color: #fff; }
.section-subtitle { font-size: 1.2rem; color: var(--text-muted); line-height: 1.7; }

.gallery-slider-wrapper { position: relative; display: flex; align-items: center; gap: 20px; }
.gallery-track {
    display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; padding: 40px 10px;
    -webkit-overflow-scrolling: touch; scroll-behavior: auto; cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.dragging { cursor: grabbing; scroll-behavior: auto; }

.gallery-card {
    flex: 0 0 auto; width: 300px; height: 600px; position: relative; border-radius: 32px;
    transform-style: preserve-3d; cursor: pointer;
}
.gallery-card-inner {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
    background: #0a0b10; border: 1px solid var(--border-color); box-shadow: var(--shadow-premium);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.gallery-card:hover .gallery-card-inner { border-color: var(--border-highlight); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.gallery-card:hover img { transform: scale(1.05); }

.gallery-card-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px 24px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    display: flex; flex-direction: column; gap: 8px; transform: translateY(20px); opacity: 0.8; transition: var(--transition-fast);
}
.gallery-card:hover .gallery-card-overlay { transform: translateY(0); opacity: 1; }
.card-tag { display: inline-block; padding: 6px 12px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: #fff; width: fit-content; margin-bottom: 4px; }
.gallery-card h4 { font-size: 1.4rem; color: #fff; }
.gallery-card-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 32px; background: transparent; pointer-events: none; z-index: 10; opacity: 0; transition: opacity 0.6s ease; }

.gallery-arrow {
    width: 60px; height: 60px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-color);
    color: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; cursor: pointer;
    backdrop-filter: blur(10px); transition: var(--transition-fast); z-index: 10; flex-shrink: 0;
}
.gallery-arrow:hover { background: rgba(255,255,255,0.1); transform: scale(1.1); border-color: var(--border-highlight); }
.gallery-scroll-bar-container { width: 100%; max-width: 600px; height: 4px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; margin: 40px auto 0; overflow: hidden; }
.gallery-scroll-bar-progress { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 4px; transition: width 0.1s ease-out; }

/* --- LIGHTBOX (Modern Native <dialog> + @starting-style) --- */
#lightbox {
    max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; padding: 0; margin: 0; border: none;
    background: transparent; color: #fff; overflow: hidden;
    /* Necessario per le animazioni del dialog */
    opacity: 0; transform: scale(0.95); display: none;
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}

#lightbox[open] {
    opacity: 1; transform: scale(1); display: flex; flex-direction: column; align-items: center; justify-content: center;
    @starting-style { opacity: 0; transform: scale(0.95); }
}

#lightbox::backdrop {
    background-color: rgba(5, 5, 7, 0); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px);
    transition: background-color 0.4s ease-out, backdrop-filter 0.4s ease-out, display 0.4s allow-discrete, overlay 0.4s allow-discrete;
}

#lightbox[open]::backdrop {
    background-color: rgba(5, 5, 7, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    @starting-style { background-color: rgba(5, 5, 7, 0); backdrop-filter: blur(0px); }
}

.lightbox-content { position: relative; max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; align-items: center; }
#lightbox-img { max-height: 75vh; max-width: 100%; object-fit: contain; border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.lightbox-caption { margin-top: 24px; font-size: 1.2rem; font-family: var(--font-heading); text-align: center; color: rgba(255,255,255,0.9); background: rgba(0,0,0,0.5); padding: 10px 24px; border-radius: 100px; backdrop-filter: blur(10px); }

.lightbox-controls { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.lightbox-btn { pointer-events: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(10px); transition: var(--transition-fast); }
.lightbox-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1); }
#lightbox-close { position: absolute; top: 40px; right: 40px; z-index: 10; pointer-events: auto; }

/* --- Sezione FILOSOFIA / MOTTO --- */
.philosophy-section { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 100px 40px; text-align: center; position: relative; }
.philosophy-container { max-width: 1000px; }
.philosophy-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: var(--accent); margin-bottom: 30px; letter-spacing: 0.1em; text-transform: uppercase; }
.philosophy-text { font-size: clamp(3rem, 5vw, 6rem); line-height: 1.1; font-weight: 900; margin-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.philosophy-sub { font-size: 1.3rem; color: var(--text-muted); max-width: 700px; margin: 0 auto; line-height: 1.8; }

/* --- Sezione FAQ (Bento Accordion) --- */
.faq-section { padding: 120px 40px; max-width: 1000px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 20px; margin-top: 60px; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 24px;
    overflow: hidden; backdrop-filter: blur(10px); transition: var(--transition-fast);
}
.faq-item:hover { border-color: var(--border-highlight); background: rgba(30, 30, 42, 0.5); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.faq-question {
    width: 100%; text-align: left; background: none; border: none; padding: 28px 32px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 1.25rem; font-family: var(--font-heading); font-weight: 600; color: #fff; cursor: pointer; outline: none;
}
.faq-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; transition: transform 0.4s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-answer p { padding: 0 32px 32px; color: var(--text-muted); font-size: 1.1rem; line-height: 1.7; }

/* --- Sezione DOWNLOAD / CTA FINALE --- */
.download-section { padding: 100px 40px 140px; max-width: 1400px; margin: 0 auto; }
.download-card {
    position: relative; border-radius: 40px; background: linear-gradient(135deg, rgba(20,20,28,0.8) 0%, rgba(10,10,15,0.9) 100%);
    border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between;
    padding: 80px; overflow: hidden; box-shadow: var(--shadow-premium);
}
.download-card-glow { position: absolute; top: 0; right: 0; width: 600px; height: 600px; background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%); filter: blur(50px); }
.download-content { position: relative; z-index: 2; max-width: 500px; }
.download-title { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; color: #fff; }
.download-subtitle { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; }
.download-badge-row { display: flex; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.badge-item { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.7); font-size: 0.95rem; font-weight: 500; }
.badge-item i { color: var(--cyan); }
.download-visual { position: relative; z-index: 2; height: 400px; width: 400px; perspective: 1000px; }
.phone-perspective { position: relative; width: 100%; height: 100%; transform: rotateY(-15deg) rotateX(5deg); transform-style: preserve-3d; }
.perspective-img { position: absolute; border-radius: 30px; box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.img-main { width: 220px; right: 40px; top: -20px; z-index: 2; transform: translateZ(50px); }
.img-accent { width: 200px; right: 180px; top: 40px; opacity: 0.8; transform: translateZ(-20px) scale(0.9); }

/* --- Footer --- */
.main-footer { border-top: 1px solid var(--border-color); background: rgba(5, 5, 7, 0.95); padding: 80px 40px 40px; }
.footer-container { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr; gap: 60px; margin-bottom: 80px; }
.footer-motto { color: var(--text-muted); font-size: 1.1rem; margin: 24px 0; max-width: 300px; font-style: italic; }
.footer-socials { display: flex; gap: 16px; }
.social-link { width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; transition: var(--transition-fast); border: 1px solid transparent; }
.social-link:hover { background: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4); }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.links-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 24px; letter-spacing: 0.05em; }
.links-col a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 16px; transition: var(--transition-fast); font-weight: 500; }
.links-col a:hover { color: var(--accent); transform: translateX(5px); }
.footer-bottom { max-width: 1400px; margin: 0 auto; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.9rem; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 80px; }
    .hero-content { align-items: center; }
    .hero-buttons { justify-content: center; }
    .features-scroll-wrapper { flex-direction: column; padding: 60px 20px; }
    .features-text-container { width: 100%; padding-bottom: 100px; gap: 60px; }
    .features-phone-container { width: 100%; height: 70vh; position: relative; top: auto; margin-bottom: 40px; }
    .scroll-progress-indicator { display: none; }
    .footer-container { grid-template-columns: 1fr; }
    .download-card { flex-direction: column; text-align: center; padding: 60px 40px; }
    .download-badge-row { justify-content: center; }
    .download-visual { margin-top: 60px; height: 300px; }
    .phone-perspective { transform: none; display: flex; justify-content: center; }
    .img-main { position: relative; right: auto; top: auto; transform: none; }
    .img-accent { display: none; }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav-download { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero-title { font-size: 3rem; }
    .stat-item { text-align: center; }
    .hero-stats { flex-direction: column; gap: 20px; width: 100%; }
    .stat-divider { width: 100%; height: 1px; }
    .section-title { font-size: 2.5rem; }
    .philosophy-text { font-size: 2.5rem; }
    .download-title { font-size: 2.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    #lightbox, #lightbox[open] { transition: none; transform: none; }
    #lightbox::backdrop, #lightbox[open]::backdrop { transition: none; }
    .mobile-menu, .mobile-menu.open { transition: none; }
}
