/* PAGE HEADER OVERRIDE */
.page-header {
  padding-bottom: 1rem;
  margin-bottom: 0;
}

/* AREAS SECTION — background fixo */
.areas-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* AREAS GRID */
.areas-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 5vw 7rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 2rem;
}

.area-card {
  position: relative;
  background: rgba(26,26,24,.02);
  border: 1px solid #8B6F4E;
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
  animation: fadeUp .8s ease both;
}

.area-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.07;
  z-index: 0;
}

.area-card:nth-child(1)::before { background-image: url('../img/civil.jpg'); }
.area-card:nth-child(2)::before { background-image: url('../img/criminal.jpg'); }
.area-card:nth-child(3)::before { background-image: url('../img/consumidor.jpg'); }
.area-card:nth-child(4)::before { background-image: url('../img/bancario.jpg'); }
.area-card:nth-child(5)::before { background-image: url('../img/familia.jpg'); }
.area-card:nth-child(6)::before { background-image: url('../img/consultoria.jpg'); }

@media (hover: hover) {
  .area-card:hover { border-color: rgba(184,147,63,.4); transform: translateY(-3px); }
}
.area-card:nth-child(2) { animation-delay: .1s; }
.area-card:nth-child(3) { animation-delay: .2s; }
.area-card:nth-child(4) { animation-delay: .3s; }

.area-header {
  position: relative;
  z-index: 1;
  padding: 1rem 1rem 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.area-header h2 {
  font-family: var(--ff-head);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  width: 100%;
  margin: 0 0 0.3rem 0;
  letter-spacing: 0.03em;
}

.area-body { position: relative; z-index: 1; padding: 0.5rem 1.8rem 1.2rem; padding-top: 0.5rem; }

.area-body ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.area-body li {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  padding: .55rem 0;
}

.area-body li::before {
  content: '—';
  color: var(--gold);
  font-size: .8rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.arabesco-titulo { display: block; margin: 0.3rem auto 0; width: 300px; max-width: 80%; opacity: 0.6; }

.back-wrap { text-align: center; padding-bottom: 4rem; }

@media (max-width: 700px) {
  .areas-grid { padding: 2rem 5vw 4rem; grid-template-columns: 1fr; gap: 1.5rem; }
  .area-header h2 { font-size: 1.9rem; }
  .area-body { padding: 0.5rem 1.2rem 1rem; }
  .area-body ul { grid-template-columns: 1fr; gap: 0; }
  .area-body li { padding: .4rem 0; }
}
