/*
 * ADUEM — visual moderno das páginas internas.
 * Mesma linguagem dos blocos novos da página inicial (Fique por Dentro, Baile Tropical):
 * azul #2b3990, verde #3aaa35, cartões brancos arredondados, caixas azul-claro com faixa verde.
 */
.am { --azul: #2b3990; --verde: #3aaa35; --verde-esc: #2e8b2a; --claro: #f3f6fb; --claro2: #eef1fb; --texto: #333; --sombra: 0 4px 18px rgba(20, 33, 61, .08); color: var(--texto); font-size: 1.02rem; line-height: 1.6; }
.am * { box-sizing: border-box; }
.am a { color: var(--azul); }

/* Moldura da página */
.am-moldura { background: #fff; border-radius: 12px; box-shadow: var(--sombra); padding: 32px 36px 36px; margin: 0 0 30px; }
.am-trilha { font-size: .88rem; margin: 0 0 10px; color: #6b7280; }
.am-trilha a { color: #6b7280; text-decoration: none; }
.am-trilha a:hover { color: var(--azul); text-decoration: underline; }
.am h1.am-titulo { font-size: 2rem; line-height: 1.2; color: var(--azul); border-left: 6px solid var(--verde); padding-left: 14px; margin: 0 0 14px; font-weight: 700; }
.am-lead { font-size: 1.15rem; line-height: 1.6; margin: 0 0 18px; }
.am h2 { font-size: 1.4rem; color: var(--azul); border-left: 5px solid var(--verde); padding-left: 12px; margin: 32px 0 16px; font-weight: 700; }
.am h2 i, .am h3 i { color: var(--verde); margin-right: 8px; }
.am h3 { font-size: 1.12rem; color: var(--azul); margin: 0 0 8px; font-weight: 700; }
.am p { margin: 0 0 12px; }

/* Botões */
.am-btn, .am a.am-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--verde); color: #fff !important; border-radius: 30px; padding: 10px 22px; font-weight: 700; text-decoration: none !important; border: 2px solid var(--verde); transition: background .2s, border-color .2s; line-height: 1.2; }
.am-btn:hover, .am a.am-btn:hover { background: var(--azul); border-color: var(--azul); color: #fff !important; }
.am-btn.am-sec, .am a.am-btn.am-sec { background: #fff; color: var(--azul) !important; border-color: var(--azul); }
.am-btn.am-sec:hover, .am a.am-btn.am-sec:hover { background: var(--azul); color: #fff !important; }
.am-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }

/* Selos (chips) */
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; }
.am-chips a, .am-chips span { background: var(--claro2); color: var(--azul) !important; padding: 7px 14px; border-radius: 20px; font-weight: 600; font-size: .95rem; text-decoration: none !important; display: inline-block; }
.am-chips a:hover { background: var(--azul); color: #fff !important; }

/* Caixas de informação (faixa verde) */
.am-info { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.am-info li, .am-aviso { background: var(--claro); border-left: 4px solid var(--verde); padding: 12px 14px; border-radius: 8px; color: var(--azul); line-height: 1.4; }
.am-info li strong { font-weight: 700; color: var(--azul); }
.am-info li i { color: var(--verde); margin-right: 6px; }
.am-info li a { font-weight: 700; text-decoration: none; }
.am-aviso { margin: 16px 0; font-weight: 600; }

/* Grade de cartões */
.am-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin: 10px 0 10px; }
.am-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 3px 12px rgba(0, 0, 0, .09); display: flex; flex-direction: column; text-decoration: none !important; color: var(--texto) !important; transition: transform .2s, box-shadow .2s; }
a.am-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 33, 61, .16); }
.am-card-img { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--claro2); display: flex; align-items: center; justify-content: center; color: var(--azul); font-size: 2.6rem; }
.am-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.am-card-corpo { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.am-card-corpo h3 { margin-bottom: 6px; }
.am-card-corpo p { font-size: .95rem; margin: 0 0 10px; color: #4b5563; }
.am-card-mais { margin-top: auto; color: var(--verde-esc); font-weight: 700; font-size: .95rem; }

/* Fotos */
.am-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 18px; }
.am-fotos a { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 12px rgba(0, 0, 0, .09); }
.am-fotos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s; }
.am-fotos a:hover img { transform: scale(1.04); }
.am-foto-unica { margin: 10px 0 18px; }
.am-foto-unica img { width: 100%; max-height: 520px; object-fit: cover; border-radius: 12px; display: block; }

/* Pessoas (diretoria) */
.am-pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 10px 0; }
.am-pessoa { background: #fff; border-radius: 12px; box-shadow: 0 3px 12px rgba(0, 0, 0, .09); padding: 22px 16px 20px; text-align: center; border-top: 4px solid var(--verde); }
.am-pessoa img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: top; display: block; margin: 0 auto 12px; border: 4px solid var(--claro2); }
.am-pessoa h3 { font-size: 1.05rem; margin: 0 0 8px; }
.am-avatar { width: 84px; height: 84px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; background: var(--azul); color: #fff; font-size: 1.6rem; font-weight: 700; letter-spacing: 1px; border: 4px solid var(--claro2); }
.am-equipe .am-pessoa { padding: 18px 14px 16px; }
.am-equipe .am-pessoa:nth-child(5n+2) { border-top-color: #1e6fa8; } .am-equipe .am-pessoa:nth-child(5n+2) .am-avatar { background: #1e6fa8; }
.am-equipe .am-pessoa:nth-child(5n+3) { border-top-color: #e08a00; } .am-equipe .am-pessoa:nth-child(5n+3) .am-avatar { background: #e08a00; }
.am-equipe .am-pessoa:nth-child(5n+4) { border-top-color: #6c4bb4; } .am-equipe .am-pessoa:nth-child(5n+4) .am-avatar { background: #6c4bb4; }
.am-equipe .am-pessoa:nth-child(5n+5) { border-top-color: #2b3990; } .am-equipe .am-pessoa:nth-child(5n+1) .am-avatar { background: #3aaa35; }
.am-cargo { display: inline-block; background: #e8f5e7; color: var(--verde-esc); font-weight: 700; font-size: .85rem; padding: 4px 12px; border-radius: 20px; }

/* Lista de links (documentos, matérias) */
.am-lista { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; gap: 10px; }
.am-lista li a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e3e8f3; border-radius: 10px; padding: 12px 16px; text-decoration: none; color: var(--azul); font-weight: 600; transition: border-color .2s, background .2s; }
.am-lista li a:hover { border-color: var(--verde); background: var(--claro); }
.am-lista li a i { color: var(--verde); font-size: 1.15rem; width: 22px; text-align: center; }
.am-lista small { display: block; font-weight: 400; color: #6b7280; }

/* Texto corrido vindo do site antigo */
.am-texto img { max-width: 100%; height: auto; border-radius: 10px; }
.am-texto table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.am-texto th, .am-texto td { border: 1px solid #e3e8f3; padding: 8px 10px; }
.am-texto th { background: var(--claro); color: var(--azul); }

/* Chamada final */
.am-cta { margin: 30px 0 0; padding: 22px 20px; border-radius: 12px; background: var(--claro); text-align: center; }
.am-cta p { font-size: 1.05rem; margin: 0 0 12px; }
.am-cta .am-botoes { justify-content: center; margin: 0; }

@media (max-width: 767px) {
	.am-moldura { padding: 22px 18px 26px; border-radius: 10px; }
	.am h1.am-titulo { font-size: 1.6rem; }
	.am h2 { font-size: 1.25rem; }
	.am-lead { font-size: 1.05rem; }
	.am-grade, .am-pessoas { grid-template-columns: 1fr 1fr; gap: 12px; }
	.am-card-corpo { padding: 10px 12px 14px; }
}
@media (max-width: 480px) {
	.am-grade, .am-pessoas { grid-template-columns: 1fr; }
}

/* Botão da Área do Associado (coluna da direita da página inicial) */
a.aduem-area-btn { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, #2b3990, #3e4fb5); color: #fff !important; border-radius: 12px; padding: 18px 18px; text-decoration: none !important; box-shadow: 0 4px 18px rgba(20, 33, 61, .18); transition: background .2s, transform .2s; margin: 0 0 10px; }
a.aduem-area-btn:hover { background: linear-gradient(135deg, #2e8b2a, #3aaa35); transform: translateY(-2px); }
a.aduem-area-btn > i:first-child { font-size: 1.9rem; flex: 0 0 auto; }
a.aduem-area-btn span { flex: 1; line-height: 1.25; }
a.aduem-area-btn strong { display: block; font-size: 1.2rem; }
a.aduem-area-btn small { display: block; font-size: .9rem; opacity: .9; }
a.aduem-area-btn > i:last-child { font-size: 1rem; opacity: .85; }
a.aduem-area-btn.aduem-filie-btn { background: linear-gradient(135deg, #2e8b2a, #3aaa35); }
a.aduem-area-btn.aduem-filie-btn:hover { background: linear-gradient(135deg, #2b3990, #3e4fb5); }

/* ===== Bordas coloridas (mesmas cores da página Menu) ===== */
.home-atalhos a { border-top: 5px solid #2b3990 !important; border-radius: 12px; }
.home-atalhos a:nth-child(2) { border-top-color: #1e6fa8 !important; }
.home-atalhos a:nth-child(3) { border-top-color: #3aaa35 !important; }

.am-card, .am-fotos a { border-top: 5px solid #2b3990; }
.am-card:nth-child(5n+2), .am-fotos a:nth-child(5n+2) { border-top-color: #1e6fa8; }
.am-card:nth-child(5n+3), .am-fotos a:nth-child(5n+3) { border-top-color: #3aaa35; }
.am-card:nth-child(5n+4), .am-fotos a:nth-child(5n+4) { border-top-color: #e08a00; }
.am-card:nth-child(5n+5), .am-fotos a:nth-child(5n+5) { border-top-color: #6c4bb4; }

/* ===== Galeria de Fotos (JoomGallery copiada): quadros modernos ===== */
#sp-component .jg_row { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin: 0 0 16px; }
#sp-component .jg_row .jg_clearboth { display: none; }
#sp-component .jg_element_gal, #sp-component .jg_subcatelem_cat, #sp-component .jg_element_cat {
	float: none !important; width: auto !important; margin: 0 !important; padding: 10px 10px 12px !important;
	background: #fff; border-radius: 12px; box-shadow: 0 3px 12px rgba(0, 0, 0, .09); border-top: 5px solid #2b3990;
	text-align: center; transition: transform .2s, box-shadow .2s;
}
#sp-component .jg_row > div:nth-child(5n+2) { border-top-color: #1e6fa8; }
#sp-component .jg_row > div:nth-child(5n+3) { border-top-color: #3aaa35; }
#sp-component .jg_row > div:nth-child(5n+4) { border-top-color: #e08a00; }
#sp-component .jg_row > div:nth-child(5n+5) { border-top-color: #6c4bb4; }
#sp-component .jg_element_gal:hover, #sp-component .jg_subcatelem_cat:hover, #sp-component .jg_element_cat:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20, 33, 61, .16); }
#sp-component .jg_imgalign_gal, #sp-component .jg_imgalign_catsubs, #sp-component .jg_imgalign_catimgs { float: none !important; width: auto !important; margin: 0 0 8px !important; }
#sp-component .jg_photo_container, #sp-component .jg_subcatelem_photo, #sp-component .jg_catelem_photo { display: block; border: 0 !important; padding: 0 !important; background: none !important; }
#sp-component img.jg_photo { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 0 !important; padding: 0 !important; display: block; margin: 0 auto; }
#sp-component .jg_element_txt, #sp-component .jg_subcatelem_txt, #sp-component .jg_catelem_txt { float: none !important; width: auto !important; margin: 0 !important; font-size: .95rem; }
#sp-component .jg_element_txt a, #sp-component .jg_subcatelem_txt a, #sp-component .jg_catelem_txt a { font-weight: 700; color: #2b3990; }

/* ===== Botão do WhatsApp que acompanha a tela ===== */
.aduem-whats { position: fixed; right: 20px; bottom: 20px; z-index: 9990; display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff !important; border-radius: 40px; padding: 12px 18px 12px 14px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); text-decoration: none !important; font-weight: 700; font-size: 1rem; transition: transform .2s, background .2s; }
.aduem-whats:hover { background: #1ebe5b; transform: translateY(-2px); color: #fff !important; }
.aduem-whats i { font-size: 1.9rem; line-height: 1; }
@media (max-width: 767px) {
	.aduem-whats { right: 14px; bottom: 14px; padding: 13px; }
	.aduem-whats span { display: none; }
}

/* ===== Visualizador de fotos (setas para passar) ===== */
.aduem-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 14, 30, .94); display: none; align-items: center; justify-content: center; user-select: none; }
.aduem-lb.aberto { display: flex; }
.aduem-lb img { max-width: 92vw; max-height: 84vh; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); object-fit: contain; background: #111; }
.aduem-lb button { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.aduem-lb button:hover { background: #3aaa35; }
.aduem-lb .lb-ant, .aduem-lb .lb-prox { top: 50%; transform: translateY(-50%); width: 58px; height: 58px; font-size: 1.6rem; }
.aduem-lb .lb-ant { left: 18px; }
.aduem-lb .lb-prox { right: 18px; }
.aduem-lb .lb-fechar { top: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.4rem; }
.aduem-lb .lb-cont { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 1rem; opacity: .9; }
@media (max-width: 767px) {
	.aduem-lb .lb-ant, .aduem-lb .lb-prox { width: 46px; height: 46px; top: auto; bottom: 14px; transform: none; }
	.aduem-lb .lb-ant { left: 14px; }
	.aduem-lb .lb-prox { right: 14px; }
	.aduem-lb .lb-cont { bottom: 26px; }
}
/* Galeria: todas as fotos numa grade só (as "linhas" do Joomla somem) */
#sp-component .gallery:has(> .jg_row) { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; align-items: start; }
#sp-component .gallery:has(> .jg_row) > *:not(.jg_row) { grid-column: 1 / -1; }
#sp-component .gallery > .jg_row { display: contents !important; }
#sp-component .jg_element_gal, #sp-component .jg_subcatelem_cat, #sp-component .jg_element_cat { display: block !important; }
#sp-component a.jg_catelem_photo, #sp-component .jg_photo_container, #sp-component .jg_photo_container a, #sp-component .jg_subcatelem_photo, #sp-component .jg_subcatelem_photo a { width: 100% !important; max-width: none !important; display: block; }
#sp-component .gallery::before, #sp-component .gallery::after { grid-column: 1 / -1; }
/* WhatsApp: só o ícone, redondo e menor */
.aduem-whats { width: 50px; height: 50px; padding: 0 !important; border-radius: 50%; justify-content: center; gap: 0; }
.aduem-whats span { display: none; }
.aduem-whats i { font-size: 1.7rem; }
/* WhatsApp: onda pulsando em volta + leve balanço do ícone */
.aduem-whats { overflow: visible; }
.aduem-whats::before, .aduem-whats::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; z-index: -1; animation: aduem-onda 2.4s ease-out infinite; }
.aduem-whats::after { animation-delay: 1.2s; }
.aduem-whats i { animation: aduem-balanco 4s ease-in-out infinite; }
@keyframes aduem-onda { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes aduem-balanco { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-14deg); } 88% { transform: rotate(12deg); } 92% { transform: rotate(-8deg); } 96% { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .aduem-whats::before, .aduem-whats::after, .aduem-whats i { animation: none; } }
/* Destaque de abertura (História) */
.am-hero { background: linear-gradient(135deg, #2b3990 0%, #1e6fa8 100%); color: #fff; border-radius: 12px; padding: 30px 30px 26px; margin: 6px 0 24px; position: relative; overflow: hidden; }
.am-hero::after { content: "1978"; position: absolute; right: -6px; bottom: -34px; font-size: 8.5rem; font-weight: 800; opacity: .09; line-height: 1; letter-spacing: -4px; }
.am-hero p { font-size: 1.15rem; line-height: 1.6; margin: 0; max-width: 640px; position: relative; z-index: 1; }
.am-hero strong { color: #b9f0b5; }

/* Números */
.am-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 0 0 10px; }
.am-numero { background: #fff; border-radius: 12px; box-shadow: 0 3px 12px rgba(0, 0, 0, .09); padding: 16px 12px; text-align: center; border-top: 4px solid var(--verde); }
.am-numero:nth-child(2) { border-top-color: #1e6fa8; } .am-numero:nth-child(3) { border-top-color: #e08a00; } .am-numero:nth-child(4) { border-top-color: #6c4bb4; }
.am-numero b { display: block; font-size: 1.9rem; color: var(--azul); line-height: 1.1; font-weight: 800; }
.am-numero span { font-size: .9rem; color: #4b5563; }

/* Objetivos (cartões com ícone) */
.am-objetivos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 10px 0 10px; padding: 0; list-style: none; }
.am-objetivos li { background: var(--claro); border-radius: 12px; padding: 16px 16px 14px; display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.am-objetivos li i { flex: 0 0 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--verde); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .07); }

/* Linha do tempo */
.am-tempo { list-style: none; margin: 10px 0 10px; padding: 0 0 0 26px; position: relative; }
.am-tempo::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(#3aaa35, #2b3990); border-radius: 3px; }
.am-tempo li { position: relative; margin: 0 0 10px; background: #fff; border: 1px solid #e3e8f3; border-radius: 10px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.am-tempo li::before { content: ""; position: absolute; left: -24px; top: 15px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--verde); }
.am-tempo li.am-decada { background: none; border: 0; padding: 14px 0 2px; font-weight: 800; color: var(--azul); font-size: 1.05rem; }
.am-tempo li.am-decada::before { background: var(--azul); border-color: var(--azul); width: 15px; height: 15px; left: -25px; top: 19px; }
.am-tempo .am-ano { font-weight: 700; color: var(--verde-esc); min-width: 92px; }
.am-tempo .am-nome { font-weight: 600; color: var(--azul); }
.am-tempo li.am-atual { background: #e8f5e7; border-color: var(--verde); }
.am-tempo li.am-atual::before { background: var(--verde); }
.am-tempo li.am-marco { background: var(--claro); border-style: dashed; }
.am-tempo li.am-marco::before { border-color: #e08a00; }

/* Livro / destaque com imagem */
.am-livro { display: flex; gap: 22px; align-items: center; background: var(--claro); border-radius: 12px; padding: 20px; margin: 10px 0; }
.am-livro img { width: 150px; height: auto; border-radius: 6px; box-shadow: 0 8px 22px rgba(0, 0, 0, .22); flex: 0 0 auto; }
.am-livro h3 { margin-bottom: 6px; }

/* Texto de estatuto */
.am-artigos p { margin: 0 0 12px; }
.am-artigos p.am-art { background: var(--claro); border-left: 4px solid var(--verde); padding: 10px 14px; border-radius: 8px; }
.am-artigos b, .am-artigos strong { color: var(--azul); }
.am-capitulos { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid #e3e8f3; }

@media (max-width: 767px) {
	.am-hero { padding: 22px 18px 20px; }
	.am-hero::after { font-size: 5.5rem; bottom: -20px; }
	.am-hero p { font-size: 1.02rem; }
	.am-livro { flex-direction: column; text-align: center; }
	.am-livro .am-botoes { justify-content: center; }
	.am-numeros { grid-template-columns: 1fr 1fr; }
}
/* Conselho e Memorial */
.am-membros { margin: 0; gap: 8px; }
.am-membro { display: block; padding: 8px 12px; background: var(--claro); border-radius: 8px; color: var(--azul); font-weight: 600; line-height: 1.3; }
.am-membro small { display: inline; color: #6b7280; font-weight: 400; margin-left: 4px; }
.am-memorial { align-items: flex-start; margin: 0 0 16px; }
.am-memorial img { width: 140px; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.am-numeros { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .am-numeros { grid-template-columns: 1fr 1fr; } }