/* ======================================================
   VALENTINO MOTO - HOME CARD SLIDER
====================================================== */

.wpb_content_element {margin-bottom:0px!important;}


.vm-home-slider-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0px 0;
    background: #ffffff;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.vm-home-slider-heading {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto 34px;
    padding: 0 46px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    gap: 20px;
    text-align: left;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.vm-home-slider-heading-content {
    min-width: 0;
}

.vm-home-slider-heading-image-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 320px;
    overflow: visible;
}

.vm-home-slider-heading-image-wrap::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(0, 77, 161, 0.06);
    z-index: 0;
}

.vm-home-slider-heading-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 500px;
    max-width: none;
    height: auto;
    object-fit: contain;
    opacity: 0.92;
    transform: translateX(10px) rotate(-2deg);
    filter: drop-shadow(0 20px 32px rgba(0, 77, 161, 0.18));
}

.vm-home-slider-heading-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #004da1;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vm-home-slider-heading-kicker-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto 14px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #004da1;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


.vm-home-slider-heading h1 {
    max-width: 920px;
    margin: 0 0 14px;
    color: #111111;
    font-size: clamp(34px, 4.2vw, 64px);
    line-height: 0.98;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.035em;
}

.vm-home-slider-heading p {
    max-width: 740px;
    margin: 0;
    color: #4a4a4a;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 500;
}


.vm-home-slider {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 1;
}



.vm-home-slider .splide__track {
    overflow: visible;
    position: relative;
    z-index: 1;
}

.vm-home-slider .splide__list,
.vm-home-slider .splide__slide {
    position: relative;
    z-index: 1;
}

.vm-slide-card {
    position: relative;
    min-height: 500px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.vm-slide-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.34) 45%,
        rgba(0, 0, 0, 0.86) 100%
    );
    pointer-events: none;
}

.vm-slide-card-intro {
    background: #004da1;
    box-shadow: 0 18px 44px rgba(0, 77, 161, 0.28);
}

.vm-slide-card-intro::before {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #004da1 0%, #00336b 100%);
}

.vm-slide-card-intro::after {
    background: #ffffff;
    transform: scaleX(0.48);
}

.vm-slide-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 2;
    background: #d60000;
    transform: scaleX(0.32);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.vm-slide-card:hover {
    color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.25);
}

.vm-slide-card:hover::after {
    transform: scaleX(1);
}

.vm-slide-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 30px 26px;
    color: #ffffff;
}

.vm-slide-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #d60000;
    color: #ffffff;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vm-slide-card-intro .vm-slide-kicker {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.vm-slide-card-content h1,
.vm-slide-card-content h2,
.vm-slide-card-content h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 31px;
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
}

.vm-slide-card-content h1 {
    font-size: 34px;
    line-height: 1.04;
}

.vm-slide-card-content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.45;
}

.vm-slide-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.vm-slide-card:hover .vm-slide-card-button {
    background: #d60000;
    color: #ffffff;
    transform: translateY(-2px);
}

.vm-slide-question {
    display: block;
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
}

.vm-slide-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.vm-slide-select {
    flex: 1;
    min-width: 0;
    height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
}

.vm-slide-select-button {
    flex: 0 0 auto;
    height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 20px;
    background: #d60000;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.vm-slide-select-button:hover {
    background: #a90000;
    transform: translateY(-2px);
}

/* Frecce Splide */
.vm-home-slider .splide__arrow {
    width: 48px;
    height: 48px;
    background: #d60000;
    opacity: 1;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.vm-home-slider .splide__arrow svg {
    fill: #ffffff;
}

.vm-home-slider .splide__arrow--prev {
    left: -18px;
}

.vm-home-slider .splide__arrow--next {
    right: -18px;
}

.vm-home-slider .splide__pagination {
    bottom: -34px;
}

.vm-home-slider .splide__pagination__page {
    background: #cfcfcf;
    opacity: 1;
}

.vm-home-slider .splide__pagination__page.is-active {
    background: #d60000;
}

/* Fix menu dropdown sopra slider home */
.site-header,
.elementor-location-header,
.elementor-location-header .elementor-section,
.elementor-location-header .elementor-container,
.elementor-location-header .elementor-widget-wrap,
.elementor-nav-menu--dropdown,
.elementor-nav-menu__container,
.elementor-nav-menu .sub-menu {
    position: relative;
    z-index: 9999;
}

@media (max-width: 1200px) {
    .vm-slide-card {
        min-height: 330px;
    }

    .vm-slide-card-content h1,
    .vm-slide-card-content h2,
    .vm-slide-card-content h3 {
        font-size: 28px;
    }
}

@media (max-width: 991px) {
    .vm-home-slider-section {
        padding: 44px 0 64px;
    }

    .vm-home-slider-heading {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 28px;
        margin-bottom: 28px;
        padding: 0 28px;
    }

    .vm-home-slider-heading-image-wrap {
        min-height: 250px;
    }

    .vm-home-slider-heading-image-wrap::before {
        width: 280px;
        height: 280px;
    }

    .vm-home-slider-heading-image {
        max-width: 230px;
    }

    .vm-home-slider-heading p {
        font-size: 16px;
    }

    .vm-home-slider {
        padding-bottom: 56px;
        padding-left:20px;
        padding-right:20px!important;
    }

    .vm-home-slider .splide__arrow {
        top: auto;
        bottom: 0;
        transform: none;
        width: 44px;
        height: 44px;
    }

    .vm-home-slider .splide__arrow--prev {
        left: calc(50% - 52px);
    }

    .vm-home-slider .splide__arrow--next {
        right: calc(50% - 52px);
    }
}

@media (max-width: 767px) {
    .vm-home-slider-section {
        padding: 36px 0 70px;
    }

    .vm-home-slider-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 24px;
        padding: 0 20px;
    }

    .vm-home-slider-heading-image-wrap {
max-width:350px;    }

    .vm-home-slider-heading-image-wrap::before {
        width: 210px;
        height: 210px;
    }

    .vm-home-slider-heading-image {
max-width: 350px;    }

    .vm-home-slider-heading-kicker,
    .vm-home-slider-heading-kicker-center {
        font-size: 11px;
    }

    .vm-home-slider-heading h1 {
        font-size: 34px;
        line-height: 1.02;
    }

    .vm-home-slider-heading p {
        font-size: 15px;
        line-height: 1.5;
    }

    .vm-slide-card {
        min-height: 500px;
        border-radius: 16px;
    }

    .vm-slide-card-content {
        padding: 26px 22px;
    }

    .vm-slide-card-content h1,
    .vm-slide-card-content h2,
    .vm-slide-card-content h3 {
        font-size: 25px;
    }

    .vm-slide-card-content p {
        font-size: 14px;
    }

    .vm-slide-card-button {
        min-height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }

    .vm-slide-select-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .vm-slide-select,
    .vm-slide-select-button {
        width: 100%;
        height: 42px;
        font-size: 15px;
    }

    #titolihome h2 {font-size:34px!important;}
}

