/* =========================================
   1. SETUP BASE E COLORI (Weyn s.r.o.)
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary-navy: #002845; /* Blu Notte Weyn */
    --accent-gold: #D49E1E;  /* Oro Weyn */
    --text-dark: #333;
    --bg-light: #f4f7f6;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden; /* Evita scorrimento orizzontale su mobile */
}

a { text-decoration: none; color: var(--primary-navy); }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: auto; padding: 20px 0; }

/* =========================================
   2. HEADER & NAVIGAZIONE
   ========================================= */
header {
    background: #fff;
    border-bottom: 3px solid var(--accent-gold);
    padding: 0.5rem 0;
    position: relative;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.brand img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Menu Desktop Standard */
.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #555;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

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

/* Selettore Lingua */
.lang-switch {
    border: 1px solid var(--primary-navy);
    border-radius: 4px;
    padding: 0 10px;
    margin-left: 15px !important;
}
.lang-active {
    color: var(--accent-gold) !important;
    font-weight: bold;
}

/* Tasto Burger (Nascosto su Desktop) */
.burger {
    display: none;
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-navy);
    margin: 5px;
    transition: all 0.3s ease;
}

/* =========================================
   3. HERO SECTION & COMPONENTI
   ========================================= */
.hero {
    background-image: url('https://via.placeholder.com/1200x600?text=Weyn+s.r.o.+Fleet'); 
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background-color: var(--primary-navy);
    position: relative;
}
.hero::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 40, 69, 0.6);
}
.hero-content { z-index: 1; }
.hero h2 { font-size: 3rem; margin-bottom: 1rem; }

/* Bottoni */
.btn {
    display: inline-block; padding: 10px 25px; border: none; border-radius: 5px;
    cursor: pointer; font-weight: bold; transition: background 0.3s; margin: 5px;
}
.btn-primary { background: var(--accent-gold); color: #fff; }
.btn-primary:hover { background: #b58515; }
.btn-secondary { background: #fff; color: var(--primary-navy); border: 2px solid var(--primary-navy); }

/* Griglie e Sezioni */
.section-padding { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2.2rem; color: var(--primary-navy); }

.services-grid, .inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card, .car-card {
    background: #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.service-card { padding: 30px; text-align: center; }
.car-card { overflow: hidden; }
.car-card img { width: 100%; height: 200px; object-fit: cover; }
.car-details { padding: 20px; }

.car-tag { display: inline-block; padding: 5px 10px; border-radius: 4px; font-size: 0.8rem; margin-bottom: 10px; }
.tag-rent { background: #d4edda; color: #155724; }
.tag-sale { background: #cce5ff; color: #004085; }
.car-price { font-size: 1.2rem; font-weight: bold; color: var(--primary-navy); margin: 10px 0; }

/* Contact Form */
.contact-flex { display: flex; gap: 40px; flex-wrap: wrap; }
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; }

footer {
    background: var(--primary-navy);
    color: #ccc; text-align: center; padding: 20px 0; margin-top: 40px; border-top: 3px solid var(--accent-gold);
}

/* =========================================
   4. MOBILE OPTIMIZATION (BURGER MENU)
   ========================================= */
@media (max-width: 768px) {
    
    /* Rimpicciolisce testi */
    .hero h2 { font-size: 2rem; }
    
    /* Mostra Burger */
    .burger { display: block; z-index: 999; }

    /* Trasforma Menu in pannello laterale */
    .nav-links {
        position: fixed;
        right: 0; top: 0;
        height: 100vh;
        background-color: var(--primary-navy);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transform: translateX(100%); /* Nascondi a destra */
        transition: transform 0.5s ease-in;
        z-index: 998;
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    }

    .nav-links li { margin: 20px 0; opacity: 0; }
    .nav-links a { color: #fff; font-size: 1.2rem; }
    
    /* Classe attiva aggiunta da JS */
    .nav-active { transform: translateX(0%); }

    /* Animazione Link */
    @keyframes navLinkFade {
        from { opacity: 0; transform: translateX(50px); }
        to { opacity: 1; transform: translateX(0); }
    }

    /* Animazione X del Burger */
    .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background: var(--accent-gold); }
    .toggle .line2 { opacity: 0; }
    .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background: var(--accent-gold); }
}