@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700;800&display=swap");

body {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
}

:root {
    --second_color: #a20009;
    --third_color: #f5f5f5;
}

::selection {
    background-color: var(--main_color);
    color: #fff;
}

p:not(footer p) {
    margin-bottom: 0px !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    color: #000;
}

h6 {
    color: var(--main_color);
    font-size: 18px;
    line-height: 1.5em;
}

.bg-primary {
    background-color: var(--main_color) !important;
}

.primary-color {
    color: var(--main_color) !important;
}

.secondary-color {
    color: var(--second_color) !important;
}

a {
    color: #000;
    text-decoration: none;
}

.w-25 {
    width: 25%;
}

.w-50 {
    width: 50%;
}

nav {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5em;
    transition: all 0.3s ease-in-out;
}

nav .logo {
    transition: all 0.3s ease-in-out;
    height: 60px;
}

nav.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 60px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

nav.scrolled .logo {
    height: 50px;
}

nav .nav-item a {
    color: #000;
    font-size: 16px;
}

nav .nav-item.active a {
    color: var(--main_color);
    font-weight: 400;
}

nav .dropdown-menu {
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: none;
    width: 250px;
}

nav .dropdown-menu a {
    color: #000;
    font-size: 16px;
    line-height: 18px;
    transition: all 0.3s ease-in-out;
}

nav .dropdown-menu a:hover {
    background-color: var(--main_color);
    color: #fff;
}

.nav-header {
    background-color: var(--main_color);
    color: #fff;
    padding: 10px 0px;
    font-size: 14px;
}

.nav-header i {
    color: #fff;
    font-size: 18px;
}

.animate-left,
.animate-right,
.animate-up,
.animate-down {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-left {
    transform: translateX(-100px);
}

.animate-right {
    transform: translateX(100px);
}

.animate-up {
    transform: translateY(100px);
}

.animate-down {
    transform: translateY(-100px);
}

.animate-left.reached,
.animate-right.reached,
.animate-up.reached,
.animate-down.reached {
    opacity: 1;
    transform: translate(0, 0);
}

.site-btn {
    background-color: var(--main_color);
    color: #fff;
    padding: 10px 25px;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--main_color);
    cursor: pointer;
    border-radius: 30px;
}

.site-btn:hover {
    color: var(--main_color);
    background-color: #fff;
}

footer {
    background-color: #000;
    padding: 80px 0px;
    color: #fff;
}

footer .logo {
    height: 100px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

footer p {
    font-size: 14px;
    line-height: 1.5em;
    margin-bottom: 0px;
    color: #fff !important;
}

footer .contact-row {
    border: 1px solid #a20009;
    padding: 30px;
    margin-bottom: 50px;
}

footer .card-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    height: 100%;
}

footer .card-contact .icon {
    font-size: 25px;
    color: #fff;
    padding: 10px;
    border: 1px solid var(--second_color);
    border-radius: 50%;
}

footer .card-contact .content {
    display: flex;
    flex-direction: column;
    max-width: 200px;
}

footer .card-contact .content .title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

footer .card-contact .content .text {
    font-size: 14px;
    font-weight: 300;
    color: #fff !important;
}

footer a:link,footer a:visited{
    color: #fff !important;
}
footer a:hover,footer a:active{
    color: #fff !important;
}

footer .border-right {
    border-right: 1px solid #a20009;
}

footer .contact-info span,
footer .contact-info a,
footer .contact-info {
    color: #fff;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.3em;
    display: flex;
    justify-content: center;
    gap: 5px 10px;
}

footer .social-links a {
    color: #fff;
    font-size: 30px;
}

footer .contact-info,
footer .social-links {
    margin-top: 10px;
}

footer a.active {
    font-weight: 300;
    color: var(--second_color);
}

.main-box {
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.main-box .cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.main-box picture::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.main-box .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    max-width: 700px;
}

h1 {
    font-size: 50px;
    line-height: 55px;
    font-weight: 800;
}

.main-box .content h1 {
    color: #fff;
    margin-bottom: 10px;
}

.py-80 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.box-vendita,
.box-servizi,
.box-about {
    margin-top: 80px;
    margin-bottom: 80px;
}

.box-vendita .content {
    padding-left: 80px;
}

.list p {
    position: relative;
    padding-left: 20px;
}

.list p::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #000;
    font-size: 1.5em;
    line-height: 1;
}

.box-vendita .content-image {
    position: relative;
    display: inline-block;
}

.box-vendita .content-image picture {
    position: relative;
    display: inline-block;
    border-radius: 30px;
    z-index: 1;
}

.box-vendita .content-image picture::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background-color: var(--main_color);
    border-radius: 30px;
    z-index: -1;
}

.box-vendita .content-image img {
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
    display: block;
}

.box-vendita .brand {
    width: 200px;
}

