/* ════════════════════════════════════════════════════════════════
   RSSM — Risolia Suto Santiago Morette · Sociedade de Advogados
   style.css — todo o CSS do site
═══════════════════════════════════════════════════════════════════ */

/* ── Fontes ──────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Source Serif 4 18pt Light';
  src: url('../fonts/SourceSerif4_18pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova';
  src: url('../fonts/ProximaNova-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ── Reset / base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --whatsapp:		#25D366;
  --whatsapp-hover:	#075E54;
  --preto:          #221f21;
  --preto-2:        #2b282a;
  --preto-3:        #191919;
  --vermelho:		#d92329;
  --vermelho-esc:	#b51d22;
  --cinza:			#3e3e40;
  --cinza-claro:	#8c8a8b;
  --branco:			#ffffff;
  --off:			#f7f5f2;
  --bege:			#efeae3;
  --linha:			rgba(34,31,33,0.12);
  --linha-d:		rgba(255,255,255,0.14);
  --titulo: 'Source Serif 4 18pt Light', Georgia, 'Times New Roman', serif;
  --texto:  'Proxima Nova', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --container: 1320px;
  --pad: 48px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--texto);
  background: var(--off);
  color: var(--preto);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.menu-aberto,
body.modal-aberto { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
}

/* ════════════════════════════════════════════════════════════════
   PRELOADER
═══════════════════════════════════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--preto);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hide { opacity: 0; visibility: hidden; }
.preloader-mark {
  width: 46px; height: 46px;
  border: 2px solid rgba(255,255,255,0.15);
  border-top-color: var(--vermelho);
  border-radius: 50%;
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════
   TOPBAR (barra fixa do topo)
═══════════════════════════════════════════════════════════════════ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 84px;
  display: flex;
  align-items: center;
  transition: background .35s ease, height .35s ease, box-shadow .35s ease;
}
.topbar.scrolled {
  background: rgba(34,31,33,0.96);
  backdrop-filter: blur(10px);
  height: 68px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .topbar-logo img { height: 55px; width: auto; transition: height .35s ease; }
.topbar.scrolled .topbar-logo img { height: 30px; }

.btn-menu {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--branco);
  font-family: var(--texto);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.btn-menu .barras {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 30px;
}
.btn-menu .barras span {
  height: 2px; width: 100%;
  background: var(--branco);
  transition: transform .3s, opacity .3s;
}
.btn-menu:hover .barras span:nth-child(1) { transform: translateX(4px); }
.btn-menu:hover .barras span:nth-child(3) { width: 70%; }

/* ════════════════════════════════════════════════════════════════
   MENU OVERLAY (lateral / full-screen)
═══════════════════════════════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20,18,19,0.55);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
.menu-overlay.aberto { opacity: 1; visibility: visible; }

/* painel de navegação — lateral direito */
.menu-nav {
  position: relative;
  width: 52%;
  max-width: 640px;
  height: 100%;
  background: var(--preto);
  padding: 32px 48px 56px;
  overflow-y: auto;
  box-shadow: -24px 0 70px rgba(0,0,0,0.45);
  transform: translateX(40px);
  transition: transform .45s ease;
}
.menu-overlay.aberto .menu-nav { transform: none; }
.menu-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.menu-topo-logo img { height: 30px; width: auto; }
.btn-fechar {
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: color .25s, transform .25s;
}
.btn-fechar:hover { color: var(--vermelho); transform: rotate(90deg); }

.menu-lista { list-style: none; }
.menu-lista > li { border-bottom: 1px solid var(--linha-d); }

.menu-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  font-family: var(--titulo);
  font-size: 22px;
  font-weight: 400;
  width: 100%;
  background: none; border: none; cursor: pointer;
  text-align: left;
  transition: color .25s, padding-left .25s;
}
.menu-item:hover { color: var(--branco); padding-left: 8px; }
.menu-item svg { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; }
.menu-item .chevron {
  margin-left: auto;
  width: 16px; height: 16px;
  transition: transform .3s ease;
}
.menu-item.open .chevron { transform: rotate(180deg); }

