:root {
  --brand: #8b1a1a;
  --brand-soft: #ffe4e6;
  --accent: #ffa1ad;
  --ink: #171717;
  --text: #404040;
  --muted: #737373;
  --line: #e5e5e5;
  --wash: #f5f5f5;
  --soft: #fafafa;
  --container: min(92vw, 1600px);
  --gutter: 32px;
  --sans: "Source Sans 3", Arial, Helvetica, sans-serif;
  --serif: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { background: #fff; color: var(--text); font-family: var(--sans); }
body { margin: 0; }
html {
  scrollbar-color: var(--brand) #f7f7f7;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f7f7f7;
}
::-webkit-scrollbar-thumb {
  background: var(--brand);
  border: 0;
  border-radius: 0;
}
::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}
img { display: block; height: auto; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }

.topbar {
  border-bottom: 3px solid var(--brand);
  min-height: 142px;
  padding: 20px var(--gutter) 19px;
  width: 100%;
}
.topbar-inner { position: relative; }
.brand { align-items: center; display: inline-flex; gap: 16px; min-width: 0; }
.brand-mark {
  align-items: center;
  background: var(--brand);
  color: white;
  display: inline-flex;
  flex: 0 0 48px;
  font: 700 16px/1 var(--serif);
  height: 48px;
  justify-content: center;
  width: 48px;
}
.brand-text { display: grid; gap: 4px; min-width: 0; }
.brand-text strong { color: var(--brand); font: 700 24px/1 var(--serif); }
.brand-text small,
.eyebrow,
.breadcrumb,
.text-link,
.section-heading a,
.notices-card time,
.notices-card span,
.co-card span,
.figma-footer h3,
.directory-card p,
.content-card header p,
.content-card h5 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; white-space: normal; max-width: 320px; display: block; line-height: 1.3; }
.menu-toggle { display: none; }
.site-nav { align-items: center; display: flex; flex-wrap: wrap; gap: 2px; margin-top: 16px; position: relative; }
.site-nav a,
.site-nav summary {
  color: var(--text);
  cursor: pointer;
  display: block;
  font-size: 13px;
  line-height: 20px;
  list-style: none;
  padding: 8px 9px;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav .active > summary,
.site-nav .active.nav-link,
.site-nav .active { background: var(--brand); color: white; }
.nav-group { position: relative; }
.nav-group summary::after { content: "+"; font-size: 12px; margin-left: 7px; }
.nav-group[open] summary::after,
.nav-group:hover summary::after { content: "-"; }
.nav-panel {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(23,23,23,.12);
  display: none;
  gap: 2px;
  left: 0;
  min-width: 230px;
  padding: 8px;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 30;
}
.nav-group[open] .nav-panel,
.nav-group:hover .nav-panel,
.nav-group:focus-within .nav-panel { display: grid; }
.nav-panel a { color: var(--text); padding: 8px 10px; }
.nav-panel a:hover,
.nav-panel a:focus { background: var(--wash); color: var(--brand); }
.nav-panel-wide { min-width: 360px; }
.nav-panel-scroll { max-height: 360px; overflow-y: auto; }
.nav-search { margin-left: auto; position: relative; }
.nav-search span {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}
.nav-search input {
  border: 1px solid var(--line);
  color: var(--text);
  font: 400 13px/20px var(--sans);
  min-height: 36px;
  padding: 7px 10px;
  width: 150px;
}
.nav-search input:focus { border-color: var(--brand); outline: 2px solid rgba(139,26,26,.12); }
[data-nav-item][hidden] { display: none !important; }

.page-shell { padding: 32px var(--gutter) 64px; width: 100%; }
.breadcrumb { color: var(--muted); margin: 0 0 16px; }
.figma-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
.hero-card {
  background: var(--brand);
  color: white;
  grid-column: span 2;
  min-height: 441px;
  overflow: hidden;
  padding: 56px;
  position: relative;
}
.hero-wash { background: rgba(255,255,255,.05); position: absolute; }
.hero-wash.large { height: 160px; right: 0; top: 0; width: 160px; }
.hero-wash.small { bottom: 0; height: 80px; right: 80px; width: 80px; }
.eyebrow { color: var(--brand); line-height: 1.5; margin: 0 0 8px; }
.hero-card .eyebrow,
.red .eyebrow { color: #ffccd3; }
.hero-card h1 {
  color: white;
  font: 600 46px/1.05 var(--serif);
  margin: 0;
  max-width: 540px;
}
.hero-card p { color: var(--brand-soft); font-size: 16px; line-height: 1.62; margin: 18px 0 0; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  justify-content: center;
  line-height: 20px;
  min-height: 42px;
  padding: 10px 20px;
}
.btn.light { background: white; color: var(--brand); font-weight: 600; }
.btn.outline { border: 1px solid rgba(255,255,255,.4); color: white; }

.event-card,
.feature-card,
.notices-card,
.directory-card,
.content-card {
  background: white;
  border: 1px solid var(--line);
}
.event-card { background: var(--wash); border: 0; min-height: 441px; padding: 32px; }
.date-lockup { align-items: end; display: flex; gap: 12px; margin-top: 4px; }
.date-lockup strong { color: var(--ink); font: 700 54px/1 var(--serif); }
.date-lockup span { color: var(--muted); font-size: 13px; line-height: 1.2; padding-bottom: 9px; }
.event-card h2,
.co-card h2 { color: var(--ink); font: 600 19px/1.5 var(--serif); margin: 18px 0 0; }
.event-card p,
.feature-card p,
.magazine-card p,
.co-card p,
.directory-card h2,
.content-card p,
.content-card li,
.content-card td,
.content-card th {
  color: #525252;
  font-size: 14px;
  line-height: 1.62;
}
.text-link { border-bottom: 1px solid currentColor; color: var(--brand); display: inline-block; line-height: 1.5; margin-top: 18px; padding-bottom: 2px; }
.text-link.pale { color: #ffccd3; }
.text-link.offset { margin-left: 12px; }

.red { background: var(--brand); color: white; }
.fund-card,
.feature-card { min-height: 270px; padding: 32px; }
.fund-card h2 { color: white; font: 700 32px/1 var(--serif); margin: 2px 0 0; }
.fund-card p { color: var(--brand-soft); }
.feature-card h2,
.magazine-card h2,
.notices-card h2,
.directory-card h2,
.content-card h1,
.content-card h2,
.content-card h3 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 10px;
}
.feature-card h2,
.magazine-card h2,
.notices-card h2,
.directory-card h2,
.content-card h2 { font-size: 20.8px; }
.content-card h1 { font-size: 28px; }
.content-card h3 { font-size: 18px; }
.magazine-card {
  background: #171717;
  color: white;
  grid-column: 3;
  grid-row: span 2;
  overflow: hidden;
}
.magazine-image { aspect-ratio: 313/235; background: #111; display: block; overflow: hidden; }
.magazine-image img { height: 100%; object-fit: cover; object-position: top center; width: 100%; }
.magazine-card > div { padding: 32px; }
.magazine-card .eyebrow,
.magazine-card .text-link { color: var(--accent); }
.magazine-card h2 { color: white; }
.magazine-card p { color: rgba(255,255,255,.72); }

.notices-card { grid-column: span 2; min-height: 320px; padding: 32px; }
.section-heading { align-items: end; border-bottom: 1px solid var(--line); display: flex; gap: 16px; justify-content: space-between; padding-bottom: 13px; }
.section-heading h2 { margin: 0; }
.section-heading a { color: var(--brand); line-height: 1.5; white-space: nowrap; }
.notices-card ul { list-style: none; margin: 16px 0 0; padding: 0; }
.notices-card li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 64px minmax(0,1fr) 94px;
  min-height: 49px;
}
.notices-card li:last-child { border-bottom: 0; }
.notices-card time { color: var(--brand); }
.notices-card a { color: #262626; font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.notices-card span { color: var(--muted); justify-self: end; }

.co-card { min-height: 259px; padding: 32px; }
.co-card h2 { color: white; }
.co-card p { color: var(--brand-soft); }
.co-card div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.co-card span { border: 1px solid rgba(255,255,255,.4); color: white; line-height: 1.5; padding: 4px 8px; }

.directory-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 16px;
}
.directory-card { min-height: 160px; padding: 28px; }
.directory-card p { color: var(--brand); margin: 0 0 12px; }
.directory-card h2 { margin: 0; }

.page-hero {
  background: var(--brand);
  color: white;
  margin-bottom: 16px;
  min-height: 250px;
  overflow: hidden;
  padding: 48px;
  position: relative;
}
.page-hero::after { background: rgba(255,255,255,.05); content: ""; height: 160px; position: absolute; right: 0; top: 0; width: 160px; }
.page-hero.compact { min-height: 190px; }
.page-hero .eyebrow { color: #ffccd3; }
.page-hero h1 { color: white; font: 600 42px/1.1 var(--serif); margin: 0; max-width: 760px; }
.page-hero p { color: var(--brand-soft); font-size: 16px; max-width: 680px; }
.content-list { display: grid; gap: 16px; }
.content-card { padding: 32px; overflow: hidden; }
.content-card .content { padding: 0 !important; width: 100% !important; }
.content-card header p,
.content-card h5 { color: var(--brand); line-height: 1.5; margin: 0 0 8px; }
.content-card a { color: var(--brand); font-weight: 600; overflow-wrap: anywhere; }
.content-card ul.actions { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 16px 0 0; padding: 0; }
.content-card ul.actions li { margin: 0; padding: 0; }
.content-card .button,
.content-card ul.actions a.button {
  align-items: center;
  background: var(--brand) !important;
  border: 0;
  color: white !important;
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  max-width: 100%;
  min-height: 42px;
  overflow-wrap: anywhere;
  padding: 10px 18px;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}
.content-card table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; width: 100%; }
.content-card th,
.content-card td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; }
.content-card img { margin: 12px 0; }
.content-card center { text-align: left; }

.content-index {
  align-items: end;
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 330px);
  margin-bottom: 16px;
  padding: 28px;
}
.content-index h2 {
  color: var(--ink);
  font: 600 24px/1.2 var(--serif);
  margin: 0 0 8px;
}
.content-index p { font-size: 14px; line-height: 1.5; margin: 0; }
.filter-search { display: grid; gap: 8px; }
.filter-search span {
  color: var(--brand);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.filter-search input {
  border: 1px solid var(--line);
  color: var(--text);
  font: 400 15px/22px var(--sans);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}
.filter-search input:focus { border-color: var(--brand); outline: 2px solid rgba(139,26,26,.12); }
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}
.filter-chip {
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  font: 600 13px/18px var(--sans);
  min-height: 36px;
  padding: 8px 13px;
}
.filter-chip.active,
.filter-chip:hover,
.filter-chip:focus { background: var(--brand); border-color: var(--brand); color: white; }
.bento-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bento-card {
  min-height: 0;
  padding: 0;
}
.bento-card[hidden] { display: none !important; }
.bento-summary {
  cursor: pointer;
  display: grid;
  gap: 10px;
  list-style: none;
  min-height: 154px;
  padding: 24px;
}
.bento-summary::-webkit-details-marker { display: none; }
.bento-kicker {
  color: var(--brand);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bento-summary strong {
  color: var(--ink);
  font: 600 20px/1.22 var(--serif);
}
.bento-open {
  align-self: end;
  border-bottom: 1px solid currentColor;
  color: var(--brand);
  font-size: 12px;
  justify-self: start;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.bento-card[open] {
  grid-column: span 2;
}
.bento-card[open] .bento-open::before { content: "Fechar"; }
.bento-card[open] .bento-open { font-size: 0; }
.bento-card[open] .bento-open::before {
  font-size: 12px;
}
.collapsible-body {
  border-top: 1px solid var(--line);
  padding: 24px;
}
.bento-card:not([open]) .collapsible-body { display: none; }
.bento-empty {
  background: var(--wash);
  border: 1px solid var(--line);
  color: var(--muted);
  display: none;
  font-size: 14px;
  grid-column: 1 / -1;
  padding: 24px;
}
.bento-empty.is-visible { display: block; }

.figma-footer {
  background: var(--wash);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 40px var(--gutter) 0;
  width: 100%;
}
.figma-footer h2 { color: var(--brand); font: 700 19px/1.4 var(--serif); margin: 0 0 8px; }
.figma-footer h3 { color: var(--brand); font-weight: 400; margin: 0 0 8px; }
.figma-footer p { font-size: 14px; line-height: 1.45; margin: 0; }
.figma-footer a { color: var(--text); }
.footer-logos {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  padding-top: 24px;
}
.footer-logos img {
  background: white;
  border: 1px solid var(--line);
  max-height: 92px;
  object-fit: contain;
  padding: 12px;
  width: 100%;
}
.footer-logos img:first-child { grid-column: 1 / -1; }
.footer-bar {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  grid-column: 1 / -1;
  justify-content: space-between;
  min-height: 51px;
  padding: 16px 0;
}

@media (max-width: 860px) {
  .topbar { min-height: 0; }
  .menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--brand);
    cursor: pointer;
    display: grid;
    gap: 4px;
    height: 40px;
    padding: 0 12px;
    position: absolute;
    right: 0;
    top: 4px;
  }
  .menu-toggle span { background: currentColor; display: block; height: 1px; width: 18px; }
  .site-nav { display: none; }
  .site-nav.is-open { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; padding-top: 14px; }
  .site-nav a,
  .site-nav summary { padding: 10px 0; }
  .nav-group { border-bottom: 1px solid var(--line); position: static; }
  .nav-panel {
    border: 0;
    box-shadow: none;
    margin: 0 0 10px;
    min-width: 0;
    padding: 0 0 0 14px;
    position: static;
  }
  .nav-panel-wide { min-width: 0; }
  .nav-panel-scroll { max-height: none; }
  .nav-search { margin-left: 0; order: -1; }
  .nav-search input { width: 100%; }
  .figma-grid,
  .directory-grid { grid-template-columns: 1fr 1fr; }
  .content-index,
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .hero-card,
  .notices-card { grid-column: 1 / -1; }
  .bento-card[open] { grid-column: 1 / -1; }
  .magazine-card { grid-column: auto; grid-row: auto; }
  .hero-card { min-height: 0; padding: 42px; }
  .hero-card h1 { font-size: 38px; }
  .figma-footer { grid-template-columns: 1fr; }
  .footer-logos { grid-template-columns: 1fr; }
  .footer-logos img:first-child { grid-column: auto; }
}

