/* ==========================================================================
   Hospital Santa Helena — layout modernizado
   Mantém a estrutura, os textos e a identidade (azul #1977cc) do site original.
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/work-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  --primary: #1977cc;        /* azul original do site */
  --primary-dark: #145fa3;
  --primary-50: #eef6fd;
  --primary-100: #dcebfa;
  --navy: #2c4964;           /* cor de títulos do site original */
  --navy-dark: #0f2a44;
  --text: #444f5a;
  --muted: #5f6b77;
  --line: #e3ebf3;
  --bg-soft: #f4f8fb;
  --wa: #128c4a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Work Sans", "Inter", system-ui, sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 28px);
  --section: clamp(60px, 7vw, 100px);
  --r: 16px;
  --shadow: 0 10px 30px -14px rgba(25, 75, 130, .28);
  --shadow-lg: 0 24px 50px -22px rgba(25, 75, 130, .4);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.i { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--primary); color: #fff; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section { padding-block: var(--section); }
.section-bg { background: var(--bg-soft); }

/* Título de seção (texto original preservado) */
.section-title { text-align: center; margin-bottom: clamp(32px, 4vw, 52px); }
.section-title h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; letter-spacing: .04em; margin-bottom: 14px; display: inline-block; position: relative; padding-bottom: 16px; }
.section-title h2::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 56px; height: 4px; border-radius: 4px; translate: -50% 0; background: var(--primary); }
.section-title p { color: var(--muted); font-size: 1.08rem; margin: 0 auto; max-width: 640px; }

/* ---------- TOPBAR ---------- */
#topbar { background: var(--primary); color: #fff; font-size: .82rem; }
#topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
#topbar .contact-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
#topbar a { color: #fff; display: inline-flex; align-items: center; gap: 6px; }
#topbar a:hover { text-decoration: underline; }
#topbar .i { width: 15px; height: 15px; }
#topbar .social-links { display: flex; gap: 14px; }
@media (max-width: 991px) { #topbar .hide-md, #topbar .social-links { display: none; } }
@media (max-width: 575px) { #topbar .contact-info { justify-content: center; width: 100%; } #topbar .hide-sm { display: none; } }

/* ---------- HEADER ---------- */
#header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .25s; }
#header.header-scrolled { box-shadow: 0 8px 24px -16px rgba(25,75,130,.45); }
#header > .container { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { margin: 0 auto 0 0; line-height: 0; }
.logo img { height: 46px; width: auto; }
.navbar > ul { display: flex; align-items: center; }
.navbar a, .navbar .drop-btn { display: flex; align-items: center; gap: 4px; padding: 10px 14px; color: var(--navy); font-weight: 500; font-size: .93rem; background: none; border: 0; border-radius: 999px; white-space: nowrap; transition: color .2s, background-color .2s; }
.navbar a:hover, .navbar a.active, .navbar li:hover > .drop-btn, .navbar li:focus-within > .drop-btn { color: var(--primary-dark); background: var(--primary-50); }
.navbar .i { width: 14px; height: 14px; }
.navbar .dropdown { position: relative; }
.navbar .dropdown > ul { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 10; }
.navbar .dropdown > ul::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.navbar .dropdown:hover > ul, .navbar .dropdown:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.navbar .dropdown ul a, .navbar .dropdown ul .drop-btn { width: 100%; border-radius: 8px; justify-content: space-between; padding: 10px 12px; font-size: .9rem; }
.navbar .dropdown .dropdown > ul { top: -8px; left: auto; right: calc(100% + 8px); }
.navbar .dropdown .dropdown > ul::before { inset: 0 -12px 0 auto; width: 12px; height: auto; }
.navbar > ul > .dropdown:last-child > ul { left: auto; right: 0; }
.appointment-btn { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 1.2rem; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 600; font-size: .9rem; transition: background-color .2s, transform .2s, box-shadow .2s; }
.appointment-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.appointment-btn .i { width: 18px; height: 18px; }
.mobile-nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); align-items: center; justify-content: center; flex: none; }
.mobile-nav-toggle .i { width: 22px; height: 22px; }
.close-nav { display: none; }
@media (max-width: 1100px) {
  .mobile-nav-toggle { display: inline-flex; }
  .navbar { position: fixed; inset: 0; z-index: 200; background: rgba(15,42,68,.55); opacity: 0; visibility: hidden; transition: .25s; overflow: hidden; }
  .navbar.navbar-mobile { opacity: 1; visibility: visible; }
  .navbar > ul { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88%); flex-direction: column; align-items: stretch; gap: 2px; padding: 76px 16px 24px; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); }
  .navbar.navbar-mobile > ul { transform: none; }
  .navbar a, .navbar .drop-btn { width: 100%; justify-content: space-between; font-size: 1rem; padding: 12px 14px; border-radius: 10px; }
  .navbar .dropdown > ul, .navbar .dropdown .dropdown > ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0; }
  .navbar .dropdown > ul.dropdown-active { display: block; }
  .close-nav { display: inline-flex; position: absolute; top: 16px; right: 16px; }
}
@media (max-width: 520px) { .appointment-btn .label { display: none; } .appointment-btn { width: 44px; padding: 0; justify-content: center; } .logo img { height: 40px; } }

