html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
}

body {
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--main-font);
    font-weight: var(--regular);
    font-size: var(--p);
    background: var(--grey);

    @media (min-width: 992px) {
        margin-top: -15px;
    }
}

@media (min-width: 992px) {
    header {
        margin: 15px 15px 0 15px;
    }
}

main {
    margin: 15px;
}

body {

    article[role="main"] {
        position: relative;
        z-index: 1;

        &:before {
            content: '';
            background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
            top: 0;
            left: 0;
            width: 100%;
            position: absolute;
            z-index: 2;
        }
    }

    &.home {
        article[role="main"] {
            &:before {
                height: 100vh;

                @media (max-width: 992px) {
                    height: 450px;
                }
            }
        }
    }

    &:not(.home) {
        article[role="main"]:not(:has(>.form)) {
            &:before {
                height: 640px;

                @media (max-width: 992px) {
                    height: 300px;
                }
            }
        }
    }
}

* {
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
}

*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

main section,
footer,
.infos_and_form {
    padding: 40px 0;
}

@media (min-width: 768px) {

    main section,
    footer,
    .infos_and_form {
        padding: 60px 0;
    }
}

@media (min-width: 992px) {

    main section,
    footer,
    .infos_and_form {
        padding: 80px 0;
    }
}

@media (min-width: 1200px) {

    main section,
    .infos_and_form {
        padding: 100px 0;
    }
}

@media (min-width: 1400px) {

    main section,
    .infos_and_form {
        padding: 120px 0;
    }
}

img,
video {
    height: auto;
    max-width: 100%;
}

figure {
    background: #f2f4fa;
    max-width: 100%;
    overflow: hidden;
}

figure img.size-full {
    border-radius: 0;
}

figure figcaption {
    padding: 10px 40px;
    text-align: center;
}

iframe {
    max-width: 100%;
}

iframe[src*=youtube] {
    aspect-ratio: 16/9;
    border-radius: 8px;
    display: block;
    height: auto;
    overflow: hidden;
    width: 100%;
}

ul:not([class]),
ol:not([class]) {
    line-height: 1.5;
    margin-bottom: 24px;
    padding-left: 24px;
}

ul:not([class]) {
    list-style: none !important;
}

ul:not([class]) li::before {
    background: var(--blue);
    content: "";
    display: inline-block;
    height: 8px;
    margin: -2px 7px 0 -12px;
    vertical-align: middle;
    width: 8px;
}

b,
strong {
    font-weight: var(--bold);
}

[type=text],
[type=email],
[type=number],
[type=tel],
[type=password],
textarea,
select {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--white);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    padding: 12.5px 0;
    width: 100%;
}

textarea {
    border: 1px solid var(--white);
    padding: 16px;
}

.aligncenter,
.alignleft,
.alignright {
    display: block;
    margin: 0 auto 15px;
}

.txtcenter {
    text-align: center;
}

.txtright {
    text-align: right;
}

.txtjustify {
    text-align: justify;
}

blockquote {
    border-left: 2px solid #28385a;
    color: #28385a;
    font-size: 1.5rem;
    font-weight: 600;
    max-width: calc(600px + 2rem);
    padding-left: 2rem;
}

blockquote p {
    line-height: 2.25rem;
}

@media (max-width: 768px) {
    .cta {
        text-align: center;
    }
}

.wp-pagenavi .pages {
    border: 0px !important;
}

.wp-pagenavi {
    border-top: 0px solid;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    margin-top: 60px;
    padding-top: 40px;
    position: relative;
    text-align: center;
}

.wp-pagenavi a,
.wp-pagenavi span {
    border: 1px solid var(--dark-blue) !important;
    border-radius: 2rem;
    color: var(--dark-blue);
    display: inline-block;
    font-weight: 500;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 5px 10px;
    text-align: center;
}

.wp-pagenavi .page,
.wp-pagenavi .current {
    height: 40px;
    padding: 8px 2px;
    width: 40px;
}

.wp-pagenavi .page:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.wp-pagenavi .current {
    background: var(--dark-blue);
    color: var(--white);
}

.wp-pagenavi [class*=postslink] {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-color: var(--dark-blue);
    color: var(--dark-blue);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 40px;
    padding: 4px 1rem;
}

.wp-pagenavi [class*=postslink]:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.wp-pagenavi .previouspostslink,
.wp-pagenavi .nextpostslink {
    margin: 0 auto 10px;
}

