/*
 Theme Name:   Thiago Fachetti Child
 Theme URI:    https://thiagofachetti.com.br
 Description:  Tema filho do GeneratePress para o blog Thiago Fachetti Advogados
 Author:       Agência Evolux
 Author URI:   https://agenciaevolux.com.br
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  tf-child
*/

/* =========================================================
   PALETA — Thiago Fachetti Advogados
   Mostarda  : #E8B254
   Fundo hero: #DBDBDB  (cinza médio — substitui o preto)
   Fundo pág : #F2F2F2  (cinza claro)
   Texto esc : #2C2C2C  (quase preto — sobre fundos claros)
   Texto mut : #6B6B6B
   Branco    : #FFFFFF
   ========================================================= */

/* ── BREADCRUMB ─────────────────────────────────────────── */
.tf-breadcrumb {
  background: #DBDBDB;
  padding: 10px 0;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.tf-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tf-breadcrumb a {
  color: #6B6B6B;
  text-decoration: none;
  transition: color 0.2s;
}
.tf-breadcrumb a:hover { color: #E8B254; }
.tf-breadcrumb .sep   { color: #AAAAAA; }
.tf-breadcrumb .current { color: #2C2C2C; font-weight: 600; }

/* ── HERO DO POST ────────────────────────────────────────── */
.tf-post-hero {
  background: #DBDBDB;
  padding: 60px 0 50px;
}
.tf-post-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.tf-post-cat {
  display: inline-block;
  background: #E8B254;
  color: #2C2C2C;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 20px;
  text-decoration: none;
}
.tf-post-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: #2C2C2C;
  line-height: 1.25;
  margin: 0 0 20px;
  max-width: 820px;
}
.tf-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.tf-post-meta span {
  font-size: 13px;
  color: #6B6B6B;
}
.tf-post-meta .tf-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #E8B254;
  display: inline-block;
}

/* ── LAYOUT PRINCIPAL ────────────────────────────────────── */
.tf-post-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 40px 70px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  align-items: start;
}

/* ── CONTEÚDO DO ARTIGO ──────────────────────────────────── */
.tf-post-content {
  background: #FFFFFF;
  border-radius: 4px;
  padding: 44px 48px;
  min-width: 0;
}
.tf-post-content h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: #2C2C2C;
  margin: 36px 0 14px;
  line-height: 1.3;
}
.tf-post-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2C2C2C;
  margin: 28px 0 10px;
  line-height: 1.4;
}
.tf-post-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2C2C2C;
  margin: 22px 0 8px;
}
.tf-post-content p {
  font-size: 16px;
  line-height: 1.85;
  color: #444444;
  margin: 0 0 18px;
}
.tf-post-content ul,
.tf-post-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
.tf-post-content li {
  font-size: 16px;
  line-height: 1.8;
  color: #444444;
  margin-bottom: 6px;
}
.tf-post-content ul li::marker { color: #E8B254; }
.tf-post-content strong { color: #2C2C2C; }
.tf-post-content a {
  color: #C49A3A;
  font-weight: 600;
  text-decoration: underline;
}
.tf-post-content a:hover { opacity: 0.75; }
.tf-post-content blockquote {
  border-left: 4px solid #E8B254;
  background: #F8F6F0;
  margin: 28px 0;
  padding: 18px 24px;
  border-radius: 0 4px 4px 0;
}
.tf-post-content blockquote p {
  font-size: 15px;
  color: #555555;
  margin: 0;
  font-style: italic;
}
.tf-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 24px 0;
}

/* Tabelas */
.tf-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin: 28px 0;
}
.tf-post-content table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 14px;
}
.tf-post-content th {
  background: #DBDBDB;
  color: #2C2C2C;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
}
.tf-post-content td {
  padding: 11px 16px;
  border-bottom: 1px solid #EBEBEB;
  color: #444444;
}
.tf-post-content tr:nth-child(even) td { background: #F8F8F8; }

/* ── CTA INLINE ──────────────────────────────────────────── */
.tf-cta-inline {
  background: #DBDBDB;
  border-radius: 4px;
  padding: 32px 36px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tf-cta-inline-text p {
  margin: 0;
  color: #6B6B6B;
  font-size: 14px;
}
.tf-cta-inline-text strong {
  display: block;
  color: #2C2C2C;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tf-cta-btn {
  display: inline-block;
  background: #E8B254;
  color: #2C2C2C !important;
  font-weight: 700 !important;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 28px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s;
  border-radius: 2px;
}
.tf-cta-btn:hover { background: #F0C97A !important; }

/* ── BIO DO AUTOR ────────────────────────────────────────── */
.tf-author-box {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  background: #F2F2F2;
  border-radius: 4px;
  padding: 28px 32px;
  margin-top: 44px;
  border-top: 3px solid #E8B254;
}
.tf-author-photo {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #DDDCDA;
}
.tf-author-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2C2C2C;
  margin: 0 0 4px;
}
.tf-author-info .tf-author-role {
  font-size: 12px;
  color: #E8B254;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}
.tf-author-info p {
  font-size: 13px;
  color: #6B6B6B;
  line-height: 1.7;
  margin: 0;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.tf-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 24px;
}
.tf-sidebar-widget {
  background: #FFFFFF;
  border-radius: 4px;
  padding: 28px 24px;
}
.tf-sidebar-widget.tf-widget-cta {
  background: #DBDBDB;
}
.tf-widget-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #2C2C2C;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #E8B254;
}

/* CTA WhatsApp sidebar */
.tf-widget-cta p {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.7;
  margin: 0 0 20px;
}
.tf-widget-cta .tf-cta-btn {
  display: block;
  text-align: center;
}

/* Artigos Relacionados */
.tf-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.tf-related-list li {
  border-bottom: 1px solid #F0F0F0;
  padding: 12px 0;
}
.tf-related-list li:last-child { border-bottom: none; }
.tf-related-list a {
  font-size: 13px;
  color: #2C2C2C;
  text-decoration: none;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  transition: color 0.2s;
}
.tf-related-list a::before {
  content: '→';
  color: #E8B254;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}
.tf-related-list a:hover { color: #E8B254; }

/* ── FUNDO DA PÁGINA ─────────────────────────────────────── */
.single-post,
.single-post body,
.single-post #page {
  background: #F2F2F2 !important;
}

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tf-post-hero h1       { font-size: 26px; }
  .tf-post-hero-inner    { padding: 0 20px; }
  .tf-breadcrumb-inner   { padding: 0 20px; }
  .tf-post-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 48px;
    gap: 32px;
  }
  .tf-post-content       { padding: 28px 20px; }
  .tf-sidebar            { position: static; }
  .tf-cta-inline         { flex-direction: column; text-align: center; }
  .tf-cta-inline .tf-cta-btn { width: 100%; text-align: center; }
  .tf-author-box         { flex-direction: column; align-items: center; text-align: center; }
}
