:root {
    /* Colori Fast Car */
    --primary-color: #7cc444; /* Verde Fast Car ufficiale */
    --primary-hover: #6bb036;
    
    /* Toni Scuri (Dark Theme) */
    --bg-main: #ffffff; /* Sfondo pagina */
    --card-bg: #1f2124; /* Sfondo nero delle card e parte destra del banner */
    --text-white: #ffffff;
    --text-muted: #a1a1aa;
    
    /* Dettagli */
    --badge-bg: #4f46e5; /* Viola per i badge come "Anticipo Zero" */
    --badge-secondary: #3b82f6; /* Blu per i badge in basso a destra */
    
    /* Font */
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   PROMO HERO BANNER (Layout Yoyomove)
   ========================================================================== */
.promo-hero {
    margin-top: 40px;
    margin-bottom: 60px;
}

.promo-topbar {
    background-color: var(--primary-color);
    padding: 15px 0;
}

.promo-topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
}

.promo-topbar-left h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 2px;
}

.promo-topbar-left p {
    font-size: 16px;
    font-weight: 400;
}

.promo-topbar-right h2 {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
    line-height: 1.2;
}

.promo-banner-container {
    display: flex;
    padding: 0; /* Rimuove il padding container per far aderire le foto */
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
}

.promo-banner-left {
    width: 65%;
    position: relative;
    background-color: #333;
    overflow: hidden;
}

.promo-car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.4);
}

.dot.active {
    background-color: var(--primary-color);
}

.promo-arrows {
    display: flex;
    gap: 10px;
}

.promo-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color) !important;
    border: none;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.promo-arrow:hover {
    background-color: var(--primary-hover) !important;
}

.promo-banner-right {
    width: 35%;
    background-color: var(--card-bg);
    color: var(--text-white);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.promo-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 20px;
}

.promo-divider {
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    margin-bottom: 30px;
}