.socials {
    margin: 0;
    padding: 0;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.5rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.socials li {
    list-style: none;
}

.socials li::before {
    display: none;
}

.socials__item a {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 32px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 3px;
    width: 32px;
}

.socials__item a::before {
    font-family: "FontAwesome";
    font-size: 14px;
}

.socials__item a:hover {
    color: #28385a;
}

.socials__item a[data-social*=facebook]::before {
    content: "\f39e";
}

.socials__item a[data-social*=twitter]::before,
.socials__item a[data-social*=X]::before {
    content: '';
    background-image: url('../../img/social_x.svg');
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
}

.socials__item a[data-social*=linkedin]::before {
    content: "\f0e1";
}

.socials__item a[data-social*=instagram]::before {
    content: "\f16d";
}

.socials__item a[data-social*=youtube]::before {
    content: "\f167";
}

.socials__item a[data-social*=vimeo]::before {
    content: "\f27d";
}

.socials__item a[data-social*=whatsapp]::before {
    content: "\f232";
}

.socials__item a[data-social*=tiktok]::before {
    content: "\e07b";
}

.socials__item a[data-social*=mail]::before {
    content: " \f0e0";
}

.sharing {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 15px;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 16px 12px 32px;
    text-align: right;
    margin-bottom: 15px;

    span {
        font-weight: var(--light);
    }
}

.sharing__list {
    margin: 0;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.sharing__list li {
    list-style: none;
}

.sharing__list li::before {
    display: none;
}

.sharing__icon {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background: var(--blue);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 32px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 3px;
    width: 32px;
    color: var(--white);
}

.sharing__icon::before {
    content: "";
    display: block;
    font-family: "FontAwesome";
    font-size: 1rem;
    color: var(--white);
}

.sharing__item[data-rs*=facebook] .sharing__icon::before {
    content: "\f39e";
}

.sharing__item[data-rs*=twitter] .sharing__icon::before {
    content: "\e61b";
}

.sharing__item[data-rs*=linkedin] .sharing__icon::before {
    content: "\f0e1";
}

.sharing__item[data-rs*=instagram] .sharing__icon::before {
    content: "\f16d";
}

.sharing__item[data-rs*=youtube] .sharing__icon::before {
    content: "\f167";
}

.sharing__item[data-rs*=vimeo] .sharing__icon::before {
    content: "\f27d";
}

.twitter-tweet {
    margin-left: auto;
    margin-right: auto;
}

.content {
    @media (min-width: 992px) {
        .container-limited {
            max-width: 1000px;
            margin: auto;

            .cta {
                margin: 40px auto 0 auto;
            }
        }
    }

    .container {
        p.cta {
            margin: 20px auto 0 auto;
        }
    }
}

@media (min-width: 768px) {
    .alignleft {
        float: left;
        margin-right: 20px;
    }

    .alignright {
        float: right;
        margin-left: 15px;
    }

    .wp-pagenavi {
        padding-left: 150px;
        padding-right: 150px;
    }

    .wp-pagenavi [class*=postslink] {
        position: absolute;
        top: 40px;
        width: 135px;
    }

    .wp-pagenavi .previouspostslink {
        left: 0;
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .wp-pagenavi .nextpostslink {
        margin-left: 1rem;
        margin-top: 0;
        right: 0;
    }

    ul:not([class]),
    ol:not([class]) {
        padding-left: 3rem;
    }
}

.single {
    .container.container-limited {

        .content {
            p:has(img + img) {
                display: flex;
                gap: 30px;

                img {
                    max-width: 100%;
                    height: auto;
                    object-fit: cover;
                    min-width: 0;
                }
            }
        }

        section.builder {
            &:after {
                width: 150%;
            }

            .container {
                padding: 45px 0;
            }

            &.testimonials {
                .container {
                    padding: 45px;

                    .testimonials__content {
                        .testimonials__quote {
                            font-size: 20px;
                            line-height: 32px;

                            img {
                                max-width: 60px;
                            }
                        }
                    }
                }
            }
        }
    }

    .builder.cpt {
        padding: 45px 0;

        .teaser.type_post {
            &:before {
                left: -150px;
                bottom: -50px;
            }

            &:after {
                right: -150px;
                top: -150px;
            }
        }
    }
}