/* Notícias - reutiliza paleta e estrutura do Sócios */
:root {
  --brand-primary: #312783;
  --brand-accent:  #f9b233;
  --text-primary:  #312783;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Lato', Arial, Helvetica, sans-serif; color: var(--text-primary); max-width: 100%; overflow-x: hidden; }

/* ======= Cabeçalho / Navegação (cópia simplificada do Sócios) ======= */
header.site-header {
  display: flex; flex-direction: row; align-items: center; justify-content: space-between;
  padding: 30px 60px 10px; background: var(--brand-primary);
  box-shadow: 0 2px 8px var(--brand-primary); position: relative; z-index: 1000;
  -webkit-backdrop-filter: saturate(140%) blur(4px); backdrop-filter: saturate(140%) blur(4px);
}
.logo { flex: 0 0 auto; display: flex; justify-content: flex-start; align-items: center; width: 320px; }
.logo img { height: 120px; max-width: 320px; width: auto; display: block; margin: 0; }

nav { flex: 1 1 0; display: flex; justify-content: flex-end; align-items: center; padding: 0; }
nav ul { width: auto; display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 48px; list-style: none; margin: 0; padding: 0; text-align: right; }
nav ul li { flex: 0 0 auto; min-width: 0; }
nav ul li a, .menu-link { color: var(--white); text-decoration: none; font-weight: 700; font-size: 1.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; padding: 8px 0; transition: color .2s; }
.menu-link:hover { color: var(--brand-accent); }

/* Hambúrguer */
.menu-hamburguer { display: none; }
.menu-hamburguer-icon { background: transparent; border: 0; cursor: pointer; display: inline-flex; flex-direction: column; gap: 4px; padding: 8px; }
.menu-hamburguer-icon span { width: 26px; height: 3px; background: var(--white); display: block; border-radius: 2px; }
.menu-dropdown { position: absolute; top: 70px; right: 12px; background: var(--brand-primary); box-shadow: 0 2px 12px rgba(49,39,131,0.12); border-radius: 10px; padding: 12px 0; min-width: 200px; z-index: 3000; display: none; }
.menu-dropdown.active { display: block; }
.menu-dropdown a { display: block; color: var(--white); font-size: 1.15rem; font-weight: 600; text-decoration: none; padding: 12px 24px; border-bottom: 1px solid #4639a3; transition: background .2s, color .2s; }
.menu-dropdown a:last-child { border-bottom: none; }
.menu-dropdown a:hover { background: #4639a3; color: var(--brand-accent); }

@media (max-width: 900px) {
  header.site-header { padding: 18px 16px; }
  .logo img { height: 90px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .menu-hamburguer { display: block; }
}

/* ======= Área/Cartões (cópia simplificada) ======= */
.area-socio {
  max-width: 1200px; margin: 40px auto 32px; background: var(--white);
  border-radius: 18px; box-shadow: 0 4px 24px rgba(49,39,131,0.08);
  padding: 32px 24px 40px; text-align: center;
}
.tabela-socios { max-width: 1200px; margin: 24px auto 0; background: #f7f7fb; border-radius: 14px; box-shadow: 0 2px 12px rgba(49,39,131,0.07); padding: 24px; }

/* Grid de notícias dentro do cartão container */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 8px rgba(49,39,131,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card img { width: 100%; height: auto; display: block; }

.news-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.news-title { font-size: 1.1rem; font-weight: 700; }
.news-date { font-size: .9rem; opacity: .75; }

/* Por omissão, escondemos o resumo e as ações.
   Mostramos apenas ao passar o rato (hover) ou com foco (acessível por teclado). */
.news-summary {
  font-size: 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
}

.news-actions {
  margin-top: 6px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .25s ease, opacity .2s ease;
}
.news-btn {
  display: inline-block;
  background: var(--brand-primary);
  color: var(--white);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  transition: background .2s, transform .1s;
}
.news-btn:hover { background: #4639a3; }
.news-btn:active { transform: translateY(1px); }

/* Revelação em hover/focus do cartão */
.news-card:hover .news-summary,
.news-card:focus .news-summary,
.news-card:focus-within .news-summary {
  max-height: 400px; /* suficiente para textos longos */
  opacity: 1;
}
.news-card:hover .news-actions,
.news-card:focus .news-actions,
.news-card:focus-within .news-actions {
  max-height: 60px;
  opacity: 1;
}

/* Indicador de foco visível para acessibilidade */
.news-card:focus {
  outline: 3px solid var(--brand-accent);
  outline-offset: 2px;
}

/* Responsividade básica */
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
}

/* ======= Rodapé (cópia simplificada do Sócios) ======= */
.site-footer { background: var(--brand-primary); color: var(--white); padding: 32px 0 12px; border-top-left-radius: 18px; border-top-right-radius: 18px; box-shadow: 0 -2px 12px rgba(49,39,131,0.10); margin-top: 40px; text-align: center; }
.footer-content { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; gap: 24px; }
.footer-logo img { max-height: 80px; display: block; margin: 0 auto; }
.site-footer .footer-content > .footer-content { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 6px; }
.footer-redes { display: flex; align-items: center; gap: 10px; }
.footer-copy { border-top: 1px solid rgba(255,255,255,.3); margin-top: 10px; padding-top: 6px; font-size: .9em; }
.footer-politica a { color: var(--brand-accent); text-decoration: none; font-size: 14px; font-weight: 500; }
.footer-politica a:hover { text-decoration: underline; }

/* ======= Botão WhatsApp ======= */
.whatsapp-float { position: fixed; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--brand-accent); color: var(--brand-primary); border-radius: 999px; padding: 10px 14px; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,.15); font-weight: 700; z-index: 2000; }
.whatsapp-float .icon-wrapper { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; }
.whatsapp-float .icon { width: 18px; height: 18px; display: block; }
.whatsapp-float .label { font-size: 14px; }
