/* ============================================================== 
    # Multiple Items Widget With Link
=================================================================== 
*/
/* Variables */
:root {
    /* Font */
    --font-family-multi-item-style-one: 'Frank Ruhl Libre', serif;
    --sub-font-family-multi-item-style-one: 'DM Sans', sans-serif;
    --bg--multi-item-style-one: #4c956c;
    --bg-green--multi-item-style-one: #6a994e;
    --sub--bg--multi-item-style-one: #eaf3fb;
    --sub--color--multi-item-style-one: #2d5c88;
    --bg-button-hover-multi-item-style-one: #ff9b54;
    /* Animation */
    /* scale of the item on hover */
    --multi-item-img-hover-scale: 1.12;
    /* transition time for image */
    --multi-item-img-transition: 0.5s;
    /* aspect ratio for image */
    --multi-item-img-aspect-ratio: '1 / 1';
}

/* ============================================================== 
    # Style One
=================================================================== 
*/

/* Main config */
.elementor-widget-desimo-multiple-items {
    width: 100%;
    font-family: var(--font-family-multi-item-style-one);
}

.multiple-items-style-one-area {
    position: relative;
    z-index: 1;

    .container {
        width: 100% !important;
        max-width: 1320px !important;

        /* Header */
        .site-heading {
            text-align: center;
            padding-top: 50px;

            /* Title */
            h2 {
                font-weight: 400;
                font-size: 50px;
                font-family: var(--font-family-multi-item-style-one);
            }

            /* Subtitle */
            h4 {
                font-weight: 400;
                font-size: 20px;
                font-family: var(--font-family-multi-item-style-one);
            }

            /* Shared style for Title/Subtitle */
            h2,
            h4 {
                text-align: center !important;
                margin-left: auto;
                margin-right: auto;
            }

            /* Subtitle style around */
            h4.sub-title {
                border: 3px solid var(--sub--color--multi-item-style-one);
                border-radius: 16px;
                padding: 10px 32px;
                box-sizing: border-box;
                display: inline-block;
                background: var(--sub--bg--multi-item-style-one);
            }
        }
    }
}

/* Grid Items */
/* Configuration */
.multiple-items-grid {
    display: grid;
    gap: 30px;
    font-size: 17px;
    font-weight: 400;
    font-family: var(--sub-font-family-multi-item-style-one);

    .multiple-items-style-one {
        display: flex;
        padding: 20px 20px;
        margin-top: 20px;
        flex-direction: column;
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        border: 2px solid transparent;
        /* Animation */
        /* transition: all 0.35s ease-in-out;
        box-shadow: 0px 15px 60px -10px rgb(109 117 143 / 33%); */

        h4 {
            font-weight: 700;
            margin-bottom: 5px;
        }

        span {
            font-size: 18px;
            font-weight: 600;
            display: block;
            margin-bottom: 10px;
        }
    }
}

.multiple-items-style-one-area .container .multiple-items-grid .grid-item .multiple-items-style-one {
    background: var(--bg--multi-item-style-one);
    /* Animation for entire item */
    /* TODO przy zmianie aniamcji w css trzeba zmienic rowniez transition w render*/
    /* transition:
        box-shadow 0.8s cubic-bezier(.4, 2, .6, 1),
        transform 0.8s cubic-bezier(.4, 2, .6, 1); */

    /* Item Top */
    .top {
        .info {

            h4,
            span {
                text-align: center !important;
                padding-bottom: 5px;
            }
        }
    }
}

/* Image */
.multiple-items-style-one-area .container .multiple-items-grid .grid-item .multiple-items-style-one .image img {
    width: 100%;
    aspect-ratio: var(--multi-item-img-aspect-ratio);
    object-fit: cover;
    height: auto;
    border-radius: 16px;
    transition:
        filter var(--multi-item-img-transition, 0.7s) cubic-bezier(.4, 2, .6, 1),
        transform var(--multi-item-img-transition, 0.7s) cubic-bezier(.4, 2, .6, 1);
}

/* Animations */
/* Container on hover */
/* .multiple-items-style-one-area .container .multiple-items-grid .grid-item:hover .multiple-items-style-one {
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.18), 0 1.5px 6px 0 rgba(0, 0, 0, 0.10);
    transform: translateY(-8px) scale(var(--multi-item-img-hover-scale));
    cursor: pointer;
} */

/* Image on hover effect */
.multiple-items-style-one-area .container .multiple-items-grid .grid-item:hover .multiple-items-style-one .image img {
    filter: brightness(1.25) contrast(1.15) saturate(1.1);
    transform: scale(var(--multi-item-img-hover-scale));
}

/* Bottom section */
.multiple-items-style-one .bottom {
    text-align: center;
}

/* Above Button text */
.above-button-text {
    h2 {
        font-size: 20px;
        font-weight: 700;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Below Button text */
.below-button-text {
    h2 {
        font-size: 20px;
        font-weight: 700;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

.description {
    font-size: 17px;
    font-weight: 400;
    margin: 20px;
    text-align: center;
    line-height: 28px;
}

.multiple-items-style-one {

    /* Button */
    .button-text {
        display: inline-block;
        padding: 12px 32px;
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        background: var(--sub--color--multi-item-style-one);
        border: none;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(45, 92, 136, 0.12);
        text-align: center;
        text-decoration: none;
        transition: background 0.3s, color 0.3s, box-shadow 0.3s;
        margin: 10px 0 0 0;
    }

    /* Button on hover */
    .button-text:hover,
    .button-text:focus {
        background: var(--bg-button-hover-multi-item-style-one);
        color: #fff;
        box-shadow: 0 4px 20px rgba(45, 92, 136, 0.18);
    }
}

/* ============================================================== 
    # Style Two
=================================================================== 
*/




/* ============================================================== 
    # Media Queries
=================================================================== 
*/
@media screen and (max-width: 1080px) {
    .multiple-items-style-one-area .container .multiple-items-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    .multiple-items-style-one-area .container .multiple-items-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media screen and (max-width: 650px) {
    .multiple-items-style-one-area .container .multiple-items-grid {
        grid-template-columns: 1fr !important;
    }
}