/* --- VARIABILI GLOBALI --- */
:root {
    --navy-header: #121d2b;
    --navy-text: #1a2634;
    --grey-bg: #f5f5f5;
    --white: #ffffff;
    --accent: #8e1b54; 
    --deep-blue: #1a232e;
    --bright-blue: #3a4b5c;
    --soft-blue: #a0c4ff;
}

/* --- RESET E BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--grey-bg);
    color: var(--navy-text);
    overflow-x: hidden;
    padding-top: 80px; 
}

/* --- HEADER --- */
.main-header {
    width: 100%;
    height: 80px;
    position: fixed; 
    top: 0;
    left: 0;
    
    /* Colore ripristinato: 95% di opacità per mantenere il blu intenso */
    background: rgba(26, 35, 46, 0.96); 
    
    /* Effetto sfocatura leggero ed elegante */
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    
    display: flex;
    align-items: center;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    width: 100%;
    height: 100%;
}

.logo {
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--white);
    z-index: 3005; 
    text-decoration: none;
}

/* --- LINKS E ICONE --- */
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 3005; 
}

.nav-item, .fav-link, .login-link {
    text-decoration: none;
    color: var(--white);
    font-size: 0.75rem;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.nav-item::after, .fav-link::after, .login-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--soft-blue);
    transition: width 0.3s ease-in-out;
}

.nav-item:hover, .fav-link:hover, .login-link:hover { color: var(--soft-blue); }
.nav-item:hover::after, .fav-link:hover::after, .login-link:hover::after { width: 100%; }

.separator { color: rgba(255, 255, 255, 0.2); font-size: 0.6rem; }
.icon { font-size: 22px; display: flex; color: var(--white); }

/* --- MOBILE MENU BUTTON --- */
.mobile-menu-btn {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 3005;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 10px;
    transition: all 0.4s ease;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    body { padding-top: 70px; }

    .main-header { 
        height: 70px; 
        background: rgba(26, 35, 46, 0.98); /* Ancora più solido su mobile */
    }

    .top-nav { padding: 0 25px; }
    .mobile-menu-btn { display: flex; }

    .nav-links {
        opacity: 0;
        visibility: hidden;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(26, 35, 46, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transform: translateY(-30px);
        transition: all 0.5s ease;
        z-index: 3000;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-item {
        font-size: 1.8rem;
        font-weight: 700;
        letter-spacing: 3px;
        text-transform: uppercase;
    }

    .separator, .fav-text, .login-text { display: none; }

    .mobile-menu-btn.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}

/* --- FINAL FOOTER --- */
.final-footer {
    background-color: #1a2533;
    color: #ffffff;
    padding: 30px 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 40px;
}

.brand-title {
    font-size: 18px; 
    letter-spacing: 5px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.social-icons-center {
    position: absolute;
    right: 40px; 
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 25px;
}

.social-icons-center a {
    color: #ffffff;
    font-size: 1.3rem;
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.social-icons-center a:hover {
    opacity: 1;
    transform: scale(1.1);
}

.copyright-text {
    font-size: 0.90rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
    letter-spacing: 1px;
}

@media (max-width: 850px) {
    .social-icons-center {
        position: static;
        transform: none;
        margin-top: 20px;
    }
}