/* Ferogastro: existing identity, clearer hierarchy and quieter surfaces. */
:root {
    --fg-blue: #31738a;
    --fg-deep: #004d6d;
    --fg-ink: #264e60;
    --fg-muted: #566c76;
    --fg-line: #dce8eb;
    --fg-paper: #f3f8f9;
    --fg-purple: #67418a;
    --fg-lilac: #f1eaf7;
    --fg-radius: 16px;
}
html { scroll-padding-top: 86px; font-size: 100%; }
body { color: var(--fg-ink); font-size: 1rem; }
p, ul, li { color: var(--fg-muted); }
a:hover { color: var(--fg-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid #c78300; outline-offset: 5px; }
section { scroll-margin-top: 0; }
.fg-skip-link { position: fixed; top: -100px; left: 20px; padding: 14px 20px; background: white; color: var(--fg-deep); z-index: 10000; }
.fg-skip-link:focus { top: 15px; }
.fg-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 14px 26px; border: 1px solid transparent; border-radius: 7px; background: var(--fg-deep); color: white; font: 900 1rem/1.4 'Nunito Sans', sans-serif; transition: background .2s, box-shadow .2s; text-align: center; }
.fg-button:hover { background: #153e52; color: white; box-shadow: 0 5px 18px #004d6d19; }
.fg-button-light { background: white; color: var(--fg-deep); }
.fg-button-light:hover { background: #eaf4f6; color: var(--fg-deep); }
.fg-button-purple { background: var(--fg-purple); }
.fg-button-purple:hover { background: #50306f; }
.fg-button-outline { border-color: currentColor; background: transparent; color: var(--fg-deep); }
.fg-button-outline:hover { background: var(--fg-deep); color: white; }
.fg-eyebrow { display: block; font: 900 0.75rem/1.5 'Nunito Sans', sans-serif; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 18px; }
#header.transparent:not(.fixed-top) { background: linear-gradient(180deg, #00344990, transparent); }
#header .navbar { padding-top: 18px; padding-bottom: 18px; }
#header .navbar-brand .logo, #header .navbar-brand .logo-alt { object-fit: contain; }
#header .menu-header li a { font-size: 1rem; padding-right: 14px; }
#header.fixed-top { background: #fffffff5; box-shadow: 0 4px 24px #004d6d0d; backdrop-filter: blur(14px); }
#header.fixed-top .navbar { padding-top: 9px; padding-bottom: 9px; }
#header .menu-header-mobile { border-radius: 12px; padding: 12px; margin-top: 12px; }
#header .menu-header-mobile li a { border-radius: 6px; }
.banner-principal { height: auto; background: var(--fg-deep); }
.banner-principal .swiper-wrapper { height: auto; align-items: stretch; }
.banner-principal .slide { height: auto; min-height: 700px; padding: 120px 0; display: flex; align-items: center; }
.banner-principal .slide .container { height: auto; overflow: visible; }
.banner-principal .slide .overlay { background: linear-gradient(100deg, #00394ff5 0%, #004d6de8 55%, #16576ce8 100%); mix-blend-mode: normal; opacity: 1; }
.banner-principal .hero-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 70px; align-items: center; }
.banner-principal .hero-layout.hero-with-image { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.banner-principal .hero-layout.hero-layout-wide { grid-template-columns: minmax(0, 1fr); }
.banner-principal .slide-nova-fase .overlay { background: linear-gradient(90deg, #002b3de0 0%, #002b3dc9 52%, #002331b8 100%); }
.banner-principal .slide .hero-layout-wide .conteudo, .banner-principal .slide .hero-layout-wide .conteudo p { max-width: 100%; }
.banner-principal .slide .conteudo { max-width: 670px; }
.banner-principal .slide .conteudo h1, .banner-principal .slide .conteudo h2 { font-size: clamp(2.125rem, 3.8vw, 3.25rem); line-height: 1.13; letter-spacing: -.025em; text-transform: none; margin-bottom: 25px; word-break: normal; }
.banner-principal .slide .conteudo p { line-height: 1.8; font-size: 1rem; color: #f0f7fa; margin-bottom: 28px; max-width: 50ch; }
.banner-principal .slide .conteudo .fg-eyebrow { color: #d8eef4; font-size: 0.75rem; margin-bottom: 20px; }
.hero-image { text-align: center; }
.hero-image img { width: 100%; max-width: 240px; max-height: 300px; object-fit: contain; }
.hero-address { border-left: 1px solid #ffffff52; padding: 15px 0 15px 32px; color: white; }
.hero-address > i { display: block; margin-bottom: 20px; font-size: 1.875rem; color: #ffc600; }
.hero-address strong { font: 900 1.375rem/1.3 'Nunito Sans', sans-serif; }
.hero-address p { font-size: 1rem; line-height: 1.9; color: #e6f1f4; margin: 14px 0 22px; }
.hero-address a { font-size: 1rem; color: white; border-bottom: 1px solid #ffffff70; padding-bottom: 5px; }
.banner-principal .hero-controls { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; justify-content: space-between; align-items: center; height: auto; overflow: visible; }
.swiper .swiper-pagination { position: static; width: auto; display: flex; align-items: center; gap: 3px; }
.swiper-pagination-bullet { position: relative; flex-shrink: 0; border: 0; padding: 0; margin: 0 7px !important; background: var(--fg-blue); width: 9px; height: 9px; opacity: .75; }
.swiper-pagination-bullet-active { opacity: 1; width: 18px; border-radius: 8px; }
.banner-principal .swiper-pagination-bullet { background: white; opacity: .55; }
.banner-principal .swiper-pagination-bullet-active { background: #ffc600; opacity: 1; }
.swiper-pagination button::before { content: ''; position: absolute; inset: -8px; }
.slider-arrows { display: flex; gap: 8px; }
.slider-arrows [hidden] { display: none; }
.slider-arrows button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid #b7cdd5; background: transparent; color: var(--fg-deep); transition: background .2s; cursor: pointer; }
.slider-arrows button:hover { background: #eaf2f5; }
.hero-controls .slider-arrows button { border-color: #ffffff70; color: white; }
.hero-controls .slider-arrows button:hover { background: #ffffff20; }
.swiper-button-lock, .slider-arrows button.swiper-button-lock { display: none; }
.swiper-slide { box-sizing: border-box; }
.fg-institutional, .page-template-home #quem-somos { padding: 95px 0; }
.institutional-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); align-items: center; gap: 80px; }
.institutional-reverse { grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr); }
.institutional-image { padding: 25px; text-align: center; }
.institutional-image img { max-width: 270px; max-height: 270px; object-fit: contain; }
.institutional-copy h2, .fg-section-heading h2, .social-layout h2 { font-size: clamp(1.6875rem, 3vw, 2.25rem); line-height: 1.2; margin: 0 0 25px; font-weight: 900; text-transform: none; }
.institutional-copy p { font-size: 1rem; line-height: 1.95; text-align: left; }
.institutional-copy .fg-button { margin-top: 14px; }
.fg-exams { background: var(--fg-paper); }
.fg-section-heading { display: flex; justify-content: space-between; gap: 50px; align-items: end; margin-bottom: 44px; }
.fg-section-heading h2 { max-width: 550px; margin: 0; }
.fg-section-heading > p { max-width: 430px; margin: 0; font-size: 1rem; line-height: 1.9; }
.fg-partnership { background: var(--fg-lilac); padding: 80px 0; position: relative; }
.partnership-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; gap: 75px; }
.partnership-content .fg-eyebrow { color: var(--fg-purple); }
.partnership-content h2 { color: #51306f; font-weight: 900; font-size: clamp(1.875rem, 3.3vw, 2.6875rem); line-height: 1.12; margin-bottom: 25px; max-width: 15ch; }
.partnership-copy p { color: #51475d; font-size: 1rem; line-height: 1.9; }
.partnership-promise { padding: 2px 0 2px 18px; margin: 25px 0; border-left: 3px solid #9b7ab4; color: #51306f; font-size: 1rem; line-height: 1.7; font-weight: bold; }
.hospital-signature { margin-top: 32px; border-top: 1px solid #d7cae2; padding-top: 25px; display: flex; align-items: center; gap: 24px; }
.hospital-signature .hospital-logo { width: 125px; height: auto; object-fit: contain; flex-shrink: 0; }
.hospital-signature a { display: flex; align-items: center; gap: 12px; color: #58436d; font-size: 1rem; line-height: 1.6; }
.hospital-signature a i { flex: 0 0 auto; line-height: 1; }
.hospital-signature a span { display: block; }
.hospital-signature a i { font-size: 1.1875rem; }
.partnership-video { margin: 0; justify-self: center; max-width: 340px; width: 100%; }
.partnership-video-frame { position: relative; aspect-ratio: var(--video-ratio, 9 / 16); border: 7px solid white; background: #251c2d; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 50px #51306f20; }
.partnership-video .partnership-video-frame video { width: 100%; height: 100%; max-height: none; }
.partnership-video-frame video[hidden] { display: none; }
.partnership-video video { display: block; width: 100%; height: auto; max-height: 570px; object-fit: contain; }
.partnership-video figcaption { text-align: center; color: #58436d; font-size: 1rem; line-height: 1.7; margin-top: 14px; }
.partnership-video-trigger { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; border: 0; padding: 0; background: #251c2d; color: white; cursor: pointer; }
.partnership-video-trigger[hidden] { display: none; }
.partnership-video-trigger .partnership-video-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partnership-video-trigger::after { content: ''; position: absolute; inset: 0; background: #160e2440; pointer-events: none; }
.video-play-control { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; gap: 16px; }
.video-play-control > span:last-child { padding: 8px 15px; border-radius: 6px; background: #2e1944e6; font: 900 1rem/1.4 'Nunito Sans', sans-serif; }
.video-play-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; color: #67418a; background: white; box-shadow: 0 6px 25px #251c2d40; transition: transform .2s, box-shadow .2s; }
.video-play-icon svg { width: 35px; height: 35px; }
.partnership-video-trigger:hover .video-play-icon { transform: scale(1.06); box-shadow: 0 10px 32px #251c2d55; }
.partnership-video-trigger:focus-visible { outline-offset: -6px; outline-color: #ffc600; }
.video-fallback { position: absolute; z-index: 3; bottom: 15px; left: 15px; right: 15px; padding: 12px; background: white; color: var(--fg-deep); }
.partnership-photo { grid-column: 1 / -1; margin: 0; }
.partnership-photo img { border-radius: var(--fg-radius); max-height: 500px; object-fit: cover; }
.page-template-home #curriculo-section { padding: 90px 0; }
.qualification-grid { columns: 2; column-gap: 24px; }
.qualification-item { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 24px; align-items: start; break-inside: avoid; margin-bottom: 24px; padding: 28px; border: 0; border-radius: 16px; background: var(--fg-paper); box-shadow: 0 5px 20px #004d6d04; }
.qualification-item img { width: 80px; height: 80px; object-fit: contain; margin: 0; }
.qualification-item .descricao, .qualification-item .descricao p { font-size: 1rem; line-height: 1.8; color: var(--fg-muted); margin-bottom: 0; }
.qualification-item .descricao p + p { margin-top: 16px; }
.page-template-home #equipe-section { padding: 90px 0; background: var(--fg-paper); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.team-card { border: 1px solid var(--fg-line); background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 20px #004d6d04; }
.team-photo { position: relative; aspect-ratio: 1 / 1; background: #e5edef; overflow: hidden; }
.team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-featured-label { position: absolute; bottom: 16px; left: 16px; right: 16px; width: fit-content; border-radius: 4px; background: var(--fg-deep); color: white; font: 900 0.6875rem/1.5 'Nunito Sans', sans-serif; padding: 7px 11px; }
.team-card-featured { border-color: #86acb9; box-shadow: 0 5px 20px #004d6d0c; }
.team-content { padding: 24px 23px 0; }
.team-content h3 { font: 900 1.25rem/1.3 'Nunito Sans', sans-serif; min-height: 3.9em; margin-bottom: 8px; color: var(--fg-deep); }
.team-registration { margin: 0 0 22px; font-size: 1rem; line-height: 1.6; color: var(--fg-muted); }
.team-biography { border-top: 1px solid var(--fg-line); }
.team-biography summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 17px 0; cursor: pointer; font: 900 1rem/1.4 'Nunito Sans', sans-serif; color: var(--fg-blue); }
.team-biography summary::-webkit-details-marker { display: none; }
.details-sign { width: 14px; height: 14px; position: relative; flex-shrink: 0; }
.details-sign::before, .details-sign::after { content: ''; position: absolute; background: currentColor; width: 12px; height: 1.5px; top: 6px; left: 1px; }
.details-sign::after { transform: rotate(90deg); transition: transform .2s; }
.team-biography[open] .details-sign::after { transform: rotate(0); }
.team-bio-text { padding-bottom: 8px; }
.team-bio-text p { text-align: left; font-size: 1rem; line-height: 1.9; }
.team-dialog { border: 1px solid var(--fg-line); border-radius: 16px; background: white; color: var(--fg-ink); width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 24px; box-shadow: 0 24px 70px #00394f33; }
.team-dialog::backdrop { background: #002b40b3; }
.team-dialog[open] { animation: team-dialog-enter .26s cubic-bezier(.2,.7,.2,1); }
@keyframes team-dialog-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.team-dialog-header { display: flex; align-items: start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--fg-line); }
.team-dialog-header h2 { flex: 1; font: 900 1.375rem/1.25 'Nunito Sans', sans-serif; color: var(--fg-deep); margin: 0; }
.team-dialog-header form { margin: 0; }
.team-dialog-close { min-height: 44px; padding: 10px; border: 1px solid var(--fg-line); border-radius: 6px; background: var(--fg-paper); color: var(--fg-deep); font: 900 1rem 'Nunito Sans', sans-serif; cursor: pointer; }
.team-dialog-body { padding-top: 20px; }
.team-dialog-body .team-registration { font-size: 1rem; }
.team-dialog-body .team-bio-text p, .team-dialog-body .team-bio-text { font-size: 1rem; line-height: 1.9; }
body:has(.team-dialog[open]) { overflow: hidden; }
.page-template-home .galeria { --gallery-height: 380px; height: var(--gallery-height); position: relative; }
.page-template-home .galeria .swiper-slide { width: calc(var(--gallery-height) * var(--photo-ratio, 1)); height: var(--gallery-height); margin: 0; padding: 0; }
.page-template-home .galeria .slide a { display: block; width: 100%; height: 100%; }
.page-template-home .galeria .slide img { display: block; height: 100%; width: 100%; max-width: none; object-fit: cover; }
.gallery-controls { position: absolute; right: 96px; bottom: 22px; z-index: 2; }
.gallery-controls button { background: white; }
.fancybox-caption { font-size: 1rem; line-height: 1.65; }
.page-template-home #depoimentos { padding: 95px 0; max-height: none; }
.testimonials-layout { display: block; max-width: 1000px; }
.testimonials-layout > h2 { max-width: 26ch; margin: 0 auto 45px; text-align: center; font-weight: 900; font-size: 2.25rem; line-height: 1.2; }
.page-template-home #depoimentos .depoimentos-carrossel { padding: 0; box-shadow: none; width: 100%; max-width: 840px; min-width: 0; background: transparent; margin-inline: auto; }
.page-template-home #depoimentos .depoimento { text-align: center; margin: 0; }
.depoimento blockquote { margin: 0 0 26px; padding: 0; }
.depoimento blockquote p { font-size: 1.1875rem; line-height: 1.8; color: var(--fg-ink); }
.depoimento figcaption strong { font: 900 1.0625rem/1.5 'Nunito Sans', sans-serif; color: var(--fg-blue); }
.depoimento figcaption span { display: block; font-size: 1rem; line-height: 1.8; color: var(--fg-muted); margin-top: 5px; }
.testimonial-photo img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 24px; }
.testimonial-controls { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 30px; }
.page-template-home #redes-sociais { padding: 60px 0; border-top: 1px solid var(--fg-line); }
.social-layout { display: flex; justify-content: center; align-items: center; gap: 70px; }
.social-image { max-width: 350px; }
.fg-text-link { font-size: 1rem; line-height: 1.7; font-weight: bold; }
.fg-text-link i { margin-right: 8px; }
.page-template-home #contato { padding: 90px 0; background: var(--fg-paper); }
.contact-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.contact-channel { display: flex; align-items: flex-start; gap: 14px; padding: 26px 22px; border: 1px solid var(--fg-line); border-radius: 10px; background: white; color: var(--fg-deep); transition: border-color .2s, box-shadow .2s; }
.contact-channel:hover { border-color: #8bb3bf; box-shadow: 0 6px 22px #004d6d09; }
.contact-icon { font-size: 1.4375rem; }
.contact-channel-content { display: block; flex: 1; min-width: 0; }
.contact-channel strong { display: block; font: 900 1rem/1.4 'Nunito Sans', sans-serif; min-height: 42px; }
.contact-number { display: block; font-size: 1rem; line-height: 1.5; margin: 14px 0; font-weight: bold; }
.contact-description { display: block; font-size: 1rem; line-height: 1.9; color: var(--fg-muted); }
.contact-arrow { font-size: 1.125rem; }
.contact-location { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 36px; padding: 32px 0; border-bottom: 1px solid var(--fg-line); }
.contact-location > div { display: flex; align-items: center; gap: 20px; }
.contact-location i { font-size: 1.875rem; }
.contact-location strong { font: 900 1.25rem/1.4 'Nunito Sans', sans-serif; }
.contact-location p { font-size: 1rem; line-height: 1.9; margin: 6px 0 0; }
.contact-email { display: flex; align-items: center; gap: 12px; margin-top: 25px; font-size: 1rem; overflow-wrap: anywhere; }
.contact-email strong { font-weight: 700; }
#footer .top-footer { padding: 60px 0 48px; background: var(--fg-deep); text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1fr .55fr 1.45fr; gap: 40px; align-items: start; }
.footer-brand img { display: block; max-width: 240px; height: auto; }
.footer-brand p { max-width: 35ch; font-size: 1rem; line-height: 1.7; color: #dcecf1; margin: 20px 0; }
#footer .footer-brand .redes-sociais a { display: inline-grid; place-items: center; width: 44px; height: 44px; margin: 0; font-size: 1.5rem; color: white; }
.footer-grid h2 { color: white; font: 900 1.125rem/1.4 'Nunito Sans', sans-serif; margin: 0 0 22px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-navigation ul { display: grid; gap: 14px; }
.footer-grid a { color: #e3eff3; font-size: 1rem; line-height: 1.65; text-decoration: none; }
.footer-grid a:hover { color: white; text-decoration: none; }
.footer-navigation a { display: inline-block; padding-block: 2px; }
.footer-contact-list { display: grid; gap: 14px; }
.footer-contact-list a, .footer-location, .footer-email { display: flex; align-items: start; gap: 12px; }
.footer-contacts i { flex: 0 0 24px; font-size: 1.25rem; line-height: 1.4; }
.footer-phone { white-space: nowrap; }
.footer-location { margin-top: 25px; }
.footer-location strong { display: block; font-weight: 700; margin-bottom: 4px; }
.footer-email { margin-top: 18px; overflow-wrap: anywhere; }
.footer-email span { min-width: 0; }
#footer .bottom-footer { background: #003d57; padding: 22px 0; }
#footer .bottom-footer .direitos { color: #d4e7ee; font-size: .75rem; }
@media (min-width: 1400px) { .page-template-home .container { max-width: 1200px; } }
@media (max-width: 1199px) { .banner-principal .hero-layout, .partnership-grid { gap: 40px; } .contact-channel { padding: 22px 16px; gap: 10px; } .contact-icon { font-size: 1.25rem; } }
@media (max-width: 991px) {
    .banner-principal .slide { min-height: 700px; padding: 120px 0; }
    .banner-principal .hero-layout { gap: 35px; grid-template-columns: 1.4fr 1fr; }
    .banner-principal .slide .conteudo h1, .banner-principal .slide .conteudo h2 { font-size: 2.375rem; }
    .hero-address { padding-left: 24px; }
    .institutional-grid, .institutional-reverse { gap: 40px; }
    .fg-institutional, .page-template-home #quem-somos { padding: 70px 0; }
    .institutional-image { padding: 0; }
    .partnership-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 35px; }
    .hospital-signature { gap: 20px; }
    .qualification-grid { columns: 1; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .fg-section-heading { flex-direction: column; align-items: start; gap: 18px; }
    .fg-section-heading > p { max-width: 600px; }
    .contact-channels { grid-template-columns: 1fr; gap: 12px; }
    .contact-channel { padding: 24px; }
    .contact-channel strong { min-height: 0; }
    .contact-number { margin: 8px 0; }
    .contact-description { font-size: 1rem; }
    #footer .top-footer { text-align: left; }
}
@media (max-width: 767px) {
    .banner-principal .hero-controls { padding-right: 94px; }
    .banner-principal .hero-layout, .banner-principal .hero-layout.hero-with-image { grid-template-columns: 1fr; gap: 30px; }
    .banner-principal .slide { min-height: 820px; padding: 120px 0; }
    .banner-principal .slide .conteudo h1, .banner-principal .slide .conteudo h2 { font-size: 2.3125rem; }
    .banner-principal .slide .conteudo p { font-size: 1rem; line-height: 1.85; }
    .hero-address { padding: 22px 0 0; border-left: 0; border-top: 1px solid #ffffff52; display: grid; grid-template-columns: 24px 1fr; column-gap: 15px; }
    .hero-address > i { grid-row: 1 / 4; font-size: 1.5rem; margin: 0; }
    .hero-address strong { font-size: 1.1875rem; }
    .hero-address p { font-size: 1rem; margin: 10px 0 12px; }
    .hero-address a { justify-self: start; }
    .hero-image { display: block; }
    .hero-image img { max-width: 160px; }
    .institutional-grid, .institutional-reverse { grid-template-columns: 1fr; gap: 30px; }
    .institutional-image img { max-height: 160px; max-width: 160px; }
    .institutional-reverse .institutional-image { grid-row: 1; }
    .institutional-copy h2 { font-size: 1.875rem; }
    .institutional-copy p { font-size: 1rem; }
    .partnership-grid { grid-template-columns: 1fr; gap: 40px; }
    .fg-partnership { padding: 65px 0; }
    .partnership-content h2 { max-width: 20ch; font-size: 2.25rem; }
    .hospital-signature { flex-direction: row; align-items: center; }
    .hospital-signature .hospital-logo { width: 115px; }
    .partnership-video { max-width: 310px; }
    .partnership-video video { max-height: 540px; }
    .page-template-home #curriculo-section, .page-template-home #equipe-section, .page-template-home #depoimentos, .page-template-home #contato { padding: 65px 0; }
    .qualification-grid { column-gap: 0; }
    .qualification-item .descricao, .qualification-item .descricao p { font-size: 1rem; }
    .testimonials-layout > h2 { font-size: 1.875rem; }
    .depoimento blockquote p { font-size: 1.0625rem; }
    .social-layout { flex-direction: column; gap: 25px; text-align: center; }
    .social-image { max-width: 300px; }
    .contact-location { align-items: flex-start; flex-direction: column; gap: 22px; }
}
@media (max-width: 575px) {
    .container { padding-left: 24px; padding-right: 24px; }
    #header .navbar-brand .logo, #header .navbar-brand .logo-alt { width: 205px; height: auto; }
    .banner-principal .slide { min-height: 830px; padding: 120px 0; }
    .banner-principal .slide .conteudo h1, .banner-principal .slide .conteudo h2 { font-size: 2.25rem; }
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .team-content h3 { min-height: 5.2em; font-size: 1rem; }
    .team-photo { aspect-ratio: 1; }
    .team-content { padding: 17px 13px 0; }
    .team-registration { font-size: 1rem; min-height: 3.2em; margin-bottom: 14px; }
    .team-featured-label { left: 8px; right: 8px; bottom: 8px; padding: 5px 7px; font-size: 0.5625rem; }
    .team-bio-text p { font-size: 1rem; }
    .team-biography summary { min-height: 68px; font-size: 1rem; gap: 6px; }
    .testimonial-controls { flex-wrap: wrap; justify-content: center; }
    .qualification-grid { columns: 1; }
    .qualification-item { display: block; padding: 24px; }
    .qualification-item img { width: 80px; height: 80px; margin-bottom: 22px; }
    .page-template-home .galeria { --gallery-height: 320px; }
    .qualification-item .descricao, .qualification-item .descricao p { font-size: 1rem; }
    .contact-channel { padding: 22px 18px; }
    .contact-channel strong { font-size: 1rem; }
    .contact-description { font-size: 1rem; }
}
@media (max-width: 359px) {
    .team-grid { grid-template-columns: 1fr; gap: 22px; }
    .team-content { padding: 22px 20px 0; }
    .team-content h3 { min-height: 3.9em; font-size: 1.25rem; }
    .team-registration { font-size: 1rem; min-height: 1.6em; }
    .team-featured-label { font-size: 0.6875rem; }
    .team-biography summary { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 991px) {
    .footer-grid { grid-template-columns: .8fr 1.2fr; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; display: grid; grid-template-columns: 240px 1fr; column-gap: 32px; align-items: center; }
    .footer-brand img { grid-row: 1 / 3; }
    .footer-brand p { max-width: 48ch; margin: 0 0 12px; }
    .footer-brand .redes-sociais { grid-column: 2; }
}
@media (max-width: 767px) {
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-brand { display: block; }
    .footer-brand p { margin: 20px 0 12px; }
    .footer-navigation ul { display: flex; flex-wrap: wrap; column-gap: 24px; row-gap: 12px; }
    #footer .top-footer { padding: 48px 0; }
    .hospital-signature { flex-direction: column; align-items: start; }
    .hospital-signature .hospital-logo { width: 125px; }
}
