/* HERO */
.hero{
    display: flex;
    gap: 10px;
    margin-block: 10px 40px;
    position: relative;
    padding: 0;
}

.hero-slider__wrapper, 
.hero-grid{
    flex-basis: 50%;
}

.hero-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.wp-block-columns.hero{
    margin-block: 40px;
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero .wp-block-columns {
    gap: 10px;
    margin-bottom: 10px;
}

.hero-grid{
    display: flex;
    flex-wrap: wrap;
}

.hero-grid .wp-block-columns:last-child{
    margin-bottom: 0;
}

.hero-category {
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: 0px 3px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    /* max-height: 270px; */
    width: calc(50% - 5px);
    color: var(--color-headline);
}

.hero-category div{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.4rem;
    text-align: center;
    text-shadow: 0px 0px 3px #2222228f;
    width: 100%;
}

.hero-category div h2{
    margin: 0;
}

.hero-category:first-of-type div{
    background-color: #ffffffdb;
    z-index: 1;
    border-radius: var(--border-radius);
    padding: 16px 12px 12px;
    width: auto;
}

.hero-category div em{
    font-style: normal;
    font-weight: 500;
    font-family: var(--font-family-text);
    font-size: 1.6rem;
    display: block;
}

/* one item */
.hero-category:nth-child(3):nth-last-child(1),
.hero-category:nth-child(1):nth-last-child(1) {
	width: 100%;
}

/* two items */
.hero-category:nth-child(1):nth-last-child(2),
.hero-category:nth-child(2):nth-last-child(1) {
	width: 100%;
}

.hero-category:nth-child(2){
    border: 4px solid #9AC93B;
    color: var(--color-headline);
}

.hero-category:nth-child(2) img{
    object-position: right;
    transform: scale(1.06);
}

.hero-category:nth-child(2) p{
    line-height: 2.8rem;
}

/* three items */
.hero-category:nth-child(1):nth-last-child(3),
.hero-category:nth-child(2):nth-last-child(2) {
	width: calc(50% - 5px);
}

/* four items */
.hero-category:nth-child(1):nth-last-child(4),
.hero-category:nth-child(2):nth-last-child(3),
.hero-category:nth-child(3):nth-last-child(2),
.hero-category:nth-child(4):nth-last-child(1) {
	width: calc(50% - 5px);
}

.hero-category:after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    background-color: #000;
    opacity: 0.2;
}

.hero-category:last-of-type:after{
	background-color: transparent;
}

/* Last child */
.hero-category:nth-child(3):nth-last-child(1){
    max-height: unset;
}

.hero-category:nth-child(3):nth-last-child(1) img{
    object-fit: contain;
    object-position: bottom;
}

