/* =============================================================================
   Novidades (/novidades) — página "o que mudou" mostrada a quem ainda não viu a
   versão actual. Carregada no App.razor. Prefixo nv- para não colidir com MudBlazor.
   ============================================================================= */

.nv {
    --nv-red: #e4002b;
    --nv-red-dark: #9b0b22;
    --nv-ink: #111827;
    --nv-muted: #64748b;
    --nv-line: #e5e9ef;
    --nv-bg: #f4f6f8;
    --nv-card: #ffffff;
    --nv-radius: 18px;
    --nv-shadow: 0 18px 44px rgba(17, 24, 39, .10);
    margin: -5rem -1rem -1rem;              /* anula o padding do .edocs-main: página full-bleed */
    padding-top: 4rem;                      /* fica por baixo da AppBar */
    background: var(--nv-bg);
    color: var(--nv-ink);
    font-family: Roboto, "Segoe UI", sans-serif;
    min-height: 100vh;
}

.nv *, .nv *::before, .nv *::after { box-sizing: border-box; }
.nv h1, .nv h2, .nv h3, .nv p, .nv ul { margin: 0; }
.nv ul { padding: 0; list-style: none; }
.nv button { font: inherit; cursor: pointer; }
.nv img { display: block; max-width: 100%; }

.nv-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ---------- animação de entrada ---------- */

.nv-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.nv-reveal.in-view { opacity: 1; transform: none; }
.nv-reveal[data-delay="1"] { transition-delay: .12s; }
.nv-reveal[data-delay="2"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    .nv-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- hero ---------- */

.nv-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(118deg, var(--nv-red) 0%, #a30d27 42%, #0f141d 100%);
}
.nv-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(60% 80% at 85% 20%, rgba(255, 255, 255, .14), transparent 60%),
        radial-gradient(40% 60% at 10% 90%, rgba(0, 164, 73, .18), transparent 60%);
    pointer-events: none;
}
.nv-hero .nv-wrap {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding-top: clamp(40px, 7vw, 88px);
    padding-bottom: clamp(72px, 8vw, 116px);
}

.nv-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 9px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.nv-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .22); }
.nv-kicker b { font-weight: 800; }

.nv-hero h1 {
    margin-top: 22px;
    font-size: clamp(2.1rem, 4.6vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    font-weight: 800;
}
.nv-hero h1 span { color: rgba(255, 255, 255, .62); }
.nv-hero .nv-lead { margin-top: 18px; max-width: 54ch; color: rgba(255, 255, 255, .84); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.6; }

.nv-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: .84rem; color: rgba(255, 255, 255, .78); }
.nv-meta span { display: inline-flex; align-items: center; gap: 7px; }
.nv-meta .mud-icon-root { font-size: 18px; opacity: .9; }

