:root {
  --bg: #f4f0e8;
  --surface: #fffdf8;
  --surface-2: #ebe5da;
  --text: #17231f;
  --muted: #66716b;
  --border: #d8d0c4;
  /* Cores oficiais amostradas diretamente da arte do portal. */
  --green: #374744;
  --green-deep: #16211f;
  --green-soft: #dbe8e3;
  --pink: #db9d90;
  --red: #e42312;
  --cream: #f7f3ec;
  --shadow: 0 18px 55px rgba(19, 37, 31, .10);
  --radius: 22px;
  /* Tipografia: display característico da identidade + texto neutro. */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --green-hover: #45564f;
  --mint: #76c5aa;
}

[data-theme="dark"] {
  --bg: #101713;
  --surface: #18211d;
  --surface-2: #222c27;
  --text: #f3f5f1;
  --muted: #aab5af;
  --border: #3a4844;
  --green-soft: #24403a;
  --mint: #7fd0b4;
  --shadow: 0 18px 55px rgba(0, 0, 0, .30);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #fff; color: #111; border-radius: 8px; transition: top .2s ease; }
.skip-link:focus { top: 12px; }

/* Header */
.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 4.5vw;
  color: #f8f6f1;
  background: rgba(8, 24, 20, .96);
  border-bottom: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; min-width: 0; }
.brand-image {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 4px rgba(216,154,139,.08);
}
.brand-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 48%; display: block; transform: scale(1.12); }
.brand-copy { display: grid; line-height: 1.15; white-space: nowrap; }
.brand-copy strong { font-size: .98rem; letter-spacing: -.01em; }
.brand-copy > span { color: #d5a096; font-size: .73rem; margin-top: 5px; }
.topnav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.topnav a { color: rgba(255,255,255,.78); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; font-weight: 750; transition: color .18s ease; }
.topnav a:hover, .topnav a:focus-visible { color: #fff; }
.topbar-actions { display: flex; align-items: center; justify-self: end; gap: 12px; }
.topbar-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .64rem;
  font-weight: 800;
  transition: transform .18s ease, filter .18s ease;
}
.topbar-cta:hover, .topbar-cta:focus-visible { transform: translateY(-1px); filter: brightness(1.06); }
.icon-button { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.20); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }

main { width: min(1500px, 92vw); margin: 0 auto; }

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(790px, calc(100vh - 78px));
  margin: 0 calc(50% - 50vw);
  padding: clamp(60px, 7vw, 105px) max(4vw, calc((100vw - min(1500px, 92vw)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 90px);
  overflow: hidden;
  background: var(--green);
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 42% 38%, rgba(255,255,255,.06), transparent 34%), linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.16));
}
.hero-shape { position: absolute; z-index: -2; pointer-events: none; }
.hero-shape-left { left: 0; top: 0; bottom: 0; width: 19vw; min-width: 170px; background: var(--pink); clip-path: polygon(0 0, 32% 0, 100% 100%, 0 100%); }
.hero-shape-right { right: 0; top: 0; bottom: 0; width: 20vw; min-width: 180px; background: var(--red); clip-path: polygon(56% 0, 100% 0, 100% 100%, 0 100%); }
.hero-copy { position: relative; z-index: 2; min-width: 0; padding-left: clamp(0px, 5vw, 76px); }
.hero-eyebrow { color: #f0c0b5; }
.eyebrow { margin: 0; color: var(--green); font-size: .72rem; text-transform: uppercase; letter-spacing: .17em; font-weight: 800; }
.exhibition-title { width: min(100%, 890px); margin: 18px auto 0; line-height: 0; }
.title-art { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,.08)); }
.hero-edition {
  width: fit-content;
  margin: 22px auto 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .13em;
  text-align: center;
}
.hero-edition::before, .hero-edition::after { content: ""; display: inline-block; width: clamp(32px, 5vw, 72px); height: 1px; margin: 0 .4em .25em; background: var(--pink); }
.hero-lead { max-width: 660px; margin: 30px 0 0; color: rgba(255,255,255,.83); font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.72; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 30px; }
.primary-button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid var(--pink);
  background: transparent;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .68rem;
  font-weight: 800;
  transition: background .18s ease, color .18s ease;
}
.primary-button:hover, .primary-button:focus-visible { background: var(--pink); color: var(--green-deep); }
.hero-text-link { color: #fff; font-size: .78rem; font-weight: 750; text-decoration: none; }
.hero-text-link span { color: var(--pink); font-size: 1.15em; }
.hero-visual {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(100%, 560px);
  justify-self: end;
  align-self: stretch;
  min-height: 600px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.30);
}
.hero-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; border: 1px solid rgba(255,255,255,.18); pointer-events: none; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-visual figcaption { position: absolute; z-index: 2; left: 18px; bottom: 16px; padding: 7px 10px; background: rgba(7,24,19,.72); color: rgba(255,255,255,.78); font-size: .65rem; letter-spacing: .06em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); margin: 0 auto clamp(42px, 6vw, 86px); position: relative; z-index: 3; }
.stats article { min-height: 116px; padding: 22px 12px; display: grid; place-content: center; gap: 6px; text-align: center; border-right: 1px solid var(--border); }
.stats article:last-child { border-right: 0; }
.stats strong { color: var(--green); font-family: var(--font-display); font-size: clamp(2rem, 3vw, 3rem); font-weight: 500; }
[data-theme="dark"] .stats strong { color: var(--mint); }
.stats span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* Apresentação */
.exhibition-intro {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 7vw, 110px);
  padding: clamp(30px, 5vw, 74px) 0 clamp(58px, 8vw, 104px);
  border-bottom: 1px solid var(--border);
}
.exhibition-intro-heading h2 { max-width: 590px; margin: 11px 0 34px; font-family: var(--font-display); font-size: clamp(2.4rem, 4.8vw, 5rem); font-weight: 500; line-height: .98; letter-spacing: -.04em; }
.exhibition-intro-text { max-width: 820px; align-self: start; }
.exhibition-intro-text p { margin: 0 0 24px; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.88; }
.exhibition-intro-text p:first-child { color: var(--text); font-size: clamp(1.06rem, 1.45vw, 1.23rem); }
.exhibition-facts { display: grid; margin: 0; border-top: 1px solid var(--border); }
.exhibition-facts div { display: grid; grid-template-columns: 112px 1fr; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.exhibition-facts dt { color: var(--red); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.exhibition-facts dd { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.48; }

.themes { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 calc(50% - 50vw); padding: 0 max(4vw, calc((100vw - min(1500px, 92vw)) / 2)); background: var(--cream); color: #17231f; }
.themes article { position: relative; min-height: 230px; padding: 44px clamp(22px, 3vw, 42px); border-right: 1px solid #d8d0c4; }
.themes article:first-child { border-left: 1px solid #d8d0c4; }
.theme-number { display: block; color: var(--pink); font-size: .65rem; letter-spacing: .16em; font-weight: 850; }
.themes h3 { margin: 18px 0 12px; font-family: var(--font-display); font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 500; }
.themes p { margin: 0; color: #65706a; font-size: .85rem; line-height: 1.65; }

/* Filtros e exploração */
.controls { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 13px; align-items: end; padding: 42px 0 24px; }
.controls label { display: grid; gap: 8px; color: var(--muted); font-size: .73rem; }
.controls input, .controls select { width: 100%; min-height: 47px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text); padding: 0 13px; outline: none; }
.controls input:focus, .controls select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(48,78,71,.11); }
.search-field > div { display: flex; align-items: center; min-height: 47px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.search-field > div:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(48,78,71,.11); }
.search-field > div > span { padding-left: 13px; color: var(--muted); }
.search-field input { border: 0; box-shadow: none !important; background: transparent; }
.secondary-button { min-height: 47px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); padding: 0 16px; cursor: pointer; font-size: .78rem; font-weight: 750; }
.secondary-button:hover { border-color: var(--green); }
.explorer { display: grid; grid-template-columns: minmax(430px, .88fr) minmax(0, 1.12fr); gap: 22px; align-items: start; }
.map-panel, .results-panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 30px); }
.map-panel { position: sticky; top: 96px; }
.section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 17px; }
.section-heading h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 500; }
.text-button { border: 0; background: transparent; color: var(--green); font-weight: 800; cursor: pointer; }
[data-theme="dark"] .text-button, [data-theme="dark"] .eyebrow { color: var(--mint); }
.map-container { min-height: 480px; display: grid; place-items: center; }
.map-container svg { width: min(100%, 610px); height: auto; max-height: 620px; overflow: visible; }
.map-container path { stroke: var(--surface); stroke-width: 1.2; cursor: pointer; transition: transform .18s ease, filter .18s ease, fill .18s ease, opacity .18s ease; transform-box: fill-box; transform-origin: center; }
.map-container path:hover, .map-container path:focus { filter: brightness(1.1); transform: translateY(-2px) scale(1.012); outline: none; }
.map-container path.selected { stroke: var(--red); stroke-width: 3; filter: drop-shadow(0 5px 8px rgba(0,0,0,.18)); }
.map-status { min-height: 22px; color: var(--muted); font-size: .84rem; text-align: center; }
.state-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0; }
.state-grid button { border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 9px 6px; cursor: pointer; font-size: .82rem; }
.state-grid button.selected { background: var(--green); color: #fff; border-color: var(--green); }
.legend { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: .72rem; margin-top: 10px; }
.legend i { width: 24px; height: 9px; border-radius: 9px; background: rgba(48,78,71,.2); }
.legend i:nth-of-type(2) { background: rgba(48,78,71,.4); }
.legend i:nth-of-type(3) { background: rgba(48,78,71,.65); }
.legend i:nth-of-type(4) { background: rgba(48,78,71,.95); }
.source-note { color: var(--muted); font-size: .72rem; line-height: 1.55; margin: 18px 0 0; }
.count-badge { min-width: 42px; height: 42px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border-radius: 50%; font-weight: 800; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; min-height: 30px; margin-bottom: 14px; }
.filter-chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 7px 11px; font-size: .75rem; }
.artists-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.artist-card { display: grid; grid-template-columns: 112px minmax(0,1fr); min-height: 146px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--bg); cursor: pointer; padding: 0; text-align: left; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.artist-card:hover, .artist-card:focus-visible { transform: translateY(-3px); border-color: var(--green); box-shadow: 0 12px 25px rgba(21, 42, 33, .1); }
.artist-card img { width: 112px; height: 100%; min-height: 146px; object-fit: cover; background: var(--surface-2); }
.image-placeholder { width: 112px; min-height: 146px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-family: var(--font-display); font-size: 2rem; }
.artist-info { padding: 16px; display: flex; flex-direction: column; min-width: 0; }
.artist-info h3 { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.15; font-weight: 500; margin: 0 0 8px; }
.artist-location { color: var(--muted); font-size: .82rem; margin: 0; }
.artist-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.artist-meta span { padding: 5px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .7rem; color: var(--muted); }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state > span { font-size: 2.4rem; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }

