/* Broering & Wachholz Advocacia – visual baseado no site de 2019 (verde B&W, Open Sans + Roboto Slab) */
:root {
  --verde: #025f4a;
  --verde-escuro: #00483a;
  --texto: #4e4e4e;
  --titulo: #2b2b2b;
  --cinza: #f7f7f7;
  --linha: #e9e9e9;
  --max: 1140px;
}
/* Telas grandes (monitores de 1440 px ou mais): conteúdo um pouco mais largo; a coluna de texto mantém a largura de leitura */
@media (min-width: 1440px) { :root { --max: 1280px; } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Open Sans", Arial, sans-serif; color: var(--texto); background: #fff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde); }
p { font-family: "Roboto Slab", Georgia, serif; font-weight: 300; font-size: 1.05rem; }
h1, h2, h3 { color: var(--titulo); line-height: 1.25; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.estreito { max-width: 820px; }
.centro { text-align: center; }
.pequeno { font-size: .9rem; }

/* Cabeçalho e menu */
.cabecalho { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linha); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.cabecalho-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; }
.logo img { width: 260px; }
.menu { display: flex; align-items: center; gap: 1.5rem; }
.menu a { text-decoration: none; color: var(--titulo); font-size: .92rem; font-weight: 600; padding: .3rem 0; border-bottom: 2px solid transparent; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--verde); border-color: var(--verde); }
.menu a.menu-cta { background: var(--verde); color: #fff; padding: .6rem 1.2rem; border-radius: 30px; border: 0; }
.menu a.menu-cta:hover { background: var(--verde-escuro); color: #fff; }
.menu-toggle, .menu-botao { display: none; }
@media (max-width: 1200px) {
  .menu-botao { display: flex; flex-direction: column; gap: 6px; cursor: pointer; padding: .5rem; }
  .menu-botao span { width: 30px; height: 3px; background: var(--verde); }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--linha); }
  .menu a { padding: .9rem 1.2rem; border: 0; border-top: 1px solid var(--linha); }
  .menu a.menu-cta { margin: .8rem 1.2rem 1rem; text-align: center; }
  .menu-toggle:checked ~ .menu { display: flex; }
  .logo img { width: 215px; }
}

