.vm-compatible-categories-section {
    margin: 25px 0 35px;
    padding: 25px 15px;
    background: #ffffff;
    text-align: center;
}

.vm-compatible-categories-title {
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #1d2b36;
}

.vm-compatible-categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 1200px;
    margin: 0 auto;
}

.vm-compatible-category-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 12px 18px;
    background: #f7f8f9;
    color: #0b3554;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.vm-compatible-category-item:hover,
.vm-compatible-category-item.is-active {
    background: #0b3554;
    color: #ffffff;
}

.vm-compatible-category-image {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
}

.vm-compatible-category-image img {
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
}

.vm-compatible-category-name {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .vm-compatible-categories-title {
        font-size: 18px;
    }

    .vm-compatible-categories-list {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }

    .vm-compatible-category-item {
        flex: 0 0 auto;
        font-size: 14px;
        padding: 10px 14px;
    }
}

.vm-vehicle-results-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: center;
    color: #163571;
}

.vm-vehicle-search-box {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.vm-vehicle-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color:#163571;
}

.vm-vehicle-field {
    margin-bottom: 12px;
}

.vm-vehicle-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #444;
}

.vm-vehicle-field select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.vm-vehicle-field select:disabled {
    background: #f5f5f5;
    color: #999;
}

/* Select ricercabili custom modulo Ricambi ------------------------- */

.vm-rr-native-hidden {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.vm-rr-searchable-select {
    position: relative;
    width: 100%;
}

.vm-rr-searchable-input {
    width: 100%;
    min-height: 38px;
    padding: 8px 34px 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #ffffff;
    color: #222;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    cursor: pointer;
}

.vm-rr-searchable-select::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 12px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #555;
    pointer-events: none;
}

.vm-rr-searchable-select.is-open::after {
    transform: rotate(180deg);
}

.vm-rr-searchable-input:focus {
    outline: none;
    border-color: #004c7f;
    box-shadow: 0 0 0 2px rgba(0, 76, 127, 0.12);
}

.vm-rr-searchable-select.is-disabled .vm-rr-searchable-input,
.vm-rr-searchable-input:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.vm-rr-searchable-list {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9999;
    max-height: 240px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.vm-rr-searchable-select.is-open .vm-rr-searchable-list {
    display: block;
}

.vm-rr-searchable-option {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: #ffffff;
    color: #222;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.vm-rr-searchable-option:hover,
.vm-rr-searchable-option:focus {
    background: #f3f6f9;
    color: #004c7f;
    outline: none;
}

.vm-rr-searchable-empty {
    padding: 10px 12px;
    color: #777;
    font-size: 13px;
    line-height: 1.35;
}

.vm-vehicle-submit {
    width: 100%;
    margin-top: 10px;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    background: #0066ff;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.vm-vehicle-submit:hover {
    background: #0053cc;
}

.vm-vehicle-not-found {
    margin-top: 10px;
    font-size: 12px;
    text-align: left;
}

.vm-vehicle-not-found-link {
    color: #0066ff;
    text-decoration: underline;
}

/* SEZIONE RISULTATI SOTTO IL BOX ---------------------------------- */

.vm-vehicle-results-section {
    margin-top: 40px;
}

.vm-vehicle-results {
    max-width: 1200px;      /* puoi adattarlo al layout del sito */
    margin: 0 auto 40px;    /* centrato */
}

.vm-vehicle-no-results {
    font-size: 14px;
    color: #666;
}

/* Griglia categorie: 4 colonne su desktop */
.vm-vehicle-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Card categoria */
.vm-vehicle-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px;
    border-radius: 12px;
    background: #fafafa;
    border: 1px solid #eee;
    text-decoration: none;
    color: #222;
    transition:
            box-shadow 0.2s ease,
            transform 0.2s ease,
            border-color 0.2s ease,
            background-color 0.2s ease;
    min-height: 220px;
}

.vm-vehicle-cat-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-3px);
    border-color: #00336b;          /* blu Valentino */
    background-color: #ffffff;
}

.vm-vehicle-cat-image-wrap {
    width: 100%;
    max-width: 160px;
    margin-bottom: 12px;
}

.vm-vehicle-cat-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.vm-vehicle-cat-name {
    font-size: 14px;
    font-weight: 600;
}

/* Responsive: 3 colonne su tablet, 2 su mobile, 1 su schermi piccoli */
@media (max-width: 1024px) {
    .vm-vehicle-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .vm-vehicle-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vm-vehicle-results {
        max-width: 100%;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .vm-vehicle-cat-grid {
        grid-template-columns: 1fr;
    }
}

/* LAYOUT HERO CON 2 COLONNE (FORM + IMMAGINE) ---------------------- */

.vm-vehicle-hero {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 10px;
    box-sizing: border-box;
}

.vm-hero-row {
    display: flex;
    align-items: stretch;
    gap: 32px;
}

/* Colonna sinistra: modulo */
.vm-hero-left {
    flex: 0 0 380px;
    max-width: 380px;
}

/* Colonna destra: slider promo */
.vm-hero-right {
    flex: 1;
    min-width: 0;
}

.vm-hero-promo-splide,
.vm-hero-promo-splide .splide__track,
.vm-hero-promo-splide .splide__list,
.vm-hero-promo-splide .splide__slide {
    height: 100%;
}

.vm-hero-promo-splide {
    width: 100%;
    min-height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #0b3554;
}

.vm-hero-promo-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: 100%;
    height: 100%;
    padding: 34px;
    border-radius: 12px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-sizing: border-box;
}

