:root {
    --azul-marinho: #14245c;
    --azul-marinho-escuro: #0d1a44;
    --verde-cpm: #1f4d3a;
    --verde-cpm-claro: #2a6b4f;
    --branco: #ffffff;
    --cinza-claro: #f4f6f9;
    --cinza-medio: #6b7891;
    --cinza-texto: #2d3a55;
    --vermelho-cpm: #c4302b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--cinza-texto);
    line-height: 1.6;
    min-height: 100vh;
    background: url("assets/fundo.jpg?v=2") center center / cover no-repeat fixed,
                var(--azul-marinho);
    position: relative;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 36, 92, 0.25) 0%,
        rgba(20, 36, 92, 0.10) 45%,
        rgba(13, 26, 68, 0.45) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.topo,
main,
footer {
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
.topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
    background: var(--branco);
    border-bottom: 4px solid var(--verde-cpm);
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.marca {
    display: flex;
    align-items: center;
}

.logo-cpm-img {
    height: 56px;
    width: auto;
    display: block;
    object-fit: contain;
}

.marca.pequena .logo-cpm-img {
    height: 48px;
    background: var(--branco);
    padding: 4px 8px;
    border-radius: 6px;
}

.topo nav a {
    color: var(--azul-marinho);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.topo nav a:hover {
    color: var(--verde-cpm);
}

.topo nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--verde-cpm);
}

/* ===== Hero ===== */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem 2rem 2.5rem;
}

@media (max-width: 768px) {
    .hero {
        align-items: center;
        justify-content: center;
        padding: 2.5rem 1.5rem;
    }
}

.hero-conteudo {
    max-width: 640px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.8rem 2rem;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border-top: 5px solid var(--verde-cpm);
    border-bottom: 5px solid var(--verde-cpm);
}

.selo {
    display: inline-block;
    background: var(--verde-cpm);
    color: var(--branco);
    padding: 0.35rem 1.1rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    margin-bottom: 0.8rem;
    line-height: 1.25;
    color: var(--azul-marinho);
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 .destaque {
    color: var(--azul-marinho);
    font-size: 1.15em;
    display: inline-block;
    margin-top: 0.3rem;
}

.hero h1 .autor-nome {
    color: var(--cinza-texto);
}

.autor {
    color: var(--azul-marinho);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--cinza-claro);
}

.chamada {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    color: var(--cinza-texto);
    line-height: 1.55;
}

.chamada strong {
    color: var(--verde-cpm);
}

/* ===== Botões ===== */
.acoes {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.botao {
    display: inline-block;
    padding: 0.95rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.botao.primario {
    background: var(--verde-cpm);
    color: var(--branco);
    border-color: var(--verde-cpm);
}

.botao.primario:hover {
    background: var(--verde-cpm-claro);
    border-color: var(--verde-cpm-claro);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 77, 58, 0.4);
}

.botao.secundario {
    background: transparent;
    color: var(--azul-marinho);
    border-color: var(--azul-marinho);
}

.botao.secundario:hover {
    background: var(--azul-marinho);
    color: var(--branco);
    transform: translateY(-2px);
}

/* ===== Blocos ===== */
.bloco {
    padding: 5rem 1.5rem;
    background: rgba(13, 26, 68, 0.85);
    backdrop-filter: blur(4px);
    color: var(--branco);
}

.bloco-claro {
    background: rgba(255, 255, 255, 0.97);
    color: var(--cinza-texto);
}

.bloco h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-align: center;
    margin-bottom: 1rem;
    color: inherit;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.bloco-claro h2 {
    color: var(--azul-marinho);
}

.bloco h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: var(--verde-cpm);
    margin: 0.8rem auto 0;
}

.bloco-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 1.05rem;
}

.bloco-intro strong {
    color: inherit;
    font-weight: 700;
}

.bloco:not(.bloco-claro) .bloco-intro strong {
    color: #a8d4bf;
}

.link-site {
    text-align: center;
    margin-bottom: 3rem;
}

