/* Componentes dinâmicos do site (ver re-dynamic.js). Herdam fonte e cor do tema da seção. */

.re-block { width: 100%; }
.re-block--wide { padding: 0 0 4vw; }

.re-empty { text-align: center; opacity: .7; padding: 2rem 0; }

/* ------------------------------------------------------------ carrossel (home) */

.re-carousel { width: 100%; }
.re-carousel-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.re-carousel-title {
  margin: 0; font-family: var(--heading-font-font-family, inherit);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.re-carousel-nav { display: flex; gap: .5rem; }
.re-carousel-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid currentColor; background: transparent; color: inherit;
  font-size: 1.1rem; cursor: pointer; opacity: .8; transition: opacity .2s, transform .2s;
}
.re-carousel-btn:hover { opacity: 1; transform: scale(1.05); }

.re-carousel-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 2rem) / 3);
  gap: 2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: .25rem;
}
.re-carousel-track::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .re-carousel-track { grid-auto-columns: calc((100% - 2rem) / 2); } }
@media (max-width: 600px) { .re-carousel-track { grid-auto-columns: 85%; gap: 1rem; } }

.re-card { scroll-snap-align: start; text-align: center; display: flex; flex-direction: column; }
.re-card-media {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: rgba(127, 127, 127, .15);
}
.re-card-media img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease;
}
.re-card:hover .re-card-media img { transform: scale(1.04); }
.re-datebox {
  position: absolute; top: 12px; left: 12px; background: #fff; color: #000;
  min-width: 52px; padding: 6px 8px; line-height: 1.1; text-align: center;
  display: flex; flex-direction: column; font-size: .8rem; text-transform: lowercase;
}
.re-datebox strong { font-size: 1.4rem; }
.re-card-body { padding-top: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.re-card-kicker { margin: 0; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.re-card-title { margin: 0; font-size: 1.35rem; font-family: var(--heading-font-font-family, inherit); }
.re-card-text {
  margin: 0; font-size: .95rem; line-height: 1.5; opacity: .9;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.re-card-more { margin-top: auto; padding-top: .5rem; color: inherit; font-weight: 600; text-decoration: none; }
.re-card-more:hover { text-decoration: underline; }

/* ------------------------------------------------------------ lista de eventos */

.re-meta-celula { opacity: .75; }

/* ------------------------------------------------------------ pessoas */

.re-people {
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  max-width: 1200px; margin: 0 auto; padding: 0 4vw;
}

.re-person { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.re-person[hidden] { display: none; }
.re-person-photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin-bottom: .6rem;
  background: rgba(127, 127, 127, .15);
}
.re-person-photo--empty {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 600; letter-spacing: .05em; opacity: .7;
}
.re-person-name { margin: 0; font-size: 1.1rem; font-weight: 700; font-family: inherit; }
.re-person-role { margin: 0; opacity: .85; }
.re-person-linkedin {
  display: inline-flex; align-items: center; gap: .35rem; margin-top: .25rem;
  color: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.re-person-linkedin svg { flex: none; }

/* ------------------------------------------------------------ membros (por categoria) */

.re-members-group { max-width: 1120px; margin: 0 auto; padding: 0 4vw; }
.re-members-group + .re-members-group { margin-top: clamp(3rem, 6vw, 5rem); }
.re-members-title {
  text-align: center; margin: 0 0 2.25rem; font-family: var(--heading-font-font-family, inherit);
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 400; letter-spacing: .01em;
}
.re-members-title::after {
  content: ""; display: block; width: 48px; height: 2px; margin: .9rem auto 0;
  background: currentColor; opacity: .25;
}
.re-members-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.re-members-grid--single { grid-template-columns: minmax(0, 540px); justify-content: center; }
@media (max-width: 767px) { .re-members-grid { grid-template-columns: minmax(0, 1fr); } }

.re-member {
  display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem;
  border: 1px solid rgba(10, 31, 44, .1); border-radius: 14px;
  background: rgba(10, 31, 44, .025); transition: box-shadow .2s, transform .2s;
}
.re-member:hover { box-shadow: 0 8px 28px rgba(10, 31, 44, .1); transform: translateY(-2px); }
.re-member-photo {
  flex: none; width: 112px; height: 112px; border-radius: 50%; overflow: hidden;
  background: #e9ebee; display: grid; place-items: center;
}
.re-member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.re-member-photo span { font-size: 1.9rem; font-weight: 600; letter-spacing: .04em; color: #7a8590; }
.re-member-info { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.re-member-name {
  margin: 0 0 .15rem; display: flex; align-items: center; gap: .5rem;
  font-family: inherit; font-size: 1.15rem; font-weight: 700; line-height: 1.25;
}
.re-isotipo { flex: none; width: 18px; height: 18px; color: #0a1f2c; }
.re-member-cargo { margin: 0; font-weight: 600; opacity: .9; }
.re-member-curso { margin: 0; font-size: .92rem; opacity: .7; }
.re-member-links { display: flex; align-items: center; gap: .75rem; margin-top: .45rem; flex-wrap: wrap; }
.re-member-email {
  color: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px;
  overflow-wrap: anywhere; opacity: .85;
}
.re-member-email:hover { opacity: 1; }
.re-member-linkedin { color: #0a66c2; display: inline-flex; line-height: 0; }
.re-member-linkedin svg { width: 22px; height: 22px; }
.re-member-linkedin:hover { color: #004182; }
@media (max-width: 480px) {
  .re-member { gap: 1rem; padding: 1.1rem; }
  .re-member-photo { width: 84px; height: 84px; }
}

/* ------------------------------------------------------------ parceiros (células) */

/* O bloco ocupa a área dos logos originais no grid do Squarespace; centraliza o conteúdo nela. */
[class*="fe-block-re-parceiros"] { align-self: center; }
.re-block--parceiros { width: 100%; }
/* No máximo 2 colunas (como o layout original); 1 coluna quando a área é estreita. */
.re-partners {
  /* Área visual de cada logo ≈ k². Proporcional à janela porque as colunas do grid do
     Squarespace também são: 7,3vw é o máximo em que o logo mais largo ainda cabe na coluna
     mais estreita (Asset Management/Incorporação), então todos ficam iguais e nenhum é cortado. */
  --logo-k: min(7.3vw, 150px);
  width: 100%; display: grid; gap: 1.75rem 1.5rem; align-items: center;
  /* Quantas colunas couberem com cada logo inteiro (largura mínima ≈ a do logo mais largo comum,
     proporção ~5:1): Equity Research fica em 2 colunas e células estreitas empilham os logos. */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, calc(var(--logo-k) * 2.3)), 1fr));
}
/* Um logo sozinho na última linha fica centralizado. */
.re-partners > .re-partner:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Até 2 parceiros: logos empilhados, como no layout original das células. */
.re-partners--stack { grid-template-columns: minmax(0, 1fr); }
/* Caixa de altura fixa e logo centralizado nela. */
.re-partner {
  height: calc(var(--logo-k) * 1.2 + 8px); display: flex; align-items: center; justify-content: center;
  padding: 0; color: inherit; text-decoration: none; background: transparent;
}
/* Largura = k × √(proporção do logo, já sem margens): logos largos ficam mais baixos,
   compactos mais altos, e todos com aproximadamente a mesma área (ver normalizeLogo). */
.re-logo {
  display: block; width: calc(var(--logo-k) * var(--sr, 1.85)); height: auto;
  max-width: 100%; max-height: calc(var(--logo-k) * 1.15); object-fit: contain;
  opacity: 0; transition: opacity .3s ease, transform .2s ease;
}
.re-logo.is-ready { opacity: 1; }
a.re-partner:hover .re-logo { transform: scale(1.05); }
.re-partner-name { font-weight: 600; text-align: center; }
@media (max-width: 767px) {
  .re-partners, .re-partners--stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .re-partners { --logo-k: 54px; } /* cabe nas colunas mais estreitas (~110px) */
  /* No celular: sempre 2 colunas (as colunas do layout são estreitas). */
}

/* ------------------------------------------------------------ rodapé: acesso ao painel */

.re-admin-link {
  display: inline-flex; align-items: center; gap: .3em; margin-left: .9em;
  font-size: .85em; color: inherit !important; opacity: .45;
  text-decoration: none !important; white-space: nowrap; transition: opacity .2s;
}
.re-admin-link:hover, .re-admin-link:focus-visible { opacity: .85; }
.re-admin-link svg { flex: none; }

/* ------------------------------------------------------------ formulários (comum) */

.re-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.re-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.re-form-msg { flex-basis: 100%; margin: .25rem 0 0; min-height: 1.4em; font-size: .95rem; }
.re-form-msg.is-ok { color: #1f7a45; }
.re-form-msg.is-error { color: #b3261e; }

.re-email-form { display: flex; flex-wrap: wrap; gap: .6rem; }
.re-email-form input[type="email"] {
  flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1rem; color: #071f28;
  background: #fff; border: 1px solid #c9d0d4; border-radius: 300px; padding: .8rem 1.2rem;
}
.re-email-form input[type="email"]:focus { outline: none; border-color: #104c66; box-shadow: 0 0 0 3px rgba(16, 76, 102, .15); }
.re-email-form input[aria-invalid="true"] { border-color: #b3261e; }
.re-email-form button {
  flex: none; font: inherit; font-size: 1rem; font-weight: 600; color: #fff; cursor: pointer;
  background: #104c66; border: 0; border-radius: 300px; padding: .8rem 1.6rem; transition: background .2s;
}
.re-email-form button:hover { background: #16607f; }
.re-email-form button:disabled { opacity: .6; cursor: progress; }
.re-email-form--out button { background: transparent; color: #104c66; box-shadow: inset 0 0 0 1px #104c66; }
.re-email-form--out button:hover { background: rgba(16, 76, 102, .08); }

/* ------------------------------------------------------------ página da Newsletter */

.re-nl-page { max-width: 1120px; margin: 0 auto; padding: 0 4vw; text-align: left; }
.re-nl-intro {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: start;
}
/* O custom.css do site (Squarespace) força "margin-bottom: 2px !important" nos <p> desta seção
   (herdada da página Alumni); por isso o !important aqui. */
.re-nl-page .re-nl-text p { margin: 0 0 1.1em !important; font-size: 1.1rem; line-height: 1.7; }
.re-nl-page .re-nl-text p:last-child { margin-bottom: 0 !important; }
.re-nl-card {
  background: #f3f5f6; border: 1px solid rgba(7, 31, 40, .08); border-radius: 16px; padding: 1.75rem;
}
.re-nl-card-title { margin: 0 0 .25rem; font-family: var(--heading-font-font-family, inherit); font-weight: 400; font-size: 1.6rem; }
.re-nl-card-sub { margin: 0 0 1rem; opacity: .75; }
.re-nl-out { margin-top: 1.25rem; border-top: 1px solid rgba(7, 31, 40, .1); padding-top: 1rem; }
.re-nl-out summary { cursor: pointer; font-size: .95rem; opacity: .8; }
.re-nl-out summary:hover { opacity: 1; text-decoration: underline; }
.re-nl-out p { margin: .75rem 0; font-size: .95rem; opacity: .8; }

.re-nl-archive { margin-top: clamp(3rem, 6vw, 4.5rem); }
.re-nl-archive-title {
  text-align: center; margin: 0 0 2rem; font-family: var(--heading-font-font-family, inherit);
  font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.re-nl-archive-title::after {
  content: ""; display: block; width: 48px; height: 2px; margin: .9rem auto 0; background: currentColor; opacity: .25;
}
.re-nl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.re-nl-item { display: flex; flex-direction: column; border: 1px solid rgba(7, 31, 40, .1); border-radius: 14px; overflow: hidden; background: #fff; }
.re-nl-cover { display: block; aspect-ratio: 4 / 3; background: #eef1f3; overflow: hidden; }
.re-nl-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .4s ease; }
a.re-nl-cover:hover img { transform: scale(1.03); }
.re-nl-item-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.re-nl-item-date { margin: 0; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.re-nl-item-title { margin: 0; font-size: 1.15rem; font-weight: 700; font-family: inherit; line-height: 1.3; }
.re-nl-item-text { margin: 0; font-size: .95rem; line-height: 1.55; opacity: .85; }
.re-nl-item-link { margin-top: auto; padding-top: .5rem; font-weight: 600; color: #104c66; text-decoration: none; }
.re-nl-item-link:hover { text-decoration: underline; }

@media (max-width: 767px) {
  .re-nl-intro { grid-template-columns: minmax(0, 1fr); }
  .re-email-form button { flex: 1 1 100%; }
}

/* ------------------------------------------------------------ contato (medidas do formulário original) */

.re-contact { text-align: left; font-family: "Source Sans Pro", "Source Sans 3", inherit; color: #071f28; }
.re-contact-field { margin-bottom: 18px; }
.re-contact label { display: block; font-size: 18px; line-height: 1.5; margin-bottom: 6px; }
.re-contact-req { font-size: 15px; opacity: .7; margin-left: .35em; }
.re-contact input, .re-contact textarea {
  display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: 18px; color: #071f28;
  background: #fff; border: 1px solid transparent; border-radius: 7.2px; padding: 5px 10px;
}
.re-contact input { height: 39px; }
.re-contact textarea { height: 100px; resize: vertical; }
.re-contact input:focus, .re-contact textarea:focus { outline: none; border-color: #104c66; }
.re-contact [aria-invalid="true"] { border-color: #b3261e; }
.re-contact-error { margin: 6px 0 0; font-size: 15px; color: #b3261e; }
.re-contact button[type="submit"] {
  font-family: Inter, sans-serif; font-size: 18px; font-weight: 300; color: #fff; cursor: pointer;
  background: #104c66; border: 0; border-radius: 300px; padding: 18px 23.4px; transition: background .2s;
}
.re-contact button[type="submit"]:hover { background: #16607f; }
.re-contact button[type="submit"]:disabled { opacity: .6; cursor: progress; }
.re-contact-done p { margin: 0; font-size: 18px; line-height: 1.6; }

/* ------------------------------------------------------------ imagens configuráveis */

img[data-re-config] { opacity: 0; transition: opacity .4s ease; }
img[data-re-config].is-ready { opacity: 1; }

/* Correção da centralização do Menu após adicionar abas */
.header-layout-nav-center .header-title-nav-wrapper {
  flex: 1 1 100%;
  display: flex;
  justify-content: center;
  position: static;
}
.header-layout-nav-center .header-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  text-align: center;
  z-index: 50; /* Garante que os botões sejam clicáveis */
  pointer-events: auto;
}
.header-layout-nav-center .header-title {
  margin-right: auto;
  z-index: 10;
}

/* ------------------------------------------------------------ Newsletter desligada (Configurações) */

.re-sem-newsletter .header-nav-item:has(> a[href$="newsletter.html"]),
.re-sem-newsletter .header-menu-nav-item:has(> a[href$="newsletter.html"]) { display: none !important; }
.re-nl-card--saida { max-width: 560px; margin: 0 auto; }

/* ------------------------------------------------------------ privacidade (LGPD) */

.re-form-aviso { margin: .6rem 0 0; font-size: .85rem; line-height: 1.5; opacity: .7; }
.re-form-aviso a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.re-legal { max-width: 760px; margin: 0 auto; padding: 0 4vw; text-align: left; }
.re-legal h2 {
  margin: 2rem 0 .6rem; font-family: var(--heading-font-font-family, inherit); font-weight: 400; font-size: 1.45rem;
}
/* custom.css do Squarespace força margin-bottom 2px nos <p> desta seção (herdada da Alumni). */
.re-legal p, .re-legal li { font-size: 1.05rem; line-height: 1.7; }
.re-legal p { margin: 0 0 1em !important; }
.re-legal ul { margin: 0 0 1em; padding-left: 1.25rem; }
.re-legal li { margin-bottom: .4em; }
.re-legal a { color: #104c66; }
.re-legal-data { font-size: .9rem !important; opacity: .65; }

/* ------------------------------------------------------------ carrossel "Nossos parceiros" (página inicial) */
/* Mostra só os parceiros marcados "Aparecer no carrossel" no painel (Parceiros). */

.re-marquee-section {
  /* "page-section" do Squarespace põe o conteúdo lado a lado; aqui o título fica em cima dos logos. */
  display: block !important;
  background: #f9f9f9; padding: 40px 0; overflow: hidden;
  border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea;
}
.re-marquee-section[hidden] { display: none; }
.re-marquee-title {
  text-align: center; font-family: Montserrat, sans-serif; font-weight: 600; font-size: 1.6rem;
  color: #071f28; margin: 0 0 30px;
}
.re-marquee-viewport { overflow: hidden; width: 100%; }
.re-marquee-track {
  display: flex; width: fit-content; align-items: center;
  animation: marquee var(--re-marquee-dur, 30s) linear infinite;
}
.re-marquee-copy { display: contents; } /* segunda volta da lista, para o movimento não ter emenda */
.re-marquee-item { flex-shrink: 0; padding: 0 50px; }
.re-marquee-item[hidden] { display: none; }
.re-marquee-item img {
  display: block; height: 60px; width: auto; max-width: 240px; object-fit: contain;
  filter: grayscale(100%) opacity(0.5); transition: filter 0.3s ease; visibility: hidden;
}
.re-marquee-item img.is-ready { visibility: visible; }
.re-marquee-item img:hover { filter: grayscale(0%) opacity(1); }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .re-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 24px; }
  .re-marquee-copy { display: none; }
}
@media (max-width: 767px) {
  .re-marquee-item { padding: 0 28px; }
  .re-marquee-item img { height: 44px; }
}

