/**
 * =========================================================
 * FILE: /assets/gf-latest-posts-slider.css
 * VERSIONE: 1.9
 * MODULO: Stili slider ultimi articoli
 * =========================================================
 */

.gf-lps {
    --gf-lps-bg: #f4f6f8;
    --gf-lps-text: #1f2937;
    --gf-lps-muted: #6b7280;
    --gf-lps-link: #1f6fb2;
    --gf-lps-heading: #1f2937;
    --gf-lps-arrow-bg: rgba(255, 255, 255, 0.9);
    --gf-lps-arrow-bg-hover: #ffffff;
    --gf-lps-arrow-text: #1f2937;
    --gf-lps-arrow-border: rgba(31, 41, 55, 0.18);

    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--gf-lps-bg);
    outline: none;
}

.gf-lps,
.gf-lps * {
    box-sizing: border-box;
}

.gf-lps__heading {
    padding: 14px 80px 0 80px;
    background: var(--gf-lps-bg);
}

.gf-lps__heading-title {
    margin: 0;
    color: var(--gf-lps-heading);
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
}

.gf-lps__viewport {
    width: 100%;
    overflow: hidden;
}

.gf-lps__track {
    display: flex;
    width: 100%;
    transition: transform 460ms ease;
    will-change: transform;
}

.gf-lps__slide {
    display: grid;
    grid-template-columns: minmax(280px, 47%) minmax(320px, 53%);
    flex: 0 0 100%;
    min-width: 100%;
    min-height: 360px;
    background: var(--gf-lps-bg);
}

.gf-lps--image-left .gf-lps__content {
    order: 2;
}

.gf-lps--image-left .gf-lps__image-link {
    order: 1;
}

.gf-lps--image-right .gf-lps__content {
    order: 1;
}

.gf-lps--image-right .gf-lps__image-link {
    order: 2;
}

.gf-lps__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 64px 34px 80px;
}

.gf-lps--image-left .gf-lps__content {
    padding: 30px 80px 34px 64px;
}

.gf-lps__category {
    width: fit-content;
    margin-bottom: 24px;
    color: var(--gf-lps-text);
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.gf-lps__title {
    margin: 0;
    max-width: 620px;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.gf-lps .gf-lps__title a,
.gf-lps .gf-lps__title a:link,
.gf-lps .gf-lps__title a:visited,
.gf-lps .gf-lps__title a:hover,
.gf-lps .gf-lps__title a:focus,
.gf-lps .gf-lps__title a:active {
    color: var(--gf-lps-link) !important;
    text-decoration: none !important;
    text-decoration-line: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.gf-lps .gf-lps__title a::before,
.gf-lps .gf-lps__title a::after {
    display: none !important;
    content: none !important;
}

.gf-lps .gf-lps__title a:hover,
.gf-lps .gf-lps__title a:focus {
    color: var(--gf-lps-link) !important;
    opacity: 0.86;
}

.gf-lps .gf-lps__title,
.gf-lps .gf-lps__title a {
    line-height: 1.05 !important;
}

.gf-lps__date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--gf-lps-muted);
    font-size: 14px;
}

.gf-lps__excerpt {
    margin: 18px 0 0;
    max-width: 560px;
    color: var(--gf-lps-muted);
    font-size: 16px;
    line-height: 1.55;
}

.gf-lps__image-link {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    background: var(--gf-lps-bg);
}

.gf-lps__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center center;
}

.gf-lps__image--placeholder {
    width: 100%;
    height: 100%;
    min-height: 360px;
    background:
        linear-gradient(135deg, rgba(31, 111, 178, 0.18), rgba(31, 111, 178, 0.04)),
        var(--gf-lps-bg);
}

.gf-lps__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--gf-lps-arrow-border);
    border-radius: 999px;
    color: var(--gf-lps-arrow-text);
    background: var(--gf-lps-arrow-bg);
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    transition:
        background 180ms ease,
        transform 180ms ease,
        opacity 180ms ease,
        box-shadow 180ms ease;
}

.gf-lps__arrow:hover,
.gf-lps__arrow:focus {
    background: var(--gf-lps-arrow-bg-hover);
    opacity: 1;
    transform: translateY(-50%) scale(1.04);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
}

.gf-lps__arrow span {
    display: block;
    margin-top: -4px;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
}

.gf-lps__arrow--prev {
    left: 18px;
}

.gf-lps__arrow--next {
    right: 18px;
}

@media (max-width: 900px) {
    .gf-lps__heading {
        padding: 12px 54px 0;
    }

    .gf-lps__slide {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .gf-lps__content,
    .gf-lps--image-left .gf-lps__content,
    .gf-lps--image-right .gf-lps__content {
        order: 2;
        padding: 24px 54px 30px;
    }

    .gf-lps__image-link,
    .gf-lps--image-left .gf-lps__image-link,
    .gf-lps--image-right .gf-lps__image-link {
        order: 1;
        min-height: 240px;
        max-height: 320px;
    }

    .gf-lps__image {
        min-height: 0;
        max-height: 320px;
    }

    .gf-lps__category {
        margin-bottom: 14px;
    }

    .gf-lps__arrow--prev {
        left: 12px;
    }

    .gf-lps__arrow--next {
        right: 12px;
    }
}

@media (max-width: 520px) {
    .gf-lps__heading {
        padding: 10px 44px 0;
    }

    .gf-lps__content,
    .gf-lps--image-left .gf-lps__content,
    .gf-lps--image-right .gf-lps__content {
        padding: 22px 44px 28px;
    }

    .gf-lps__arrow {
        width: 38px;
        height: 38px;
    }

    .gf-lps__arrow span {
        font-size: 28px;
    }
}
