/* ===== Post Advantages Block ===== */

/* Garante a fonte do tema mesmo em templates isolados (evita cair em monospace) */
.post-advantages,
.post-advantages *,
.post-faq,
.post-faq *,
.post-banner,
.post-banner *,
.choice-cta,
.choice-cta *,
.choice-cta__sticky,
.choice-cta__sticky * {
    font-family: var(--font-primary, "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
}

.post-advantages {
    background: #fff;
}

.post-advantages__title,
.post-advantages .post-advantages__title {
    font-size: 26px !important;
    font-weight: 700;
    margin: 0 0 1.25rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-advantages__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-advantages__list li {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.post-advantages__list li::before {
    display: none;
    content: none;
}

.post-advantages__item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px 18px;
}

.post-advantages__icon {
    flex-shrink: 0;
    line-height: 0;
}

.post-advantages__text {
    font-size: 15px;
    line-height: 1.5;
    color: #1a1a1a;
}

/* ===== Post FAQ Block [duvidas] ===== */

.post-faq {
    margin: 0;
}

.post-faq .post-faq__title {
    font-size: 26px !important;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem !important;
    line-height: 1.3;
}

/* FAQ — lista minimalista com divisórias e ícone +/− */
.post-faq__list {
    display: block;
    padding: 0;
    border-top: 1px solid #e5e7eb;
}

.post-faq__item {
    background: none;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.post-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.3rem 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: left;
    gap: 1.5rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-faq__question:hover,
.post-faq__item--open .post-faq__question {
    color: var(--color-primary-base, #2c3e50);
}

/* Ícone +/− desenhado em CSS (substitui o chevron) */
.post-faq__toggle {
    position: relative;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    line-height: 0;
}

.post-faq__toggle svg {
    display: none;
}

.post-faq__toggle::before,
.post-faq__toggle::after {
    content: "";
    position: absolute;
    background: currentColor;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.post-faq__toggle::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.post-faq__toggle::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
}

.post-faq__item--open .post-faq__toggle::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

.post-faq__answer {
    display: none;
    padding: 0 0.25rem 1.4rem;
}

.post-faq__item--open .post-faq__answer {
    display: block;
}

.post-faq__answer p {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.7;
    color: #555;
}

/* ===== Post Searches Block [pesquisas] ===== */

.post-searches {
    margin: 0;
}

.post-searches .post-searches__title {
    font-size: 22px !important;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1.25rem !important;
    line-height: 1.3;
}

.post-searches__grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem;
}

.post-searches__item,
.post-searches .post-searches__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f5f5f5;
    border-radius: 12px;
    text-decoration: none !important;
    color: #1a1a1a !important;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s ease;
    margin-top: 0 !important;
}

.post-searches .post-searches__item:hover {
    background: #eee;
    color: #1a1a1a !important;
}

.post-searches__label {
    flex: 1;
}

.post-searches__icon {
    flex-shrink: 0;
    line-height: 0;
    margin-left: 0.75rem;
}

@media (max-width: 768px) {
    .post-searches__grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Responsivo Mobile - Todos os Blocos ===== */
@media (max-width: 768px) {
    .post-advantages .post-advantages__title {
        font-size: 22px !important;
    }

    .post-advantages__text {
        font-size: 13px;
    }

    .post-advantages__item {
        padding: 12px 14px;
    }

    .post-advantages .post-advantages__list {
        grid-template-columns: 1fr;
        column-gap: 0;
    }

    .post-faq .post-faq__title {
        font-size: 20px !important;
    }

    .post-faq__question {
        font-size: 15px;
        padding: 1.1rem 0.15rem;
        gap: 1rem;
    }

    .post-faq__answer {
        padding: 0 0.15rem 1.1rem;
    }

    .post-faq__answer p {
        font-size: 13px !important;
    }

    .post-searches .post-searches__title {
        font-size: 18px !important;
    }

    .post-searches__item,
    .post-searches .post-searches__item {
        padding: 12px 14px;
        font-size: 13px;
    }
}

/* ===== Description Block [description] ===== */

.post-description {
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
}

.post-description__text {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #888 !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
}

/* ===== Banner CTA Block [banner] ===== */

.post-banner *,
.post-banner *::before,
.post-banner *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.post-banner {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.post-banner__body {
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: center;
}

.post-banner__image {
    width: 100%;
    margin-left: 20px;
    padding-right: 20px;
}

.post-banner__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

.post-banner__content {
    padding: 26px 28px 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
}

.post-banner__label {
    font-size: 10px !important;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #6b7280;
    text-transform: uppercase;
}

.post-banner__title {
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.35 !important;
    color: #111827;
    margin: 0 !important;
    max-width: 640px;
}

.post-banner__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.post-banner__title a:hover {
    text-decoration: underline !important;
}

.post-banner .post-banner__btn,
.post-banner .post-banner__btn:visited {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 28px;
    min-width: 260px;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.25s ease;
}

.post-banner .post-banner__btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

.post-banner .post-banner__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    transition: transform 0.25s ease;
}

.post-banner .post-banner__btn:hover svg {
    transform: translateX(6px);
}

.post-banner__subtitle {
    margin-top: 4px !important;
    font-size: 12px !important;
    line-height: 1.35;
    color: #6b7280;
    text-align: left;
    max-width: 520px;
}

@media (max-width: 768px) {
    .post-banner__body {
        grid-template-columns: 1fr;
    }

    .post-banner__image {
        margin: 20px 0 0 20px;
        width: auto;
        padding-right: 20px;
    }

    .post-banner__content {
        padding: 16px 18px 20px;
        text-align: left;
        align-items: flex-start;
    }

    .post-banner__title {
        font-size: 20px !important;
    }

    .post-banner .post-banner__btn {
        width: 100%;
        min-width: 0;
        font-size: 15px;
        padding: 14px 22px;
    }

    .post-banner__subtitle {
        max-width: 100%;
    }
}
/* ============================================================
   Visual CLEAN — alinhado ao tema (sobrepõe o estilo "funil")
   ============================================================ */

/* Botão do banner na cor primária do tema (ignora a cor inline do metabox) */
.post-banner .post-banner__btn,
.post-banner .post-banner__btn:visited {
    background: var(--color-primary-base, #2c3e50) !important;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--color-primary-base, #2c3e50) 22%, transparent);
}
.post-banner .post-banner__btn:hover {
    background: color-mix(in srgb, var(--color-primary-base, #2c3e50) 88%, #000) !important;
    opacity: 1 !important;
}

/* Vantagens: lista minimalista (sem caixas) — 2 colunas, divisória fina + ícone na cor do tema */
.post-advantages__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
    row-gap: 0;
    border-top: 1px solid #ececf0;
}
.post-advantages__item {
    background: none;
    border: 0;
    border-bottom: 1px solid #ececf0;
    border-radius: 0;
    padding: 1rem 0.25rem;
}
/* Anula o recuo/marcador genérico de lista do .entry-content nesta lista (post e página) */
.entry-content ul.post-advantages__list li.post-advantages__item {
    padding-left: 0.25rem;
}
.entry-content ul.post-advantages__list li.post-advantages__item--link {
    padding-left: 0;
}
.entry-content ul.post-advantages__list li::before {
    display: none;
    content: none;
}
.post-advantages__icon svg { width: 24px; height: 24px; }
.post-advantages__icon svg circle { fill: var(--color-primary-base, #2c3e50); }

/* Ícone numerado (1, 2, 3...) no lugar do check */
.post-advantages__num {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary-base, #2c3e50);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    font-feature-settings: "tnum";
}

/* Vantagens com link: linha inteira clicável + seta na cor do tema */
.post-advantages__item--link {
    padding: 0;
}
.post-advantages__link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 1rem 0.25rem;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.2s ease;
}
.post-advantages__text {
    flex: 1;
}
.post-advantages__arrow {
    flex-shrink: 0;
    line-height: 0;
    margin-left: auto;
    color: var(--color-primary-base, #2c3e50);
    transition: transform 0.2s ease;
}
.post-advantages__link:hover {
    color: var(--color-primary-base, #2c3e50);
}
.post-advantages__link:hover .post-advantages__arrow {
    transform: translateX(3px);
}

/* Banner: card mais clean */
.post-banner {
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   Bloco: Escolha de Opções [escolha-opcoes] + barra fixa
   ============================================================ */
.choice-cta {
    background: var(--choice-bg, #f1f3f5);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    margin: 2rem 0;
}
.choice-cta__title {
    font-size: 19px !important;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 1.1rem !important;
    line-height: 1.3;
}
.choice-cta__title-icon {
    color: var(--color-primary-base, #2c3e50);
}
.choice-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.choice-cta .choice-cta__btn,
.choice-cta .choice-cta__btn:visited,
.choice-cta__sticky .choice-cta__btn,
.choice-cta__sticky .choice-cta__btn:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 1.05rem 1.25rem;
    border-radius: 12px;
    background: var(--btn, var(--color-primary-base, #2c3e50));
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--btn, #000) 28%, transparent);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.choice-cta .choice-cta__btn:hover,
.choice-cta__sticky .choice-cta__btn:hover {
    filter: brightness(0.94);
    transform: translateY(-1px);
    color: #fff !important;
}
.choice-cta__btn:active {
    transform: translateY(0);
}
.choice-cta__note {
    font-size: 12px !important;
    color: #8a9098;
    font-style: italic;
    margin: 1rem 0 0 !important;
}

/* Barra fixa no rodapé (aparece quando a seção sai da tela) */
.choice-cta__sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    background: var(--choice-bg, #f1f3f5);
    backdrop-filter: saturate(180%) blur(8px);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(115%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.choice-cta__sticky.is-visible {
    transform: translateY(0);
    pointer-events: auto;
}
.choice-cta__sticky-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
/* Barra fixa: mesmo layout da seção — empilhado, com título e nota */
.choice-cta__sticky .choice-cta__buttons {
    flex-direction: column;
    gap: 0.5rem;
}
.choice-cta__sticky .choice-cta__title {
    font-size: 15px !important;
    margin: 0 0 0.6rem !important;
}
.choice-cta__sticky .choice-cta__btn {
    padding: 0.85rem 1rem;
    font-size: 14px;
}
.choice-cta__sticky .choice-cta__note {
    margin: 0.55rem 0 0 !important;
}

@media (max-width: 768px) {
    .choice-cta__title {
        font-size: 17px !important;
    }
    .choice-cta__sticky .choice-cta__title {
        font-size: 14px !important;
        margin-bottom: 0.5rem !important;
    }
    .choice-cta__sticky .choice-cta__btn {
        padding: 0.8rem 1rem;
        font-size: 13px;
    }
}
