/* =========================================
   IN EVIDENZA EDITORIAL CAROUSEL V2
========================================= */


/* =========================================
   CAROUSEL TRACK
========================================= */

.in-evidenza-editorial-carousel-a7ff56ac {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;

    width: 100%;
    max-width: 100%;

    gap: 36px;

    overflow-x: auto;
    overflow-y: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;

    scroll-behavior: smooth;
    scroll-snap-type: x proximity;

    background: transparent;
}

.in-evidenza-editorial-carousel-a7ff56ac::-webkit-scrollbar {
    display: none;
}


/* =========================================
   POST CARD
========================================= */

.editorial-post-card-a7ff56ac {
    position: relative;

    display: block;

    flex: 0 0 auto;

    width: fit-content;
    height: 660px;

    overflow: hidden;

    text-decoration: none;

    color: #ffffff;
    background: #000000;

    scroll-snap-align: start;
}


/* =========================================
   IMAGE WRAPPER
========================================= */

.card-image-wrapper-a7ff56ac {
    position: relative;

    display: block;

    width: fit-content;
    height: 660px;

    overflow: hidden;
}


/* =========================================
   IMAGE
========================================= */

.card-featured-image-a7ff56ac {
    display: block !important;

    width: auto !important;
    max-width: none !important;

    height: 660px !important;
    max-height: 660px !important;

    object-fit: contain !important;
}


/* =========================================
   IMAGE GRADIENT
========================================= */

.card-image-wrapper-a7ff56ac::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 52%;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.72) 35%,
            rgba(0, 0, 0, 0.28) 70%,
            rgba(0, 0, 0, 0) 100%
        );

    pointer-events: none;
}


/* =========================================
   CATEGORY LABEL
========================================= */

