/*
Theme Name: Instituto Ana Lara
Theme URI: https://institutoanalara.org.br
Author: Instituto Ana Lara
Description: Tema oficial do Instituto Ana Lara — apoio a pessoas com Síndrome de Down e outras deficiências.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: instituto-ana-lara
Tags: nonprofit, accessibility, portuguese
*/

/* ===== VARIÁVEIS ===== */
:root {
  --azul: #4db8d4;
  --azul-escuro: #2a8fa8;
  --azul-claro: #c8eef7;
  --amarelo: #f5c842;
  --amarelo-escuro: #d4a800;
  --vermelho: #c0392b;
  --branco: #ffffff;
  --cinza-claro: #f7f9fb;
  --cinza-texto: #444;
  --sombra: 0 4px 24px rgba(44,143,168,0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--cinza-texto);
  background: var(--branco);
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; }

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--branco);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 72px;
}
.nav-logo img { height: 56px; border-radius: 50%; }
.nav-links { display: flex; gap: 0.2rem; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--azul-escuro);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.04em;
  padding: 0.5rem 0.7rem; border-radius: 8px;
  text-transform: uppercase; transition: all 0.2s;
}
.nav-links a:hover { background: var(--azul-claro); color: var(--azul-escuro); }
.nav-links a.doe {
  background: var(--vermelho); color: var(--branco);
  padding: 0.5rem 1rem; border-radius: 24px;
}
.nav-links a.doe:hover { background: #a93226; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--azul-escuro); border-radius: 2px; transition: all 0.3s; }

/* ===== PAGE HERO ===== */
.page-hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--azul-escuro) 0%, #0e5270 100%);
  padding: 3.5rem 2rem; text-align: center; color: #fff;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; margin-bottom: 0.5rem;
}
.page-hero p { opacity: 0.85; font-size: 1rem; }
.breadcrumb { font-size: 0.85rem; opacity: 0.7; margin-bottom: 0.8rem; }
.breadcrumb a { color: #fff; }
.breadcrumb a:hover { text-decoration: underline; }

/* ===== CONTEÚDO GERAL ===== */
.page-body { padding: 4rem 2rem; max-width: 960px; margin: 0 auto; }
.entry-content { line-height: 1.8; font-size: 1rem; color: var(--cinza-texto); }
.entry-content h2 { font-family: 'Playfair Display', serif; color: var(--azul-escuro); margin: 2rem 0 1rem; font-size: 1.8rem; }
.entry-content h3 { color: var(--azul-escuro); margin: 1.5rem 0 0.8rem; font-size: 1.3rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content img { border-radius: 12px; margin: 1.5rem 0; box-shadow: var(--sombra); }
.entry-content a { color: var(--azul-escuro); text-decoration: underline; }

/* ===== SEÇÕES ===== */
section { padding: 5rem 2rem; }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 {
  font-family: 'Playfair Display', serif; font-size: 2.2rem;
  color: var(--azul-escuro); margin-bottom: 0.5rem;
}
.section-title .linha {
  width: 60px; height: 4px; background: var(--amarelo);
  border-radius: 2px; margin: 0.6rem auto 0;
}
.section-title p { color: #777; font-size: 1rem; margin-top: 0.8rem; }

/* ===== CARDS DE EVENTOS ===== */
.eventos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.evento-card { background: var(--cinza-claro); border-radius: 16px; overflow: hidden; box-shadow: var(--sombra); transition: transform 0.2s; }
.evento-card:hover { transform: translateY(-4px); }
.evento-card .card-header { background: var(--azul); padding: 1.5rem; color: var(--branco); }
.evento-card .card-header h3 { font-size: 1.1rem; font-weight: 800; }
.evento-card .card-header span { font-size: 0.85rem; opacity: 0.85; }
.evento-card .card-body { padding: 1.2rem 1.5rem; }
.evento-card .card-body p { font-size: 0.92rem; color: #555; line-height: 1.6; }
.evento-card .card-body a { display: inline-block; margin-top: 1rem; background: var(--azul-escuro); color: #fff; padding: 0.5rem 1.2rem; border-radius: 20px; font-size: 0.85rem; font-weight: 700; transition: background 0.2s; }
.evento-card .card-body a:hover { background: var(--azul); }

/* ===== CARDS DE PROJETOS ===== */
.projeto-card {
  background: var(--branco); border-radius: 20px;
  box-shadow: var(--sombra); margin-bottom: 2.5rem;
  overflow: hidden; border-left: 6px solid var(--azul);
}
.projeto-header { padding: 1.8rem 2rem 1rem; display: flex; align-items: flex-start; gap: 1rem; }
.projeto-icon { font-size: 2.5rem; line-height: 1; }
.projeto-header-text h2 {
  font-family: 'Playfair Display', serif; font-size: 1.5rem;
  color: var(--azul-escuro); margin-bottom: 0.3rem;
}
.projeto-status {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  padding: 0.25rem 0.8rem; border-radius: 20px;
  background: var(--azul-claro); color: var(--azul-escuro);
}
.projeto-body { padding: 0 2rem 2rem; }
.projeto-body p { font-size: 0.97rem; line-height: 1.8; color: #555; margin-bottom: 1rem; }

/* ===== NOTÍCIAS ===== */
.noticias-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.noticia-card { background: var(--branco); border-radius: 16px; overflow: hidden; box-shadow: var(--sombra); transition: transform 0.2s; }
.noticia-card:hover { transform: translateY(-4px); }
.noticia-img { width: 100%; height: 200px; object-fit: cover; background: var(--azul-claro); display: flex; align-items: center; justify-content: center; color: var(--azul-escuro); font-size: 3rem; }
.noticia-body { padding: 1.5rem; }
.noticia-tag { background: var(--amarelo); color: #333; font-size: 0.75rem; font-weight: 800; padding: 0.3rem 0.8rem; border-radius: 20px; display: inline-block; margin-bottom: 0.8rem; }
.noticia-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--azul-escuro); margin-bottom: 0.5rem; line-height: 1.4; }
.noticia-body p { font-size: 0.88rem; color: #666; line-height: 1.6; }
.noticia-body .data { font-size: 0.8rem; color: #999; margin-top: 0.8rem; }
.noticia-body a.leia-mais { display: inline-block; margin-top: 1rem; color: var(--azul-escuro); font-weight: 700; font-size: 0.88rem; }
.noticia-body a.leia-mais:hover { text-decoration: underline; }

/* ===== GALERIA ===== */
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; max-width: 1100px; margin: 0 auto; }
.galeria-item { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--sombra); transition: transform 0.2s; }
.galeria-item:hover { transform: scale(1.02); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== DOE ===== */
.doe-section { background: var(--azul-escuro); color: var(--branco); text-align: center; padding: 5rem 2rem; }
.doe-section h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--branco); margin-bottom: 1rem; }
.doe-section p { font-size: 1.05rem; line-height: 1.7; opacity: 0.9; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.pix-box { background: rgba(255,255,255,0.12); border-radius: 20px; padding: 2rem; margin: 2rem auto; max-width: 420px; }
.pix-box h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; color: var(--amarelo); }
.pix-chave { font-size: 1.1rem; background: rgba(255,255,255,0.15); padding: 0.8rem 1.5rem; border-radius: 10px; letter-spacing: 0.05em; word-break: break-all; }
.btn-copiar {
  margin-top: 1rem; background: var(--amarelo); color: #333;
  border: none; padding: 0.7rem 1.8rem; border-radius: 20px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem;
  cursor: pointer; transition: all 0.2s;
}
.btn-copiar:hover { background: var(--amarelo-escuro); }

/* ===== FORMS ===== */
.form-inscricao { background: var(--azul-claro); border-radius: 20px; padding: 2.5rem; max-width: 600px; margin: 0 auto; }
.form-inscricao h3 { font-size: 1.3rem; font-weight: 800; color: var(--azul-escuro); margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--azul-escuro); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.75rem 1rem; border-radius: 10px;
  border: 2px solid rgba(77,184,212,0.3); font-family: 'Nunito', sans-serif;
  font-size: 0.95rem; background: var(--branco); transition: border 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--azul); }
.btn-submit {
  width: 100%; padding: 0.9rem; background: var(--azul-escuro);
  color: var(--branco); border: none; border-radius: 12px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: all 0.2s; margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--azul); transform: translateY(-2px); }

/* ===== FOOTER ===== */
footer { background: #1a3a48; color: var(--branco); padding: 3rem 2rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; max-width: 1100px; margin: 0 auto; }
.footer-col h4 { font-size: 1rem; font-weight: 800; color: var(--amarelo); margin-bottom: 1rem; letter-spacing: 0.05em; }
.footer-col p, .footer-col a { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.75); text-decoration: none; display: block; }
.footer-col a:hover { color: var(--amarelo); }
.social-links { display: flex; gap: 0.8rem; margin-top: 1rem; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; text-decoration: none;
  color: var(--branco); transition: all 0.2s;
}
.social-btn:hover { background: var(--amarelo); color: #333; }
.footer-bottom { text-align: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ===== PAGINAÇÃO ===== */
.pagination { text-align: center; margin: 3rem 0; }
.pagination a, .pagination span {
  display: inline-block; padding: 0.5rem 1rem; margin: 0 0.2rem;
  border-radius: 8px; font-weight: 700; font-size: 0.9rem;
}
.pagination a { background: var(--azul-claro); color: var(--azul-escuro); }
.pagination a:hover { background: var(--azul); color: #fff; }
.pagination span.current { background: var(--azul-escuro); color: #fff; }

/* ===== MOBILE ===== */
@media(max-width: 900px) {
  .nav-links { display: none; position: fixed; top: 72px; left: 0; width: 100%; background: var(--branco); flex-direction: column; padding: 1rem 2rem; box-shadow: 0 4px 16px rgba(0,0,0,0.1); gap: 0.2rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .projeto-header { flex-direction: column; gap: 0.5rem; }
  .page-hero h1 { font-size: 1.8rem; }
}
@media(max-width: 600px) {
  .page-hero h1 { font-size: 1.5rem; }
  section { padding: 3rem 1.5rem; }
}