/* submenu accordion */
.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.submenu.open { max-height: 720px; }
.submenu li a {
  display: block;
  padding: 9px 0 9px 40px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-family: var(--texto);
  font-size: 15px;
  transition: color .2s, padding-left .2s;
}
.submenu li:last-child a { padding-bottom: 20px; }
.submenu li a:hover { color: #fff; padding-left: 46px; }

/* animação de entrada dos itens */
.menu-overlay.aberto .menu-lista > li {
  animation: itemUp .5s ease both;
}
.menu-overlay.aberto .menu-lista > li:nth-child(1){animation-delay:.06s}
.menu-overlay.aberto .menu-lista > li:nth-child(2){animation-delay:.12s}
.menu-overlay.aberto .menu-lista > li:nth-child(3){animation-delay:.18s}
.menu-overlay.aberto .menu-lista > li:nth-child(4){animation-delay:.24s}
.menu-overlay.aberto .menu-lista > li:nth-child(5){animation-delay:.30s}
.menu-overlay.aberto .menu-lista > li:nth-child(6){animation-delay:.36s}
@keyframes itemUp { from{opacity:0; transform:translateY(16px)} to{opacity:1; transform:none} }

/* ════════════════════════════════════════════════════════════════
   HERO (1ª seção)
═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 90px;
  background: var(--preto);
  overflow: hidden;
}
.hero-midia { position: absolute; inset: 0; z-index: 0; }
.hero-midia img.hero-poster {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 62% 42%;
  animation: heroKenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to   { transform: scale(1.22) translate(-2%, -1.5%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(34,31,33,0.66) 0%, rgba(34,31,33,0.55) 45%, rgba(34,31,33,0.80) 100%);
}

/* ── Efeitos do hero: granulação + passada de luz ── */
.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.hero-fx::before {                 /* granulação cinematográfica */
  content: '';
  position: absolute;
  inset: -150%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: heroGrain 1s steps(5) infinite;
}
.hero-fx::after {                  /* passada de luz diagonal */
  content: '';
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 55%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.05) 40%,
    rgba(255,255,255,0.16) 50%,
    rgba(255,255,255,0.05) 60%,
    transparent 100%);
  transform: translateX(-130%) skewX(-14deg);
  animation: heroSheen 9s ease-in-out 2.5s infinite;
}
@keyframes heroGrain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-4%, 3%); }
  40%  { transform: translate(3%, -3%); }
  60%  { transform: translate(-2%, 4%); }
  80%  { transform: translate(4%, -2%); }
  100% { transform: translate(0, 0); }
}
@keyframes heroSheen {
  0%        { transform: translateX(-130%) skewX(-14deg); }
  28%, 100% { transform: translateX(320%)  skewX(-14deg); }
}
.hero::after {        /* faixa vermelha lateral */
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px; z-index: 2;
  background: var(--vermelho);
}
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 28px;
}
.hero-label::before,
.hero-label::after {
  content: '';
  width: 30px; height: 1px;
  background: var(--vermelho);
}
.hero-titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1.1;
  color: #fff;
  max-width: 18ch;
  margin: 0 auto 30px;
}
.hero-titulo em { font-style: normal; color: var(--vermelho); }
.hero-texto {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin: 0 auto 42px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.scroll-dica {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,0.55);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-dica span {
  width: 1px; height: 40px;
  background: linear-gradient(rgba(255,255,255,0.5), transparent);
  animation: descer 1.8s ease-in-out infinite;
}
@keyframes descer { 0%,100%{opacity:.3; transform:scaleY(.6)} 50%{opacity:1; transform:scaleY(1)} }

/* ── Botões ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--texto);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 12px 26px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .5s, color .5s, border-color .5s, filter .5s;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.40)); }
.btn-primario { 
  background: var(--whatsapp);
  color: #fff;
  text-shadow: 1px 1px 3px rgb(0 0 0 / 0.5);
}
.btn-primario:hover { background: var(--whatsapp-hover); }
.btn-outline-claro { border-color: rgba(255,255,255,0.35); color: #fff; background: transparent; }
.btn-outline-claro:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-escuro { background: var(--preto); color: #fff;  }
.btn-escuro:hover { background: var(--vermelho); }
.btn-outline-escuro { border-color: var(--preto); color: var(--preto); background: transparent; }
.btn-outline-escuro:hover { background: var(--preto); color: #fff; }

/* ════════════════════════════════════════════════════════════════
   SEÇÃO — cabeçalho genérico
═══════════════════════════════════════════════════════════════════ */
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: 20px;
}
.sec-label::before { content: ''; width: 28px; height: 1px; background: var(--vermelho); }
.sec-titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.15;
  color: var(--preto);
}
.sec-titulo em { font-style: normal; color: var(--cinza-claro); }
.sec-sub {
  font-size: 16px;
  color: var(--cinza);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 560px;
}