.card-category-label-a7ff56ac {
    position: absolute;

    top: 0;
    left: 24px;

    z-index: 3;

    padding: 14px 18px;

    background: #e31e24;
    color: #ffffff;

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* =========================================
   TITLE
========================================= */

.post-title-a7ff56ac {
    position: absolute;

    left: 28px;
    right: 28px;
    bottom: 26px;

    z-index: 3;

    margin: 0;
    padding: 0;

    color: #ffffff;

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.05;

    letter-spacing: -0.02em;
}


/* =========================================
   ARCHIVE CARD
========================================= */

.carousel-archive-card-a7ff56ac {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 0 0 420px;

    width: 420px;
    height: 660px;

    padding: 32px 34px;

    box-sizing: border-box;

    background: #0b0b0b;
    color: #ffffff;

    text-decoration: none;

    scroll-snap-align: start;
}


.archive-label-a7ff56ac {
    display: block;

    color: rgba(255, 255, 255, 0.55);

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.archive-content-a7ff56ac {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 1;
}


.archive-title-a7ff56ac {
    display: block;

    color: #ffffff;

    font-family:
        Garamond,
        Baskerville,
        "Times New Roman",
        serif;

    font-size: 52px;
    font-weight: 400;
    line-height: 0.95;
}


.archive-link-a7ff56ac {
    display: block;

    width: 100%;

    margin-top: 36px;
    padding-top: 18px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.18);

    color: #e31e24;

    font-family:
        "Helvetica Neue",
        Helvetica,
        Arial,
        sans-serif;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: 0.08em;
}


/* =========================================
   NAVIGATION - DESKTOP
========================================= */

.carousel-navigation-a7ff56ac {
    display: grid;

    grid-template-columns:
        55px
        minmax(220px, 760px)
        55px;

    align-items: center;
    justify-content: space-between;

    width: 100%;
    max-width: 1600px;

    margin:
        34px
        auto
        0;

    padding:
        0
        30px
        22px;

    box-sizing: border-box;

    column-gap: 30px;

    background: transparent;
}


/* =========================================
   NASCONDI PAGINAZIONE
========================================= */

.carousel-counter-a7ff56ac {
    display: none !important;
}


/* =========================================
   FRECCE
========================================= */

.carousel-arrows-a7ff56ac {
    display: contents;
}


.carousel-prev-a7ff56ac {
    grid-column: 1;
    grid-row: 1;

    justify-self: start;
}


.carousel-next-a7ff56ac {
    grid-column: 3;
    grid-row: 1;

    justify-self: end;
}


/* =========================================
   PROGRESS BAR
========================================= */

.carousel-progress-a7ff56ac {
    grid-column: 2;
    grid-row: 1;

    position: relative;

    width: 100%;
    max-width: 760px;
    min-width: 220px;

    height: 3px;

    justify-self: center;

    overflow: hidden;

    background: rgba(
        255,
        255,
        255,
        0.30
    );
}


.carousel-progress-fill-a7ff56ac {
    position: absolute;

    top: 0;
    left: 0;

    width: 20%;
    height: 100%;

    background: #e31e24;

    transition:
        width
        0.35s
        ease;
}

/* =========================================
   ARROW WRAPPER
========================================= */

.carousel-arrows-a7ff56ac {
    display: contents;
}


/* =========================================
   ARROW BUTTONS
========================================= */

.carousel-prev-a7ff56ac,
.carousel-next-a7ff56ac {
    appearance: none;
    -webkit-appearance: none;

    position: relative;

    display: block;

    flex: 0 0 55px !important;

    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;

    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    box-shadow: none !important;

    font-size: 0 !important;

    cursor: pointer;

    overflow: hidden;
}


/* =========================================
   REMOVE OLD CSS ARROWS
========================================= */

.carousel-prev-a7ff56ac::before,
.carousel-prev-a7ff56ac::after,
.carousel-next-a7ff56ac::before,
.carousel-next-a7ff56ac::after {
    content: none !important;
    display: none !important;
}


/* =========================================
   LOTTIE
========================================= */

.carousel-lottie-arrow-a7ff56ac {
    display: block;

    width: 55px !important;
    height: 55px !important;

    pointer-events: none;

    transform-origin: center center;
}


.carousel-lottie-arrow-a7ff56ac svg {
    display: block !important;

    width: 55px !important;
    height: 55px !important;
}


/* =========================================
   LEFT LOTTIE MIRROR
========================================= */

.carousel-lottie-arrow-prev-a7ff56ac {
    transform: scaleX(-1);
}


/* =========================================
   DISABLED BUTTON
========================================= */

.carousel-prev-a7ff56ac:disabled,
.carousel-next-a7ff56ac:disabled {
    opacity: 0.35;

    cursor: default;
}
/* =========================================
   DESKTOP CARD HOVER
========================================= */

@media (min-width: 1025px) {

    .editorial-post-card-a7ff56ac {
        transition:
            transform 0.4s ease;
    }


    /*
     * Il wrapper contiene:
     * - immagine
     * - sfumatura ::after
     *
     * quindi zoomano insieme.
     */

    .editorial-post-card-a7ff56ac
    .card-image-wrapper-a7ff56ac {
        transition:
            transform 0.6s cubic-bezier(
                0.22,
                1,
                0.36,
                1
            );

        transform-origin: center center;

        will-change: transform;
    }


    /* HOVER CARD */

    .editorial-post-card-a7ff56ac:hover {
        transform: translateY(-3px);
    }


    /* ZOOM IMMAGINE + SFUMATURA */

    .editorial-post-card-a7ff56ac:hover
    .card-image-wrapper-a7ff56ac {
        transform: scale(1.025);
    }
}

/* =========================================
   TABLET + MOBILE
========================================= */

@media (max-width: 1024px) {

    /*
     * Il contenitore Elementor diventa
     * colonna così possiamo mettere
     * la navigazione sopra le card.
     */

    .elementor-widget-container:has(
        > .in-evidenza-editorial-carousel-a7ff56ac
    ) {
        display: flex;
        flex-direction: column;

        width: 100%;
    }


    /* NAVIGATION SOPRA */

    .carousel-navigation-a7ff56ac {
        order: 1;

        display: grid;

        grid-template-columns:
            55px
            minmax(0, 1fr)
            55px;

        align-items: center;

        width: 100%;

        margin: 0;

        padding:
            0
            16px
            14px;

        box-sizing: border-box;

        column-gap: 14px;

        background: #000000;
    }


    /* CAROUSEL SOTTO */

    .in-evidenza-editorial-carousel-a7ff56ac {
        order: 2;

        overflow-x: hidden !important;

        scroll-snap-type: none !important;

        touch-action: pan-y !important;

        -webkit-overflow-scrolling: auto;
    }


    /* NASCONDI COUNTER */

    .carousel-counter-a7ff56ac {
        display: none !important;
    }


    /* LE FRECCE ENTRANO NELLA GRID */

    .carousel-arrows-a7ff56ac {
        display: contents;
    }


    /* SX */

    .carousel-prev-a7ff56ac {
        grid-column: 1;
        grid-row: 1;

        justify-self: start;
    }


    /* PROGRESS */

    .carousel-progress-a7ff56ac {
        grid-column: 2;
        grid-row: 1;

        width: 100%;
        min-width: 0;

        height: 2px;

        margin: 0;
    }


    /* DX */

    .carousel-next-a7ff56ac {
        grid-column: 3;
        grid-row: 1;

        justify-self: end;
    }


    /* =========================================
       HINT RIGHT ARROW
    ========================================= */

    .carousel-next-a7ff56ac.carousel-arrow-hint {
        animation:
            carouselArrowHint-a7ff56ac
            0.7s
            ease-in-out
            3;
    }


    @keyframes carouselArrowHint-a7ff56ac {

        0%,
        100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(6px);
        }
    }
}


