/* Final portrait wiring — single source of truth for the approved photos. */

/* HERO — force the verified local high-resolution portrait. The previous remote
   GitHub asset was only 500×750 and was being enlarged in the hero. */
#inicio > div > div:first-child {
  background: #f2f0eb !important;
}
#inicio img[alt="Rodrigo Patriota, médico geriatra"] {
  content: url('/hero-final.jpg?v=10') !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: 50% 45% !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  image-rendering: auto !important;
}
/* Keep the current clean split composition without a veil over the portrait. */
#inicio > div > div:first-child > div {
  display: none !important;
}

@media (min-width: 1024px) {
  #sobre {
    max-width: 1500px !important;
    grid-template-columns: minmax(620px, 720px) minmax(0, 620px) !important;
    column-gap: 4rem !important;
    justify-content: center !important;
    align-items: start !important;
  }
  #sobre > div:first-child {
    max-width: 720px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #sobre > div:nth-child(2) {
    max-width: 620px !important;
    width: 100% !important;
    padding-top: 0.2rem;
  }
}

/* BIO — exact approved 1706:2048 composition; native ratio prevents crop. */
#sobre > div:first-child > div:first-child {
  aspect-ratio: 1706 / 2048 !important;
  border-radius: 1.75rem !important;
  box-shadow: 0 24px 54px rgba(21, 67, 65, 0.13), 0 2px 10px rgba(21, 67, 65, 0.06) !important;
  background: #93b39d !important;
}
#sobre img[alt="Dr. Rodrigo Patriota"] {
  content: url('/bio-final.avif?v=2') !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  image-rendering: auto;
}
#sobre > div:first-child > div:nth-child(2) {
  left: 1rem !important;
  bottom: 1rem !important;
  padding: 0.72rem 1rem !important;
  border-radius: 0.95rem !important;
  border-color: rgba(21, 88, 84, 0.08) !important;
  box-shadow: 0 10px 26px rgba(21, 67, 65, 0.12) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}
#sobre > div:first-child > div:nth-child(2) p:first-child { font-size: 0.62rem !important; letter-spacing: 0.17em !important; }
#sobre > div:first-child > div:nth-child(2) p:last-child { margin-top: 0.15rem !important; font-size: 0.94rem !important; }
#sobre > div:nth-child(2) > p:first-child { letter-spacing: 0.22em !important; }
#sobre > div:nth-child(2) > h2 { max-width: 600px; margin-top: 0.75rem !important; line-height: 1.08 !important; letter-spacing: -0.018em; }
#sobre > div:nth-child(2) > h2 + p { max-width: 585px !important; margin-top: 1.1rem !important; font-size: 0.98rem !important; line-height: 1.75 !important; }
#sobre > div:nth-child(2) > div:last-child { margin-top: 1.65rem !important; border-radius: 1.5rem !important; border-color: rgba(21, 88, 84, 0.09) !important; box-shadow: 0 18px 45px rgba(21, 67, 65, 0.075) !important; overflow: hidden; }
#sobre > div:nth-child(2) > div:last-child > div:first-child { padding: 1.15rem 1.55rem !important; background: linear-gradient(135deg, #155b58 0%, #1f6b64 100%) !important; }
#sobre > div:nth-child(2) > div:last-child > div:first-child h3 { font-size: 1.45rem !important; line-height: 1.2 !important; }
#sobre > div:nth-child(2) > div:last-child > div:last-child { padding: 1.45rem 1.55rem 1.55rem !important; row-gap: 1.35rem !important; }
#sobre > div:nth-child(2) > div:last-child section h3 { font-size: 0.7rem !important; letter-spacing: 0.14em !important; }
#sobre > div:nth-child(2) > div:last-child section:first-child > div:last-child { gap: 0.45rem !important; margin-top: 0.8rem !important; }
#sobre > div:nth-child(2) > div:last-child section:first-child > div:last-child > div { padding: 0.68rem 0.8rem !important; border: 1px solid rgba(21, 88, 84, 0.055); border-radius: 0.8rem !important; background: linear-gradient(90deg, #faf9f5 0%, #fdfdfb 100%) !important; }
#sobre > div:nth-child(2) > div:last-child section:first-child p,
#sobre > div:nth-child(2) > div:last-child section:last-child p { font-size: 0.82rem !important; line-height: 1.45 !important; }
#sobre > div:nth-child(2) > div:last-child section:last-child > div:last-child { margin-top: 0.8rem !important; padding-inline: 0.9rem !important; border-radius: 1rem !important; background: #faf9f5 !important; border-color: rgba(21, 88, 84, 0.07) !important; }
#sobre > div:nth-child(2) > div:last-child section:last-child > div:last-child > div { padding-block: 0.85rem !important; }
#sobre > div:nth-child(2) > div:last-child section:last-child p span { margin-bottom: 0.12rem; }

/* BLOG AUTHOR — approved 4:5 portrait. */
img[alt="Rodrigo Patriota, médico geriatra em Recife"] {
  content: url('/blog-final.avif?v=2') !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1 !important;
  image-rendering: auto;
}

@media (max-width: 1023px) {
  #sobre { row-gap: 3rem !important; }
  #sobre > div:first-child { max-width: 660px !important; }
  #sobre > div:first-child > div:first-child { aspect-ratio: 1706 / 2048 !important; }
  #sobre > div:nth-child(2) { max-width: 680px !important; margin-inline: auto; }
}
@media (max-width: 640px) {
  #sobre { padding-top: 4rem !important; padding-bottom: 4.5rem !important; }
  #sobre > div:first-child > div:nth-child(2) { left: 0.75rem !important; bottom: 0.75rem !important; }
  #sobre > div:nth-child(2) > h2 { font-size: 2.35rem !important; }
  #sobre > div:nth-child(2) > div:last-child > div:first-child,
  #sobre > div:nth-child(2) > div:last-child > div:last-child { padding-left: 1.15rem !important; padding-right: 1.15rem !important; }
}
