/* Sticky fica no .site-top (home.css) — bloco logo+menu e uma imagem de fundo contínua */
.site-top .site-header {
    border-bottom: none;
    margin-bottom: 0;
}

.site-top .menu-strip {
    margin-top: 0;
    border-top: none;
}

/*
 * Respiro vertical igual: mesma distância imagem↔cabeçalho e imagem↔rodapé (--sobre-imagem-respiro-y).
 */
.sobre-main {
    --sobre-imagem-respiro-y: clamp(1.25rem, 4vh, 2.5rem);
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #1b303f;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    padding-top: var(--sobre-imagem-respiro-y);
    padding-right: 1rem;
    padding-bottom: var(--sobre-imagem-respiro-y);
    padding-left: 1rem;
    overflow-x: hidden;
}

.sobre-main__stack {
    position: relative;
    width: 100%;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-shrink: 0;
}

.sobre-main__bg {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #1b303f;
}

.sobre-main__bg-img {
    display: block;
    width: 600px;
    max-width: 100%;
    height: auto;
}

.sobre-content {
    position: absolute;
    left: 50%;
    bottom: clamp(0.65rem, 2.2vw, 1.35rem);
    transform: translateX(-50%);
    z-index: 2;
    width: calc(100% - 1.25rem);
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: clamp(0.85rem, 2.5vw, 1.35rem);
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
}

/* Caixa de mensagem no topo da imagem (espelha a de baixo): logo + slogan */
.sobre-content--top {
    top: clamp(0.4rem, 1.65vw, 1.05rem);
    bottom: auto;
    text-align: center;
    padding-top: clamp(0.55rem, 2vw, 1.05rem);
}

.sobre-content-top__logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
    border-radius: 4px;
    outline-offset: 3px;
}

.sobre-content-top__logo-link:focus-visible {
    outline: 2px solid rgba(129, 199, 132, 0.9);
}

.sobre-content-top__logo {
    display: block;
    height: clamp(36px, 8.4vw, 48px);
    width: auto;
    max-width: min(260px, 86vw);
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.55));
}

.sobre-content-top__tagline {
    margin: 0.4rem 0 0;
    font-size: clamp(0.8rem, 2.05vw, 0.98rem);
    font-weight: bold;
    font-style: italic;
    line-height: 1.45;
    color: #fff;
    text-shadow:
        0 0 18px rgba(0, 0, 0, 0.92),
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 2px 14px rgba(0, 0, 0, 0.75);
}

.sobre-content p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: bold;
    line-height: 1.65;
    color: #fff;
    text-shadow:
        0 0 18px rgba(0, 0, 0, 0.92),
        0 1px 3px rgba(0, 0, 0, 0.95),
        0 2px 14px rgba(0, 0, 0, 0.75);
}

.site-footer {
    margin-top: 0;
    margin-bottom: 0;
}

body.page-sobre .site-footer {
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
}

body.page-sobre .header-tagline-block,
body.page-sobre .header-tagline-row,
body.page-sobre .header-tagline-text {
    display: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    visibility: hidden !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

body.page-sobre .header-tagline-glow,
body.page-sobre .header-tagline-line,
body.page-sobre .header-tagline-core,
body.page-sobre .header-tagline-chain {
    display: none !important;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .sobre-main {
        --sobre-imagem-respiro-y: clamp(1.15rem, 3.8vh, 2.35rem);
        padding-top: var(--sobre-imagem-respiro-y);
        padding-bottom: var(--sobre-imagem-respiro-y);
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .sobre-content {
        width: calc(100% - 1rem);
        padding: clamp(0.75rem, 2.2vw, 1.15rem);
    }

    .sobre-content--top {
        top: clamp(0.3rem, 1.45vw, 0.85rem);
        width: calc(100% - 1rem);
        padding: clamp(0.75rem, 2.2vw, 1.15rem);
        padding-top: clamp(0.5rem, 1.85vw, 0.95rem);
    }
}

@media (max-width: 767px) {
    /* Largura total, imagem inteira (sem crop); main em flex empurra o rodapé para baixo do viewport */
    body.page-sobre main.sobre-main {
        flex: 1 1 auto;
        min-height: 0;
        align-self: stretch;
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .sobre-main {
        --sobre-imagem-respiro-y: 0;
        align-items: stretch;
        padding: clamp(0.4rem, 1.5vh, 0.85rem) 0 clamp(1.35rem, 4.5vh, 2.75rem);
    }

    .sobre-main__stack {
        flex: 0 1 auto;
        width: 100%;
        max-width: none;
        display: flex;
        flex-direction: column;
    }

    .sobre-main__bg {
        flex: 0 1 auto;
        width: 100%;
        position: relative;
        overflow: visible;
    }

    .sobre-main__bg-img {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        max-width: none;
        object-fit: contain;
        object-position: center top;
    }

    .sobre-content {
        width: calc(100% - 0.75rem);
        bottom: clamp(0.5rem, 2vw, 1rem);
        padding: clamp(0.65rem, 2vw, 1rem);
    }

    .sobre-content--top {
        top: clamp(0.28rem, 1.5vw, 0.75rem);
        width: calc(100% - 0.75rem);
        padding: clamp(0.65rem, 2vw, 1rem);
        padding-top: clamp(0.45rem, 1.65vw, 0.85rem);
    }

    .sobre-content p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .sobre-content-top__tagline {
        font-size: 0.76rem;
        line-height: 1.42;
    }

    .sobre-content-top__logo {
        height: clamp(30px, 7vw, 42px);
        max-width: min(220px, 80vw);
    }
}