.hero-category:nth-child(3):nth-last-child(1) div{
    color: var(--color-headline);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-category:nth-child(3):nth-last-child(1) h3{
    color: var(--color-headline);
    font-size: 2rem;
}

.hero-category img{
    border-radius: var(--border-radius);
    object-fit: cover;
    width: 100%;
    height: 100%;
    transition: var(--transition);
}

/* .hero-category p,
.hero-category h3{ */
/* .hero-category div{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    width: 100%;
    text-align: center;
    margin: 0;
    z-index: 1;
    padding-inline: 15px;
	display: flex;
	flex-direction: column;
	gap: 5px;
} */

.hero-category h3{
    font-size: clamp(0.875rem, 3vw, 1.2rem);
    line-height: 1.2rem;
	font-weight: 600;
	color: inherit;
	margin: 0;
    color: #fff;
}

.hero-category p{
	margin: 0;
}

.hero-slider__content h2,
.hero-category h3{
    text-shadow: 2px 2px #00000038;
    color: #fff;
}

@media screen and (min-width: 992px){
    .hero-category:hover img{
        transform: scale(1.1);
    }
}

/* Slider */
.hero-slider{
    height: 100%;
}

.hero-slider .splide__slide{
    width: 100%;
}

.hero-slider .splide__track{
    height: 100%;
    padding-block: 0;
}

.hero-slider .splide__arrow{
    border: none;
    opacity: 0;
    visibility: hidden;
}

.hero-slider:hover .splide__arrow{
    opacity: 1;
    visibility: visible;
}

.hero-slider img,
.hero-slider .splide__slide img{
    width: 100%;
    height: 100%;
    max-height: 560px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.hero-slider__content{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    color: #fff;
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    padding: 20px 45px 30px;
    background-color: #0000004f;
    border-radius: var(--border-radius);
    backdrop-filter: blur(3px);
    text-align: center;
}

.hero-slider__content h1,
.hero-slider__content h2{
    color: #fff;
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: clamp(1.4rem, 3vw, 2.2rem);
    margin-bottom: 8px;
}

.hero-slider__content a{
    background-color: var(--color-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 4px;
    color: #fff;
}

.hero-slider__content a:hover{
    background-color: var(--color-headline);
}

.hero-slider__content p{
    margin-top: 0;
}
/* NO JS */
.hero-slider.splide:not(.is-initialized){
    visibility: visible;
}

.hero-slider:not(.is-initialized) .splide__slide:not(:first-child){
    display: none;
}

@media screen and (max-width: 992px){
    .hero{
        flex-direction: column;
    }
    .hero-slider, .hero-grid{
        width: 100%;
    }
}
@media screen and (max-widtH: 992px) and (min-width: 769px){
    .hero-grid{
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px){
    .hero-category{
        max-height: 200px;
    }
    .hero-slider__content{
        padding: 20px;
    }
    .hero-slider .splide__arrows{
        display: none;
    }
}
@media screen and (max-width: 480px){
    .hero-slider__content{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        padding: 12px;
    }
    .hero-category p,
    .hero-category div em,
    .hero-category div{
        font-size: 1rem;
        line-height: 1.2rem;
    }
    .hero-slider img, .hero-slider .splide__slide img{
        max-height: 360px;
    }
}

/* wc-block-grid__products */
.home ul.wc-block-grid__products{
	grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
}

.home ul.wc-block-grid__products li:nth-of-type(n+5){
	display: none;
}

/* CTA Section */
.cta-column .gb-icon{
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 0;
    border: 10px solid #fff;
    box-sizing: content-box;
}

.cta-column .gb-icon svg path{
    fill: #fff;
}

/* Latest posts */
.wp-block-query ul.columns-4.wp-block-post-template{
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.wp-block-query .wp-block-post{
    height: auto;
    display: flex;
    flex-direction: column;
    border-radius: 3px;
    border: 1px solid #f7f9fa;
    transition: var(--transition);
    padding: 20px;
    position: relative;
}

.wp-block-query .wp-block-post .wp-block-post-featured-image{
    order: -1;
    margin: -20px -20px 0;
    transition: var(--transition);
}

.wp-block-query .wp-block-post:hover .wp-block-post-featured-image{
    transform: translateY(-6px);
}

.wp-block-query .wp-block-post .wp-block-post-featured-image img{
    transition: all 0.5s ease;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 3px;
    height: 205px;
}

.wp-block-query .wp-block-post-title{
    font-size: 1.3em;
    margin-top: 0px;
    margin-bottom: 20px;
    color: var(--color-headline);
    font-family: var(--font-family-headline);
    font-weight: 600;
}

.wp-block-query .wp-block-post-date{
    order: -1;
    margin-block: 10px 5px;
    font-size: 0.7rem;
}

.wp-block-query .wp-block-post-date:before{
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 6px;
}

.wp-block-query .wp-block-read-more{
    display: flex;
    flex-grow: 1;
    align-items: flex-end;
    font-size: 0.75rem;
    color: var(--color-headline);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 50px;
	font-family: var(--font-family-headline);
    position: relative;
}

.wp-block-query .wp-block-read-more:after,
.wp-block-query .wp-block-read-more:before{
	content: '';
	position: absolute;
	bottom: -3px;
	left: auto;
    right: 0;
	width: 100%;
	height: 2px;
	background-color: var(--border-color);
	transition: all 0.3s ease 0s;
	-webkit-transition: all 0.3s ease 0s;
}

.wp-block-query .wp-block-read-more:after{
	width: 0%;
	background-color: var(--color-primary);
}

.wp-block-query .wp-block-read-more:hover:after{
	z-index: 1;
	width: 100%;
    left: 0;
    right: auto;
}

.wp-block-query .wp-block-read-more.wp-block{
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Process */
.gb-container.process .gb-container:nth-child(odd){
    position: relative;
}

.gb-container.process .gb-container:nth-child(odd):before{
    content: '0' counter(number);
    counter-increment: number;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-headline);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-family: var(--font-family-text);
    font-weight: 600;
    position: absolute;
    left: 50px;
    top: 0;
    z-index: 1;
}

/* Yellow */
.gb-container.process.yellow .gb-container:nth-child(odd) .gb-icon{
    display: block;
    position: relative;
}

.gb-container.process.yellow .gb-container:nth-child(odd) .gb-icon:after{
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border: 1px dashed var(--border-color);
    border-radius: 50%;
}

@media screen and (max-width: 1024px){
    .gb-container.process{
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-content: center;
        justify-items: center;
        row-gap: 40px;
    }
    .gb-container.process .gb-container:nth-child(odd){
        width: 50%;
    }
}

@media screen and (max-width: 768px){
    .gb-container.cta-column{
        padding: 80px 30px 30px;
    }
    .gb-container.cta-column .gb-icon{
        left: 50%;
        top: -45px;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 480px){
    .gb-container.process{
        grid-template-columns: 1fr;
    }
    .gb-container.process .gb-container:nth-child(odd){
        width: 100%;
    }
}

/* CTA */
.cta-montage{
    margin-block: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.cta-montage img{
    height: 225px;
    object-fit: cover;
    border-radius: 8px 0px 0px 8px;
}

.cta-montage .is-vertically-aligned-center{
    position: relative;
    padding-left: 70px;
}

.cta-montage .is-vertically-aligned-center:before{
    content: '\f0ad';
    font-family: 'Font Awesome 5 Free';
    font-weight: 700;
    font-size: 2rem;
    background-color: var(--color-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 10px solid #fff;    
    position: absolute;
    left: -75px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

@media screen and (max-width: 768px){
    .cta-montage .is-vertically-aligned-center{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
        padding: 35px 20px 45px 20px;
    }
    .cta-montage .is-vertically-aligned-center p{
        margin: 0;
        text-align: center;
    }
    .cta-montage .is-vertically-aligned-center:before{
        left: 50%;
        top: -75px;
        transform: translateX(-50%);
    
    }
}