.link-site a {
    display: inline-block;
    background: var(--verde-cpm);
    color: var(--branco);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.link-site a:hover {
    background: var(--verde-cpm-claro);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(31, 77, 58, 0.4);
}

/* ===== Cards de informação ===== */
.grid-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card-info {
    background: var(--branco);
    padding: 2rem 1.5rem;
    border-radius: 6px;
    text-align: center;
    border-top: 4px solid var(--verde-cpm);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

.card-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.icone-circulo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--verde-cpm);
    color: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.icone-circulo svg {
    width: 30px;
    height: 30px;
}

.card-info h3 {
    color: var(--verde-cpm);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.info-destaque {
    color: var(--azul-marinho);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.info-secundaria {
    color: var(--cinza-medio);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ===== Cards de arquivos ===== */
.subtitulo-documentos {
    max-width: 1100px;
    margin: 2.5rem auto 1.2rem;
    padding-left: 0.2rem;
    font-size: 1.3rem;
    color: #ffffff;
    border-left: 4px solid var(--vermelho, #c0392b);
    padding: 0.4rem 0 0.4rem 0.9rem;
    font-weight: 600;
}

.subtitulo-documentos:first-of-type {
    margin-top: 1rem;
}

.lista-arquivos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.lista-arquivos + .subtitulo-documentos {
    margin-top: 3rem;
}

.card-arquivo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--branco);
    background: rgba(255, 255, 255, 0.08);
    padding: 1.8rem 1.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--verde-cpm);
    transition: all 0.2s;
}

.card-arquivo:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    border-left-color: var(--verde-cpm-claro);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.card-arquivo .icone {
    display: inline-block;
    background: var(--vermelho-cpm);
    color: var(--branco);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
    border-radius: 3px;
    width: fit-content;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.card-arquivo .titulo {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--branco);
}

.card-arquivo .descricao {
    font-size: 0.85rem;
    color: #b8c5d9;
}

/* ===== Contato ===== */
.contato {
    text-align: center;
}

.contato p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.contato a {
    color: var(--verde-cpm);
    text-decoration: none;
    font-weight: 700;
}

.contato a:hover {
    text-decoration: underline;
}

/* ===== Footer ===== */
footer {
    background: var(--azul-marinho-escuro);
    color: var(--branco);
    padding: 2rem 1.5rem;
    border-top: 4px solid var(--verde-cpm);
}

.footer-conteudo {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

footer .marca .marca-texto {
    color: var(--branco);
}

footer .marca .marca-texto span {
    color: #b8c5d9;
}

footer p {
    font-size: 0.9rem;
    color: #b8c5d9;
}

/* ===== Responsivo ===== */
@media (max-width: 768px) {
    .topo {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .topo nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .topo nav a {
        margin: 0 0.6rem;
    }

    .hero-conteudo {
        padding: 2.2rem 1.4rem;
    }

    .bloco {
        padding: 3.5rem 1rem;
    }

    .footer-conteudo {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Toast de e-mail copiado ===== */
.toast-email {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.7rem 1.3rem;
    background: var(--verde-cpm);
    color: var(--branco);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.toast-email.toast-visivel {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Vídeo do evento ===== */
.video-evento {
    max-width: 1200px;
    margin: 4rem auto 0;
    text-align: center;
    padding: 0 1rem;
}

.video-titulo {
    font-size: 1.6rem;
    color: var(--azul-marinho);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    font-weight: 700;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* proporção 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    border: 5px solid var(--verde-cpm);
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== Player de áudio ===== */
.audio-evento {
    max-width: 720px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    text-align: center;
}

.audio-titulo {
    font-size: 1rem;
    color: var(--azul-marinho);
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.audio-player {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f4f6f9 100%);
    border-radius: 18px;
    padding: 1rem 1.4rem;
    box-shadow:
        0 18px 42px rgba(13, 26, 68, 0.2),
        0 2px 8px rgba(31, 77, 58, 0.08);
    max-width: 560px;
    margin: 0 auto;
    border-top: 3px solid var(--verde-cpm);
    border-bottom: 3px solid var(--verde-cpm);
}

.botao-play {
    flex-shrink: 0;
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(140deg, var(--verde-cpm-claro) 0%, var(--verde-cpm) 100%);
    color: var(--branco);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 8px 20px rgba(31, 77, 58, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.botao-play:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(31, 77, 58, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.botao-play:active {
    transform: translateY(0);
}

.botao-play svg {
    width: 24px;
    height: 24px;
}

.icone-play { margin-left: 2px; }
.botao-play .icone-pause { display: none; }
.botao-play.tocando .icone-play { display: none; }
.botao-play.tocando .icone-pause { display: block; }

.audio-corpo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.audio-barra {
    width: 100%;
    padding: 8px 0;
    cursor: pointer;
    outline: none;
}

.audio-barra:focus-visible .audio-barra-fundo {
    box-shadow: 0 0 0 3px rgba(31, 77, 58, 0.3);
}

.audio-barra-fundo {
    position: relative;
    width: 100%;
    height: 6px;
    background: #e3e8ef;
    border-radius: 3px;
    overflow: visible;
    transition: height 0.15s ease;
}

.audio-barra:hover .audio-barra-fundo {
    height: 8px;
}

.audio-barra-preenchida {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--verde-cpm) 0%, var(--verde-cpm-claro) 100%);
    border-radius: 3px;
    transition: width 0.1s linear;
}

.audio-barra-marcador {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--branco);
    border: 3px solid var(--verde-cpm);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(31, 77, 58, 0.4);
    transition: transform 0.15s ease, left 0.1s linear;
    pointer-events: none;
}

.audio-barra:hover .audio-barra-marcador {
    transform: translate(-50%, -50%) scale(1.25);
}

.audio-tempo {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--cinza-medio);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.audio-tempo span:first-child {
    color: var(--verde-cpm);
}

@media (max-width: 480px) {
    .audio-player {
        padding: 0.85rem 1.1rem;
        gap: 1rem;
    }
    .botao-play {
        width: 52px;
        height: 52px;
        border-radius: 15px;
    }
    .botao-play svg {
        width: 22px;
        height: 22px;
    }
    .audio-titulo {
        font-size: 0.95rem;
    }
}
