﻿/* ===================================================
   Parque de Estudo e Reflexão Retiro — Folha de estilo compartilhada
   =================================================== */

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --whatsapp-color: #25d366;
    --text-color: #444;
    --bg-light: #f9fbfb;
    --card-bg: #ffffff;
    --border-color: #e0e6e6;
    --ept-red: #a31d21;
    --ept-blue: #1d4a7a;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    margin: 0;
    background-color: var(--bg-light);
    scroll-behavior: smooth;
}

a { color: var(--accent-color); }

/* Cabeçalho e navegação */
header {
    background: #ffffff;
    border-bottom: 2px solid var(--accent-color);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 6px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.65), rgba(44, 62, 80, 0.65)),
                url('https://via.placeholder.com/1500x500?text=Parque+Retiro+Marica+Rio+de+Janeiro');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 90px 20px;
}

.hero h1 { font-size: 2.3rem; margin-bottom: 10px; }
.hero p { font-size: 1.05rem; font-weight: 300; }

.page-hero {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 55px 20px;
}
.page-hero h1 { font-size: 1.9rem; margin: 0 0 8px 0; }
.page-hero p { font-size: 0.95rem; font-weight: 300; margin: 0; opacity: 0.85; }

/* Botão flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* Conteúdo principal */
.container {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 20px;
}

section { margin-bottom: 20px; }

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 12px;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.subsection-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 35px 0 15px 0;
}

.lead-text { font-size: 1rem; text-align: justify; max-width: 80ch; }

