/*
Theme Name: Pianaro Advocacia
Theme URI: https://pianaro.adv.br
Author: Pianaro Advocacia
Description: Tema institucional de Pianaro Advocacia. Advocacia de imersão para disputas de infraestrutura. Visão além do litígio.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: pianaro
*/

/* ---------- Fontes ---------- */
@font-face {
  font-family: 'Sk-Modernist';
  src: url('assets/fonts/Sk-Modernist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sk-Modernist';
  src: url('assets/fonts/Sk-Modernist-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --rosa: #CC1564;
  --preto: #0C0C0C;
  --branco: #FFFFFF;
  --cinza-700: #444444;
  --cinza-500: #555555;
  --cinza-400: #666666;
  --cinza-borda: #E4E4E4;
  --rosa-tint: #FAF8F9;
  --fonte: 'Sk-Modernist', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1120px;
}

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--fonte);
  color: var(--preto);
  background: var(--branco);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Utilitários de marca ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--rosa);
  font-weight: 700;
  margin: 0 0 14px;
}
.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 32px;
}
.btn {
  display: inline-block;
  background: var(--rosa);
  color: var(--branco);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 4px;
  border: 1px solid var(--rosa);
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: #A81052; border-color: #A81052; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--rosa); outline-offset: 3px; }
.link-line {
  font-size: 15px;
  font-weight: 400;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-solid {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 104px;
	padding-top: 14px;
	transition: height .25s ease, padding-top .25s ease;
}
.site-header.is-solid .container { height: 84px; padding-top: 0; }
.brand { display: flex; align-items: center; gap: 3px; }
.brand .logo {
	width: clamp(110px, 12vw, 168px);
	height: auto;
	max-height: 44px;
	object-fit: contain;
	object-position: left center;
	display: block;
	transition: width .25s ease;
}
.site-header.is-solid .brand .logo { width: clamp(100px, 10vw, 148px); }
.brand .logo-escuro { display: none; }
.site-header.on-dark:not(.is-solid) .brand .logo-escuro { display: block; }
.site-header.on-dark:not(.is-solid) .brand .logo-claro { display: none; }
.site-footer .brand .logo { width: clamp(90px, 9vw, 120px); max-height: 32px; }
.brand-word { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--preto); }
.brand svg { display: block; }
.site-header.on-dark:not(.is-solid) .brand-word,
.site-header.on-dark:not(.is-solid) .main-nav a { color: var(--branco); }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a { font-size: 14px; color: var(--cinza-700); transition: color .2s ease; }
.main-nav a:hover { color: var(--rosa); }
.main-nav a.nav-insights { color: var(--rosa); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background-color: var(--preto);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.62) 60%, rgba(8,8,8,0.78) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 640px; padding: 140px 0 110px; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--branco);
  margin: 0 0 22px;
}
.hero p.lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  margin: 0 0 34px;
  max-width: 540px;
}
.hero .link-line { color: var(--branco); margin-left: 22px; }
.hero.hero-light { background: var(--branco); }
.hero.hero-light .hero-overlay { display: none; }
.hero.hero-light h1 { color: var(--preto); }
.hero.hero-light p.lead { color: var(--cinza-500); }
.hero.hero-light .link-line { color: var(--preto); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--preto); color: var(--branco); padding: 96px 0; }
.manifesto p.statement {
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.65;
  font-weight: 400;
  max-width: 820px;
  margin: 0;
}
.manifesto .destaque { color: var(--rosa); font-weight: 700; }

/* ---------- Atuação ---------- */
.atuacao { padding: 100px 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--cinza-borda);
  border-radius: 10px;
  padding: 28px 28px 30px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--rosa); transform: translateY(-3px); }
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { font-size: 14.5px; line-height: 1.7; color: var(--cinza-400); margin: 0; }

/* ---------- Método ---------- */
.metodo { padding: 0 0 100px; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.step {
  background: var(--rosa-tint);
  border-radius: 10px;
  padding: 28px;
}
.step .num { font-size: 13px; color: var(--rosa); font-weight: 700; letter-spacing: 0.08em; margin: 0 0 8px; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--cinza-500); margin: 0; }

/* ---------- Sobre ---------- */
.sobre { border-top: 1px solid #ECECEC; padding: 90px 0; }
.sobre-flex { display: flex; gap: 48px; align-items: center; }
.sobre-foto {
  width: 240px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #E9E9E9;
}
.sobre-foto img { width: 100%; height: 100%; object-fit: cover; }
.sobre h2 { font-size: 26px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.02em; }
.sobre p { font-size: 16px; color: var(--cinza-500); max-width: 560px; margin: 0 0 12px; }

/* ---------- Insights ---------- */
.insights { background: var(--rosa-tint); padding: 96px 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}
.post-card {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: 10px;
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--rosa); transform: translateY(-3px); }
.post-card .meta { font-size: 12px; color: var(--rosa); font-weight: 700; letter-spacing: 0.08em; }
.post-card h3 { font-size: 17px; font-weight: 700; line-height: 1.45; margin: 0; letter-spacing: -0.01em; }
.post-card p { font-size: 14px; line-height: 1.7; color: var(--cinza-400); margin: 0; }
.insights .all-link { margin-top: 30px; display: inline-block; }

