/* ============================
   CBPP - Palestrantes / Ajax Load More
============================ */
.palestrantes .alm-listing,
.cbpp-palestrantes .alm-listing,
.ajax-load-more-wrap .alm-listing {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.ajax-load-more-wrap .alm-listing > .alm-reveal {
    display: contents;
}

.cbpp-alm-palestrante-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cbpp-palestrante-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 0.74;
    overflow: hidden;
    border: 0;
    border-radius: 9px;
    background: #111;
    color: #fff;
    cursor: pointer;
    isolation: isolate;
}

.cbpp-palestrante-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.cbpp-palestrante-card__media,
.cbpp-palestrante-card__media img,
.cbpp-palestrante-card__shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.cbpp-palestrante-card__media img {
    object-fit: cover;
    filter: grayscale(0);
    transform: scale(1.001);
    transition: transform .35s ease, filter .35s ease;
}

.cbpp-palestrante-card__shade {
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .20) 55%, rgba(0, 0, 0, .88) 100%);
}

.cbpp-palestrante-card:hover .cbpp-palestrante-card__media img,
.cbpp-palestrante-card:focus-visible .cbpp-palestrante-card__media img {
    transform: scale(1.035);
}

.cbpp-palestrante-card__content {
    position: absolute;
    z-index: 2;
    left: 17px;
    right: 15px;
    bottom: 17px;
    color: #fff;
}

.cbpp-palestrante-card__icon {
    display: block;
    width: 18px;
    height: 18px;
    margin: 0 0 8px;
}

.cbpp-palestrante-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cbpp-palestrante-card h3 {
    max-width: 95%;
    margin: 0 0 4px;
    color: #fff;
    font-family: var(--fonte-base, inherit);
    font-size: 23px;
    line-height: .92;
    font-weight: 700;
    letter-spacing: -0.012em;
}

.cbpp-palestrante-card p {
    max-width: 95%;
    margin: 0;
    color: rgba(255,255,255,.93);
    font-size: 12px;
    line-height: 1.22;
    font-weight: 400;
    letter-spacing: 0;
}

.cbpp-palestrante-modal[hidden] {
    display: none !important;
}

.cbpp-palestrante-modal.is-active {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.cbpp-palestrante-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, .88);
}

.cbpp-palestrante-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 64px));
    max-height: calc(100vh - 64px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: #F6F0EB;
    color: #000;
}

.cbpp-palestrante-modal__bar {
    flex: 0 0 70px;
    min-height: 70px;
    background: linear-gradient(90deg, #087CF4 0%, #7B3DD9 48%, #F4007A 100%);
}

.cbpp-palestrante-modal__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,.95);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 25px;
    line-height: 1;
    font-weight: 300;
    cursor: pointer;
}

.cbpp-palestrante-modal__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #2e5bff rgba(46, 91, 255, .12);
}

.cbpp-palestrante-modal__body::-webkit-scrollbar {
    width: 8px;
}

.cbpp-palestrante-modal__body::-webkit-scrollbar-track {
    margin: 18px 0;
    border-radius: 999px;
    background: rgba(46, 91, 255, .10);
}

.cbpp-palestrante-modal__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, #087CF4 0%, #9900FF 48%, #F4007A 100%);
}

.cbpp-palestrante-modal__main {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 42px;
    padding: 48px 54px 42px;
}

.cbpp-palestrante-modal__main--sem-foto {
    grid-template-columns: 1fr;
}

.cbpp-palestrante-modal__photo {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 9px;
    background: #cbd2dc;
}

.cbpp-palestrante-modal__photo img {
    display: block;
    width: 100%;
    aspect-ratio: .80;
    object-fit: cover;
}

