/* font */
@media (max-width: 1199px) {
    h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 22px;
        line-height: 30px;
    }

    h3 {
        font-size: 17px;
    }

    p {
        font-size: 12px;
        line-height: 19px;
    }

    ul {
        gap: 10px;
        margin: 0 0 20px;
    }

    ul li {
        padding-left: 25px;
        font-size: 12px;
    }
}

/* btn */
@media (max-width: 1199px) {
    .btn-rainbow,
    .btn-red,
    .btn-violet {
        font-size: 15px;
        padding: 10px 30px 14px 30px;
        align-items: end;
    }

    .btn-plus {
        bottom: unset;
        right: unset;
        font-size: 17px;
        width: 30px;
        position: relative;
        margin-left: auto;
    }

    .btn-plus span {
        font-size: 17px !important;
    }
}

/* generale */
@media (max-width: 1199px) {
    section {
        padding: 40px 0;
    }
}

@media (min-width: 1200px) {
    .mobile,
    img.mobile {
        display: none !important;
    }
}

@media (max-width: 1199px) {
    .desktop,
    img.desktop {
        display: none !important;
    }
}

/* search */
@media (max-width: 1199px) {
    .search {
        width: 100%;
    }

    .select2-container {
        width: 100% !important;
    }
}

/* navbar */

@media (max-width: 1400px) {
    header nav.navbar img.logo {
        width: 180px;
    }

    header nav.navbar ul li {
        font-size: 16px;
    }

    header nav.navbar ul {
        gap: 15px;
    }
}

