/* ============================================================
   MODULES.CSS — Biblioteca de componentes reutilizáveis
   Estrutura/grelha/responsividade -> Bootstrap (no HTML).
   Aqui vive só a IDENTIDADE visual de cada módulo.

   ÍNDICE
   01 — Utilitários (revelar, voltar-topo)
   02 — Secções (títulos/paddings)
   03 — Cabeçalho
   04 — Banner (topo)
   05 — Números
   06 — Sobre
   07 — Imagem em destaque
   08 — Cartões de valores (missão/visão/valores)
   09 — Cartões de serviço (respostas / cultura)
   10 — Carrossel "APOIO em Ação"
   11 — Documentos
   12 — Parceiros (marquee de logótipos)
   13 — Como pode ajudar
   14 — Rodapé
   15 — Introdução da história
   16 — Galeria a passar (marquee de imagens)
   17 — Testemunho
   18 — Equipas
   19 — Equipa em destaque
   20 — Estrutura das equipas
   21 — Órgãos sociais
   22 — Conselho Fiscal + Direção
   23 — Página Intervenção Social (intro + faixa de imagem)
   24 — Bloco de projeto (imagem + texto + saber mais)
   25 — Menu mobile (hamburguer + offcanvas)
   26 — Página Infância (intro + vídeo)
   27 — Creche Ninho da Cegonha
   28 — Pilares (Cuidar / Acarinhar / Educar)
   29 — Carrossel de atividades (Infância)
   30 — Equipa da creche (Infância)
   31 — Dados da creche (capacidade + horário)
   32 — Salas da creche
   33 — Experiência e equipa das salas
   34 — Botão "Saber mais" (com seta)
   35 — Salas interativas (Infância)
   36 — Página de erro (404)
   ============================================================ */


/* ===== 01 — UTILITÁRIOS ===================================== */
.revelar { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.revelar.visivel { opacity: 1; transform: none; }
/* Cascata: acrescenta revelar-2 / revelar-3 / revelar-4 ao lado de .revelar */
.revelar-2 { transition-delay: .10s; }
.revelar-3 { transition-delay: .20s; }
.revelar-4 { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) { .revelar { opacity: 1; transform: none; transition: none; } }

.voltar-topo {
    position: fixed; right: 28px; bottom: 28px; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(93,159,205,.35); color: var(--azul-botao);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s ease, background .25s ease;
}
.voltar-topo.visivel { opacity: 1; visibility: visible; transform: translateY(0); }
.voltar-topo:hover { background: rgba(93,159,205,.7); color: var(--branco); }
.voltar-topo svg { width: 26px; height: 26px; }


/* ===== 02 — SECÇÕES ======================================== */
.seccao         { padding: 90px 0; }
.seccao-pequena { padding: 60px 0; }
.seccao-grande  { padding: 120px 0; }
.seccao-cabecalho { text-align: center; max-width: 880px; margin: 0 auto 50px; }
.seccao-cabecalho > h2 { font-size: 2.6rem; font-weight: 800; margin-bottom: 14px; }
.seccao-cabecalho > p  { font-size: 1.35rem; font-weight: 600; }
@media (max-width: 768px) { .seccao-cabecalho > h2 { font-size: 2.1rem; } }


/* ===== 03 — CABEÇALHO ====================================== */
.cabecalho { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: transform .35s ease; }
.cabecalho.a-descer { transform: translateY(calc(var(--barra-topo-altura) * -1)); }
.cabecalho.a-subir  { transform: translateY(0); }

.barra-topo { height: var(--barra-topo-altura); background: var(--azul); color: var(--branco); }
.barra-topo-links { gap: 28px; }
.barra-topo-links a { color: var(--branco); font-weight: 600; font-size: .95rem; opacity: .95; }
.barra-topo-links a:hover { opacity: 1; text-decoration: underline; }
.barra-topo-botao { padding: 8px 22px; font-size: .95rem; font-weight: 700; }

.menu { background: transparent; transition: background .3s ease, box-shadow .3s ease; }
.menu-interior {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
    align-items: center;
    column-gap: 28px;
    padding-top: 14px;
    padding-bottom: 14px;
}
.logo { display: flex; align-items: center; justify-content: flex-start; }
.logo-img { height: 120px; width: auto; display: block; transition: height .3s ease; }
.cabecalho.a-descer .logo-img,
.cabecalho.a-subir  .logo-img { height: 80px; }

.menu-links { display: flex; align-items: stretch; width: 100%; }
.menu-links a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 18px 12px;
    color: var(--branco);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    transition: color .3s ease, background .3s ease;
}
.menu-links a:hover { color: var(--azul-botao); }

