/* =================================================================
   ESTILOS COMPARTILHADOS — Todas as seções do INFOrmados VON
   Fontes carregadas via <link> no header.php
   ================================================================= */

:root {
    --verde:        #2e7d32;
    --verde-escuro: #1b5e20;
    --amarelo:      #f4c542;
    --cinza:        #f4f4f4;
    --texto:        #333;
    --branco:       #ffffff;
    --bege:         #F5EEDC;
    --sombra:       0 8px 25px rgba(0,0,0,0.08);
    --transicao:    0.3s ease;
    --trans:        0.2s ease;
}

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

html, body {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    background: var(--cinza);
    color: var(--texto);
    font-family: "Domine", serif;
    font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
main { flex: 1; }

.container {
    max-width: 1150px;
    margin: auto;
    padding: 0 20px;
    width: 100%;
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.cabecalho-topo {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../img/escola.png') center / cover no-repeat;
    padding: 28px 0;
    position: relative;
    overflow: hidden;
}

.cabecalho-topo::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--verde-escuro), var(--amarelo), var(--verde-escuro));
}

.topo-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.identidade {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.logo-jornal {
    height: 110px;
    border-radius: 6px;
    flex-shrink: 0;
}

.titulo-jornal { min-width: 0; }

.titulo-jornal h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.titulo-jornal h1 span { color: var(--bege); }

.titulo-jornal p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-escola {
    width: 110px;
    background: white;
    padding: 4px;
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* ══════════════════════════════════════
   MENU
══════════════════════════════════════ */
.menu {
    background: var(--verde-escuro);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-family: 'Playfair Display', Georgia, serif;
}

.menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.menu-links {
    display: flex;
    list-style: none;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 6px;
    padding: 0 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    white-space: nowrap;
}

.menu-links::-webkit-scrollbar { display: none; }

.menu-links a {
    display: flex;
    align-items: center;
    padding: 0 8px;
    min-height: 56px;
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: var(--trans);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-links a:hover,
.menu-links a.ativo { color: var(--amarelo); }

.menu-mobile {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
    padding: 10px 0;
    user-select: none;
}

/* ══════════════════════════════════════
   CONTEÚDO
══════════════════════════════════════ */
.corpo   { padding: 32px 0 56px; }
.noticias { padding: 60px 0; }

.pagina { padding: 48px 0 64px; }

.pagina-titulo {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 900;
    color: var(--verde-escuro);
    border-left: 5px solid var(--amarelo);
    padding-left: 14px;
    margin-bottom: 28px;
}

/* ══════════════════════════════════════
   RODAPÉ
══════════════════════════════════════ */
.rodape {
    background: var(--verde-escuro);
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 14px;
    letter-spacing: .5px;
}

.rodape a,
footer a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 700;
}

/* ══════════════════════════════════════
   RESPONSIVO — TABLET (≤ 1000px)
══════════════════════════════════════ */
@media (max-width: 1000px) {
    .titulo-jornal h1 { font-size: 30px; }
}

/* ══════════════════════════════════════
   RESPONSIVO — MOBILE (≤ 768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── HEADER ── */
    .cabecalho-topo {
        padding: 18px 16px 26px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cabecalho-topo::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 1;
    }

    .cabecalho-topo::after { z-index: 3; }

    .topo-inner {
        position: relative;
        z-index: 2;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .identidade {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .logo-jornal {
        height: 90px;
        width: auto;
        object-fit: contain;
    }

    .titulo-jornal {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .titulo-jornal h1 {
        font-size: 21px;
        line-height: 1.1;
        color: #fff;
        white-space: normal;
        word-break: break-word;
        text-shadow: 0 2px 6px rgba(0,0,0,0.45);
    }

    .titulo-jornal p {
        margin-top: 4px;
        font-size: 8px;
        line-height: 1.5;
        color: rgba(255,255,255,0.92);
        text-transform: uppercase;
        letter-spacing: 0.8px;
    }

    .logo-escola {
        position: static;
        display: block;
        width: 76px;
        height: 76px;
        margin-top: 8px;
        background: #fff;
        padding: 5px;
        border-radius: 10px;
        object-fit: cover;
        box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    }

    /* ── MENU ── */
    .menu {
        position: relative;
        overflow: visible;
    }

    .menu-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 60px;
    }

    .menu-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 14px 0;
        font-size: 32px;
        color: #fff;
        cursor: pointer;
    }

    .menu-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--verde-escuro);
        flex-direction: column;
        border-top: 2px solid var(--amarelo);
        z-index: 999;
        box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    }

    .menu-links.ativo { display: flex; }

    .menu-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .menu-links a {
        display: block;
        width: 100%;
        padding: 14px 20px;
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        text-align: left;
        white-space: normal;
        min-height: 0;
    }

    .menu-links a:hover,
    .menu-links a.ativo {
        background: rgba(255,255,255,0.04);
        color: var(--amarelo);
    }

    /* ── CONTEÚDO ── */
    .pagina        { padding: 28px 0 50px; }
    .pagina-titulo { font-size: 22px; }
    .corpo         { padding: 24px 0 40px; }
    .noticias      { padding: 32px 0; }

    .container { padding: 0 16px; }
}

/* ══════════════════════════════════════
   RESPONSIVO — MOBILE PEQUENO (≤ 480px)
══════════════════════════════════════ */
@media (max-width: 480px) {

    .cabecalho-topo { padding: 16px 12px 24px; }
    .logo-jornal    { height: 82px; }
    .titulo-jornal h1 { font-size: 18px; }
    .titulo-jornal p  { font-size: 7px; }
    .logo-escola    { width: 72px; height: 72px; }
    .pagina-titulo  { font-size: 20px; }
}