/* ════════════════════════════════════════════════════════════════
   ÁREAS DE ATUAÇÃO (2ª seção)
═══════════════════════════════════════════════════════════════════ */
.areas { background: var(--branco); padding: 120px 0; }
.areas-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 60px;
}
.areas-lista {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(6, auto);
  grid-auto-flow: column;
  border-top: 1px solid var(--linha);
}
.area-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 28px;
  border-bottom: 1px solid var(--linha);
  text-decoration: none;
  color: var(--preto);
  position: relative;
  transition: background .25s;
}
/* divisória vertical central (coluna esquerda = 6 primeiros itens) */
.area-row:nth-child(-n+6) { border-right: 1px solid var(--linha); }
.area-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0; background: var(--vermelho);
  transition: width .3s ease;
}
.area-row:hover { background: var(--off); }
.area-row:hover::before { width: 4px; }
.area-num {
  font-family: var(--titulo);
  font-size: 15px;
  color: var(--cinza);
  opacity: .75;
  width: 26px; flex-shrink: 0;
  padding-top: 5px;
}
.area-icone {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--vermelho);
}
.area-icone svg { width: 22px; height: 22px; stroke: currentColor; }
.area-seta {
  flex-shrink: 0;
  color: var(--cinza-claro);
  margin-top: 4px;
  transition: transform .3s, color .3s;
}
.area-row:hover .area-seta { transform: translateX(4px); color: var(--vermelho); }
.area-conteudo { flex: 1; }
.area-nome {
  font-family: var(--titulo);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.area-desc { font-size: 15px; color: var(--cinza-claro); line-height: 1.55; }

/* ════════════════════════════════════════════════════════════════
   ADVOGADOS (3ª seção)
═══════════════════════════════════════════════════════════════════ */
.advogados { background: var(--preto); padding: 120px 0; }
.advogados .sec-label { color: rgba(255,255,255,0.45); justify-content: center; }
.advogados .sec-label::before { background: var(--vermelho); }
.advogados .sec-label::after { content: ''; width: 28px; height: 1px; background: var(--vermelho); }
.advogados .sec-titulo { color: #fff; }
.advogados .sec-titulo em { color: rgba(255,255,255,0.45); }
.advogados-head { margin-bottom: 56px; text-align: center; }

.advogados-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.adv-card {
  position: relative;
  flex: 0 0 calc((100% - 8px) / 3);
  max-width: calc((100% - 8px) / 3);
  min-width: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--preto-2);
  text-decoration: none;
  display: block;
}
.adv-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.2);
  transition: transform .6s ease, filter .4s ease;
}
.adv-card:hover img { transform: scale(1.05); filter: grayscale(0); }
.adv-card::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 40%, rgba(20,18,19,0.92));
}
.adv-card::after {     /* faixa vermelha no hover */
  content: '';
  position: absolute;
  left: 0; bottom: 0; right: 0;
  height: 3px; z-index: 3;
  background: var(--vermelho);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.adv-card:hover::after { transform: scaleX(1); }
.adv-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 26px;
}
.adv-nome {
  display: block;
  font-family: var(--titulo);
  font-size: 19px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
}
.adv-cargo {
  display: block;
  font-family: var(--titulo);
  font-size: 12px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 5px;
}
.adv-oab {
  display: block;
  font-size: 11.5px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 6px;
}
.adv-area {
  display: block;
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--vermelho);
  font-weight: 600;
}
.adv-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s, transform .35s;
}
.adv-card:hover .adv-link { opacity: 1; transform: none; }
/* zera a margem da última linha de texto antes do link, alinhando a base
   dos cards independente de terem OAB/áreas (ex.: Franciele vs advogados) */