/* Fundo do menu ao dar scroll */
.cabecalho.a-descer .menu,
.cabecalho.a-subir  .menu { background: rgba(0,0,0,.3); box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.cabecalho.a-descer.menu-escuro .menu,
.cabecalho.a-subir.menu-escuro  .menu { background: rgba(255,255,255,.9); }

/* Texto do menu escuro quando o fundo por trás é claro */
.cabecalho.menu-escuro .menu-links a { color: var(--texto-escuro); }
.cabecalho.menu-escuro .menu-links a:hover { color: var(--azul); }

@media (max-width: 991px) {
    .menu-interior { grid-template-columns: 110px minmax(0, 1fr); column-gap: 12px; }
    .menu-links a { padding: 14px 6px; font-size: .9rem; }
    .logo-img { height: 80px; }
    .cabecalho.a-descer .logo-img, .cabecalho.a-subir .logo-img { height: 60px; }
}

@media (max-width: 767px) {
    .menu-interior { grid-template-columns: 80px minmax(0, 1fr); column-gap: 6px; }
    .menu-links { flex-wrap: wrap; }
    .menu-links a { flex-basis: 50%; padding: 8px 4px; font-size: .78rem; }
    .logo-img { max-width: 76px; height: auto; }
}


/* ===== 04 — BANNER (topo) ================================= */
.banner {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
    color: var(--branco);
    background: var(--azul) url('../img/hero.jpg') center center / cover no-repeat;
}
.banner::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.6); }
/* Variação: véu mais claro/branquissado (mesmo banner, só muda a intensidade) */
.banner--claro::before { background: rgba(255,255,255,.35); }
.banner-conteudo  { position: relative; z-index: 1; max-width: 820px; }
.banner-conteudo > h1 { font-size: clamp(45px, 6.5vw, 77px); font-weight: 800; line-height: 1.1; margin-bottom: .6rem; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.banner-conteudo > p { font-size: clamp(26px, 4vw, 43px); font-weight: 700; margin-bottom: 1.8rem; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.banner-conteudo > p + p { font-size: clamp(19px, 2.4vw, 26px); font-weight: 600; max-width: 720px; margin: 0 auto 2.4rem; text-shadow: 0 1px 4px rgba(0,0,0,.3); }


/* ===== 05 — NÚMEROS ======================================= */
.numeros-seccao { background: var(--azul-claro-fundo); }
.numero { text-align: center; }
.numero > svg {
    width: 88px; height: 88px; padding: 23px; margin: 0 auto 20px; border-radius: 50%;
    background: var(--azul-botao); color: var(--branco);
    display: block;
}
.numero > strong { display: block; font-size: 46px; font-weight: 800; color: #222; line-height: 1; margin-bottom: 8px; }
.numero > span { display: block; font-size: 18px; font-weight: 600; }


/* ===== 06 — SOBRE ========================================= */
.sobre-seccao h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: #2b2b2b; margin-bottom: 30px; }
.sobre-seccao article > p { font-size: 1.15rem; line-height: 1.7; margin-bottom: 22px; }
.sobre-seccao footer > p { margin: 0; font-style: italic; font-weight: 700; font-size: 1.25rem; }
.sobre-seccao footer > a { display: inline-flex; align-items: center; gap: 12px; }
.sobre-seccao footer > a svg { width: 22px; height: 22px; }


/* ===== 07 — IMAGEM EM DESTAQUE ============================ */
.imagem-destaque { width: 100%; height: auto; display: block; border-radius: 26px; }


/* ===== 08 — CARTÕES DE VALORES ============================ */
.cartao-valor {
    border-radius: 18px; padding: 74px 42px 86px; text-align: center; height: 100%;
    box-shadow: 0 22px 45px rgba(0,0,0,.09);
    transition: transform .35s ease, box-shadow .35s ease;
}
.cartao-valor:hover { transform: translateY(-10px); box-shadow: 0 32px 60px rgba(0,0,0,.15); }
.cartao-valor > svg { width: 48px; height: 48px; margin-bottom: 18px; transition: transform .35s ease; }
.cartao-valor:hover > svg { transform: scale(1.15); }
.cartao-valor > h3 { font-size: 1.55rem; font-weight: 800; margin-bottom: 16px; }
.cartao-valor > p  { font-size: 1.05rem; line-height: 1.65; }
.cartao-valor--missao  { background: #e9f6ee; }
.cartao-valor--visao   { background: #eaf0fc; }
.cartao-valor--valores { background: #f9eef1; }
.cartao-valor--missao  > svg { color: #3fae6b; }
.cartao-valor--visao   > svg { color: #2f6bef; }
.cartao-valor--valores > svg { color: var(--vermelho); }


/* ===== 09 — CARTÕES DE SERVIÇO (respostas / cultura) ====== */
.respostas-seccao { background: #E3F1FB; }
.cartao-servico {
    background: var(--branco); border-radius: 20px; padding: 30px 32px 34px; height: 100%;
    box-shadow: 0 16px 38px rgba(0,0,0,.07);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex; flex-direction: column;
}
.cartao-servico:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(0,0,0,.12); }
.cartao-servico > svg { width: 56px; height: 56px; padding: 13px; border-radius: 14px; margin-bottom: 20px; }
.cartao-servico > h3 { font-size: 1.32rem; font-weight: 800; margin-bottom: 12px; }
.cartao-servico > p  { font-size: .94rem; line-height: 1.6; margin-bottom: 20px; }
.cartao-servico > a  { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .98rem; margin-top: auto; align-self: flex-start; }
.cartao-servico > a svg { width: 20px; height: 20px; transition: transform .25s ease; }
.cartao-servico:hover > a svg { transform: translateX(5px); }
/* Cores do ícone por variante do cartão */
.cartao-servico--infancia   > svg { background: #e4eefb; color: #3B8ACE; }
.cartao-servico--idade      > svg { background: #efe8fc; color: #8b5cf6; }
.cartao-servico--social     > svg { background: #fde8ee; color: #e0555a; }
.cartao-servico--comunidade > svg { background: #fdf1d8; color: #eb9a1e; }
.cartao-servico--forum      > svg { background: #EF6E6B; color: #fff; }
.cartao-servico--formacao   > svg { background: #BCDEF7; color: #2f6bef; }


/* ===== 10 — CARROSSEL "APOIO EM AÇÃO" ===================== */
.acao-seccao { background: #F27168; text-align: center; }
.acao-seccao > .container > h2 { color: var(--branco); font-size: 2.6rem; font-weight: 800; margin-bottom: 34px; }
.acao-janela { max-width: 1150px; margin: 0 auto; overflow: hidden; border-radius: 26px; }
.acao-pista  { display: flex; transition: transform .5s ease; }
.acao-slide {
    min-width: 100%; position: relative; min-height: 430px; padding: 50px;
    display: flex; align-items: center; justify-content: center;
    background-size: cover; background-position: center;
}
.acao-slide::before { content: ''; position: absolute; inset: 0; background: rgba(240,105,100,.55); }
.acao-slide > p { position: relative; z-index: 1; max-width: 900px; color: var(--branco); font-size: 1.5rem; font-weight: 700; line-height: 1.5; text-shadow: 0 2px 6px rgba(0,0,0,.3); }
.acao-controlos { display: flex; justify-content: center; gap: 22px; margin: 26px 0 16px; }
.acao-seta {
    width: 56px; height: 56px; border: none; cursor: pointer; border-radius: 50%;
    background: var(--branco); color: #333;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0,0,0,.15); transition: background .2s ease, transform .1s ease;
}
.acao-seta:hover { background: #f1f1f1; }
.acao-seta:active { transform: scale(.94); }
.acao-seta svg { width: 24px; height: 24px; }
.acao-bolinhas { display: flex; justify-content: center; gap: 12px; margin-bottom: 34px; }
.acao-bolinha { width: 13px; height: 13px; border: none; cursor: pointer; border-radius: 50%; background: rgba(255,255,255,.6); transition: background .2s ease; }
.acao-bolinha.ativa { background: #c0392b; }
@media (max-width: 768px) {
    .acao-slide > p { font-size: 1.2rem; }
    .acao-slide { min-height: 360px; padding: 34px; }
    .acao-seccao > .container > h2 { font-size: 2.1rem; }
}


/* ===== 11 — DOCUMENTOS ==================================== */
.cartao-documento {
    background: #eef0f2; border-radius: 24px; padding: 40px 24px 28px; text-align: center;
    height: 100%; display: flex; flex-direction: column; align-items: center; min-height: 300px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.cartao-documento:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.cartao-documento > svg { width: 54px; height: 54px; color: #2b9fd6; margin-bottom: 22px; }
.cartao-documento > h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 20px; }
.cartao-documento > a { margin-top: auto; font-style: italic; font-weight: 700; font-size: 1.05rem; }
.cartao-documento > a:hover { text-decoration: underline; }


/* ===== 12 — PARCEIROS (marquee) ========================== */
.parceiros-seccao { background: var(--branco); text-align: center; }
.parceiros-seccao .seccao-cabecalho { max-width: 1000px; }
.parceiros-carrossel { max-width: 1180px; margin: 0 auto 55px; display: flex; align-items: center; gap: 12px; }
.parceiros-seta {
    flex: none; width: 52px; height: 52px; border: none; cursor: pointer; border-radius: 50%;
    background: var(--branco); color: #555; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: background .2s ease;
}
.parceiros-seta:hover { background: #f2f2f2; }
.parceiros-seta svg { width: 22px; height: 22px; }
.parceiros-janela { flex: 1; overflow: hidden; }
.parceiros-pista { display: flex; align-items: center; width: max-content; will-change: transform; }
.parceiros-logo { flex: none; width: 180px; height: 90px; padding: 0 20px; display: flex; align-items: center; justify-content: center; transition: filter .3s ease, opacity .3s ease; }
.parceiros-logo img { max-width: 100%; max-height: 68px; object-fit: contain; display: block; }
.parceiros-janela:hover .parceiros-logo { filter: blur(2.5px); opacity: .4; }
.parceiros-janela:hover .parceiros-logo:hover { filter: none; opacity: 1; }
.parceiros-carrossel + p { font-size: 1.6rem; font-weight: 700; line-height: 1.4; max-width: 1000px; margin: 0 auto 40px; }
.parceiros-seccao > .container > a svg { width: 34px; height: 22px; }
@media (max-width: 768px) { .parceiros-carrossel + p { font-size: 1.3rem; } }


/* ===== 13 — COMO PODE AJUDAR ============================= */
.ajuda-seccao { background: #1780c9; text-align: center; }
.ajuda-seccao > .container > h2 { color: var(--branco); font-size: 2.6rem; font-weight: 800; margin-bottom: 14px; }
.ajuda-seccao > .container > p { color: var(--branco); font-size: 1.35rem; font-weight: 600; max-width: 1050px; margin: 0 auto 50px; opacity: .95; }
.cartao-ajuda {
    background: rgba(255,255,255,.14); border-radius: 26px; padding: 36px 30px 34px; height: 100%;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}
.cartao-ajuda > svg { width: 78px; height: 78px; padding: 19px; border-radius: 50%; background: var(--branco); color: #1780c9; margin-bottom: 20px; }
.cartao-ajuda > h3 { color: var(--branco); font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.cartao-ajuda > p { color: var(--branco); font-size: 1rem; line-height: 1.6; opacity: .95; margin-bottom: 24px; }
.cartao-ajuda > strong { width: 100%; margin-top: auto; margin-bottom: 22px; padding: 18px 16px; border-radius: 16px; background: rgba(255,255,255,.22); color: var(--branco); font-weight: 800; }
.cartao-ajuda > a { background: #e7f2fb; font-weight: 800; font-size: 1.05rem; padding: 13px 34px; border-radius: 30px; }
.cartao-ajuda > a:hover { background: var(--branco); }
@media (max-width: 768px) { .ajuda-seccao > .container > h2 { font-size: 2.1rem; } }


/* ===== 14 — RODAPÉ ====================================== */
.rodape { background: #1b2a41; padding: 70px 0 30px; }
.rodape-marca { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.rodape-logo { width: 116px; background: var(--branco); border-radius: 10px; padding: 8px; flex: none; }
.rodape-logo img { width: 100%; display: block; }
.rodape-nome { color: var(--branco); font-size: 2rem; font-weight: 800; }
.rodape-lema { line-height: 1.6; margin-bottom: 26px; max-width: 360px; }
.rodape-sociais { display: flex; gap: 16px; margin-bottom: 34px; }
.rodape-social { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; color: var(--branco); transition: background .2s ease; }
.rodape-social:hover { background: rgba(255,255,255,.12); }
.rodape-social svg { width: 20px; height: 20px; }
.rodape-titulo { color: var(--branco); font-size: 1.35rem; font-weight: 800; margin-bottom: 22px; }
.rodape-contacto { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; line-height: 1.55; }
.rodape-contacto svg { width: 22px; height: 22px; color: #3B8ACE; flex: none; margin-top: 3px; }
.rodape-contacto a { color: inherit; }
.rodape-contacto a:hover { color: var(--branco); }
.rodape-links { list-style: none; padding: 0; margin: 0; }
.rodape-links li { margin-bottom: 14px; }
.rodape-links a { color: inherit; }
.rodape-links a:hover { color: var(--branco); }
.rodape-newsletter-texto { line-height: 1.6; margin-bottom: 22px; }
.rodape-input { width: 100%; padding: 16px 22px; border: none; border-radius: 30px; background: #33415a; color: var(--branco); font-family: inherit; font-size: 1rem; margin-bottom: 16px; }
.rodape-input::placeholder { color: var(--cor-placeholder); }
.rodape-subscrever { width: 100%; padding: 16px; border: none; border-radius: 30px; background: #3d9bd6; color: var(--branco); font-family: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: background .2s ease; }
.rodape-subscrever:hover { background: #2f8bc4; }
.rodape-fundo { margin-top: 45px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 26px; }
.rodape-legal { display: flex; gap: 26px; flex-wrap: wrap; }
.rodape-legal a { color: inherit; }
.rodape-legal a:hover { color: var(--branco); }
.rodape-mapa { margin-top: 45px; }
.rodape-mapa-titulo { color: var(--branco); font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 24px; }
.rodape-mapa-caixa { position: relative; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.rodape-mapa-caixa iframe { width: 100%; height: 430px; border: 0; display: block; filter: grayscale(.15); }
.rodape-mapa-botao { position: absolute; top: 16px; left: 16px; background: var(--branco); font-weight: 700; font-size: .95rem; padding: 9px 16px; border-radius: 8px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.rodape-mapa-botao:hover { background: #f2f6ff; }
.rodape-mapa-botao svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .rodape-fundo { justify-content: center; text-align: center; } }


/* ===== 15 — INTRODUÇÃO DA HISTÓRIA ========================= */
.historia-introducao { padding-top: 0; }
.historia-introducao > .container > hr { width: 3px; height: 70px; margin: 0 auto; border: 0; border-radius: 2px; background: var(--azul); opacity: 1; }
.historia-introducao > .container > hr:first-of-type { height: 160px; }
.historia-introducao > .container > p:first-of-type { margin: 24px 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: .95rem; }
.historia-introducao > .container > hr:last-of-type { margin-bottom: 48px; }
.historia-introducao > .container > p:last-of-type { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; line-height: 1.6; color: #333; max-width: 1000px; margin: 0 auto; }
.historia-introducao a { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.historia-introducao a svg { width: 34px; height: 20px; transition: transform .25s ease; }
.historia-introducao a:hover svg { transform: translateX(5px); }


/* ===== 16 — GALERIA A PASSAR (marquee de imagens) ========
   Duas filas de imagens de tamanhos variados a rolar para a
   esquerda, em loop. As imagens estao duplicadas no HTML para
   o loop ser continuo (translateX -50% = uma volta). */
.galeria-passar { padding: 40px 0 100px; }
.galeria-fila { overflow: hidden; }
.galeria-fila + .galeria-fila { margin-top: 22px; }
.galeria-pista { display: flex; align-items: flex-start; width: max-content; animation: galeria-scroll 45s linear infinite; }
.galeria-pista--baixo { align-items: flex-end; }   /* fila de cima: alinhada em baixo */
.galeria-pista--lenta { animation-duration: 65s; }
.galeria-item { flex: none; width: 300px; height: 200px; margin-right: 26px; border-radius: 20px; overflow: hidden; background: #eef2f5; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* formatos variados (aspeto "desorganizado") */
.galeria-item--alto     { width: 240px; height: 300px; }
.galeria-item--largo    { width: 380px; height: 210px; }
.galeria-item--quadrado { width: 240px; height: 240px; }
@keyframes galeria-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .galeria-pista { animation: none; } }


/* ===== 17 — TESTEMUNHO =================================== */
.testemunho h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; margin-bottom: 28px; }
.testemunho figure { max-width: 380px; margin: 0; }
.testemunho figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; display: block; }
.testemunho figcaption { text-align: center; font-size: 1.1rem; margin-top: 18px; }
.testemunho > div:last-child > p { margin-bottom: 24px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; font-size: .95rem; }
.testemunho blockquote { margin: 0; font-style: italic; line-height: 1.75; text-align: justify; }
.testemunho blockquote p { margin-bottom: 18px; }
.testemunho blockquote p:last-child { margin-bottom: 0; }

@media (min-width: 992px) {
    .testemunho > div:first-child { display: flex; flex-direction: column; }
    .testemunho figure { flex: 1; display: flex; flex-direction: column; max-width: none; }
    .testemunho figure img { flex: 1; min-height: 0; aspect-ratio: auto; }
}


/* ===== 18 — EQUIPAS ====================================== */
.equipas-seccao { overflow: hidden; background: #79bfe6; color: var(--branco); text-align: center; }
.equipas-seccao h2 { margin-bottom: 96px; color: var(--branco); font-size: clamp(2.3rem, 4vw, 3.5rem); font-weight: 800; text-shadow: 0 3px 7px rgba(0,0,0,.18); }
.cartao-equipa {
    position: relative;
    height: 100%;
    padding: 78px 48px 48px;
    border-radius: 28px;
    background: #53addb;
    box-shadow: 0 18px 38px rgba(21,91,132,.2);
}
.cartao-equipa > img {
    position: absolute;
    top: -44px;
    left: 50%;
    width: 88px;
    height: 88px;
    padding: 21px;
    border-radius: 18px;
    background: #f34f52;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.12));
}
.cartao-equipa > h3 { margin-bottom: 30px; color: var(--branco); font-size: clamp(1.45rem, 2.2vw, 2rem); font-weight: 800; }
.cartao-equipa > p { margin-bottom: 28px; color: rgba(255,255,255,.95); font-size: 1.05rem; font-weight: 600; line-height: 1.55; }
.cartao-equipa > strong { display: block; color: var(--branco); font-size: 1.05rem; line-height: 1.55; }

@media (max-width: 991px) {
    .equipas-seccao h2 { margin-bottom: 82px; }
    .equipas-seccao .row { row-gap: 88px; }
    .cartao-equipa { padding: 72px 30px 38px; }
}


/* ===== 19 — EQUIPA EM DESTAQUE =========================== */
.equipa-destaque { padding: 0 0 100px; background: var(--branco); text-align: center; }
.equipa-destaque hr { width: 3px; height: 78px; margin: 0 auto; border: 0; border-radius: 0 0 2px 2px; background: var(--azul); opacity: 1; }
.equipa-destaque h2 { margin: 14px auto; font-size: clamp(1.35rem, 2.5vw, 2rem); font-weight: 800; line-height: 1.25; text-transform: uppercase; letter-spacing: .5px; }
.equipa-destaque figure { position: relative; max-width: 1280px; margin: 0 auto; }
.equipa-destaque figure::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    z-index: 2;
    width: 92px;
    height: 24px;
    border-radius: 0 0 46px 46px;
    background: var(--branco);
    transform: translateX(-50%);
}
.equipa-destaque figure > img { width: 100%; height: 300px; border-radius: 18px; object-fit: cover; display: block; }
.equipa-destaque figcaption { max-width: 1050px; margin: 56px auto 0; color: var(--texto-escuro); font-size: 1.15rem; line-height: 1.55; }

@media (max-width: 767px) {
    .equipa-destaque { padding-bottom: 70px; }
    .equipa-destaque hr { height: 58px; }
    .equipa-destaque h2 { margin: 12px auto; }
    .equipa-destaque figure::before { width: 70px; height: 19px; }
    .equipa-destaque figure > img { height: 220px; border-radius: 14px; }
    .equipa-destaque figcaption { margin-top: 36px; font-size: 1rem; }
}


/* ===== 20 — ESTRUTURA DAS EQUIPAS ======================== */
.estrutura-equipas { background: var(--branco); }
.cartao-organograma {
    position: relative;
    height: 100%;
    padding: 48px 36px;
    border: 1px solid #dedede;
    border-radius: 32px;
    background: #f1f1f1;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.cartao-organograma > h3 {
    position: relative;
    min-height: 2.6em;
    margin: 0 0 38px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: clamp(1.55rem, 2.2vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    text-wrap: balance;
}
.cartao-organograma > h3 > span { position: relative; }
.cartao-organograma > h3 > span::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    width: 52px;
    height: 4px;
    border-radius: 3px;
    background: var(--azul);
    transform: translateX(-50%);
}
.cartao-organograma > h4 {
    margin: 25px 0 14px;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    text-wrap: balance;
}
.cartao-organograma > strong {
    display: block;
    margin: 14px 0 9px;
    font-size: 1.03rem;
    line-height: 1.35;
    text-wrap: balance;
}
.cartao-organograma > p {
    max-width: 31ch;
    margin: 0 auto 20px;
    color: #282828;
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
}
.cartao-organograma > :last-child { margin-bottom: 0; }

@media (max-width: 767px) {
    .estrutura-equipas { padding-top: 70px; padding-bottom: 70px; }
    .cartao-organograma { padding: 40px 26px; border-radius: 26px; }
    .cartao-organograma > h3 { min-height: 0; }
}


/* ===== 21 — ÓRGÃOS SOCIAIS ================================ */
.orgaos-sociais {
    position: relative;
    isolation: isolate;
    min-height: 880px;
    padding: 125px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #333 url('../img/historia/orgaossociais.webp') center / cover no-repeat;
    color: var(--branco);
    text-align: center;
}
.orgaos-sociais::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(18, 24, 30, .56);
}
.orgaos-sociais header { margin: 0 auto 62px; }
.orgaos-sociais header > h2 {
    margin-bottom: 30px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-shadow: 0 3px 8px rgba(0,0,0,.3);
}
.orgaos-sociais header > p {
    margin: 0;
    font-size: clamp(1.65rem, 3.2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 0 3px 8px rgba(0,0,0,.3);
}
.orgao-pessoa {
    height: 100%;
    padding: 25px 20px 22px;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 20px;
    background: rgba(255,255,255,.14);
    box-shadow: 0 14px 30px rgba(0,0,0,.16);
    backdrop-filter: blur(5px);
}
.orgao-pessoa > div {
    width: 98px;
    height: 98px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    color: var(--azul);
}
.orgao-pessoa svg { width: 52px; height: 52px; }
.orgao-pessoa > h3 {
    margin-bottom: 10px;
    color: var(--branco);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}
.orgao-pessoa > p {
    margin: 0;
    color: var(--branco);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 767px) {
    .orgaos-sociais { min-height: 0; padding: 80px 0; }
    .orgaos-sociais header { margin-bottom: 42px; }
    .orgaos-sociais header > h2 { margin-bottom: 20px; }
    .orgao-pessoa { max-width: 320px; margin: 0 auto; }
}


/* ===== 22 — CONSELHO FISCAL + DIREÇÃO ===================== */
.orgaos-complemento { overflow: hidden; background: var(--branco); text-align: center; }
.orgaos-grupo > h2 {
    margin-bottom: 54px;
    color: #000;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
}
.direcao-grupo { margin-top: 105px; }
.membro-orgao { height: 100%; text-align: center; }
.membro-orgao > div {
    width: 150px;
    height: 150px;
    margin: 0 auto 18px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #ddf5ff 0%, #bce9f8 67%, #9dca35 68%, #74a900 100%);
    color: var(--branco);
    box-shadow: 0 10px 22px rgba(28,73,98,.14);
}
.membro-orgao svg { width: 64px; height: 64px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.12)); }
.membro-orgao > h3 {
    margin-bottom: 9px;
    color: #000;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.membro-orgao > p {
    max-width: 24ch;
    margin: 0 auto;
    color: #000;
    font-size: 1.05rem;
    line-height: 1.4;
}
.direcao-carrossel { position: relative; padding: 0 76px; }
.direcao-janela { overflow: hidden; padding: 10px 0 18px; }
.direcao-pista {
    display: flex;
    align-items: stretch;
    gap: 42px;
    width: max-content;
    will-change: transform;
}
.direcao-pista > .membro-orgao { flex: 0 0 250px; width: 250px; }
.direcao-seta {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--branco);
    color: #202a3a;
    font-size: 2.7rem;
    line-height: 1;
    box-shadow: 0 5px 18px rgba(0,0,0,.18);
    transform: translateY(-50%);
    transition: color .2s ease, transform .2s ease;
}
.direcao-seta:hover { color: var(--azul); transform: translateY(-50%) scale(1.06); }
.direcao-anterior { left: 5px; }
.direcao-seguinte { right: 5px; }

@media (max-width: 767px) {
    .orgaos-complemento { padding-top: 80px; padding-bottom: 80px; }
    .orgaos-grupo > h2 { margin-bottom: 40px; }
    .direcao-grupo { margin-top: 80px; }
    .membro-orgao > div { width: 130px; height: 130px; }
    .direcao-carrossel { padding: 0 50px; }
    .direcao-pista { gap: 24px; }
    .direcao-pista > .membro-orgao { flex-basis: 220px; width: 220px; }
    .direcao-seta { width: 42px; height: 42px; font-size: 2.1rem; }
}


/* ===== 23 — PÁGINA INTERVENÇÃO SOCIAL ==================== */
.intervencao-introducao { padding-top: 270px; }
.intervencao-introducao > .container > h1 { text-align: center; color: var(--azul); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 45px; }
.intervencao-introducao .intervencao-icone { width: 190px; height: 190px; margin: 0 auto; border-radius: 32px; background: #fde8ee; color: #e0555a; display: flex; align-items: center; justify-content: center; }
.intervencao-introducao .intervencao-icone svg { width: 88px; height: 88px; }
.intervencao-introducao .row p { font-size: 1.2rem; line-height: 1.7; color: #333; margin: 0; }
.intervencao-introducao > .container > hr { width: 3px; height: 130px; margin: 45px auto 0; border: 0; border-radius: 2px; background: var(--azul); opacity: 1; }
/* Faixa de imagem com véu + rótulo (reutilizável noutras páginas de projeto) */
.faixa-imagem { position: relative; background-size: cover; background-position: center; text-align: center; padding: 0 24px 280px; overflow: hidden; }
.faixa-imagem::before { content: ''; position: absolute; inset: 0; background: rgba(96,104,112,.55); }
.faixa-imagem > .container { position: relative; z-index: 1; }
.faixa-imagem hr { width: 3px; margin: 0 auto; border: 0; border-radius: 2px; background: var(--azul); opacity: 1; }
.faixa-imagem hr:first-of-type { height: 250px; }   /* linha longa: começa no topo e liga à da intro */
.faixa-imagem hr:last-of-type  { height: 120px; }
.faixa-imagem p { margin: 36px 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 800; color: #fff; }
@media (max-width: 991px) { .intervencao-introducao { padding-top: 160px; } }


/* ===== 24 — BLOCO DE PROJETO (imagem + texto + saber mais) ===== */
.projeto img { width: 100%; height: auto; display: block; }
.projeto h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; color: var(--titulo); margin-bottom: 36px; }
.projeto p { font-size: 1.15rem; line-height: 1.7; color: #6a7885; margin-bottom: 28px; }
.projeto a { display: inline-flex; align-items: center; gap: 12px; color: var(--vermelho); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; }
.projeto a svg { width: 34px; height: 20px; transition: transform .25s ease; }
.projeto a:hover svg { transform: translateX(5px); }


/* (Header ao topo volta ao transparente original. A cor do texto do menu
   é decidida pelo data-fundo de cada secção: escuro -> texto branco,
   claro -> texto escuro. Ver .cabecalho.menu-escuro no topo desta folha.) */


/* ===== 25 — MENU MOBILE (hamburguer + offcanvas) ========= */
.menu-hamburguer {
    background: transparent; border: 0; padding: 6px; cursor: pointer;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    color: #fff;
}
.menu-hamburguer span { display: block; width: 30px; height: 3px; border-radius: 2px; background: currentColor; }
.cabecalho.menu-escuro .menu-hamburguer { color: var(--texto-escuro); }

/* No mobile o header passa a: logo | hamburguer */
@media (max-width: 991px) {
    .menu-interior { display: flex !important; align-items: center; justify-content: space-between; }
}

/* Painel offcanvas */
.menu-mobile { max-width: 310px; }
.menu-mobile .offcanvas-header { border-bottom: 1px solid #eee; }
.menu-mobile-logo { height: 58px; width: auto; }
.menu-mobile-links { display: flex; flex-direction: column; }
.menu-mobile-links a {
    padding: 14px 4px; font-size: 1.1rem; font-weight: 600;
    color: var(--texto-escuro); border-bottom: 1px solid #f1f1f1;
}
.menu-mobile-links a:hover { color: var(--azul); }


/* ===== 26 — PÁGINA INFÂNCIA (intro + vídeo) ============== */
.infancia-intro { padding: 260px 0 90px; background: #E3F1FB; }
.infancia-intro h1 { color: var(--azul); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 4px; }
.infancia-intro h2 { color: var(--azul); font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700; margin-bottom: 26px; }
.infancia-intro p { color: #6a7885; line-height: 1.7; text-align: justify; margin-bottom: 20px; }
.infancia-video { position: relative; width: 100%; aspect-ratio: 16 / 11; border-radius: 20px; overflow: hidden;
    background: linear-gradient(180deg, #dcefff 55%, #bcd98f 100%);
    display: flex; align-items: center; justify-content: center; }
.infancia-video svg { width: 74px; height: 74px; color: #fff; opacity: .92; }
@media (max-width: 991px) { .infancia-intro { padding-top: 160px; } }


/* ===== 27 — CRECHE NINHO DA CEGONHA ====================== */
.creche h2 { color: var(--azul); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 24px; }
.creche-intro { font-weight: 700; text-align: center; color: var(--titulo); font-size: 1.15rem; line-height: 1.6; margin: 0; }
.creche img { width: 100%; height: auto; display: block; }
.creche-texto { margin-top: 55px; }
.creche-texto h3 { color: var(--azul); font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 24px; }
.creche-texto p { color: #6a7885; line-height: 1.7; text-align: justify; margin-bottom: 20px; }


/* ===== 28 — PILARES (Cuidar / Acarinhar / Educar) ======== */
.pilar { border-radius: 22px; padding: 40px 30px 46px; text-align: center; height: 100%; }
.pilar-icone { margin-bottom: 22px; }
.pilar-icone svg { width: 88px; height: 88px; }
.pilar-icone img { width: 96px; height: 96px; object-fit: contain; }
.pilar h3 { font-weight: 800; font-size: clamp(1.6rem, 2.5vw, 1.9rem); margin-bottom: 22px; }
.pilar p.pilar-intro { font-weight: 700; color: var(--titulo); line-height: 1.5; margin-bottom: 22px; }
.pilar p { color: #55606e; line-height: 1.65; margin: 0; }
/* variantes de cor (título + ícone) */
.pilar--cuidar    { background: #D6ECFB; }
.pilar--acarinhar { background: #FBE0DE; }
.pilar--educar    { background: #FDF1C9; }
.pilar--cuidar    h3, .pilar--cuidar    .pilar-icone { color: #3B8ACE; }
.pilar--acarinhar h3, .pilar--acarinhar .pilar-icone { color: #DE554F; }
.pilar--educar    h3, .pilar--educar    .pilar-icone { color: #F0B429; }


/* ===== 29 — CARROSSEL DE ATIVIDADES (Infância) ========== */
.criancas-titulo { color: var(--azul); font-size: clamp(1.9rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 18px; }
.criancas-subtitulo { color: #4a7fb0; text-align: center; line-height: 1.7; font-size: 1.1rem; max-width: 1100px; margin: 0 auto 40px; }
.criancas-carrossel { max-width: 1150px; margin: 0 auto; }
.criancas-carrossel .carousel-inner { border-radius: 26px; overflow: hidden; }
.criancas-carrossel .carousel-item img { width: 100%; height: 430px; object-fit: cover; display: block; }
.criancas-nav { display: flex; justify-content: center; gap: 22px; margin-top: 24px; }
.criancas-seta { width: 56px; height: 56px; border: 0; border-radius: 50%; background: #fff; color: #333; box-shadow: 0 6px 16px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease; }
.criancas-seta:hover { background: #f1f1f1; }
.criancas-seta svg { width: 24px; height: 24px; }
.criancas-carrossel .carousel-indicators { position: static; margin: 16px 0 0; }
.criancas-carrossel .carousel-indicators [data-bs-slide-to] { box-sizing: border-box; flex: 0 0 auto; width: 13px; height: 13px; border-radius: 50%; background-color: #cfcfcf; border: 0; opacity: 1; margin: 0 6px; text-indent: 0; }
.criancas-carrossel .carousel-indicators [data-bs-slide-to].active { background-color: var(--vermelho); opacity: 1; }
@media (max-width: 767px) { .criancas-carrossel .carousel-item img { height: 260px; } }


/* ===== 30 — EQUIPA DA CRECHE (Infância) ================== */
.creche-equipa-foto { width: 100%; height: auto; display: block; border-radius: 26px; background: #e8eef3; margin-bottom: 45px; }
.creche-equipa-coord { font-weight: 700; color: var(--titulo); font-size: 1.2rem; margin-bottom: 45px; }
.creche-equipa-coord span { color: var(--azul); }
.creche-equipa-titulo { color: var(--azul); font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 800; margin-bottom: 22px; }
.creche-equipa-lista p { color: var(--esbatido); line-height: 1.8; margin-bottom: 10px; }
.creche-equipa-lista strong { color: var(--titulo); }


/* ===== 31 — DADOS DA CRECHE =============================== */
.creche-dados-seccao { padding-top: 0; }
.creche-dados {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 42px;
    border: 1px solid #dedede;
    border-radius: 32px;
    background: var(--branco);
    box-shadow: 0 7px 18px rgba(0,0,0,.14);
}
.creche-dados > h2 {
    margin-bottom: 34px;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 800;
    line-height: 1.35;
}
.creche-dados > h3 {
    margin: 30px 0 34px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
}
.creche-dados > p {
    margin: 0;
    color: #000;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.5;
}
.creche-dados > p:last-child { line-height: 1.45; }

@media (max-width: 767px) {
    .creche-dados { padding: 34px 24px; border-radius: 24px; }
    .creche-dados > h2 { margin-bottom: 26px; }
    .creche-dados > h3 { margin: 26px 0; }
}


/* ===== 32 — SALAS DA CRECHE =============================== */
.salas { padding-top: 0; }
.salas > .container > h2 {
    margin-bottom: 42px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
}
.salas figure { margin: 0; }
.salas figure > img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    display: block;
    box-shadow: 0 7px 18px rgba(0,0,0,.14);
}
.salas figcaption {
    margin-top: 42px;
    color: #000;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    line-height: 1.55;
}

@media (max-width: 767px) {
    .salas > .container > h2 { margin-bottom: 28px; }
    .salas figure > img { border-radius: 20px; }
    .salas figcaption { margin-top: 28px; }
}


/* ===== 33 — EXPERIÊNCIA E EQUIPA DAS SALAS ================= */
.salas-detalhes { padding-top: 0; }
.salas-detalhes h2 {
    margin-bottom: 18px;
    font-size: clamp(1.45rem, 2.7vw, 2rem);
    font-weight: 800;
}
.salas-detalhes p {
    margin-bottom: 26px;
    font-size: 1.06rem;
    line-height: 1.65;
    text-align: justify;
}
.salas-detalhes blockquote {
    max-width: 1050px;
    margin: 88px auto 76px;
    font-size: clamp(1.75rem, 3.6vw, 2.8rem);
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}
.salas-detalhes h3 {
    margin: 0 0 30px 28px;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    font-weight: 800;
}
.salas-detalhes ul {
    margin: 0 0 0 28px;
    padding-left: 28px;
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    line-height: 1.55;
}

@media (max-width: 767px) {
    .salas-detalhes p { text-align: left; }
    .salas-detalhes blockquote { margin: 58px auto 52px; }
    .salas-detalhes h3, .salas-detalhes ul { margin-left: 0; }
}


/* ===== 34 — BOTÃO "SABER MAIS" (com seta) ================
   Componente partilhado. Uso: class="btn btn-COR rounded-pill px-5 py-3 fs-5 botao-saber"
   Só muda a variante de cor (.btn-vermelho / .btn-azul / .btn-azul-claro). */
.botao-saber { display: inline-flex; align-items: center; gap: 10px; }
.botao-saber svg { width: 34px; height: 22px; flex: none; }


/* ===== 35 — SALAS INTERATIVAS (Infância) ================
   Banner com crossfade + hover + auto-troca (3s). JS inline na página.
   Usa .salas-banner (NÃO usa .salas, que é do módulo do pai). */
.salas-banner { position: relative; height: 560px; overflow: hidden; border-radius: 22px; }
.salas-fundo { position: absolute; inset: 0; z-index: 1; }
.salas-fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.salas-fundo img.ativa { opacity: 1; }
.salas-zonas { position: relative; z-index: 2; display: flex; height: 100%; }
.sala-zona { flex: 1 1 0; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 28px 12px; color: #fff; cursor: pointer; border-right: 1px solid rgba(255,255,255,.35); }
.sala-zona:last-child { border-right: 0; }
.sala-zona::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 45%); pointer-events: none; }
.sala-zona-nome { position: relative; z-index: 1; font-size: 1.4rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,.45); transition: font-size .3s ease; }
.sala-zona-idade { position: relative; z-index: 1; font-size: .95rem; margin-top: 6px; opacity: 0; max-height: 0; overflow: hidden; text-shadow: 0 1px 4px rgba(0,0,0,.45); transition: opacity .3s ease, max-height .3s ease; }
.sala-zona.ativa .sala-zona-nome { font-size: 1.7rem; }
.sala-zona.ativa .sala-zona-idade { opacity: 1; max-height: 44px; }
.sala-card-num { display: block; color: var(--azul); font-size: 3rem; font-weight: 800; line-height: 1; margin-bottom: 10px; }
.sala-card-nome { font-weight: 700; font-size: 1.3rem; color: var(--titulo); margin-bottom: 12px; }
.sala-card-desc { color: var(--esbatido); line-height: 1.6; font-size: .98rem; margin-bottom: 18px; }
.btn-azul-contorno { --bs-btn-color: var(--azul); --bs-btn-border-color: var(--azul); --bs-btn-bg: transparent; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--azul); --bs-btn-hover-border-color: var(--azul); --bs-btn-font-weight: 700; }
/* Cartões das salas: largura total, alinhados com as 5 zonas do banner */
.salas-cartoes { display: flex; flex-wrap: wrap; }
.sala-cartao { flex: 1 1 0; min-width: 0; padding: 44px 28px; }
.sala-cartao-img { display: none; }
@media (max-width: 991px) { .sala-cartao { flex: 0 0 50%; } }

/* Mobile: sem banner interativo. Cada sala = imagem em cima + texto por baixo. */
@media (max-width: 767px) {
    .salas-banner { display: none; }
    .salas-cartoes { flex-direction: column; gap: 8px; }
    .sala-cartao { flex: 0 0 100%; padding: 0 0 28px; }
    .sala-cartao-img { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 18px; margin-bottom: 20px; }
    .sala-card-num { font-size: 2.4rem; margin-bottom: 6px; }
}


/* ===== 36 — PÁGINA DE ERRO (404) ========================== */
.erro-pagina {
    min-height: 100vh; display: flex; align-items: center; text-align: center;
    background: var(--azul-claro-fundo); padding: 200px 0 110px;
}
.erro-codigo {
    display: block; font-size: clamp(7rem, 20vw, 12rem); font-weight: 800; line-height: 1;
    color: var(--azul); letter-spacing: -4px; margin-bottom: 18px;
}
.erro-pagina h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--titulo); margin-bottom: 18px; }
.erro-pagina p { font-size: 1.2rem; line-height: 1.7; color: var(--esbatido); max-width: 640px; margin: 0 auto 40px; }
.erro-atalhos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin-top: 48px; }
.erro-atalhos a { color: var(--azul); font-weight: 700; }
.erro-atalhos a:hover { color: var(--vermelho); }
@media (max-width: 767px) { .erro-pagina { padding: 160px 0 80px; } }