/* ======================================================
   VALENTINO MOTO - REALTA GALLERY
====================================================== */

.vm-realta-gallery-section {
    width: 100%;
    padding: 42px 0;
    background: #ffffff;
    overflow: hidden;
}

.vm-realta-gallery {
    width: 100%;
}

@media (min-width: 768px) {
    .vm-realta-gallery .splide__track {
        overflow: visible;
    }

    .vm-realta-gallery .splide__list {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
        transform: none !important;
    }

    .vm-realta-gallery .splide__slide {
        width: auto !important;
    }
}

.vm-realta-card {
    position: relative;
    min-height: 430px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.vm-realta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.08) 0%,
            rgba(0, 0, 0, 0.34) 45%,
            rgba(0, 0, 0, 0.86) 100%
    );
    pointer-events: none;
}

.vm-realta-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 2;
    background: #d60000;
    transform: scaleX(0.32);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.vm-realta-card:hover {
    color: #ffffff;
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.25);
}

.vm-realta-card:hover::after {
    transform: scaleX(1);
}

.vm-realta-card-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 30px 26px;
    color: #ffffff;
}

.vm-realta-card-content h4 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 800;
    text-transform: uppercase;
}

.vm-realta-card-content p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.45;
}

.vm-realta-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.vm-realta-card:hover .vm-realta-card-button {
    background: #d60000;
    color: #ffffff;
    transform: translateY(-2px);
}

.vm-realta-gallery .splide__arrow {
    width: 44px;
    height: 44px;
    background: #d60000;
    opacity: 1;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.20);
}

.vm-realta-gallery .splide__arrow svg {
    fill: #ffffff;
}

.vm-realta-gallery .splide__pagination {
    bottom: -34px;
}

.vm-realta-gallery .splide__pagination__page {
    background: #cfcfcf;
    opacity: 1;
}

.vm-realta-gallery .splide__pagination__page.is-active {
    background: #d60000;
}

@media (max-width: 991px) {
    .vm-realta-card {
        min-height: 390px;
    }

    .vm-realta-card-content h4 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .vm-realta-gallery-section {
        padding: 34px 0 70px;
    }

    .vm-realta-gallery {
        padding-bottom: 56px;
    }

    .vm-realta-card {
        min-height: 340px;
        border-radius: 16px;
    }

    .vm-realta-card-content {
        padding: 26px 22px;
    }

    .vm-realta-card-content h4 {
        font-size: 24px;
    }

    .vm-realta-card-content p {
        font-size: 14px;
    }

    .vm-realta-card-button {
        min-height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }

    .vm-realta-gallery .splide__arrow {
        top: auto;
        bottom: 0;
        transform: none;
        width: 44px;
        height: 44px;
    }

    .vm-realta-gallery .splide__arrow--prev {
        left: calc(50% - 52px);
    }

    .vm-realta-gallery .splide__arrow--next {
        right: calc(50% - 52px);
    }
}

/* ========================================
   WINTER SALE - HOME
======================================== */

.vm-winter-sale {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding: 8px 14px 8px 8px;
    background: #ffd13f;
    color: #111;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.3;
}

.vm-winter-sale-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #111;
    color: #fff;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.vm-winter-sale-text {
    font-weight: 500;
}

.vm-winter-sale-text strong {
    font-weight: 800;
}


/* MOBILE */
@media (max-width: 767px) {

    .vm-winter-sale {
        align-items: flex-start;
        gap: 8px;
        padding: 8px;
        margin-bottom: 14px;
        font-size: 13px;
    }

    .vm-winter-sale-label {
        padding: 5px 7px;
        font-size: 10px;
    }
}

.vm-slide-card {
    position: relative;
}

.vm-slide-discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 62px;
    height: 62px;

    background: #ffd13f;
    color: #111;

    border-radius: 50%;

    font-size: 17px;
    font-weight: 800;
    line-height: 1;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.20);
}