:root {
    --bg-color: #080c14;
    --card-bg: #111827;
    --accent: #0ea5e9; /* Cyan/Blu professionale per la tecnologia */
    --accent-glow: rgba(14, 165, 233, 0.25);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    --success: #10b981; /* Verde sicurezza/garanzia */
    --success-gradient: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(14, 165, 233, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* HEADER & NAVBAR CON EFFETTO 3D */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(8, 12, 20, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* Contenitore flessibile per immagine e scritta del logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transform: translateZ(30px);
}

/* Dimensioni dell'immagine del logo */
.site-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Stile squadrato e moderno per la scritta del logo */
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    transform: translateZ(30px);
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    transform: translateZ(15px);
}

nav ul li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-main);
}

.cta-btn {
    background: var(--accent-gradient);
    color: white;
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 20px var(--accent-glow);
    transform: translateZ(35px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px) translateZ(40px);
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.4);
}

/* HERO SECTION 3D STYLE */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 8% 50px 8%;
    position: relative;
    background: radial-gradient(circle at 75% 25%, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
}

.hero-content {
    max-width: 580px;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    
    /* OMBRA ACCENTUATA ED EFFETTO RILIEVO PROFONDO SOLO SUL TITOLO */
    text-shadow: 
        0 2px 0 rgba(255, 255, 255, 0.15),  /* Luce superiore per dare il rilievo 3D */
        0 15px 35px rgba(0, 0, 0, 0.95),   /* Ombra scura profonda principale */
        0 0 50px rgba(14, 165, 233, 0.35);  /* Bagliore neon cian accentuato */
}

.hero-content p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
    /* Leggera ombra anche sul paragrafo per staccare meglio dallo sfondo */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(14, 165, 233, 0.05);
}

/* 3D LOGO EMBLEM DESIGN */
.hero-3d-visual {
    position: relative;
    width: 380px;
    height: 380px;
    perspective: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-3d-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(8, 12, 20, 0.98) 100%);
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(14, 165, 233, 0.1);
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(14, 165, 233, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-3d-card:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 35px 70px rgba(0,0,0,0.9), 0 0 50px rgba(14, 165, 233, 0.2);
}

.hero-card-logo {
    width: 60%;
    max-height: 140px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(14, 165, 233, 0.3));
}

.logo-emblem-text {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
}

.logo-emblem-text span {
    color: var(--accent);
}

.logo-emblem-sub {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* SEZIONE VANTAGGI IMPORTAZIONE */
.import-features {
    padding: 80px 8%;
    background: rgba(17, 24, 39, 0.3);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
}

.section-title p {
    color: var(--text-muted);
    font-size: 15px;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px 30px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.feature-card i {
    font-size: 30px;
    color: var(--accent);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* SHOWROOM SECTION */
.showroom {
    padding: 100px 8%;
    max-width: 1600px;
    margin: 0 auto;
}

.showroom .section-title h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.car-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(14, 165, 233, 0.18);
    border-color: var(--border-hover);
}

.car-image-container {
    overflow: hidden;
    position: relative;
    height: 220px;
    border-bottom: 1px solid var(--border-color);
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.car-card:hover .car-image {
    transform: scale(1.06);
}

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(8, 12, 20, 0.85);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 2;
}

.car-details {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-details h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
}

.car-specs span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-specs span i {
    color: var(--accent);
    font-size: 14px;
}

.car-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: auto;
}

.car-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 21px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-details {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
}

.btn-details:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* STILE MENU A TENDINA DETTAGLI AUTO */
.car-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background: rgba(6, 9, 15, 0.95);
    border-top: 0px solid var(--border-color);
    padding: 0 24px;
    border-radius: 0 0 16px 16px;
}

.car-dropdown-content h4 {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.car-dropdown-content ul {
    list-style: none;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.car-dropdown-content ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-dropdown-content ul li i {
    color: var(--success);
}

.cta-dropdown-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--accent-gradient);
    color: #fff;
    padding: 11px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.cta-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    opacity: 0.95;
}

.car-dropdown-content[style*="max-height:"] {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
}

/* FOOTER */
footer {
    background: #05080e;
    border-top: 1px solid var(--border-color);
    padding: 40px 8%;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* --- STILE SEZIONE CONTATTI / MODULO --- */
.contact-section {
    background-color: #080c14;
    padding: 90px 20px;
    color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.contact-form-container {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 45px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.car-contact-form .form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.car-contact-form label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.car-contact-form input,
.car-contact-form textarea {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.car-contact-form input:focus,
.car-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.03);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.car-contact-form input::placeholder,
.car-contact-form textarea::placeholder {
    color: #64748b;
}

.car-contact-form input[readonly] {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.footer-copy {
    text-align: center;
    margin-top: 50px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media(max-width: 968px) {
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 130px;
        min-height: auto;
        padding-bottom: 50px;
    }
    .hero-content {
        margin-bottom: 40px;
    }
    .hero-3d-visual {
        width: 280px;
        height: 280px;
    }
    nav ul {
        display: none;
    }
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 14px 5%;
    }
    .site-logo {
        height: 48px;
        width: auto;
        object-fit: contain;
    }
    .logo {
        font-size: 18px;
        letter-spacing: 1px;
    }
    .logo-link {
        gap: 8px;
    }
    .cta-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
}