/* Diálogos */
.artist-dialog { width: min(1080px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.artist-dialog::backdrop, .image-dialog::backdrop { background: rgba(6,13,10,.76); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 12px; right: 12px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.dialog-hero { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); min-height: 360px; }
.dialog-cover { min-height: 360px; background: var(--surface-2); }
.dialog-cover img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; }
.dialog-cover .image-placeholder { width: 100%; height: 100%; min-height: 360px; }
.dialog-summary { padding: clamp(32px, 5vw, 66px); display: flex; flex-direction: column; justify-content: center; }
.dialog-summary h2 { margin: 7px 0 15px; font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: .98; font-weight: 500; }
.dialog-summary p { color: var(--muted); line-height: 1.6; }
.dialog-facts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.dialog-facts span { border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; font-size: .78rem; }
.artist-biography { padding: clamp(24px, 4vw, 45px); border-top: 1px solid var(--border); }
.artist-biography h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin: 0 0 14px; }
.artist-biography p {
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.works-section { padding: clamp(24px, 4vw, 45px); border-top: 1px solid var(--border); }
.works-section h3 { font-family: var(--font-display); font-size: 2rem; font-weight: 500; margin: 0 0 18px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.work-card { border: 1px solid var(--border); background: var(--bg); border-radius: 15px; overflow: hidden; }
.work-image-button { display: block; width: 100%; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; }
.work-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; background: var(--surface-2); transition: transform .25s ease; }
.work-image-button:hover img { transform: scale(1.025); }
.work-card > div { padding: 13px; }
.work-card h4 { margin: 0 0 7px; font-family: var(--font-display); font-size: 1.03rem; line-height: 1.25; font-weight: 500; }
.work-card p { margin: 0; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.work-card .work-description { margin-top: 7px; }
.image-dialog { width: min(1280px, 96vw); max-height: 96vh; padding: 0; border: 0; border-radius: 18px; background: #090c0a; color: #fff; box-shadow: 0 35px 110px rgba(0,0,0,.55); }
.image-dialog-close { position: fixed; top: max(14px, 2vw); right: max(14px, 2vw); background: rgba(20,25,22,.78); color: #fff; border-color: rgba(255,255,255,.28); }
.image-dialog figure { margin: 0; min-height: min(820px, 88vh); display: grid; place-items: center; padding: 28px; }
.image-dialog img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; }
.image-dialog figcaption { width: min(900px, 100%); margin-top: 16px; color: rgba(255,255,255,.78); font-size: .82rem; text-align: center; line-height: 1.5; }

footer { width: min(1500px, 92vw); margin: 64px auto 0; padding: 34px 0 48px; border-top: 1px solid var(--border); color: var(--muted); display: flex; align-items: end; justify-content: space-between; gap: 30px; font-size: .78rem; }
footer div { display: grid; gap: 5px; }
footer strong { color: var(--text); font-family: var(--font-display); font-size: 1rem; font-weight: 500; }
footer p { margin: 0; text-align: right; }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr 420px; gap: 38px; }
  .hero-copy { padding-left: 0; }
  .hero-visual { min-height: 560px; }
  .themes { grid-template-columns: repeat(2, 1fr); }
  .themes article:nth-child(2) { border-right: 0; }
  .themes article:nth-child(-n+2) { border-bottom: 1px solid #d8d0c4; }
}

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(100%, 700px); justify-self: center; min-height: 620px; max-height: 760px; }
  .hero-shape-left { width: 26vw; }
  .hero-shape-right { width: 28vw; }
  .exhibition-intro { grid-template-columns: 1fr; gap: 42px; }
  .exhibition-facts { max-width: 620px; }
  .explorer { grid-template-columns: 1fr; }
  .map-panel { position: relative; top: auto; }
  .map-container { min-height: 410px; }
}

