/* ── PAGE HERO (topo das páginas institucionais) ──────────────── */
.page-hero {
  margin-top: 72px; min-height: 300px; position: relative; overflow: hidden;
  background: var(--navy-dark); display: flex; align-items: flex-end; padding: 80px 60px 56px;
}
.page-hero-pattern {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245,161,28,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(245,161,28,.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-gradient { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(17,31,60,.95) 0%, rgba(28,52,100,.82) 60%, rgba(28,52,100,.4) 100%); }
.page-hero-inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; width: 100%; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 300; color: rgba(255,255,255,.5); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.page-hero-title { font-family: var(--font-cond); font-size: clamp(44px, 6vw, 76px); font-weight: 900; color: var(--white); line-height: .95; letter-spacing: -1px; }
.page-hero-title em { font-style: normal; color: var(--orange); }
.page-hero-subtitle { margin-top: 20px; max-width: 620px; font-size: 17px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.75); }

/* ── CATEGORIA: INTRO + GRID DE ITENS ─────────────────────────── */
.category-section { padding: 100px 60px; background: var(--white); }
.category-inner { max-width: 1200px; margin: 0 auto; }
.category-lead { font-size: 18px; font-weight: 300; line-height: 1.85; color: var(--gray-dark); max-width: 760px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.service-card {
  background: var(--white); border: 1px solid var(--gray-light); border-top: 3px solid var(--orange);
  border-radius: 0 0 4px 4px; padding: 32px 28px;
  transition: box-shadow .25s, transform .25s; text-decoration: none; color: inherit; display: block;
}
.service-card:hover { box-shadow: 0 16px 40px rgba(28,52,100,.1); transform: translateY(-4px); }
.service-card-num { font-family: var(--font-cond); font-size: 34px; font-weight: 900; color: rgba(11,78,162,.15); line-height: 1; margin-bottom: 14px; }
.service-card h3 { font-family: var(--font-cond); font-size: 21px; font-weight: 800; color: var(--navy); margin-bottom: 10px; line-height: 1.15; }
.service-card p { font-size: 14.5px; font-weight: 300; color: var(--gray-dark); line-height: 1.7; margin-bottom: 18px; }
.service-card-link { font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.service-card:hover .service-card-link { color: var(--orange-dk); }

/* ── BOTÃO WHATSAPP (CTA das páginas institucionais) ──────────── */
.btn-whatsapp {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 28px;
  background: #25D366; color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 2px solid transparent; border-radius: 2px; transition: background .2s;
  margin-top: 8px;
}
.btn-whatsapp svg { width: 18px; height: 18px; }
.btn-whatsapp:hover { background: #1ebe57; }

/* ── PÁGINA DE DETALHE DE ITEM/SERVIÇO (ex.: Usucapião) ────────── */
.item-hero-image { max-width: 1200px; margin: -16px auto 0; padding: 0 60px; position: relative; z-index: 3; }
.item-hero-image img { width: 100%; height: 380px; object-fit: cover; border-radius: 4px; display: block; box-shadow: 0 24px 48px rgba(28,52,100,.18); }

.item-content { padding: 100px 60px; background: var(--white); }
.item-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr .6fr; gap: 64px; align-items: start; }
.item-lead { font-size: 18px; font-weight: 300; line-height: 1.85; color: var(--gray-dark); margin-bottom: 44px; }
.item-block { margin-bottom: 44px; }
.item-block h2 { font-family: var(--font-cond); font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 20px; }

.item-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.item-list li { position: relative; padding-left: 32px; font-size: 16px; color: var(--gray-dark); line-height: 1.6; }
.item-list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  background: rgba(245,161,28,.15); border: 1px solid rgba(245,161,28,.4); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23f58320' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* ── TEXTO RICO vindo do editor (the_content) em páginas de detalhe ── */
.item-text > *:first-child { margin-top: 0; }
.item-text p { font-size: 16.5px; font-weight: 300; line-height: 1.85; color: var(--gray-dark); margin-bottom: 16px; }
.item-text h2 { font-family: var(--font-cond); font-size: 26px; font-weight: 800; color: var(--navy); margin: 36px 0 18px; }
.item-text h3 { font-family: var(--font-cond); font-size: 21px; font-weight: 800; color: var(--navy); margin: 28px 0 14px; }
.item-text strong { color: var(--text); font-weight: 600; }
.item-text a { color: var(--orange); text-decoration: underline; }
.item-text ul,
.item-text ol { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.item-text ul { list-style: none; }
.item-text ul li { position: relative; padding-left: 32px; font-size: 16px; color: var(--gray-dark); line-height: 1.6; }
.item-text ul li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px;
  background: rgba(245,161,28,.15); border: 1px solid rgba(245,161,28,.4); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23f58320' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}
.item-text ol { padding-left: 20px; }
.item-text ol li { font-size: 16px; color: var(--gray-dark); line-height: 1.6; padding-left: 4px; }

.item-steps { list-style: none; display: flex; flex-direction: column; gap: 22px; counter-reset: step; }
.item-steps li { display: flex; gap: 16px; align-items: flex-start; }
.item-steps li::before {
  counter-increment: step; content: counter(step);
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-family: var(--font-cond); font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.item-steps li span { font-size: 16px; color: var(--gray-dark); line-height: 1.65; padding-top: 5px; }

.item-sidebar { display: flex; flex-direction: column; gap: 24px; }
.item-sidebar-card {
  background: var(--off-white); border: 1px solid var(--gray-light); border-top: 4px solid var(--orange);
  border-radius: 0 0 4px 4px; padding: 32px 28px;
}
.item-sidebar-card h4 { font-family: var(--font-cond); font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 18px; }
.item-sidebar-card ul:not(.case-specs) { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.item-sidebar-card ul:not(.case-specs) li { font-size: 14.5px; color: var(--gray-dark); display: flex; align-items: center; gap: 10px; }
.item-sidebar-card ul:not(.case-specs) li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

.item-cta-card { background: var(--navy); border-radius: 4px; padding: 32px 28px; text-align: center; }
.item-cta-card h4 { font-family: var(--font-cond); font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.item-cta-card p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 22px; line-height: 1.6; }
.item-cta-card .btn-whatsapp { width: 100%; }
.item-back-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s;
}
.item-back-link:hover { color: var(--white); }

/* ── PÁGINA DE CONTATO ─────────────────────────────────────────── */
.contato-info-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contato-info-icon {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 2px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
}
.contato-info-icon svg { width: 18px; height: 18px; }
.contato-info-label { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.contato-info-text { font-size: 16px; font-weight: 300; color: rgba(255,255,255,.85); line-height: 1.5; }
.contato-info-text a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.contato-info-text a:hover { color: var(--orange); }

.map-intro { background: var(--off-white); padding: 80px 60px 0; }
.map-intro-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.map-intro .section-label { justify-content: center; }
.map-intro .section-title { font-size: clamp(34px, 4.5vw, 48px); }
.map-section { padding: 48px 0 0; background: var(--off-white); }
.map-wrap { width: 100%; height: 460px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 640px) {
  .map-intro { padding-left: 20px; padding-right: 20px; }
  .map-wrap { height: 320px; }
}

@media (max-width: 980px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .item-inner { grid-template-columns: 1fr; }
  .item-hero-image img { height: 240px; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .page-hero, .category-section, .item-content { padding-left: 20px; padding-right: 20px; }
  .item-hero-image { padding-left: 20px; padding-right: 20px; }
}
