:root {
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --text-white: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --accent: #a5f3fc;
    --accent-glow: rgba(165, 243, 252, 0.6);
    --dark-bg-fallback: #0f172a;
    --insta-gradient: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    --font-main: 'Outfit', sans-serif;
    --font-tech: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
button:focus, a:focus { outline: none; }

body {
    font-family: var(--font-main);
    color: var(--text-white);
    height: 100vh; height: 100dvh;
    overflow: hidden;
    background: var(--dark-bg-fallback);
}

/* SFONDO */
.bg-image {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: url('assets/img/bg-future.jpg') center/cover no-repeat;
    z-index: -2; transform: translateZ(0);
}
.aurora-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.85));
    z-index: -1;
}

/* MOBILE TOP BAR */
.mobile-top-bar {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 15px 20px;
    padding-top: max(15px, env(safe-area-inset-top));
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1100; justify-content: center; align-items: center;
}
.mobile-brand-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.mobile-logo-img {
    width: 35px; height: 35px; border-radius: 50%; background: #000;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2); overflow: hidden;
}
.mobile-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.mobile-brand-text { font-family: var(--font-tech); font-weight: 700; font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase; }

/* MAIN INTERFACE */
.glass-interface {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 92%; height: 88vh; max-width: 1400px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border); border-radius: 30px;
    box-shadow: var(--glass-shadow); display: flex; overflow: hidden;
    opacity: 0; animation: interfaceFadeIn 1.2s forwards ease-out 0.3s;
}
@keyframes interfaceFadeIn { to { opacity: 1; } }

/* SIDEBAR DESKTOP */
.glass-sidebar {
    width: 90px; border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column; align-items: center;
    padding: 30px 0; background: rgba(255,255,255,0.03); z-index: 10;
}
.logo-container {
    width: 60px; height: 60px; border-radius: 50%; background: #000;
    padding: 0; margin-bottom: auto; box-shadow: 0 0 15px rgba(165, 243, 252, 0.2);
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.2); overflow: hidden;
    cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media (hover: hover) { .logo-container:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--accent-glow); border-color: var(--accent); } }
.sidebar-logo { width: 100%; height: 100%; object-fit: cover; }