@media (max-width: 760px) {
  main { width: min(94vw, 700px); }
  .topbar { min-height: 70px; padding: 0 3vw; }
  .brand-image { width: 44px; height: 44px; }
  .topbar-cta { display: none; }
  .hero { margin-top: 0; padding-left: 5vw; padding-right: 5vw; }
  .hero-shape-left, .hero-shape-right { opacity: .7; }
  .hero-edition { font-size: clamp(1.55rem, 9vw, 2.8rem); letter-spacing: .09em; }
  .hero-edition::before, .hero-edition::after { width: 25px; }
  .hero-visual { min-height: 500px; }
  .stats { margin-left: 0; margin-right: 0; }
  .stats article { padding: 18px 8px; }
  .themes { grid-template-columns: 1fr; }
  .themes article, .themes article:first-child { min-height: 0; border-left: 0; border-right: 0; border-bottom: 1px solid #d8d0c4; }
  .controls { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1/-1; }
  .secondary-button { grid-column: 1/-1; }
  .artists-grid { grid-template-columns: 1fr; }
  .map-container { min-height: 340px; }
  .state-grid { grid-template-columns: repeat(4,1fr); }
  .dialog-hero { grid-template-columns: 1fr; }
  .dialog-cover { min-height: 280px; max-height: 360px; }
  .dialog-summary { padding: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  footer { align-items: start; flex-direction: column; }
  footer p { text-align: left; }
}

@media (max-width: 500px) {
  .brand-copy > span { display: none; }
  .brand-copy strong { font-size: .9rem; }
  .icon-button { width: 38px; height: 38px; }
  .hero { padding-top: 48px; gap: 34px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-text-link { text-align: center; }
  .hero-visual { min-height: 420px; }
  .stats { grid-template-columns: 1fr; border: 0; gap: 8px; background: transparent; box-shadow: none; }
  .stats article { border: 1px solid var(--border) !important; background: var(--surface); border-radius: 12px; grid-template-columns: auto 1fr; align-items: center; text-align: left; padding: 10px 15px; }
  .stats strong { font-size: 1.6rem; }
  .exhibition-facts div { grid-template-columns: 92px 1fr; }
  .controls { grid-template-columns: 1fr; }
  .controls > * { grid-column: auto !important; }
  .artist-card { grid-template-columns: 92px minmax(0,1fr); }
  .artist-card img, .image-placeholder { width: 92px; }
  .gallery { grid-template-columns: 1fr; }
  .state-grid { grid-template-columns: repeat(3,1fr); }
  .image-dialog figure { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Mantém a legenda da abertura legível em qualquer tema. */
.hero .hero-eyebrow { color: #efc0b5; }

/* ==========================================================
   AJUSTES SOLICITADOS — JULHO/2026
   ========================================================== */
.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
}

.brand-copy strong {
  font-size: clamp(.86rem, 1.1vw, 1rem);
}

.topnav {
  justify-self: end;
}

.topnav .icon-button {
  margin-left: 4px;
  flex: 0 0 auto;
}

.hero-copy {
  align-self: center;
}

.hero-edition {
  width: min(78%, 690px);
  margin: clamp(12px, 2vw, 22px) auto 0;
  line-height: 0;
  display: block;
}

.hero-edition::before,
.hero-edition::after {
  display: none;
}

.edition-art {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.05));
}

.hero-lead {
  color: #081410;
  font-weight: 800;
  letter-spacing: -.012em;
  background: rgba(247, 243, 236, .82);
  border-left: 4px solid var(--pink);
  padding: 16px 18px;
  max-width: 690px;
  box-shadow: 0 10px 30px rgba(5, 19, 15, .10);
}

.secondary-hero-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--pink);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: .68rem;
  font-weight: 850;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.secondary-hero-button:hover,
.secondary-hero-button:focus-visible {
  background: var(--pink);
  color: var(--green-deep);
  transform: translateY(-1px);
}

.themes article {
  padding-top: 50px;
}

/* Agendamento */
.visit-scheduling {
  margin: clamp(54px, 7vw, 96px) calc(50% - 50vw) 0;
  padding: clamp(38px, 5vw, 68px) max(4vw, calc((100vw - min(1500px, 92vw)) / 2));
  display: grid;
  grid-template-columns: auto minmax(270px, .92fr) minmax(320px, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 58px);
  color: #101815;
  background:
    linear-gradient(120deg, rgba(255,255,255,.16), transparent 50%),
    var(--pink);
  border-top: 1px solid rgba(15, 33, 29, .22);
  border-bottom: 1px solid rgba(15, 33, 29, .22);
}

.visit-icon {
  width: clamp(72px, 7vw, 98px);
  height: clamp(72px, 7vw, 98px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: var(--pink);
  box-shadow: 0 16px 36px rgba(15,33,29,.18);
}

.visit-icon svg {
  width: 52%;
  height: 52%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visit-scheduling .eyebrow {
  color: #173129;
}

.visit-scheduling h2 {
  margin: 8px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  line-height: .96;
  font-weight: 500;
}

.visit-scheduling p {
  margin: 0;
  max-width: 650px;
  font-size: .92rem;
  line-height: 1.7;
}

.visit-email-link,
.visit-site-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #081410;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.visit-sesc {
  padding-left: clamp(24px, 4vw, 54px);
  border-left: 1px solid rgba(15, 33, 29, .42);
}

.visit-sesc small {
  display: block;
  margin-top: 10px;
  color: rgba(8,20,16,.72);
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topnav { display: flex; }
  .visit-scheduling { grid-template-columns: auto 1fr; }
  .visit-sesc { grid-column: 2; padding: 24px 0 0; border-left: 0; border-top: 1px solid rgba(15, 33, 29, .32); }
}

@media (max-width: 900px) {
  .topnav a { display: none; }
  .topnav { gap: 0; }
  .hero-edition { width: min(88%, 620px); }
}

@media (max-width: 760px) {
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .secondary-hero-button { width: auto; }
  .visit-scheduling {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .visit-icon { justify-self: start; }
  .visit-sesc { grid-column: auto; }
}

@media (max-width: 500px) {
  .brand-copy { white-space: normal; }
  .brand-copy > span { display: block; }
  .brand-copy strong { font-size: .78rem; }
  .brand-copy > span { font-size: .66rem; }
  .brand { gap: 9px; }
  .brand-image { width: 40px; height: 40px; }
  .hero-edition { width: 96%; }
  .secondary-hero-button { width: 100%; }
}

/* Refinamentos finais — identidade visual e miniatura da obra */
.brand-image {
  width: clamp(150px, 17vw, 225px);
  height: 54px;
  border-radius: 2px;
  box-shadow: none;
}
.brand-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 28%;
  transform: scale(1.12);
}
.brand-copy strong { font-size: 1rem; }
.topbar { grid-template-columns: minmax(330px, 1fr) auto minmax(42px, 1fr); }
.topnav { grid-column: 2; }
.topnav .icon-button { position: absolute; right: 4.5vw; }

.hero-lead {
  background: transparent;
  border-left: 0;
  padding: 0;
  box-shadow: none;
  color: #07110e;
  font-weight: 850;
}

.themes {
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
  background:
    linear-gradient(180deg, rgba(15,33,29,.92), rgba(25,52,44,.96)),
    var(--green);
  color: #f7f3ec;
}
.themes article,
.themes article:first-child {
  min-height: 176px;
  padding: 32px clamp(24px, 3vw, 42px);
  border: 1px solid rgba(247,243,236,.20);
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 34px rgba(5,18,14,.18);
}
.themes h3 { margin-top: 0; color: #fff; }
.themes p { color: rgba(255,255,255,.82); }

.visit-site-link {
  padding: 14px 18px;
  border: 1px solid rgba(8,20,16,.70);
  text-decoration: none;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.visit-site-link:hover,
.visit-site-link:focus-visible {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-1px);
}

.back-to-top {
  position: fixed;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 42px);
  z-index: 35;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(8,24,20,.92);
  color: #fff;
  text-decoration: none;
  font-size: 1.45rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}
.back-to-top:hover,
.back-to-top:focus-visible { background: var(--red); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topnav { grid-column: auto; }
  .topnav .icon-button { position: static; }
}
@media (max-width: 760px) {
  .brand-image { width: 112px; height: 42px; }
  .themes { gap: 10px; }
}
@media (max-width: 500px) {
  .brand-image { width: 86px; height: 38px; }
  .back-to-top { width: 46px; height: 46px; }
}

/* ==========================================================
   AJUSTES FINAIS — CABEÇALHO/AGENDAMENTO
   ========================================================== */
.topbar {
  min-height: 82px;
  padding-left: clamp(14px, 1.4vw, 24px);
  padding-right: clamp(18px, 4.5vw, 72px);
  background-image:
    linear-gradient(rgba(5, 24, 19, .70), rgba(5, 24, 19, .70)),
    url("../images/cabecalho-rafael-prado.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #8f6f12;
  backdrop-filter: none;
  box-shadow: 0 8px 28px rgba(4, 17, 13, .18);
}

.brand {
  gap: 0;
  margin: 0;
  justify-self: start;
  align-self: center;
}

.brand-copy {
  padding: 8px 12px 8px 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.68);
}

.brand-copy strong {
  color: #fff;
  font-size: clamp(.9rem, 1.1vw, 1.05rem);
}

.brand-copy > span {
  color: #f3c1b5;
}

.topnav {
  justify-self: center;
}

.schedule-title {
  width: min(100%, 620px);
  margin: 8px 0 14px !important;
  line-height: 0 !important;
}

.schedule-title img {
  display: block;
  width: min(100%, 560px);
  height: auto;
}

.visit-site-link {
  min-width: min(100%, 260px);
  justify-content: center;
  text-align: center;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-right: 3vw;
  }
  .topnav { justify-self: end; }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 76px;
    padding-left: 14px;
    background-position: 52% center;
  }
  .brand-copy { padding-right: 6px; }
  .schedule-title img { width: min(100%, 480px); }
}

/* ==========================================================
   AJUSTES DE IDENTIDADE — CABEÇALHO, ESTATÍSTICAS E CONTATO
   ========================================================== */
.topbar {
  min-height: 84px;
  padding-left: clamp(12px, 1.35vw, 22px);
  background-image:
    radial-gradient(circle at 10% 50%, rgba(216,154,139,.22), transparent 28%),
    radial-gradient(circle at 88% 40%, rgba(242,29,13,.10), transparent 24%),
    linear-gradient(118deg, rgba(255,255,255,.035) 0 16%, transparent 16% 64%, rgba(216,154,139,.055) 64% 100%),
    linear-gradient(90deg, #0f211d 0%, #234139 48%, #0f211d 100%);
  background-size: 120% 120%, 140% 140%, 180% 100%, 100% 100%;
  background-position: 0 50%, 100% 50%, 0 0, 0 0;
  animation: topbarGlow 16s ease-in-out infinite alternate;
  border-bottom-color: rgba(216,154,139,.28);
  box-shadow: 0 10px 30px rgba(4,17,13,.24);
}

@keyframes topbarGlow {
  from { background-position: 0 50%, 100% 50%, 0 0, 0 0; }
  to   { background-position: 10% 45%, 90% 55%, 100% 0, 0 0; }
}

.brand {
  gap: 11px;
  min-width: 0;
}

.brand-home-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  background: rgba(255,255,255,.065);
  color: #fff;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.brand-home-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand:hover .brand-home-icon,
.brand:focus-visible .brand-home-icon {
  transform: translateY(-1px);
  background: var(--pink);
  border-color: var(--pink);
  color: var(--green-deep);
}

.brand-copy {
  min-width: 0;
  padding: 7px 0;
  gap: 2px;
}

.brand-title-art {
  display: block;
  width: clamp(205px, 20vw, 315px);
  height: auto;
  max-height: 30px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 9px rgba(0,0,0,.35));
}

.brand-copy > span:not(.sr-only) {
  margin-top: 1px;
  color: #efb4a8;
  font-size: clamp(.62rem, .72vw, .72rem);
  letter-spacing: .015em;
  text-transform: lowercase;
}

.hero .hero-eyebrow {
  color: #07110e;
}

.stats article:nth-child(2) span {
  color: var(--text);
  font-weight: 800;
}

.visit-email-link,
.visit-site-link {
  min-height: 50px;
  padding: 14px 18px;
  border: 1px solid rgba(8,20,16,.70);
  text-decoration: none;
  justify-content: center;
  text-align: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.visit-email-link:hover,
.visit-email-link:focus-visible,
.visit-site-link:hover,
.visit-site-link:focus-visible {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .topbar { animation-duration: 20s; }
  .brand-title-art { width: clamp(190px, 24vw, 270px); }
}

@media (max-width: 760px) {
  .topbar { min-height: 76px; }
  .brand-home-icon { width: 34px; height: 34px; }
  .brand-title-art { width: clamp(170px, 42vw, 235px); max-height: 25px; }
}

@media (max-width: 500px) {
  .brand { gap: 8px; }
  .brand-home-icon { width: 32px; height: 32px; }
  .brand-title-art { width: min(54vw, 190px); }
  .brand-copy > span:not(.sr-only) { font-size: .59rem; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar { animation: none; }
}


/* ==========================================================
   REFINAMENTOS FINAIS — CABEÇALHO, LEGENDA E LISTA DE ARTISTAS
   ========================================================== */
.topbar {
  background-color: #cc2417;
  background-image:
    radial-gradient(circle at 11% 42%, rgba(255, 205, 190, .25), transparent 24%),
    radial-gradient(circle at 88% 52%, rgba(95, 8, 5, .24), transparent 28%),
    linear-gradient(118deg, rgba(255,255,255,.10) 0 11%, transparent 11% 58%, rgba(83,8,5,.13) 58% 100%),
    linear-gradient(90deg, #b91d13 0%, #e53220 45%, #c51f14 100%);
  background-size: 120% 140%, 145% 140%, 190% 100%, 100% 100%;
  background-position: 0 50%, 100% 50%, 0 0, 0 0;
  border-bottom-color: rgba(255, 224, 215, .38);
  box-shadow: 0 10px 30px rgba(92, 10, 6, .30);
}

@keyframes topbarGlow {
  from { background-position: 0 50%, 100% 50%, 0 0, 0 0; }
  to   { background-position: 10% 45%, 90% 55%, 100% 0, 0 0; }
}

.brand-title-art {
  width: clamp(220px, 21vw, 330px);
  max-height: 36px;
  opacity: 1;
  filter:
    drop-shadow(0 1px 0 rgba(87, 8, 5, .55))
    drop-shadow(0 3px 11px rgba(74, 6, 4, .45));
}

.brand-copy > span:not(.sr-only) {
  color: #fff0eb;
  text-shadow: 0 1px 8px rgba(72, 6, 4, .48);
}

.brand-home-icon {
  background: rgba(83, 7, 4, .18);
  border-color: rgba(255,255,255,.42);
}

.brand-home-icon svg {
  stroke-width: 2;
}

.brand:hover .brand-home-icon,
.brand:focus-visible .brand-home-icon {
  background: #f1b0a2;
  border-color: #f1b0a2;
  color: #45100b;
}

.topnav a {
  color: rgba(255,255,255,.92);
  text-shadow: 0 1px 7px rgba(73, 6, 4, .40);
}

.icon-button {
  background: rgba(75, 7, 4, .18);
  border-color: rgba(255,255,255,.42);
}

.hero .hero-eyebrow,
.hero-lead {
  color: #07110e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 690px;
  margin: 28px 0 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.stats span,
.stats article:nth-child(2) span {
  color: var(--text);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* A lista dos 125 artistas passa a ter rolagem própria. A página só rola
   normalmente quando o ponteiro está fora desta caixa. */
.results-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.results-panel .section-heading,
.results-panel .active-filters,
.results-panel .empty-state {
  flex: 0 0 auto;
}

.artists-grid {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  padding-right: 7px;
  outline: none;
}

.artists-grid:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(48, 78, 71, .38);
  border-radius: 12px;
}

.artists-grid::-webkit-scrollbar { width: 10px; }
.artists-grid::-webkit-scrollbar-track { background: var(--surface-2); border-radius: 999px; }
.artists-grid::-webkit-scrollbar-thumb { background: var(--green); border: 2px solid var(--surface-2); border-radius: 999px; }

@media (max-width: 980px) {
  .results-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .artists-grid {
    max-height: 72vh;
    overflow-y: auto;
  }
}

@media (max-width: 760px) {
  .brand-title-art { width: clamp(185px, 46vw, 250px); max-height: 30px; }
  .hero .hero-eyebrow,
  .hero-lead { font-size: .68rem; letter-spacing: .13em; }
}

@media (max-width: 500px) {
  .brand-title-art { width: min(57vw, 205px); max-height: 27px; }
}

.results-panel .artists-grid {
  flex: 1 1 auto;
}


/* ==========================================================
   V7 — AJUSTES DE COR, HIERARQUIA E AGENDAMENTO
   ========================================================== */
:root {
  --header-red: #e42312;
  --header-red-bright: #f02b18;
  --header-red-deep: #b9130b;
}

/* Vermelho oficial mais intenso, amostrado da arte da exposição. */
.topbar {
  background-color: var(--header-red);
  background-image:
    radial-gradient(circle at 8% 50%, rgba(255, 224, 215, .30), transparent 25%),
    radial-gradient(circle at 90% 45%, rgba(92, 4, 2, .25), transparent 28%),
    linear-gradient(118deg, rgba(255,255,255,.12) 0 10%, transparent 10% 60%, rgba(95,4,2,.15) 60% 100%),
    linear-gradient(90deg, var(--header-red-deep) 0%, var(--header-red-bright) 44%, var(--header-red) 72%, #ce190e 100%);
  border-bottom-color: rgba(255, 235, 228, .44);
  box-shadow: 0 10px 30px rgba(103, 9, 4, .34);
}

/* Move o conjunto textual da abertura levemente para cima. */
.hero-copy {
  transform: translateY(-30px);
}

/* Todos os parágrafos da apresentação passam a ter exatamente o
   mesmo tratamento tipográfico do primeiro parágrafo. */
.exhibition-intro-text p,
.exhibition-intro-text p:first-child {
  color: var(--text);
  font-size: clamp(1.06rem, 1.45vw, 1.23rem);
  font-family: inherit;
  line-height: 1.88;
}

.exhibition-visit-link {
  color: var(--green);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.exhibition-visit-link:hover,
.exhibition-visit-link:focus-visible {
  color: var(--red);
}

#emailAgendamento {
  scroll-margin-top: 120px;
}

/* Alinha os dois botões da área de agendamento na mesma base. */
.visit-email,
.visit-sesc {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.visit-email-link,
.visit-site-link {
  margin-top: auto;
}

/* Ícone autoral da temporada: 6/maio — 12/outubro. */
.visit-date-icon {
  width: clamp(92px, 8.5vw, 126px);
  height: clamp(92px, 8.5vw, 126px);
  padding: 13px 12px 11px;
  border-radius: 24px 24px 42px 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #f5b0a1;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), transparent 52%),
    var(--green-deep);
  border: 1px solid rgba(8,20,16,.22);
  box-shadow: 0 16px 36px rgba(15,33,29,.20), inset 0 1px 0 rgba(255,255,255,.10);
  transform: rotate(-1.5deg);
}

.date-icon-kicker,
.date-icon-year {
  font-size: clamp(.42rem, .48vw, .56rem);
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.date-icon-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: .95;
}

.date-icon-row strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.85rem);
  font-weight: 500;
}

.date-icon-row em {
  color: #f5b0a1;
  font-size: clamp(.62rem, .7vw, .78rem);
  font-style: normal;
  font-weight: 800;
  letter-spacing: .02em;
}

.date-icon-line {
  width: 72%;
  height: 1px;
  margin: 2px 0;
  background: linear-gradient(90deg, transparent, #f5b0a1, transparent);
}

.date-icon-year {
  margin-top: 2px;
  color: rgba(255,255,255,.72);
}

@media (max-width: 980px) {
  .hero-copy { transform: translateY(-14px); }
}

@media (max-width: 760px) {
  .hero-copy { transform: none; }
  .visit-date-icon { width: 104px; height: 104px; }
}


/* ==========================================================
   V8 — REFINAMENTOS SOLICITADOS
   ========================================================== */

/* Cabeçalho no vermelho oficial da arte (#e42312), com leve modelagem de luz. */
.topbar {
  background-color: var(--red);
  background-image:
    radial-gradient(circle at 8% 45%, rgba(255, 221, 211, .30), transparent 24%),
    radial-gradient(circle at 91% 48%, rgba(112, 4, 0, .24), transparent 29%),
    linear-gradient(118deg, rgba(255,255,255,.12) 0 10%, transparent 10% 61%, rgba(102,5,1,.14) 61% 100%),
    linear-gradient(90deg, #c81c0e 0%, #ee2a17 46%, var(--red) 74%, #cf1d0f 100%);
  border-bottom-color: rgba(255, 241, 235, .52);
  box-shadow: 0 10px 32px rgba(120, 12, 5, .34);
}

/* Sobe mais o bloco completo da abertura. */
.hero-copy {
  transform: translateY(-58px);
}

/* A frase continua sendo um link, mas permanece visualmente idêntica
   ao restante do parágrafo. */
.exhibition-visit-link,
.exhibition-visit-link:visited,
.exhibition-visit-link:hover,
.exhibition-visit-link:focus-visible,
.exhibition-visit-link:active {
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.exhibition-visit-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Caixas com cantos arredondados no mesmo espírito dos cartões de artistas. */
.primary-button,
.secondary-hero-button,
.visit-email-link,
.visit-site-link {
  border-radius: 16px;
}

/* Remove qualquer reserva visual deixada pelo rótulo excluído do ícone. */
.visit-date-icon {
  justify-content: center;
  gap: 2px;
}

@media (max-width: 980px) {
  .hero-copy { transform: translateY(-32px); }
}

@media (max-width: 760px) {
  .hero-copy { transform: translateY(-12px); }
}

@media (max-width: 500px) {
  .hero-copy { transform: none; }
}


/* ==========================================================
   V9 — CARTÕES TEMÁTICOS E NAVEGAÇÃO EM CÁPSULAS
   ========================================================== */

/* Os quatro eixos passam a usar o mesmo acabamento arredondado
   dos cartões de artistas, mantendo a transparência conceitual. */
.themes {
  gap: clamp(12px, 1.5vw, 20px);
  padding-top: clamp(18px, 2.2vw, 30px);
  padding-bottom: clamp(18px, 2.2vw, 30px);
}

.themes article,
.themes article:first-child {
  min-height: 176px;
  border: 1px solid rgba(247, 243, 236, .22);
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.045));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 12px 28px rgba(5,18,14,.18);
}

/* Pequenas cápsulas verde-musgo para os três itens do cabeçalho. */
.topnav {
  gap: clamp(9px, 1.25vw, 16px);
}

.topnav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid rgba(239, 226, 210, .23);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    var(--green);
  color: #fff8f3;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 5px 14px rgba(54, 15, 8, .18);
  text-shadow: 0 1px 5px rgba(0,0,0,.28);
  transition:
    transform .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #fff;
  background-color: var(--green-hover);
  border-color: rgba(255,255,255,.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 8px 18px rgba(54,15,8,.24);
  transform: translateY(-1px);
}

.topnav a:focus-visible {
  outline: 2px solid #fff5ee;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .themes article,
  .themes article:first-child {
    border-radius: 16px;
  }
}


/* ==========================================================
   V10 — VERDE OFICIAL NAS CÁPSULAS DO CABEÇALHO
   Cor-base amostrada diretamente do campo verde da arte oficial.
   ========================================================== */
.topnav a {
  background-color: var(--green);
}

.topnav a:hover,
.topnav a:focus-visible {
  background-color: var(--green-hover);
}


/* ==========================================================
   V11 — CONTROLES SIMÉTRICOS, MODO NOTURNO PADRÃO E HERO ALINHADA
   ========================================================== */

/* O menu permanece rigorosamente centralizado. Os dois controles externos
   ocupam a mesma posição em relação às bordas e têm dimensões idênticas. */
.topbar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  padding-left: clamp(14px, 2vw, 30px);
  padding-right: clamp(14px, 2vw, 30px);
}

.topbar-left {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
}

.brand {
  min-width: 0;
  gap: 0;
}

.topnav {
  grid-column: 2;
  justify-self: center;
}

.theme-control {
  grid-column: 3;
  justify-self: end;
}

/* Mesma linguagem visual das cápsulas centrais, aplicada aos controles. */
.header-control,
.icon-button.header-control {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  border: 1px solid rgba(239, 226, 210, .23);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    var(--green);
  color: #fff8f3;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 5px 14px rgba(54,15,8,.18);
  text-decoration: none;
  text-shadow: 0 1px 5px rgba(0,0,0,.28);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}

.header-control svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-control:hover,
.header-control:focus-visible,
.icon-button.header-control:hover,
.icon-button.header-control:focus-visible {
  color: #fff;
  background-color: var(--green-hover);
  border-color: rgba(255,255,255,.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 8px 18px rgba(54,15,8,.24);
  transform: translateY(-1px);
}

.header-control:focus-visible {
  outline: 2px solid #fff5ee;
  outline-offset: 3px;
}

/* O início do texto e o início da fotografia agora compartilham a mesma linha. */
.hero {
  align-items: start;
}

.hero-copy,
.hero-visual {
  align-self: start;
}

.hero-copy {
  transform: none;
}

/* O modo noturno é a apresentação inicial; no escuro, o controle oferece
   explicitamente a ação de “acender a luz”. */
[data-theme="dark"] .theme-control {
  color: #fff4c9;
}

[data-theme="light"] .theme-control {
  color: #fff8f3;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  .topnav { grid-column: 2; justify-self: center; }
  .theme-control { grid-column: 3; }
}

@media (max-width: 900px) {
  .topbar { gap: 10px; }
  .topnav { min-width: 0; }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 76px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar-left { gap: 8px; }
  .header-control,
  .icon-button.header-control {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-basis: 38px;
  }
  .header-control svg { width: 17px; height: 17px; }
}

@media (max-width: 500px) {
  .brand-title-art { width: min(45vw, 175px); }
  .brand-copy > span:not(.sr-only) { font-size: .56rem; }
}

/* ==========================================================
   V12 — EIXOS TEMÁTICOS COM O MESMO DESENHO DO RESUMO NUMÉRICO
   ========================================================== */
.themes {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.themes article,
.themes article:first-child {
  min-height: 176px;
  padding: 28px clamp(22px, 3vw, 42px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.themes article:last-child {
  border-right: 0;
}

.themes h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  line-height: 1.05;
  font-weight: 500;
}

[data-theme="dark"] .themes h3 {
  color: var(--mint);
}

.themes p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .themes {
    grid-template-columns: repeat(2, 1fr);
  }

  .themes article,
  .themes article:first-child {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .themes article:nth-child(2n) {
    border-right: 0;
  }

  .themes article:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .themes {
    grid-template-columns: 1fr;
  }

  .themes article,
  .themes article:first-child,
  .themes article:nth-child(2n),
  .themes article:nth-last-child(-n+2) {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .themes article:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================
   V13 — ARTE OFICIAL DO TÍTULO
   Substitui o lockup anterior pela composição integral enviada.
   ========================================================== */
.exhibition-title-official {
  width: min(100%, 760px);
  margin: clamp(10px, 1.5vw, 18px) auto 0;
}

.title-art-official {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .10));
}

@media (max-width: 980px) {
  .exhibition-title-official {
    width: min(94%, 720px);
  }
}

@media (max-width: 500px) {
  .exhibition-title-official {
    width: 100%;
  }
}

/* ==========================================================
   V14 — MARCA TRANSPARENTE E FAIXA FINAL COM DIAGONAIS
   ========================================================== */

/* A marca enviada é aplicada como PNG transparente, mantendo o campo
   verde e os efeitos próprios da abertura visíveis por trás do lettering. */
.exhibition-title-official {
  width: min(100%, 740px);
  margin: clamp(8px, 1.25vw, 16px) auto 0;
}

.title-art-official {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .14));
}

/* A faixa de agendamento incorpora as diagonais da identidade oficial:
   verde profundo à esquerda, rosa no campo central e vermelho vivo à direita. */
.visit-scheduling {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(118deg,
      rgba(255, 255, 255, .16) 0 22%,
      transparent 22.2% 66%,
      rgba(48, 73, 67, .13) 66.2% 71%,
      transparent 71.2%),
    var(--pink);
}

.visit-scheduling::before,
.visit-scheduling::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
}

.visit-scheduling::before {
  left: 0;
  width: clamp(86px, 12vw, 190px);
  background: var(--green);
  clip-path: polygon(0 0, 34% 0, 100% 100%, 0 100%);
}

.visit-scheduling::after {
  right: 0;
  width: clamp(110px, 15vw, 230px);
  background: var(--red);
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 0 100%);
}

.visit-scheduling > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .exhibition-title-official { width: min(92%, 650px); }
  .visit-scheduling::before { opacity: .82; }
  .visit-scheduling::after { opacity: .88; }
}

@media (max-width: 620px) {
  .exhibition-title-official { width: 100%; }
  .visit-scheduling::before { width: 72px; opacity: .48; }
  .visit-scheduling::after { width: 88px; opacity: .64; }
}


/* ==========================================================
   V15 — TIPOGRAFIA DISPLAY E FIDELIDADE À ARTE OFICIAL
   Fraunces assume os títulos (antes em Georgia genérica);
   paleta corrigida para as cores exatas do portal;
   diagonais do hero reconstruídas em paralelo, como na arte.
   ========================================================== */

/* Renderização de alto contraste do display, com eixo óptico ativo. */
.exhibition-intro-heading h2,
.section-heading h2,
.themes h3,
.dialog-summary h2,
.works-section h3,
.artist-biography h3,
.work-card h4,
.artist-info h3,
.visit-scheduling h2,
.stats strong,
footer strong {
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  letter-spacing: -.005em;
}

/* Títulos maiores ganham o eixo óptico display cheio e mais peso,
   já que a Fraunces em 500 é mais leve que a Georgia que substitui. */
.exhibition-intro-heading h2,
.dialog-summary h2 {
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.025em;
}

.section-heading h2,
.works-section h3 {
  font-weight: 600;
}

.themes h3 {
  font-weight: 600;
}

.stats strong {
  font-weight: 600;
  font-variation-settings: "opsz" 120;
}

/* Números do resumo mais próximos do verde da arte, sem esverdear demais no escuro. */

/* Grafismo diagonal do hero, fiel ao portal: três faixas paralelas de
   mesma inclinação — rosa à esquerda, verde ao centro, vermelho à direita.
   Reconstruído com dois quadriláteros paralelos sobre o campo verde, em vez
   dos dois triângulos de ângulos distintos da versão anterior. */
.hero { background: var(--green); }

.hero-shape-left {
  left: 0;
  top: 0;
  bottom: 0;
  width: 42vw;
  min-width: 260px;
  background: var(--pink);
  clip-path: polygon(0 0, 34% 0, 0 100%);
}

.hero-shape-right {
  right: 0;
  top: 0;
  bottom: 0;
  width: 42vw;
  min-width: 260px;
  background: var(--red);
  clip-path: polygon(100% 0, 100% 100%, 66% 100%);
}

/* A faixa de agendamento herda o mesmo ângulo do hero, para leitura contínua. */
.visit-scheduling::before {
  clip-path: polygon(0 0, 34% 0, 0 100%);
}

.visit-scheduling::after {
  clip-path: polygon(100% 0, 100% 100%, 66% 100%);
}

/* Marca do título em alta resolução: sombra discreta apenas para firmar
   o lettering branco sobre o campo verde. */
.title-art-official {
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.22));
}

@media (max-width: 980px) {
  .hero-shape-left { width: 34vw; }
  .hero-shape-right { width: 34vw; }
}

@media (max-width: 620px) {
  .hero-shape-left { width: 40vw; min-width: 120px; opacity: .9; }
  .hero-shape-right { width: 40vw; min-width: 120px; opacity: .9; }
}


/* V16 — biografias dos artistas */
@media (max-width: 600px) {
  .artist-biography { padding: 24px 22px; }
  .artist-biography h3 { font-size: 1.7rem; }
  .artist-biography p { font-size: .96rem; line-height: 1.72; text-align: justify; }
}

/* ==========================================================
   V18 — CONTROLE MUSICAL E BOTÕES CIRCULARES UNIFICADOS
   O novo player usa a paleta oficial e repete o trecho a partir de 1:20.
   ========================================================== */
:root {
  --round-control-size: 44px;
  --round-control-icon-size: 19px;
}

.header-control,
.icon-button.header-control,
.back-to-top {
  width: var(--round-control-size);
  height: var(--round-control-size);
  min-width: var(--round-control-size);
  min-height: var(--round-control-size);
}

.music-control {
  position: relative;
}

.music-control::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(219, 157, 144, .45);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.music-control.is-playing {
  color: #ffe5dc;
  border-color: rgba(219, 157, 144, .72);
}

.music-control.is-playing::after {
  opacity: 1;
  transform: scale(1);
  background: var(--mint);
  animation: music-control-pulse 1.6s ease-out infinite;
}

@keyframes music-control-pulse {
  0% { box-shadow: 0 0 0 0 rgba(127, 208, 180, .46); }
  70% { box-shadow: 0 0 0 7px rgba(127, 208, 180, 0); }
  100% { box-shadow: 0 0 0 0 rgba(127, 208, 180, 0); }
}

.back-to-top {
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(239, 226, 210, .23);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,0)),
    var(--green);
  color: #fff8f3;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 20px rgba(54,15,8,.22);
  transition: transform .18s ease, background-color .18s ease,
              border-color .18s ease, box-shadow .18s ease;
}

