/* ============================================================
   Secção "Em Memória de" — Nova Cimangola
   Identidade base reaproveitada do site institucional (navy/azul,
   Fraunces + Inter), com um dourado discreto introduzido só aqui,
   como acento de respeito — não faz parte da paleta do dia-a-dia
   do site, é deliberadamente exclusivo a este contexto.
   ============================================================ */

:root {
    --navy-950: #071a2e;
    --navy-900: #0a2540;
    --navy-800: #12345a;
    --blue-600: #1e6fd9;
    --ink: #1c2733;
    --ink-muted: #5b6b7a;
    --paper: #f7f9fb;
    --paper-line: #e4e9ef;
    --white: #ffffff;
    --gold: #c9a875;
    --gold-soft: #e9dcc4;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

.memorial {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
}

.memorial * {
    box-sizing: border-box;
}


/* ===================== CABEÇALHO ===================== */

.memorial-hero {
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
    padding: 72px 20px 64px;
    text-align: center;
    background-attachment: fixed;
}

.memorial-hero-inner {
    max-width: 640px;
    margin: 0 auto;
}

.memorial-mark {
    width: 34px;
    height: 34px;
    margin: 0 auto 22px;
}

.memorial-eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.memorial-nome {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.25;
    color: var(--white);
    margin: 0 0 36px;
}

.memorial-portrait {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.memorial-portrait-ring {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    padding: 6px;
    background: conic-gradient(from 180deg, var(--gold), var(--gold-soft), var(--gold));
}

.memorial-portrait-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--paper);
    border: 3px solid var(--navy-950);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.memorial-portrait-placeholder {
    width: 62%;
    height: 62%;
}

.memorial-divider {
    display: block;
    color: var(--gold);
    font-size: 14px;
    letter-spacing: .3em;
    opacity: .85;
}

.memorial-divider--small {
    margin-top: 28px;
    font-size: 11px;
}


/* ===================== TEXTO DE HOMENAGEM ===================== */

.memorial-body {
    background: var(--white);
    padding: 64px 20px;
}

.memorial-tribute {
    max-width: 720px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.memorial-tribute.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.memorial-tribute p {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--ink);
    text-align: justify;
    margin: 0 0 22px;
}

.memorial-tribute p:first-of-type {
    font-size: 18px;
    color: var(--navy-900);
}

.memorial-tribute strong {
    color: var(--navy-900);
    font-weight: 700;
}


/* ===================== LINHA DO TEMPO ===================== */

.memorial-timeline-section {
    background: var(--paper);
    padding: 72px 20px;
    border-top: 1px solid var(--paper-line);
    border-bottom: 1px solid var(--paper-line);
}

.memorial-timeline-inner {
    max-width: 760px;
    margin: 0 auto;
}

.memorial-section-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 26px;
    color: var(--navy-900);
    text-align: center;
    margin: 0 0 48px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.memorial-section-title.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.memorial-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.memorial-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(var(--gold), var(--paper-line) 92%);
}

.memorial-timeline-item {
    position: relative;
    padding: 0 0 36px 42px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.memorial-timeline-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.memorial-timeline-item:last-child {
    padding-bottom: 0;
}

.memorial-timeline-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px var(--paper);
}

.memorial-timeline-item.is-current::before {
    background: var(--gold);
}

.memorial-timeline-periodo {
    display: block;
    font-weight: 800;
    font-size: 13.5px;
    letter-spacing: .03em;
    color: var(--navy-900);
    margin-bottom: 6px;
}

.memorial-timeline-texto {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--ink-muted);
    margin: 0;
}


/* ===================== LEGADO ===================== */

.memorial-legado {
    background: var(--navy-900);
    padding: 64px 20px;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.memorial-legado.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.memorial-legado-inner {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(201, 168, 117, .35);
    border-bottom: 1px solid rgba(201, 168, 117, .35);
    padding: 36px 12px;
}

.memorial-legado-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.memorial-legado-texto {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(19px, 2.6vw, 24px);
    line-height: 1.55;
    color: var(--white);
    margin: 0;
}


/* ===================== CONDOLÊNCIAS ===================== */

.memorial-condolencias {
    background: var(--white);
    padding: 64px 20px 80px;
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.memorial-condolencias.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.memorial-condolencias p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 15.5px;
    line-height: 1.85;
    color: var(--ink-muted);
}


/* ===================== ACESSIBILIDADE / MOVIMENTO REDUZIDO ===================== */

@media (prefers-reduced-motion: reduce) {
    .memorial-tribute,
    .memorial-section-title,
    .memorial-timeline-item,
    .memorial-legado,
    .memorial-condolencias {
        transition: none;
        opacity: 1;
        transform: none;
    }
}


/* ===================== RESPONSIVO ===================== */

@media (max-width:640px) {
    .memorial-hero {
        padding: 56px 18px 48px;
    }
    .memorial-body,
    .memorial-timeline-section,
    .memorial-legado,
    .memorial-condolencias {
        padding-left: 18px;
        padding-right: 18px;
    }
    .memorial-timeline-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .memorial-tribute p {
        text-align: left;
        font-size: 15.5px;
    }
    .memorial-portrait-ring {
        width: 136px;
        height: 136px;
    }
}