/* ---------- Contato ---------- */
.contato { padding: 100px 0; }
.contato-flex { display: flex; gap: 56px; flex-wrap: wrap; align-items: flex-start; }
.contato-info { min-width: 260px; }
.contato-info p { margin: 0 0 8px; font-size: 15.5px; color: var(--cinza-500); }
.contato-info a { color: var(--preto); border-bottom: 1px solid var(--cinza-borda); transition: border-color .2s ease; }
.contato-info a:hover { border-color: var(--rosa); }
.contato-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--preto); color: rgba(255, 255, 255, 0.7); padding: 44px 0; }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer .brand-word { color: var(--branco); font-size: 18px; }
.site-footer p { margin: 0; font-size: 13px; }

/* ---------- Blog (Além do Litígio) ---------- */
.blog-hero { background: var(--preto); color: var(--branco); padding: 160px 0 70px; }
.blog-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.blog-hero p { color: rgba(255, 255, 255, 0.75); margin: 0; max-width: 560px; }
.blog-list { padding: 70px 0 90px; }
.blog-list .posts-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.single-article { padding: 160px 0 90px; max-width: 760px; }
.single-article h1 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 12px; }
.single-article .meta { font-size: 13px; color: var(--rosa); font-weight: 700; letter-spacing: 0.08em; margin-bottom: 36px; }
.article-content { font-size: 17px; line-height: 1.85; color: #2A2A2A; }
.article-content h2 { font-size: 24px; margin: 40px 0 14px; letter-spacing: -0.01em; }
.article-content h3 { font-size: 19px; margin: 32px 0 10px; }
.article-content a { color: var(--rosa); border-bottom: 1px solid currentColor; }
.article-content blockquote {
  border-left: 3px solid var(--rosa);
  margin: 28px 0;
  padding: 4px 0 4px 22px;
  color: var(--cinza-500);
}
.article-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.article-content .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}
@media (max-width: 900px) {
  .article-content .alignwide { margin-left: 0; margin-right: 0; }
}
.pagination { display: flex; gap: 10px; margin-top: 40px; font-size: 14px; }
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--cinza-borda);
  border-radius: 6px;
}
.pagination .page-numbers.current { background: var(--preto); color: var(--branco); border-color: var(--preto); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsivo ---------- */
@media (max-width: 860px) {
  .sobre-flex { flex-direction: column; align-items: flex-start; }
  .sobre-foto { width: 200px; }
}
@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--branco);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 24px; color: var(--preto) !important; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--cinza-borda);
    border-radius: 8px;
    cursor: pointer;
  }
  .site-header.on-dark:not(.is-solid) .nav-toggle { border-color: rgba(255,255,255,0.4); }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    content: '';
  }
  .nav-toggle span::before { position: absolute; top: -6px; }
  .nav-toggle span::after { position: absolute; top: 6px; }
  .site-header.on-dark:not(.is-solid) .nav-toggle { color: var(--branco); }
  .hero-inner { padding: 120px 0 80px; }
}

/* ---------- Home em blocos (Gutenberg) ---------- */
.home-blocos { display: block; }
.home-blocos > .wp-block-group,
.home-blocos > .wp-block-cover { margin: 0; }
.home-blocos .wp-block-group.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.hero-bloco { padding: 140px 24px 110px; }
.hero-bloco .wp-block-cover__inner-container { max-width: var(--max); margin: 0 auto; }
.hero-bloco h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--branco);
  max-width: 640px;
  margin: 0 0 22px;
}
.hero-bloco p.lead {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  max-width: 540px;
  margin: 0 0 34px;
}
.wp-block-button__link {
  background: var(--rosa);
  color: var(--branco);
  font-family: var(--fonte);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 4px;
  transition: background .2s ease;
}
.wp-block-button__link:hover { background: #A81052; color: var(--branco); }
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.hero-bloco .wp-block-button.is-style-outline .wp-block-button__link { color: var(--branco); }
.home-blocos .wp-block-columns.cards-grid,
.home-blocos .wp-block-columns.steps-grid { display: grid; gap: 16px; }
.home-blocos .cards-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.home-blocos .steps-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.home-blocos .card h3 { font-size: 18px; margin: 0 0 10px; }
.home-blocos .card p { font-size: 14.5px; line-height: 1.7; color: var(--cinza-400); margin: 0; }
.home-blocos .step p { font-size: 14.5px; line-height: 1.7; color: var(--cinza-500); margin: 0; }
.home-blocos .step p.num { font-size: 13px; color: var(--rosa); font-weight: 700; letter-spacing: 0.08em; margin: 0 0 8px; }
.home-blocos .sobre-foto img { border-radius: 10px; }
.home-blocos .metodo { padding: 0 0 100px; }
.posts-blocos { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.posts-blocos li {
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: 10px;
  padding: 26px;
  margin: 0;
}
.posts-blocos li a { font-size: 17px; font-weight: 700; line-height: 1.45; }
.posts-blocos .wp-block-latest-posts__post-date { font-size: 12px; color: var(--rosa); font-weight: 700; display: block; margin: 6px 0; }
.posts-blocos .wp-block-latest-posts__post-excerpt { font-size: 14px; line-height: 1.7; color: var(--cinza-400); margin: 8px 0 0; }


/* ---------- Caixa de autor (E-E-A-T) ---------- */
.autor-box {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 56px;
  padding: 24px 26px;
  border: 1px solid var(--cinza-borda);
  border-radius: 10px;
}
.autor-box img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.autor-nome { margin: 0 0 4px; font-weight: 700; font-size: 15.5px; }
.autor-bio { margin: 0 0 6px; font-size: 14px; color: var(--cinza-500); line-height: 1.65; }
.autor-link { font-size: 13.5px; color: var(--rosa); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