.back-to-top svg {
  width: var(--round-control-icon-size);
  height: var(--round-control-icon-size);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #fff;
  background-color: var(--green-hover);
  border-color: rgba(255,255,255,.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 10px 22px rgba(54,15,8,.28);
  transform: translateY(-1px);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  :root {
    --round-control-size: 38px;
    --round-control-icon-size: 17px;
  }

  .music-control::after {
    right: 5px;
    bottom: 5px;
    width: 5px;
    height: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-control.is-playing::after {
    animation: none;
  }
}



/* ==========================================================
   V19 — VINIL ANIMADO, VOLUME SUAVE E MARGENS DIREITAS IGUAIS
   ========================================================== */
:root {
  --right-control-gutter: clamp(14px, 2vw, 30px);
}

/* O controle do tema e o botão flutuante compartilham exatamente
   a mesma distância em relação à borda direita da janela. */
.topbar {
  padding-right: var(--right-control-gutter);
}

.back-to-top {
  right: var(--right-control-gutter);
}

/* Vinil desenhado apenas com CSS para manter nitidez em qualquer tela. */
.music-control::after {
  display: none;
}

.vinyl-disc {
  position: relative;
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at center,
      #f4dfd7 0 7%,
      var(--red) 8% 22%,
      #171d1b 23% 31%,
      rgba(255,255,255,.22) 32% 34%,
      #111715 35% 48%,
      rgba(255,255,255,.16) 49% 51%,
      #101513 52% 65%,
      rgba(255,255,255,.12) 66% 68%,
      #0b100f 69% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.24),
    0 2px 5px rgba(0,0,0,.32);
  transform-origin: 50% 50%;
}

.vinyl-disc::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.035),
    0 0 0 5px rgba(255,255,255,.025);
}

