/* Elementor Speaker Bio Widget — Responsive v1.3.0 */

/* ─── BASE ─────────────────────────────────────── */
.esb-widget {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 36px 40px;
    box-sizing: border-box;
    width: 100%;
}

/* Coluna da foto */
.esb-photo-col {
    flex: 0 0 200px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.esb-photo-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.esb-photo-area {
    width: 100%;
    height: 220px;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.esb-name-badge {
    width: 100%;
}

.esb-photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.esb-content-col {
    flex: 1 1 auto;
    min-width: 0;
}

.esb-headline {
    font-size: 24px;
    line-height: 1.35;
    margin: 0 0 16px;
}

.esb-bio {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.esb-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.esb-bullets li {
    font-size: 14px;
    line-height: 1.8;
    padding-left: 1.4em;
    position: relative;
    margin-bottom: 8px;
}

.esb-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c9a84c;
    font-size: 18px;
    line-height: 1.8;
}

/* Alinhamento center: remove recuo e ponto do bullet */
.esb-content-col[style*="text-align: center"] .esb-bullets li,
.esb-content-col[style*="text-align:center"] .esb-bullets li {
    padding-left: 0;
}
.esb-content-col[style*="text-align: center"] .esb-bullets li::before,
.esb-content-col[style*="text-align:center"] .esb-bullets li::before {
    display: none;
}

/* Alinhamento right */
.esb-content-col[style*="text-align: right"] .esb-bullets li,
.esb-content-col[style*="text-align:right"] .esb-bullets li {
    padding-left: 0;
    padding-right: 1.4em;
}
.esb-content-col[style*="text-align: right"] .esb-bullets li::before,
.esb-content-col[style*="text-align:right"] .esb-bullets li::before {
    left: auto;
    right: 0;
}

/* ─── TABLET (≤ 1024px) ─────────────────────────── */
/*
 * !important necessário: Elementor gera estilos inline de maior especificidade.
 * Os valores aqui são apenas fallbacks caso o usuário não ajuste via painel.
 * Quando o usuário define valores responsive no Elementor, os inline styles
 * são emitidos já com as media queries corretas pelo próprio Elementor.
 */
@media (max-width: 1024px) {
    .esb-widget {
        gap: 28px !important;
        padding: 28px !important;
    }

    .esb-photo-col {
        flex: 0 0 170px !important;
        max-width: 170px !important;
    }

    .esb-photo-area {
        height: 190px !important;
    }

    .esb-headline {
        font-size: 21px;
    }
}

/* ─── MOBILE (≤ 767px) ──────────────────────────── */
@media (max-width: 767px) {

    /* Layout: empilha verticalmente — !important sobrepõe o inline do Elementor */
    .esb-widget {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 22px 18px !important;
        align-items: stretch !important;
    }

    /* Coluna da foto: ocupa largura total */
    .esb-photo-col {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: stretch !important;
        margin-bottom: 20px;
    }

    /* Foto e badge: largura total */
    .esb-photo-wrap,
    .esb-photo-area,
    .esb-name-badge {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Altura automática no mobile — aspect-ratio de retrato com foto, paisagem sem */
    .esb-photo-area {
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .esb-photo-area:has(img) {
        aspect-ratio: 3 / 4;
    }

    /* Badge sempre alinhado à esquerda no mobile por padrão */
    .esb-name-badge {
        text-align: left;
    }

    .esb-headline {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .esb-bio,
    .esb-bullets li {
        font-size: 15px;
    }

    /* Bullets: centralizado quando conteúdo é central */
    .esb-content-col[style*="text-align: center"] .esb-bullets,
    .esb-content-col[style*="text-align:center"] .esb-bullets {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* ─── MOBILE PEQUENO (≤ 480px) ─────────────────── */
@media (max-width: 480px) {
    .esb-widget {
        padding: 18px 14px !important;
    }

    .esb-headline {
        font-size: 18px;
    }

    .esb-bio,
    .esb-bullets li {
        font-size: 14px;
    }
}

/* ─── MODO CARD COMPACTO ────────────────────────── */
/*
 * .esb-widget--card: exibe apenas a foto + badge.
 * O layout força coluna + sem gap para que foto e badge fiquem colados.
 * O padding do widget é mantido pelo Elementor; apenas desligamos o flex row.
 */
.esb-widget--card {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    /* Centraliza o card na célula do Elementor */
    align-items: center;
}

/* No modo card a coluna da foto ocupa toda a largura disponível */
.esb-widget--card .esb-photo-col {
    flex: none !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
}

.esb-widget--card .esb-photo-wrap,
.esb-widget--card .esb-photo-area,
.esb-widget--card .esb-name-badge {
    width: 100% !important;
    max-width: 100% !important;
}

/* Foto em proporção de retrato no card */
.esb-widget--card .esb-photo-area {
    height: auto !important;
    aspect-ratio: 3 / 4;
}

.esb-widget--card .esb-photo-area:not(:has(img)) {
    aspect-ratio: 1 / 1;
}

/* Badge centralizado no card */
.esb-widget--card .esb-name-badge {
    text-align: center;
    border-radius: 0 0 10px 10px;
}