.adv-info > *:has(+ .adv-link) { margin-bottom: 0; }

/* ════════════════════════════════════════════════════════════════
   RODAPÉ
═══════════════════════════════════════════════════════════════════ */
footer { background: var(--preto-2); color: rgba(255,255,255,0.7); }
.footer-cta {
  border-bottom: 1px solid var(--linha-d);
  padding: 80px 0;
}
.footer-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-cta h2 {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  color: #fff;
  line-height: 1.2;
}
.footer-cta h2 em { font-style: normal; color: var(--vermelho); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding: 72px 0 48px;
}
.footer-col h4 {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px; font-weight: 600;
}
.footer-logo img { height: 34px; margin-bottom: 22px; }
.footer-sobre { font-size: 14px; line-height: 1.8; max-width: 340px; color: rgba(255,255,255,0.6); }
.footer-contato { list-style: none; }
.footer-contato li {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px;
  font-size: 14px; line-height: 1.5;
}
.footer-contato svg { width: 18px; height: 18px; stroke: var(--vermelho); flex-shrink: 0; margin-top: 2px; }
.footer-contato a { text-decoration: none; transition: color .2s; }
.footer-contato a:hover { color: #fff; }
.footer-contato span.lbl {
  display: block;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 3px;
}
.footer-redes { display: flex; gap: 12px; margin-top: 8px; }
.footer-redes a {
  width: 40px; height: 40px;
  border: 1px solid var(--linha-d);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background .25s, color .25s, border-color .25s;
}
.footer-redes a:hover { background: var(--vermelho); color: #fff; border-color: var(--vermelho); }
.footer-redes svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid var(--linha-d);
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer-listamais {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity .25s;
}
.footer-listamais:hover { opacity: 1; }
.footer-listamais img { height: 12px; width: auto; }

/* ════════════════════════════════════════════════════════════════
   MODAL — orçamento / WhatsApp
═══════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(15,13,14,0.72);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal-overlay.aberto { opacity: 1; visibility: visible; }
.modal {
  background: var(--off);
  width: 100%;
  max-width: 520px;
  margin: auto;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(.98);
  transition: transform .35s ease;
}
.modal-overlay.aberto .modal { transform: none; }
.modal-cabecalho {
  background: var(--preto);
  padding: 30px 34px;
  position: relative;
}
.modal-cabecalho h3 {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: 26px;
  color: #fff;
  line-height: 1.2;
}
.modal-cabecalho p { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 6px; }
.modal-fechar {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.7);
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .2s, transform .2s;
}
.modal-fechar:hover { color: var(--vermelho); transform: rotate(90deg); }
.modal-corpo { padding: 30px 34px 34px; }
.campo { margin-bottom: 18px; }
.campo label {
  display: block;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--cinza); font-weight: 600;
  margin-bottom: 7px;
}
.campo label .req { color: var(--vermelho); }
.campo input,
.campo select,
.campo textarea {
  width: 100%;
  font-family: var(--texto);
  font-size: 15px;
  color: var(--preto);
  background: #fff;
  border: 1px solid var(--linha);
  padding: 13px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--vermelho);
  box-shadow: 0 0 0 3px rgba(217,35,41,0.12);
}
.campo textarea { resize: vertical; min-height: 110px; }
.campo .contador { font-size: 11px; color: var(--cinza-claro); text-align: right; margin-top: 5px; }
.modal .btn { width: 100%; justify-content: center; margin-top: 6px; }
.modal-nota {
  font-size: 11.5px; color: var(--cinza-claro);
  text-align: center; margin-top: 14px; line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════
   BARRA MOBILE FIXA
═══════════════════════════════════════════════════════════════════ */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--preto);
  height: 56px;
  align-items: stretch;
}
.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  font-family: inherit;
  transition: background .2s;
}
.mobile-bar-btn:hover { background: rgba(255,255,255,0.08); }
.mobile-bar-btn + .mobile-bar-btn { border-left: 1px solid rgba(255,255,255,0.15); }