@media (max-width: 1199px) {
    header .bar {
        display: none;
    }

    header .navbar {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    header .nav-mobile {
        display: none;
    }
}


/* footer */
@media (max-width: 1199px) {
    footer {
        padding-top: 40px;
    }

    footer img.logo {
        width: 60px;
        margin-bottom: 25px;
    }

    footer .big p {
        font-size: 25px;
        margin-bottom: 20px;
    }

    footer ul.social {
        margin-bottom: 20px;
    }

    footer ul.social li a img {
        width: 20px;
        height: 20px;
    }

    footer .title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    footer .bar {
        margin-top: 30px;
    }

    footer .bar p {
        font-size: 13px;
        line-height: 19px;
    }
}

@media (max-width: 991px) {
    footer {
        background-image: url("../img/footer_mobile.jpg");
        background-position: top right;
    }
}

/* section */
@media (max-width: 1199px) {
    /* section-1 */
    .section-1 h1 {
        color: var(--White);
        margin-bottom: 20px;
        font-size: 35px;
    }

    .section-1 p {
        margin-bottom: 30px;
    }

    /* section-2 */
    .section-2 .card {
        gap: 50px;
    }

    .section-2 .card img {
        margin-bottom: 10px;
        width: 200px;
    }

    .section-2 .card h3 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .section-2 .card h4 {
        font-size: 17px;
        margin-bottom: 10px;
    }

    .section-2 .card .btn-plus {
        opacity: 1;
        position: absolute;
        right: 15px;
        bottom: 15px;
    }

    /* section-3 */
    .section-3 {
        padding: 40px 0;
    }
    
    .section-3 h2 {
        margin-bottom: 10px;
    }

    .section-3 h3 {
        margin-bottom: 10px;
    }

    .section-3 p {
        margin-bottom: 20px;
    }

    /* section-4 */
    .section-4 .card {
        padding: 20px;
        margin-top: 15px;
    }

    .section-4 .card.v2 {
        padding-right: 20px;
    }

    .section-4 .card.v3 {
        aspect-ratio: 337/248;
    }

    /* section-5 */
    .section-5 .container {
        padding-left: 60px;
    }

    .section-5 h2 {
        font-size: 35px;
        line-height: normal;
        margin-bottom: 15px;
    }

    .section-5 .h3 p {
        font-size: 20px;
    }

    .section-5 .card {
        padding: 20px;
        margin-top: 25px;
    }

    .section-5 .card .colored p {
        line-height: 22px;
    }

    .section-5 .card p {
        font-size: 12px;
    }

    .section-5 .card ul li {
        font-size: 12px;
    }

    /* section-6 */
    .section-6 h2 {
        margin-bottom: 20px;
    }

    .section-6 p {
        margin-bottom: 20px;
    }

    .section-6 .box {
        margin-top: 80px;
    }

    .section-6 .carousel_marchi img {
        width: 50px !important;
    }

    .section-6 .carousel_marchi .title {
        font-size: 14px;
    }

    /* section-7 */
    .section-7 {
        padding-top: 100px;
    }

    .section-7 .status {
        justify-content: space-between;
        gap: 0;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .section-7 .status .title {
        font-size: 14px;
    }

    .section-7 .status svg {
        width: 20px;
        height: 20px;
    }

    .section-7 .cars_group {
        gap: 20px;
        margin-bottom: 40px;
    }

    .section-7 .cars_group .btn.marca .title,
    .section-7 .cars_group .btn.model {
        font-size: 12px;
    }

    .section-7 .cars_group img,
    .section-7 .car_selected img {
        width: 50px;
    }

    .section-7 .car_selected .title {
        font-size: 17px;
    }

    .section-7 hr {
        margin: 15px 0 30px 0;
    }

    .section-7 .filter {
        gap: 20px;
        margin-top: 30px;
    }


    .section-7 .filter button {
        font-size: 14px;
    }

    /* section-8 */
    .section-8 {
        padding: 50px 0;
    }

    .section-8 .card {
        margin-top: 15px;
    }

    .section-8 h2 {
        font-size: 35px;
        line-height: 40px;
        margin-bottom: 40px;
    }

    .section-8 .card h3 {
        font-size: 40px;
    }

    .section-8 .card h3 span {
        font-size: 19px;
    }

    .section-8 .card h4 {
        font-size: 30px;
        margin-bottom: 40px;
        line-height: 35px;
    }

    .section-8 .card.v2 {
        aspect-ratio: 450/380;
    }

    /* section-9 */
    .section-9 h3 {
        font-size: 25px;
        line-height: 30px;
        margin-bottom: 15px;
    }

    .section-9 .icons {
        margin-top: 20px;
    }

    .section-9 .icons img {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .section-9 .icons p {
        font-size: 18px;
    }

    /* section-10 */
    .section-10 {
        padding: 100px 0;
    }

    .section-10 h2 {
        font-size: 35px;
        line-height: 45px;
        margin-bottom: 10px;
    }

    .section-10 h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .section-10 h4 {
        font-size: 20px;
    }

    .section-10 ul li {
        font-size: 16px;
        padding-left: 25px;
    }

    .section-10 ul li:before {
        top: 6px;
    }

    .section-10 img {
        width: 400px;
    }

    /* section-11 */
    .section-11 {
        padding: 100px 0 50px 0;
    }

    .section-11 img {
        width: 500px;
        margin-bottom: 50px;
    }

    /* section-12 */
    .section-12 {
        padding: 50px 0;
    }

    .section-12 .box {
        padding: 30px 0 30px 50px;
    }

    .section-12 h2 {
        font-size: 35px;
        margin-bottom: 30px;
        line-height: 45px;
    }

    .section-12 img {
        width: 100%;
    }

    .section-12 h3 {
        font-size: 20px;
    }

    .section-12 .title {
        font-size: 18px;
    }

    /* section-13 */
    .section-13 {
        height: unset;
        display: block;
        padding-top: 0;
    }

    .section-13 .image {
        width: 100%;
        aspect-ratio: 947/743;
        max-height: unset;
        position: relative;
        margin-bottom: 40px;
    }

    .section-13 h2 {
        margin-bottom: 10px;
    }

    .section-13 h3 {
        margin-bottom: 10px;
    }

    .section-13 p {
        margin-bottom: 20px;
    }

    /* section-15 */
    .section-15 h2 {
        font-size: 33px;
        line-height: 45px;
    }

    .section-15 h3 {
        margin-bottom: 15px;
    }

    .section-15 p {
        margin-bottom: 15px;
    }

    .section-15 ul {
        margin-bottom: 15px;
    }

    .section-15 .title {
        font-size: 18px;
    }

    .section-15 img {
        width: 100%;
    }

    /* section-16 */
    .section-16 .card {
        gap: 50px;
    }

    .section-16 .card img {
        margin-bottom: 10px;
        width: 200px;
    }

    /* section-17 */
    .section-17 h2 {
        font-size: 35px;
        margin-bottom: 20px;
        line-height: 40px;
    }

    .section-17 h3 {
        margin-bottom: 30px;
        font-size: 18px;
    }

    .section-17 .box {
        padding: 40px 20px 20px 40px;
    }

    .section-17 .form-label {
        font-size: 16px;
    }

    .section-17 .form-control {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 20px;
        padding: 10px 20px;
    }

    .section-17 .form-check .form-check-label {
        font-size: 14px;
    }

    /* section-18 */
    .section-18 {
        padding-top: 100px;
        background-image: url("../img/section-18_mobile.jpg");
        background-position: bottom center;
    }

    .section-18 h1 {
        margin-bottom: 10px;
    }

    .section-18 .card {
        padding: 20px;
    }

    .section-18 .card.big {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: unset;
    }

    .section-18 .card.big h2 {
        line-height: 30px;
        font-size: 22px;
    }

    .section-18 .card.img img {
        object-fit: cover;
        object-position: top left;
    }

    .section-18 .card h3 {
        margin-bottom: 20px;
    }

    .section-18 .card .action .text {
        font-size: 18px;
    }

    .section-18 .card .action .btn-plus {
        width: 40px;
    }

    .section-18 .card .action .btn-plus img {
        aspect-ratio: 1/1;
        width: 20px;
        height: 20px;
    }

    /* section-19 */
    .section-19 {
        height: unset;
        display: block;
        padding-top: 100px;
    }

    .section-19 .image {
        width: 100%;
        aspect-ratio: 947/743;
        max-height: unset;
        position: relative;
        margin-bottom: 0;
        top: unset;
        right: unset;
        object-fit: contain;
    }

    .section-19 h2 {
        margin-bottom: 10px;
    }

    .section-19 h3 {
        margin-bottom: 0;
    }

    .section-19 p {
        margin-bottom: 20px;
    }

    /* section-21 */
    .section-21 {
        background-image: url("../img/section-21_mobile.jpg");
        padding-top: 100px;
        background-position: top;
    }

    .section-21 h1 {
        margin-bottom: 15px;
    }

    .section-21 .accordion {
        margin-top: 40px;
    }

    .section-21 .accordion-button {
        padding: 20px;
        font-size: 20px;
        align-items: normal;
    }

    .section-21 .accordion-button h3 {
        font-size: 17px;
    }

    .section-21 .accordion-body {
        padding: 0 20px 20px 20px;
    }

    .section-21 .accordion-button::after {
        width: 30px;
        height: 30px;
    }

    /* section-22 */
    .section-22 {
        padding-top: 100px;
    }

    .section-22 .box {
        padding: 20px;
    }

    .section-22 img {
        margin-bottom: 20px;
    }

    .section-22 h2 {
        margin-bottom: 25px;
    }

    .section-22 .form-label {
        font-size: 16px;
    }

    .section-22 .form-control {
        font-size: 14px;
        line-height: 18px;
        margin-bottom: 20px;
        padding: 10px 20px;
    }

    .section-22 .form-check .form-check-label {
        font-size: 14px;
    }

    .section-22 .contact {
        font-size: 14px;
    }

    /* section-25 */
    .section-25 {
        padding: 100px 0 40px 0;
    }
}

@media (max-width: 991px) {
    /* section-4 */
    .section-4 {
        background-image: url("../img/section-4_mobile.jpg");
    }

    /* section-5 */
    .section-5 {
        background-image: url("../img/section-5_mobile.jpg");
    }
}

@media (max-width: 580px) {
    /* navbar */
    .nav-mobile .search.compila {
        display: none;
    }
}

/* section-1 */
@media (max-width: 1399px) and (min-width: 769px) {
    .section-1 video.desktop {
        display: none;
    }

    .section-1 video.tablet {
        display: block;
    }

    .section-1 video.mobile {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-1 video.desktop {
        display: none;
    }

    .section-1 video.tablet {
        display: none;
    }

    .section-1 video.mobile {
        display: block;
    }
}

@media (max-width: 991px) {
    .section-1 .btn-red.desk {
        display: none;
    }

    .section-1 .btn-red.mobile {
        display: inline-flex;
    }
}

/* section-2 */
@media (max-width: 768px) {
    .section-2 .card {
        padding: 15px;
        margin-top: 15px;
        flex-direction: column;
        gap: unset;
    }

    .section-2 .card img {
        margin-bottom: 10px;
        width: 100%;
    }

    .section-2 .card .btn-plus {
        position: relative;
        right: unset;
        bottom: unset;
    }
}

/* section-3 */
@media (max-width: 1399px) and (min-width: 992px) {
    .section-3 {
        height: unset;
        display: block;
        padding: 40px 0;
    }

    .section-3 .image {
        display: none;
    }

    .section-3 img.tablet {
        display: block;
        width: 100%;
    }
}

@media (max-width: 991px) {
    .section-3 {
        padding-top: 0;
        height: unset;
        display: block;
    }

    .section-3 .image {
        width: 100%;
        aspect-ratio: 947/743;
        max-height: unset;
        position: relative;
        margin-bottom: 40px;
    }

    .section-3 img.tablet {
        display: none;
    }
}

/* section-4 */
@media (max-width: 1200px) and (min-width: 769px) {
    .section-4 .card.v4 img {
        width: 300px;
        aspect-ratio: unset;
    }

    .section-4 .card.v4 {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .section-4 .card.v4 img {
        width: 300px;
        aspect-ratio: unset;
    }

    .section-4 .card.v4 {
        flex-direction: column;
    }
}

/* section-7 */
@media (max-width: 768px) {
    .section-7 {
        background-image: url("../img/section-7_mobile.jpg");
    }
    
    .section-7 .desk {
        display: none;
    }
}

/* section-10 */
@media (max-width: 1399px) and (min-width: 992px) {
    .section-10 img {
        display: none;
    }
}
    
@media (max-width: 991px) {
    .section-10 {
        background-image: url("../img/section-10_mobile.jpg");
        padding: 0;
    }
    
    .section-10 img {
        width: 300px;
        display: block;
    }
}

/* section-11 */
@media (max-width: 768px) {
    .section-11 img {
        width: 100%;
    }
}

/* section-13 */
@media (max-width: 1399px) and (min-width: 769px) {
    .section-13 {
        height: unset;
        display: block;
        padding: 40px 0;
    }

    .section-13 .image {
        display: none;
    }

    .section-13 img.tablet {
        display: block;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section-13 {
        padding-top: 0;
        height: unset;
        display: block;
    }

    .section-13 .image {
        width: 100%;
        aspect-ratio: 947/743;
        max-height: unset;
        position: relative;
        margin-bottom: 40px;
    }

    .section-13 img.tablet {
        display: none;
    }
}

/* section-15 */
@media (max-width: 1399px) and (min-width: 992px) {
    .section-15 {
        background-image: unset;
        padding: 40px 0;
        background-color: #f5f5f5;
    }

    .section-15 img.tablet {
        display: block;
        width: 350px;
    }

    .section-15 img.mobile {
        display: none;
    }
}

@media (max-width: 991px) {
    .section-15 {
        background-image: unset;
        padding: 40px 0;
        background-color: #f5f5f5;
    }

    .section-15 img.tablet {
        display: none;
    }

    .section-15 img.mobile {
        display: block;
    }
}

/* section-16 */
@media (max-width: 768px) {
    .section-16 .card {
        padding: 25px;
        margin-top: 15px;
        flex-direction: column;
        gap: unset;
    }

    .section-16 .card img {
        margin-bottom: 25px;
        width: 100%;
    }

    .section-16 .card .btn-plus {
        position: relative;
        right: unset;
        bottom: unset;
    }
}