.box-vendita .align-top,
.servizi-child .align-top,
.box-about .align-top {
    vertical-align: middle !important;
}

.box-contatti .content p {
    font-size: 20px;
    line-height: 1.3em;
}

.box-contatti .text-lg {
    font-size: 24px;
    line-height: 1.3em;
}

.box-servizi {
    text-align: center;
    height: 350px;
    margin-bottom: 350px;
}

.box-servizi h2 {
    color: #fff;
    font-size: 45px;
    line-height: 1.1em;
    font-weight: 700;
    margin-bottom: 50px;
}

.box-servizi .card-servizi {
    position: relative;
    background-color: #fff;
    padding: 30px;
    min-height: 350px;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    text-align: left;
    overflow: hidden;
}

.box-servizi .card-servizi .badge-number {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--third_color);
    color: var(--second_color);
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

.box-servizi .card-servizi:hover .badge-number {
    top: 0;
    right: 0;
    padding: 20px 25px;
    border-bottom-left-radius: 50%;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.box-servizi .card-servizi .subtitle {
    font-size: 22px;
    font-weight: 600;
    line-height: 22px;
    height: 40px;
    margin-bottom: 20px !important;
}

.box-servizi .card-servizi .content {
    margin-bottom: 20px !important;
    margin-top: 10px !important;
}

.box-servizi .card-servizi .desc {
    text-transform: lowercase;
    height: 100px;
}

.box-servizi .card-servizi .icon {
    font-size: 60px;
    color: var(--second_color);
}

.box-servizi .card-servizi .btn-content {
    display: flex;
    justify-content: end;
    align-items: center;
}

.box-servizi .card-servizi a {
    background-color: var(--second_color);
    color: #fff;
    padding: 10px;
    transition: all 0.3s ease-in-out;
    border: 1px solid var(--second_color);
    cursor: pointer;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease-in-out;
}

.box-servizi .card-servizi a:hover {
    background-color: #fff;
    color: var(--second_color);
}

.servizi-child {
    margin-top: 40px;
    margin-bottom: 80px;
}

.servizi-child #text {
    margin-top: 20px;
}

.servizi-child img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    border-radius: 30px;
}

.servizi-child picture,
.box-about picture {
    padding-right: 50px;
}

.breadcrumb__links {
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 20px;
}

.breadcrumb__links a::after {
    content: " / ";
    font-size: 10px;
    color: #acacac;
    padding: 0px 3px;
}

.breadcrumb__links span {
    font-weight: 600;
    color: var(--main_color);
}

.box-about img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    border-radius: 30px;
}

.card-vendita {
    position: relative;
    min-height: 350px;
}

.card-vendita .content {
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
    overflow: hidden;
    width: 95%;
    margin: 0 auto;
    margin-top: -70px;
    z-index: 2;
    position: relative;
    text-align: left;
}

.card-vendita .position-relative {
    height: 300px;
    overflow: hidden;
    border-radius: 30px;
}

.motori-container .card-vendita .position-relative {
    width: 350px;
}

.card-vendita img {
    width: 100%;
    height: 300px;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
}

.card-vendita:hover img {
    transform: scale(1.1);
}

.card-vendita .subtitle {
    font-size: 18px;
    line-height: 20px;
    font-weight: 600;
    text-overflow: ellipsis;
    width: 100%;
    text-wrap: nowrap;
    overflow: hidden;
}

.card-vendita .badge-tipologia {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--third_color);
    color: var(--second_color);
    font-size: 12px;
    border-radius: 20px;
    padding: 5px 12px;
    z-index: 2;
    text-transform: uppercase;
    font-weight: 500;
}

.card-vendita .content .price {
    font-size: 20px;
    font-weight: 600;
    color: var(--second_color);
    text-wrap: nowrap;
}

.card-vendita .list-specific {
    display: flex;
    align-items: center;
    gap: 10px 30px;
    margin-top: 10px;
}

.card-vendita .list-specific .specific-span {
    display: flex;
    align-items: center;
    gap: 5px;
    text-wrap: nowrap;
}

.card-vendita .specific-span .icon {
    color: var(--second_color);
    font-size: 18px !important;
}

.motori-container .card-vendita {
    display: flex;
    min-height: 300px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-radius: 30px;
}

.motori-container .card-vendita .content {
    margin-top: 0px;
    margin-left: -10px;
    width: 100%;
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    box-shadow: none;
}

.motori-container .content>div {
    flex-direction: column;
    align-items: start !important;
}

.motori-container .card-vendita .subtitle {
    text-overflow: initial;
    overflow: initial;
    text-wrap: wrap;
}

.motori-container .card-vendita img,
.motori-container .card-vendita .position-relative {
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}

.motori-container .only-motor {
    display: block !important;
}

.custom-sticky {
    position: sticky;
    top: 80px;
}

.product-page h1 {
    font-weight: 500;
    font-size: 30px;
    line-height: 35px;
    margin-bottom: 20px;
}