/* ════════════════════════════════════════════════════════════════
   VOLTAR AO TOPO
═══════════════════════════════════════════════════════════════════ */
#backToTop {
  position: fixed;
  bottom: 72px; right: 15px;
  z-index: 9999;
  width: 46px; height: 46px;
  background: var(--vermelho);
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background .25s;
}
#backToTop.visible { opacity: 1; visibility: visible; }
#backToTop:hover { background: var(--vermelho-esc); }
#backToTop svg { width: 20px; height: 20px; }

/* ════════════════════════════════════════════════════════════════
   ANIMAÇÕES DE ENTRADA (scroll reveal)
═══════════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero-midia img.hero-poster,
  .hero-fx::before,
  .hero-fx::after { animation: none; }
  .hero-midia img.hero-poster { transform: scale(1.06); }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVO
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1250px) {
  .adv-card { flex-basis: calc((100% - 8px) / 3); max-width: calc((100% - 8px) / 3); }
}

@media (max-width: 1024px) {
  :root { --pad: 28px; }
  .menu-nav { width: 100%; max-width: 420px; padding: 28px; }
  .hero { padding-bottom: 90px; }
  .areas-head { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .mobile-bar { display: flex; }
  footer { padding-bottom: 0; }
  .footer-bottom { padding-bottom: 16px; }
  .footer-bottom { margin-bottom: 56px; }
  #backToTop { bottom: 72px; }
  .adv-card { flex-basis: calc((100% - 4px) / 2); max-width: calc((100% - 4px) / 2); }
}

@media (max-width: 767px) {
  .topbar { height: 70px; }
  .topbar.scrolled { height: 60px; }
  .topbar .topbar-logo img { height: 41px; }
  .topbar.scrolled .topbar-logo img { height: 26px; }
  .btn-menu span.rotulo { display: none; }
  .hero { padding-bottom: 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .areas { padding: 80px 0; }
  .areas-lista { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .area-row { padding: 22px 0; }
  .area-row:nth-child(-n+6) { border-right: none; }
  .area-nome { font-size: 19px; }
  .advogados { padding: 80px 0; }
  .adv-card { flex-basis: calc((100% - 4px) / 2); max-width: calc((100% - 4px) / 2); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 32px; }
  .footer-cta { padding: 56px 0; }
  .modal-overlay { padding: 12px; }
  .modal-cabecalho { padding: 14px 22px; }
  .modal-cabecalho h3 { font-size: 19px; }
  .modal-cabecalho p { font-size: 11.5px; margin-top: 3px; }
  .modal-corpo { padding: 16px 22px 20px; }
  .campo { margin-bottom: 7px; }
  .campo label { margin-bottom: 4px; }
  .campo input, .campo select, .campo textarea { padding: 9px 12px; }
  .campo textarea { min-height: 52px; }
  .campo .contador { margin-top: 3px; }
  .modal .btn { margin-top: 2px; }
  .modal-nota { margin-top: 9px; }
}

@media (max-width: 460px) {
  .adv-card { flex-basis: 100%; max-width: 100%; }
}

/* reCAPTCHA tem largura fixa (~304px); em telas estreitas reduz para caber
   na caixa do modal sem estourar */
@media (max-width: 400px) {
  .g-recaptcha { transform: scale(0.86); transform-origin: top left; }
}

