@media (max-width: 1199px) {
    :root {
        --fs-hero-title: 60px;
        --fs-section-title-large: 48px;
        --fs-section-title: 38px;
        --fs-newsletter-title: 42px;
    }
}

@media (max-width: 991px) {
    :root {
        --fs-hero-title: 48px;
        --fs-section-title-large: 42px;
        --fs-section-title: 34px;
        --fs-section-eyelet: 24px;
        --fs-newsletter-title: 36px;
        --fs-card-title: 17px;
        --fs-large: 18px;
    }
}

@media (max-width: 575px) {
    :root {
        --fs-body: 15px;
        --fs-hero-title: 38px;
        --fs-section-title-large: 34px;
        --fs-section-title: 30px;
        --fs-section-eyelet: 20px;
        --fs-newsletter-title: 30px;
        --fs-card-title: 16px;
        --fs-text: 13px;
        --fs-button: 13px;
        --fs-large: 16px;
    }
}


@media (min-width: 768px) {
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vehicle-gallery {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 16px;
        align-items: stretch;
    }

    .vehicle-gallery__main,
    .vehicle-gallery__side {
        height: clamp(430px, 48vw, 765px);
    }

    .vehicle-gallery__main {
        position: relative;
        overflow: hidden;
        border-radius: 24px;
    }

    .vehicle-gallery__main .vehicle-gallery__item,
    .vehicle-gallery__main img {
        width: 100%;
        height: 100%;
        display: block;
    }

    .vehicle-gallery__main img {
        object-fit: cover;
    }

    .vehicle-gallery__side {
        display: flex;
        flex-direction: column;
        gap: 16px;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 8px;
    }

    .vehicle-gallery__side .vehicle-gallery__item {
        flex: 0 0 190px;
        height: 190px;
        display: block;
        overflow: hidden;
        border-radius: 18px;
        background: #f5f5f5;
    }

    .vehicle-gallery__side .vehicle-gallery__item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .vehicle-gallery__side::-webkit-scrollbar {
        width: 6px;
    }

    .vehicle-gallery__side::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 999px;
    }

    .vehicle-gallery__side::-webkit-scrollbar-thumb {
        background: #c7c7c7;
        border-radius: 999px;
    }

    .vehicle-gallery__side::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
}

@media (min-width: 1200px) {
    .vehicles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 480px) {
    .au-modal__content.svelte-b8gj2w.svelte-b8gj2w {
        max-width: 700px !important;
        max-height: 90vh;
    }
}




@media (max-width: 1600px) {
    .hero-search {
        width: 80%;
    }

    .reviews-box {
        width: 600px;
        height: 685px;
    }
}

@media (max-width: 1400px) {
    .main-menu #menu-main-menu {
        gap: 50px;
    }

    .section-value__info {
        margin-top: 0;
    }

    .accordion-body p {
        padding-right: 20px;
    }
}

