/* --- VARIABILI E RESET --- */
:root {
    --primary-orange: #ff6600;
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-light: #f4f4f4;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Saira', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- LOGICA LINGUA --- */
.de-lang { display: none !important; }
body.lang-de .it-lang { display: none !important; }
body.lang-de .de-lang { display: block !important; }
body.lang-de span.de-lang { display: inline !important; }

/* --- NAVIGAZIONE --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    width: 90%;
    z-index: 1000;
    border-bottom: 1px solid #333;
    height: var(--nav-height);
}

.logo {
    font-weight: 700;
    color: var(--primary-orange);
    text-transform: uppercase;
    font-size: 1.2rem;
    text-decoration: none;
}
/* --- LOGO NELLA NAVBAR --- */
.nav-logo {
    height: 55px; /* Dimensione bilanciata per la navbar */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* --- LOGO COME SFONDO (WATERMARK) PER SHOWCASE --- */
/* Questa regola si attiva solo quando il body ha l'ID specifico o per la struttura di showcase */
.container::before {
    content: "";
    position: fixed;
    top: 55%; /* Leggermente più in basso del centro per bilanciare la navbar */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw; 
    height: 70vw;
    background: url('images/logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.04; /* Opacità molto bassa per non disturbare la lettura dei testi */
    z-index: -1;
    pointer-events: none;
}


/* --- NAVIGAZIONE DESKTOP --- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px; /* Spazio tra il gruppo link e il tasto lingua */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px; /* Spazio tra i link */
}

.nav-links a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

.lang-switch {
    border: 1px solid var(--primary-orange);
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    background: transparent;
    color: white;
    font-family: 'Saira';
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
    
    white-space: nowrap; /* Impedisce al testo IT | DE di andare su due righe */
    flex-shrink: 0;      /* Impedisce al pulsante di rimpicciolirsi */}

.lang-switch:hover {
    background: var(--primary-orange);
}

/* --- HERO (HOME) --- */
.hero {
    height: 85vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding-bottom: 80px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-transform: uppercase;
    margin: 0;
    line-height: 1.1;
}

.hero h1 span { color: var(--primary-orange); }
.hero p { font-size: 1.2rem; font-style: italic; color: #b0b0b0; margin-top: 15px; }

/* --- SERVIZI & CARD GENERALI --- */
.services-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 60px 5%;
    flex-wrap: wrap;
}

.card {
    background: var(--card-bg);
    flex: 1;
    min-width: 300px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-top: 3px solid transparent;
}

.icon-box {
    width: 140px;
    height: 140px;
    margin: 0 auto 10px;
    background-image: url('images/icons.png');
    background-size: 420px auto;
    background-repeat: no-repeat;
}

.icon-piston { background-position: -5px center; }
.icon-wrenches { background-position: -140px center; }
.icon-diag { background-position: -275px center; }

.card h3 { color: var(--primary-orange); text-transform: uppercase; margin: 15px 0; font-size: 1.4rem; }

/* --- VETRINA (SHOWCASE) --- */
.container { padding: 120px 5% 50px; max-width: 1200px; margin: 0 auto; }

.nav-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.tile {
    background: var(--card-bg);
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: white;
    border-left: 4px solid var(--primary-orange);
    transition: 0.3s;
}

.tile:hover { background: #252525; }

.grid-vetrina {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.card-moto {
    background: var(--card-bg);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.img-container { position: relative; width: 100%; height: 200px; background: #000; }
.img-container img { width: 100%; height: 100%; object-fit: cover; }

.photo-counter-mini {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary-orange);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff0000;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
}

.moto-info { padding: 20px; }
.moto-info h3 { margin: 0 0 10px 0; color: var(--primary-orange); text-transform: uppercase; }

/* --- CONTATTI (ORANGE BAR) --- */
.contact-section { padding: 60px 0 0 0; background: #000; text-align: center; }
.contact-section h2 { text-transform: uppercase; margin-bottom: 20px; }

.orange-bar {
    background: var(--primary-orange);
    display: flex;
    width: 100%;
    color: white;
    padding: 45px 0;
    margin-top: 30px;
}

.info-col {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-col:last-child { border-right: none; }
.info-col b { display: block; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 8px; letter-spacing: 1px; }
.info-col span { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }

.fb-link {
    margin: 40px 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.fb-link:hover { color: var(--primary-orange); }

/* --- FOOTER --- */
footer {
    padding: 30px;
    text-align: center;
    color: #aaa;
    font-size: 0.8rem;
    border-top: 1px solid #222;
    background: #000;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.lightbox.active { display: flex; }
.lightbox-content { position: relative; max-width: 90%; }
.lightbox-content img { max-width: 100%; max-height: 80vh; }
.close-lightbox { position: absolute; top: -40px; right: 0; color: white; font-size: 30px; cursor: pointer; }
.nav-btn { background: none; border: none; color: white; font-size: 40px; cursor: pointer; padding: 20px; }

/* --- RESPONSIVE --- */
/* --- HAMBURGER MENU --- */
.hamburger {
    display: none; /* Nascosto su desktop */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-orange);
    transition: 0.3s;
}

/* --- RESPONSIVE MENU (MOBILE) --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Visibile su mobile */
    }
    .orange-bar { flex-direction: column; gap: 40px; }
    .info-col { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding-bottom: 30px; }
    .nav-tiles { grid-template-columns: 1fr; }
    .nav { width: 90%; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Nascosto a destra */
        width: 80%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: 0.4s ease-in-out;
        z-index: 1050;
        border-left: 1px solid #333;
    }

    .nav-menu.active {
        right: 0; /* Scivola dentro */
    }

    .nav-links {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem; /* Testo più grande per il touch */
    }

    /* Animazione Hamburger in "X" quando attivo */
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