/* Hero (entrada) */
.hero2 { background: #F7F9F8 url("/assets/img/marca-dagua.webp") no-repeat right -60px center / 620px auto; border-bottom: 1px solid var(--linha); }
.hero2-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: 4.5rem 0; }
.hero2-kicker { font-family: "Open Sans", Arial, sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; color: #2f7a63; margin: 0 0 1rem; }
.hero2 h1 { font-family: "Roboto Slab", Georgia, serif; font-weight: 400; color: #0B4A38; font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.25; margin: 0 0 1.1rem; max-width: 20em; }
.hero2-sub { font-size: 1.05rem; line-height: 1.65; color: #2b3a36; max-width: 36em; margin: 0 0 1.8rem; }
.hero2-foto { margin: 0; }
.hero2-foto img { width: 100%; border-radius: 4px; box-shadow: 0 18px 40px rgba(11,74,56,.15); }
@media (max-width: 860px) {
  .hero2 { background-size: 380px auto; background-position: right -80px top 30px; }
  .hero2-in { grid-template-columns: 1fr; gap: 2rem; padding: 2.8rem 0; }
}

/* Botões */
.botao, .botao-contorno { display: inline-block; text-decoration: none; font-family: "Open Sans", Arial, sans-serif; font-weight: 600; font-size: .95rem; letter-spacing: .01em; padding: .8rem 1.6rem; border-radius: 30px; margin: .25rem .25rem .25rem 0; }
.botao { background: var(--verde); color: #fff; }
.botao:hover { background: var(--verde-escuro); }
.botao-contorno { border: 2px solid var(--verde); color: var(--verde); }
.botao-contorno:hover { background: var(--verde); color: #fff; }
.botao.claro { background: #fff; color: var(--verde); }
.botao-contorno.claro { border-color: #fff; color: #fff; }

.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Sobre */
.sobre { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0; max-width: 820px; }
.sobre-foto { border-radius: 0 0 40px 40px; }
@media (max-width: 800px) { .sobre { grid-template-columns: 1fr; } }
.titulo-secao { text-align: center; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 2rem; }
.titulo-secao.esquerda { text-align: left; margin-bottom: 1rem; }

/* Áreas */
.areas { background: var(--cinza); padding: 3.5rem 0; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.cartao { position: relative; display: block; background: #fff; border: 1px solid var(--linha); padding: 2rem 1.5rem; text-align: center; text-decoration: none; color: var(--texto); transition: box-shadow .2s, transform .2s; }
.cartao::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 26px 26px 0; border-color: transparent #e3e3e3 transparent transparent; }
.cartao:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.cartao h2, .cartao h3 { font-size: 1.05rem; font-weight: 600; color: var(--titulo); margin: 1rem 0; }
.cartao p { font-family: "Open Sans", Arial, sans-serif; font-size: .9rem; font-weight: 400; margin: 0; }
.icone { width: 64px; height: 64px; color: var(--verde); }

/* Artigos */
.ultimos { padding: 3.5rem 0; }
.lista-artigos { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.cartao-artigo { border-top: 3px solid var(--verde); background: #fff; padding: 1.2rem 0; }
.cartao-artigo h3 { font-size: 1.15rem; margin: .3rem 0 .5rem; }
.cartao-artigo h3 a { color: var(--titulo); text-decoration: none; }
.cartao-artigo h3 a:hover { color: var(--verde); }
.meta { font-family: "Open Sans", Arial, sans-serif; font-size: .85rem; color: #777; margin: 0; }
.selo-rascunho, .aviso-rascunho { background: #fff4d6; color: #7a5a00; font-family: "Open Sans", Arial, sans-serif; }
.selo-rascunho { padding: 0 .4rem; border-radius: 3px; }
.aviso-rascunho { padding: .6rem 1rem; border-radius: 4px; font-size: .95rem; }
.artigo h2 { margin-top: 2.2rem; }
.artigo blockquote { margin: 1.5rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--verde); background: var(--cinza); }
.artigo li { font-family: "Roboto Slab", Georgia, serif; font-weight: 300; margin-bottom: .5rem; }
.autor { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--linha); }

/* Páginas internas */
.pagina { padding: 2rem 0 3.5rem; }
.pagina h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.migalha { font-family: "Open Sans", Arial, sans-serif; font-size: .85rem; color: #777; }
.migalha a { color: #777; }
.foto-larga { margin: 1rem 0 1.5rem; border-radius: 6px; }
.area-topo { display: flex; align-items: center; gap: 1rem; }
.area-topo h1 { margin: 0; }
.caixa-contato { margin-top: 2.5rem; padding: 1.5rem; background: var(--cinza); border-radius: 6px; }

/* Equipe */
.grupo-equipe { font-size: 1.2rem; font-weight: 600; color: var(--verde); margin: 2rem 0 .8rem; }
.equipe { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem 1.5rem; }
@media (max-width: 900px) { .equipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .equipe { grid-template-columns: 1fr; } }
.equipe li { border-left: 3px solid var(--verde); padding: .2rem 0 .2rem .9rem; }
.equipe-oab { display: block; font-size: .9rem; color: var(--verde); letter-spacing: .02em; }
.equipe-nome { display: block; font-weight: 600; color: var(--titulo); }
.equipe-funcao { display: block; font-size: .9rem; }

/* Contato */
.contato-grade { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; }
.contato-grade h2 { font-size: 1.1rem; margin-bottom: .3rem; }
.mapa { width: 100%; min-height: 380px; border: 0; border-radius: 6px; }
@media (max-width: 800px) { .contato-grade { grid-template-columns: 1fr; } }

/* Chamada final */
.chamada { background: var(--verde); color: #fff; text-align: center; padding: 3rem 0; }
.chamada h2 { color: #fff; margin-top: 0; }

/* Rodapé */
.rodape { background: #2b2b2b; color: #cfcfcf; padding-top: 2.5rem; }
.rodape-grade { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.rodape h2 { color: #fff; font-size: 1.05rem; font-weight: 600; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: .35rem; font-size: .9rem; }
.rodape p { font-family: "Open Sans", Arial, sans-serif; font-size: .9rem; }
.rodape a { color: #cfcfcf; text-decoration: none; }
.rodape a:hover { color: #fff; }
.redes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; }
.redes a { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: inherit; opacity: .9; }
.redes a:hover { opacity: 1; text-decoration: underline; }
.redes svg { width: 18px; height: 18px; flex: none; }
.rodape-base { margin-top: 2rem; border-top: 1px solid #444; padding: 1rem 0; font-size: .8rem; color: #999; }
@media (max-width: 800px) { .rodape-grade { grid-template-columns: 1fr; } }

/* WhatsApp flutuante */
.whats { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 20; }
.whats svg { width: 30px; height: 30px; }

/* Institucional: linha do tempo e sede */
.linha-tempo { list-style: none; padding: 0 0 0 1.6rem; margin: 1.5rem 0 2.5rem; border-left: 2px solid rgba(2,134,112,.45); }
.linha-tempo li { position: relative; margin: 0 0 1.6rem; }
.linha-tempo li::before { content: ""; position: absolute; left: calc(-1.6rem - 8px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid #028670; }
.linha-tempo strong { display: block; font-family: "Roboto Slab", Georgia, serif; color: #0B4A38; font-size: 1.4rem; }
.linha-tempo span { font-family: "Roboto Slab", Georgia, serif; font-weight: 300; }
.foto-sede { margin: 1rem 0 2rem; }
.foto-sede figcaption { font-size: .9rem; color: #5b7a70; margin-top: .6rem; }

/* Núcleos de atuação (24/11/2026) */
.intro { color: var(--texto); margin: -.5rem 0 2rem; }
.temas { columns: 2; column-gap: 2rem; padding-left: 1.2rem; margin: 0 0 2rem; }
.temas li { break-inside: avoid; margin-bottom: .4rem; }
@media (max-width: 640px) { .temas { columns: 1; } }

/* Nossos compromissos (24/11/2026) */
.compromissos-sub { font-size: 1.1rem; color: var(--verde); margin-top: -.6rem; }
.carta-socios { border-left: 3px solid var(--verde); background: var(--cinza); padding: 1.5rem 1.75rem; margin: 2rem 0 2.5rem; }
.carta-socios p { margin: 0 0 1rem; font-size: 1.05rem; }
.carta-assinatura { font-size: .9rem !important; color: var(--titulo); font-weight: 600; margin: 0 !important; }
.compromissos { list-style: none; counter-reset: c; padding: 0; margin: 0 0 2.5rem; }
.compromissos li { counter-increment: c; position: relative; padding: 0 0 1.4rem 3.2rem; border-bottom: 1px solid var(--linha); margin-bottom: 1.4rem; }
.compromissos li::before { content: counter(c, decimal-leading-zero); position: absolute; left: 0; top: .1rem; font-size: 1.3rem; font-weight: 700; color: var(--verde); }
.compromissos h2 { font-size: 1.15rem; margin: 0 0 .3rem; color: var(--titulo); }
.compromissos p { margin: 0; }
.faixa-compromissos { padding: 3.5rem 0; }
.compromissos-home { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.compromissos-home li { border-top: 3px solid var(--verde); padding-top: 1rem; }
.compromissos-home h3 { margin: 0 0 .4rem; color: var(--titulo); font-size: 1.1rem; }
.compromissos-home p { margin: 0; }

/* Quem atendemos (24/11/2026) */
.quem-atendemos { padding: 3.5rem 0; }
.segmentos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.segmentos a { display: block; height: 100%; text-decoration: none; color: inherit; border-left: 3px solid var(--verde); padding: .2rem 0 .2rem 1rem; }
.segmentos a:hover h3 { color: var(--verde); }
.segmentos h3 { margin: 0 0 .4rem; color: var(--titulo); font-size: 1.05rem; }
.segmentos p { margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .segmentos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .segmentos { grid-template-columns: 1fr; } }

/* Evita corte lateral com fonte ampliada no celular (24/11/2026) */
h1, h2, h3, p, li, a { overflow-wrap: break-word; }
.compromissos-home { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
/* Núcleos: sempre 3, 2 ou 1 colunas, para os 6 cartões fecharem a grade sem sobra */
.cartoes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cartoes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cartoes { grid-template-columns: 1fr; } }

/* Equipe do núcleo (24/11/2026) */
.nucleo-equipe { margin: 2rem 0; }
.nucleo-equipe h2 { font-size: 1.1rem; margin: 1.5rem 0 .8rem; }
.nucleo-equipe .equipe { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
@media (max-width: 560px) { .nucleo-equipe .equipe { grid-template-columns: 1fr; } }

/* Notícias anteriores (importadas do site antigo) */
.aviso-legado { background: var(--cinza); border-left: 3px solid #b9b9b9; padding: .6rem .9rem; font-family: "Open Sans", Arial, sans-serif; font-size: .88rem; color: #555; }
.artigo-imagem { width: 100%; max-height: 380px; object-fit: cover; border-radius: 6px; margin: 1rem 0 1.5rem; }
.lead { font-weight: 400; font-size: 1.12rem; color: var(--titulo); }
.lista-noticias { list-style: none; padding: 0; margin: 0; }
.lista-noticias li { padding: .7rem 0; border-bottom: 1px solid var(--linha); }
.lista-noticias .meta { display: block; margin-bottom: .15rem; }
.lista-noticias a { color: var(--titulo); text-decoration: none; font-weight: 600; }
.lista-noticias a:hover { color: var(--verde); text-decoration: underline; }

/* Atalhos práticos na entrada da home (24/11/2026) */
.hero2-info { list-style: none; padding: 1.2rem 0 0; margin: 1.6rem 0 0; border-top: 1px solid var(--linha); display: grid; gap: .55rem; font-size: .92rem; color: #3c4a46; }
.hero2-info li { display: flex; gap: .6rem; align-items: flex-start; }
.hero2-info svg { width: 18px; height: 18px; flex: none; color: var(--verde); margin-top: .15rem; }
.hero2-info a { color: var(--verde); font-weight: 600; }

/* Fotografias históricas de Blumenau (teste, branch fotos-historicas) */
.foto-historica { margin: 0; }
.foto-historica img { width: 100%; border-radius: 4px; filter: grayscale(1) contrast(1.02); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.foto-historica figcaption { font-family: "Open Sans", Arial, sans-serif; font-size: .78rem; color: #777; margin-top: .5rem; }
.sobre.sobre-com-foto { max-width: var(--max); grid-template-columns: 1.1fr .9fr; }
@media (max-width: 800px) { .sobre.sobre-com-foto { grid-template-columns: 1fr; } }
.pagina .foto-historica { margin: 1.5rem 0 1rem; }
.pagina .foto-historica img { max-height: 340px; object-fit: cover; }
.chamada-historica { background: linear-gradient(rgba(2,74,58,.9), rgba(2,74,58,.9)), url("/assets/img/historicas/ponte-de-ferro.webp") center 40% / cover no-repeat; }

/* Carrossel de artigos e notícias na home (24/11/2026) */
.carrossel-moldura { position: relative; margin-bottom: 1.5rem; }
.carrossel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: .6rem; }
.carrossel > * { scroll-snap-align: start; }
.carrossel .cartao-artigo p:not(.meta) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.carrossel-seta { position: absolute; top: 40%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--linha); background: #fff; color: var(--verde); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.carrossel-seta.anterior { left: -18px; }
.carrossel-seta.proxima { right: -18px; }
@media (max-width: 900px) { .carrossel { grid-auto-columns: calc((100% - 1.5rem) / 2); } }
@media (max-width: 600px) { .carrossel { grid-auto-columns: 85%; } .carrossel-seta { display: none; } }

/* Artigos científicos: resumo, notas e referências (26/11/2026) */
.artigo-resumo { background: #f4f7f6; border-left: 3px solid #025f4a; padding: 14px 18px; margin: 18px 0 26px; font-size: .95rem; }
.artigo-resumo p { margin: 0 0 8px; }
.artigo-resumo p:last-child { margin-bottom: 0; }
.artigo .notas, .artigo .referencias { font-size: .88rem; line-height: 1.55; }
.artigo .notas ol { padding-left: 1.4em; }
.artigo .referencias { padding-left: 1.1em; }
.artigo .footnote-ref a, .artigo .footnote-backref { text-decoration: none; }
.artigo hr.footnotes-sep { display: none; }

/* Contato: atalho para o mapa (sem incorporar o Google Maps) */
.mapa-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 320px; padding: 2rem; text-align: center; text-decoration: none; color: var(--titulo); background: #F7F9F8 url("/assets/img/marca-dagua.webp") no-repeat center / 260px auto; border: 1px solid var(--linha); border-radius: 4px; }
.mapa-link svg { width: 40px; height: 40px; color: var(--verde); }
.mapa-link strong { color: var(--verde); font-size: 1.1rem; }
.mapa-link small { color: #6b6b6b; }
.mapa-link:hover strong { text-decoration: underline; }
.mapa-fig { margin: 0; }
.mapa-img { position: relative; display: block; border-radius: 4px; overflow: hidden; border: 1px solid var(--linha); box-shadow: 0 10px 28px rgba(11,74,56,.10); }
.mapa-img img { width: 100%; height: auto; }
.mapa-botao { position: absolute; left: 1rem; bottom: 1rem; background: var(--verde); color: #fff; font-weight: 600; font-size: .9rem; padding: .55rem 1.1rem; border-radius: 30px; }
.mapa-img:hover .mapa-botao { background: var(--verde-escuro); }
.mapa-fig figcaption { font-size: .75rem; color: #7a7a7a; margin-top: .35rem; text-align: right; }
