:root {
  --cobre: #955b3f;
  --cobre-menu: #a0705a;
  --azul: #00263D;
  --texto: #00263D;
  --header-h: 110px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.5 "Open Sans", system-ui, sans-serif; color: var(--texto); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: min(800px, 100% - 2rem); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; border-bottom: 1px solid #eee; }
.header-inner { position: relative; height: 100%; display: flex; justify-content: space-between; align-items: flex-end; }
.logo { position: absolute; top: 0; left: 0; z-index: 2; background: var(--azul); }
.logo img { width: 165px; height: 142px; object-fit: contain; }
.site-nav { margin-left: auto; padding-bottom: 18px; }
.site-nav ul { display: flex; gap: 42px; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--cobre-menu); text-decoration: none; font-size: 1.0625rem; }
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; }
.nav-toggle { display: none; }

.hero, .secao, .socios { scroll-margin-top: var(--header-h); }

/* ---------- Hero (colagem) ---------- */
.hero { overflow: hidden; 
    background-repeat: no-repeat;
    background-position: top;
    padding-top: 402px;
    background-image: url("../img/bg-hero.jpg");}
.hero__bottom {         width: 367px;
    margin-right: -59px;
 float: right; }
.hero__bottom > .hero__bloco-cobre, .hero__livros { height: 182px; align-self: start; }
.hero__livros { width: 100%; object-fit: cover; }
.hero__noticias { grid-column: 4; background: var(--azul); color: #fff; padding: 2rem 2rem 2.5rem; min-height: 300px; }
.hero__noticias h2 { margin: 0 0 1.5rem; font-weight: 400; font-size: 1.5rem; letter-spacing: .06em;
  padding-bottom: 1rem; width: fit-content; padding-right: 2.2rem; }
.hero__noticias ul { list-style: none; margin: 0; padding: 0; }
.hero__noticias li { margin-bottom: 1.1rem; }
.hero__noticias a { text-decoration: none; line-height: 1.5; display: block; }
.hero__noticias a:hover { text-decoration: underline; }
.hero__noticias small { font-size: .72rem; font-weight: 600; }

/* ---------- Seções ---------- */
.secao h2 { margin: 0; font-weight: 400; font-size: 2.75rem; letter-spacing: .04em; line-height: 1.2; }
.secao__conteudo { margin-top: 1rem; text-align: left; }
.secao__conteudo p { margin: 0 0 .25rem; }

.secao--quem-somos { padding-top: 2rem; }
.secao--quem-somos h2 { color: var(--cobre); }

/* Áreas de atuação: título na faixa branca, conteúdo na faixa cobre */
.secao--areas-de-atuacao .secao__topo { padding: 2rem 0 1rem; }
.secao--areas-de-atuacao h2 { color: var(--azul); }
.secao--areas-de-atuacao .secao__fundo { background: var(--cobre); color: #fff; padding: 3rem 0; }
.secao--areas-de-atuacao .secao__conteudo { margin: 0 0 0 27%; }
.secao--areas-de-atuacao h3 { margin: 0 0 .25rem; font-weight: 400; font-size: 1.5rem; line-height: 1.3; }
.secao--areas-de-atuacao .secao__conteudo p { margin-bottom: 2rem; }

.secao--noticias { padding: 3rem 0; }
.secao--noticias h2 { color: var(--azul); }
.lista-noticias { list-style: none; margin: 2rem 0 0; padding: 0; }
.lista-noticias li { margin-bottom: 1rem; }
.lista-noticias a { text-decoration: none; }
.lista-noticias a:hover { text-decoration: underline; }
.lista-noticias a { display: block; line-height: 1.5; }
.lista-noticias small { display: block; margin-top: .15rem; font-size: .8rem; font-weight: 600; }
.lista-noticias [hidden] { display: none; }
.btn-ler-mais { margin-top: 1.5rem; padding: .7rem 2rem; background: var(--cobre); color: #fff; border: 0; font: inherit; font-size: 1rem; letter-spacing: .04em; cursor: pointer; }
.btn-ler-mais:hover, .btn-ler-mais:focus-visible { background: var(--azul); }
.aviso-admin { font-size: .8rem; opacity: .8; margin: 1rem 0 0; }

/* Contato */
.faixa { height: 92px; background: url("../img/padrao-azul.png"); }
.secao--contato{position: relative;min-height:770px}
.secao--contato, .secao--contato .secao__topo, .secao--contato .secao__fundo { background: var(--azul); color: #fff; }
.secao--contato .secao__topo { padding-top: 4rem; }
.secao--contato .secao__fundo { padding-bottom: 4rem; }
.secao--contato .secao__conteudo { text-align: left; margin-top: 1rem; }
.secao--contato .secao__conteudo iframe{
        position: absolute;
        left: 0;
        width: 100% !important;
        height: 350px !important;
    margin-top: 50px;

      }
.secao--contato a { color: #fff; }

/* ---------- Sócios ---------- */
.socios { position: relative; padding-bottom: 3rem; margin-top: 250px; }
.socios__faixa { position: absolute; top: 5px; left: 0; right: 0; height: 115px; background-image: url("../img/patterns-1.gif");
    background-position: bottom; z-index: 0; }
.socios .container { position: relative; z-index: 1; }
.socios__lista { display: flex; gap: 2rem; width: 50%; margin-left: auto; }
.socio { flex: 1; }
.socio__foto { width: 100%;max-width: 150px; 
    height: 150px; margin-bottom: 1rem; }
.socio h3 { margin: 0; color: var(--cobre); font-weight: 400; font-size: 1.375rem; line-height: 1.4; }
.socio__oab { margin: 0 0 1rem; color: var(--cobre); font-size: 1.1rem; }
.socio__bio { font-size: 1rem; text-align: left; }

/* ---------- Páginas internas (post, página, lista, 404) ---------- */
.interna { padding: 3rem 0; min-height: 50vh; }
.interna__titulo { margin: 0 0 1rem; font-weight: 400; font-size: 2.25rem; line-height: 1.2; color: var(--cobre); }
.interna__meta { margin: 0 0 1.5rem; font-size: .875rem; font-weight: 600; }
.interna__voltar { margin-top: 2rem; }
.interna .container { padding-left: 0; }
.interna .secao__conteudo p { margin-bottom: 1rem; }
.navigation.pagination { margin-top: 2rem; }

/* ---------- Rodapé ---------- */
.site-footer { background:url("../img/patterns-2.gif") var(--azul); color: #fff; padding: 3.5rem 0; font-size: .85rem; }
.site-footer p { margin: 0; }

/* Link da fonte dentro da linha "Fonte: X | data" */
.hero__noticias small a, .lista-noticias small a { display: inline; }
.hero__noticias small a:hover, .lista-noticias small a:hover { text-decoration: underline; }
/* ---------- Mobile ---------- */
@media (max-width: 800px) {
  :root { --header-h: 72px; }
  .logo img { width: 90px; height: 78px; object-fit: contain; }
  .nav-toggle { display: block; margin-left: auto; margin-bottom: 14px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { position: absolute; left: 10px; width: 24px; height: 2px; background: var(--cobre); content: ""; }
  .nav-toggle__bar { top: 21px; }
  .nav-toggle__bar::before { top: -7px; left: 0; }
  .nav-toggle__bar::after  { top: 7px;  left: 0; }
  .site-nav { display: none; position: absolute; top: 100%; left: -1rem; right: -1rem; background: #fff; border-bottom: 1px solid #eee; padding: 1rem; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: .75rem; }

  .hero__top { grid-template-columns: 1fr; height: auto; }
  .hero__faixa-lateral, .hero__direita .hero__bloco-cobre { display: none; }
  .hero__ponte > img { height: 220px; }
  .hero__direita { grid-template-rows: 60px 220px; }
  .hero__bottom { grid-template-columns: 1fr; }
  .hero__bottom > div, .hero__livros { display: none; }
  .hero__noticias { grid-column: 1; min-height: 0; }

  .secao h2 { font-size: 2rem; }
  .secao--areas-de-atuacao .secao__conteudo { margin-left: 0; }
  .socios__faixa { height: 70px; background: none; }
  .socios__lista { flex-direction: column; width: 100%; }
  :root { --header-h: 0px; }

  .site-header { position: static; height: auto; background: var(--azul); border-bottom: 0; }
  .header-inner { width: 100%; margin: 0; height: auto; flex-direction: column; align-items: stretch; }
  .logo { position: static; align-self: center; background: none; padding: 1.5rem 0 1.25rem; }
  .logo img { width: 165px; height: 142px; object-fit: contain; }

  /* faixa cobre com o botão de menu */
  .nav-toggle { display: block; width: 100%; height: 40px; margin: 0; background: var(--cobre); border: 0; position: relative; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { background: #fff; }
  .nav-toggle__bar { left: calc(50% - 12px); top: 19px; }
  .nav-toggle__bar::before { left: 0; top: -7px; }
  .nav-toggle__bar::after  { left: 0; top: 7px; }

  /* menu aberto: lista cobre logo abaixo da faixa */
  .site-nav { position: static; margin: 0; padding: .75rem 1rem 1rem; background: var(--cobre); border: 0; }
  .site-nav a { color: #fff; }

  /* sem a colagem do topo no celular */
  .hero { display: none; }
}
/* ---------- iPhone / celulares pequenos (até 480px) ---------- */
@media (max-width: 480px) {
  html { -webkit-text-size-adjust: 100%; }  
  header .container { width:100%; }        /* o Safari não aumenta o texto sozinho ao girar a tela */
  .container { width: calc(100% - 2rem); }

  /* topo */
  .logo { padding: 1.25rem 0 1rem; }
  .logo img { width: 140px; height: 120px; }

  /* títulos e textos */
  .secao h2 { font-size: 1.50rem; }
  .secao__conteudo, .socio__bio { text-align: left; }   /* o justificado abre buracos em linha estreita */

  /* áreas de atuação */
  .secao--areas-de-atuacao .secao__fundo { padding: 2rem 0; }
  .secao--areas-de-atuacao h3 { font-size: 1rem; }

  /* notícias */
  .btn-ler-mais { width: 100%; }
  .lista-noticias a { font-size: 0.9rem; }

  /* sócios */
  .socios { margin-top: 120px; }
  .socio__foto { max-width: 120px; height: auto;}

  /* contato: mapa e formulários */
  .secao--contato { min-height: 0; }
  .secao--contato .secao__conteudo iframe { position: static; height: 280px !important; margin-top: 1.5rem; }
  input, select, textarea { font-size: 16px; }          /* evita o zoom automático do iPhone ao tocar no campo */

  /* rodapé */
  .site-footer { padding: 2.5rem 0; }
}

/* iPhones com entalhe/ilha: respeita as bordas seguras quando o celular está deitado */
@supports (padding: max(0px)) {
  .container { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}