/*
Theme Name: WebDV Theme
Author: WebDV
Description: Tema personalizado para WordPress.
Version: 1.20.9
Text Domain: webdv-theme
*/

:root {
    --single-text: #1f2933;
    --single-heading: var(--single-text);
    --single-muted: #f7f7f7;
    --single-border: #d9e1ea;
    --single-primary: #2563eb;
    --single-secondary-bg: #f7f7f7;
    --single-surface: #eef3fd;
    --site-background: #ffffff;
    --webdv-primary-hover: #1f54c8;
    --webdv-primary-active: #1c4ab0;
    --webdv-primary-contrast: #ffffff;
    --webdv-primary-hover-text: #ffffff;
    --webdv-primary-active-text: #ffffff;
    --webdv-header-bg: #ffffff;
    --webdv-header-text: #101820;
    --webdv-header-hover: #2563eb;
    --webdv-cookie-bg: #101820;
    --webdv-cookie-text: #ffffff;
    --webdv-cookie-button-bg: #ffffff;
    --webdv-cookie-button-text: #101820;
    --webdv-footer-bg: #f8fafc;
    --webdv-footer-bg-rgb: 248, 250, 252;
    --webdv-footer-text: #f7f7f7;
    --webdv-footer-text-rgb: 247, 247, 247;
    --webdv-footer-link: #101820;
    --webdv-footer-link-rgb: 16, 24, 32;
    --webdv-body-font-size: 17px;
    --webdv-supporting-font-size: 12px;
    --webdv-h1-font-size: 40px;
    --webdv-h2-font-size: 28px;
    --webdv-h3-font-size: 22px;
    --webdv-mobile-body-font-size: 16px;
    --webdv-mobile-supporting-font-size: 10px;
    --webdv-mobile-h1-font-size: 28px;
    --webdv-mobile-h2-font-size: 23px;
    --webdv-mobile-h3-font-size: 20px;
    --bs-body-color: var(--single-text, #1f2933);
    --bs-body-color-rgb: 31, 41, 51;
    --bs-body-bg: var(--site-background, #ffffff);
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-heading-color: var(--single-heading, #101820);
    --bs-emphasis-color: var(--single-heading, #101820);
    --bs-emphasis-color-rgb: 16, 24, 32;
    --bs-dark: var(--single-heading, #101820);
    --bs-dark-rgb: 16, 24, 32;
    --bs-primary: var(--single-primary, #2563eb);
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: var(--single-primary, #2563eb);
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: var(--webdv-primary-hover, #1f54c8);
    --bs-link-hover-color-rgb: 31, 84, 200;
    --bs-secondary: var(--single-muted, #f7f7f7);
    --bs-secondary-rgb: 247, 247, 247;
    --bs-secondary-color: var(--single-muted, #f7f7f7);
    --bs-secondary-color-rgb: 247, 247, 247;
    --bs-secondary-bg: var(--single-secondary-bg, #f7f7f7);
    --bs-border-color: var(--single-border, #d9e1ea);
    --bs-tertiary-bg: var(--single-surface, #eef3fd);
    --bs-tertiary-bg-rgb: 238, 243, 253;
    --bs-light: var(--single-surface, #eef3fd);
    --bs-light-rgb: 238, 243, 253;
    --bs-focus-ring-color: rgba(37, 99, 235, .25);
}

body {
    font-size: var(--webdv-body-font-size, 17px) !important;
}

.text-supporting {
    font-size: var(--webdv-supporting-font-size, 12px) !important;
}

.btn-primary {
    --bs-btn-color: var(--webdv-primary-contrast, #ffffff);
    --bs-btn-bg: var(--single-primary, #2563eb);
    --bs-btn-border-color: var(--single-primary, #2563eb);
    --bs-btn-hover-color: var(--webdv-primary-hover-text, #ffffff);
    --bs-btn-hover-bg: var(--webdv-primary-hover, #1f54c8);
    --bs-btn-hover-border-color: var(--webdv-primary-hover, #1f54c8);
    --bs-btn-active-color: var(--webdv-primary-active-text, #ffffff);
    --bs-btn-active-bg: var(--webdv-primary-active, #1c4ab0);
    --bs-btn-active-border-color: var(--webdv-primary-active, #1c4ab0);
    --bs-btn-disabled-color: var(--webdv-primary-contrast, #ffffff);
    --bs-btn-disabled-bg: var(--single-primary, #2563eb);
    --bs-btn-disabled-border-color: var(--single-primary, #2563eb);
}

/* LazyBlocks: somente dimensoes sem equivalente no Bootstrap. */
#recommender-modal-point {
    width: 1px;
    height: 1px;
}

#recommender-modal {
    right: 10px;
    bottom: 10px;
    z-index: 999999;
    width: calc(100vw - 20px);
    max-width: 520px;
    height: 180px;
    align-items: stretch !important;
}

#recommender-modal .recommender-modal-image {
    width: 140px;
    min-height: 90px;
    height: 100% !important;
}

#recommender-modal .recommender-modal-image img {
    height: 100% !important;
    object-fit: cover;
}

#recommender-modal .recommender-modal-content small {
    font-size: 10px !important;
}

#recommender-modal .recommender-modal-title {
    font-size: 16px !important;
}

#recommender-modal .recommender-modal-description {
    font-size: 14px !important;
}

.recomendadorV2ImageCol {
    max-width: 240px;
}

@media (max-width: 991px) {
    .recomendadorV2ImageCol {
        max-width: 100%;
    }
    
    .recomendadorV2 {
        gap: 0.5rem !important;
    }
    
    .recomendadorV2ImageCol {
        margin-bottom: 0.5rem !important;
    }
}

.recomendadorV2 {
    font-size: var(--webdv-body-font-size, 17px);
    line-height: 1.5;
}

.recomendadorV2 .recomendadorV2__title {
    font-size: var(--webdv-h3-font-size, 22px) !important;
    line-height: 1.3 !important;
}

.recomendadorV2 .small {
    font-size: 0.875em !important;
}

.recomendadorV2 .text-muted {
    opacity: 0.75;
}

.recomendadorV2 .lazyRecV2 {
    display: flex !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.recomendadorFixedClose {
    z-index: 99999;
    width: 25px;
    height: 25px;
    margin-bottom: 99px;
}

.recomendadorFixedCard {
    z-index: 9999;
    max-width: 420px;
    height: 90px;
}

.recomendadorFixedImage {
    width: 130px;
}

.recomendadorFixedImage img {
    height: 75px;
}

.recomendadorFixedTitle {
    font-size: 12px !important;
}

.recomendadorFixedAlert {
    font-size: 8px !important;
}

@media (min-width: 769px) {
    #recommender-modal .recommender-modal-image {
        width: 180px;
    }

    #recommender-modal .recommender-modal-title {
        font-size: 22px !important;
    }
}

.site-footer__logo-image {
    max-height: 48px;
}

.site-footer,
.site-copyright {
    --bs-tertiary-bg-rgb: var(--webdv-footer-bg-rgb, 248, 250, 252);
    --bs-secondary-rgb: var(--webdv-footer-text-rgb, 247, 247, 247);
    --bs-dark-rgb: var(--webdv-footer-link-rgb, 16, 24, 32);
}

.cookie-banner {
    bottom: 16px;
    z-index: 1100;
    width: min(720px, calc(100vw - 32px));
    background: var(--webdv-cookie-bg, #101820);
    box-shadow: 0 12px 30px rgba(16, 24, 32, 0.18);
}

.cookie-banner--left {
    left: 16px;
}

.cookie-banner--center {
    left: 50%;
    transform: translateX(-50%);
}

.cookie-banner--right {
    right: 16px;
}

.cookie-banner__message,
.cookie-banner__policy {
    color: var(--webdv-cookie-text, #ffffff);
}

.cookie-banner__button {
    background: var(--webdv-cookie-button-bg, #ffffff);
    color: var(--webdv-cookie-button-text, #101820);
}

.site-header {
    z-index: 1080;
    background-color: var(--webdv-header-bg, #ffffff);
}

.site-header__brand-wrap {
    min-width: 0;
}

.site-header__logo {
    max-width: 100%;
}

.site-header .custom-logo,
.site-header__mobile-logo-image {
    width: auto;
    max-width: 100%;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

.site-header__brand {
    color: var(--webdv-header-text, #101820);
}

.site-header__brand:hover,
.site-header__brand:focus {
    color: var(--webdv-header-hover, #2563eb);
}

.site-header__search-toggle {
    color: var(--webdv-header-text, #101820);
}

.site-header__search-menu {
    min-width: 320px;
}

.site-header__offcanvas-header {
    background-color: var(--webdv-header-bg, #ffffff);
}

.site-header__offcanvas-title {
    color: var(--webdv-header-text, #101820);
}

.site-header__offcanvas-body {
    background-color: var(--webdv-header-bg, #ffffff);
}

.site-header__menu .menu-item a,
.site-header__menu .nav-link {
    color: var(--webdv-header-text, #101820);
}

.site-header__menu .menu-item a:hover,
.site-header__menu .menu-item a:focus,
.site-header__menu .nav-link:hover,
.site-header__menu .nav-link:focus {
    color: var(--webdv-header-hover, #2563eb);
}

.site-header__menu .current-menu-item>a,
.site-header__menu .current-menu-ancestor>a,
.site-header__menu .current_page_item>a,
.site-header__menu .current_page_ancestor>a {
    color: var(--webdv-header-hover, #2563eb);
}

.site-header__search-menu .search-field {
    min-width: 220px;
}

.single-post__column {
    max-width: 680px;
}

.single-post__title,
.home-typography__title,
.posts-archive__title {
    font-size: var(--webdv-h1-font-size, 40px) !important;
}

.single-post__content h2,
.home-typography__section-title,
.related-posts__title {
    font-size: var(--webdv-h2-font-size, 28px) !important;
}

.single-post__content h3,
.home-typography__card-title,
.continue-reading__title {
    font-size: var(--webdv-h3-font-size, 22px) !important;
}

.single-post__meta {
    letter-spacing: 0.08em;
}

.share-box__eyebrow {
    letter-spacing: 0.08em;
}

.single-post__title {
    letter-spacing: -0.03em;
}

.single-post__content {
    font-size: var(--webdv-body-font-size, 17px) !important;
}

.single-post__content ul,
.single-post__content ol {
    margin-bottom: 24px;
    padding: 0;
    list-style: none;
}

.single-post__content ul li,
.single-post__content ol li {
    position: relative;
    min-height: 52px;
    padding: 12px 16px 12px 52px;
    border-radius: 12px;
    background-color: var(--bs-secondary, var(--single-muted, #f7f7f7));
}

.single-post__content ul li+li,
.single-post__content ol li+li {
    margin-top: 12px;
}

.single-post__content ul li::before,
.single-post__content ol li::before {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--single-primary, #2563eb);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.single-post__content ul li::before {
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}

.single-post__content ol {
    counter-reset: single-post-list;
}

.single-post__content ol li {
    counter-increment: single-post-list;
}

.single-post__content ol li::before {
    content: counter(single-post-list);
    padding-top: 2px;
    font-size: 13px;
}

.single-post__content li>ul,
.single-post__content li>ol {
    margin-top: 10px;
    margin-bottom: 0;
    padding: 0 0 0 16px;
    background-color: transparent;
}

.single-post__content li>ul {
    list-style: disc;
}

.single-post__content li>ol {
    list-style: decimal;
}

.single-post__content li>ul li,
.single-post__content li>ol li {
    min-height: 0;
    padding: 0;
    line-height: 1.5;
    border-radius: 0;
    background-color: transparent;
}

.single-post__content li>ul li+li,
.single-post__content li>ol li+li {
    margin-top: 2px;
}

.single-post__content li>ul li::before,
.single-post__content li>ol li::before {
    content: none;
}

.home-typography__title {
    letter-spacing: -0.03em;
}

.homepage-hero {
    background-color: #000e22 !important;
}

.homepage-hero .home-typography__title,
.homepage-hero .home-typography__excerpt,
.homepage-hero .home-typography__section-title,
.homepage-hero .home-typography__submeta,
.homepage-hero .home-typography__title a,
.homepage-hero .home-typography__section-title a {
    color: #ffffff;
}

.homepage-hero .link-dark,
.homepage-hero .link-dark.text-decoration-none,
.homepage-hero .link-dark.text-decoration-none:hover,
.homepage-hero .link-dark.text-decoration-none:focus {
    color: #f5f9ff !important;
}

.homepage-hero .btn-dark {
    border-color: #3c5a86;
    background-color: #163152;
    color: #f8fbff;
}

.homepage-hero .btn-dark:hover,
.homepage-hero .btn-dark:focus {
    border-color: #4d6f9f;
    background-color: #1d416d;
    color: #ffffff;
}

.homepage-hero__card {
    background-color: rgba(24, 41, 68, 0.92);
    border: 1px solid rgba(120, 151, 196, 0.18);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22) !important;
}

.homepage-hero .home-typography__excerpt,
.homepage-hero .home-typography__submeta {
    color: rgba(233, 241, 255, 0.8);
}

.homepage-hero .home-typography__section-title a {
    color: #f5f9ff;
}

.homepage-hero .home-typography__section-title a:hover,
.homepage-hero .home-typography__section-title a:focus {
    color: #9fc3ff;
}

.homepage-sidebar {
    top: 104px;
}

.home-featured-grid__lead-title {
    font-size: clamp(24px, 2.2vw, 34px) !important;
}

.home-featured-grid__lead-title a:hover,
.home-featured-grid__lead-title a:focus,
.home-featured-grid__item-title a:hover,
.home-featured-grid__item-title a:focus {
    color: var(--single-primary, #2563eb);
}

.home-featured-grid__item-media {
    --bs-aspect-ratio: 100%;
}

@media (min-width: 576px) {
    .home-featured-grid__item-media {
        --bs-aspect-ratio: 56.25%;
    }
}

.homepage-hero .home-post-meta {
    color: rgba(233, 241, 255, 0.82);
}

.posts-archive__header {
    max-width: 680px;
}

.posts-archive__title {
    letter-spacing: -0.03em;
}

.author-box__eyebrow {
    letter-spacing: 0.08em;
}

.related-post-card__link {
    display: flex;
    min-height: 160px;
    flex-direction: row;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.related-post-card__link:hover,
.related-post-card__link:focus-visible {
    border-color: var(--single-primary, #2563eb);
    box-shadow: 0 10px 24px rgba(16, 24, 32, 0.1);
    transform: translateY(-2px);
}

.related-post-card__media {
    position: relative;
    flex: 0 0 clamp(150px, 34%, 220px);
    min-height: 160px;
    overflow: hidden;
}

.related-post-card__media img {
    position: absolute;
    inset: 0;
    display: block;
}

.related-post-card__content {
    min-width: 0;
    justify-content: center;
}

.related-post-card__title {
    transition: color 180ms ease;
}

.related-post-card__link:hover .related-post-card__title,
.related-post-card__link:focus-visible .related-post-card__title {
    color: var(--single-primary, #2563eb);
}

.webdv-comments__list .comment-content> :last-child {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {

    :root {
        --webdv-body-font-size: var(--webdv-mobile-body-font-size, 16px) !important;
        --webdv-supporting-font-size: var(--webdv-mobile-supporting-font-size, 10px) !important;
        --webdv-h1-font-size: var(--webdv-mobile-h1-font-size, 28px) !important;
        --webdv-h2-font-size: var(--webdv-mobile-h2-font-size, 23px) !important;
        --webdv-h3-font-size: var(--webdv-mobile-h3-font-size, 20px) !important;
    }

    .cookie-banner {
        left: 16px;
        right: 16px;
        width: auto;
        transform: none;
    }

    .site-header__brand-wrap {
        max-width: calc(100% - 52px);
    }

    .site-header .custom-logo,
    .site-header__mobile-logo-image {
        height: 36px;
    }

    .single-post__content ul li,
    .single-post__content ol li {
        min-height: 46px;
        padding: 12px 14px 12px 46px;
    }

    .single-post__content ul li+li,
    .single-post__content ol li+li {
        margin-top: 8px;
    }

    .single-post__content ul li::before,
    .single-post__content ol li::before {
        left: 12px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .single-post__content ul li::before {
        background-size: 12px 12px;
    }

    .single-post__content ol li::before {
        font-size: 10px;
    }

    .single-post__content li>ul,
    .single-post__content li>ol {
        margin-top: 4px;
        padding-left: 14px;
    }

    .single-post__content li>ul li,
    .single-post__content li>ol li {
        min-height: 0;
        padding-left: 0;
    }

    .single-post__content li>ul li+li,
    .single-post__content li>ol li+li {
        margin-top: 2px;
    }

    .related-post-card__link,
    .related-post-card__media {
        min-height: 132px;
    }

    .related-post-card__media {
        flex-basis: clamp(112px, 34%, 150px);
    }

    .related-post-card__content {
        padding: 0.875rem !important;
    }

    .related-post-card__title {
        font-size: 1rem;
    }

    .related-post-card__excerpt {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
}