.vinyl-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff8f3;
  box-shadow: 0 0 0 1px rgba(55,71,68,.38);
  transform: translate(-50%, -50%);
}

.music-control.is-playing .vinyl-disc {
  animation: vinyl-spin 2.4s linear infinite;
}

.music-control.is-playing {
  color: #fff8f3;
  border-color: rgba(219,157,144,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 3px rgba(219,157,144,.12),
    0 8px 18px rgba(54,15,8,.24);
}

@keyframes vinyl-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  :root {
    --right-control-gutter: 12px;
  }

  .vinyl-disc {
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-control.is-playing .vinyl-disc {
    animation: none;
  }
}


/* ==========================================================
   V20 — ÍCONE DE VINIL EM CONTORNO E ALINHAMENTO REFINADO DOS CONTROLES
   ========================================================== */
.topbar {
  align-items: center;
}

.topbar > * {
  align-self: center;
}

.topbar-left {
  display: grid;
  grid-template-columns: var(--round-control-size) minmax(0, 1fr);
  align-items: center;
  column-gap: 11px;
}

.music-control,
.theme-control {
  align-self: center;
}

.music-control {
  justify-self: start;
}

.theme-control {
  justify-self: end;
}

.music-control::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(219, 157, 144, .42);
  opacity: 0;
  transform: scale(.72);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.music-control .vinyl-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  transform-origin: 50% 50%;
}

.music-control .vinyl-icon circle:first-child {
  stroke-width: 1.8;
}

.music-control.is-playing {
  color: #fff4ee;
  border-color: rgba(219,157,144,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 0 0 3px rgba(219,157,144,.12),
    0 8px 18px rgba(54,15,8,.24);
}

.music-control.is-playing::after {
  opacity: 1;
  transform: scale(1);
  background: var(--mint);
  animation: music-control-pulse 1.6s ease-out infinite;
}

.music-control.is-playing .vinyl-icon {
  animation: vinyl-spin 2.4s linear infinite;
}

@media (max-width: 760px) {
  .topbar-left {
    grid-template-columns: var(--round-control-size) minmax(0, 1fr);
    column-gap: 8px;
  }

  .music-control .vinyl-icon {
    width: 20px;
    height: 20px;
  }

  .music-control::after {
    right: 5px;
    bottom: 5px;
    width: 5px;
    height: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-control.is-playing .vinyl-icon,
  .music-control.is-playing::after {
    animation: none;
  }
}


/* ==========================================================
   V22 — NOVA ARTE DO TÍTULO, TEXTO JUSTIFICADO E ESTADOS DISPONÍVEIS
   ========================================================== */
.exhibition-intro-text p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.exhibition-title-official {
  width: min(100%, 620px);
  margin: clamp(14px, 1.8vw, 22px) auto 0;
}

.title-art-official {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .22));
}

.map-container [data-map-uf].without-artists {
  pointer-events: none;
  cursor: default;
  opacity: .42;
}

.map-container [data-map-uf].has-artists {
  cursor: pointer;
}

@media (max-width: 980px) {
  .exhibition-title-official {
    width: min(92%, 580px);
  }
}

@media (max-width: 620px) {
  .exhibition-title-official {
    width: min(100%, 470px);
    margin-top: 14px;
  }

  .exhibition-intro-text p {
    text-align: justify;
  }
}


/* ==========================================================
   V23 — LISTA DE ESTADOS, CONTADOR DESTACADO E FAIXA INSTITUCIONAL
   ========================================================== */
.count-badge {
  min-width: 46px;
  height: 46px;
  padding: 0 10px;
  border: 1px solid rgba(247, 243, 236, .30);
  background: var(--green);
  color: var(--cream);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 8px 20px rgba(15, 33, 29, .18);
}

[data-theme="dark"] .count-badge {
  background: #374744;
  color: #fff8f3;
  border-color: rgba(127, 208, 180, .34);
}

#mapFallback:not([hidden]) {
  scroll-margin-top: 112px;
}

#showAllButton[aria-expanded="true"] {
  color: var(--green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

[data-theme="dark"] #showAllButton[aria-expanded="true"] {
  color: var(--mint);
}

/* ==========================================================
   V24 — COR DOS TEXTOS DE ABERTURA IGUAL AO RÓTULO DO ACERVO
   ========================================================== */
.hero .hero-eyebrow,
.hero .hero-lead {
  color: var(--green);
}

[data-theme="dark"] .hero .hero-eyebrow,
[data-theme="dark"] .hero .hero-lead {
  color: var(--mint);
}


/* ==========================================================
   V25 — LEGENDA DESCRITIVA DA OBRA RE-UTOPYA
   ========================================================== */
.hero-visual {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: visible;
  background: rgba(7, 24, 19, .94);
}

.hero-image-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.hero-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.18);
  pointer-events: none;
}

.hero-visual::before {
  display: none;
}

.hero-visual .hero-image-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-visual figcaption {
  position: static;
  z-index: auto;
  width: 100%;
  padding: 14px 16px 15px;
  background: rgba(7,24,19,.94);
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  line-height: 1.55;
  letter-spacing: .025em;
  text-align: left;
}

.hero-visual figcaption a {
  color: #fff8f3;
  font-weight: 700;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.hero-visual figcaption a:hover,
.hero-visual figcaption a:focus-visible {
  color: var(--pink);
  text-decoration-color: currentColor;
}

.hero-visual figcaption a:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 620px) {
  .hero-visual figcaption {
    padding: 12px 14px 13px;
    font-size: .68rem;
    line-height: 1.5;
  }
}

/* ==========================================================
   V26 — LEGENDA SEM CAIXA E RESTAURAÇÃO DAS CORES DA ABERTURA
   ========================================================== */
.hero .hero-eyebrow,
.hero .hero-lead {
  color: #07110e;
}

.hero-visual {
  background: transparent;
  box-shadow: none;
}

.hero-image-frame {
  box-shadow: 0 28px 80px rgba(0,0,0,.30);
}

.hero-visual figcaption {
  padding: 0;
  margin-top: 12px;
  background: transparent;
  color: rgba(255,255,255,.82);
}

.hero-visual figcaption a,
.hero-visual figcaption a:hover,
.hero-visual figcaption a:focus-visible {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 620px) {
  .hero-visual figcaption {
    padding: 0;
    margin-top: 10px;
  }
}

/* ==========================================================
   V27 — CORES ORIGINAIS DA PRIMEIRA VERSÃO NA ABERTURA
   ========================================================== */
.hero .hero-eyebrow {
  color: #f0c0b5;
}

.hero .hero-lead {
  color: rgba(255, 255, 255, .83);
}

/* ==========================================================
   V28 — CORES DA ABERTURA RESTAURADAS A PARTIR DA VERSÃO 23 ANEXADA
   ========================================================== */
.hero .hero-eyebrow,
.hero .hero-lead {
  color: #07110e;
}


/* ==========================================================
   V29 — ÁREA DE SITES DOS ARTISTAS
   Estrutura reutilizável ao final de cada perfil, com prévia visual.
   ========================================================== */
.artist-sites-section {
  padding: clamp(24px, 4vw, 45px);
  border-top: 1px solid var(--border);
}

.artist-sites-section > h3 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.artist-sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}

.artist-site-card {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(8, 25, 20, .08);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.artist-site-card:hover,
.artist-site-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 18px 42px rgba(8, 25, 20, .14);
}

.artist-site-card:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.artist-site-browser {
  height: 220px;
  overflow: hidden;
  display: block;
  background: #111a17;
  border-right: 1px solid var(--border);
}

.artist-site-browser img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.artist-site-card:hover .artist-site-browser img,
.artist-site-card:focus-visible .artist-site-browser img {
  transform: scale(1.025);
}

.artist-site-copy {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.artist-site-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.08;
  font-weight: 600;
}