.cbpp-palestrante-modal__socials {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    background: linear-gradient(90deg, #087CF4 0%, #2e5bff 65%);
}

.cbpp-palestrante-modal__socials a {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff !important;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
}

.cbpp-palestrante-modal__content h2 {
    margin: 0 0 10px;
    color: #000;
    font-family: var(--fonte-base, inherit);
    font-size: clamp(34px, 4vw, 52px);
    line-height: .98;
    font-weight: 400;
    letter-spacing: -0.04em;
}

.cbpp-palestrante-modal__cargo {
    margin: 0 0 18px;
    color: #000;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 600;
}

.cbpp-palestrante-modal__bio,
.cbpp-palestrante-modal__bio p {
    color: #000;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 400;
}

.cbpp-palestrante-modal__bio p {
    margin: 0 0 14px;
}

.cbpp-palestrante-modal__agenda {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 46px;
    padding: 28px 54px 34px;
    border-top: 1px solid rgba(0,0,0,.42);
}

.cbpp-palestrante-modal__evento {
    color: #087CF4;
    text-decoration: none;
}

.cbpp-palestrante-modal__evento em {
    display: block;
    margin: 0 0 5px;
    color: #087CF4;
    font-style: normal;
    font-size: 20px;
    line-height: 1.05;
    font-weight: 700;
}

.cbpp-palestrante-modal__evento strong {
    display: block;
    color: #087CF4;
    font-size: 20px;
    line-height: 1.12;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .palestrantes .alm-listing,
    .cbpp-palestrantes .alm-listing,
    .ajax-load-more-wrap .alm-listing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 740px) {
    .palestrantes .alm-listing,
    .cbpp-palestrantes .alm-listing,
    .ajax-load-more-wrap .alm-listing {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .cbpp-palestrante-modal.is-active {
        padding: 18px;
    }

    .cbpp-palestrante-modal__dialog {
        width: calc(100vw - 36px);
        max-height: calc(100vh - 36px);
    }

    .cbpp-palestrante-modal__main {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 24px;
    }

    .cbpp-palestrante-modal__photo {
        max-width: 260px;
    }

    .cbpp-palestrante-modal__agenda {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

@media (max-width: 460px) {
    .palestrantes .alm-listing,
    .cbpp-palestrantes .alm-listing,
    .ajax-load-more-wrap .alm-listing {
        grid-template-columns: 1fr;
        width: min(100%, 260px);
    }
}

/* ============================
   Ajustes v13 - Modal Palestrantes
============================ */
.cbpp-palestrante-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .32s ease, visibility .32s ease;
}

.cbpp-palestrante-modal[hidden] {
    display: flex !important;
}

.cbpp-palestrante-modal.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cbpp-palestrante-modal__backdrop {
    opacity: 0;
    transition: opacity .32s ease;
}

.cbpp-palestrante-modal.is-active .cbpp-palestrante-modal__backdrop {
    opacity: 1;
}

.cbpp-palestrante-modal__dialog {
    transform: translateY(18px) scale(.975);
    opacity: 0;
    transition: transform .34s cubic-bezier(.2, .75, .2, 1), opacity .28s ease;
}

.cbpp-palestrante-modal.is-active .cbpp-palestrante-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cbpp-palestrante-modal__close,
.cbpp-palestrante-modal__close:hover,
.cbpp-palestrante-modal__close:focus {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    aspect-ratio: 1 / 1;
    line-height: 1 !important;
    flex: 0 0 42px;
    appearance: none;
    -webkit-appearance: none;
}

.cbpp-palestrante-modal__photo {
    align-self: start;
    height: auto;
    background: transparent;
}

.cbpp-palestrante-modal__photo img {
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    .cbpp-palestrante-modal,
    .cbpp-palestrante-modal__backdrop,
    .cbpp-palestrante-modal__dialog {
        transition: none;
    }
}

@media (max-width: 740px) {
    .cbpp-palestrante-modal {
        padding: 18px;
    }
}


/* ============================
   Ajustes v14 - Título da página Palestrantes
============================ */
body.page-template-page-palestrantes,
body.page-template-page-palestrantes-php {
    background: #000;
}

.cbpp-palestrantes-page {
    width: 100%;
    min-height: 100vh;
    padding: 176px 24px 84px;
    background: #000;
    color: #fff;
}

.cbpp-palestrantes-page__header {
    width: min(100%, 980px);
    margin: 0 auto 64px;
    text-align: center;
}

.cbpp-palestrantes-page__title {
    margin: 0;
    color: #fff;
    font-family: var(--fonte-base, inherit);
    font-size: clamp(44px, 5vw, 68px);
    line-height: .95;
    font-weight: 500;
    letter-spacing: -0.03em;
    text-transform: none;
}

.cbpp-palestrantes-page__content {
    width: 100%;
}

@media (max-width: 740px) {
    .cbpp-palestrantes-page {
        padding: 142px 18px 64px;
    }

    .cbpp-palestrantes-page__header {
        margin-bottom: 42px;
    }

    .cbpp-palestrantes-page__title {
        font-size: clamp(40px, 13vw, 56px);
    }
}

/* ============================
   Ajustes v15 - Fundo da página Palestrantes
============================ */
body.page-template-page-palestrantes,
body.page-template-page-palestrantes-php {
    background-color: #000;
}

.cbpp-palestrantes-page {
    background-color: #000;
    background-image: url('https://cbpp.com.br/wp-content/uploads/2026/08/BG-PALESTRANTES.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    padding-bottom: 110px;
}

.cbpp-palestrantes-page__header {
    margin-bottom: 58px;
}

@media (max-width: 980px) {
    .cbpp-palestrantes-page {
        background-position: center top;
        padding-bottom: 90px;
    }
}

@media (max-width: 740px) {
    .cbpp-palestrantes-page {
        background-position: center top;
        padding-bottom: 72px;
    }
}

/* ============================
   Ajustes v16 - Proporção do grid e fundo Palestrantes
============================ */
.palestrantes .alm-listing,
.cbpp-palestrantes .alm-listing,
.ajax-load-more-wrap .alm-listing {
    width: min(var(--largura-site, 1280px), calc(100% - 56px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.cbpp-palestrantes-page {
    background-color: #000;
    background-image:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 54%,
            rgba(0, 0, 0, .58) 78%,
            #000 100%
        ),
        url('https://cbpp.com.br/wp-content/uploads/2026/08/BG-PALESTRANTES.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    padding-bottom: 82px;
}

.cbpp-palestrantes-page__header {
    width: min(var(--largura-site, 1280px), calc(100% - 56px));
    margin-bottom: 52px;
}

@media (max-width: 1160px) {
    .palestrantes .alm-listing,
    .cbpp-palestrantes .alm-listing,
    .ajax-load-more-wrap .alm-listing {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .palestrantes .alm-listing,
    .cbpp-palestrantes .alm-listing,
    .ajax-load-more-wrap .alm-listing {
        width: min(100% - 36px, 680px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .cbpp-palestrantes-page {
        background-size: auto 720px;
        padding-bottom: 70px;
    }
}

@media (max-width: 520px) {
    .palestrantes .alm-listing,
    .cbpp-palestrantes .alm-listing,
    .ajax-load-more-wrap .alm-listing {
        grid-template-columns: 1fr;
        width: min(100% - 32px, 330px);
    }
}

/* ============================
   Ajustes v17 - Fundo Palestrantes atrás do menu
============================ */
body.page-template-page-palestrantes,
body.page-template-page-palestrantes-php {
    background-color: #000 !important;
    background-image:
        linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 48%,
            rgba(0, 0, 0, .55) 76%,
            #000 100%
        ),
        url('https://cbpp.com.br/wp-content/uploads/2026/08/BG-PALESTRANTES.jpg') !important;
    background-repeat: no-repeat !important;
    background-position: center top !important;
    background-size: 100% auto !important;
}

body.page-template-page-palestrantes #page,
body.page-template-page-palestrantes-php #page,
body.page-template-page-palestrantes .site-content,
body.page-template-page-palestrantes-php .site-content,
body.page-template-page-palestrantes .content-area,
body.page-template-page-palestrantes-php .content-area,
body.page-template-page-palestrantes .cbpp-palestrantes-page,
body.page-template-page-palestrantes-php .cbpp-palestrantes-page {
    background: transparent !important;
}

@media (max-width: 860px) {
    body.page-template-page-palestrantes,
    body.page-template-page-palestrantes-php {
        background-size: auto 720px !important;
        background-position: center top !important;
    }
}


/* ============================
   Ajustes v22 - Modal mobile acima do menu
============================ */
.cbpp-palestrante-modal {
    z-index: 2147483000 !important;
}

@media (max-width: 740px) {
    .cbpp-palestrante-modal {
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 12px !important;
        overflow: hidden !important;
    }

    .cbpp-palestrante-modal__dialog {
        width: min(100%, calc(100vw - 24px)) !important;
        max-height: calc(100vh - 24px) !important;
        max-height: calc(100dvh - 24px) !important;
        margin: 0 auto !important;
        border-radius: 16px !important;
    }

    .cbpp-palestrante-modal__bar {
        flex-basis: 58px !important;
        min-height: 58px !important;
    }

    .cbpp-palestrante-modal__close,
    .cbpp-palestrante-modal__close:hover,
    .cbpp-palestrante-modal__close:focus {
        top: 9px !important;
        right: 12px !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        z-index: 2 !important;
    }

    .cbpp-palestrante-modal__body {
        max-height: calc(100vh - 82px) !important;
        max-height: calc(100dvh - 82px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
}