@media (max-width: 1200px) {
    .main-menu {
        display: none;
    }

    .hero__content {
        padding: 0 20px;
    }

    .hero-search {
        width: 100%;
    }

    .section-logo .brand {
        gap: 10px;
        row-gap: 0;
        justify-content: center;
    }

    .official .brand .logo:last-of-type {
        margin-top: 10px;
    }

    .reviews-box {
        width: 500px;
        height: 685px;
    }

    .single-vehicle__options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .half-lg-section  {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .vehicle-gallery {
        padding: 20px 0 0 0;
        margin-bottom: 0px;
    }

    .single-vehicle__head {
        padding-bottom: 0;
    }

    .hero-search__top {
        gap: 20px;
        padding-left: 32px;
        padding-right: 32px;
        position: relative;
    }

    .hero-search__filter-toggle {
        display: inline-flex;
        gap: 8px;
    }

    .hero-search__filters {
        position: absolute;
        top: calc(100% - 15px);
        right: 0;
        z-index: 20;
        width: 230px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        background-color: var(--color-white);
        border: 1px solid var(--stroke);
        border-radius: 18px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        pointer-events: none;
        transition: all .25s ease-in-out;
    }

    .hero-search__filters.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero-search__filter {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 14px;
        border-radius: 12px;
    }

    .hero-search__top-title {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    .hero-search__submit {
        right: 0px;
    }

    .section-logo .brand {
        gap: 15px;
        /* justify-content: start; */
    }

    .section-logo .official {
        padding-right: 0;
        border: 0;
        text-align: center;
    }

    .section-logo .multistore {
        padding-left: 0;
        border: 0;
        text-align: center;
    }

    .official .brand .logo:last-of-type {
        margin-top: 0;
    }

    .section-logo .row {
        row-gap: 40px;
    }

    .section-value__info {
        top: 50%;
        padding: 0 20px;
    }

    .section-about-us .about-us__img img {
        width: 100%;
    }

    .reviews-box {
        padding: 30px 50px 105px 50px;
    }

    .newsletter-body {
        padding: 40px 50px;
    }

    .newsletter-body form {
        min-width: unset;
        margin-top: 250px;
    }

    .column-right {
        position: relative;
        display: flex;
        flex-direction: column-reverse;
    }

    .about-us__img {
        margin-top: 25px;
    }

    /* .about-box-info {
        position: unset;
        top: unset;
        left: unset;
        transform: unset;
        display: flex;
        flex-direction: row;
        gap: 25px;
        z-index: 2;
        flex-wrap: wrap;
        justify-content: center;
    } */

    .about-box-info {
        display: none;
    }

    .about-box-info__item:nth-child(1),
    .about-box-info__item:nth-child(2),
    .about-box-info__item:nth-child(3) {
        margin: 0;
    }

    .section-service .eyelet {
        width: 60%;
    }

    footer .social-ul {
        justify-content: flex-start;
        margin-bottom: 20px;
    }

    .reviews-box {
        width: 100%;
        height: 685px;
    }

    .faq-box {
        padding: 30px 0 0 0;
        display: flex;
        flex-direction: column;
    }

    .vehicle-gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .vehicle-gallery__side {
        display: none;
    }

    .vehicle-filters-modal__panel {
        width: 100%;
    }

    .single-vehicle__options {
        grid-template-columns: repeat(2, 1fr);
    }

    .vehicle-detail-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-head h3 {
        font-size: 30px;
    }

    .service-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .service-section.is-reversed .service-section__image {
        order: initial;
    }

    .vehicle-survey {
        width: 100%;
    }

    .hero-search__filter[data-condition="aziendali"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    .range-rating-wrap .form-range::-webkit-slider-thumb {
        width: 26px;
        height: 26px;
    }

    .range-rating-wrap .form-range::-moz-range-thumb {
        width: 26px;
        height: 26px;
    }

    .vehicle-gallery.js-before-left::before {
        display: none;
        width: 0;
    }

    .section-contacts {
        flex-direction: column;
    }

    .section-contacts .wp-container-content-0733e5d0 {
        width: 100%;
        flex-basis: 100%;
    }

    .section-contacts figure, .section-contacts figure img {
        width: 100%;
    }

    .office-showcase,
    .office-showcase--reverse {
        grid-template-columns: 1fr;
    }

    .office-showcase--reverse .office-showcase__image,
    .office-showcase--reverse .office-showcase__content {
        order: initial;
    }

    .office-showcase__image {
        min-height: 300px;
    }

    .office-showcase__image img {
        width: 100%;
        height: 100%;
        min-height: 300px;
        object-fit: cover;
        display: block;
    }

    .office-showcase__content {
        padding: 34px;
    }

    .group-vehicles-cta {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .group-vehicles-cta__content {
        position: relative;
        left: unset;
        transform: unset;
    }
}

@media (max-width: 767px) {

    :root {
        --fs-body: 15px;
        --fs-text: 14px;
        --fs-button: 13px;
        --fs-large: 20px;
        --fs-icon: 22px;
        --fs-review: 18px;

        --fs-card-title: 16px;
        --fs-section-eyelet: 20px;
        --fs-section-title: 25px;
        --fs-section-title-large: 34px;
        --fs-hero-title: 38px;
        --fs-newsletter-title: 25px;
    }

    .hero-search__filter-toggle {
        display: none;
    }

    form input[type=submit] {
        width: 100%;
    }

    .btn {
        text-wrap: nowrap;
    }

    .hero-search__fields {
        position: relative;
    }

    .hero-search__fields::before {
        position: absolute;
        display: block;
        content: '';
        top: 50%;
        transform: translateY(-50%);
        height: 1px;
        width: 100%;
        background-color: var(--stroke);
    }

    .hero-search__submit {
        width: 100%;
        text-align: center;
        border-radius: 50px;
    }

    .button-whatsapp {
        display: none;
    }

    .menu {
        width: 100%;
        min-width: 100%;
    }

    input#search-car::placeholder {
        font-size: 12px;
    }

    .hero__content {
        bottom: unset;
        transform: translateY(-50%);
        top: 50%;
    }

    .hero-search__form {
        display: flex;
        justify-content: space-between;
        padding: 0 32px 0 32px;
        align-items: stretch;
        flex-direction: column;
        padding-bottom: 10px;
    }

    .hero-search__top-title {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-search__filter-toggle {
        width: 100%;
    }

    .hero-search__fields {
        flex-direction: column;
        width: 100%;
    }

    .hero__title {
        order: 1;
        margin-bottom: 40px;
    }

    .hero__rating {
        order: 3;
        margin-top: 40px;
    }

    .hero-search {
        order: 3;
        margin-bottom: 0;
    }

    .hero-search__field+.hero-search__field {
        padding-left: 0;
        border: unset;
    }

    .hero-search__field::after {
        right: 4px;
    }

    .hero-search__field+.hero-search__field::after {
        right: 4px;
    }

    .custom-select[data-name="model"] {
        left: 0;
    }

    .hero-search__submit {
        align-self: end;
    }

    .right-menu>a {
        display: none;
    }

    .newsletter-body form {
        margin-top: 200px;
    }

    .car-card__image {
        height: 100%;
    }

    .bg-img {
        height: 400px;
    }

    .section-service .eyelet {
        width: 100%;
    }

    .vehicle-equipment {
        padding: 24px;
        border-radius: 18px;
    }

    .vehicle-equipment__head h2 {
        font-size: 28px;
    }

    .vehicle-equipment__list {
        grid-template-columns: 1fr;
    }

    .vehicle-equipment__tabs {
        width: 100%;
        border-radius: 18px;
    }

    .vehicle-equipment__tab {
        flex: 1;
    }

    .box-service__item {
        gap: 50px;
    }

    .section-reviews-faq {
        padding-top: 0;
    }

    .reviews-box {
        padding-bottom: 50px;
    }

    .reviews-authors {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 24px;
    }

    .reviews-author-btn {
        padding: 16px 0 0;
    }

    .vehicle-head button {
        width: 40px;
        height: 40px;
    }

    .newsletter-body {
        padding: 40px 20px;
    }

    .form-control::placeholder,
    input.form-control::placeholder,
    textarea.form-control::placeholder,
    input::placeholder,
    textarea::placeholder {
        font-size: 14px;
    }

    .search-auto form {
        width: 100%;
        /* text-align: center; */
    }

    .form-perizia form {
        display: block;
    }

    /* .vehicle-survey,
    .vehicle-survey .row,
    .vehicle-survey [class*="col-"],
    .vehicle-survey .field-col {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    } */

    #vehicle-filters-wrapper:not(:has(.vehicle-active-filters)) {
        border: 0;
        padding: 0;
        min-height: 0;
        background: transparent;
        box-shadow: none;
    }

    .vehicle-survey input,
    .vehicle-survey select,
    .vehicle-survey textarea,
    .vehicle-survey .form-control {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .date-field__input {
        font-size: 16px;
        padding-left: 16px;
        padding-right: 48px;
    }

    .vehicle-filter-select, .vehicle-filter-select select {
        width: 100%;
    }

    .vehicle-filter-bar {
        position: fixed;
        bottom: 78px;
        right: 12px;
        /* box-shadow: 0 -2px 10px rgba(0,0,0,0.1); */
        z-index: 990;
    }

    .single-vehicle__head-up {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .onetap-container-toggle .onetap-toggle {
        margin-bottom: 78px !important;
    }

    .single-vehicle__badges {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    #vehicle-filters-wrapper {
        padding: 12px;
        border-radius: 14px;
    }

    #vehicle-filters-wrapper .vehicle-filter-bar {
        gap: 10px;
    }

    #vehicle-filters-wrapper .vehicle-active-filters {
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 0;
        padding: 0;
        border-top: 0;
        overflow-x: auto;
    }

    .privacy > .d-flex {
        flex-wrap: wrap;
        justify-content: center;        
    }

}

@media (max-width: 575px) {
    .hero-search__top {
        padding-left: 24px;
        padding-right: 24px;
        display: none;
    }

    .hero-search__field {
        /* margin: 16px 24px; */
    }

    .hero-search__submit {
        height: 54px;
    }

    .hero__image {
    }

    .hero-search__filter-toggle {
        margin-top:10px !important;
        margin-bottom:10px !important;
    }

    .single-vehicle__options {
        grid-template-columns: 1fr;
    }

    .vehicle-detail-box {
        padding: 22px;
        border-radius: 18px;
    }

    .vehicle-detail-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .vehicle-detail-item strong {
        text-align: left;
    }
}

@media (max-width: 479px) {
    .newsletter-body form {
        margin-top: 150px;
    }
}