/* ════════════════════════════════════════════════════════════════
   PÁGINAS INTERNAS
═══════════════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  background: var(--preto);
  padding: 180px 0 100px;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--vermelho);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 22px;
}
.breadcrumb a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--vermelho); }
.breadcrumb span { color: rgba(255,255,255,0.3); }
.sec-label-claro { color: rgba(255,255,255,0.5); }
.page-hero-titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.1;
  color: #fff;
  max-width: 28ch;
}
.page-hero-titulo em { font-style: normal; color: var(--vermelho); }
.page-hero-sub {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin-top: 20px;
}

/* imagem de fundo no page-hero */
.page-hero-img-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.page-hero-img-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* posição padrão da imagem; cada página pode sobrescrever via --hero-pos */
  object-position: var(--hero-pos, center bottom);
  transform-origin: 62% 42%;
  animation: heroKenburns 24s ease-in-out infinite alternate;
  will-change: transform;
}

/* overlay escuro sobre a imagem de fundo do page-hero */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* escurecimento extra do lado DIREITO; controlado por --hero-dir (0 = nada) */
    linear-gradient(to right, rgba(34,31,33,0.0) 45%, rgba(34,31,33, var(--hero-dir, 0)) 100%),
    /* escurece a ESQUERDA para a leitura do texto; some antes da direita */
    linear-gradient(to right, rgba(34,31,33,0.88) 0%, rgba(34,31,33,0.40) 38%, rgba(34,31,33,0.0) 66%),
    /* leve sombra no TOPO (logo/menu) */
    linear-gradient(180deg, rgba(34,31,33,0.60) 0%, rgba(34,31,33,0.0) 32%),
    /* leve sombra na BASE */
    linear-gradient(0deg, rgba(34,31,33,0.45) 0%, rgba(34,31,33,0.0) 22%);
  z-index: 1;
  pointer-events: none;
}
/* páginas de profissional: sobreposição preta lisa a 50% (sem gradientes) */
.prof-hero .page-hero-overlay {
  background: rgba(27, 27, 27, 0.7)
}
.page-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.page-hero-fx::before {
  content: '';
  position: absolute;
  inset: -150%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: overlay;
  animation: heroGrain 1s steps(5) infinite;
}
.page-hero-fx::after {
  content: '';
  position: absolute;
  top: -20%; bottom: -20%;
  left: 0;
  width: 55%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255,255,255,0.05) 40%,
    rgba(255,255,255,0.16) 50%,
    rgba(255,255,255,0.05) 60%,
    transparent 100%);
  transform: translateX(-130%) skewX(-14deg);
  animation: heroSheen 9s ease-in-out 2.5s infinite;
}
.page-hero .container { position: relative; z-index: 3; }
.page-hero::after { z-index: 3; }

/* hero do profissional (foto + info) */
.prof-hero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: center;
}
.prof-foto {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--preto-2);
}
.prof-foto::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--vermelho);
}
.prof-foto img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.prof-cargo {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--vermelho); font-weight: 600;
  margin-top: 14px;
}
.prof-oab {
  font-size: 13px; letter-spacing: .06em;
  color: var(--branco); font-weight: 600;
  margin-top: 6px;
}
.prof-areas {
  font-family: var(--titulo);
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}
.prof-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* conteúdo de página */
.page-conteudo { background: var(--off); padding: 84px 0; }
/* .conteudo-estreito { max-width: 880px; } */
.bloco { margin-bottom: 56px; }
.bloco:last-child { margin-bottom: 0; }
.bloco-titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.2;
  color: var(--preto);
  margin-bottom: 24px;
}
.bloco-titulo em { font-style: normal; color: var(--cinza-claro); }
.bloco-texto {
  font-size: 16px;
  line-height: 1.85;
  color: var(--cinza);
  margin-bottom: 16px;
}
.bloco-texto:last-child { margin-bottom: 0; }
.bloco-texto.destaque {
  font-family: var(--titulo);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
  color: var(--preto);
}

/* formação acadêmica */
.formacao-grupo {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--vermelho); font-weight: 600;
  margin: 28px 0 14px;
}
.formacao-lista { list-style: none; }
.formacao-lista li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cinza);
}
.formacao-lista li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 8px; height: 8px;
  background: var(--vermelho);
  border-radius: 50%;
}

