﻿/* ===================================================
   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); }

/* Contato direto (Tawk.to + e-mail) no lugar do botão do WhatsApp, quando o chat está ligado. */
.chat-float, .email-float {
    position: fixed; width: 60px; height: 60px; right: 30px; border: 0; cursor: pointer; color: #FFF; border-radius: 50px;
    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;
}
.chat-float { bottom: 30px; background-color: var(--primary-color); font-size: 26px; }
.email-float { bottom: 100px; background-color: #7f8c8d; font-size: 24px; }
.chat-float:hover, .email-float:hover { transform: scale(1.1); }
.chat-float:focus-visible, .email-float:focus-visible { outline: 3px solid #f1c40f; outline-offset: 3px; }
.chat-float:disabled { opacity: .6; cursor: progress; }
@media (max-width: 600px) { .chat-float, .email-float { right: 20px; } }

/* 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; }
/* Pictograma e texto lado a lado, com espaço fixo entre eles: o texto traduzido (Se connecter, Anmelden...) nunca cobre o ícone */
.btn-entrar { display: inline-flex; align-items: center; gap: 0.5em; white-space: nowrap; line-height: 1.2; }
.btn-entrar i { flex: 0 0 auto; margin: 0; }
.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-card.comunicado .social-header { background: #E55B0A; }
.social-card.whatsapp .social-header { background: #0b7065; }
.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; }
/* CONecta Retiro: duas grandes áreas lado a lado, cada uma com sua caixa flutuante de ferramentas */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; align-items: start; }
.areas:has(.area-col:only-child) { grid-template-columns: minmax(0, 560px); }
.area-col { position: relative; }
.area-titulo { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; font: inherit; cursor: pointer; padding: 22px 24px; border-radius: 14px; border: 2px solid var(--border-color); background: #fff; color: var(--primary-color); box-shadow: 0 2px 8px rgba(44,62,80,.06); transition: border-color .15s, box-shadow .15s, background .15s; }
.area-titulo:hover, .area-col.aberta .area-titulo { border-color: var(--accent-color); box-shadow: 0 6px 18px rgba(44,62,80,.12); }
.area-col.ativa .area-titulo { background: var(--primary-color); border-color: var(--primary-color); color: #fff; }
.area-ico { font-size: 1.8rem; color: var(--accent-color); flex: none; width: 36px; text-align: center; }
.area-col.ativa .area-ico { color: #fff; }
.area-txt { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.area-txt strong { font-size: 1.25rem; line-height: 1.2; }
.area-txt small { font-size: .85rem; opacity: .75; }
.area-seta { flex: none; transition: transform .2s; }
.area-col.aberta .area-seta { transform: rotate(180deg); }
.area-box { display: none; position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: 0 14px 34px rgba(44,62,80,.2); padding: 8px; max-height: 70vh; overflow-y: auto; }
.area-col.aberta .area-box { display: block; }
@media (hover: hover) { .areas:not(.inicio) .area-col:not(.fechada):hover .area-box { display: block; } }
.area-box .tab-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 8px; padding: 11px 14px; font-size: .95rem; background: transparent; }
.area-box .tab-btn i:first-child { width: 20px; text-align: center; color: var(--accent-color); }
.area-box .tab-btn:hover { background: var(--bg-light); }
.area-box .tab-btn.active { background: var(--primary-color); color: #fff; }
.area-box .tab-btn.active i:first-child { color: #fff; }
/* Grupos dentro de uma área (Elementos, Ajude o Parque): botão que abre uma caixa flutuante com as abas do grupo */
.area-grupo { margin: 8px 4px 2px; border-left: 3px solid var(--accent-color); background: var(--bg-light); border-radius: 0 10px 10px 0; }
.area-grupo-bt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--primary-color); cursor: pointer; padding: 11px 14px; border-radius: 0 10px 10px 0; }
.area-grupo-bt > i:first-child { width: 20px; text-align: center; color: var(--accent-color); }
.area-grupo-bt .gseta { margin-left: auto; font-size: .8rem; transition: transform .2s; }
.area-grupo-bt:hover, .area-grupo.aberto > .area-grupo-bt { background: #fff; }
.area-grupo.tem-ativa > .area-grupo-bt { background: var(--primary-color); color: #fff; }
.area-grupo.tem-ativa > .area-grupo-bt > i:first-child { color: #fff; }
.grupo-flutuante { display: none; position: fixed; z-index: 60; width: 300px; max-width: calc(100vw - 16px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; box-shadow: 0 14px 34px rgba(44,62,80,.28); padding: 8px; }
.area-grupo.aberto > .grupo-flutuante { display: block; }
.grupo-sub { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary-color); padding: 10px 14px 4px; margin-top: 6px; border-top: 1px solid var(--border-color); }
@media (max-width: 720px) { .grupo-flutuante { position: static; width: auto; max-width: none; max-height: none; box-shadow: none; border: 0; padding: 0 0 6px 8px; } .area-grupo.aberto .gseta { transform: rotate(90deg); } }
/* Tela inicial: as caixas ficam abertas, dentro do fluxo da página */
.areas.inicio .area-box { display: block; position: static; margin-top: 10px; max-height: none; box-shadow: 0 6px 18px rgba(44,62,80,.1); }
.areas.inicio .area-titulo { cursor: default; }
.areas.inicio .area-seta { display: none; }
@media (max-width: 720px) { .areas, .areas:has(.area-col:only-child) { grid-template-columns: 1fr; } .area-titulo { padding: 16px 18px; } }
.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, .areas, .whatsapp-float, .chat-float, .email-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; }
}

/* Login: abas Entrar / Criar conta e situação dos cadastros */
.login-tabs { margin-bottom: 18px; }
.badge.st-pendente { background: #b8620f; }
.badge.st-aprovado { background: #2e7d32; }
.badge.st-recusado { background: #6c7a7b; }
.badge.st-bloqueado { background: #b3261e; }
.btn-visit.btn-bloq { background: #b3261e; }

/* ---------- Estela em 2 etapas ---------- */
.est-badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 0.72rem; font-weight: bold; white-space: nowrap; }
.est-pub { background: #e8f5e9; color: #2e7d32; }
.est-priv { background: #eceff1; color: #546e7a; }
.est-pend { background: #fff3cd; color: #8a6d00; }
.icon-btn.edit { color: var(--accent-color); }
.est-lote { margin: 18px 0; }
.est-lote summary { cursor: pointer; font-weight: 600; color: var(--primary-color); }
.est-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 14px; }
.est-seg { white-space: nowrap; }
.est-seg button { font: inherit; font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border: 1px solid var(--border-color); background: #fff; color: var(--primary-color); cursor: pointer; }
.est-seg button:first-child { border-radius: 6px 0 0 6px; }
.est-seg button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.est-seg button.on { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* ---------- Relatório consolidado: Orçamento e Fluxo Financeiro (Previsto x Realizado) ---------- */
.rf-scroll { overflow: auto; max-height: 75vh; border: 1px solid var(--border-color); border-radius: 8px; }
.rf-tab { border-collapse: separate; border-spacing: 0; font-size: 0.8rem; min-width: 100%; }
.rf-tab th, .rf-tab td { border-bottom: 1px solid var(--border-color); border-right: 1px solid #eef1f1; padding: 5px 8px; text-align: right; white-space: nowrap; background: #fff; }
.rf-tab thead th { position: sticky; top: 0; z-index: 2; background: var(--primary-color); color: #fff; text-align: center; font-weight: 600; }
.rf-tab thead tr:nth-child(2) th { top: 31px; background: #3d566e; font-size: 0.72rem; }
.rf-tab thead th.rf-r { background: #6b6a52; }
.rf-tab .rf-l { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 210px; max-width: 260px; background: #fff; border-right: 2px solid var(--border-color); }
.rf-tab thead .rf-l { z-index: 3; background: var(--primary-color); }
.rf-tab td.rf-r, .rf-tab th.rf-r { background: #f3f1e6; }
.rf-tab td.rf-r { min-width: 84px; }
.rf-tab td.rf-p { min-width: 84px; color: #555; }
.rf-tab .rf-tot { font-weight: 700; border-left: 1px solid var(--border-color); }
.rf-tab td.rf-p input { width: 82px; font: inherit; font-size: 0.8rem; text-align: right; padding: 3px 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; }
.rf-tab td.rf-p input:hover { border-color: var(--border-color); background: #fff; }
.rf-tab td.rf-p input:focus-visible { outline: 2px solid var(--accent-color); background: #fff; }
.rf-tab td.rf-c, .rf-tab th.rf-c { text-align: left; min-width: 180px; }
.rf-tab td.rf-c input { width: 100%; font: inherit; font-size: 0.8rem; padding: 3px 4px; border: 1px solid transparent; border-radius: 4px; background: transparent; box-sizing: border-box; }
.rf-tab td.rf-c input:hover { border-color: var(--border-color); background: #fff; }
.rf-banda th, .rf-banda td { background: #dfe7ec !important; color: var(--primary-color); font-weight: 700; text-transform: uppercase; font-size: 0.74rem; letter-spacing: .03em; }
.rf-total th, .rf-total td { font-weight: 700; background: #f4f7f8; }
.rf-total td.rf-r { background: #ebe8d6; }
.rf-saldo th, .rf-saldo td { font-style: italic; }
.rf-tab td.ok { color: #2e7d32; }
.rf-tab td.baixo, .rf-tab td.acima, .rf-tab td.neg { color: #b3261e; }
.rf-ex { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: var(--primary-color); cursor: pointer; text-align: left; }
.rf-ex:hover, .rf-ex:focus-visible { text-decoration: underline; outline: none; }
.rf-rep { float: right; font-size: 0.65rem; background: none; border: 0; color: #9aa7a8; cursor: pointer; padding: 2px 4px; }
.rf-rep:hover, .rf-rep:focus-visible { color: var(--accent-color); outline: none; }
.rf-det td { text-align: left; background: #fafcfc; white-space: normal; }
.rf-det-in { max-width: 900px; position: sticky; left: 8px; }
.rf-det .doc-table { display: table; font-size: 0.78rem; }
@media print { @page { size: A4 landscape; margin: 10mm; } .rf-scroll { overflow: visible; max-height: none; border: 0; } .rf-tab { font-size: 6.5pt; } .rf-tab th, .rf-tab td { padding: 2px 3px; } .rf-tab .rf-l { position: static; min-width: 0; } .rf-tab thead th { position: static; } .rf-tab td.rf-p input, .rf-tab td.rf-c input { width: 100%; font-size: 6.5pt; border: 0; } .rf-rep, .rf-det { display: none !important; } .rf-tab .rf-r, .rf-tab th.rf-r { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* Encaminhamentos das atas (documentos.js): campos ocupam a largura da coluna */
.enc-linha input:not([type=checkbox]), .enc-linha select { width: 100%; box-sizing: border-box; }
.enc-lista select { font-size: .85em; margin-left: 4px; }

/* Lojinha: miniatura no painel e vitrine pública */
.loja-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-light); color: var(--accent-color); }
.loja-card { display: flex; flex-direction: column; gap: 6px; }
.loja-card h3 { margin: 6px 0 0; }
.loja-card p { margin: 0; }
.loja-foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg-light); }
.loja-foto-ph { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--accent-color); }
.loja-cat { font-size: .8rem; color: #777; text-transform: uppercase; letter-spacing: .05em; }
.loja-preco { font-weight: 700; font-size: 1.1rem; color: var(--primary-color); }
.loja-card .btn-visit { align-self: flex-start; margin-top: auto; }
.loja-card .badge-emprestado { align-self: flex-start; margin-top: auto; }
.loja-foto-ph { aspect-ratio: 16 / 7; }

/* Rifa Solidária */
.rifa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; margin: 6px 0; }
.rifa-n { text-align: center; font-size: .72rem; padding: 4px 0; border: 1px solid var(--border-color); border-radius: 4px; background: #fff; color: var(--primary-color); }
.rifa-n.ocupado { background: #e8f5e9; color: #9aa; text-decoration: line-through; }
.rifa-pay { white-space: pre-wrap; }
.rifa-resultado { border-top: 1px solid var(--border-color); padding-top: 8px; }
.rifa-ganhador { font-size: 1.1rem; }
.rifa-ok { border-left: 4px solid #2e7d32; }

/* Vaquinha Coletiva: gráfico da campanha (anel de % + meta / arrecadado / falta) */
.vq-grafico { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 10px 0; }
.vq-grafico svg { flex: 0 0 auto; }
.vq-arco { transition: stroke-dasharray .6s ease; }
.vq-grafico { flex-direction: column; align-items: stretch; }
.vq-barra-topo { display: flex; align-items: baseline; gap: 6px; }
.vq-barra-topo .vq-pct { font-size: 1.6rem; color: var(--primary-color); }
.vq-barra-topo span { color: #555; }
.vq-barra { height: 18px; background: #e3ece8; border-radius: 999px; overflow: hidden; }
.vq-barra-enche { height: 100%; background: var(--accent-color); border-radius: 999px; transition: width .6s ease; }
.vq-cheia .vq-barra-enche { background: #2e7d32; }
.vq-valores { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; flex: 1 1 220px; }
.vq-valores div { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; }
.vq-valores span { display: block; font-size: .78rem; color: #777; }
.vq-valores strong { font-size: 1.05rem; color: var(--primary-color); }
.vq-valores .vq-arrec { color: #2e7d32; }
.vq-pay { white-space: pre-wrap; }
.vq-obj { white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) { .vq-arco, .vq-barra-enche { transition: none; } }


/* ---------- Atividades (lista e artigo) ---------- */
.atv-abas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.atv-abas a { padding: 8px 16px; border: 1px solid var(--border-color); border-radius: 999px; text-decoration: none; color: var(--primary-color); font-weight: 600; font-size: 0.9rem; background: #fff; }
.atv-abas a:hover, .atv-abas a:focus-visible { border-color: var(--accent-color); }
.atv-abas a.on { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.atv-lista { display: flex; flex-direction: column; gap: 18px; }
.atv-item { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 14px; }
.atv-foto { flex: 0 0 160px; display: block; }
.atv-img { display: block; width: 160px; height: 120px; object-fit: cover; border-radius: 8px; }
.atv-sem-foto { display: flex; align-items: center; justify-content: center; background: #eef4f2; color: var(--accent-color); font-size: 2rem; }
.atv-txt { flex: 1 1 auto; min-width: 0; }
.atv-txt h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.atv-txt h3 a { color: var(--primary-color); text-decoration: none; }
.atv-txt h3 a:hover, .atv-txt h3 a:focus-visible { text-decoration: underline; }
.atv-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0; font-size: 0.82rem; color: #55656a; }
.atv-cat { background: var(--primary-color); color: #fff; border-radius: 4px; padding: 2px 8px; font-weight: 600; }
.atv-ext { background: #fff3e0; color: #8a4b00; border-radius: 4px; padding: 2px 8px; font-weight: 600; }
.atv-lide { margin: 0 0 8px; text-align: left; }
.atv-mais { font-weight: 700; color: var(--accent-color); text-decoration: none; }
.atv-mais:hover, .atv-mais:focus-visible { text-decoration: underline; }
.atv-artigo { max-width: 820px; margin: 0 auto; }
.atv-titulo { margin: 8px 0 12px; line-height: 1.25; }
.atv-lide-grande { font-size: 1.1rem; font-weight: 600; color: var(--primary-color); }
.atv-figura { margin: 16px 0; }
.atv-figura img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.atv-corpo p { text-align: left; line-height: 1.7; margin: 0 0 14px; }
.atv-voltar { font-size: 0.9rem; }
.atv-autor { margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--border-color); }
.atv-autor i { color: var(--accent-color); margin-right: 4px; }
.atv-outras { margin-top: 26px; background: #f4f8f7; border-radius: 10px; padding: 16px 20px; }
.atv-outras h3 { margin: 0 0 10px; }
.atv-outras ul { margin: 0; padding-left: 18px; }
.atv-outras li { margin-bottom: 6px; }
.atv-outras small { color: #66777c; }
@media (max-width: 600px) {
    .atv-item { flex-direction: column; }
    .atv-foto, .atv-img { width: 100%; flex-basis: auto; }
    .atv-img { height: 190px; }
}


/* ---------- Comunicado por e-mail ---------- */
.rodape-news { margin: 0 0 10px; }
.rodape-news a { color: inherit; text-decoration: underline; }
.emkt-bar { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.emkt-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 3000; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 16px; }
.emkt-box { background: #fff; border-radius: 10px; width: 100%; max-width: 1100px; padding: 18px 20px; }
.emkt-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.emkt-top h3 { margin: 0; }
.emkt-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.emkt-prev iframe { width: 100%; height: 420px; border: 1px solid var(--border-color); border-radius: 6px; background: #f4f6f6; }
.emkt-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
@media (max-width: 800px) { .emkt-cols { grid-template-columns: 1fr; } }

/* ===== Menu principal numa única linha, em todos os idiomas (computador e tablet) =====
   Os textos em francês/alemão são mais longos; fonte, espaços e margens encolhem com a largura da tela para tudo caber na mesma linha. */
@media (min-width: 769px) {
    header nav { flex-wrap: nowrap; max-width: none; width: 100%; padding: 0 clamp(6px, 1vw, 20px); gap: clamp(0px, 0.35vw, 10px); }
    header nav > a, header nav .nav-dropdown > a, header nav a.no-menu { font-size: clamp(0.58rem, 1.05vw, 0.75rem); padding: 6px clamp(3px, 0.55vw, 10px); white-space: nowrap; }
    header nav .nav-grupo-ajuda { gap: clamp(0px, 0.35vw, 10px); }
    header nav .nav-grupo-ajuda > a { font-size: clamp(0.58rem, 1.05vw, 0.75rem); padding: 6px clamp(3px, 0.55vw, 10px); white-space: nowrap; }
}

/* ===== Celular: no topo ficam só os pictogramas (globo de idiomas e pessoa + cadeado de Entrar), alinhados pelo topo, à esquerda do botão ☰ ===== */
@media (max-width: 768px) {
    .btn-entrar { font-size: 0; gap: 0; width: 42px; height: 38px; padding: 0; justify-content: center; top: 8px; right: 60px; }
    .btn-entrar i { font-size: 1.05rem; }
    #pr-idioma.no-topo { top: 8px !important; }
    #pr-idioma.no-topo .pri-bt { width: 42px; height: 38px; min-height: 38px; padding: 0 !important; gap: 0; justify-content: center; }
    #pr-idioma.no-topo .pri-bt i { font-size: 1.05rem; }
    #pr-idioma.no-topo .pri-cod { display: none; }
    header:has(#pr-idioma.no-topo) .brand { padding-right: var(--pr-brand-dir, 160px) !important; }
}

/* WhatsApp: Canal (página inicial e Atividades) e Comunidade (Voluntário). Links em script.js (PR_WHATSAPP). */
.wz-bloco { display: flex; align-items: center; gap: 18px; background: #f0faf5; border: 1px solid #b9e3cc; border-left: 5px solid #25d366; border-radius: 8px; padding: 18px 22px; margin: 0 0 25px; }
.wz-bloco > i { font-size: 2.4rem; color: #0b7065; flex-shrink: 0; }
.wz-bloco > div { flex: 1; }
.wz-bloco h2 { margin: 0 0 6px; font-size: 1.2rem; }
.wz-bloco p { margin: 0; }
.wz-bloco.wz-compacto { padding: 14px 18px; }
.wz-bloco.wz-compacto > i { font-size: 1.9rem; }
.btn-visit.wz-btn { background: #0b7065; white-space: nowrap; }
.btn-visit.wz-btn:hover, .btn-visit.wz-btn:focus-visible { background: #075249; }
@media (max-width: 640px) { .wz-bloco { flex-direction: column; align-items: flex-start; } .btn-visit.wz-btn { white-space: normal; } }
@media print { .wz-bloco { display: none; } }

/* Biblioteca de Silo (biblioteca-silo.html) */
.lead-text.bib-intro { max-width: none; } /* acompanha a largura da caixa de pesquisa, continua justificado */
.bib-busca { position: relative; margin: 18px 0 10px; }
.bib-busca i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #7a8a99; }
.bib-busca input { width: 100%; box-sizing: border-box; padding: 14px 16px 14px 44px; font-size: 1.05rem; border: 2px solid #cfd8e0; border-radius: 10px; }
.bib-busca input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(52,152,219,.2); }
.bib-filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 14px; align-items: end; }
.bib-limpar .btn-visit { width: 100%; background: #6c7a7b; }
.bib-secoes { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.bib-chip { border: 1px solid #cfd8e0; background: #fff; color: var(--primary-color); border-radius: 18px; padding: 7px 13px; font-size: .88rem; cursor: pointer; font-family: inherit; }
.bib-chip span { display: inline-block; min-width: 18px; margin-left: 4px; padding: 0 6px; border-radius: 9px; background: #eef2f5; font-size: .78rem; }
.bib-chip:hover, .bib-chip:focus-visible { border-color: var(--accent-color); }
.bib-chip.ativo { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.bib-chip.ativo span { background: rgba(255,255,255,.2); }
.bib-cont { color: #5a6b7a; font-size: .9rem; margin: 10px 0; }
.bib-grupo h2 { font-size: 1.15rem; margin: 26px 0 6px; padding-bottom: 6px; border-bottom: 2px solid #e3e9ee; }
.bib-grupo h2 small { color: #7a8a99; font-weight: 400; font-size: .85rem; }
.bib-lista { list-style: none; margin: 0; padding: 0; }
.bib-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; padding: 14px 4px; border-bottom: 1px solid #e9eef2; align-items: start; }
.bib-data { font-weight: 600; color: var(--primary-color); font-size: .9rem; padding-top: 2px; }
.bib-titulo { font-size: 1.02rem; margin: 0 0 3px; }
.bib-orig { margin: 0 0 4px; color: #5a6b7a; font-size: .88rem; }
.bib-desc { margin: 0 0 6px; font-size: .92rem; }
.bib-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: #6a7b8a; }
.bib-sec { color: var(--primary-color); font-weight: 600; }
.bib-acoes { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.bib-formatos { display: flex; gap: 6px; }
.bib-fmt { width: 28px; height: 28px; border-radius: 50%; background: #eef4f9; color: var(--primary-color); display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; }
.bib-abrir { white-space: nowrap; font-size: .85rem; padding: 7px 12px; }
.bib-fonte { color: #7a8a99; font-size: .74rem; }
.bib-item mark { background: #fff2a8; padding: 0 1px; border-radius: 2px; }
.bib-vazio { background: #f7f9fa; border-radius: 8px; padding: 18px 20px; margin-top: 10px; }
.bib-acervo { background: #f4f7fa; border-radius: 10px; padding: 20px 24px; margin-top: 30px; }
.bib-acervo h2 { margin-top: 0; font-size: 1.2rem; }
.bib-totais { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.bib-totais div { background: #fff; border-radius: 8px; padding: 12px; text-align: center; }
.bib-totais strong { display: block; font-size: 1.4rem; color: var(--primary-color); }
.bib-totais span { font-size: .82rem; color: #5a6b7a; }
.bib-nota { font-size: .78rem; color: #7a8a99; }
@media (max-width: 640px) {
  .bib-item { grid-template-columns: 1fr; gap: 6px; }
  .bib-acoes { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}
@media print { .bib-busca, .bib-filtros, .bib-secoes, .bib-acoes .btn-visit { display: none; } }

/* ===== Produções de Escola (v49): caixa flutuante de parques e repetidas ===== */
.prod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.lead-text.prod-intro { max-width: none; }
.prod-h2 { font-size: 1.3rem; margin: 10px 0 6px; }
.prod-total { color: #5a6b7a; margin: 0 0 10px; }
.prod-legenda { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.prod-selo { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; border: 1px solid transparent; }
.prod-selo.n2 { background: #fff6d6; color: #7a5b00; border-color: #f0d77a; }
.prod-selo.n3 { background: #ffe7cc; color: #8a4500; border-color: #f3b878; }
.prod-selo.n4 { background: #fbd9d6; color: #8e1f17; border-color: #ec9d96; }
.prod-selo.n5 { background: #a31d21; color: #fff; border-color: #a31d21; }
.prod-cont { color: #5a6b7a; font-size: .9rem; margin: 8px 0; }
.prod-limpar { background: none; border: 0; color: var(--accent-color); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.prod-lista { list-style: none; margin: 0; padding: 0; }
.prod-item { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 13px 10px; border-bottom: 1px solid #e9eef2; border-left: 4px solid transparent; }
.prod-item.n2 { border-left-color: #f0d77a; } .prod-item.n3 { border-left-color: #f3b878; }
.prod-item.n4 { border-left-color: #ec9d96; } .prod-item.n5 { border-left-color: #a31d21; }
.prod-item .prod-selo { align-self: start; justify-self: start; }
.prod-titulo { margin: 0 0 2px; font-weight: 600; color: var(--primary-color); }
.prod-autor { margin: 0 0 4px; font-size: .88rem; color: #5a6b7a; }
.prod-onde { margin: 0; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.prod-parque { display: inline-block; padding: 1px 9px; border-radius: 10px; background: #eef4f9; color: var(--primary-color); text-decoration: none; font-size: .8rem; }
.prod-parque:hover, .prod-parque:focus-visible { background: var(--accent-color); color: #fff; }
.prod-parque.ativo { background: var(--primary-color); color: #fff; }
.prod-vazio { background: #f7f9fa; border-radius: 8px; padding: 16px 18px; }
.prod-nota { font-size: .8rem; color: #7a8a99; margin-top: 12px; }



/* Caixa flutuante */
.prod-caixa { position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow-y: auto; background: #fff; border: 1px solid #dfe6ec; border-radius: 12px; box-shadow: 0 6px 22px rgba(44,62,80,.12); padding: 14px 14px 10px; }
.prod-cx-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prod-cx-topo h2 { font-size: 1.02rem; margin: 0; color: var(--primary-color); }
.prod-cx-fechar { display: none; background: none; border: 0; font-size: 1.2rem; color: #6a7b8a; cursor: pointer; }
.prod-cx-dica { font-size: .76rem; color: #6a7b8a; margin: 6px 0 8px; line-height: 1.4; }
.prod-cx-todos { width: 100%; border: 1px solid #cfd8e0; background: #f7f9fa; border-radius: 8px; padding: 6px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--primary-color); margin-bottom: 6px; }
.prod-cx-lista { list-style: none; margin: 0; padding: 0; }
.prod-cx-lista > li { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: start; padding: 5px 4px; border-bottom: 1px solid #eef2f5; border-radius: 6px; }
.prod-cx-lista > li.ativo { background: #eaf3fb; }
.prod-cx-lista summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; line-height: 1.25; }
.prod-cx-lista summary::-webkit-details-marker { display: none; }
.prod-cx-nome { font-weight: 600; color: var(--primary-color); font-size: .92rem; }
.prod-cx-nome::before { content: '\25B8 '; color: #8a9aa8; }
details[open] .prod-cx-nome::before { content: '\25BE '; }
.prod-cx-pais { font-size: .74rem; color: #7a8a99; padding-left: 13px; }
.prod-cx-links { list-style: none; margin: 4px 0 2px; padding: 0 0 0 13px; font-size: .82rem; line-height: 1.5; }
.prod-cx-links a { text-decoration: none; }
.prod-cx-links i { font-size: .65rem; }
.prod-cx-filtro { border: 1px solid #cfd8e0; background: #fff; border-radius: 12px; padding: 1px 8px; font: inherit; font-size: .75rem; cursor: pointer; color: var(--primary-color); white-space: nowrap; }
.prod-cx-filtro:hover, .prod-cx-filtro:focus-visible, .ativo > .prod-cx-filtro { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.prod-cx-zero { font-size: .75rem; color: #a0adb8; padding: 1px 8px; }
.prod-abrir { display: none; }

@media (max-width: 1099px) {
  .prod-layout { grid-template-columns: 1fr; }
  .prod-caixa { position: fixed; top: auto; left: 12px; right: 12px; bottom: 76px; max-height: 70vh; z-index: 1001; display: none; }
  .prod-caixa.aberta { display: block; }
  .prod-cx-fechar { display: block; }
  .prod-abrir { display: inline-flex; align-items: center; gap: 7px; position: fixed; left: 16px; bottom: 20px; z-index: 1000; background: var(--primary-color); color: #fff; border: 0; border-radius: 26px; padding: 12px 18px; font: inherit; font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }
}
@media (max-width: 600px) {
  .prod-item { grid-template-columns: 1fr; gap: 6px; }
}
/* Produções de Escola (v54): menu flutuante de Parques e catálogo de cada Parque */
.prod-menu { list-style: none; margin: 8px 0 0; padding: 0; }
.prod-op { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 7px 8px; font: inherit; cursor: pointer; color: var(--primary-color); }
.prod-op:hover, .prod-op:focus-visible { background: #eef4f9; }
.prod-op.ativo { background: var(--primary-color); color: #fff; }
.prod-op-nome { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; line-height: 1.25; }
.prod-op-nome small { font-weight: 400; font-size: .74rem; opacity: .75; }
.prod-op-n { font-size: .75rem; min-width: 30px; text-align: center; padding: 1px 7px; border-radius: 10px; background: #eef2f5; color: var(--primary-color); }
.prod-op.ativo .prod-op-n { background: rgba(255,255,255,.2); color: #fff; }
.prod-op-n.zero { color: #a0adb8; }
.prod-h2 small { font-size: .8rem; color: #7a8a99; font-weight: 400; }
.prod-links-parque { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.prod-btn { font-size: .85rem; padding: 7px 12px; }
.prod-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.prod-cats a { border: 1px solid #cfd8e0; border-radius: 16px; padding: 4px 12px; font-size: .85rem; text-decoration: none; color: var(--primary-color); background: #fff; }
.prod-cats a span { font-size: .75rem; color: #7a8a99; margin-left: 3px; }
.prod-cat { font-size: 1.08rem; margin: 24px 0 6px; padding-bottom: 6px; border-bottom: 2px solid #e3e9ee; scroll-margin-top: 140px; }
.prod-cat small { color: #7a8a99; font-weight: 400; font-size: .82rem; }
.prod-autor-cab { font-weight: 600; color: #5a6b7a; font-size: .85rem; margin: 12px 0 2px; padding-left: 4px; }
.prod-lista-parque .prod-item { grid-template-columns: 1fr; padding: 7px 10px; }
.prod-lista-parque .prod-item.unica { border-left-color: #e3e9ee; }
.prod-lista-parque .prod-titulo { font-weight: 500; }
.prod-lista-parque .prod-onde { margin-top: 3px; }
#prod-titulo-vista { scroll-margin-top: 140px; }
#prod-titulo-vista:focus { outline: none; }

/* Briefing para o Claude (Comunicação) */
.bf-bloco { margin: 22px 0 6px; padding-bottom: 4px; border-bottom: 2px solid #e3e9ee; }
.bf-grupo { border: 1px solid #dfe6ec; border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.bf-grupo legend { font-weight: 600; padding: 0 6px; }
.bf-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.bf-check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.bf-check input { width: 20px; height: 20px; }
.bf-passos { font-size: 1.05rem; line-height: 1.7; }
.bf-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.bf-rotulo { display: block; font-weight: 600; margin: 12px 0 4px; }
.bf-saida { width: 100%; font-family: Consolas, 'Courier New', monospace; font-size: .9rem; line-height: 1.5; border: 1px solid #cfd8e0; border-radius: 8px; padding: 10px; }

/* Área restrita aberta pelo app CONecta Retiro (app/ferramenta.html ou area-restrita.html?app=1):
   parece uma tela do app: barra azul no topo, só a ferramenta escolhida, letras maiores e nada mais largo que o celular. */
body.modo-app { background: #f4f7f9; font-size: 17px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body.modo-app > header, body.modo-app > footer, body.modo-app .page-hero, body.modo-app .whatsapp-float { display: none !important; }
body.modo-app #app .painel-top, body.modo-app #areas, body.modo-app #emkt-bar { display: none !important; }
.app-barra { display: none; }
body.modo-app .app-barra { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 900; background: #1d4a7a; color: #fff;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px; min-height: 60px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.app-barra-titulo { flex: 1; min-width: 0; text-align: center; font-size: 1.12rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-barra-bt { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 48px; padding: 4px 6px;
  color: #fff !important; text-decoration: none; font-size: .78rem; font-weight: 700; border-radius: 12px; }
.app-barra-bt i { font-size: 1.25rem; }
.app-barra-bt:active, .app-barra-bt:focus-visible { background: rgba(255,255,255,.18); outline: 3px solid #f2b705; outline-offset: 0; }
body.modo-app .container { max-width: 100%; padding: 12px 10px 40px; margin: 0; }
body.modo-app #tab.panel { padding: 16px 14px; border-radius: 16px; margin: 0; box-shadow: none; border: 1px solid #dfe6ec; }
body.modo-app #tab h3, body.modo-app #tab .section-title { font-size: 1.25rem; line-height: 1.3; }
/* abas internas da ferramenta: uma linha que desliza para o lado */
body.modo-app #tab .tabs, body.modo-app #tab .tabs.sub { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 2px 2px 10px; margin: 0 -4px 14px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
body.modo-app #tab .tabs .tab-btn { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; min-height: 46px; font-size: .95rem; border-radius: 23px; padding: 10px 16px; }
/* formulários do tamanho do dedo */
body.modo-app #tab input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]), body.modo-app #tab select, body.modo-app #tab textarea {
  width: 100%; max-width: 100%; font-size: 1rem; min-height: 48px; border-radius: 12px; box-sizing: border-box; }
body.modo-app #tab textarea { min-height: 96px; }
body.modo-app #tab input[type=checkbox], body.modo-app #tab input[type=radio] { width: 24px; height: 24px; }
body.modo-app #tab .btn-visit, body.modo-app #tab button.btn-visit { min-height: 46px; font-size: 1rem; border-radius: 12px; }
body.modo-app #tab .form-row, body.modo-app #tab fieldset { max-width: 100%; min-width: 0; }
/* nada mais largo que o celular: tabelas e conteúdos largos deslizam para o lado */
body.modo-app #tab table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.modo-app #tab img, body.modo-app #tab iframe, body.modo-app #tab video, body.modo-app #tab canvas { max-width: 100%; height: auto; }
body.modo-app #tab pre, body.modo-app #tab code { white-space: pre-wrap; word-break: break-word; }
@media (max-width: 700px) { body.modo-app #tab .emkt-cols { display: block; } }

/* Página Entrar: chamada para o app CONecta Retiro */
.app-promo { display: grid; grid-template-columns: 80px 1fr; gap: 12px 16px; align-items: center; margin-top: 18px; }
.app-promo img { border-radius: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.15); background: #fff; }
.app-promo h3 { margin: 0 0 4px; }
.app-promo p { margin: 0 0 4px; }
.app-promo .app-ver { font-size: .9rem; color: #555; }
.app-promo .app-novo { grid-column: 1 / -1; font-size: .9rem; }
.app-promo .btn-visit { grid-column: 1 / -1; justify-content: center; text-align: center; }

/* Aprovação de cadastro com responsabilidades */
.aprova-card { border: 2px solid #d6dde4; border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; background: #fff; }
.aprova-card .funcoes label { display: block; margin: 4px 0; }

/* ---------- Notícias (noticias.html e noticias-conecta.html) ---------- */
.nc-trilha { font-size: 0.85rem; color: #667; margin: 0 0 6px; }
.nc-grade { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; margin-top: 18px; }
.nc-artigo { background: #fff; border: 1px solid var(--border-color); border-top: 4px solid var(--accent-color); border-radius: 8px; padding: 22px 26px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 18px; }
.nc-data { margin: 0 0 8px; font-size: 0.82rem; color: #667; text-transform: uppercase; letter-spacing: 0.03em; }
.nc-titulo { margin: 0 0 14px; font-size: 1.55rem; line-height: 1.3; color: var(--primary-color); }
.nc-destaque .nc-titulo { font-size: 1.3rem; }
.nc-lide { font-size: 1.12rem; line-height: 1.65; color: #333; margin: 0 0 16px; font-weight: 500; }
.nc-corpo { border-top: 1px solid var(--border-color); padding-top: 14px; margin-bottom: 8px; }
.nc-corpo h3 { font-size: 1.12rem; color: var(--primary-color); margin: 20px 0 8px; }
.nc-corpo p, .nc-corpo li { line-height: 1.7; }
.nc-corpo ul { padding-left: 20px; }
.nc-aviso { margin: 0 0 10px; font-size: 0.9rem; }
.nc-lateral { background: #f4f7fa; border-left: 4px solid var(--accent-color); border-radius: 6px; padding: 16px 18px; position: sticky; top: 90px; }
.nc-lateral h2 { font-size: 1rem; margin: 0 0 10px; color: var(--primary-color); }
.nc-lateral ul { list-style: none; margin: 0; padding: 0; }
.nc-lateral li { padding: 7px 0; border-bottom: 1px solid #e0e6ea; }
.nc-lateral li:last-child { border-bottom: 0; }
.nc-lateral .vazio { font-size: 0.88rem; margin: 0; }
@media (max-width: 800px) { .nc-grade { grid-template-columns: 1fr; } .nc-lateral { position: static; } .nc-artigo { padding: 18px; } .nc-titulo { font-size: 1.3rem; } }