.product-page .card-left {
    background-color: var(--third_color);
    border: 1px solid #dedede;
    padding: 20px;
    border-radius: 20px;
}

.pagination__option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pagination__option a {
    border: 1px solid var(--main_color);
    color: var(--main_color);
    border-radius: 50px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination__option a.active,
.pagination__option a:hover {
    color: #fff;
    background-color: var(--main_color);
}

.pagination__option a.disabled {
    color: #fff;
    background-color: #e1e1e1;
    border-color: #e1e1e1;
    cursor: not-allowed;
}

.product-page .image_cover  {
    border-radius: 30px;
    overflow: hidden;
    height: 500px;
    width: 100%;
    margin-bottom: 30px;
}

.product-page .image_cover img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.product-page .price {
    font-size: 35px;
    line-height: 35px;
    color: var(--second_color);
    font-weight: 600;
    text-wrap: nowrap;
}

.product-page tr {
    border-bottom: 2px solid var(--third_color);
}

.product-page tr td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.sm-gray {
    font-size: 14px;
    color: #acacac !important;
}

.w-20px {
    width: 20px;
}

.product-page .slider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 80px;
    gap: 30px;
}

.product-page .slider-gallery {
    margin-bottom: 100px;
}

.product-page .slider-gallery .image_lider {
    margin: 0px 20px;
    position: relative;
}

.product-page .image_lider img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    overflow: hidden;
    height: 300px !important;
    border-radius: 30px;
}

.slick-dots {
    position: absolute;
    left: 50%;
    bottom: -40px;
    transform: translateX(-50%);
    display: inline-block;
}

.slick-dots li button::before {
    font-size: 15px !important;
    opacity: 0.2;
}

.slick-dots li.slick-active button::before {
    font-size: 15px !important;
}

.slick-dots li button::before {
    color: var(--main_color) !important;
}

.lb-close {
    position: absolute;
    top: 0px;
    right: 60px;
}

.lightbox {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
}

.lightbox .lb-image {
    border: 0px !important;
}

.slider-products .slick-slide {
    margin: 0px 20px 10px 20px;
}

.box-evidenza {
    margin-bottom: 100px;
    text-align: center;
}

.box-evidenza h2 {
    font-size: 45px;
    line-height: 1.1em;
    font-weight: 700;
    margin-bottom: 50px;
}

.bg-light {
    background-color: var(--third_color);
}

.rounded-img {
    border-radius: 30px;
    overflow: hidden;
    height: 400px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 900px) {

    .animate-left,
    .animate-right,
    .animate-up,
    .animate-down {
        opacity: 1;
    }

    .animate-left,
    .animate-right,
    .animate-up,
    .animate-down {
        transform: none;
    }

    nav .logo {
        height: 60px;
    }

    nav.scrolled .logo {
        height: 50px;
    }

    nav .offcanvas img {
        width: 100px;
    }

    .offcanvas {
        width: 80% !important;
    }

    .offcanvas .btn-close {
        position: absolute;
        right: 20px;
        top: 20px;
    }

    footer .border-right {
        border-right: none;
        border-bottom: 1px solid #a20009;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    footer .card-contact {
        justify-content: start;
    }

    footer .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: start;
    }

    .box-vendita .content {
        padding: 0px;
        padding-top: 20px;
    }

    .box-vendita .content-image picture::before {
        content: none;
    }

    .box-servizi {
        height: 100%;
        margin-bottom: 100px;
    }

    .box-vendita .brand {
        margin-top: 30px;
    }

    .box-about img {
        margin-bottom: 40px;
        margin-top: 40px;
    }

    .servizi-child picture,
    .box-about picture {
        padding-right: 0px;
    }

    .servizi-child img {
        margin-bottom: 30px;
    }

    .box-about {
        display: flex !important;
        flex-direction: column;
    }

    .order-3 {
        order: 3;
    }

    .order-4 {
        order: 4;
    }

    .slick-dots {
        bottom: -60px;
    }

    .product-page .slider-gallery .image_lider {
        margin: 0px 10px;
    }

    .product-page .slider-gallery .image_lider img {
        height: 200px !important;
    }

    .product-page .image_cover {
        height: 300px;
    }

    .product-page h1 {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 10px;
    }

    .product-page .slider-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .product-page .price {
        font-size: 25px;
        line-height: 25px;
        padding-bottom: 20px;
    }

    .motori-container .card-vendita .position-relative {
        width: 300px;
    }

    .slider-products .slick-slide {
        margin: 0px 10px 10px 10px;
    }

    .card-vendita .content {
        padding: 20px;
    }

    .rounded-img {
        height: 200px;
    }

    nav .dropdown-menu {
        box-shadow: none;
        width: 100%;
        margin: 0px 15px;
    }

    .card-vendita .list-specific {
        gap: 10px 15px;
    }

}