/* subáreas */
.sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--linha);
  border: 1px solid var(--linha);
}
.sub-item {
  background: var(--branco);
  padding: 28px;
  transition: background .25s;
}
.sub-item:hover { background: #fff; }
.sub-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.sub-nome {
  font-family: var(--titulo);
  font-size: 19px;
  color: var(--preto);
  margin-bottom: 10px;
}
.sub-desc { font-size: 14px; line-height: 1.65; color: var(--cinza-claro); }

/* por que escolher */
.porque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.porque-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cinza);
}
.porque-marca {
  flex-shrink: 0;
  width: 10px; height: 10px;
  margin-top: 7px;
  background: var(--vermelho);
  transform: rotate(45deg);
}
.porque-item strong { color: var(--preto); }

/* pilares (O Escritório) */
.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pilar {
  background: var(--branco);
  border-top: 3px solid var(--vermelho);
  padding: 32px 28px;
  text-align: center;
}
.pilar-icone {
  width: 48px; height: 48px;
  background: var(--vermelho);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.pilar-icone svg { width: 22px; height: 22px; color: #fff; }
.pilar-titulo {
  font-family: var(--titulo);
  font-size: 22px;
  color: var(--preto);
  margin-bottom: 14px;
}
.pilar p { font-size: 14.5px; line-height: 1.7; color: var(--cinza); }

/* faixa CTA */
.cta-faixa { background: var(--preto-3); padding: 72px 0; }
.cta-faixa-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-faixa .sec-label { color: rgba(255,255,255,0.45); }
.cta-faixa-titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  color: #fff;
}
.cta-faixa-titulo em { font-style: normal; color: var(--vermelho); }

/* página de contato */
.contato-pg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contato-cartoes { list-style: none; }
.contato-cartoes li {
  padding: 22px 0;
  border-bottom: 1px solid var(--linha);
  font-size: 15px;
  color: var(--cinza);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contato-cartoes li:first-child { padding-top: 0; }
.contato-cartoes .lbl {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cinza-claro); font-weight: 600;
}
.contato-cartoes a {
  font-family: var(--titulo);
  font-size: 22px;
  color: var(--preto);
  text-decoration: none;
  transition: color .2s;
}
.contato-cartoes a:hover { color: var(--vermelho); }
.contato-cartoes .nota { font-size: 13px; color: var(--cinza-claro); }
.link-sutil {
  font-family: var(--texto) !important;
  font-size: 13px !important;
  color: var(--vermelho) !important;
  margin-top: 4px;
}
.contato-pg-cta {
  background: var(--branco);
  border: 1px solid var(--linha);
  padding: 40px;
}
.contato-pg-cta .bloco-titulo { margin-bottom: 16px; }
.contato-pg-cta .btn { margin-top: 18px; margin-right: 12px; }

/* tabela de áreas (contato) */
.areas-tabela { border-top: 1px solid var(--linha); margin-top: 8px; }
.areas-tabela-linha {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--linha);
  text-decoration: none;
  transition: background .2s, padding-left .2s;
}
.areas-tabela-linha:hover { background: var(--branco); padding-left: 14px; }
.at-nome { font-family: var(--titulo); font-size: 18px; color: var(--preto); }
.at-desc { font-size: 14px; line-height: 1.6; color: var(--cinza-claro); }

/* responsivo páginas internas */
@media (max-width: 900px) {
  .page-hero { padding: 130px 0 56px; }
  .prof-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .prof-foto { max-width: 320px; }
  .sub-grid, .porque-grid, .pilares, .contato-pg-grid { grid-template-columns: 1fr; }
  .pilares { gap: 16px; }
  .page-conteudo { padding: 60px 0; }
  .cta-faixa-inner { flex-direction: column; align-items: flex-start; }
  .areas-tabela-linha { grid-template-columns: 1fr; gap: 6px; }
  .contato-pg-cta { padding: 32px 24px; }
}