.promo-price-box {
    display: flex;
    align-items: baseline;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.da-text {
    font-size: 24px;
    font-weight: 500;
    margin-right: 8px;
}

.price-val {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.promo-old-price {
    font-size: 16px;
    color: var(--text-white);
    margin-bottom: 25px;
}

.promo-old-price span {
    font-weight: 700;
    color: var(--primary-color);
}

.promo-terms {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.btn-scopri {
    background-color: var(--primary-color) !important;
    color: #000 !important;
    border: none;
    padding: 15px 0;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.btn-scopri:hover {
    background-color: var(--primary-hover) !important;
}

/* ==========================================================================
   CARDS SECTION (Tema Scuro)
   ========================================================================== */
.cars-section {
    padding-bottom: 80px;
}

.section-heading {
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 50px;
    color: #000;
}

.section-heading strong {
    font-weight: 800;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.car-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    color: var(--text-white);
    display: flex;
    flex-direction: column;
}

.car-card-top-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #000;
    font-size: 12px;
    font-weight: 700;
    z-index: 3;
    padding: 5px 15px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    min-width: 120px;
    max-width: 90%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-header {
    padding: 30px 20px 15px;
}

.car-brand-model {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
}

.car-details-top {
    font-size: 13px;
    color: var(--text-muted);
}

.car-img-wrapper {
    position: relative;
    padding: 0 15px;
}

.car-img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.badge-top-left {
    position: absolute;
    top: 10px;
    left: 5px;
    background-color: var(--badge-bg);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

.car-tags {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.car-tags span {
    font-size: 12px;
    color: var(--text-muted);
}

.car-tags span.highlight-tag {
    color: #c084fc; /* Colore violaceo come nell'immagine per l'alimentazione */
}

.car-price-area {
    padding: 20px;
    position: relative;
}

.car-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
}

.car-price-sub {
    font-size: 14px;
    color: var(--primary-color);
}

.badge-bottom-right {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--badge-secondary);
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
}

.car-features-list {
    list-style: none;
    padding: 0 20px 20px;
    flex: 1;
}

.car-features-list li {
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.car-features-list li i {
    color: var(--primary-color); /* Spunte verdi */
    font-size: 14px;
}

.car-footer-action {
    padding: 0 20px 20px;
}

.btn-card {
    background-color: var(--primary-color) !important;
    color: #000 !important;
    border: none;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-card:hover {
    background-color: var(--primary-hover) !important;
}

/* ==========================================================================
   SEARCH WIDGET & CHIPS (Versione Originale)
   ========================================================================== */
.search-section {
    padding: 20px 0 40px;
}

.search-widget {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    max-width: 1100px;
    margin: 0 auto 30px;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0 15px;
}

.search-field label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.search-field select {
    appearance: none;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    color: #000;
    outline: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%233b82f6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 20px;
}

.search-divider {
    width: 1px;
    height: 40px;
    background-color: #e2e8f0;
}

.range-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-slider input {
    flex: 1;
    accent-color: var(--primary-color);
}

.range-slider span {
    font-weight: 600;
    font-size: 15px;
    min-width: 50px;
    color: #000;
}

.search-btn {
    padding: 12px 24px;
    font-size: 15px;
    background-color: var(--primary-color) !important;
    color: #000 !important;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background-color: var(--primary-hover) !important;
}

.filters-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.chip {
    padding: 8px 20px;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
    background-color: #ffffff !important;
}

.chip.active {
    background: var(--primary-color) !important;
    color: #000 !important;
    border-color: var(--primary-color) !important;
}

/* ==========================================================================
   CAR DETAIL PAGE
   ========================================================================== */
.detail-page {
    background-color: var(--bg-color); /* Light gray for content */
    color: var(--text-dark);
}

.detail-container {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
    align-items: flex-start;
}

/* Left Column */
.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-header {
    margin-bottom: 20px;
}

.detail-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 5px;
    color: #111;
    line-height: 1.1;
}

.detail-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Gallery */
.detail-gallery {
    margin-bottom: 40px;
}

.main-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnails img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    opacity: 0.6;
}

.thumbnails img:hover {
    opacity: 1;
}

.thumbnails img.active {
    border-color: var(--primary-color);
    opacity: 1;
}

/* Sections */
.detail-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border: 1px solid #f1f5f9;
}

.detail-section h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #111;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
}

/* Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.spec-item i {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.spec-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.spec-value {
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

/* Included Services */
.included-services-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.included-services-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #334155;
}

.included-services-list i {
    color: var(--primary-color);
    font-size: 18px;
    background: rgba(16, 185, 129, 0.1);
    padding: 5px;
    border-radius: 50%;
}

/* Right Column (Configurator) */
.detail-sidebar {
    width: 380px;
    position: sticky;
    top: 20px;
}

.configurator-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.configurator-price-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.config-price-label {
    font-size: 14px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.config-price-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 5px;
    transition: opacity 0.2s;
}

.config-old-price {
    font-size: 14px;
    color: #94a3b8;
}

.config-old-price span {
    text-decoration: line-through;
}

.configurator-form .form-group {
    margin-bottom: 20px;
}

.configurator-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.configurator-form select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.configurator-form select:focus {
    border-color: var(--primary-color);
}

.configurator-form select option {
    background: var(--card-bg);
    color: white;
}

.config-summary {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--primary-color);
    padding: 12px 15px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 25px;
}

.config-summary p {
    font-size: 13px;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.4;
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-quote {
    display: inline-block;
    background-color: var(--primary-color) !important;
    color: #000 !important;
    padding: 15px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.2s;
}

.btn-quote:hover {
    background-color: var(--primary-hover) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
    .promo-banner-container {
        flex-direction: column;
        height: auto;
    }
    
    .promo-banner-left {
        width: 100%;
        height: 350px;
    }

    .promo-banner-right {
        width: 100%;
        padding: 30px 20px;
    }

    .search-widget {
        flex-direction: column;
        gap: 15px;
    }

    .search-divider {
        display: none;
    }

    .search-field {
        width: 100%;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 15px;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .detail-container {
        flex-direction: column;
    }
    
    .detail-sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .promo-title {
        font-size: 36px;
    }

    .promo-price-box .price-val {
        font-size: 48px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .included-services-list {
        grid-template-columns: 1fr;
    }

    .cars-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}