.artist-site-copy > span:not(.eyebrow):not(.artist-site-action) {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.artist-site-action {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

[data-theme="dark"] .artist-site-action {
  color: var(--mint);
}

.artist-site-action b {
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 720px) {
  .artist-site-card {
    grid-template-columns: 1fr;
  }

  .artist-site-browser {
    height: 190px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .artist-site-browser img {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .artist-sites-section {
    padding: 24px 22px;
  }

  .artist-sites-section > h3 {
    font-size: 1.7rem;
  }
}

/* ==========================================================
   V30 — PADRONIZAÇÃO TIPOGRÁFICA NA ABA DOS ARTISTAS
   Os títulos das seções seguem exatamente a referência de
   “Biografia”; o corpo permanece na tipografia de leitura.
   ========================================================== */
.artist-dialog {
  font-family: var(--font-body);
}

.artist-dialog .artist-biography h3,
.artist-dialog .works-section h3,
.artist-dialog .artist-sites-section > h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  font-optical-sizing: auto;
  font-variation-settings: "opsz" 96;
  letter-spacing: -.005em;
}

.artist-dialog .work-card h4,
.artist-dialog .artist-site-copy strong {
  color: var(--text);
  font-family: var(--font-display);
}

.artist-dialog .artist-biography p,
.artist-dialog .works-section > p,
.artist-dialog .work-card p,
.artist-dialog .artist-site-copy > span:not(.eyebrow):not(.artist-site-action) {
  font-family: var(--font-body);
}

@media (max-width: 600px) {
  .artist-dialog .artist-biography h3,
  .artist-dialog .works-section h3,
  .artist-dialog .artist-sites-section > h3 {
    font-size: 1.7rem;
  }
}


/* ==========================================================
   V32 — COR DOS TEXTOS DE ABERTURA
   Replica exclusivamente a cor de “Visitas mediadas”.
   ========================================================== */
.hero .hero-eyebrow,
.hero .hero-lead {
  color: #173129;
}


/* ==========================================================
   V35 — COR DO TOPO E PATROCINADORES DO ARQUIVO ANEXO
   A cor #07110e replica o verde escuro da versão 23.
   ========================================================== */
.hero .hero-eyebrow,
.hero .hero-lead {
  color: #07110e;
}


/* V36 — correção definitiva da cor dos textos de abertura */
.hero .hero-eyebrow,
.hero .hero-lead {
  color: #07110e !important;
}

/* ==========================================================
   V38 — PRÉVIA PIPA MAIS AMPLA E SEM CORTE
   Amplia a área visual e preserva a imagem inteira do PIPA.
   ========================================================== */
.artist-site-card {
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, .65fr);
}

.artist-site-browser {
  height: 320px;
}

.artist-site-browser img {
  object-fit: contain;
  object-position: center;
}

.artist-site-card:hover .artist-site-browser img,
.artist-site-card:focus-visible .artist-site-browser img {
  transform: none;
}

@media (max-width: 720px) {
  .artist-site-card {
    grid-template-columns: 1fr;
  }

  .artist-site-browser {
    height: 230px;
  }
}

/* ==========================================================
   V39 — ABERTURA CENTRALIZADA, PLAYLIST E ÍCONE DE MÚSICA
   ========================================================== */
.hero-copy {
  text-align: center;
  justify-items: center;
}

.hero .hero-eyebrow,
.hero .hero-lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-actions {
  justify-content: center;
  width: 100%;
}

.playlist-button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid #07110e;
  background: #07110e;
  color: #fff4ee;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .68rem;
  font-weight: 800;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.playlist-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.playlist-button:hover,
.playlist-button:focus-visible {
  background: var(--pink);
  color: #07110e;
  transform: translateY(-2px);
}

.music-control .vinyl-icon { display: none; }

.music-control .music-play-icon {
  width: 24px;
  height: 24px;
  overflow: visible;
}

.music-control .music-note {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.music-control .play-symbol {
  fill: currentColor;
  stroke: none;
  transform-origin: center;
  transition: opacity .18s ease, transform .18s ease;
}

.music-control.is-playing .play-symbol {
  opacity: .35;
  transform: scale(.78);
}

.music-control.is-playing .music-note {
  animation: music-note-bounce .8s ease-in-out infinite alternate;
}

@keyframes music-note-bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-1.5px); }
}