/* =========================================
   TABLET
========================================= */

@media
    (min-width: 768px)
    and
    (max-width: 1024px) {

    .in-evidenza-editorial-carousel-a7ff56ac {
        gap: 24px;

        padding:
            0
            24px;

        box-sizing: border-box;
    }


    .editorial-post-card-a7ff56ac,
    .card-image-wrapper-a7ff56ac {
        height: 600px;
    }


    .card-featured-image-a7ff56ac {
        height: 600px !important;
        max-height: 600px !important;
    }


    .post-title-a7ff56ac {
        left: 24px;
        right: 24px;
        bottom: 24px;

        font-size: 27px;
    }


    .carousel-archive-card-a7ff56ac {
        flex-basis: 360px;

        width: 360px;
        height: 600px;
    }


    .archive-title-a7ff56ac {
        font-size: 46px;
    }


    .carousel-navigation-a7ff56ac {
        padding:
            0
            24px
            16px;

        column-gap: 16px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    /* TRACK */

    .in-evidenza-editorial-carousel-a7ff56ac {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;

        gap: 16px;

        width: 100%;

        padding:
            0
            16px;

        box-sizing: border-box;
    }


    /* POST CARD */

    .editorial-post-card-a7ff56ac {
        flex:
            0
            0
            calc(100vw - 32px);

        width:
            calc(100vw - 32px);

        max-width:
            calc(100vw - 32px);

        height: 580px;

        scroll-snap-align: none !important;
    }


    /* IMAGE WRAPPER */

    .card-image-wrapper-a7ff56ac {
        width: 100%;
        height: 100%;
    }


    /* IMAGE */

    .card-featured-image-a7ff56ac {
        width: 100% !important;
        max-width: 100% !important;

        height: 100% !important;
        max-height: none !important;

        object-fit: cover !important;

        object-position: center center;
    }


    /* GRADIENT */

    .card-image-wrapper-a7ff56ac::after {
        height: 50%;
    }


    /* CATEGORY */

    .card-category-label-a7ff56ac {
        left: 16px;

        padding:
            11px
            14px;

        font-size: 10px;
    }


    /* TITLE */

    .post-title-a7ff56ac {
        left: 18px;
        right: 18px;
        bottom: 22px;

        font-size: 23px;
    }


    /* ARCHIVE */

    .carousel-archive-card-a7ff56ac {
        flex:
            0
            0
            calc(100vw - 32px);

        width:
            calc(100vw - 32px);

        max-width:
            calc(100vw - 32px);

        height: 580px;

        padding: 24px;
    }


    .archive-title-a7ff56ac {
        font-size: 42px;
    }


    /* NAVIGATION */

    .carousel-navigation-a7ff56ac {
        grid-template-columns:
            55px
            minmax(0, 1fr)
            55px;

        padding:
            0
            16px
            12px;

        column-gap: 12px;
    }
}