/* Grid e cartões */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    margin-top: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.card h3 {
    margin-top: 0;
    color: var(--accent-color);
    font-size: 1.15rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.card p { font-size: 0.95rem; text-align: justify; margin: 0 0 12px 0; }
.card p:last-child { margin-bottom: 0; }

.nav-card {
    text-decoration: none;
    color: inherit;
}
.nav-card h3 { display: flex; align-items: center; gap: 8px; }
.nav-card .go { margin-top: auto; color: var(--accent-color); font-weight: 600; font-size: 0.85rem; }

/* Botões */
.btn-visit {
    align-self: flex-start;
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-top: auto;
    transition: 0.3s;
    display: inline-block;
}
.btn-visit:hover { background: var(--primary-color); color: white; }

/* Acessos rápidos */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 25px 0;
}
.quick-link-btn {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.25s, transform 0.25s;
}
.quick-link-btn i { font-size: 1.3rem; color: var(--accent-color); }
.quick-link-btn:hover { background: var(--accent-color); color: #fff; transform: translateY(-2px); }

/* Caixa de dica */
.tip-box {
    background: #fff8e6;
    border-left: 4px solid #e6b800;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 35px;
}
.tip-box i { color: #e6b800; margin-right: 6px; }

/* Título de subseção menor (dentro de uma subsection-title) */
.micro-title {
    color: var(--primary-color);
    font-size: 1rem;
    margin: 22px 0 8px 0;
}

/* Lista de passos numerados (De carro) */
.step-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 20px 0 35px 0;
}
.step-list li {
    counter-increment: step;
    position: relative;
    padding: 12px 16px 12px 50px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.92rem;
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Lista de recursos do app (com ícones) */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px 0;
}
.feature-list li {
    padding: 6px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-list i { color: var(--accent-color); width: 18px; text-align: center; }

/* Mapa incorporado */
.map-embed {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.map-embed iframe { display: block; }

/* Tabelas de horário de ônibus (EPT Maricá) */
.bus-header {
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    margin: 15px 0 10px 0;
}
.bus-header.red { background: var(--ept-red); }
.bus-header.blue { background: var(--ept-blue); }

.bus-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.85rem;
}
.bus-table td {
    border: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    background: #fff;
}

/* Tabelas de documentos/produções */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 30px 0;
    font-size: 0.85rem;
}
.doc-table th {
    background: var(--primary-color);
    color: #fff;
    text-align: left;
    padding: 8px 10px;
}
.doc-table td {
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    background: #fff;
    vertical-align: top;
}
.doc-table tr:nth-child(even) td { background: #f7f9f9; }
.doc-table a { word-break: break-word; }

.app-link {
    text-align: center;
    margin-top: 15px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    display: block;
}

/* Lista de Parques no Mundo */
.park-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.park-section h3 { margin-top: 0; color: var(--primary-color); }

.park-card { padding: 0; overflow: hidden; position: relative; }
.park-photo { width: 100%; height: 160px; object-fit: cover; display: block; }
.park-card h3, .park-card p, .park-card .btn-visit { margin-left: 20px; margin-right: 20px; }
.park-card h3 { margin-top: 16px; border-bottom: none; padding-bottom: 0; }
.park-card p { margin-bottom: 14px; color: #666; font-size: 0.85rem; }
.park-card .btn-visit { margin-bottom: 20px; align-self: flex-start; }
.park-card.own-park { border-color: var(--accent-color); border-width: 2px; }
.badge-own {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 2;
}

.park-list {
    columns: 2;
    -webkit-columns: 2;
    list-style: none;
    padding: 0;
    font-size: 0.9rem;
}
.park-list li { margin-bottom: 10px; break-inside: avoid; }
.park-list a { font-weight: 500; }

/* Reservas */
.reserva-box { text-align: center; margin-top: 20px; }
.reserva-frame {
    width: 100%;
    height: 220px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #eef1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}
.btn-large {
    padding: 15px 30px;
    font-size: 1rem;
    align-self: center;
    margin-top: 20px;
}

/* Rodapé */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 3.5rem 0;
    margin-top: 3rem;
}
.social-links { margin-bottom: 22px; }
.social-links a {
    color: white;
    font-size: 24px;
    margin: 0 12px;
    transition: color 0.3s;
}
.social-links a:hover { color: var(--accent-color); }
footer p { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* Responsividade */
@media (max-width: 768px) {
    .park-list { columns: 1; }
    .hero h1 { font-size: 1.6rem; }
    .page-hero h1 { font-size: 1.5rem; }
    nav { gap: 5px; }
    nav a { font-size: 0.62rem; }
}

/* Submenus (Escola > Nivelamento, Reservas > Calendário de uso): aparecem ao passar o mouse */
.nav-dropdown { position: relative; display: flex; align-items: center; }
.nav-sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 170px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    padding: 6px;
    z-index: 1200;
}
.nav-sub a { display: block; white-space: nowrap; }
.nav-dropdown:hover .nav-sub,
.nav-dropdown:focus-within .nav-sub { display: block; }

/* Em telas pequenas (sem mouse), o submenu fica visível ao lado do item */
@media (max-width: 768px) {
    .nav-dropdown { display: contents; }
    .nav-sub { display: contents; }
    .nav-dropdown:hover .nav-sub,
    .nav-dropdown:focus-within .nav-sub { display: contents; }
    .nav-sub a { display: inline-block; }
}

/* Página Escola */
.escola-banner {
    display: block;
    width: 100%;
    max-width: 820px;
    height: auto;
    margin: 10px auto 30px auto;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.escola-contato { text-align: center; margin: 0 auto 35px auto; font-size: 0.95rem; }

/* Página Nivelamento */
.aviso-download {
    background: #fff8e6;
    border-left: 4px solid #e6b800;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-style: italic;
    margin: 0 0 25px 0;
}
.aviso-download strong { font-style: normal; }
.file-list { list-style: none; padding: 0; margin: 0 0 30px 0; }
.file-list li {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 8px;
    font-size: 0.92rem;
}
.file-list ul { list-style: none; padding: 0; margin: 8px 0 0 0; }
.file-list ul li { border: none; border-top: 1px solid #f0f0f0; border-radius: 0; margin: 0; padding: 7px 0 7px 12px; }
.audio-list { list-style: none; padding: 0; margin: 0; }
.audio-list li { padding: 6px 0; font-size: 0.92rem; display: flex; gap: 10px; align-items: baseline; }
.audio-list i { color: var(--accent-color); width: 16px; text-align: center; flex: none; }
.audio-list li.sem-link { color: #888; }

/* Formulário de solicitação de reserva */
.form-reserva {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-top: 25px;
    max-width: 720px;
}
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-row label { font-weight: 600; font-size: 0.9rem; color: var(--primary-color); }
.form-row input,
.form-row select,
.form-row textarea {
    font: inherit;
    font-size: 0.95rem;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--text-color);
}
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 1px; }
.form-erro { color: var(--ept-red); font-weight: 600; font-size: 0.9rem; margin: 0 0 12px 0; }
.form-nota { font-size: 0.8rem; color: #777; margin: 14px 0 0 0; }
.form-reserva .btn-large { border: none; cursor: pointer; font: inherit; font-weight: bold; }

/* Página Organismos e subpáginas */
.organismo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
}
.organismo-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin-bottom: 18px;
}
.organismo-site {
    margin-top: 8px;
}
.video-embed {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto 30px auto;
    padding-bottom: 42.5%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.video-embed iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}
.org-card { text-align: center; }
.org-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 14px auto;
}
.org-card .go { align-self: center; margin-top: auto; }

/* Marca no topo: mandala + nome do Parque */
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 6px auto;
    padding: 0 20px;
    text-decoration: none;
    color: var(--primary-color);
}
.brand-logo { width: 52px; height: 52px; object-fit: contain; flex: none; }
.brand-name { font-size: 1.35rem; font-weight: 700; line-height: 1.2; }

@media (max-width: 768px) {
    .brand { gap: 10px; }
    .brand-logo { width: 38px; height: 38px; }
    .brand-name { font-size: 1rem; }
}

/* Banner da página inicial */
.hero-banner { background: var(--primary-color); line-height: 0; }
.hero-banner img { display: block; width: 100%; height: auto; max-width: 1600px; margin: 0 auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Item "Comece Aqui": leve destaque no menu, por ser a porta de entrada do site */
nav a[href="comece-aqui.html"] {
    background: var(--accent-color);
    color: #fff;
}
nav a[href="comece-aqui.html"]:hover,
nav a[href="comece-aqui.html"].active {
    background: var(--primary-color);
    color: #fff;
}

/* ===== Atualização: Entrar, submenus, redes sociais, área restrita ===== */
.btn-entrar {
    position: absolute; top: 14px; right: 20px;
    background: var(--primary-color); color: #fff; text-decoration: none;
    padding: 8px 16px; border-radius: 6px; font-size: 0.8rem; font-weight: 700;
    transition: background 0.25s;
}
.btn-entrar:hover, .btn-entrar:focus-visible { background: var(--accent-color); color: #fff; }
.nav-sub a.sub2 { padding-left: 24px; }
.nav-sub a.sub2::before { content: "– "; }
@media (max-width: 768px) {
    .btn-entrar { top: 8px; right: 10px; padding: 6px 10px; font-size: 0.7rem; }
    .brand { justify-content: flex-start; padding-right: 90px; }
}

/* Painel de redes sociais */
.social-panel-section { background: #fff; padding: 30px 0; border-top: 2px solid var(--border-color); margin: 40px 0 0; }
.social-panel-section .container { margin: 0 auto; }
.social-panel-section .section-title { text-align: center; border-bottom: 0; margin-bottom: 10px; }
.social-intro { text-align: center; margin: 0 auto 25px; max-width: 70ch; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.social-card { border-radius: 8px; border: 1px solid var(--border-color); background: #fafafa; overflow: hidden; transition: transform 0.3s ease; }
.social-card:hover { transform: translateY(-5px); }
.social-header { padding: 10px 15px; color: #fff; font-weight: bold; font-size: 0.9rem; }
.social-card.instagram .social-header { background: #c2255c; }
.social-card.facebook .social-header { background: #1877f2; }
.social-card.youtube .social-header { background: #c00; }
.social-card.pressenza .social-header { background: #2c3e50; }
.social-body { padding: 15px; font-size: 0.88rem; }
.social-body p { margin: 0 0 8px; }
.social-link { display: inline-block; margin-top: 6px; color: var(--ept-blue); font-weight: bold; text-decoration: none; }
.social-link:hover { text-decoration: underline; }

/* Área restrita */
.panel { background: #fff; border: 1px solid var(--border-color); border-radius: 12px; padding: 24px; }
.login-wrap { max-width: 460px; margin: 0 auto; }
.login-wrap .form-row { margin-bottom: 14px; }
.painel-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab-btn { font: inherit; font-size: 0.88rem; font-weight: 600; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border-color); background: #fff; color: var(--primary-color); cursor: pointer; }
.tab-btn:hover { border-color: var(--accent-color); }
.tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.tab-btn:focus-visible, .icon-btn:focus-visible, .btn-visit:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
.panel h3 { margin-top: 0; color: var(--primary-color); }
.panel .form-reserva { box-shadow: none; margin-bottom: 25px; }
.panel .btn-visit { border: none; cursor: pointer; font: inherit; font-size: 0.85rem; font-weight: bold; }
.panel .card h3 { color: var(--accent-color); }
.badge { padding: 3px 9px; border-radius: 12px; font-size: 0.75rem; font-weight: bold; color: #fff; }
.badge.leitor { background: #6c7a7b; }
.badge.comentador { background: #b8620f; }
.badge.editor { background: #2a7ab5; }
.badge.administrador { background: #2c3e50; }
.icon-btn { color: var(--ept-red); border: none; background: none; cursor: pointer; font-size: 1rem; padding: 6px; }
.vazio { color: #888; font-style: italic; }
.coment { list-style: none; padding: 0; margin: 10px 0 0; font-size: 0.85rem; }
.coment li { padding: 5px 0; border-top: 1px solid #f0f0f0; }
.f-coment { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.f-coment input { flex: 1 1 140px; font: inherit; padding: 8px; border: 1px solid var(--border-color); border-radius: 6px; }
.totais { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.totais div { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px 16px; }
.totais span { display: block; font-size: 0.8rem; color: #777; }
.totais strong { font-size: 1.15rem; color: var(--primary-color); }
.panel .doc-table select { font: inherit; padding: 4px; }
.panel .doc-table { display: block; overflow-x: auto; }
.aviso-local { font-size: 0.82rem; color: #777; margin-top: 18px; }

/* Padronização de fonte: todos os links do menu e dos submenus (inclui Nivelamento) */
nav a, .nav-sub a, .nav-dropdown > a {
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
}
@media (max-width: 768px) { nav a, .nav-sub a, .nav-dropdown > a { font-size: 0.7rem; } }

/* Vaquinha coletiva (Prestação de contas) */
.form-row.vaquinha { background: #eef7fc; padding: 12px; border-left: 4px solid var(--accent-color); border-radius: 4px; }
.form-row.vaquinha label { color: var(--primary-color); }
:root { --mumbuca-color: #e67e22; }

/* Bloco centralizado e chamada */
.block-centered { text-align: center; max-width: 850px; margin: 0 auto 2rem; padding: 20px 25px; background: #eef7fc; border-left: 4px solid var(--accent-color); border-radius: 4px; }
.block-centered h2, .block-centered h3 { text-align: center; color: var(--primary-color); margin-top: 0; }
.callout { background: #fff; border: 1px solid var(--border-color); padding: 15px 20px; border-radius: 6px; margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.callout i { font-size: 1.5rem; color: var(--accent-color); }
.callout p { margin: 0; font-weight: 500; }
.lista { padding-left: 18px; font-size: 0.9rem; }

/* Acervo aberto */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.book-card { border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.book-cover { width: 100%; height: 230px; object-fit: cover; background: #eee; display: block; }
.cover-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; box-sizing: border-box; text-align: center; background: linear-gradient(160deg, var(--primary-color), var(--accent-color)); color: #fff; }
.cover-ph i { font-size: 2rem; opacity: 0.8; }
.cover-ph span { font-weight: 700; font-size: 0.95rem; line-height: 1.25; }
.book-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.book-title { font-size: 0.95rem; font-weight: bold; color: var(--primary-color); margin: 0 0 5px; }
.book-author { font-size: 0.8rem; color: #666; font-style: italic; margin-bottom: 10px; }
.book-desc { font-size: 0.82rem; color: #444; line-height: 1.4; flex-grow: 1; margin-bottom: 12px; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge-disponivel, .badge-emprestado { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 0.7rem; font-weight: bold; }
.badge-disponivel { background: #e8f5e9; color: #2e7d32; }
.badge-emprestado { background: #fdecea; color: #b3261e; }
.book-info .btn-visit { align-self: flex-start; }
.tabs.sub { margin-bottom: 16px; }
.mapa input[type=text], .mapa input[type=date] { font: inherit; font-size: 0.8rem; padding: 5px; border: 1px solid var(--border-color); border-radius: 4px; width: 100%; min-width: 120px; box-sizing: border-box; }
@media print { header, footer, .tabs, .whatsapp-float, .painel-top button, .page-hero, #r-p, #r-c { display: none !important; } }

/* Biblioteca: lista compacta (foto pequena, nome e status) */
[hidden] { display: none !important; }
.book-list-compact { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.book-item-mini { display: flex; align-items: center; padding: 10px 15px; border: 1px solid var(--border-color); border-radius: 6px; background: #fff; gap: 15px; transition: background-color 0.2s ease; }
.book-item-mini:hover { background: #fafafa; }
.book-cover-small { width: 50px; height: 70px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; flex-shrink: 0; }
.cover-ph-mini { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--primary-color), var(--accent-color)); color: #fff; box-sizing: border-box; }
.book-details-mini { flex-grow: 1; min-width: 0; }
.book-title-mini { font-size: 0.95rem; font-weight: bold; color: var(--primary-color); margin: 0 0 3px; }
.book-author-mini { font-size: 0.82rem; color: #666; margin: 0; }
.badge-status { padding: 4px 10px; border-radius: 12px; font-size: 0.72rem; font-weight: bold; white-space: nowrap; }
.badge-status.badge-disponivel { background: #e8f5e9; color: #2e7d32; }
.badge-indisponivel { background: #ffebee; color: #c62828; }

/* ---------- Biblioteca: foto bem pequena + nome ---------- */
.book-cover-small { width: 32px; height: 44px; }
.cover-ph-mini i { font-size: 0.85rem; }
.book-item-mini { padding: 8px 12px; gap: 12px; }

/* ---------- Funções de responsável ---------- */
fieldset.funcoes { border: 1px solid var(--border-color); border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; }
fieldset.funcoes legend { font-weight: 600; font-size: 0.9rem; padding: 0 6px; }
fieldset.funcoes label, label.fn { display: block; font-size: 0.85rem; margin: 4px 0; }
fieldset.funcoes input, label.fn input { width: auto; margin-right: 6px; }

/* ---------- Reservas de alojamento ---------- */
.pedido { border: 1px solid var(--border-color); border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; background: #fff; }
.aviso-nec { background: #fff8e1; border-left: 4px solid #b8620f; padding: 8px 12px; border-radius: 4px; font-size: 0.9rem; }
.cama-linha { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cama-linha input, .cama-linha select { flex: 1 1 200px; min-width: 0; padding: 8px; border: 1px solid var(--border-color); border-radius: 6px; font: inherit; }
.quartos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.quarto { border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; background: #fff; }
.quarto h4 { margin: 0 0 8px; }
.cama { display: grid; grid-template-columns: 2.2em 3.2em 1fr; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 6px; border-radius: 6px; font-size: 0.85rem; }
.cama small { color: #666; }
.cama.livre { background: #e8f5e9; color: #2e7d32; }
.cama.ocupada { background: #fdecea; color: #b3261e; }

/* ---------- Estela ---------- */
.estela-nomes { list-style: none; padding: 0; margin: 16px 0 0; columns: 3 220px; column-gap: 28px; }
.estela-nomes li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--border-color); }
.estela-edit { list-style: none; padding: 0; margin: 0; }
.estela-edit li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border-color); }

/* ---------- Álbum de fotos ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 14px; }
.foto-card { margin: 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; background: #fff; }
.foto-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.foto-card figcaption { padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.foto-card small { color: #666; }
.foto-card .acoes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.foto-abre { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.badge-pend { background: #fff3cd; color: #8a6d00; }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0, 0, 0, 0.88); display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }
.lb-x { position: absolute; top: 14px; right: 18px; font-size: 1.6rem; background: none; border: 0; color: #fff; cursor: pointer; }

/* ---------- Páginas de conteúdo do Centro de Estudo ---------- */
.lista-docs { list-style: none; padding: 0; margin: 10px 0 18px; }
.lista-docs li { padding: 7px 0; border-bottom: 1px solid var(--border-color); font-size: 0.93rem; }
.lista-docs a { font-weight: 600; }
.grupo-audio { margin: 18px 0 0; color: var(--primary-color); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.04em; }
.citacao-oficio { border-left: 4px solid var(--accent-color); background: var(--bg-light); margin: 0 0 20px; padding: 6px 20px; border-radius: 4px; font-style: italic; }
.lista-oficios li { margin: 5px 0; }
.fonte-ext { margin-top: 28px; font-size: 0.82rem; color: #666; }

/* ---------- Álbum: eventos e legendas ---------- */
.foto-card .ev-nome { font-weight: 600; color: var(--primary-color); }
.foto-card figcaption small { font-size: 0.72rem; }
.foto-card figcaption select { font: inherit; font-size: 0.78rem; padding: 4px; border: 1px solid var(--border-color); border-radius: 6px; max-width: 100%; }
.foto-card .acoes .btn-visit { font-size: 0.75rem; padding: 5px 9px; }

/* ---------- Submenu de segundo nível (Escola > Nivelamento, Eventos > Fotos) ---------- */
.nav-item-sub { position: relative; }
.nav-sub2 {
    display: none;
    position: absolute;
    top: -6px;
    left: 100%;
    min-width: 150px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 2px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    box-shadow: 6px 6px 16px rgba(0,0,0,0.1);
    padding: 6px;
    z-index: 1300;
}
.nav-item-sub:hover > .nav-sub2,
.nav-item-sub:focus-within > .nav-sub2 { display: block; }
.nav-item-sub > a::after { content: " \203A"; opacity: 0.6; }
@media (max-width: 768px) {
    .nav-item-sub, .nav-sub2, .nav-item-sub:hover > .nav-sub2, .nav-item-sub:focus-within > .nav-sub2 { display: contents; }
    .nav-item-sub > a::after { content: none; }
    .nav-sub2 a { display: inline-block; }
}


/* ---------- Inventário (área restrita) ---------- */
.inv-code { display: inline-block; font-family: Consolas, 'Courier New', monospace; font-weight: bold; font-size: 0.82rem; background: #eef4f8; color: var(--primary-color); border: 1px solid #c9d9e6; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.inv-cod-box { min-height: 34px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inv-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.inv-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid #ddd; display: block; }
.inv-thumb-ph { display: flex; align-items: center; justify-content: center; flex-direction: column; background: #eee; color: #999; }
.badge-uso { background: #e3f1fb; color: var(--ept-blue); }
.inv-det { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 24px; align-items: start; margin-bottom: 20px; }
.inv-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }
.inv-foto.inv-thumb-ph { font-size: 2.2rem; }
.inv-foto.inv-thumb-ph span { font-size: 0.8rem; }
.inv-det dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.inv-det dt { font-weight: 600; color: var(--primary-color); }
.inv-det dd { margin: 0; word-break: break-word; }
.inv-print-head { display: none; }
@media (max-width: 768px) { .inv-det { grid-template-columns: 1fr; } .inv-det dl { grid-template-columns: 1fr; gap: 0; } .inv-det dd { margin-bottom: 8px; } }
@media print { .inv-noprint, .inv-filtros { display: none !important; } .inv-print-head { display: block !important; } .panel { border: 0; padding: 0; } .inv-code { border: 0; background: none; } .panel .doc-table { display: table; } }


/* ---------- Relatórios Consolidados e Documentos e Calendários ---------- */
.rc-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.rc-th { font: inherit; font-weight: bold; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; white-space: nowrap; }
.rc-th:hover, .rc-th:focus-visible { text-decoration: underline; outline: none; }
.rc-resumo { font-size: 0.85rem; color: #666; }
.print-head { display: none; }
.doc-item { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.doc-data { flex: 0 0 90px; font-weight: 600; color: var(--primary-color); }
.doc-corpo { flex: 1; min-width: 0; }
.doc-corpo p { margin: 4px 0 6px; font-size: 0.9rem; }
.doc-corpo .acoes { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.cal-legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.8rem; }
.cal-legenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.cal-meses { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 12px; }
.cal-mes { border: 1px solid var(--border-color); border-radius: 10px; padding: 12px; background: #fff; }
.cal-mes h4 { margin: 0 0 8px; color: var(--primary-color); }
.cal-mes.cal-hoje { border-color: var(--accent-color); box-shadow: 0 0 0 2px var(--accent-color) inset; }
.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 0.75rem; margin-bottom: 8px; }
.cal-grade b { color: #888; }
.cal-dia { border-radius: 4px; padding: 2px 0; }
.cal-dia.tem { color: #fff; font-weight: bold; }
.cal-dia.hoje { outline: 2px solid var(--ept-red); outline-offset: 1px; }
.cal-lista { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.cal-lista li { display: flex; gap: 8px; padding: 4px 0; border-top: 1px solid #f0f0f0; }
.cal-ponto { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
@media (max-width: 768px) { .doc-item { flex-direction: column; gap: 2px; } }
@media print { .no-print { display: none !important; } .print-head { display: block !important; } .cal-meses { grid-template-columns: repeat(3, 1fr); } .cal-dia.tem { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }


/* ===== Menu responsivo (celular): menu recolhido no botão ☰ e submenus em "sanfona" ===== */
.nav-toggle, .sub-toggle { display: none; -webkit-tap-highlight-color: transparent; }
@media (max-width: 768px) {
    .nav-toggle {
        display: flex; align-items: center; justify-content: center;
        position: absolute; top: 8px; right: 10px; width: 42px; height: 38px; padding: 0;
        border: 1px solid var(--border-color); border-radius: 6px; background: #fff; cursor: pointer;
    }
    .nav-toggle:focus-visible, .sub-toggle:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }
    .nav-toggle-barras, .nav-toggle-barras::before, .nav-toggle-barras::after { width: 20px; height: 2px; background: var(--primary-color); border-radius: 2px; transition: transform 0.2s, background 0.2s; }
    .nav-toggle-barras { position: relative; }
    .nav-toggle-barras::before, .nav-toggle-barras::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-barras::before { top: -6px; }
    .nav-toggle-barras::after { top: 6px; }
    header.menu-open .nav-toggle-barras { background: transparent; }
    header.menu-open .nav-toggle-barras::before { top: 0; transform: rotate(45deg); }
    header.menu-open .nav-toggle-barras::after { top: 0; transform: rotate(-45deg); }

    .btn-entrar { right: 60px; }
    .brand { padding-right: 150px; }
    .brand-name { font-size: 0.92rem; }

    /* menu recolhido por padrão; abre ao tocar no botão ☰ */
    header nav { display: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; max-width: none; margin: 8px 0 0; padding: 8px 12px 12px; border-top: 1px solid var(--border-color); max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    header.menu-open nav { display: flex; }
    header nav a, header nav .nav-dropdown > a, header nav .nav-item-sub > a { display: block; font-size: 0.88rem; padding: 12px 10px; }
    header nav a[href="comece-aqui.html"] { margin-bottom: 4px; }

    header nav .nav-dropdown, header nav .nav-item-sub { display: flex; flex-wrap: wrap; align-items: stretch; position: static; width: 100%; }
    header nav .nav-dropdown > a, header nav .nav-item-sub > a { flex: 1 1 0; min-width: 0; }
    .sub-toggle { display: flex; align-items: center; justify-content: center; flex: none; width: 46px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
    .sub-toggle::before { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--primary-color); border-bottom: 2px solid var(--primary-color); transform: rotate(45deg); transition: transform 0.2s; }
    .open > .sub-toggle::before { margin-top: 4px; transform: rotate(-135deg); }

    /* submenus (1º e 2º nível): fechados por padrão, abrem pelo botão ▾ */
    header nav .nav-dropdown > .nav-sub, header nav .nav-dropdown:hover > .nav-sub, header nav .nav-dropdown:focus-within > .nav-sub,
    header nav .nav-item-sub > .nav-sub2, header nav .nav-item-sub:hover > .nav-sub2, header nav .nav-item-sub:focus-within > .nav-sub2 {
        display: none; position: static; flex: 0 0 auto; width: calc(100% - 8px); min-width: 0; margin: 2px 0 6px 8px; padding: 4px 0 4px 6px;
        background: #f7fafc; border: 0; border-left: 3px solid var(--accent-color); border-radius: 0; box-shadow: none;
    }
    header nav .nav-dropdown.open > .nav-sub, header nav .nav-item-sub.open > .nav-sub2 { display: block; }
    header nav .nav-sub a, header nav .nav-sub2 a, header nav .nav-sub .nav-item-sub > a { display: block; white-space: normal; font-size: 0.85rem; padding: 10px; }
    header nav .sub-toggle:hover, header nav .sub-toggle:active, header nav .sub-toggle:focus { background: transparent; }
    header nav .nav-item-sub > a::after { content: none; }
}