.nv-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nv-btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700; font-size: .92rem;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.nv-btn .mud-icon-root { font-size: 20px; }
.nv-btn:hover { transform: translateY(-1px); }
.nv-btn:disabled { opacity: .6; cursor: default; transform: none; }
.nv-btn-primary { color: var(--nv-red-dark); background: #fff; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
.nv-btn-primary:hover { box-shadow: 0 18px 36px rgba(0, 0, 0, .34); }
.nv-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .34); background: rgba(255, 255, 255, .06); }
.nv-btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.nv-btn-red { color: #fff; background: var(--nv-red); box-shadow: 0 12px 28px rgba(228, 0, 43, .28); }
.nv-btn-red:hover { background: #c70026; }
.nv-btn-outline { color: var(--nv-ink); border-color: #d5dae1; background: #fff; }
.nv-btn-outline:hover { border-color: #aab3c0; }

/* pilha de capturas no hero */
.nv-stack { position: relative; aspect-ratio: 16 / 11; min-height: 260px; }
.nv-stack figure {
    position: absolute; margin: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: #0f141d;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
    transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.nv-stack figure img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nv-stack figure:nth-child(1) { inset: 12% 0 0 14%; transform: rotate(2.5deg); z-index: 3; }
.nv-stack figure:nth-child(2) { inset: 4% 12% 12% 4%; transform: rotate(-3deg); z-index: 2; opacity: .92; }
.nv-stack figure:nth-child(3) { inset: 0 22% 24% 0; transform: rotate(-7deg); z-index: 1; opacity: .7; }
.nv-stack:hover figure:nth-child(1) { transform: rotate(0deg) translateY(-6px); }
.nv-stack:hover figure:nth-child(2) { transform: rotate(-5deg); }
.nv-stack figcaption {
    position: absolute; left: 12px; bottom: 10px;
    padding: 5px 10px; border-radius: 8px;
    background: rgba(15, 20, 29, .78); color: #fff;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em;
}

/* ---------- indicador "há mais abaixo" ---------- */

.nv-cue {
    position: absolute;
    left: 50%; bottom: 14px;
    z-index: 2;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 8px 18px 6px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    transform: translateX(-50%);
    transition: opacity .4s, visibility .4s, transform .4s, background .2s;
}
.nv-cue:hover { background: rgba(255, 255, 255, .2); }
.nv-cue .mud-icon-root { font-size: 22px; animation: nv-bob 1.6s ease-in-out infinite; }

@keyframes nv-bob {
    0%, 100% { transform: translateY(0); opacity: .75; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* Some assim que a pessoa começa a descer (classe posta pelo novidades.js). */
body.nv-scrolled .nv-cue { opacity: 0; visibility: hidden; transform: translate(-50%, 12px); }

@media (prefers-reduced-motion: reduce) {
    .nv-cue .mud-icon-root { animation: none; }
}

/* Faixa que deixa ver que o conteúdo continua para lá do hero. */
.nv-hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, rgba(15, 20, 29, .35));
    pointer-events: none;
}

/* ---------- barra de capítulos (sticky) ---------- */

.nv-nav {
    position: sticky; top: 64px; z-index: 5;
    background: rgba(244, 246, 248, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--nv-line);
}
.nv-nav .nv-wrap { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.nv-nav .nv-wrap::-webkit-scrollbar { display: none; }
.nv-chip {
    flex: none;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 8px;
    border: 1px solid var(--nv-line); border-radius: 999px;
    background: #fff; color: #3a4556;
    font-size: .78rem; font-weight: 600; white-space: nowrap;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.nv-chip b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #eef1f5; color: var(--nv-muted); font-size: .66rem; font-weight: 800; }
.nv-chip:hover { border-color: var(--nv-red); color: var(--nv-red); box-shadow: 0 6px 16px rgba(228, 0, 43, .10); }
.nv-chip.new b { background: var(--nv-red); color: #fff; }

/* ---------- secções ---------- */

.nv-section { padding: clamp(44px, 6vw, 84px) 0 0; }
.nv-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(22px, 3vw, 38px); }
.nv-label { display: inline-flex; align-items: center; gap: 8px; color: var(--nv-red); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nv-label::before { content: ""; width: 22px; height: 2px; background: var(--nv-red); }
.nv-section-head h2 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); letter-spacing: -.03em; font-weight: 800; }
.nv-count { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--nv-line); color: var(--nv-muted); font-size: .8rem; font-weight: 700; }

/* ---------- capítulo em destaque ---------- */

.nv-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 56px);
    align-items: center;
    padding: clamp(18px, 2.4vw, 28px);
    margin-bottom: clamp(18px, 2.4vw, 28px);
    border-radius: var(--nv-radius);
    background: var(--nv-card);
    border: 1px solid var(--nv-line);
    box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
    scroll-margin-top: 130px;
    transition: box-shadow .3s, transform .3s;
}
.nv-feature:hover { box-shadow: var(--nv-shadow); transform: translateY(-2px); }
.nv-feature.alt .nv-media { order: 2; }

.nv-media { position: relative; overflow: hidden; border-radius: 12px; background: #0f141d; border: 1px solid #e1e5eb; }
.nv-media img { width: 100%; height: auto; }
.nv-annotations { position: absolute; inset: 0; pointer-events: none; }
.nv-annotations svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nv-annotations .box { fill: rgba(228, 0, 43, .08); stroke: #ff3b5c; stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.nv-annotations .arrow { fill: none; stroke: #ff3b5c; stroke-width: 2; vector-effect: non-scaling-stroke; }
.nv-annotations marker path { fill: #ff3b5c; }
.nv-annotations .tag {
    position: absolute; max-width: 44%;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .85); border-radius: 8px;
    color: #fff; background: rgba(180, 18, 47, .92);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
    font-size: clamp(.6rem, .85vw, .74rem); font-weight: 700; line-height: 1.25; text-align: center;
    transform: translate(-50%, -50%);
}

.nv-copy { min-width: 0; }
.nv-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--nv-red); color: #fff; font-weight: 800; font-size: .86rem; box-shadow: 0 8px 20px rgba(228, 0, 43, .28); }
.nv-date { display: block; margin-top: 16px; color: var(--nv-muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nv-copy h3 { margin-top: 8px; font-size: clamp(1.35rem, 2.1vw, 1.9rem); line-height: 1.12; letter-spacing: -.03em; font-weight: 800; }
.nv-copy .nv-lead { margin-top: 12px; color: #4b5563; font-size: .95rem; line-height: 1.6; }
.nv-points { display: grid; gap: 10px; margin-top: 18px; }
.nv-points li { display: flex; gap: 10px; align-items: flex-start; color: #2b3444; font-size: .9rem; line-height: 1.45; }
.nv-points .mud-icon-root { flex: none; margin-top: 1px; font-size: 19px; color: var(--nv-red); }
.nv-impact { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; border-left: 3px solid var(--nv-red); border-radius: 0 10px 10px 0; background: #f7f8fa; }
.nv-impact .mud-icon-root { flex: none; color: var(--nv-red); }
.nv-impact span { display: block; color: var(--nv-muted); font-size: .64rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nv-impact strong { display: block; margin-top: 2px; font-size: .9rem; color: var(--nv-ink); }

/* ---------- histórico (linha do tempo compacta) ---------- */

.nv-history { position: relative; display: grid; gap: 14px; padding-left: 28px; }
.nv-history::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--nv-red), #d9dee5); }
.nv-hitem {
    position: relative;
    display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: center;
    padding: 14px 16px;
    border-radius: 14px; background: #fff; border: 1px solid var(--nv-line);
    transition: box-shadow .25s, transform .25s;
}
.nv-hitem:hover { box-shadow: var(--nv-shadow); transform: translateX(4px); }
.nv-hitem::before { content: ""; position: absolute; left: -25px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--nv-red); transform: translateY(-50%); }
.nv-hitem img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid #e1e5eb; }
.nv-hitem small { display: block; color: var(--nv-muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nv-hitem strong { display: block; margin-top: 3px; font-size: 1rem; letter-spacing: -.01em; }
.nv-hitem p { margin-top: 4px; color: #56606f; font-size: .85rem; line-height: 1.5; }
.nv-hitem { cursor: zoom-in; }
.nv-hitem:focus-visible { outline: 2px solid var(--nv-red); outline-offset: 2px; }

/* Diálogo de um passo do percurso: fica fora do .nv, por isso traz as variáveis que usa. */
.nv-amp { --nv-red: #e4002b; --nv-ink: #111827; --nv-muted: #64748b; }
.nv-amp ul { margin: 0; padding: 0; list-style: none; }
.nv-amp-data { display: block; color: var(--nv-muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nv-amp-img { display: block; width: 100%; border: 1px solid #e1e5eb; border-radius: 10px; }
.nv-amp-lead { margin: 16px 0 0; color: #2b3444; line-height: 1.55; }

/* ---------- CTA final ---------- */

.nv-cta { margin: clamp(44px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); }
.nv-cta .nv-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--nv-radius);
    color: #fff;
    background: linear-gradient(105deg, #0f141d 0%, #1b2330 60%, #2a1218 100%);
    box-shadow: var(--nv-shadow);
}
.nv-cta h2 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: -.03em; font-weight: 800; }
.nv-cta p { margin-top: 6px; color: rgba(255, 255, 255, .72); font-size: .92rem; }
.nv-cta .nv-actions { margin-top: 0; }

/* ---------- responsivo ---------- */

@media (max-width: 960px) {
    .nv-hero .nv-wrap { grid-template-columns: 1fr; }
    .nv-stack { max-width: 520px; }
    .nv-feature, .nv-feature.alt { grid-template-columns: 1fr; }
    .nv-feature.alt .nv-media { order: 0; }
}
@media (max-width: 600px) {
    .nv { margin: -5rem -1rem -1rem; }
    .nv-nav { top: 56px; }
    .nv-hitem { grid-template-columns: 1fr; }
    .nv-hitem img { width: 100%; }
    .nv-annotations .tag { max-width: 60%; font-size: .58rem; padding: 4px 7px; }
    .nv-btn { padding: 12px 18px; font-size: .86rem; }
}