/* ---------- HERO ---------- */
#hero { height: min(78vh, 720px); min-height: 340px; background: var(--primary-50); overflow: hidden; }
#hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
#hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(180deg, transparent, rgba(255,255,255,.96)); }
@media (max-width: 768px) { #hero { height: 46vh; } }

/* ---------- WHY US (atalhos) ---------- */
#why-us { margin-top: clamp(-200px, -15vw, -70px); z-index: 2; padding-bottom: var(--section); }
.why-us .why-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: end; }
.why-us .pa-card { display: block; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.why-us .pa-card img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s var(--ease); }
.why-us .pa-card:hover img { transform: scale(1.04); }
.why-us .icon-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.icon-box-card { position: relative; background: #fff; border-radius: var(--r); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; display: flex; flex-direction: column; align-items: center; }
.icon-box-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.icon-box-card .ic { width: 68px; height: 68px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: 18px; transition: background-color .3s, color .3s; }
.icon-box-card:hover .ic { background: var(--primary); color: #fff; }
.icon-box-card .ic .i { width: 30px; height: 30px; }
.icon-box-card h4 { font-size: 1rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 8px; }
.icon-box-card h4 a { color: var(--navy); }
.icon-box-card h4 a::after { content: ""; position: absolute; inset: 0; }
.icon-box-card:hover h4 a { color: var(--primary); }
.icon-box-card p { margin: 0; font-size: .92rem; color: var(--muted); }
@media (max-width: 991px) { .why-us .why-wrap { grid-template-columns: 1fr; } .why-us .pa-card { max-width: 420px; width: 100%; margin-inline: auto; } }
@media (max-width: 640px) { .why-us .icon-boxes { grid-template-columns: 1fr; } }

/* ---------- ABOUT (autorização eletiva) ---------- */
.about { background: var(--bg-soft); }
.about .about-wrap { display: grid; grid-template-columns: 5fr 7fr; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.about .video-box { position: relative; min-height: 460px; background: url("../img/opt/about.webp?v=2") center top/cover no-repeat; display: block; }
.about .video-box::after { content: ""; position: absolute; inset: 0; background: rgba(15,42,68,.12); transition: background-color .3s; }
.about .video-box:hover::after { background: rgba(15,42,68,.28); }
.play-btn { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 92px; height: 92px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; animation: pulse-ring 2s infinite; }
.play-btn .i { width: 30px; height: 30px; margin-left: 4px; }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(25,119,204,.55); } 70% { box-shadow: 0 0 0 22px rgba(25,119,204,0); } 100% { box-shadow: 0 0 0 0 rgba(25,119,204,0); } }
.about .content { padding: clamp(28px, 4vw, 56px); }
.about h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; }
.about .content > p { color: var(--muted); }
.about .icon-box { display: flex; align-items: center; gap: 16px; padding: 14px 16px; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); position: relative; transition: border-color .2s, background-color .2s, transform .2s; }
.about .icon-box:hover { border-color: var(--primary); background: var(--primary-50); transform: translateX(4px); }
.about .icon-box .icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.about .icon-box .icon.wa { background: #e6f6ec; color: var(--wa); }
.about .icon-box h4 { margin: 0; font-size: .98rem; font-weight: 600; font-family: var(--font); line-height: 1.4; }
.about .icon-box h4 a { color: var(--navy); }
.about .icon-box h4 a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 991px) { .about .about-wrap { grid-template-columns: 1fr; } .about .video-box { min-height: 0; aspect-ratio: 16/10; } }