.vm-hero-promo-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.vm-hero-promo-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    color: #ffffff;
}

.vm-hero-promo-title {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.vm-hero-promo-text {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.vm-hero-promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 4px;
    background: #0066ff;
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    text-decoration: none !important;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}

.vm-hero-promo-button:hover,
.vm-hero-promo-button:focus {
    background: #0053cc;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.vm-hero-promo-splide .splide__pagination {
    bottom: 14px;
    padding: 0 20px;
    justify-content: flex-end;
}

.vm-hero-promo-splide .splide__pagination__page {
    width: 8px;
    height: 8px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.55);
    opacity: 1;
}

.vm-hero-promo-splide .splide__pagination__page.is-active {
    transform: scale(1.25);
    background: #ffffff;
}

.vm-hero-promo-splide .splide__arrow {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.88);
    opacity: 1;
}

.vm-hero-promo-splide .splide__arrow svg {
    width: 14px;
    height: 14px;
    fill: #0b3554;
}

.vm-rr-archive-filter-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vm-rr-archive-filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.vm-rr-archive-filter-reset:hover,
.vm-rr-archive-filter-reset:focus {
    text-decoration: none;
}

/* RESPONSIVE: su mobile immagine SOPRA al modulo */
@media (max-width: 991px) {
    .vm-hero-row {
        flex-direction: column-reverse; /* immagine sopra, form sotto */
    }

    .vm-hero-left,
    .vm-hero-right {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .vm-vehicle-hero {
        margin-bottom: 30px;
    }

    .vm-hero-promo-splide {
        min-height: 320px;
    }

    .vm-hero-promo-slide {
        min-height: 320px;
    }
}

@media (max-width: 600px) {
    .vm-hero-promo-splide {
        min-height: 280px;
    }

    .vm-hero-promo-slide {
        min-height: 280px;
        padding: 24px 20px;
    }

    .vm-hero-promo-title {
        font-size: 22px;
    }

    .vm-hero-promo-text {
        font-size: 14px;
    }

    .vm-hero-promo-button {
        width: 100%;
    }

    .vm-hero-promo-splide .splide__arrow {
        display: none;
    }

    .vm-hero-promo-splide .splide__pagination {
        justify-content: center;
    }
}

/* Lista sottocategorie dentro la card -------------------------------- */

.vm-vehicle-cat-main {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 10px;
}

.vm-vehicle-cat-sublist {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
}

.vm-vehicle-cat-sublist li {
    font-size: 13px;
    margin-bottom: 4px;
}

.vm-vehicle-cat-sublist li a {
    color: #004c7f; /* blu scuro */
    text-decoration: none;
}

.vm-vehicle-cat-sublist li a:hover {
    text-decoration: underline;
}
/* Banner sopra i risultati categoria -------------------------------- */

.vm-vehicle-results-banner {
    background: #f3f6f9;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 20px;
    border-left: 4px solid #004c7f; /* blu */
}

.vm-vehicle-results-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.vm-vehicle-results-banner-title {
    margin: 0;
    font-size: 14px;
    color: #222;
}

.vm-vehicle-results-banner-title strong {
    font-weight: 700;
}

.vm-vehicle-results-banner-year {
    font-size: 13px;
    color: #555;
    margin-left: 4px;
}

.vm-vehicle-results-change-link {
    font-size: 13px;
    text-decoration: underline;
    color: #004c7f;
    font-weight: 600;
    cursor: pointer;
}

.vm-vehicle-results-change-link:hover {
    text-decoration: none;
}

@media (max-width: 600px) {
    .vm-vehicle-results-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
.vm-vehicle-results-banner-cat {
    font-weight: 700;
}

/* Modulo compatto categorie Ricambi ------------------------------- */

.vm-rr-archive-filter-wrap {
    margin: 0 0 25px;
    padding: 18px 20px;
    background: #363836;
    border-radius: 8px;
    border-left: 4px solid #004c7f;
}

.vm-rr-archive-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.vm-rr-archive-filter-title {
    flex: 0 0 auto;
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
    color:white;
    white-space: nowrap;
}

.vm-rr-archive-filter-field {
    flex: 1 1 0;
    min-width: 0;
}

.vm-rr-archive-filter-field label {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
    font-weight: 600;
    color:white;
}

.vm-rr-archive-filter-field select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

.vm-rr-archive-filter-field select:disabled {
    background: #f5f5f5;
    color: #999;
}

.vm-rr-archive-filter-field .vm-rr-searchable-input {
    min-height: 42px;
}

.vm-rr-archive-filter-field .vm-rr-searchable-select::after {
    top: 18px;
}

.vm-rr-archive-filter-submit {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 22px;
    border: none;
    border-radius: 4px;
    background: #004c7f;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.vm-rr-archive-filter-submit:hover {
    background: #003a61;
}

@media (max-width: 991px) {
    .vm-rr-archive-filter-form {
        flex-wrap: wrap;
    }

    .vm-rr-archive-filter-title {
        flex: 0 0 100%;
        padding-bottom: 0;
    }

    .vm-rr-archive-filter-field {
        flex: 1 1 calc(33.333% - 12px);
    }

    .vm-rr-archive-filter-submit {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .vm-rr-archive-filter-wrap {
        padding: 16px;
    }

    .vm-rr-archive-filter-form {
        display: block;
    }

    .vm-rr-archive-filter-title {
        margin-bottom: 12px;
        white-space: normal;
    }

    .vm-rr-archive-filter-field {
        margin-bottom: 12px;
    }

    .vm-rr-archive-filter-submit {
        width: 100%;
    }
}
