/* Identidade e estrutura comuns à página inicial e às seções. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
}

body > main { flex: 1 0 auto; }
body > .site-header, body > .hero-wrapper, body > .rodape { flex-shrink: 0; }
body > .rodape { margin-top: auto; margin-bottom: 0; }

.site-header { font-family: 'Domine', serif; line-height: normal; }
.site-header .container { width: 100%; max-width: 1160px; margin: auto; padding: 0 16px; }
.site-header .cabecalho-topo {
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), url('../img/escola.png') center / cover no-repeat;
    padding: 20px 0;
    position: relative;
}
.site-header .cabecalho-topo::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1b5e20, #f4c542, #1b5e20);
}
.site-header .topo-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; }
.site-header .identidade { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.site-header .logo-jornal { width: auto; height: 80px; border-radius: 6px; flex-shrink: 0; object-fit: contain; }
.site-header .titulo-jornal { min-width: 0; }
.site-header .titulo-jornal .marca-nome {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    word-break: break-word;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}
.site-header .marca-nome span { color: #f2f1ef; }
.site-header .titulo-jornal p:not(.marca-nome) {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,.8);
    margin: 4px 0 0;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: 1.3;
}
.site-header .logo-escola {
    display: block;
    position: static;
    width: 80px;
    height: auto;
    margin: 0;
    background: #fff;
    padding: 4px;
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(0,0,0,.3);
    flex-shrink: 0;
}
.site-header .menu { background: #1b5e20; position: relative; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.2); font-family: 'Playfair Display', Georgia, serif; }
.site-header .menu-container { display: flex; align-items: center; justify-content: space-between; position: relative; }
.site-header .menu-links { display: flex; list-style: none; flex-wrap: nowrap; justify-content: center; align-items: center; width: 100%; gap: 6px; padding: 0 12px; margin: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; white-space: nowrap; }
.site-header .menu-links::-webkit-scrollbar { display: none; }
.site-header .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,.85); text-transform: uppercase; letter-spacing: .3px; text-decoration: none; white-space: nowrap; }
.site-header .menu-links a:hover, .site-header .menu-links a.ativo { color: #f4c542; }
.site-header .menu-mobile { display: none; background: transparent; border: 0; color: #fff; font: inherit; min-height: 44px; cursor: pointer; }
.site-header a:focus-visible, .site-header button:focus-visible { outline: 2px solid #f4c542; outline-offset: -2px; }

@media (min-width: 769px) and (max-width: 992px) {
    .site-header .logo-escola { width: 90px; }
    .site-header .titulo-jornal .marca-nome { font-size: 32px; }
}

@media (max-width: 768px) {
    .site-header .cabecalho-topo { padding: 18px 16px 24px; overflow: hidden; }
    .site-header .cabecalho-topo::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 1; }
    .site-header .cabecalho-topo::after { z-index: 3; }
    .site-header .topo-inner { z-index: 2; flex-direction: column; gap: 8px; text-align: center; }
    .site-header .identidade { width: 100%; flex-direction: column; justify-content: center; gap: 6px; text-align: center; }
    .site-header .logo-jornal { height: 90px; border-radius: 0; }
    .site-header .titulo-jornal { display: flex; flex-direction: column; align-items: center; text-align: center; }
    .site-header .titulo-jornal .marca-nome { font-size: 21px; text-shadow: 0 2px 6px rgba(0,0,0,.45); }
    .site-header .titulo-jornal p:not(.marca-nome) { font-size: 8px; line-height: 1.5; color: rgba(255,255,255,.92); letter-spacing: .8px; }
    .site-header .logo-escola { width: 76px; height: 76px; margin-top: 8px; padding: 5px; border-radius: 10px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
    .site-header .menu-container { justify-content: center; min-height: 60px; }
    .site-header .menu-mobile { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 0; font-size: 14px; }
    .site-header .menu-mobile span { font-size: 28px; }
    .site-header .menu-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0; background: #1b5e20; flex-direction: column; border-top: 2px solid #f4c542; z-index: 999; box-shadow: 0 6px 18px rgba(0,0,0,.28); white-space: normal; }
    .site-header .menu-links.ativo { display: flex; }
    .site-header .menu-links li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .site-header .menu-links li:last-child { border-bottom: 0; }
    .site-header .menu-links a { width: 100%; padding: 14px 20px; min-height: 48px; font-size: 13px; text-align: left; white-space: normal; }
}

@media (max-width: 480px) {
    .site-header .cabecalho-topo { padding: 16px 12px 22px; }
    .site-header .logo-jornal { height: 80px; }
    .site-header .titulo-jornal .marca-nome { font-size: 18px; }
    .site-header .titulo-jornal p:not(.marca-nome) { font-size: 7px; }
    .site-header .logo-escola { width: 68px; height: 68px; }
}
