/**
 * Page Full - Sobre (About) Section Styles
 * Visual moderno, responsivo e de alta conversão para destaque institucional / Sobre Nós.
 */

/* Prevenir rolagem horizontal e definir fundo contínuo na página dedicada */
body.sf-about-page-active {
    overflow-x: hidden;
}

/* Reset total de espaçamento e restrições de largura do tema na página sobre */
body.sf-about-page-active .entry-content,
body.sf-about-page-active .wp-block-post-content,
body.sf-about-page-active main,
body.sf-about-page-active .wp-site-blocks,
body.sf-about-page-active article,
body.sf-about-page-active .wp-block-group {
    max-width: 100% !important;
    width: 100% !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0 !important;
}

/* Remover espaço superior do rodapé quando na página sobre */
body.sf-about-page-active .sf-footer,
.sf-about-section + .sf-footer,
.sf-about-section ~ .sf-footer {
    margin-top: 0 !important;
}

/* Ocultar títulos, cabeçalhos e rodapés nativos do tema na página sobre */
body.sf-about-page-active .wp-block-post-title,
body.sf-about-page-active .entry-title,
body.sf-about-page-active .page-title,
body.sf-about-page-active header.entry-header,
body.sf-about-page-active .entry-header,
body.sf-about-page-active h1.single-title,
body.sf-about-page-active .wp-block-query-title,
body.sf-about-page-active footer.wp-block-template-part,
body.sf-about-page-active .wp-block-template-part-footer,
body.sf-about-page-active footer.site-footer,
body.sf-about-page-active .site-footer,
body.sf-about-page-active footer.wp-block-group {
    display: none !important;
}

.sf-about-section {
    width: 100%;
    max-width: 100%;
    margin: 0;
    position: relative;
    padding: 85px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    color: #ffffff;
    box-sizing: border-box;
}

.sf-about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.sf-about-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Header centralizado para Etiqueta de Destaque (Badge) no Topo */
.sf-about-header {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 38px;
}

.sf-about-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 7px 22px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #f8fafc;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.sf-about-badge:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.sf-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}

/* Posições da Foto Lateral (Esquerda / Direita) */
.sf-about-grid--img-left .sf-about-media {
    order: 1;
}

.sf-about-grid--img-left .sf-about-content {
    order: 2;
}

.sf-about-grid--img-right .sf-about-media {
    order: 2;
}

.sf-about-grid--img-right .sf-about-content {
    order: 1;
}

/* Coluna de Mídia (Foto Lateral) */
.sf-about-media {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

/* Coluna de Conteúdo (Textos e Botão) */
.sf-about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    order: 2;
}

.sf-about-title {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0 0 22px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.sf-about-description {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 32px 0;
    max-width: 620px;
    opacity: 0.95;
}

.sf-about-description p {
    margin: 0 0 14px 0;
}

.sf-about-description p:last-child {
    margin-bottom: 0;
}

/* Ações e Botão CTA */
.sf-about-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.sf-about-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    line-height: 1.3;
    border: 2px solid transparent;
}

.sf-about-btn .dashicons,
.sf-about-btn i {
    font-size: 18px;
    width: auto;
    height: auto;
    line-height: 1;
    flex-shrink: 0;
}

.sf-about-btn--primary {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.sf-about-btn--primary:hover {
    filter: brightness(1.12);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.sf-about-btn--primary .sf-about-btn-arrow {
    transition: transform 0.25s ease;
}

.sf-about-btn--primary:hover .sf-about-btn-arrow {
    transform: translateX(5px);
}

/* Coluna de Mídia / Imagem Lateral */
.sf-about-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sf-about-media-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.sf-about-image-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.15);
    background: #0f172a;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.sf-about-image-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.5);
}

.sf-about-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}

.sf-about-image-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 18px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Fallback Card quando não há imagem */
.sf-about-fallback-card {
    position: relative;
    width: 100%;
    min-height: 320px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.sf-about-fallback-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sf-about-fallback-icon {
    font-size: 56px;
    width: 56px;
    height: 56px;
    color: #38bdf8;
}

.sf-about-fallback-inner h4 {
    font-size: 19px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.35;
}

.sf-about-fallback-badge {
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid #38bdf8;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 6px;
    letter-spacing: 0.8px;
}

/* Responsividade */
@media (max-width: 991px) {
    .sf-about-grid,
    .sf-about-grid--img-left,
    .sf-about-grid--img-right {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .sf-about-grid .sf-about-media,
    .sf-about-grid--img-left .sf-about-media,
    .sf-about-grid--img-right .sf-about-media {
        order: 1;
    }

    .sf-about-grid .sf-about-content,
    .sf-about-grid--img-left .sf-about-content,
    .sf-about-grid--img-right .sf-about-content {
        order: 2;
    }

    .sf-about-content {
        align-items: center;
        text-align: center;
    }

    .sf-about-actions {
        justify-content: center;
    }

    .sf-about-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .sf-about-section {
        padding: 55px 16px;
    }

    .sf-about-title {
        font-size: 26px;
    }

    .sf-about-description {
        font-size: 15px;
    }

    .sf-about-actions {
        width: 100%;
    }

    .sf-about-btn {
        width: 100%;
        box-sizing: border-box;
    }
}