/* ---------- COUNTS ---------- */
.counts { padding-block: clamp(70px, 8vw, 100px) clamp(48px, 6vw, 80px); }
.counts .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.count-box { background: #fff; border-radius: var(--r); padding: 30px 24px 26px; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
.count-box .ic { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; margin: -58px auto 14px; box-shadow: 0 8px 18px -6px rgba(25,119,204,.6); }
.count-box .ic .i { width: 26px; height: 26px; }
.count-box span { display: block; font-family: var(--font-head); font-size: clamp(2.4rem, 1.8rem + 2vw, 3rem); font-weight: 600; color: var(--navy); line-height: 1.1; }
.count-box p { margin: 6px 0 0; font-weight: 600; letter-spacing: .08em; font-size: .85rem; color: var(--muted); }
@media (max-width: 991px) { .counts .row { grid-template-columns: 1fr 1fr; row-gap: 56px; } }

/* ---------- SERVICES ---------- */
.services .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.services .icon-box { text-align: center; padding: 40px 28px 34px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: all .3s var(--ease); }
.services .icon-box .icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 22px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; transition: all .3s var(--ease); }
.services .icon-box .icon .i { width: 32px; height: 32px; }
.services .icon-box h4 { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; letter-spacing: .02em; color: var(--navy); }
.services .icon-box p { line-height: 1.65; font-size: .95rem; margin: 0; color: var(--muted); }
.services .icon-box:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.services .icon-box:hover .icon { background: #fff; rotate: 8deg; }
.services .icon-box:hover h4, .services .icon-box:hover p { color: #fff; }
@media (max-width: 991px) { .services .row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .services .row { grid-template-columns: 1fr; } }

/* ---------- PESQUISA DE SATISFAÇÃO ---------- */
.pesquisa .box { border-radius: 24px; padding: clamp(36px, 5vw, 60px) var(--gutter); text-align: center; background: linear-gradient(135deg, var(--primary) 0%, #2e8fe0 100%); color: #fff; position: relative; overflow: hidden; }
.pesquisa .box::before, .pesquisa .box::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); }
.pesquisa .box::before { width: 280px; height: 280px; left: -80px; top: -120px; }
.pesquisa .box::after { width: 360px; height: 360px; right: -120px; bottom: -200px; }
.pesquisa .section-title { margin-bottom: 28px; position: relative; z-index: 1; }
.pesquisa .section-title h2 { color: #fff; }
.pesquisa .section-title h2::after { background: #fff; }
.pesquisa .section-title p { color: #fff; margin-top: 4px; }
.pesquisa .buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; z-index: 1; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 1.6rem; border-radius: 999px; background: #fff; color: var(--primary-dark); font-weight: 700; letter-spacing: .05em; font-size: .9rem; transition: transform .2s, box-shadow .2s; }
.more-btn:hover { color: var(--navy-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.more-btn .i { width: 16px; height: 16px; }

/* ---------- DEPARTMENTS (Sobre nós · abas) ---------- */
.departments .tabs-wrap { display: grid; grid-template-columns: 290px 1fr; gap: 28px; align-items: start; }
.departments .nav-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.departments .nav-link { width: 100%; text-align: left; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: .86rem; letter-spacing: .03em; transition: all .2s; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.departments .nav-link .i { width: 16px; height: 16px; opacity: .4; }
.departments .nav-link:hover { border-color: var(--primary); color: var(--primary); }
.departments .nav-link[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 20px -12px rgba(25,119,204,.7); }
.departments .nav-link[aria-selected="true"] .i { opacity: 1; }
.departments .tab-pane { display: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); }
.departments .tab-pane.active { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.departments .details h3 { font-size: 1.45rem; font-weight: 600; margin-bottom: 18px; }
.departments .details .fst-italic { font-style: italic; color: var(--navy); }
.departments .pane-img { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.departments .pane-img img { width: 100%; height: auto; }
@media (max-width: 991px) {
  .departments .tabs-wrap { grid-template-columns: 1fr; }
  .departments .nav-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .departments .nav-link { width: auto; white-space: nowrap; flex: none; }
  .departments .nav-link .i { display: none; }
  .departments .tab-pane.active { grid-template-columns: 1fr; }
  .departments .pane-img { order: -1; max-width: 420px; }
}

/* ---------- DOCTORS (Diretoria) ---------- */
.doctors .row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.doctors .member { display: flex; align-items: center; gap: 22px; padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.doctors .member:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.doctors .pic { width: 130px; height: 130px; border-radius: 50%; overflow: hidden; flex: none; background: var(--primary-50); border: 4px solid var(--primary-100); }
.doctors .pic img { width: 100%; height: 100%; object-fit: cover; }
.doctors h4 { font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; }
.doctors .member span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary-dark); font-size: .75rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 10px; }
.doctors .member p { margin: 0; color: var(--muted); font-style: italic; }
@media (max-width: 768px) { .doctors .row { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .doctors .member { flex-direction: column; text-align: center; } }

/* ---------- FAQ (Missão, visão e valores) ---------- */
.faq-list { max-width: 900px; margin-inline: auto; display: grid; gap: 14px; }
.faq-list details { background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.faq-list summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.faq-list summary .chev { margin-left: auto; color: var(--primary); transition: rotate .25s; }
.faq-list details[open] summary .chev { rotate: 180deg; }
.faq-list details[open] summary { color: var(--primary); }
.faq-list .answer { padding: 0 24px 20px 80px; }
.faq-list .answer p { margin: 0 0 .8em; }
.faq-list .answer p:last-child { margin: 0; }
@media (max-width: 560px) { .faq-list .answer { padding-left: 24px; } }

/* ---------- TESTIMONIALS ---------- */
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; padding: 6px 2px 10px; }
.slider-track::-webkit-scrollbar { display: none; }
@media (max-width: 991px) { .slider-track { grid-auto-columns: 100%; } }
.testimonial-item { scroll-snap-align: start; background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 32px 30px 28px; display: flex; flex-direction: column; }
.testimonial-item .quote { width: 34px; height: 34px; color: var(--primary-100); margin-bottom: 14px; }
.testimonial-item p { font-size: 1.04rem; font-style: italic; flex: 1; }
.testimonial-item .who { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.testimonial-item .who img { width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--primary-100); }
.testimonial-item h3 { font-size: 1.05rem; font-weight: 700; margin: 0; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.slider-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; padding: 0; background: var(--primary-100); transition: width .3s, background-color .3s; }
.slider-dots button[aria-current="true"] { width: 30px; background: var(--primary); }

/* ---------- GALLERY ---------- */
.gallery .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; display: block; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: rgba(25,119,204,0); transition: background-color .3s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item:hover::after { background: rgba(25,119,204,.25); }
.gallery-item .play-sm { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--primary); display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.4); transition: transform .3s; }
.gallery-item:hover .play-sm { transform: scale(1.1); }
.gallery-item .play-sm .i { width: 22px; height: 22px; margin-left: 3px; }
@media (max-width: 991px) { .gallery .row { grid-template-columns: 1fr 1fr; } }

/* ---------- CONVÊNIOS (faixa contínua) ---------- */
.sponsors { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.sponsors-track { display: flex; gap: 18px; width: max-content; animation: marquee 45s linear infinite; padding: 6px 0; }
.sponsors:hover .sponsors-track, .sponsors:focus-within .sponsors-track { animation-play-state: paused; }
.sponsor { width: 180px; height: 104px; flex: none; display: grid; place-items: center; padding: 18px; background: #fff; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 4px 14px -10px rgba(25,75,130,.35); }
.sponsor img { max-width: 130px; max-height: 60px; width: auto; height: auto; object-fit: contain; transition: transform .3s; }
.sponsor:hover img { transform: scale(1.08); }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
@media (prefers-reduced-motion: reduce) { .sponsors { -webkit-mask-image: none; mask-image: none; } .sponsors-track { flex-wrap: wrap; width: auto; justify-content: center; } .sponsors-track [aria-hidden="true"] { display: none; } }

/* ---------- CONTACT (mapa) ---------- */
.contact .map { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); height: 420px; }
.contact .map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- FOOTER ---------- */
#footer { background: var(--navy-dark); color: rgba(255,255,255,.8); font-size: .93rem; }
#footer .footer-top { padding: clamp(48px, 6vw, 72px) 0 32px; }
#footer .footer-top .row { display: grid; grid-template-columns: 1.1fr .9fr 1fr 1.2fr; gap: 36px; }
#footer h3, #footer h4 { color: #fff; font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
#footer h3::after, #footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: #4a9fe8; }
#footer a { color: rgba(255,255,255,.86); }
#footer a:hover { color: #fff; text-decoration: underline; }
#footer .footer-contact p { line-height: 1.85; }
#footer .footer-contact .i { color: #7fbaf0; margin-right: 6px; width: 16px; height: 16px; }
#footer .footer-links li { display: flex; align-items: center; gap: 6px; padding: 6px 0; }
#footer .footer-links .i { color: #7fbaf0; width: 14px; height: 14px; }
#footer .seals { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
#footer .seals img { height: 44px; width: auto; }
#footer .seals .ans { background: #fff; border-radius: 6px; padding: 5px 8px; }
#footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
#footer .footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-block: 22px; font-size: .85rem; }
#footer .social-links { display: flex; gap: 10px; }
#footer .social-links a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; }
#footer .social-links a:hover { background: var(--primary); text-decoration: none; }
#footer .social-links .i { width: 17px; height: 17px; }
@media (max-width: 991px) { #footer .footer-top .row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { #footer .footer-top .row { grid-template-columns: 1fr; } #footer .footer-bottom .container { justify-content: center; text-align: center; } }

.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .3s; border: 0; }
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); color: #fff; }
.back-to-top .i { width: 22px; height: 22px; }
[vw].enabled { bottom: 80px !important; }

/* ---------- FALE CONOSCO / POLÍTICA ---------- */
.page-banner { background: linear-gradient(135deg, var(--primary) 0%, #2e8fe0 100%); color: #fff; padding: clamp(32px, 4vw, 52px) 0; }
.page-banner .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-banner h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: .03em; }
.breadcrumbs ol { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.breadcrumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; }
.fale .icon-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fale .icon-box-card p { margin-bottom: .6em; }
.fale .icon-box-card p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .fale .icon-boxes { grid-template-columns: 1fr; } }
.alerta { margin-top: 36px; display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; border-radius: 16px; background: #fff5f5; border: 2px solid #e53935; color: #3b1414; }
.alerta .i { width: 28px; height: 28px; color: #d32f2f; flex: none; }
.alerta strong { display: block; color: #c62828; font-size: 1.15rem; margin-bottom: 4px; letter-spacing: .04em; }
.alerta p { margin: 0; font-weight: 600; }
.policy { max-width: 880px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(28px, 5vw, 56px); }
.policy h1 { text-align: center; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: .06em; margin-bottom: 32px; }
.policy h2 { font-family: var(--font); font-size: 1.04rem; font-weight: 700; color: var(--primary-dark); margin: 2em 0 .7em; padding-top: 1.2em; border-top: 1px solid var(--line); letter-spacing: .02em; }
.policy h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.policy h3 { font-family: var(--font); font-size: .95rem; font-weight: 700; color: var(--navy); margin: 1.4em 0 .6em; }
.policy ul, .policy ol { padding-left: 1.3em; margin: 0 0 1em; }
.policy ul { list-style: disc; }
.policy li { margin-bottom: .45em; }
.policy a { word-break: break-word; text-decoration: underline; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in, .no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
body.no-scroll { overflow: hidden; }
.departments .tabs-wrap > *, .departments .tab-content { min-width: 0; }

/* ---------- Janela flutuante (Telefones úteis) ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; letter-spacing: .02em; color: var(--navy); cursor: pointer; text-transform: inherit; }
.link-btn::after { content: ""; position: absolute; inset: 0; }
.icon-box-card:hover .link-btn { color: var(--primary); }
.why-us .pa-card:hover img { transform: none; }
.modal { width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(15,42,68,.55); color: var(--text); overflow: auto; }
.modal::backdrop { background: rgba(15,42,68,.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in .25s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 18px 24px; background: var(--primary); color: #fff; }
.modal-head h2 { color: #fff; margin: 0; font-size: 1.3rem; font-weight: 600; letter-spacing: .02em; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; flex: none; transition: background-color .2s; }
.modal-close:hover { background: rgba(255,255,255,.32); }
.modal-close .i { width: 20px; height: 20px; }
.modal-body { padding: 8px 24px 22px; }
.tel-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.tel-item:last-child { border-bottom: 0; }
.tel-item h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 2px; color: var(--navy); letter-spacing: .02em; text-transform: uppercase; }
.tel-hours { margin: 0 0 10px; font-size: .88rem; color: var(--muted); font-style: italic; }
.tel-nums { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tel-nums a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--primary-50); color: var(--primary-dark); font-weight: 700; font-size: .95rem; }
.tel-nums a:hover { background: var(--primary); color: #fff; }
.tel-nums .i { width: 15px; height: 15px; }
body.modal-open { overflow: hidden; }

/* Janela de visitas */
.visit-time { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 2px; font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); }
.visit-time .i { width: 18px; height: 18px; }
.visit-time span { font-weight: 400; color: var(--muted); font-size: .95rem; }
.tel-item .visit-time + .tel-hours { margin-bottom: 0; }
.visit-rules { list-style: disc; margin: 6px 0 0; padding: 14px 16px 14px 34px; background: var(--primary-50); border-radius: 12px; font-size: .9rem; color: var(--text); }
.visit-rules li { margin: 4px 0; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(255,255,255,.86); cursor: pointer; text-align: left; }
.footer-link-btn:hover { color: #fff; text-decoration: underline; }

/* ---------- Janela de vídeo ---------- */
.video-modal { width: min(960px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; background: transparent; overflow: visible; color: #fff; }
.video-modal::backdrop { background: rgba(8, 20, 34, .88); backdrop-filter: blur(6px); }
.video-modal[open] { animation: modal-in .3s var(--ease); }
.vm-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.vm-title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; letter-spacing: .02em; color: #fff; }
.vm-close { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--navy-dark); display: grid; place-items: center; flex: none; box-shadow: 0 8px 20px -6px rgba(0,0,0,.5); transition: transform .2s, background-color .2s; }
.vm-close:hover { transform: rotate(90deg); background: var(--primary-50); }
.vm-close .i { width: 22px; height: 22px; }
.vm-frame { border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.vm-frame video { display: block; width: 100%; max-height: calc(100vh - 110px); background: #000; }
