* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #ffffff;
    --text-color: #111111;
    --accent-color: #666666;
    --orange-brand: #ff6600;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-serif: "Georgia", serif;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Struttura contenuti */
main, footer {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}
.responsive-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* ========== NAVIGAZIONE PRINCIPALE ========== */
.main-nav {
    background-color: var(--orange-brand);
    width: 100%;
    position: relative;
    z-index: 1000;
    margin-bottom: 3rem;
}

.nav-container-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Brand + Hamburger */
.nav-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 60px;
}

.logo {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0.8rem 0;
    flex-shrink: 0;
}

.logo:hover {
    opacity: 0.85;
}

/* Bottone hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid white;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Menu desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 1.5rem 0;
    position: relative;
    opacity: 0.85;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover, 
.nav-links a.active {
    opacity: 1;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 15px;
    height: 3px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* ========== MOBILE ========== */
@media screen and (max-width: 768px) {
    /* Mostra hamburger */
    .menu-toggle {
        display: block !important;
        background: none;
        border: 2px solid white;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        padding: 0.3rem 0.8rem;
        border-radius: 4px;
        line-height: 1;
        flex-shrink: 0;
    }
    
    /* Nascondi menu di default */
    .nav-links {
        display: none !important;
        flex-direction: column !important;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--orange-brand);
        padding: 0;
        margin: 0;
        gap: 0 !important;
        box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        z-index: 9999;
    }
    
    /* Mostra menu quando attivo */
    .nav-links.active {
        display: flex !important;
    }
    
    /* Stile voci menu mobile */
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin: 0;
        padding: 0;
    }
    
    .nav-links li:last-child {
        border-bottom: none;
    }
    
    .nav-links a {
        padding: 1rem 2rem !important;
        font-size: 1rem;
        width: 100%;
        text-align: left;
        opacity: 1;
        color: white;
        text-decoration: none;
        display: block;
    }
    
    .nav-links a.active::after {
        display: none;
    }
    
    .nav-links a:active {
        background: rgba(255, 255, 255, 0.15);
    }
    
    /* Mostra footer nav su mobile */
    .footer-nav {
        display: block;
    }
}

/* ========== FOOTER NAV (mobile) ========== */
.footer-nav {
    display: none;
    background-color: #f7f7f7;
    padding: 1.5rem 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 0;
}

.footer-nav ul {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    padding: 0.3rem 0;
}

.footer-nav a:hover,
.footer-nav a.active {
    opacity: 1;
}
/* Assicura che il footer sia sempre visibile */
#footer-container {
    display: block;
    width: 100%;
}

.footer-nav {
    display: block !important; /* Forza la visualizzazione */
    background-color: #f7f7f7;
    padding: 1.5rem 0;
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    margin-bottom: 0;
}

/* Nascondi footer-nav su desktop */
@media screen and (min-width: 769px) {
    .footer-nav {
        display: none !important;
    }
}

/* Mostra footer-nav su mobile */
@media screen and (max-width: 768px) {
    .footer-nav {
        display: block !important;
    }
}