:root {
    --primary: #0a2540;     
    --accent: #00803F;      
    --bg-light: #f8f9fa;    
    --text-main: #333333;   
    --text-muted: #5a738e;  
    --white: #ffffff;
    --border-color: rgba(0, 0, 0, 0.06);
}
/* --- HEADER & NAVIGAZIONE DESKTOP --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
    width: auto;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav .active a {
    color: var(--accent);
}

.main-nav .mobile-only-cta {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Selettore Lingua Header */
.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    order: 3;
}

.language-selector a {
    display: block;
    transition: transform 0.2s;
}

.language-selector a:hover {
    transform: scale(1.1);
}

.language-selector img {
    width: 30px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Pulsante CTA Header */
.header-cta {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.header-cta:hover {
    background-color: var(--accent);
    transform: translateY(-1px);
}

/* Pulsante Hamburger (Mobile) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

/* Stili per la pagina Dove Siamo */
.geo-hero h1 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.region-card h3 {
  font-size: 1.1rem;
  color: #0056b3;
  margin-bottom: 8px;
}

.region-card ul {
  padding-left: 18px;
  margin-top: 5px;
}

.region-card li {
  margin-bottom: 4px;
  font-size: 0.9rem;
}
        
/* --- FOOTER SEMANTICO --- */
.main-footer {
    background-color: #051424;
    color: #8fa0b5;
    padding: 80px 5% 30px;
    font-size: 0.95rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-brand p {
    margin: 20px 0;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #8fa0b5;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent);
}

.footer-links h2 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8fa0b5;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links a {
    color: #8fa0b5;
    text-decoration: none;
    margin-left: 20px;
}

.footer-bottom-links a:hover {
    color: var(--white);
}
/* --- RESPONSIVE BREAKPOINTS (TABLET & MOBILE) --- */

@media (max-width: 991px) {
    /* Header Tablet/Mobile */
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5% 15px 5%;
    }

    .language-selector {
        order: 1;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    .logo {
        order: 2;
        margin-right: auto;
    }

    .header-actions {
        order: 3;
        gap: 0;
    }

    .header-actions .header-cta {
        display: none;
    }

    .hamburger-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 100px 40px;
        transition: right 0.4s ease-in-out;
        z-index: 1050;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .main-nav a {
        font-size: 1.2rem;
        display: block;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .main-nav .mobile-only-cta {
        display: block;
        width: 100%;
        margin-top: 15px;
        border-bottom: none;
    }

    .main-nav .mobile-only-cta .header-cta {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 1.05rem;
    }

    /* Footer Tablet/Mobile */
    .footer-grid { 
        grid-template-columns: 1fr; 
        gap: 40px; 
    }
}

@media (max-width: 576px) {
    /* Header Smartphone */
    .header-actions .header-cta {
        display: inline-block;
        margin-right: inherit;
    }

    .main-header { 
        padding: 12px 4%; 
    }

    .logo img { 
        height: 32px; 
    }

    .header-cta span { 
        display: none; 
    }

    .header-cta { 
        padding: 10px 14px; 
        border-radius: 50%; 
    }

    /* Footer Smartphone */
    .footer-bottom { 
        flex-direction: column; 
        text-align: center; 
        gap: 10px; 
    }

    .footer-bottom-links a { 
        margin: 0 10px; 
    }
}