@media (max-width: 620px) {
  :root { --gutter: 20px; }
  .brand { padding-right: 58px; }
  .brand-text small { white-space: normal; }
  .figma-grid,
  .directory-grid,
  .content-index,
  .bento-grid,
  .notices-card li { grid-template-columns: 1fr; }
  .filter-bar { grid-column: auto; }
  .hero-card,
  .page-hero { padding: 32px 24px; }
  .hero-card h1,
  .page-hero h1 { font-size: 31px; }
  .event-card,
  .fund-card,
  .feature-card,
  .magazine-card > div,
  .notices-card,
  .co-card,
  .content-card,
  .directory-card { min-height: 0; padding: 26px; }
  .notices-card li { align-items: start; gap: 4px; padding: 14px 0; }
  .notices-card span { justify-self: start; }
  .text-link.offset { margin-left: 0; margin-right: 12px; }
  .footer-bar { align-items: start; flex-direction: column; gap: 8px; }
}

/* Footer Logo Adjustments */
.footer-logos img.logo-top-large {
  max-height: 140px;
  padding: 8px 16px;
  grid-column: 1 / -1;
}
.footer-logos img.logo-collaborare-small {
  max-height: 50px;
  width: auto;
  grid-column: 1 / -1;
  justify-self: center;
}
