/* =========================================================
   Nova Vita — Seção Frase de Impacto (Sobre)
   Prefixo: .nv-impacto
   ========================================================= */

.nv-impacto {
    position: relative;
    width: 100%;
    min-height: 820px;
    overflow: hidden;
    isolation: isolate;
}

.nv-impacto__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.nv-impacto__image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    transform-origin: center;
}

.nv-impacto__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    /* Fallback caso o CMS não envie estilo inline */
    background-color: #141813;
    opacity: 0.48;
}

.nv-impacto__inner {
    position: relative;
    z-index: 2;
    width: min(1600px, calc(100% - 100px));
    min-height: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 0 90px;
    box-sizing: border-box;
}

.nv-impacto__content {
    width: min(1080px, 86%);
    margin: 0 auto;
    text-align: center;
    transform: translateY(-6vh);
}

.nv-impacto__top-line {
    display: block;
    width: 1px;
    height: 64px;
    margin: 0 auto 28px;
    background: rgba(246, 243, 236, 0.55);
}

.nv-impacto__label {
    margin-bottom: 60px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(246, 243, 236, 0.88);
    line-height: 1.2;
}

.nv-impacto__quote {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0;
    border: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(52px, 4.5vw, 76px);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -1px;
    color: #f6f3ec;
    quotes: none;
    text-shadow: 0 1px 18px rgba(20, 22, 16, 0.22);
}

.nv-impacto__brand {
    margin-top: 44px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 7px;
    text-transform: uppercase;
    color: rgba(246, 243, 236, 0.92);
}

.nv-impacto__brand-line {
    display: block;
    width: 52px;
    height: 1px;
    margin: 20px auto 0;
    background: rgba(246, 243, 236, 0.55);
}

/* ---------- Rodapé esquerdo ---------- */
.nv-impacto__footer-left {
    position: absolute;
    left: 0;
    bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(20, 22, 16, 0.25);
}

.nv-impacto__footer-left p {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: 10px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nv-impacto__footer-line {
    display: block;
    width: 70px;
    height: 1px;
    margin-top: 7px;
    flex: 0 0 auto;
    background: currentColor;
}

/* ---------- Rodapé direito ---------- */
.nv-impacto__footer-right {
    position: absolute;
    right: 0;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 25px;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(20, 22, 16, 0.25);
}

.nv-impacto__footer-right p {
    margin: 0;
    font-family: Inter, system-ui, sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.nv-impacto__footer-right .nv-impacto__footer-line {
    margin-top: 0;
}

/* ---------- Entrada (só com JS; sem JS o texto fica sempre visível) ---------- */
.js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__image {
    transform: scale(1.03);
}

.js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__label,
.js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__quote,
.js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__brand,
.js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__brand-line {
    opacity: 0;
    transform: translateY(18px);
}

.nv-impacto__label,
.nv-impacto__quote,
.nv-impacto__brand,
.nv-impacto__brand-line {
    opacity: 1;
    transition:
        opacity 0.95s ease,
        transform 0.95s ease;
}

.nv-impacto__image {
    transition: transform 1.4s ease;
}

.nv-impacto__brand-line {
    transform-origin: center;
}

.js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__brand-line {
    transform: translateY(18px) scaleX(0.6);
}

.nv-impacto--visible .nv-impacto__image {
    transform: scale(1);
}

.nv-impacto--visible .nv-impacto__label,
.nv-impacto--visible .nv-impacto__quote,
.nv-impacto--visible .nv-impacto__brand,
.nv-impacto--visible .nv-impacto__brand-line {
    opacity: 1;
    transform: none;
}

.nv-impacto--visible .nv-impacto__quote {
    transition-delay: 0.12s;
}

.nv-impacto--visible .nv-impacto__brand,
.nv-impacto--visible .nv-impacto__brand-line {
    transition-delay: 0.24s;
}

@media (prefers-reduced-motion: reduce) {
    .js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__image,
    .js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__label,
    .js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__quote,
    .js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__brand,
    .js .nv-impacto:not(.nv-impacto--visible) .nv-impacto__brand-line,
    .nv-impacto__image,
    .nv-impacto__label,
    .nv-impacto__quote,
    .nv-impacto__brand,
    .nv-impacto__brand-line {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
    .nv-impacto,
    .nv-impacto__inner {
        min-height: 720px;
    }

    .nv-impacto__inner {
        width: calc(100% - 60px);
        padding-top: 65px;
    }

    .nv-impacto__content {
        width: 90%;
    }

    .nv-impacto__label {
        margin-bottom: 45px;
    }

    .nv-impacto__quote {
        font-size: clamp(44px, 5vw, 60px);
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
    .nv-impacto,
    .nv-impacto__inner {
        min-height: 650px;
    }

    .nv-impacto__inner {
        width: 100%;
        padding: 50px 22px 35px;
    }

    .nv-impacto__content {
        width: 100%;
    }

    .nv-impacto__top-line {
        height: 45px;
        margin-bottom: 22px;
    }

    .nv-impacto__label {
        margin-bottom: 38px;
        font-size: 10px;
        letter-spacing: 4px;
    }

    .nv-impacto__quote {
        font-size: clamp(36px, 10vw, 48px);
        line-height: 1.12;
        letter-spacing: -0.6px;
    }

    .nv-impacto__brand {
        margin-top: 34px;
        font-size: 23px;
        letter-spacing: 5px;
    }

    .nv-impacto__footer-left {
        left: 22px;
        bottom: 25px;
        gap: 14px;
    }

    .nv-impacto__footer-left .nv-impacto__footer-line {
        width: 35px;
    }

    .nv-impacto__footer-left p {
        font-size: 8px;
        letter-spacing: 2.5px;
    }

    .nv-impacto__footer-right {
        right: 22px;
        bottom: 25px;
    }

    .nv-impacto__footer-right p {
        display: none;
    }

    .nv-impacto__footer-right .nv-impacto__footer-line {
        width: 38px;
    }
}

@media (max-width: 420px) {
    .nv-impacto,
    .nv-impacto__inner {
        min-height: 610px;
    }

    .nv-impacto__quote {
        font-size: 34px;
    }

    .nv-impacto__footer-left p {
        max-width: 190px;
    }
}
