.wpb-header.wpb-header--home {
    .wpb-card { padding: 1.6rem; }
    .wpb-card__body > .btn { margin-top: 1.6rem; }

    @media (min-width: 768px) {
        .wpb-card { padding: 2.4rem; }
    }

    @media (min-width: 992px) {
        .wpb-card { padding: 3.2rem; }
    }
}

/** CTA **/
.wpb-block--lp-cta {
    .block-body { --p: 1.8rem 1.4rem; --image-width: 10rem; background-color: var(--clr-light); border-radius: .8rem; display: grid;
        .block-body__text { display: flex; flex-direction: column; padding: var(--p); z-index: 1;
            h3 {font-size: 1.6rem; display: flex; gap: .8rem;
                &::before {content: ''; display: block; margin-top: .15em; width: 1.5rem; height: 1.6rem; background: url('/app/themes/transoplast-core/public/img/favicon-grey.svg') no-repeat center/contain;}
            }

            p {font-size: clamp(1.3rem, 1.4vw, 1.5rem);}
            > *:has(+ .btn) {padding-bottom: 1em;}
            .btn {width: fit-content; margin-top: auto !important;}
        }

        .block-body__image {display: flex; align-items: end; padding-right: 1.4rem;}
    }

    .wpb-text > *:not(.woocommerce-breadcrumb) + *:not(.btn .blockquote) {margin-top: .5em;}

    @media (max-width: 440px) {
        .block-body .block-body__image {width: var(--image-width); height: auto; position: absolute; right: .5rem; bottom: 0; pointer-events: none;}
    }

    @media (min-width: 440px) {
        .block-body {grid-template-columns: 1fr var(--image-width);}
    }

    @media (min-width: 768px) {
        .block-body { --p: 2.4rem; --image-width: 18rem;
            .block-body__image {height: calc(100% + 2rem); margin-top: -2rem;}
            .block-body__text .btn {min-height: 5rem;}
        }
    }

    @media (min-width: 1200px) {
        .block-body {--p: 2.8rem 3.2rem; --image-width: 24rem;}
    }
}

/** CATEGORY TAGS BLOCK **/
.wpb-block--lp-category-tags {
    .block-header {
        + .block-body.tags {margin-top: 1.6rem;}

        .wpb-text { display: flex; align-items: center; column-gap: .8rem;
            h1, h2, h3 {margin-top: 0 !important;}
        }
    }

    .tags { display: flex; flex-wrap: wrap; gap: .8rem;
        .btn--small .title {color: inherit; line-height: 1;}
        &.large-tags { display: grid; grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr)); gap: 1.6rem;
            .btn--large {
                .title {display: flex; column-gap: .8rem; align-items: center;}
                &:has(img) {padding-left: 0;}
                img {width: 6.4rem; height: 5.6rem; object-fit: contain; border-radius: .4rem;}
            }
        }
    }

    @media (max-width: 992px) {
        .block-header + .block-body.tags {margin-top: 1.2rem;}

        .tags { flex-wrap: nowrap; white-space: nowrap; overflow-x: scroll; overflow-y: hidden; padding: 0 1.8rem; margin: 0 -1.8rem; padding-bottom: 8px;
            &.small-tags {scroll-snap-type: x mandatory; white-space: nowrap; overflow-x: auto !important; scrollbar-width: none;}
            &.large-tags { gap: .8rem;
                .btn--large img {width: 4rem; height: 4rem;}
            }

            .btn {--padding: 0 1rem; min-height: 3rem; --font-size: 1.2rem;}
        }

        .wpb-color-variations__icon {width: 1.6rem; min-width: 1.6rem; height: 1.6rem; margin: .3rem;
            &::before {width: .7rem; height: .7rem;}
        }
    }
}