/* Base comum dos sites. As cores e fontes de cada site vêm das variáveis em :root (definidas no CSS do site). */
:root {
  --c1: #0069b4; --c1-dark: #004f87; --c2: #ffcc00; --c2-ink: #2a2200;
  --ink: #26303b; --muted: #637080; --bg: #fff; --bg-soft: #f3f6f9; --line: #e2e8ee;
  --radius: 14px; --header-h: 76px; --shadow: 0 10px 30px rgba(16, 40, 64, .12);
  --font-head: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::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-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--ink); }
a { color: var(--c1); }
:focus-visible { outline: 3px solid var(--c2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c2); color: #000; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 0; }

/* Botoes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font-family: var(--font-head); font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; border-radius: 999px; padding: .75rem 1.5rem; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-primary { background: var(--c1); color: #fff; }
.btn-primary:hover { background: var(--c1-dark); }
.btn-accent { background: var(--c2); color: var(--c2-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.btn-accent:hover { filter: brightness(1.07); }
.btn-outline { border-color: currentColor; color: var(--c1); background: transparent; }
.btn-outline:hover { background: var(--c1); border-color: var(--c1); color: #fff; }
.btn-light { background: #fff; color: var(--c1); }
.btn-lg { font-size: 1.1rem; padding: .95rem 2rem; }

/* Barra superior de informacoes */
.topbar { background: var(--c1); color: #fff; font-size: .9rem; }
.topbar ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem 1.8rem; padding: .5rem 0; }
.topbar li { display: flex; align-items: center; gap: .5rem; }
.topbar svg { width: 18px; height: 18px; color: var(--c2); flex: none; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

/* Cabecalho */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 2px 14px rgba(16, 40, 64, .1); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand img { height: 48px; width: auto; }
.menu ul { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.menu a { display: block; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; color: var(--ink); padding: .6rem .85rem; border-radius: 8px; transition: background .15s, color .15s; }
.menu a:hover, .menu a[aria-current="page"], .menu a.is-current { background: var(--bg-soft); color: var(--c1); }
.menu .nav-cta { margin-left: .5rem; padding: .6rem 1.2rem; text-transform: none; letter-spacing: 0; color: var(--c2-ink); }
.menu .nav-cta:hover { background: var(--c2); color: var(--c2-ink); }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: var(--bg-soft); border-radius: 12px; cursor: pointer; padding: 0; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-btn span { width: 22px; height: 3px; background: var(--c1); border-radius: 3px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Secoes e titulos */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-dark { background: var(--c1); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { font-family: var(--font-head); font-weight: 700; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c1); }
.sec-head { max-width: 780px; margin: 0 auto clamp(1.8rem, 4vw, 3rem); text-align: center; }
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.sec-title::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--c2); margin: .8rem auto 0; }
.sec-head.left, .left { text-align: left; margin-inline: 0; }
.sec-head.left .sec-title::after, .left .sec-title::after { margin-left: 0; }
.sec-sub { margin-top: 1rem; color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose h2, .prose h3 { margin: 2rem 0 .8rem; }

/* Pagina interna: titulo */
.page-hero { background: linear-gradient(120deg, var(--c1-dark), var(--c1)); color: #fff; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.crumbs { margin-top: .6rem; font-size: .92rem; opacity: .9; }
.crumbs a { color: #fff; }

/* Grades e cartoes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: 0 2px 10px rgba(16, 40, 64, .05); transition: transform .2s, box-shadow .2s, border-color .2s; display: flex; flex-direction: column; gap: .8rem; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.card .more svg { width: 1.1em; height: 1.1em; transition: transform .15s; }
.card:hover .more svg { transform: translateX(4px); }
.ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c1) 12%, #fff); color: var(--c1); }
.ico svg { width: 28px; height: 28px; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; padding: .35rem 0; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--c1); margin-top: .2rem; }

/* Galeria e ampliacao */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; margin-top: 1.4rem; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery button:hover img { transform: scale(1.05); }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(8, 14, 22, .88); }
dialog.lightbox img { max-width: 96vw; max-height: 88vh; object-fit: contain; border-radius: 10px; margin: auto; }
dialog.lightbox .nav { position: fixed; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #111; font-size: 2.2rem; line-height: 1; padding: 0 0 .2rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
dialog.lightbox .nav:hover { background: #fff; }
dialog.lightbox .nav.prev { left: 1rem; }
dialog.lightbox .nav.next { right: 1rem; }
dialog.lightbox.single .nav { display: none; }
dialog.lightbox .count { position: fixed; left: 0; right: 0; bottom: 1rem; text-align: center; color: #fff; font-size: .95rem; margin: 0; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
@media (max-width: 600px) { dialog.lightbox .nav { width: 44px; height: 44px; font-size: 1.8rem; } dialog.lightbox .nav.prev { left: .4rem; } dialog.lightbox .nav.next { right: .4rem; } }
dialog.lightbox .close {position: fixed; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 1.6rem; line-height: 1; cursor: pointer; }

/* Logos de parceiros */
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.2rem 2.4rem; }
.partners a { display: block; opacity: .85; transition: opacity .15s, transform .15s; }
.partners a:hover { opacity: 1; transform: translateY(-2px); }
.partners img { height: 56px; width: auto; max-width: 160px; object-fit: contain; }

/* Contato */
.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.info { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.info .ico { flex: none; }
.info h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.info a { text-decoration: none; font-weight: 700; word-break: break-word; }
.info address { font-style: normal; color: var(--muted); }
.cta-band { background: linear-gradient(120deg, var(--c1-dark), var(--c1)); color: #fff; text-align: center; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.cta-band p { margin: .8rem auto 1.5rem; max-width: 56ch; opacity: .92; }

/* Perguntas frequentes (acordeao sem JavaScript) */
.faq-sec { background: var(--bg-soft); }
.faq-box { display: grid; gap: .8rem; }
.faq-box details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; }
.faq-box summary { cursor: pointer; padding: 1.05rem 0; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--c1); display: grid; place-items: center; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq-box details[open] summary::after { content: "–"; }
.faq-box details[open] { border-color: var(--c1); }
.faq-a { padding: 0 0 1.2rem; color: var(--muted); }
.faq-a p + p { margin-top: .7rem; }

/* Rodape e credito */
.site-footer { background: var(--c1-dark); color: rgba(255, 255, 255, .88); padding: 2rem 0; font-size: .95rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer a { color: #fff; }
.dev-band { background: #2a2b2e; color: rgba(255, 255, 255, .72); border-top: 1px solid rgba(255, 255, 255, .08); padding: .85rem 0; font-size: .85rem; }
.dev-in { display: flex; align-items: center; justify-content: center; gap: .9rem; flex-wrap: wrap; }
.dev-in a { display: inline-flex; opacity: .92; transition: opacity .15s; }
.dev-in a:hover { opacity: 1; }
.dev-in img { height: 30px; width: auto; }

/* Botao flutuante */
.fab { position: fixed; right: 1rem; bottom: 1rem; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); z-index: 50; transition: transform .15s; }
.fab:hover { transform: scale(1.07); }
.fab svg { width: 32px; height: 32px; }

@media (max-width: 1020px) {
  .menu-btn { display: flex; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 16px 30px rgba(16, 40, 64, .18); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility .3s; }
  .menu.is-open { max-height: 82vh; visibility: visible; overflow-y: auto; }
  .menu ul { flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1rem 1.2rem; }
  .menu a { padding: .9rem 1rem; font-size: 1rem; }
  .menu .nav-cta { margin: .5rem 0 0; text-align: center; }
  .topbar ul { justify-content: center; }
}
@media (max-width: 800px) {
  :root { --header-h: 66px; }
  .brand img { height: 42px; }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .foot-in { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ===== Instituto Waldir Azevedo ===== */
:root {
  --c1: #284e79; --c1-dark: #1b3758; --c2: #e1c982; --c2-ink: #1b2b40;
  --ink: #2b3440; --muted: #5d6875; --bg-soft: #f3f6fb; --line: #e1e7ef;
  --radius: 12px; --header-h: 84px;
  --font-head: "Roboto Serif", Georgia, serif; --font-body: "Roboto", system-ui, sans-serif;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --shadow: 0 14px 36px rgba(20, 38, 62, .14);
}
body { font-size: 1.05rem; }
h1, h2, h3 { font-family: var(--font-head); color: var(--c1-dark); }

/* titulos: fino + grosso, sem "sobretitulos" */
.sec-title { font-weight: 300; font-size: clamp(1.9rem, 3.8vw, 2.7rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.sec-title strong { font-weight: 600; }
.sec-title::after { width: 48px; height: 3px; background: var(--c2); margin: 1rem auto 0; }
.prose .sec-title::after, .left .sec-title::after { margin-left: 0; }
.sec-title.sm { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2.4rem 0 1rem; }
.prose > .sec-title:first-child { margin-top: 0; margin-bottom: 1.4rem; }
.sec-sub { font-size: 1.1rem; max-width: 62ch; margin-inline: auto; text-wrap: pretty; }
.lead { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--c1); line-height: 1.5; }
.prose p { text-wrap: pretty; }
.prose .checks { margin: 1rem 0; }
.checks svg { color: #b89a45; }
.narrow { width: min(820px, 100% - 2rem); }
.soft { background: var(--bg-soft); }
.center-intro { text-align: center; }
.small { font-size: .92rem; color: var(--muted); }

/* botoes: resposta ao toque (scale) e hover so em mouse */
.btn { font-family: var(--font-body); font-weight: 500; letter-spacing: .01em; border-radius: 999px; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
.btn:hover { transform: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 1.05em; height: 1.05em; transition: transform 200ms var(--ease-out); }
.btn-accent { background: var(--c2); color: var(--c2-ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }
.btn-primary { background: var(--c1); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: #ead69c; filter: none; }
  .btn-primary:hover { background: var(--c1-dark); }
  .btn-ghost:hover { background: #fff; color: var(--c1-dark); }
  .btn:hover svg { transform: translateX(3px); }
}

/* cabecalho */
.site-header { background: var(--c1); box-shadow: none; transition: box-shadow 250ms ease, background-color 250ms ease; }
.site-header.scrolled { background: rgba(27, 55, 88, .96); box-shadow: 0 6px 24px rgba(10, 22, 38, .28); }
@supports (backdrop-filter: blur(8px)) { .site-header.scrolled { background: rgba(27, 55, 88, .86); backdrop-filter: blur(10px) saturate(1.2); } }
.brand img { height: 58px; width: auto; }
.menu a { position: relative; color: #fff; font-family: var(--font-body); font-weight: 500; font-size: .93rem; text-transform: none; letter-spacing: .01em; background: none !important; }
.menu a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; border-radius: 2px; background: var(--c2); transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out); }
.menu a[aria-current="page"] { color: var(--c2); }
.menu a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .menu a:hover::after { transform: scaleX(1); } .menu a:hover { color: #fff; } }
.menu-btn { background: rgba(255, 255, 255, .12); }
.menu-btn span { background: #fff; }
@media (max-width: 1020px) {
  .menu { background: var(--c1-dark); }
  .menu a { padding: .9rem 1.2rem; }
  .menu a::after { left: 1.2rem; right: auto; width: 2rem; bottom: .55rem; }
}

/* topo da home */
.hero { position: relative; isolation: isolate; color: #fff; min-height: clamp(540px, 88vh, 840px); display: flex; align-items: center; overflow: hidden; background: var(--c1-dark); }
.hero-bg, .page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 28, 46, .35) 0%, rgba(14, 28, 46, .55) 55%, rgba(14, 28, 46, .9) 100%); }
.hero-in { position: relative; padding: clamp(5rem, 10vw, 7rem) 0 clamp(4rem, 8vw, 6rem); max-width: 860px; text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.hero h1 strong { font-weight: 600; color: var(--c2); }
.hero-sub { margin: 1.4rem 0 2.4rem; max-width: 46ch; font-size: clamp(1.08rem, 1.8vw, 1.28rem); line-height: 1.6; color: rgba(255, 255, 255, .9); text-wrap: pretty; }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

/* titulo das paginas internas */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--c1-dark); padding: 0; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(20, 40, 66, .94) 0%, rgba(20, 40, 66, .78) 55%, rgba(20, 40, 66, .55) 100%); }
.page-hero .hero-in { text-align: left; align-items: flex-start; max-width: none; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { color: #fff; font-weight: 300; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.015em; }
.page-hero h1 strong { font-weight: 600; color: var(--c2); }
.ph-lead { margin-top: 1rem; max-width: 52ch; font-family: var(--font-head); font-weight: 300; font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255, 255, 255, .88); }
.page-hero .crumbs { margin: 0 0 1rem; font-size: .9rem; color: rgba(255, 255, 255, .75); }
.page-hero .crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }

/* entrada do topo (uma vez, ao carregar) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-in > * { animation: rise 700ms var(--ease-out) both; }
.hero-in > :nth-child(1) { animation-delay: 80ms; }
.hero-in > :nth-child(2) { animation-delay: 170ms; }
.hero-in > :nth-child(3) { animation-delay: 240ms; }
.hero-in > :nth-child(4) { animation-delay: 300ms; }
.hero-bg, .page-hero > img { animation: settle 1800ms var(--ease-out) both; }

/* fotos */
.photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; border-radius: 0; box-shadow: none; }
.photo.portrait { max-width: 440px; justify-self: center; }
.photo.portrait img { aspect-ratio: 4 / 5; }
.split { align-items: center; }

/* numeros da home */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(2.5rem, 5vw, 4rem); }
.facts li { background: #fff; padding: 1.5rem 1.2rem; text-align: center; display: flex; flex-direction: column; gap: .25rem; }
.facts strong { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.8rem); color: var(--c1); }
.facts span { color: var(--muted); font-size: .95rem; }

/* cartoes */
.cards { gap: 1.6rem; }
.card { padding: 0; overflow: hidden; gap: 0; text-decoration: none; color: inherit; border-color: var(--line); transition: transform 300ms var(--ease-out), box-shadow 300ms ease; }
.card:hover { transform: none; box-shadow: 0 2px 10px rgba(16, 40, 64, .05); border-color: var(--line); }
.card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease-out); }
.card-b { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card h3 { font-weight: 300; font-size: 1.4rem; }
.card h3 strong { font-weight: 600; }
.card .more { color: var(--c1); margin-top: auto; padding-top: .4rem; }
.card:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) {
  a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  a.card:hover > img { transform: scale(1.04); }
}
.mvv h3 { font-weight: 600; }
.mvv .checks { margin: 0; }
.mvv .checks li { padding: .2rem 0; }
.ev .ico { background: color-mix(in srgb, var(--c2) 35%, #fff); color: var(--c1-dark); width: 48px; height: 48px; border-radius: 50%; }
.ev .ico svg { width: 22px; height: 22px; }
.songs .yr { align-self: flex-start; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--c1-dark); background: color-mix(in srgb, var(--c2) 45%, #fff); padding: .2rem .7rem; border-radius: 999px; }
.songs h3 { font-style: italic; font-weight: 600; }
.cards.songs { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.more-line { margin-top: 2rem; color: var(--muted); }

/* circulos decorativos (do site original) */
.circles { position: relative; isolation: isolate; overflow: hidden; }
.circles::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -260px; top: -200px; background: url("../img/circulo-fundo.svg") center / contain no-repeat; opacity: .5; }

/* faixa da frase */
.quote-band { background: var(--c1-dark); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.quote-grid { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.quote-grid img { border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--font-head); font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.3; color: #fff; text-wrap: balance; }
.quote-band blockquote footer { margin-top: 1.4rem; color: var(--c2); font-size: 1.05rem; }
.quote-band.solo { text-align: center; }
.quote-band.solo blockquote { max-width: 30ch; margin-inline: auto; }

/* obras */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.6rem; }
.chips li { font-family: var(--font-head); font-style: italic; font-size: .95rem; color: var(--c1-dark); background: var(--bg-soft); border: 1px solid var(--line); padding: .35rem .9rem; border-radius: 999px; }

/* galeria pequena */
.gallery.mini { grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0; }
.gallery.mini button { border-radius: var(--radius); transition: transform 160ms var(--ease-out); }
.gallery.mini button:active { transform: scale(.98); }
.gallery img { transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .gallery button:hover img { transform: scale(1.04); } }

/* links da faixa final */
.cta-band { background: linear-gradient(135deg, var(--c1-dark), var(--c1)); color: #fff; }
.cta-band .sec-title, .cta-band h3 { color: #fff; }
.cta-band .sec-sub, .cta-band p { color: rgba(255, 255, 255, .86); }
.cta-band .checks svg { color: var(--c2); }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .8rem; max-width: 980px; margin-inline: auto; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.4rem; border-radius: var(--radius); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); color: #fff; text-decoration: none; font-weight: 500; transition: background-color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out); }
.links svg { width: 20px; height: 20px; color: var(--c2); flex: none; transition: transform 250ms var(--ease-out); }
.links a:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .links a:hover { background: rgba(255, 255, 255, .13); border-color: rgba(225, 201, 130, .6); } .links a:hover svg { transform: translateX(4px); } }
.cta-box { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.6rem); text-align: center; display: grid; gap: 1rem; }
.cta-box a:not(.btn) { color: #fff; }
.cta-box.light { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.cta-box.light p { color: var(--muted); }
.cta-box h3 { font-weight: 300; font-size: 1.7rem; }
.cta-box h3 strong { font-weight: 600; }

/* linha do tempo */
.tl { position: relative; display: grid; gap: 1.4rem; padding-left: 1.8rem; margin: 0; list-style: none; }
.tl::before { content: ""; position: absolute; left: 6px; top: .5rem; bottom: .5rem; width: 2px; background: color-mix(in srgb, var(--c2) 70%, #fff); transform-origin: top; }
.tl li { position: relative; }
.tl li::before { content: ""; position: absolute; left: calc(-1.8rem + 1px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--c1); }
.tl b { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--c1); }
.tl p { color: var(--muted); margin-top: .15rem; }
.tl-row { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding-left: 0; padding-top: 1.8rem; gap: 1.4rem 1.6rem; }
.tl-row::before { left: 0; right: 0; top: 6px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
.tl-row li::before { left: 0; top: calc(-1.8rem + 1px); }
.grp { font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.6rem; }
.grp strong { font-weight: 600; }

/* itens do acervo */
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.items li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; gap: 1rem; align-items: flex-start; }
.items b { font-family: var(--font-head); font-weight: 300; font-size: 2rem; line-height: 1; color: #b89a45; }

/* contato */
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.info { display: flex; gap: 1.1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.info .ico { flex: none; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in srgb, var(--c2) 35%, #fff); color: var(--c1-dark); }
.info .ico svg { width: 24px; height: 24px; }
.info :is(h2, h3) { font-family: var(--font-body); font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.info :is(h2, h3).mt { margin-top: 1rem; }
.info address { font-style: normal; }
.info p + p { margin-top: .5rem; }
.info .btn { margin-top: .8rem; padding: .55rem 1.2rem; font-size: .92rem; }
.map { margin-top: 1.6rem; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* transparencia */
.emenda { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: 1rem; }
.emenda .sec-title.sm { margin-top: 0; }
.emenda dl { display: grid; gap: .8rem; margin: 0; }
.emenda dl div { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.emenda dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.emenda dt { color: var(--muted); font-size: .95rem; }
.emenda dd { margin: 0; font-weight: 500; color: var(--ink); }
.docs { display: grid; gap: .7rem; }
.docs a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 500; transition: border-color 200ms ease, box-shadow 200ms ease, transform 160ms var(--ease-out); }
.docs svg { width: 26px; height: 26px; color: var(--c1); flex: none; }
.docs span { flex: 1; }
.docs small { font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--c1-dark); background: color-mix(in srgb, var(--c2) 45%, #fff); padding: .2rem .55rem; border-radius: 6px; }
.docs a:active { transform: scale(.99); }
@media (hover: hover) and (pointer: fine) { .docs a:hover { border-color: var(--c1); box-shadow: 0 6px 18px rgba(16, 40, 64, .08); } }

/* perguntas frequentes */
.faq-box summary { font-weight: 600; color: var(--c1-dark); }
.faq-box summary::after { background: color-mix(in srgb, var(--c2) 35%, #fff); color: var(--c1-dark); transition: transform 250ms var(--ease-out); }
.faq-box details[open] summary::after { transform: rotate(180deg); }
.faq-box details[open] { border-color: color-mix(in srgb, var(--c1) 45%, #fff); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-box details[open] .faq-a { animation: faqIn 250ms var(--ease-out); }

/* foto ampliada: abre com um leve zoom */
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
dialog.lightbox[open] img { animation: lbIn 250ms var(--ease-out); }
dialog.lightbox[open]::backdrop { animation: lbFade 250ms ease; }

/* rodape */
.site-footer { background: #1a2330; color: rgba(255, 255, 255, .78); padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem; }
.site-footer .foot-in { display: block; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, .12); margin-bottom: 1.4rem; }
.foot-brand img { height: 74px; width: auto; margin-bottom: 1rem; }
.foot-brand p { max-width: 30ch; font-size: .98rem; }
.foot-nav ul { display: grid; gap: .45rem; }
.foot-nav a, .foot-contact a { color: rgba(255, 255, 255, .85); text-decoration: none; transition: color 200ms ease; }
.foot-contact { display: grid; gap: .7rem; }
.foot-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.foot-contact svg { width: 20px; height: 20px; color: var(--c2); flex: none; margin-top: .2rem; }
@media (hover: hover) and (pointer: fine) { .foot-nav a:hover, .foot-contact a:hover { color: var(--c2); } }
.site-footer .copy { text-align: center; font-size: .88rem; color: rgba(255, 255, 255, .55); }
.fab { transition: transform 160ms var(--ease-out); }
.fab:hover { transform: none; }
.fab:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .fab:hover { transform: scale(1.06); } }

/* revelar ao rolar a pagina (so com JavaScript; sem ele tudo aparece normal) */
.js-reveal [data-r] { opacity: 0; transform: translateY(16px); transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js-reveal [data-r].in { opacity: 1; transform: none; }
.js-reveal .tl[data-line]::before { transform: scaleY(0); transition: transform 1200ms var(--ease-out) 150ms; }
.js-reveal .tl-row[data-line]::before { transform: scaleX(0); }
.js-reveal .tl[data-line].in::before { transform: none; }

@media (max-width: 1020px) { :root { --header-h: 70px; } .brand img { height: 48px; } }
@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-grid img { max-width: 320px; margin-inline: auto; }
  .quote-band blockquote { text-align: center; }
  .items { grid-template-columns: 1fr 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .split.rev > :first-child { order: 0; }
}
@media (max-width: 600px) {
  .items { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .emenda dl div { grid-template-columns: 1fr; gap: .2rem; }
  .hero-btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-r] { transform: none; }
  .hero-bg, .page-hero > img { animation: none; }
}
.intro-t { margin-bottom: 2rem; }
