/* Páginas internas — extensão visual da Home V3 */
body { background: #fff; }

.internal-hero {
  overflow: hidden;
  padding: 38px 0 78px;
  background:
    radial-gradient(circle at 88% 14%, rgba(18, 99, 189, .12), transparent 31%),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.internal-breadcrumb {
  margin-bottom: 50px;
  color: #70818d;
  font-size: .84rem;
}
.internal-breadcrumb a { color: var(--navy-900); text-decoration: none; }
.internal-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #a5b2bb; }
.internal-breadcrumb .active { color: #70818d; }

.internal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  color: var(--v3-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.internal-kicker i { font-size: 1rem; }
.internal-hero h1 {
  margin: 0 0 22px;
  color: var(--navy-900);
  font-size: clamp(3rem, 5.4vw, 5.4rem);
  line-height: .98;
}
.internal-lead {
  max-width: 660px;
  margin-bottom: 28px;
  color: #516776;
  font-size: 1.08rem;
  line-height: 1.75;
}
.internal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 650px;
  margin: 0 0 30px;
  border-top: 1px solid #d7e3ec;
  border-bottom: 1px solid #d7e3ec;
}
.internal-facts > div { padding: 18px 18px 18px 0; }
.internal-facts > div + div { padding-left: 18px; border-left: 1px solid #d7e3ec; }
.internal-facts strong,
.internal-facts span { display: block; }
.internal-facts strong { color: var(--navy-900); font-size: .94rem; }
.internal-facts span { margin-top: 4px; color: #738692; font-size: .77rem; line-height: 1.35; }

.internal-hero-image {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  margin: 0;
  border-radius: 32px 6px 32px 6px;
  box-shadow: 0 28px 65px rgba(7, 59, 122, .17);
}
.internal-hero-image img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: 22% center;
}
.internal-hero-image figcaption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  padding: 14px 17px;
  color: #fff;
  background: rgba(7, 59, 122, .91);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  backdrop-filter: blur(8px);
}
.internal-hero-image figcaption i { font-size: 1.25rem; }
.birth-hero-image img { object-position: center; }
.death-hero-image img { object-position: 28% center; }
.name-hero h1 { font-size: clamp(2.8rem, 4.7vw, 4.75rem); }
.name-hero-image img { object-position: 58% center; }

.internal-content { background: #fff; }
.internal-nav {
  position: sticky;
  top: 120px;
  display: grid;
  overflow: hidden;
  background: #f7fafc;
  border: 1px solid #dce6ed;
  border-radius: 16px;
}
.internal-nav > span {
  padding: 18px 20px;
  color: var(--navy-900);
  background: #edf5ff;
  border-bottom: 1px solid #dce6ed;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.internal-nav a {
  position: relative;
  padding: 13px 20px;
  color: #506572;
  border-bottom: 1px solid #e4ebef;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
  transition: color .2s, background .2s;
}
.internal-nav a:last-child { border-bottom: 0; }
.internal-nav a:hover,
.internal-nav a:focus { color: var(--v3-blue); background: #fff; }

.content-section {
  scroll-margin-top: 130px;
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid #e1e9ee;
}
.content-section > h2 {
  margin: 7px 0 18px;
  color: var(--navy-900);
  font-size: clamp(2.2rem, 3.7vw, 3.5rem);
}
.section-intro {
  max-width: 760px;
  margin-bottom: 30px;
  color: #617580;
  font-size: 1rem;
  line-height: 1.75;
}

.service-accordion { border-top: 1px solid #dce6ed; }
.service-accordion .accordion-item { border: 0; border-bottom: 1px solid #dce6ed; }
.service-accordion .accordion-button {
  gap: 15px;
  padding: 20px 4px;
  color: #152b3a;
  background: #fff;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 750;
}
.service-accordion .accordion-button:not(.collapsed) { color: var(--v3-blue); }
.service-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(18, 99, 189, .12); }
.accordion-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--v3-blue);
  background: var(--v3-blue-soft);
  border-radius: 11px;
  font-size: 1.08rem;
}
.service-accordion .accordion-body { padding: 4px 4px 22px 61px; color: #586d79; }
.check-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; line-height: 1.65; }
.check-list li::before {
  position: absolute;
  top: .18em;
  left: 0;
  color: #18a36a;
  font-family: "bootstrap-icons";
  content: "\f26e";
}

.info-callout,
.warning-callout {
  display: flex;
  gap: 18px;
  padding: 24px;
  border-radius: 15px;
}
.info-callout { color: #244b68; background: #edf6ff; border: 1px solid #d4e8fb; }
.info-callout > i,
.warning-callout > i { flex: 0 0 auto; font-size: 1.5rem; }
.info-callout h3 { margin: 0 0 7px; font-size: 1rem; font-weight: 800; }
.info-callout p,
.warning-callout p { margin: 0; line-height: 1.65; }
.proxy-card {
  padding: 30px;
  background: #fff;
  border: 1px solid #dce6ed;
  border-left: 4px solid var(--gold-500);
  border-radius: 0 16px 16px 0;
  box-shadow: 0 14px 36px rgba(14, 48, 73, .06);
}
.proxy-card h3 { margin: 0 0 14px; color: var(--navy-900); font-size: 1.35rem; }
.proxy-card p { color: #5b6f7b; line-height: 1.75; }
.proxy-card p:last-child { margin-bottom: 0; }
.paternity-card { display: flex; gap: 20px; }
.paternity-card > i {
  flex: 0 0 auto;
  color: var(--v3-blue);
  font-size: 1.65rem;
}
.paternity-card h3 { margin-top: 0; }

.important-grid,
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.important-grid article,
.types-grid article {
  position: relative;
  padding: 27px;
  background: #fff;
  border: 1px solid #dce6ed;
  border-radius: 16px;
}
.important-grid article > i,
.types-grid article > i {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--v3-blue);
  background: var(--v3-blue-soft);
  border-radius: 12px;
  font-size: 1.2rem;
}
.important-grid h3,
.types-grid h3 { margin: 0 0 9px; font-size: 1rem; font-weight: 800; }
.important-grid p,
.types-grid p { margin: 0; color: #667984; line-height: 1.65; }
.photo-note {
  margin: 22px 0 0;
  padding: 18px 21px;
  color: #526875;
  background: #f7fafc;
  border-radius: 12px;
  line-height: 1.6;
}
.photo-note i { margin-right: 10px; color: var(--v3-blue); }

.types-grid article { min-height: 220px; padding-top: 30px; }
.types-grid article > span {
  position: absolute;
  top: 18px;
  right: 22px;
  color: rgba(18, 99, 189, .09);
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
}

.property-list { display: grid; gap: 14px; }
.property-list article {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) 1.7fr;
  gap: 30px;
  padding: 22px 0;
  border-top: 1px solid #dce6ed;
}
.property-list article:last-child { border-bottom: 1px solid #dce6ed; }
.property-list h3 { margin: 0; color: var(--navy-900); font-size: 1rem; }
.property-list p { margin: 0; color: #617580; line-height: 1.65; }
.warning-callout { margin-top: 24px; color: #6c4b0f; background: #fff8e8; border: 1px solid #f0deb2; }

.declarant-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #dce6ed;
}
.declarant-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #dce6ed;
}
.declarant-list li > span {
  color: rgba(18, 99, 189, .22);
  font-family: "Playfair Display", serif;
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1;
}
.declarant-list h3 { margin: 0 0 6px; color: var(--navy-900); font-size: 1rem; }
.declarant-list p { margin: 0; color: #617580; line-height: 1.65; }
.death-action-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .12), transparent 34%),
    linear-gradient(135deg, #173f68, #285f92);
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.certificate-list article {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #f8fbfd;
  border: 1px solid #dce6ed;
  border-radius: 15px;
}
.certificate-list article > i {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--v3-blue);
  background: var(--v3-blue-soft);
  border-radius: 11px;
  font-size: 1.05rem;
}
.certificate-list h3 { margin: 2px 0 7px; color: var(--navy-900); font-size: 1rem; }
.certificate-list p { margin: 0; color: #617580; font-size: .9rem; line-height: 1.62; }
.name-action-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .14), transparent 34%),
    linear-gradient(135deg, #0a477f, #1473c9);
}

.institutional-hero h1 { font-size: clamp(2.85rem, 4.8vw, 4.9rem); }
.institutional-hero-image img { object-position: 50% 55%; }
.institutional-story {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(230px, .65fr);
  gap: 38px;
  align-items: stretch;
}
.institutional-story > div > p {
  color: #556c79;
  font-size: 1.02rem;
  line-height: 1.82;
}
.history-highlight {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, .16), transparent 34%),
    linear-gradient(145deg, #073b7a, #1263bd);
  border-radius: 22px 5px 22px 5px;
  box-shadow: 0 20px 42px rgba(7, 59, 122, .16);
}
.history-highlight span {
  margin-bottom: 14px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}
.history-highlight p { margin: 0; color: rgba(255, 255, 255, .8); line-height: 1.68; }

.history-timeline { display: grid; gap: 0; }
.history-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  padding: 0 0 42px;
}
.history-timeline article:not(:last-child)::before {
  position: absolute;
  top: 44px;
  bottom: 0;
  left: 74px;
  width: 1px;
  background: #cbdce8;
  content: "";
}
.timeline-date {
  position: relative;
  z-index: 1;
  align-self: start;
  padding: 15px 18px;
  text-align: center;
  background: #edf5ff;
  border: 1px solid #d5e6f6;
  border-radius: 13px;
}
.timeline-date span,
.timeline-date small { display: block; }
.timeline-date span { color: var(--v3-blue); font-family: "Playfair Display", serif; font-size: 1.8rem; font-weight: 700; line-height: 1; }
.timeline-date small { margin-top: 6px; color: #69808e; font-size: .72rem; font-weight: 700; }
.history-timeline article > div:last-child { padding-top: 8px; }
.history-timeline article > div:last-child > i { color: var(--gold-500); font-size: 1.25rem; }
.history-timeline h3 { margin: 7px 0 10px; color: var(--navy-900); font-size: 1.2rem; }
.history-timeline p { margin: 0; color: #617580; line-height: 1.75; }

.institutional-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.institutional-gallery {
  scroll-margin-top: 130px;
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid #e1e9ee;
}
.gallery-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 30px;
}
.gallery-heading h2 { margin: 7px 0 0; color: var(--navy-900); font-size: clamp(2.2rem, 3.7vw, 3.5rem); }
.gallery-heading > p { margin: 0 0 7px; color: #617580; line-height: 1.7; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.gallery-photo,
.gallery-placeholder { overflow: hidden; margin: 0; border-radius: 16px; }
.gallery-photo-featured { grid-row: 1 / 4; }
.gallery-photo { position: relative; min-height: 0; background: #e7eef3; }
.gallery-photo img { display: block; width: 100%; height: auto; }
.gallery-photo figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(7, 59, 122, .85);
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #6d8290;
  background:
    linear-gradient(135deg, rgba(18, 99, 189, .045), rgba(18, 99, 189, .1)),
    #f8fbfd;
  border: 1px dashed #bad0e0;
}
.gallery-placeholder i { margin-bottom: 7px; color: var(--v3-blue); font-size: 1.35rem; }
.gallery-placeholder span { color: var(--navy-900); font-weight: 800; }
.gallery-placeholder small { margin-top: 3px; font-size: .72rem; }
.institutional-action-card {
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .14), transparent 34%),
    linear-gradient(135deg, #073b7a, #175f9e);
}

.appointment-card {
  scroll-margin-top: 130px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr .8fr;
  align-items: center;
  gap: 50px;
  padding: 46px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .14), transparent 34%),
    linear-gradient(135deg, #073b7a, #1263bd);
  border-radius: 22px;
  box-shadow: 0 22px 52px rgba(7, 59, 122, .2);
}
.appointment-card h2 { margin: 8px 0 14px; color: #fff; font-size: clamp(2rem, 3vw, 3rem); }
.appointment-card p { max-width: 680px; margin: 0; color: rgba(255, 255, 255, .78); line-height: 1.7; }
.appointment-actions { display: grid; gap: 20px; }
.appointment-actions .btn { color: var(--navy-900); font-weight: 800; }
.appointment-phone { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.appointment-phone > i { font-size: 1.35rem; }
.appointment-phone span,
.appointment-phone strong { display: block; }
.appointment-phone span { color: rgba(255, 255, 255, .7); font-size: .78rem; }
.appointment-phone strong { margin-top: 2px; color: #fff; font-size: .88rem; }

@media (max-width: 991.98px) {
  .internal-hero { padding-bottom: 60px; }
  .internal-breadcrumb { margin-bottom: 35px; }
  .internal-hero-image,
  .internal-hero-image img { min-height: 0; height: 420px; }
  .internal-nav { position: static; grid-template-columns: repeat(2, 1fr); margin-bottom: 8px; }
  .internal-nav > span { grid-column: 1 / -1; }
  .internal-nav a:nth-child(even) { border-right: 1px solid #e4ebef; }
  .appointment-card { grid-template-columns: 1fr; gap: 30px; }
  .institutional-story { grid-template-columns: 1fr; }
  .history-highlight { min-height: 220px; }
  .gallery-heading { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 767.98px) {
  .internal-hero { padding: 28px 0 52px; }
  .internal-hero h1 { font-size: clamp(2.8rem, 14vw, 4.2rem); }
  .internal-facts { grid-template-columns: 1fr; }
  .internal-facts > div { padding: 13px 0; }
  .internal-facts > div + div { padding-left: 0; border-top: 1px solid #d7e3ec; border-left: 0; }
  .internal-hero-image,
  .internal-hero-image img { height: 330px; }
  .internal-hero-image img { object-position: 19% center; }
  .internal-hero-image figcaption { right: 12px; bottom: 12px; left: 12px; }
  .birth-hero-image img { object-position: center; }
  .death-hero-image img { object-position: 30% center; }
  .name-hero-image img { object-position: 56% center; }
  .institutional-hero-image img { object-position: 52% center; }
  .internal-nav { grid-template-columns: 1fr; }
  .internal-nav > span { grid-column: auto; }
  .internal-nav a:nth-child(even) { border-right: 0; }
  .content-section { padding-bottom: 58px; margin-bottom: 58px; }
  .service-accordion .accordion-body { padding-left: 4px; }
  .important-grid,
  .types-grid,
  .certificate-list { grid-template-columns: 1fr; }
  .property-list article { grid-template-columns: 1fr; gap: 9px; }
  .appointment-card { padding: 30px 24px; border-radius: 17px; }
  .paternity-card { align-items: flex-start; }
  .declarant-list li { grid-template-columns: 46px 1fr; gap: 12px; }
  .history-timeline article { grid-template-columns: 1fr; gap: 15px; padding-bottom: 38px; }
  .history-timeline article:not(:last-child)::before { display: none; }
  .timeline-date { width: 150px; text-align: left; }
  .institutional-values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-photo-featured { grid-row: auto; }
}

/* Mantém o jovem e os pais no enquadramento em todas as telas. */
.internal-hero-image.emancipation-hero-image img { object-position: center; }

.internal-hero-image.union-hero-image img { object-position: center; }

.internal-hero-image.annotation-hero-image img { object-position: center; }

.internal-hero-image.guardianship-hero-image img { object-position: center; }

.internal-hero-image.tutela-hero-image img { object-position: center; }

.internal-hero-image.transcription-hero-image img { object-position: center; }

.internal-hero-image.signatures-hero-image img { object-position: center; }

.internal-hero-image.procuration-hero-image img { object-position: center; }

.internal-hero-image.authentication-hero-image img { object-position: center; }

.internal-hero-image.apostille-hero-image img { object-position: center; }

/* Perguntas frequentes */
.faq-hero { padding-bottom: 48px; }
.faq-hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.faq-hero .internal-lead { max-width: 780px; }
.faq-draft { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; max-width: 900px; color: #725016; background: #fff8e8; border: 1px solid #edddb8; border-radius: 12px; font-size: .9rem; line-height: 1.6; }
.faq-draft > i { flex: 0 0 auto; font-size: 1.15rem; }