@media (max-width: 760px) {
  .music-control .music-play-icon {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 500px) {
  .hero-actions .primary-button,
  .hero-actions .secondary-hero-button,
  .hero-actions .playlist-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-control.is-playing .music-note {
    animation: none;
  }
}

/* ==========================================================
   V40 — PLAYLIST NA NAVEGAÇÃO E CRÉDITO COM LINK EXTERNO
   ========================================================== */
.nav-playlist-link {
  white-space: nowrap;
}

.external-link-arrow {
  display: inline-block;
  margin-left: .12em;
  font-size: .86em;
  line-height: 1;
  transform: translateY(-.04em);
  transition: transform .18s ease;
}

.hero-visual figcaption a:hover .external-link-arrow,
.hero-visual figcaption a:focus-visible .external-link-arrow {
  transform: translate(.12em, -.16em);
}

.music-control .play-symbol {
  display: none;
}


/* ==========================================================
   V41 — PLAYLIST COM ÍCONE DO SPOTIFY E EIXOS NO MESMO BLOCO DO RESUMO
   ========================================================== */
.themes {
  margin: 0 auto clamp(42px, 6vw, 86px);
  padding: 0;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.themes article,
.themes article:first-child {
  min-height: 176px;
  padding: 28px clamp(22px, 3vw, 42px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  text-align: center;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.themes article:first-child {
  border-left: 0;
}

.themes article:last-child {
  border-right: 0;
}

.themes h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  line-height: 1.05;
  font-weight: 500;
}

[data-theme="dark"] .themes h3 {
  color: var(--mint);
}

.themes p {
  max-width: 270px;
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.nav-playlist-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.spotify-mini-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  display: block;
  border-radius: 50%;
}

@media (max-width: 980px) {
  .themes {
    grid-template-columns: repeat(2, 1fr);
  }

  .themes article,
  .themes article:first-child {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .themes article:nth-child(2n) {
    border-right: 0;
  }

  .themes article:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .themes {
    grid-template-columns: 1fr;
  }

  .themes article,
  .themes article:first-child,
  .themes article:nth-child(2n),
  .themes article:nth-last-child(-n+2) {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .themes article:last-child {
    border-bottom: 0;
  }
}


/* ==========================================================
   V42 — NOVOS RÓTULOS DE NAVEGAÇÃO E ÍCONE DO SPOTIFY MAIOR
   ========================================================== */
.nav-playlist-link {
  gap: 8px;
}

.spotify-mini-icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .spotify-mini-icon {
    width: 17px;
    height: 17px;
  }
}


/* ==========================================================
   V43 — CENTRALIZAÇÃO DOS BOTÕES DA NAVEGAÇÃO PRINCIPAL
   ========================================================== */
.topnav {
  width: 100%;
  justify-self: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
}

.topnav a {
  text-align: center;
}

@media (max-width: 1180px) {
  .topnav {
    width: auto;
    justify-content: center;
  }
}


/* ==========================================================
   V44 — RESUMO DENTRO DO HERO + ANIMAÇÃO NA ENTRADA
   ========================================================== */
.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-stats {
  margin: 34px 0 0;
  width: min(100%, 720px);
  align-self: flex-start;
  background: rgba(255, 253, 248, .12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 46px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}

.hero-stats article {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.hero-stats.is-visible article {
  opacity: 1;
  transform: translateY(0);
}

.hero-stats.is-visible article:nth-child(2) {
  transition-delay: .12s;
}

.hero-stats.is-visible article:nth-child(3) {
  transition-delay: .24s;
}

.hero-stats strong {
  color: #a9ead3;
}

.hero-stats span {
  color: rgba(255,255,255,.88);
}

@media (max-width: 980px) {
  .hero-stats {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .hero-stats {
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stats article,
  .hero-stats.is-visible article {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================
   V45 — INDICADORES NA LINHA INFERIOR DA IMAGEM RE-UTOPYA
   ========================================================== */
.hero-media-column {
  width: min(100%, 560px);
  justify-self: end;
  align-self: start;
  display: grid;
  grid-template-rows: auto auto;
}

.hero-media-column .hero-visual {
  width: 100%;
  justify-self: stretch;
}

.hero-media-column .hero-stats {
  width: 100%;
  margin: 0;
  align-self: stretch;
  border-top: 0;
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.hero-media-column .hero-stats article {
  min-height: 112px;
}

.hero-media-column .hero-stats strong {
  color: var(--mint);
}

.hero-media-column .hero-stats span {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-media-column {
    width: 100%;
    max-width: 680px;
    justify-self: center;
  }
}

@media (max-width: 500px) {
  .hero-media-column .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}


/* ==========================================================
   V46 — COR DOS INDICADORES IGUAL AO TEXTO INTRODUTÓRIO DO HERO
   ========================================================== */
.hero-media-column .hero-stats strong,
.hero-media-column .hero-stats span {
  color: #07110e;
}


/* ==========================================================
   V47 — IMAGENS DE FUNDO NOS EIXOS TEMÁTICOS
   ========================================================== */
.themes article,
.themes article:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0f1d19;
}

.themes article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  opacity: .24;
  filter: contrast(1.12) brightness(.72) saturate(.92);
  transform: scale(1.03);
}

.themes article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 17, 14, .82), rgba(7, 17, 14, .88));
}

.themes article:nth-child(1)::before {
  background-image: url('../images/theme-identidade.jpg');
}

.themes article:nth-child(2)::before {
  background-image: url('../images/theme-memoria.jpg');
}

.themes article:nth-child(3)::before {
  background-image: url('../images/theme-territorio.jpg');
}

.themes article:nth-child(4)::before {
  background-image: url('../images/theme-meio-ambiente.jpg');
}

.themes h3 {
  color: #95ead0;
  text-shadow: 0 2px 10px rgba(0,0,0,.24);
}

.themes p {
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 8px rgba(0,0,0,.25);
}

@media (prefers-reduced-motion: reduce) {
  .themes article::before {
    transform: none;
  }
}


/* ==========================================================
   V48 — INDICADORES NA ÁREA ESQUERDA ALINHADOS AO FINAL DA IMAGEM
   ========================================================== */
.hero {
  align-items: stretch;
}

.hero-copy {
  align-self: stretch;
  min-height: 100%;
}

.hero-copy .hero-stats {
  width: min(100%, 720px);
  margin-top: auto;
  margin-bottom: 0;
  background: rgba(255, 253, 248, .12);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 46px rgba(0,0,0,.18);
  backdrop-filter: blur(8px);
}

.hero-media-column {
  width: min(100%, 560px);
  min-height: 100%;
  justify-self: end;
  align-self: stretch;
  display: flex;
}

.hero-media-column .hero-visual {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

.hero-copy .hero-stats strong,
.hero-copy .hero-stats span {
  color: #07110e;
}

@media (max-width: 980px) {
  .hero {
    align-items: start;
  }

  .hero-copy {
    align-self: auto;
  }

  .hero-copy .hero-stats {
    width: 100%;
    margin-top: 28px;
  }

  .hero-media-column {
    width: 100%;
    max-width: 680px;
    min-height: auto;
    justify-self: center;
  }

  .hero-media-column .hero-visual {
    min-height: 620px;
  }
}

@media (max-width: 500px) {
  .hero-copy .hero-stats {
    grid-template-columns: 1fr;
    gap: 8px;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }
}

/* ==========================================================
   V48 — FUNDOS DOS TEMAS MAIS EVIDENTES E SEM TONALIDADE VERDE
   ========================================================== */
.themes article,
.themes article:first-child {
  background-color: #121212;
}

.themes article::before {
  opacity: .42;
  filter: contrast(1.06) brightness(.92) saturate(1.02);
}

.themes article::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, .44), rgba(0, 0, 0, .56));
}

.themes h3 {
  color: #9eeed6;
}

.themes p {
  color: rgba(255,255,255,.92);
}


/* ==========================================================
   V49 — INDICADORES CENTRALIZADOS E EM BRANCO
   ========================================================== */
.stats article {
  display: grid;
  place-content: center;
  place-items: center;
  justify-items: center;
  text-align: center;
  gap: 6px;
}

.stats strong,
.stats span,
.stats article:nth-child(2) span,
.hero-stats strong,
.hero-stats span,
.hero-copy .hero-stats strong,
.hero-copy .hero-stats span {
  color: #fff;
  text-align: center;
  justify-self: center;
  text-shadow: 0 1px 10px rgba(0,0,0,.22);
}

@media (max-width: 500px) {
  .stats article,
  .hero-copy .hero-stats article {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 12px 15px;
  }
}


/* ==========================================================
   V49 — BOTÃO DE E-MAIL: COPIAR PARA A ÁREA DE TRANSFERÊNCIA
   ========================================================== */
.visit-email-copy {
  font-family: inherit;
  font-size: inherit;
  background: transparent;
  cursor: pointer;
  width: 100%;
  gap: 10px;
}

.visit-email-copy .copy-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visit-email-copy .copy-icon-check {
  opacity: 0;
  transition: opacity .18s ease;
}

.visit-email-copy.is-copied .copy-icon-sheet,
.visit-email-copy.is-copied .copy-icon-back {
  opacity: .35;
}

.visit-email-copy.is-copied .copy-icon-check {
  opacity: 1;
}

.visit-email-copy:active {
  transform: translateY(0);
}


/* ==========================================================
   V50 — INDICADORES SEM CAIXA, CENTRALIZADOS E MAIS ALTOS
   ========================================================== */
.stats,
.hero-stats,
.hero-copy .hero-stats {
  background: transparent;
  border: 0;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  margin-top: 26px;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  justify-self: center;
  width: min(100%, 640px);
}

.stats article,
.stats article:last-child,
.hero-copy .hero-stats article {
  min-height: 0;
  padding: 6px 10px;
  border: 0 !important;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  gap: 4px;
}

.stats strong,
.hero-copy .hero-stats strong {
  display: block;
  line-height: 1.05;
}

.stats span,
.hero-copy .hero-stats span {
  display: block;
  line-height: 1.3;
}

@media (max-width: 760px) {
  .stats,
  .hero-copy .hero-stats {
    margin-top: 22px;
  }
}

@media (max-width: 500px) {
  .stats,
  .hero-copy .hero-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}


/* ==========================================================
   V51 — RESUMO DO ACERVO ABAIXO DA FICHA DA EXPOSIÇÃO
   ========================================================== */
.facts-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 620px);
  margin: 22px auto 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.facts-stats article {
  display: grid;
  place-content: center;
  place-items: center;
  gap: 4px;
  padding: 6px 10px;
  border: 0;
  text-align: center;
}

.facts-stats strong {
  display: block;
  color: var(--green);
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  font-variation-settings: "opsz" 120;
  line-height: 1.48;
}

[data-theme="dark"] .facts-stats strong {
  color: var(--mint);
}

.facts-stats span {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.35;
}

.facts-stats article {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.facts-stats.is-visible article {
  opacity: 1;
  transform: translateY(0);
}

.facts-stats.is-visible article:nth-child(2) { transition-delay: .12s; }
.facts-stats.is-visible article:nth-child(3) { transition-delay: .24s; }

@media (max-width: 500px) {
  .facts-stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .facts-stats article,
  .facts-stats.is-visible article {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ==========================================================
   V52 — AUDIODESCRIÇÃO DA IMAGEM DE ABERTURA
   ========================================================== */
.hero-caption-text {
  margin: 0;
}

.audio-description-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: inherit;
  font-family: inherit;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.audio-description-toggle:hover,
.audio-description-toggle:focus-visible {
  background: rgba(255,255,255,.14);
  border-color: var(--pink);
  color: #fff;
}

.audio-description-toggle:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.audio-description-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.audio-description-chevron {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}

.audio-description-toggle[aria-expanded="true"] .audio-description-chevron {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.audio-description-panel {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 2px solid var(--pink);
  background: rgba(255,255,255,.06);
  border-radius: 0 8px 8px 0;
}

.audio-description-panel[hidden] {
  display: none;
}

.audio-description-panel p {
  margin: 0 0 9px;
  font-size: .7rem;
  line-height: 1.65;
  letter-spacing: .015em;
}

.audio-description-panel p:last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .audio-description-toggle {
    font-size: .64rem;
  }

  .audio-description-panel p {
    font-size: .68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-description-chevron {
    transition: none;
  }
}


/* ==========================================================
   V55 — AUDIODESCRIÇÃO: CAIXA LARGA, BAIXA E DESLOCADA À ESQUERDA
   ========================================================== */
.hero-caption-text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.hero-visual figcaption {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
}

@media (min-width: 981px) {
  .audio-description-panel {
    position: absolute;
    right: calc(100% + 26px);
    bottom: -6px;
    z-index: 6;
    width: min(760px, 46vw);
    max-height: min(300px, 40vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin-top: 0;
    padding: 16px 20px 18px;
    border: 1px solid rgba(255,255,255,.16);
    border-left: 2px solid var(--pink);
    border-radius: 0 10px 10px 0;
    background: rgba(7, 24, 19, .97);
    box-shadow: 0 26px 60px rgba(0,0,0,.34);
    text-align: left;
    column-count: 2;
    column-gap: 28px;
    column-rule: 1px solid rgba(255,255,255,.12);
  }

  .audio-description-panel::before {
    content: "Audiodescrição";
    display: block;
    column-span: all;
    margin-bottom: 12px;
    color: var(--pink);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .audio-description-panel p {
    break-inside: avoid;
    margin-bottom: 10px;
  }
}

@media (min-width: 1500px) {
  .audio-description-panel {
    width: min(860px, 48vw);
    max-height: min(280px, 36vh);
  }
}


/* ==========================================================
   V57 — ROTEIRO DA AUDIODESCRIÇÃO JUSTIFICADO
   ========================================================== */
.audio-description-panel p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

@media (min-width: 981px) {
  .audio-description-panel {
    text-align: justify;
  }
}


/* ==========================================================
   V63 — FORMULÁRIO DE SOLICITAÇÃO DE AGENDAMENTO
   ========================================================== */
.visit-form-intro {
  margin: 14px 0 10px;
  font-size: .8rem;
  line-height: 1.6;
  opacity: .9;
}

.visit-form-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #17231f;
  font-family: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.visit-form-button:hover,
.visit-form-button:focus-visible {
  background: #e8b3a6;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}

.visit-form-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.visit-form-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-dialog {
  width: min(860px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 90px rgba(0,0,0,.4);
  overflow: hidden;
}

.schedule-dialog[open] {
  display: flex;
  flex-direction: column;
}

.schedule-dialog::backdrop {
  background: rgba(11, 20, 17, .62);
  backdrop-filter: blur(3px);
}

.schedule-dialog form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.schedule-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.schedule-dialog-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.15;
}

.schedule-dialog-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.schedule-dialog-close svg {
  width: 15px; height: 15px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}

.schedule-dialog-close:hover { background: var(--surface-2); }

.schedule-dialog-lead {
  margin: 0;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--muted);
}

.schedule-dialog fieldset {
  margin: 0;
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.schedule-dialog legend {
  padding: 0 8px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}

[data-theme="dark"] .schedule-dialog legend { color: var(--mint); }

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.field-trio {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.field-trio > label { margin: 0; }
@media (max-width: 620px) {
  .field-trio { grid-template-columns: 1fr; }
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.schedule-dialog label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.check-grid label {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  font-size: .76rem;
  line-height: 1.4;
}

.check-grid input { width: 16px; height: 16px; accent-color: var(--green); flex: 0 0 auto; }

.schedule-dialog .field-wide { width: 100%; }

.schedule-dialog abbr {
  color: var(--red);
  text-decoration: none;
  cursor: help;
}

.schedule-dialog input,
.schedule-dialog select,
.schedule-dialog textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 400;
}

.schedule-dialog textarea { resize: vertical; line-height: 1.5; }

.schedule-dialog input:focus-visible,
.schedule-dialog select:focus-visible,
.schedule-dialog textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.schedule-dialog [aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(228, 35, 18, .16);
}

.field-help {
  margin: 0 0 12px;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--muted);
}

.schedule-status {
  margin: 0;
  min-height: 1.2em;
  font-size: .76rem;
  line-height: 1.5;
  color: var(--green);
}

.schedule-status[data-tone="erro"] { color: var(--red); font-weight: 700; }
[data-theme="dark"] .schedule-status { color: var(--mint); }

.schedule-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.schedule-secondary,
.schedule-submit {
  padding: 11px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.schedule-secondary {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.schedule-secondary:hover { background: var(--surface-2); color: var(--text); }

.schedule-submit {
  border: 0;
  background: var(--green);
  color: #fff;
}

.schedule-submit:hover { background: var(--green-hover); }

.schedule-secondary:focus-visible,
.schedule-submit:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

@media (max-width: 620px) {
  .schedule-dialog form { padding: 20px 18px; }
  .schedule-dialog-head h2 { font-size: 1.25rem; }
  .schedule-dialog-foot { flex-direction: column-reverse; }
  .schedule-dialog-foot button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .visit-form-button { transition: none; }
  .visit-form-button:hover { transform: none; }
}


/* ==========================================================
   V64 — CORREÇÕES DO FORMULÁRIO E PADRONIZAÇÃO DO BOTÃO
   ========================================================== */

/* O <footer> e o <header> do formulário herdavam as regras globais do rodapé
   e do cabeçalho do site, que os esticavam para além da janela. */
.schedule-dialog .schedule-dialog-head,
.schedule-dialog .schedule-dialog-foot {
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: inherit;
}

.schedule-dialog .schedule-dialog-head { padding: 0; align-items: flex-start; }
.schedule-dialog .schedule-dialog-foot { padding: 4px 0 0; align-items: center; }

.schedule-dialog .schedule-dialog-head p,
.schedule-dialog .schedule-dialog-foot p { text-align: left; margin: 0; }

.schedule-dialog form,
.schedule-dialog fieldset,
.schedule-dialog .field-grid,
.schedule-dialog .check-grid { min-width: 0; }

.schedule-dialog input,
.schedule-dialog select,
.schedule-dialog textarea { min-width: 0; max-width: 100%; }

/* Rótulo em duas colunas: a caixa não encolhe e o texto ocupa o resto,
   quebrando por linha e não por palavra. */
.check-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 18px;
}

.check-grid label {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  font-size: .74rem;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.check-grid label:hover { border-color: var(--green); }

.check-grid label:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.check-grid input { margin: 0; }

/* Mesmo desenho dos botões da seção de visitas. */
.visit-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 6px;
  padding: 14px 18px;
  border: 1px solid rgba(8,20,16,.70);
  border-radius: 16px;
  background: transparent;
  color: #081410;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.visit-form-button:hover,
.visit-form-button:focus-visible {
  background: var(--green-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: none;
}

.visit-form-button svg { width: 18px; height: 18px; }


/* ==========================================================
   V65 — FOTO DA EQUIPE EDUCATIVA NO BLOCO DO SESC
   ========================================================== */
.visit-sesc-photo {
  position: relative;
  margin: 20px 0 18px;
  align-self: stretch;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(8, 20, 16, .70);
  background: #0f1d19;
  isolation: isolate;
}

.visit-sesc-photo img {
  display: block;
  width: 100%;
  height: clamp(146px, 15vw, 200px);
  object-fit: cover;
  object-position: center 58%;
  filter: contrast(1.1) brightness(.86) saturate(.9);
  transform: scale(1.02);
  transition: filter .45s ease, transform .45s ease;
}

/* A mesma diagonal que atravessa o bloco de visitas, repetida sobre a foto. */
.visit-sesc-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(108deg, rgba(219, 157, 144, .34) 0%, rgba(219, 157, 144, 0) 46%);
  pointer-events: none;
  transition: opacity .45s ease;
}

.visit-sesc-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 17, 14, .10), rgba(7, 17, 14, .46));
  pointer-events: none;
  transition: opacity .45s ease;
}

.visit-sesc-photo:hover img {
  filter: contrast(1.04) brightness(1) saturate(1);
  transform: scale(1.05);
}

.visit-sesc-photo:hover::before,
.visit-sesc-photo:hover::after { opacity: .45; }

[data-theme="dark"] .visit-sesc-photo { border-color: rgba(255, 255, 255, .22); }

@media (max-width: 980px) {
  .visit-sesc-photo { margin-top: 18px; }
  .visit-sesc-photo img { height: clamp(140px, 34vw, 190px); }
}

@media (prefers-reduced-motion: reduce) {
  .visit-sesc-photo img,
  .visit-sesc-photo::before,
  .visit-sesc-photo::after { transition: none; }
  .visit-sesc-photo:hover img { transform: scale(1.02); }
}


/* ==========================================================
   V66 — RITMO UNIFORME NO BLOCO "AGENDE UMA VISITA"
   ========================================================== */
/* O `margin-top: auto` empurrava o botão de e-mail para longe do texto sempre
   que sobrava altura na coluna. O bloco agora tem um respiro constante. */
.visit-email .visit-email-link,
.visit-email .visit-email-copy {
  margin-top: 14px;
  margin-bottom: 0;
}

.visit-email > p:not(.eyebrow):not(.visit-form-intro) { margin: 0; }

.visit-email > p.visit-form-intro { margin: 14px 0 14px; }

.visit-email .visit-form-button { margin-top: 14px; }

.visit-email { justify-content: flex-start; }


/* ==========================================================
   V66 — AUDIODESCRIÇÃO DA FOTO DO EDUCATIVO
   ========================================================== */
.photo-ad-badge {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(7, 17, 14, .74);
  backdrop-filter: blur(3px);
  color: #fff;
  font-family: inherit;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.photo-ad-badge svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-ad-badge:hover,
.photo-ad-badge:focus-visible {
  background: var(--green-deep);
  border-color: var(--pink);
}

.photo-ad-badge:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }

.photo-ad-panel {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px 15px;
  padding-right: 58px;
  background: rgba(7, 17, 14, .93);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}

.photo-ad-panel p {
  margin: 0 0 7px;
  font-size: .68rem;
  line-height: 1.55;
  text-align: justify;
  hyphens: auto;
}

.photo-ad-panel p:last-child { margin-bottom: 0; }

.photo-ad-title {
  color: var(--pink);
  font-size: .58rem !important;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left !important;
}

/* Aparece ao passar o cursor, ao chegar pelo teclado e ao ficar fixada no
   clique. Assim quem usa toque ou teclado alcança o mesmo conteúdo. */
.visit-sesc-photo:hover .photo-ad-panel,
.visit-sesc-photo:focus-within .photo-ad-panel,
.visit-sesc-photo.ad-fixada .photo-ad-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.visit-sesc-photo.ad-fixada .photo-ad-badge {
  background: var(--green-deep);
  border-color: var(--pink);
}

/* Com o painel aberto, a foto não se aproxima nem clareia por baixo do texto. */
.visit-sesc-photo:hover:has(.photo-ad-panel:hover) img,
.visit-sesc-photo.ad-fixada img { transform: scale(1.02); }

@media (max-width: 620px) {
  .photo-ad-panel p { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .photo-ad-panel { transition: none; transform: none; }
}


/* ==========================================================
   V67 — FECHAR NO CLIQUE PREVALECE SOBRE O CURSOR PARADO
   ========================================================== */
/* Sem isto, fechar a audiodescrição com o cursor ainda sobre a foto não
   surtia efeito: a regra de :hover reabria o painel no mesmo instante.
   A dispensa vale até o cursor deixar a figura. */
.visit-sesc-photo.ad-dispensada .photo-ad-panel {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

/* Linha de contexto: informa o que a cena é, antes de descrever o que se vê. */
.photo-ad-context {
  color: var(--pink);
  font-weight: 700;
}

/* O texto da audiodescrição cresceu com a linha de contexto: a moldura sobe um
   pouco e o corpo aperta, para que tudo caiba sem rolagem interna. */
.visit-sesc-photo img { height: clamp(168px, 16.5vw, 232px); }

.photo-ad-panel { padding: 12px 14px; padding-right: 56px; }
.photo-ad-panel p { margin-bottom: 6px; font-size: .645rem; line-height: 1.5; }
.photo-ad-title { margin-bottom: 5px !important; }

@media (max-width: 1460px) {
  .photo-ad-panel p { font-size: .6rem; line-height: 1.42; margin-bottom: 5px; }
  .photo-ad-panel { padding: 10px 12px; padding-right: 54px; }
}

@media (max-width: 620px) {
  .visit-sesc-photo img { height: clamp(196px, 48vw, 240px); }
  .photo-ad-panel p { font-size: .6rem; line-height: 1.45; }
}

@media (max-width: 430px) {
  .visit-sesc-photo img { height: 286px; }
}


/* ==========================================================
   V68 — BASES DAS DUAS COLUNAS ALINHADAS
   ========================================================== */
/* A foto deixa de ter altura fixa e passa a esticar até onde a coluna precisa,
   de modo que "Acessar atividades" termine na mesma linha de "Preencher a
   solicitação de agendamento". O mínimo garante espaço para a audiodescrição. */
/* Os dois botões finais ficam ancorados na base das suas colunas, e por isso
   terminam sempre na mesma linha, qualquer que seja a largura da tela. A folga
   que sobra na coluna do texto cai antes do último botão, nunca entre os
   parágrafos, que mantêm o respiro constante de 14px. */
.visit-sesc .visit-site-link { margin-top: 18px; }
.visit-email .visit-form-button { margin-top: auto; }

.visit-sesc-photo {
  flex: 1 1 auto;
  min-height: clamp(168px, 14vw, 200px);
  display: flex;
}

.visit-sesc-photo img {
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

@media (max-width: 980px) {
  .visit-sesc-photo { min-height: clamp(196px, 34vw, 214px); }
}

@media (max-width: 620px) {
  .visit-sesc-photo { min-height: clamp(214px, 48vw, 244px); }
}

@media (max-width: 430px) {
  .visit-sesc-photo { min-height: 286px; }
}


/* ==========================================================
   V69 — SITE DA EQUIPE EDUCATIVA
   ========================================================== */
/* A linha de apoio e a chamada do hero passam a branco, sobre o verde. */
/* Uma regra anterior fixava estas duas linhas em #07110e com !important;
   por isso a cor branca precisa da mesma força. */
.hero .hero-copy .hero-eyebrow,
.hero .hero-copy .hero-lead,
[data-theme="dark"] .hero .hero-copy .hero-eyebrow,
[data-theme="dark"] .hero .hero-copy .hero-lead {
  color: #fff !important;
}

.hero-copy .hero-eyebrow {
  text-transform: uppercase;
  max-width: 46ch;
}

/* O parágrafo de apoio fica no meio do vão entre os dois botões: a folga que
   sobra na coluna se reparte igualmente acima e abaixo dele, e cada vão guarda
   um respiro mínimo de 14px. */
.visit-email .visit-email-copy { margin-bottom: 14px; }

.visit-email > p.visit-form-intro {
  margin-top: auto;
  margin-bottom: 14px;
}

.visit-email .visit-form-button { margin-top: auto; }


/* ==========================================================
   V70 — QUINTO EIXO: GÊNERO
   ========================================================== */
/* A grade passa de quatro para cinco colunas. Gênero entra antes de meio
   ambiente, na ordem da ficha curatorial do Sesc. */
.themes {
  grid-template-columns: repeat(5, 1fr);
}

.themes article:nth-child(4)::before {
  background-image: url('../images/theme-genero.jpg');
}

.themes article:nth-child(5)::before {
  background-image: url('../images/theme-meio-ambiente.jpg');
}

@media (max-width: 1180px) {
  .themes { grid-template-columns: repeat(3, 1fr); }

  .themes article,
  .themes article:first-child {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .themes article:nth-child(3n) { border-right: 0; }
  .themes article:nth-child(n+4) { border-bottom: 0; }
}

@media (max-width: 860px) {
  .themes { grid-template-columns: repeat(2, 1fr); }

  .themes article,
  .themes article:first-child,
  .themes article:nth-child(3n) {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }

  .themes article:nth-child(2n) { border-right: 0; }
  .themes article:last-child { border-bottom: 0; }
}

@media (max-width: 620px) {
  .themes { grid-template-columns: 1fr; }

  .themes article,
  .themes article:first-child,
  .themes article:nth-child(2n),
  .themes article:nth-child(3n),
  .themes article:nth-last-child(-n+2) {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .themes article:last-child { border-bottom: 0; }
}


/* ==========================================================
   V71 — CABEÇALHO: MARCA MAIOR E ELEMENTOS PROPORCIONAIS
   ========================================================== */
/* A barra usava `1fr auto 1fr`: a navegação, em `auto`, tomava a largura que
   quisesse e espremia a coluna da marca a 231px, de modo que a imagem nunca
   passava de 176px por mais que o CSS pedisse 330px. Agora a marca é `auto`,
   dita o seu tamanho, e a navegação ocupa o que sobra, podendo encolher. */
.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 92px;
  gap: clamp(16px, 2vw, 30px);
}

.brand-title-art {
  width: clamp(240px, 27vw, 420px);
  max-height: 52px;
}

.brand { gap: 14px; }

.brand-copy > span:not(.sr-only) {
  font-size: clamp(.62rem, .74vw, .8rem);
  margin-top: 6px;
}

/* Controles e navegação acompanham a nova altura da barra. */
.header-control,
.icon-button.header-control {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex: 0 0 48px;
}

.header-control svg { width: 21px; height: 21px; }

.topnav {
  justify-self: end;
  gap: clamp(12px, 1.5vw, 24px);
}

.topnav a { font-size: clamp(.6rem, .72vw, .7rem); }

/* Abaixo de 1180px a navegação continua visível (uma versão anterior reexibiu
   o que o `display: none` original escondia, e não há menu alternativo). Ela só
   cabia porque a marca estava espremida a 78px. Com a marca no tamanho devido,
   o cabeçalho passa a ter duas linhas: marca e tema em cima, navegação embaixo. */
@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "marca tema"
      "nav   nav";
    align-items: center;
    gap: 10px clamp(12px, 2vw, 24px);
    padding-top: 12px;
    padding-bottom: 12px;
    min-height: 0;
  }

  .topbar-left { grid-area: marca; }
  .theme-control { grid-area: tema; }

  .topnav {
    grid-area: nav;
    justify-self: center;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }

  .brand-title-art { width: clamp(215px, 34vw, 330px); max-height: 44px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 74px; }
  .brand-title-art { width: min(52vw, 230px); max-height: 34px; }
  .brand { gap: 10px; }
  .header-control,
  .icon-button.header-control {
    width: 42px; height: 42px; min-width: 42px; min-height: 42px; flex-basis: 42px;
  }
  .header-control svg { width: 18px; height: 18px; }
}

@media (max-width: 500px) {
  .brand-title-art { width: min(56vw, 200px); }
  .brand-copy > span:not(.sr-only) { font-size: .58rem; }
}

/* Em telas estreitas, quebrar a navegação em três linhas deixaria a barra fixa
   com quase 200px, comendo um quarto da tela. Ela passa a correr numa linha só,
   arrastável na horizontal, sem barra de rolagem à vista. */
@media (max-width: 620px) {
  .topnav {
    justify-self: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }

  .topnav::-webkit-scrollbar { display: none; }

  .topnav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Acima de 1180px a navegação fica numa linha só: se ela quebrar, a barra
   incha e a marca perde o sentido de ter crescido. */
@media (min-width: 1181px) {
  .topnav { flex-wrap: nowrap; }
}

/* Calibragem: a navegação pedia 833px em 1440, e a marca ficava ~7px acima do
   que sobrava, o que jogava o link da playlist para uma segunda linha. */
.topnav {
  gap: clamp(10px, 1.25vw, 20px);
}

.topnav a {
  font-size: clamp(.58rem, .66vw, .68rem);
  letter-spacing: .06em;
}

.brand-title-art {
  width: clamp(240px, 24.5vw, 400px);
}


/* ==========================================================
   V73 — TÍTULOS E TEXTOS DOS EIXOS NA MESMA LINHA
   ========================================================== */
/* Duas causas somadas. O conteúdo dos cards vinha centralizado na vertical
   (`align-content: center`), de modo que o card de parágrafo mais curto descia:
   os títulos abriam 20,4px entre si. E "Meio ambiente" ocupa duas linhas,
   empurrando o próprio texto 38,5px abaixo dos demais.
   Agora o conteúdo é ancorado no topo e o título reserva duas linhas em todos
   os cards, então títulos e textos partem sempre da mesma altura. */
/* O `:first-child` precisa entrar por nome: existe um `.themes article:first-child`
   anterior, de especificidade maior, que mantinha só o primeiro card centralizado. */
.themes article,
.themes article:first-child {
  align-content: start;
  place-content: start stretch;
}

.themes h3 {
  display: flex;
  align-items: flex-start;
  min-height: 2.3em;
  line-height: 1.15;
}

/* Nota editorial (pop-up do botão "Educativo") */
.nota-dialog {
  width: min(460px, 92vw);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 90px rgba(0,0,0,.4);
  overflow: hidden;
}
.nota-dialog::backdrop {
  background: rgba(11, 20, 17, .62);
  backdrop-filter: blur(3px);
}
.nota-dialog-inner { padding: 22px 24px 24px; }
.nota-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.nota-dialog-head h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}
[data-theme="dark"] .nota-dialog-head h2 { color: var(--mint); }
.nota-dialog-body {
  margin: 0;
  line-height: 1.55;
  text-align: justify;
}
