:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #ff4b1f;
    /* Vibrant Orange-Red */
    --accent-hover: #ff6b4a;
    --font-main: 'Outfit', sans-serif;
    --header-height: 80px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Header --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-sizing: border-box;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero Styles Removed --- */
/* Space for fixed header is handled by section padding */

/* --- Sections Common --- */
section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title .line {
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 0 auto;
}

/* --- Brands Section --- */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    align-items: center;
    justify-items: center;
}

.brand-card {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
    aspect-ratio: 3/2;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    overflow: hidden;
}

/* .brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent);
} */

.brand-logo {
    width: 100%;
    /* Default base size */
    height: 100%;
    object-fit: contain;
    /* transition: filter 0.3s; Remove transition if no change happens */
}

/* Individual Logo Sizing */
.logo-piaggio {
    width: 180%;
    height: 180%;
}

.logo-vespa {
    width: 100%;
    height: 100%;
}

.logo-aprilia {
    width: 100%;
    height: 100%;
}

.logo-kymco {
    width: 110%;
    height: 110%;
}

.logo-kl {
    width: 115%;
    height: 120%;
}

.logo-beta {
    width: 100%;
    height: 115%;
}

/* Hover effects removed as per request */

/* --- About Section --- */
.about-section {
    background-color: var(--bg-card);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

/* --- Contact Section --- */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: center;
}

.contact-info,
.map-container {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.map-container {
    height: 400px;
    background-color: #222;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    color: #777;
}

/* --- Footer --- */
.main-footer {
    background-color: #050505;
    color: #888;
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Animations --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }

    .split {
        width: 100%;
        height: 50%;
    }

    /* Hamburger Menu */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
        /* Above mobile menu */
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--text-main);
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        /* Changed from var(--header-height) usually 70-80px */
        gap: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        height: 100vh;
        /* Full viewport height */
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        /* Space for header */
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
        /* Below header/hamburger but above content */
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        margin: 1.5rem 0;
        font-size: 1.5rem;
    }

    .split h2 {
        font-size: 2.5rem;
    }

    #marchi .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
}

/* --- AGGIUNTE PER LISTINO MOTO --- */

.catalog-section {
    padding: 120px 20px 50px;
    /* Spazio per l'header fisso */
    background-color: #000000;
}

.layout-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}


/* Griglia Gallery */
.moto-gallery {
    flex-grow: 1;
    /* Prende tutto lo spazio rimanente */
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    /* Responsive grid */
    gap: 20px;
}

/* Stile Card Singola */
.moto-card {
    background: #000000;
    border: 1px solid #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 15px;
}

.moto-card .brand {
    font-weight: bold;
    color: #ff6b4a;
    margin-bottom: 5px;
}

.moto-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.moto-card .version {
    font-weight: normal;
    font-size: 0.9rem;
    color: #777;
}

.moto-card .desc {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.card-footer {
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.moto-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #c2c2c2;
}

.moto-card .status {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #4CAF50;
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .layout-grid {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-bottom: 30px;
    }
}

/* --- Filter Styles --- */
.sidebar {
    min-width: 250px;
}

.filter-box {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Ombra leggera */
}

.filter-group {
    margin-bottom: 20px;
}

.filter-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    /* Più grassetto */
    color: #000000;
    /* Testo nero */
    margin-bottom: 8px;
}

.filter-select {
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    border: 1px solid #e0e0e0;
    /* Bordo grigio chiaro */
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 30px;
    transition: border-color 0.2s;
}

.filter-select:focus {
    border-color: #333;
}

.btn-reset {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: #ffe5e5;
    /* Sfondo Rosa */
    color: #d32f2f;
    /* Testo Rosso Scuro */
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-reset:hover {
    background-color: #ffcccc;
}