/* NAV ICONS */
.nav-icons { display: flex; flex-direction: column; gap: 25px; }
.btn-reset { background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; }
.nav-item, .dock-item {
    color: var(--text-muted); font-size: 1.3rem;
    width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
    border-radius: 14px; text-decoration: none; position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@media (hover: hover) {
    .nav-item:hover, .dock-item:hover { color: #fff; background: rgba(255,255,255,0.15); transform: scale(1.15); box-shadow: 0 0 15px var(--accent-glow); }
}
.nav-item.active, .dock-item.active { color: var(--accent); background: rgba(255,255,255,0.1); box-shadow: 0 0 25px var(--accent-glow); transform: scale(1.05); }
.nav-item.active::after, .dock-item.active::after {
    content: ''; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 20px; background: var(--accent); border-radius: 2px;
    box-shadow: 0 0 10px var(--accent);
}
.dock-item.active::after { right: auto; bottom: -5px; top: auto; width: 20px; height: 4px; transform: translateX(-50%); left: 50%; }
.bottom-icon { margin-top: auto; }

/* CONTENT AREA */
.content-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    scroll-behavior: smooth; padding: 0; position: relative;
    scroll-snap-type: y mandatory;
}
.content-scroll::-webkit-scrollbar { width: 0px; background: transparent; }

/* SEZIONI */
section {
    min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 80px 60px; text-align: center; scroll-snap-align: start;
    scroll-margin-top: 80px; /* Base Desktop */
}
.centered-content { max-width: 1100px; margin: 0 auto; width: 100%; }

/* ANIMATIONS */
.reveal-box { opacity: 0; transform: translateY(40px) scale(0.98); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-box.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-box { animation: safetyReveal 0.5s forwards 2s; }
@keyframes safetyReveal { to { opacity: 1; transform: translateY(0); } }

/* TYPOGRAPHY & BUTTONS */
.logo-text { font-size: 1.2rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 20px; color: var(--text-muted); }
h1 { font-size: 5rem; font-weight: 300; line-height: 1.1; margin-bottom: 30px; }
h2 { font-size: 3rem; margin-bottom: 30px; }
.text-gradient {
    font-weight: 700; background: linear-gradient(120deg, #fff 20%, var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(165, 243, 252, 0.4));
}
.subtitle { font-size: 1.3rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 50px; line-height: 1.6; }
.text-accent-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); transition: 0.3s; }
.text-accent-link-sm { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(165, 243, 252, 0.4); transition: 0.3s; margin-left: 3px; }
.text-accent-link-sm:hover { color: #fff; border-color: #fff; }

.cta-row { display: flex; gap: 25px; justify-content: center; align-items: center; }
.btn-glass {
    padding: 16px 45px; border-radius: 50px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.3); color: #fff; text-decoration: none;
    font-weight: 500; letter-spacing: 1px; transition: 0.3s; backdrop-filter: blur(10px); font-size: 1.1rem;
}
@media (hover: hover) { .btn-glass:hover { background: var(--text-white); color: var(--dark-bg-fallback); box-shadow: 0 0 40px var(--accent-glow); border-color: #fff; } }
.btn-text { color: var(--text-white); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
@media (hover: hover) { .btn-text:hover { gap: 15px; color: var(--accent); } }
.btn-large { font-size: 1.5rem; padding: 20px 50px; }

/* PRICING */
.pricing-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; text-align: left; }
.badge-container { text-align: center; margin-bottom: 25px; }
.badge {
    background: var(--accent); color: var(--dark-bg-fallback); padding: 8px 20px;
    border-radius: 30px; font-size: 0.9rem; font-weight: 800; letter-spacing: 2px;
    box-shadow: 0 0 20px var(--accent-glow); display: inline-block;
}
.inner-glass-card { background: rgba(0, 0, 0, 0.25); padding: 50px; border-radius: 24px; border: 1px solid rgba(255,255,255,0.15); position: relative; transition: 0.4s; }
.highlight-border { border-color: var(--accent); box-shadow: 0 0 30px rgba(165, 243, 252, 0.1); }
.inner-glass-card h3 { font-size: 2rem; text-align: center; margin-bottom: 10px; }
.price { font-size: 4.5rem; font-weight: 700; margin: 10px 0 5px; font-family: var(--font-tech); text-align: center; color: var(--accent); text-shadow: 0 0 20px var(--accent-glow); }
.currency { font-size: 2.5rem; vertical-align: super; }
.mo { font-size: 1.2rem; color: var(--text-muted); }
.setup { color: var(--text-muted); font-size: 1rem; margin-bottom: 35px; text-align: center; font-weight: 500; }
.features-list { list-style: none; margin-bottom: 35px; }
.features-list li { margin-bottom: 15px; color: rgba(255,255,255,0.9); display: flex; align-items: center; gap: 12px; font-size: 1.1rem; }
.features-list i { color: var(--accent); font-size: 1.2rem; filter: drop-shadow(0 0 5px var(--accent-glow)); }
.conscious { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; margin-top: 15px; font-weight: 600; color: #fff; }
.btn-solid {
    display: block; width: 100%; padding: 18px; border-radius: 12px;
    background: var(--accent); color: var(--dark-bg-fallback); text-decoration: none;
    font-weight: 800; text-align: center; transition: 0.3s; letter-spacing: 1px; font-size: 1.1rem;
}
@media (hover: hover) { .btn-solid:hover { transform: translateY(-3px); box-shadow: 0 10px 40px var(--accent-glow); color: #000; } }
.ethical-note { text-align: center; color: var(--accent); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.4; opacity: 0.9; }

/* INFO GRID */
.info-grid { display: grid; gap: 25px; }
.mini-card {
    background: rgba(255,255,255,0.03); padding: 25px; border-radius: 18px;
    display: flex; align-items: flex-start; gap: 20px; border: 1px solid transparent; transition: 0.3s;
}
@media (hover: hover) { .mini-card:hover { border-color: var(--accent); background: rgba(255,255,255,0.06); box-shadow: 0 0 20px rgba(165, 243, 252, 0.1); transform: translateX(5px); } }
.mini-card i { font-size: 1.8rem; color: var(--accent); margin-top: 5px; }
.mini-card h4 { margin-bottom: 8px; font-size: 1.2rem; }
.mini-card p { font-size: 1rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* VISION & CONTACTS */
.vision-box { background: linear-gradient(180deg, rgba(255,255,255,0.07), transparent); padding: 70px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); max-width: 900px; }
.vision-box p { font-size: 1.2rem; margin-bottom: 25px; color: rgba(255,255,255,0.9); }
.pwa-preview {
    margin-top: 50px; padding: 25px; border: 2px dashed var(--glass-border);
    border-radius: 15px; color: var(--accent); font-family: var(--font-tech);
    font-size: 1.2rem; display: inline-flex; align-items: center; gap: 15px;
}
.spin-slow { animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* CONTACT GRID */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; width: 100%; max-width: 700px; margin: 0 auto; }
.btn-equal {
    display: flex; align-items: center; justify-content: center; gap: 15px;
    padding: 18px 25px; border-radius: 50px;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.3);
    color: #fff; text-decoration: none; font-weight: 500; font-size: 1.1rem;
    transition: 0.3s; backdrop-filter: blur(10px);
}
.btn-equal i { font-size: 1.4rem; }
@media (hover: hover) {
    .btn-equal:hover {
        background: var(--text-white); color: var(--dark-bg-fallback);
        box-shadow: 0 0 30px var(--accent-glow); border-color: #fff; transform: translateY(-3px);
    }
}
.main-footer { margin-top: 80px; color: var(--text-muted); font-size: 0.9rem; }

/* MODALE */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px);
    z-index: 2000; opacity: 0; visibility: hidden;
    transition: 0.4s ease; display: flex; justify-content: center; align-items: center;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-glass {
    width: 90%; max-width: 800px; height: 85vh;
    background: #0f172a; border: 1px solid var(--glass-border);
    border-radius: 20px; position: relative; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5); transform: translateY(50px);
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1); display: flex; flex-direction: column;
}
.modal-overlay.open .modal-glass { transform: translateY(0); }
.close-modal {
    position: absolute; top: 20px; right: 20px; background: rgba(255,255,255,0.1);
    border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%;
    cursor: pointer; font-size: 1.2rem; transition: 0.3s; z-index: 10;
}
.close-modal:hover { background: #ff4757; transform: rotate(90deg); }
.modal-content-scroll { padding: 60px 40px; overflow-y: auto; height: 100%; text-align: left; }
.modal-content-scroll::-webkit-scrollbar { width: 6px; }
.modal-content-scroll::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 10px; }
.modal-content-scroll h2 { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }
.privacy-text p, .privacy-text li { font-size: 1.1rem; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 15px; }
.privacy-text h3 { color: var(--accent); margin-top: 30px; margin-bottom: 15px; }

/* MOBILE NAVIGATION */
.mobile-dock {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: none;
    background: var(--glass-bg);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    padding: 10px 20px; border-radius: 30px; gap: 15px;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
}

/* RESPONSIVE */
@media(max-width: 1024px) {
    h1 { font-size: 4rem; }
    .pricing-container { grid-template-columns: 1fr; gap: 40px; max-width: 600px; margin: 0 auto; }
}

@media(max-width: 768px) {
    /* RESET MOBILE FIXED */
    .glass-interface {
        width: 100%; height: 100%; border-radius: 0; border: none;
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        transform: none;
    }

    .glass-sidebar { display: none; }
    .mobile-dock, .mobile-top-bar { display: flex; }
    .desktop-only { display: none; }

    /* FIX SCROLL */
    .content-scroll {
        padding-bottom: 120px;
        padding-top: calc(90px + env(safe-area-inset-top));
    }

    section {
        padding: 40px 20px;
        scroll-snap-align: none;
        scroll-margin-top: 0; /* Gestito da JS */
    }

    h1 { font-size: 3.2rem; } h2 { font-size: 2.2rem; }
    .cta-row { flex-direction: column; width: 100%; }

    .contact-grid { grid-template-columns: 1fr; gap: 15px; }

    /* FIX IOS BLUE LINKS */
    .btn-glass, .btn-text, .btn-equal, .btn-solid, a {
        color: #fff !important;
        text-decoration: none !important;
    }
    .subtitle { color: var(--text-muted) !important; }

    .price { font-size: 3.5rem; }
    .inner-glass-card { padding: 30px 20px; }
    .modal-glass { width: 100%; height: 100%; border-radius: 0; }
}
