/*
Theme Name: Rede de Pesquisa Marxista na Saúde
Theme URI: https://example.org/rede-marxista-saude
Author: Rede de Pesquisa Marxista na Saúde
Description: Tema acadêmico-institucional para uma rede de grupos universitários de pesquisa em saúde.
Version: 1.10.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rede-marxista-saude
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --rms-wine: #651c2b;
  --rms-red: #9e2638;
  --rms-cream: #f4e9db;
  --rms-ivory: #fbf3e9;
  --rms-gold: #b78a45;
  --rms-charcoal: #241e1b;
  --rms-muted: #6e6159;
  --rms-line: rgba(101, 28, 43, 0.2);
  --rms-container: 84.25rem;
  --rms-gutter: clamp(1.25rem, 4vw, 3.5rem);
  /* Tipografia: troque --font-title para "Poppins" se preferir. */
  --font-title: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --rms-serif: var(--font-title);
  --rms-sans: var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--rms-ivory);
  color: var(--rms-charcoal);
  font-family: var(--rms-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rms-wine); text-underline-offset: 0.2em; }
a:hover { color: var(--rms-red); }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.65em;
  color: var(--rms-wine);
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0 0 1.25em; }

.container { width: min(100% - (2 * var(--rms-gutter)), var(--rms-container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 0.75rem; left: 0.75rem; transform: translateY(-180%); padding: 0.75rem 1rem; background: var(--rms-ivory); color: var(--rms-wine); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--rms-gold); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

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

/* Elementos editoriais compartilhados */
.section { padding-block: clamp(4rem, 7vw, 6.5rem); }
.section-context { margin-bottom: 0.9rem; color: var(--rms-red); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.6fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2, .feature-intro h2, .learning-main h2, .library-title h2 { margin-bottom: 0; font-size: clamp(1.9rem, 3vw, 2.9rem); }
.feature-intro h2, .learning-main h2, .library-title h2 { margin-bottom: 0.65em; }
.section-heading > p, .section-heading > .text-link { justify-self: end; max-width: 30rem; margin-bottom: 0.4rem; color: var(--rms-muted); }
.section-heading > .text-link { color: var(--rms-wine); }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; padding: 0.72rem 1.4rem; border: 1px solid transparent; border-radius: 2px; color: inherit; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.button-light { background: var(--rms-ivory); color: var(--rms-wine); }
.button-dark { background: var(--rms-wine); color: var(--rms-ivory); }
.button-outline { border-color: var(--rms-wine); color: var(--rms-wine); }
.button:hover { background: var(--rms-red); border-color: var(--rms-red); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--rms-wine); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.text-link::after { content: ""; width: 1.8rem; height: 1px; background: currentColor; transition: width 180ms ease; }
.text-link:hover::after { width: 2.6rem; }
.text-link-light { color: var(--rms-ivory); }
.text-link-light:hover { color: var(--rms-ivory); }
.is-demo { position: relative; }
.demo-badge { display: inline-block; margin-bottom: 0.55rem; padding: 0.2rem 0.45rem; background: var(--rms-gold); color: var(--rms-charcoal); font-size: 0.65rem; font-weight: 700; line-height: 1.25; }
/* Avisos de demonstração: visíveis só para quem edita o site. */
body:not(.rms-show-demo) .demo-badge, body:not(.rms-show-demo) .demo-hint { display: none !important; }
.compact-card .demo-badge, .group-card .demo-badge { position: absolute; top: 1rem; right: 1rem; margin: 0; }
.compact-card .demo-badge { top: 2rem; right: 0; }

/* Hero — banner compacto (350px a 1486px de largura) */
.hero {
  --hero-cream: #f6dfc7;
  position: relative;
  height: clamp(300px, 23.55vw, 380px);
  overflow: hidden;
  background: var(--hero-cream) url("assets/images/hero-paper.jpg") repeat-x left top / auto 100%;
  color: #24110e;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-media picture { display: block; }
.hero-media img { position: absolute; top: 0; right: 0; display: block; width: auto; max-width: none; height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%); mask-image: linear-gradient(90deg, transparent 0, #000 6%); }
.hero-inner { position: relative; z-index: 2; height: 100%; width: min(100% - 2 * clamp(16px, 2.5vw, 40px), 1400px); margin-inline: auto; }
.hero-copy { position: absolute; top: 47px; left: 24px; padding-left: 40px; }
.hero-copy::before { content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 121px; background: linear-gradient(to bottom, #e8691f, #ad1008 50%, #e8691f); }
.hero h1 { max-width: 560px; margin: 0; color: #24110e; font-family: "Red Hat Display", var(--font-title); font-size: 51.1px; font-weight: 900; line-height: 52px; letter-spacing: 0; text-wrap: wrap; }
.hero-lead { margin: 14px 0 0; color: #060606; font-family: var(--font-body); font-size: 22.6px; font-weight: 350; line-height: 28px; letter-spacing: 0; }
.hero-button { white-space: nowrap; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: 240px; height: 46px; margin: 19px 0 0 1px; padding: 0 22px 0 23px; border-radius: 7px; background: #9e0f0f; color: #fff; font-family: var(--font-body); font-size: 18px; font-weight: 600; text-decoration: none; box-shadow: 0 2px 6px rgba(120, 10, 10, 0.25); transition: background 160ms ease, transform 160ms ease; }
.hero-button:hover { background: #b51414; color: #fff; }
.hero-button:hover svg { transform: translateX(3px); }
.hero-button svg { transition: transform 160ms ease; }

/* Apresentação */
.section-about { background: var(--rms-ivory); }
.about-grid { display: grid; grid-template-columns: 4rem minmax(0, 1.15fr) minmax(18rem, 0.65fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.section-mark { position: relative; width: 3rem; height: 5rem; border-left: 1px solid var(--rms-gold); }
.section-mark::before, .section-mark::after, .section-mark span { content: ""; position: absolute; left: -0.28rem; width: 0.5rem; height: 0.5rem; background: var(--rms-wine); border-radius: 50%; }
.section-mark::before { top: 0; }.section-mark span { top: 47%; }.section-mark::after { bottom: 0; }
.about-grid h2 { max-width: 20ch; font-size: clamp(1.9rem, 3.2vw, 3.1rem); }
.about-copy { max-width: 36rem; padding-top: 2rem; font-size: 1.06rem; }

/* Grupos */
.section-groups { background: var(--rms-cream); }
.groups-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 2.6rem; border-top: 1px solid var(--rms-line); border-left: 1px solid var(--rms-line); }
.group-card { position: relative; min-height: 16rem; display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; border-right: 1px solid var(--rms-line); border-bottom: 1px solid var(--rms-line); transition: background 180ms ease, color 180ms ease; }
.group-card:hover { background: var(--rms-wine); color: var(--rms-ivory); }
.group-node { width: 0.7rem; height: 0.7rem; margin-bottom: auto; background: var(--rms-gold); border-radius: 50%; box-shadow: 0 0 0 0.4rem rgba(183,138,69,0.12); }
.group-university { margin: 2.5rem 0 0.75rem; color: var(--rms-red); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.group-card h3 { font-size: clamp(1.15rem, 1.5vw, 1.35rem); overflow-wrap: anywhere; }
.group-card h3 a { color: inherit; text-decoration: none; }
.group-card > p:not(.group-university) { margin-bottom: 0; color: var(--rms-muted); font-size: 0.86rem; }
.group-card:hover h3, .group-card:hover .group-university, .group-card:hover > p:not(.group-university) { color: inherit; }
.card-action { margin-top: auto; font-size: 0.76rem; font-weight: 800; }
.group-card:not(:hover) .card-action { color: var(--rms-wine); }
.group-card:hover .card-action { color: var(--rms-ivory); }

/* Projetos e cards */
.section-projects { background: var(--rms-ivory); }
.split-feature { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(28rem, 1.22fr); gap: clamp(3rem, 9vw, 8rem); }
.feature-intro { position: sticky; top: 2rem; align-self: start; }
.feature-intro p:not(.section-context) { max-width: 32rem; color: var(--rms-muted); }
.feature-list { border-top: 1px solid var(--rms-line); }
.compact-card { position: relative; padding: 2rem 0; border-bottom: 1px solid var(--rms-line); }
.compact-card > span, .card-label { color: var(--rms-red); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.compact-card h3 { margin-top: 0.55rem; font-size: clamp(1.25rem, 1.8vw, 1.6rem); }
.compact-card p { max-width: 48rem; margin-bottom: 0; color: var(--rms-muted); }
.content-card { overflow: hidden; background: var(--rms-ivory); border: 1px solid var(--rms-line); }
.card-image { aspect-ratio: 4 / 2.7; display: block; overflow: hidden; background: var(--rms-wine); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.content-card:hover .card-image img { transform: scale(1.025); }
.card-image-placeholder { position: relative; background: linear-gradient(145deg, var(--rms-wine), #3e111b); }
.card-image-placeholder::before, .card-image-placeholder::after, .card-image-placeholder span { content: ""; position: absolute; border: 1px solid rgba(229,201,147,0.5); border-radius: 50%; }
.card-image-placeholder::before { width: 5rem; height: 5rem; top: 18%; left: 16%; }
.card-image-placeholder::after { width: 8rem; height: 8rem; right: 10%; bottom: -15%; }
.card-image-placeholder span { width: 1rem; height: 1rem; top: 48%; left: 58%; background: var(--rms-gold); }
.card-body { padding: 1.5rem; }
.card-body h3 { margin-top: 0.55rem; font-size: clamp(1.2rem, 1.7vw, 1.5rem); overflow-wrap: anywhere; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-excerpt { color: var(--rms-muted); font-size: 0.9rem; }
.card-excerpt > :last-child { margin-bottom: 0; }

/* Produção */
.section-publications { background: var(--rms-cream); }
.publication-grid, .archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.publication-placeholder { min-height: 18rem; padding: 2rem; display: flex; flex-direction: column; background: var(--rms-ivory); border: 1px solid var(--rms-line); }
.publication-glyph { position: relative; width: 5rem; height: 6.5rem; margin-bottom: auto; border: 1px solid var(--rms-wine); box-shadow: 0.55rem 0.55rem 0 var(--rms-gold); }
.publication-glyph::before, .publication-glyph::after { content: ""; position: absolute; left: 0.8rem; right: 0.8rem; height: 1px; background: var(--rms-line); }
.publication-glyph::before { top: 2rem; }.publication-glyph::after { top: 3rem; }
.publication-placeholder p { margin: 2.5rem 0 0.5rem; color: var(--rms-red); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
.publication-placeholder h3 { margin-bottom: 0.4rem; font-size: 1.35rem; }
.publication-placeholder > span:last-child { color: var(--rms-muted); font-size: 0.83rem; }

/* Formação */
.section-learning { position: relative; overflow: hidden; background: var(--rms-wine); color: var(--rms-ivory); }
.section-learning::before { content: ""; position: absolute; inset: 0; background-image: url("assets/images/paper-grain.svg"); opacity: 0.15; pointer-events: none; }
.learning-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(24rem, 0.95fr); gap: clamp(3rem, 10vw, 10rem); }
.learning-main h2 { max-width: 13ch; color: var(--rms-ivory); }
.learning-main .section-context { color: #e5c993; }
.learning-options { border-top: 1px solid rgba(255,255,255,0.25); }
.learning-options article { padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.25); }
.learning-options h3 { margin-bottom: 0.4rem; color: var(--rms-ivory); font-family: var(--rms-sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.learning-options p { margin-bottom: 0; color: #e5d7c6; font-size: 0.9rem; }

/* Eventos */
.section-events { background: var(--rms-ivory); }
.events-grid { display: grid; grid-template-columns: minmax(18rem, 0.65fr) minmax(0, 1.35fr); gap: clamp(3rem, 10vw, 9rem); }
.events-grid > div:first-child h2 { font-size: clamp(1.9rem, 3vw, 2.9rem); }
.events-grid > div:first-child > p:not(.section-context) { color: var(--rms-muted); }
.event-list { border-top: 1px solid var(--rms-line); }
.event-item { display: grid; grid-template-columns: 5rem 1fr; gap: 1.5rem; padding: 1.7rem 0; border-bottom: 1px solid var(--rms-line); }
.event-item { align-items: center; }
.event-item time { color: var(--rms-red); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-align: center; text-transform: uppercase; }
.event-item time strong { display: block; color: var(--rms-wine); font-family: var(--font-title); font-size: 2.4rem; font-weight: 800; line-height: 0.95; }
.event-item p { margin-bottom: 0.25rem; color: var(--rms-muted); font-size: 0.78rem; }
.event-item h3 { min-width: 0; margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); overflow-wrap: anywhere; }
.event-item h3 a { color: inherit; text-decoration: none; }

/* Biblioteca e chamada */
.section-library { background: var(--rms-charcoal); color: var(--rms-ivory); }
.library-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(24rem, 1.15fr); gap: clamp(3rem, 10vw, 10rem); align-items: end; }
.library-title > img { width: 8rem; margin-bottom: 3rem; }
.library-title h2 { max-width: 12ch; color: var(--rms-ivory); }
.library-title > p:not(.section-context) { max-width: 34rem; color: #d9cbbb; }
.library-title .section-context { color: #e5c993; }
.library-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.2); }
.library-index li { display: flex; gap: 1.4rem; padding: 1.3rem 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-family: var(--font-title); font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 600; }
.library-index span { color: var(--rms-gold); font-family: var(--rms-sans); font-size: 0.7rem; font-weight: 800; }
.network-cta { padding-block: 4rem; background: var(--rms-gold); }
.network-cta-inner { display: grid; grid-template-columns: 1fr minmax(18rem, 0.65fr) auto; gap: 3rem; align-items: center; }
.network-cta h2 { margin: 0; color: var(--rms-charcoal); font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
.network-cta .section-context { color: var(--rms-wine); }
.network-cta p { margin-bottom: 0; }

/* Conteúdo interno */
.content-shell { min-height: 60vh; padding-block: clamp(4rem, 8vw, 8rem); background: var(--rms-ivory); }
.page-header { max-width: 62rem; margin-bottom: 3.5rem; }
.page-header h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 800; overflow-wrap: anywhere; }
.archive-description, .single-deck { max-width: 50rem; color: var(--rms-muted); font-size: 1.18rem; }
.single-layout { max-width: 62rem; }
.single-image { margin: 0 0 3rem; }
.entry-content { font-family: var(--font-body); font-size: clamp(1.02rem, 1.3vw, 1.12rem); line-height: 1.8; }
.entry-content > * { max-width: 46rem; margin-inline: auto; }
.entry-content > .alignwide { max-width: 72rem; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 1.7em; }
.nav-links { display: flex; gap: 0.5rem; justify-content: center; margin-top: 3rem; }
.page-numbers { padding: 0.5rem 0.8rem; border: 1px solid var(--rms-line); text-decoration: none; }
.page-numbers.current { background: var(--rms-wine); color: var(--rms-ivory); }
.error-page { text-align: center; }
.error-page .container { max-width: 46rem; }
.error-number { margin: 0; color: var(--rms-gold); font-family: var(--font-title); font-weight: 800; font-size: clamp(7rem, 20vw, 15rem); line-height: 0.8; }
.error-page h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); }

@media (max-width: 1100px) {
  .groups-grid { grid-template-columns: repeat(2, 1fr); }
  .network-cta-inner { grid-template-columns: 1fr auto; }
  .network-cta-inner > p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 760px) {
  :root { --rms-gutter: 1.2rem; }
  .section-heading > p, .section-heading > .text-link { justify-self: start; }
  .about-grid { grid-template-columns: 2rem 1fr; gap: 1.5rem; }
  .about-copy { grid-column: 2; padding-top: 0; }
  .section-heading, .split-feature, .learning-grid, .events-grid, .library-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-heading { gap: 1rem; }
  .feature-intro { position: static; }
  .groups-grid { grid-template-columns: 1fr; }
  .group-card { min-height: 15rem; }
  .publication-grid, .archive-grid { grid-template-columns: 1fr; }
  .publication-placeholder { min-height: 21rem; }
  .network-cta-inner { grid-template-columns: 1fr; }
  .network-cta-inner > p { grid-column: auto; grid-row: auto; }
  .network-cta .button { justify-self: start; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 420px) {
  .event-item { grid-template-columns: 4rem 1fr; gap: 1rem; }
}

/* ==========================================================================
   Cabeçalho — fiel à referência (medidas a 1487px de largura)
   ========================================================================== */
.site-header {
  --hdr-bg: #f7f1eb;
  --hdr-red: #8a0e10;
  --hdr-bar: #721513;
  --hdr-btn: #8d0e0f;
  --hdr-ink: #1c1b1b;
  --hdr-font: var(--font-body);
  position: relative;
  z-index: 100;
  font-family: var(--hdr-font);
}
.header-container { width: min(100% - 2 * clamp(16px, 2.5vw, 40px), 1400px); margin-inline: auto; }
.header-top { position: relative; background: var(--hdr-bg); }
.header-top-inner { height: 96px; display: flex; align-items: center; }

/* Marca */
.brand { display: flex; align-items: center; flex: none; color: var(--hdr-red); text-decoration: none; }
.brand:hover { color: var(--hdr-red); }
.brand-mark { display: block; width: 104px; height: 72px; margin-left: 26.5px; flex: none; }
.brand-mark-image { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.brand-mark-placeholder { position: relative; display: block; width: 100%; height: 100%; }
.brand-mark-placeholder::before, .brand-mark-placeholder::after { content: ""; position: absolute; background: #9b1014; border-radius: 3px; }
.brand-mark-placeholder::before { left: 22px; top: 0; width: 30px; height: 72px; }
.brand-mark-placeholder::after { left: 0; top: 21px; width: 74px; height: 30px; }
.brand-name { display: flex; flex-direction: column; margin-left: 17px; font-family: var(--font-title); font-size: 30px; font-weight: 400; line-height: 32px; letter-spacing: -0.01em; white-space: nowrap; transform: translateY(-1.5px); }
.brand-divider { flex: none; width: 2px; height: 54px; margin-left: 24px; background: #d2b3ad; transform: translateY(-1.5px); }
.brand-tagline { display: flex; flex-direction: column; margin: 0 0 0 18px; color: #1d1c1b; font-size: 16px; font-weight: 400; line-height: 19px; white-space: nowrap; transform: translateY(-1.5px); }

/* Ações */
.header-actions { display: flex; align-items: center; margin-left: auto; transform: translateY(-5.5px); }
.header-search-toggle { display: inline-flex; align-items: center; gap: 10px; height: 26px; padding: 0; font: inherit; font-size: 15.5px; border: 0; background: none; color: #111; cursor: pointer; transform: translateY(-1.5px); }
.header-search-toggle:hover { color: var(--hdr-red); }
.header-actions-sep { width: 2px; height: 20px; margin: 0 25px 0 27px; background: #77716c; transform: translateY(1px); }
.header-contact { color: var(--hdr-ink); font-size: 15.5px; font-weight: 400; text-decoration: none; transform: translateY(1px); }
.header-contact:hover { color: var(--hdr-red); }
.header-cta { display: inline-flex; align-items: center; height: 44.5px; margin-left: 36px; padding: 0 17px 0 16px; border-radius: 7px; background: var(--hdr-btn); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background 160ms ease; }
.header-cta:hover { background: #a3141a; color: #fff; }
.header-cta-users { margin-right: 11px; }
.header-cta-enter { margin-left: 6px; }

/* Busca */
.header-search { position: absolute; top: 100%; right: 0; left: 0; z-index: 5; padding: 1.1rem 0; background: var(--hdr-bg); border-top: 1px solid rgba(138, 14, 16, 0.15); box-shadow: 0 12px 24px rgba(36, 30, 27, 0.12); }
.header-search[hidden] { display: none; }
.header-search .search-form { display: flex; gap: 0.6rem; max-width: 40rem; margin-left: auto; }
.header-search label { flex: 1; }
.header-search .search-field { width: 100%; height: 44px; padding: 0 14px; border: 1px solid #cdbcb3; border-radius: 7px; background: #fff; font-family: var(--hdr-font); font-size: 16px; }
.header-search .search-submit { height: 44px; padding: 0 20px; border: 0; border-radius: 7px; background: var(--hdr-btn); color: #fff; font-family: var(--hdr-font); font-weight: 700; cursor: pointer; }

/* Barra de navegação */
.primary-navigation { background: linear-gradient(to bottom, #94504d 0 1px, #5f0102 1px 2px, var(--hdr-bar) 2px); }
.primary-menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; justify-content: space-between; align-items: stretch; height: 48px; padding: 0 51px 0 65.5px; }
.primary-menu > li { position: relative; display: flex; }
.primary-menu > li > a { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 0 0 4px; color: #fff; font-size: 16px; font-weight: 400; line-height: 1; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; }
.primary-menu > li > a:hover, .primary-menu > li > a:focus-visible { color: #fff; }
.primary-menu > .current-menu-item > a, .primary-menu > .current_page_item > a { font-weight: 600; }
/* Sublinhado dourado: fixo no item ativo, surge no hover dos demais. */
.primary-menu > li > a::before { content: ""; position: absolute; right: -17px; bottom: 0; left: -18px; height: 3.5px; background: #f7b23a; transform: scaleX(0); transition: transform 180ms ease; }
.primary-menu > li > a:hover::before, .primary-menu > li > a:focus-visible::before,
.primary-menu > li:hover > a::before, .primary-menu > li:focus-within > a::before { transform: scaleX(1); }
.primary-menu > .current-menu-item > a::before, .primary-menu > .current_page_item > a::before, .primary-menu > .current-menu-ancestor > a::before { transform: none; }
.primary-menu > .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.primary-menu .sub-menu { position: absolute; top: 100%; left: -18px; z-index: 10; min-width: 16rem; margin: 0; padding: 6px 0 10px; list-style: none; background: #5e1110; border-radius: 0 0 8px 8px; box-shadow: 0 18px 34px rgba(30, 6, 6, 0.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 150ms ease, transform 150ms ease, visibility 150ms; }
.primary-menu li:hover > .sub-menu, .primary-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.primary-menu .sub-menu a { position: relative; display: block; padding: 11px 22px; color: #f3e6e2; font-size: 15px; font-weight: 400; letter-spacing: 0.01em; text-decoration: none; transition: background 140ms ease, color 140ms ease; }
.primary-menu .sub-menu li + li > a { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.primary-menu .sub-menu a::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 0; width: 3px; background: #f7b23a; border-radius: 0 2px 2px 0; transform: scaleY(0); transition: transform 140ms ease; }
.primary-menu .sub-menu a:hover, .primary-menu .sub-menu a:focus-visible, .primary-menu .sub-menu .current-menu-item > a { background: rgba(255, 255, 255, 0.07); color: #fff; }
.primary-menu .sub-menu a:hover::before, .primary-menu .sub-menu a:focus-visible::before, .primary-menu .sub-menu .current-menu-item > a::before { transform: none; }
.primary-menu .sub-menu a:focus-visible { outline-offset: -3px; }

/* Botão do menu móvel */
.menu-toggle { display: none; width: 44px; height: 44px; margin-left: 14px; padding: 0; border: 0; background: none; color: var(--hdr-red); cursor: pointer; }
.menu-toggle > span, .menu-toggle > span::before, .menu-toggle > span::after { display: block; width: 26px; height: 2.5px; margin: 0 auto; background: currentColor; border-radius: 2px; }
.menu-toggle > span { position: relative; }
.menu-toggle > span::before, .menu-toggle > span::after { content: ""; position: absolute; left: 0; }
.menu-toggle > span::before { top: -8px; }
.menu-toggle > span::after { top: 8px; }
.menu-toggle[aria-expanded="true"] > span { background: transparent; }
.menu-toggle[aria-expanded="true"] > span::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1440px) {
  .primary-menu { padding: 0 1.5rem; }
}
@media (max-width: 1240px) {
  .brand-divider, .brand-tagline { display: none; }
  .primary-menu { padding: 0; }
  .primary-menu > li > a { gap: 7px; font-size: 15px; }
}
@media (max-width: 1100px) {
  .header-top-inner { height: 80px; }
  .brand-mark { width: 78px; height: 54px; margin-left: 0; }
  .brand-mark-placeholder::before { left: 16px; width: 23px; height: 54px; }
  .brand-mark-placeholder::after { top: 16px; width: 56px; height: 23px; }
  .brand-name { margin-left: 12px; font-size: 26px; line-height: 25px; }
  .header-actions { transform: none; }
  .header-search-label { display: none; }
  .header-search-toggle { margin-right: 4px; }
  .header-cta { margin-left: 16px; }
  .menu-toggle { display: block; }
  .primary-navigation { position: absolute; top: 100%; right: 0; left: 0; display: none; background: var(--hdr-bar); box-shadow: 0 16px 30px rgba(36, 30, 27, 0.25); }
  .primary-navigation.is-open { display: block; }
  .primary-menu { display: block; height: auto; padding: 0.5rem 0 1rem; }
  .primary-menu > li { display: block; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .primary-menu > li > a { display: flex; justify-content: space-between; padding: 14px 0; font-size: 16.5px; }
  .primary-menu > li > a::before { right: auto; top: 12px; bottom: 12px; left: -14px; width: 3.5px; height: auto; transform: scaleY(0); }
  .primary-menu > li > a:hover::before, .primary-menu > li > a:focus-visible::before { transform: scaleY(1); }
  .primary-menu .sub-menu { position: static; min-width: 0; padding: 0 0 0.6rem 1rem; background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .primary-menu .sub-menu li + li > a { border-top: 0; }
  .primary-menu .sub-menu a::before { display: none; }
  .primary-menu .sub-menu a { padding: 0.45rem 0; color: #f1dcd8; font-size: 16px; }
  .primary-menu .sub-menu a:hover { background: transparent; color: #fff; }
}
@media (max-width: 600px) {
  .header-top-inner { height: 68px; }
  .brand-mark { width: 58px; height: 40px; }
  .brand-mark-placeholder::before { left: 12px; width: 17px; height: 40px; }
  .brand-mark-placeholder::after { top: 11.5px; width: 41px; height: 17px; }
  .brand-name { margin-left: 9px; font-size: 19px; line-height: 19px; }
  .header-cta { width: 44px; margin-left: 10px; padding: 0; justify-content: center; }
  .header-cta span, .header-cta-enter { display: none; }
  .header-cta-users { margin: 0; }
  .menu-toggle { margin-left: 4px; }
}

/* Hero — tablets e celulares */
@media (max-width: 1100px) {
  .hero { height: 330px; }
  .hero-media img { top: 0; right: -70px; width: auto; height: 100%; }
  .hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-cream) 0, var(--hero-cream) 44%, rgba(246, 223, 199, 0.82) 50%, rgba(246, 223, 199, 0) 58%); pointer-events: none; }
  .hero-copy { top: 36px; left: 4px; }
  .hero h1 { font-size: 38px; line-height: 43px; max-width: 460px; }
  .hero-lead { margin-top: 10px; font-size: 18px; line-height: 23px; }
  .hero-button { height: 44px; width: 232px; margin-top: 20px; font-size: 17px; gap: 18px; }
  .hero-copy::before { height: 100px; }
}
@media (max-width: 700px) {
  .hero { height: auto; }
  .hero::after { display: none; }
  .hero-inner { width: auto; height: auto; padding: 36px 20px 30px; }
  .hero-copy { position: relative; top: auto; left: auto; padding-left: 22px; }
  .hero-copy::before { height: 100%; }
  .hero h1 { max-width: none; font-size: clamp(30px, 9vw, 38px); line-height: 1.14; }
  .hero-lead { font-size: 17px; line-height: 1.5; }
  .hero-lead br { display: none; }
  .hero-button { width: 100%; max-width: 280px; margin-top: 22px; }
  .hero-media { position: relative; inset: auto; order: 2; height: 240px; }
  .hero-media picture, .hero-media img { position: static; width: 100%; height: 100%; }
  .hero { display: flex; flex-direction: column; }
  .hero-inner { order: 1; }
  .hero-media img { object-fit: cover; object-position: 50% 20%; -webkit-mask-image: none; mask-image: none; right: auto; }
}

/* Faixa de acesso rápido (abaixo do hero) */
.quick-strip { background: var(--rms-ivory); }
.quick-strip-inner { display: flex; align-items: center; height: 94px; padding: 0 26px 10px 28px; width: min(100% - 2 * clamp(16px, 2.5vw, 40px), 1400px); margin-inline: auto; }
.qs-item { display: flex; flex: none; align-items: center; gap: 22px; color: #111; text-decoration: none; transition: color 160ms ease; }
.qs-icon { flex: none; color: #a40304; transition: transform 200ms ease; }
.qs-label { font-family: "Roboto", var(--font-body); font-size: 16.4px; font-weight: 700; line-height: 19px; letter-spacing: 0; }
.qs-item:hover { color: #a40304; }
.qs-item:hover .qs-icon { transform: translateY(-2px); }
.qs-item:focus-visible { outline-offset: 8px; }
.qs-sep { position: relative; flex: var(--g) 1 0; align-self: stretch; min-width: 24px; }
.qs-sep::before { content: ""; position: absolute; top: 50%; left: var(--p); width: 1px; height: 49px; background: #cdc4b8; transform: translateY(-50%); }

@media (max-width: 1180px) {
  .quick-strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); height: auto; padding: 18px 0; row-gap: 4px; }
  .qs-sep { display: none; }
  .qs-item { padding: 16px 12px 16px 8px; }
}
@media (max-width: 640px) {
  .quick-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .qs-item { gap: 14px; }
  .qs-icon { transform: scale(0.85); transform-origin: left center; }
  .qs-label { font-size: 14px; }
}

/* Notícias — bloco compacto: destaque em foto cheia + lista com miniaturas */
.section-news { background: var(--rms-ivory); padding-block: clamp(1.5rem, 2.6vw, 2.4rem) clamp(2rem, 3.2vw, 3rem); }
.news-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.1rem; }
.news-head h2 { position: relative; margin: 0; padding-bottom: 12px; color: #1a1210; font-size: clamp(1.3rem, 1.75vw, 1.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.news-head h2::after { content: ""; position: absolute; bottom: 0; left: 0; width: 40px; height: 3px; background: #a40304; }
.news-all { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; color: #a40304; font-family: var(--font-body); font-size: 14.5px; font-weight: 700; text-decoration: none; }
.news-all span { border-bottom: 1.5px solid currentColor; }
.news-all:hover { color: #7d0203; }
.news-all svg { transition: transform 160ms ease; }
.news-all:hover svg { transform: translateX(3px); }

.news-grid { display: grid; grid-template-columns: minmax(0, 1.095fr) minmax(0, 1fr); gap: clamp(1.5rem, 2.7vw, 2.1rem); align-items: stretch; }

/* Destaque */
.news-feature { position: relative; display: flex; align-items: flex-end; width: 100%; min-width: 0; min-height: clamp(300px, 27vw, 440px); overflow: hidden; border-radius: 7px; background: #2a1512; color: #fff; isolation: isolate; }
.news-feature-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 500ms ease; }
.news-feature:hover .news-slide.is-active .news-feature-img { transform: scale(1.03); }
.news-flag { position: absolute; top: 11px; left: 19px; padding: 4px 11px; border-radius: 3px; background: #a40304; color: #fff; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; line-height: 1.35; letter-spacing: 0.03em; text-transform: uppercase; }
.news-feature-body { position: relative; width: 100%; padding: 0 26px 22px 26px; }
.news-feature h3 { margin: 0 0 9px; color: #fff; font-size: clamp(1.15rem, 1.95vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
.news-feature h3 a { color: inherit; text-decoration: none; }
.news-feature h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-feature .news-meta { color: rgba(255, 255, 255, 0.92); }
.news-excerpt { display: -webkit-box; margin: 0 0 9px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; color: #5a4b45; font-family: var(--font-body); font-size: 14px; line-height: 1.5; }
.news-feature .news-excerpt { max-width: 62ch; margin-bottom: 11px; color: rgba(255, 255, 255, 0.88); font-size: 15.5px; }
.news-feature .news-cat::before { background: rgba(255, 255, 255, 0.55); }

/* Metadados: data | categoria */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; margin: 0; font-family: var(--font-body); font-size: 12.5px; line-height: 1.3; color: #4a3d38; }
.news-date, .news-cat { display: inline-flex; align-items: center; gap: 6px; }
.news-cat::before { content: ""; width: 1px; height: 13px; margin: 0 11px 0 11px; background: rgba(36, 30, 27, 0.4); }
.news-date svg, .news-cat svg { flex: none; opacity: 0.85; }
.news-cat { margin: 0; color: inherit; font-size: inherit; font-weight: 400; }

/* Lista */
.news-list { display: flex; flex-direction: column; justify-content: space-between; }
.news-item { display: flex; flex: 1; align-items: center; gap: 22px; padding: 0; }
.news-item + .news-item { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(101, 28, 43, 0.16); }
.news-thumb { position: relative; display: block; flex: none; width: 36%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 5px; background: #2a1512; }
.news-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.news-item:hover .news-thumb img { transform: scale(1.06); }
.news-item-body { min-width: 0; }
.news-item h3 { margin: 0 0 7px; color: #1a1210; font-size: clamp(0.92rem, 1.2vw, 1.1rem); font-weight: 700; line-height: 1.22; letter-spacing: -0.005em; text-wrap: balance; }
.news-item h3 a { color: inherit; text-decoration: none; }
.news-item h3 a:hover { color: #a40304; }

.news-grid--solo { grid-template-columns: 1fr; }
.news-grid--solo .news-feature { min-height: clamp(280px, 30vw, 460px); }

@media (max-width: 1100px) {
  .news-meta { column-gap: 14px; row-gap: 3px; }
  .news-cat::before { display: none; }
}
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .news-feature { min-height: 0; aspect-ratio: 16 / 9; }
  .news-item { padding: 0; }
  .news-item + .news-item { margin-top: 12px; padding-top: 12px; }
  .news-thumb { width: 12rem; }
}
@media (max-width: 560px) {
  .news-head { align-items: center; }
  .news-all span { display: none; }
  .news-feature { min-height: 0; aspect-ratio: 4 / 3; }
  .news-feature-body { padding: 0 16px 14px 18px; }
  .news-item .news-excerpt { display: none; }
  .news-feature .news-excerpt { font-size: 14px; -webkit-line-clamp: 2; }
  .news-thumb { width: 8rem; }
}

/* Post sem imagem destacada: fundo da marca no lugar da foto */
.news-ph { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 80% 20%, rgba(247, 178, 58, 0.22), transparent 45%), linear-gradient(150deg, #7a1b1d, #3a0c10); }
.news-ph::before, .news-ph::after { content: ""; position: absolute; top: 50%; left: 50%; border-radius: 4%; background: rgba(255, 255, 255, 0.1); transform: translate(-50%, -50%); }
.news-ph::before { width: 14%; height: 44%; }
.news-ph::after { width: 44%; height: 14%; }
.news-thumb .news-ph { z-index: 0; }
.news-thumb .news-ph::before { width: 16%; height: 50%; }
.news-thumb .news-ph::after { width: 50%; height: 16%; }

/* Faixa de cartões: Sobre a Rede, Grupos e Próximas Atividades */
.home-cards { padding-block: 0.4rem 2.6rem; background: var(--rms-ivory); }
.home-cards-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.84fr) minmax(0, 1fr); gap: clamp(0.8rem, 1.5vw, 1.2rem); }
.hc { position: relative; overflow: hidden; min-height: clamp(150px, 14.6vw, 225px); border-radius: 9px; }
.hc h2 { margin: 0; color: #1a1210; font-size: clamp(1rem, 1.4vw, 1.3rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.012em; }
.hc p { font-family: var(--font-body); }

.hc-about, .hc-agenda { display: flex; flex-direction: column; padding: clamp(10px, 0.95vw, 14px) clamp(16px, 1.6vw, 22px) clamp(11px, 1.1vw, 15px); background: #f8eadb; }
.hc-about h2::after { content: ""; display: block; width: 34px; height: 2px; margin: 0.5em 0 0.6em; background: #a40304; }
.hc-about p { margin: 0 0 auto; padding-bottom: 0.55rem; color: #1d1512; font-size: clamp(0.7rem, 0.97vw, 0.9rem); line-height: 1.22; }
.hc-link { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; color: #a40304; font-family: var(--font-body); font-size: clamp(0.76rem, 1.04vw, 0.92rem); font-weight: 700; text-decoration: none; }
.hc-link span { border-bottom: 1.5px solid currentColor; }
.hc-link svg { flex: none; width: 1.5em; height: 1.5em; transition: transform 160ms ease; }
.hc-link:hover { color: #7d0203; }
.hc-link:hover svg { transform: translateX(3px); }

.hc-groups { display: block; background: #6c0a0d; color: #fff; isolation: isolate; }
.hc-groups-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; width: 52%; height: 100%; padding: clamp(12px, 1.4vw, 19px) 0 clamp(12px, 1.3vw, 18px) clamp(18px, 1.9vw, 26px); }
.hc-groups h2 { color: #fff; font-size: clamp(1.05rem, 1.55vw, 1.45rem); }
.hc-groups h2::after { content: ""; display: block; width: 34px; height: 3px; margin: 0.5em 0 0.45em; background: #f7b23a; }
.hc-groups p { max-width: 40ch; margin: 0 0 auto; padding-bottom: 0.8rem; color: rgba(255, 255, 255, 0.93); font-size: clamp(0.72rem, 1.03vw, 0.92rem); line-height: 1.32; }
.hc-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-width: clamp(125px, 11.3vw, 150px); height: clamp(27px, 2.3vw, 34px); padding: 0 clamp(11px, 1.1vw, 16px); border: 1.5px solid rgba(255, 255, 255, 0.92); border-radius: 5px; color: #fff; font-family: var(--font-body); font-size: clamp(0.76rem, 1.06vw, 0.94rem); font-weight: 700; text-decoration: none; transition: background 160ms ease, color 160ms ease; }
.hc-button svg { flex: none; width: 1.45em; height: 1.45em; transition: transform 160ms ease; }
.hc-button:hover { background: #fff; color: #9d0507; }
.hc-button:hover svg { transform: translateX(3px); }
.hc-groups-media { position: absolute; inset: 0; z-index: 1; background: #6c0a0d; }
.hc-groups-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 0, 2, 0.5) 0%, rgba(34, 0, 2, 0.28) 40%, transparent 62%); }
.hc-groups-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }

.hc-agenda h2 { display: flex; align-items: center; gap: 10px; margin-bottom: clamp(7px, 0.9vw, 12px); font-size: clamp(0.98rem, 1.33vw, 1.22rem); }
.hc-agenda h2 svg { flex: none; width: 1.3em; height: 1.3em; color: #a40304; }
.hc-events { display: grid; margin: 0 0 auto; padding: 0; list-style: none; }
.hc-events li { display: flex; align-items: center; gap: clamp(9px, 1vw, 14px); padding: clamp(6px, 0.7vw, 9px) 0; }
.hc-events li + li { border-top: 1px solid rgba(101, 28, 43, 0.16); }
.hc-events li:first-child { padding-top: 0; }
.hc-date { display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; width: clamp(38px, 3.6vw, 50px); height: clamp(31px, 2.8vw, 40px); border-radius: 6px; background: rgba(164, 3, 4, 0.13); color: #a40304; font-family: var(--font-body); font-size: clamp(8px, 0.72vw, 10px); font-weight: 700; line-height: 1; text-transform: uppercase; }
.hc-date b { font-family: var(--font-title); font-size: clamp(13px, 1.2vw, 17px); font-weight: 800; line-height: 1.05; }
.hc-events strong { display: block; font-family: var(--font-body); font-size: clamp(0.72rem, 1.04vw, 0.92rem); font-weight: 700; line-height: 1.25; }
.hc-events strong a { color: #1a1210; text-decoration: none; }
.hc-events strong a:hover { color: #a40304; }
.hc-events span { display: block; color: #3b2f2a; font-size: clamp(0.72rem, 1.02vw, 0.9rem); line-height: 1.25; }
.hc-agenda .hc-link { margin-top: clamp(8px, 0.9vw, 12px); }

@media (max-width: 1100px) {
  .home-cards-grid { grid-template-columns: 1fr 1fr; }
  .hc { min-height: 0; }
  .hc-groups { grid-column: 1 / -1; order: -1; min-height: 190px; }
  .hc-about p, .hc-groups p, .hc-events strong, .hc-events span, .hc-link, .hc-button { font-size: 0.9rem; }
  .hc h2 { font-size: 1.3rem; }
  .hc-about, .hc-agenda { padding: 18px 22px; }
  .hc-groups-copy { padding: 20px 0 20px 24px; }
}
@media (max-width: 640px) {
  .home-cards-grid { grid-template-columns: 1fr; }
  .hc-groups { min-height: 0; }
  .hc-groups { background: #6c0a0d; }
  .hc-groups-media { position: relative; inset: auto; width: 100%; height: 150px; }
  .hc-groups-media::after { display: none; }
  .hc-groups-media img { object-position: 78% 60%; }
  .hc-groups-copy { width: auto; padding: 20px 22px 22px; }
  .hc-groups p { max-width: none; }
}

/* Rodapé — compacto e discreto */
.site-footer { --ft-icon-bg: #5a0507; position: relative; color: #ecd9d2; font-family: var(--font-body); font-size: 12px; background: #3a0304; }
.ft-main { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 25% 0%, #6e0306 0%, #580204 50%, #430203 100%); isolation: isolate; }
.ft-main::before { content: ""; position: absolute; top: 0; left: 0; z-index: -1; width: 170px; height: 85px; background: url("assets/images/footer-flag.svg") left top / 100% 100% no-repeat; opacity: 0.6; }
.ft-main::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; z-index: -1; height: 42px; background: url("assets/images/footer-crowd.svg") center bottom / auto 100% repeat-x; opacity: 0.4; pointer-events: none; }
.ft-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.45fr); gap: 0 28px; align-items: start; width: min(100% - 2 * clamp(16px, 2.5vw, 40px), 1160px); margin-inline: auto; padding: 26px 0 34px; }
.ft-inner a { color: inherit; text-decoration: none; }

.ft-logo { display: flex; align-items: center; gap: 9px; color: #fff; }
.ft-mark { position: relative; display: block; flex: none; width: 28px; height: 24px; }
.ft-mark::before, .ft-mark::after { content: ""; position: absolute; background: #f3e6df; border-radius: 2px; }
.ft-mark::before { left: 8.5px; top: 0; width: 11px; height: 100%; }
.ft-mark::after { left: 0; top: 6.5px; width: 100%; height: 11px; }
.ft-name { display: flex; flex-direction: column; font-family: var(--font-title); font-size: 14px; font-weight: 400; line-height: 1.15; letter-spacing: 0; white-space: nowrap; }
.ft-tagline { position: relative; display: flex; flex-direction: column; margin: 10px 0 0; padding-left: 8px; color: #d9c0b7; font-size: 11px; line-height: 1.4; }
.ft-tagline::before { content: ""; position: absolute; top: 2px; bottom: 2px; left: 0; width: 2px; background: #f8bf08; }
.ft-social { display: flex; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.ft-social a, .ft-social span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(243, 230, 223, 0.35); border-radius: 5px; color: #ecd9d2; transition: background 160ms ease, color 160ms ease, border-color 160ms ease; }
.ft-social svg { width: 72%; height: 72%; }
.ft-social a:hover { background: #f8bf08; border-color: #f8bf08; color: #3a0203; }

.ft-col h2, .ft-news h2 { margin: 0; color: #fff; font-family: var(--font-title); font-size: 12px; font-weight: 700; line-height: 1.25; letter-spacing: 0; }
.ft-col h2::after, .ft-news h2::after { content: ""; display: block; width: 18px; height: 2px; margin-top: 6px; background: #f8bf08; }
.ft-links { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.ft-links a { display: inline-block; color: #d3b9b0; font-size: 11.5px; line-height: 1.35; transition: color 160ms ease; }
.ft-links a:hover { color: #f8bf08; }

.ft-news { min-width: 0; padding-left: 24px; border-left: 1px solid rgba(243, 230, 223, 0.18); }
.ft-news p { margin: 9px 0 10px; color: #d3b9b0; font-size: 11px; line-height: 1.45; }
.ft-news .ft-news-msg { margin: 10px 0 12px; padding: 7px 10px; border-radius: 5px; background: rgba(248, 191, 8, 0.16); color: #ffe9a8; font-size: 11px; }
.ft-news .ft-news-msg.is-error { background: rgba(255, 255, 255, 0.12); color: #ffd6cf; }
.ft-form { display: flex; gap: 6px; }
.ft-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ft-field { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; height: 28px; padding: 0 8px; box-sizing: border-box; border: 1px solid rgba(243, 230, 223, 0.45); border-radius: 5px; color: #ecd9d2; background: rgba(40, 2, 4, 0.3); }
.ft-field svg { flex: none; width: 13px; height: auto; }
.ft-field input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-family: var(--font-body); font-size: 11.5px; }
.ft-field input::placeholder { color: #cdb2a9; opacity: 1; }
.ft-field:focus-within { border-color: #f8bf08; box-shadow: 0 0 0 2px rgba(248, 191, 8, 0.3); }
.ft-submit { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border: 0; border-radius: 5px; background: #f8bf08; color: #3a0203; font-family: var(--font-body); font-size: 11.5px; font-weight: 700; cursor: pointer; transition: background 160ms ease; }
.ft-submit:hover { background: #ffd23a; }
.ft-submit svg { width: 12px; height: 12px; }

.ft-bar { background: #330203; border-top: 1px solid rgba(243, 230, 223, 0.18); }
.ft-bar-inner { display: flex; align-items: center; gap: 12px; width: min(100% - 2 * clamp(16px, 2.5vw, 40px), 1160px); margin-inline: auto; padding: 8px 0; }
.ft-cc { flex: none; display: block; width: 46px; }
.ft-cc svg { display: block; width: 100%; height: auto; }
.ft-license { margin: 0; color: #b89d94; font-size: 10.5px; line-height: 1.35; }
.ft-credits { display: flex; align-items: center; gap: 0; margin-left: auto; color: #b89d94; font-size: 10.5px; }
.ft-copy, .ft-dev { margin: 0; white-space: nowrap; }
.ft-dev { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(243, 230, 223, 0.25); }
.ft-dev a, .ft-dev strong { color: #ecd9d2; font-weight: 600; text-decoration: none; }
.ft-dev a:hover { color: #f8bf08; text-decoration: underline; }

@media (max-width: 1100px) {
  .ft-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; padding: 24px 0 36px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-news { grid-column: 1 / -1; padding: 16px 0 0; border-left: 0; border-top: 1px solid rgba(243, 230, 223, 0.18); max-width: 420px; }
}
@media (max-width: 640px) {
  .ft-inner { grid-template-columns: 1fr 1fr; padding: 22px 0 32px; }
  .ft-bar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .ft-credits { width: 100%; flex-wrap: wrap; row-gap: 4px; margin-left: 0; }
  .ft-copy { white-space: normal; }
  .ft-dev { margin-left: 0; padding-left: 0; border-left: 0; width: 100%; }
}

/* Carrossel das notícias em destaque */
.news-slides { position: absolute; inset: 0; }
.news-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity 650ms ease, visibility 0s linear 650ms; isolation: isolate; }
.news-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity 650ms ease, visibility 0s; }
.news-slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(14, 8, 7, 0.92) 0, rgba(14, 8, 7, 0.6) 46%, rgba(14, 8, 7, 0.08) 100%); }
.news-slide.is-active .news-feature-img { animation: news-drift 9s ease-out both; }
@keyframes news-drift { from { transform: scale(1.06); } to { transform: scale(1); } }

.news-ctrl { position: absolute; top: 11px; right: 13px; z-index: 5; display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 999px; background: rgba(14, 8, 7, 0.5); backdrop-filter: blur(4px); }
.news-nav { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background 150ms ease; }
.news-nav:hover { background: rgba(255, 255, 255, 0.22); }
.news-dots { display: flex; align-items: center; gap: 6px; padding: 0 2px; }
.news-dot { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.5); cursor: pointer; overflow: hidden; transition: width 260ms ease, background 200ms ease; }
.news-dot:hover { background: rgba(255, 255, 255, 0.85); }
.news-dot.is-active { width: 30px; background: rgba(255, 255, 255, 0.35); }
.news-dot.is-active::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #f8bf08; transform-origin: left; transform: scaleX(0); }
.news-feature.is-running .news-dot.is-active::after { animation: news-fill var(--news-interval, 6000ms) linear forwards; }
.news-feature.is-paused .news-dot.is-active::after { animation-play-state: paused; }
.news-feature.is-user-paused .news-dot.is-active::after, .news-feature:not(.is-running) .news-dot.is-active::after { transform: scaleX(1); animation: none; }
@keyframes news-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.news-pause .ic-play { display: none; }
.news-pause[aria-pressed="true"] .ic-pause { display: none; }
.news-pause[aria-pressed="true"] .ic-play { display: block; }
.news-ctrl button:focus-visible { outline: 2px solid #f8bf08; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .news-slide, .news-slide.is-active { transition: none; }
  .news-slide.is-active .news-feature-img { animation: none; }
}
@media (max-width: 560px) {
  .news-ctrl { top: auto; bottom: 10px; right: 10px; }
  .news-feature-body { padding-bottom: 50px; }
}

/* Página de eventos (agenda) */
.events-section { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.events-section h2 { margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--rms-line); color: var(--rms-wine); font-family: var(--font-title); font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; }
.event-list { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.event-item { display: flex; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--rms-line); border-radius: 10px; background: #fff; }
.event-item .hc-date { width: 64px; height: 56px; font-size: 12px; }
.event-item .hc-date b { font-size: 22px; }
.event-body { flex: 1; min-width: 0; }
.event-body h3 { margin: 0 0 0.25rem; font-family: var(--font-title); font-size: 1.15rem; font-weight: 700; }
.event-body h3 a { color: var(--rms-charcoal); text-decoration: none; }
.event-body h3 a:hover { color: var(--rms-red); }
.event-body p { margin: 0; color: var(--rms-muted); font-size: 0.95rem; }
.event-more { flex: none; color: var(--rms-red); font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.event-more:hover { text-decoration: underline; }
.event-list.is-past .event-item { background: transparent; opacity: 0.8; }
.events-empty { padding: 2rem; border: 1px dashed var(--rms-line); border-radius: 10px; color: var(--rms-muted); }
@media (max-width: 640px) {
  .event-item { flex-wrap: wrap; padding: 1rem; }
  .event-more { width: 100%; }
}

/* Hero da página de eventos: texto à esquerda, arte à direita */
.events-hero { aspect-ratio: 7.4 / 1; min-height: 10.5rem; position: relative; overflow: hidden; background: #fbe6d0 var(--events-paper, url('assets/images/events-hero-paper.jpg')) center / cover no-repeat; }
.events-hero-inner { position: relative; display: flex; flex-direction: column; justify-content: center; width: min(100% - 2 * var(--rms-gutter), 1400px); height: 100%; margin-inline: auto; }
.events-hero-inner::before { content: ""; position: absolute; top: 0; right: 0; height: 100%; aspect-ratio: var(--events-art-ratio, 3.26) / 1; background: var(--events-art) right center / cover no-repeat; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--events-art-fade, 16%), #000 94%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 var(--events-art-fade, 16%), #000 94%, transparent 100%); pointer-events: none; }
.events-hero-text { position: relative; width: min(100%, 33rem); padding-left: 1.4rem; border-left: 3px solid; border-image: linear-gradient(#a40304, #e8a317) 1; }
.events-hero-text h1 { margin: 0 0 0.35rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; line-height: 1.05; }
.events-hero-text p { margin: 0; color: var(--rms-charcoal); font-size: clamp(0.9rem, 1.1vw, 1.05rem); line-height: 1.4; }
@media (max-width: 900px) {
  .events-hero { aspect-ratio: auto; min-height: 12rem; }
  .events-hero-inner::before { opacity: 0.35; right: calc(-1 * var(--rms-gutter)); }
  .events-hero-inner { padding-block: 1.5rem; }
}

/* Barra de abas da página de eventos (fundo marfim, como as seções da home) */
.events-tabs { background: var(--rms-ivory); }
.events-tabs-list { display: flex; width: min(100% - 2 * var(--rms-gutter), 1400px); margin: 0 auto; padding: 0; list-style: none; border-bottom: 1px solid var(--rms-line); overflow-x: auto; scrollbar-width: none; }
.events-tabs-list::-webkit-scrollbar { display: none; }
.events-tabs-list li { flex: 1 0 auto; }
.events-tabs-list a { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.7rem; padding: 1.15rem 1.25rem; color: var(--rms-charcoal); font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color 0.15s; }
.events-tabs-list a svg { color: #a40304; flex: none; }
.events-tabs-list a:hover { color: #a40304; }
.events-tabs-list a.is-active { color: #a40304; font-weight: 700; }
.events-tabs-list a.is-active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: #a40304; }
.events-tabs-list a:focus-visible { outline: 2px solid #a40304; outline-offset: -4px; }
.events-page { min-height: 0; padding-top: clamp(2rem, 4vw, 3.5rem); background: var(--rms-ivory); }

/* Evento em destaque */
.event-feature { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.event-feature-banner { position: relative; overflow: hidden; min-height: clamp(15rem, 20vw, 19rem); border-radius: 10px; background: #8f0e12 var(--feature-art) right center / cover no-repeat; color: #fff; box-shadow: 0 6px 18px rgba(80, 8, 10, 0.18); }
.event-feature-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #7a0b10 0%, rgba(143, 14, 18, 0.96) 38%, rgba(158, 20, 24, 0.55) 56%, rgba(158, 20, 24, 0) 72%); }
.event-feature-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; max-width: 56%; padding: clamp(1.25rem, 2.2vw, 2rem); }
.event-feature-badge { display: inline-block; padding: 0.3rem 0.7rem; border-radius: 4px; background: #f6b81b; color: #3a0b0b; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.event-feature-copy h2 { margin: 0; color: #fff; font-family: var(--font-title); font-size: clamp(1.5rem, 2.5vw, 2.2rem); font-weight: 800; line-height: 1.12; }
.event-feature-tagline { margin: 0; color: #fbe9de; font-size: clamp(0.9rem, 1.1vw, 1.05rem); line-height: 1.4; }
.event-feature-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; font-size: 0.9rem; }
.event-feature-meta span, .event-feature-info li { display: inline-flex; align-items: center; gap: 0.5rem; }
.event-feature-meta svg { width: 20px; height: 20px; }
.event-feature-cta { display: inline-flex; align-items: center; gap: 1rem; margin-top: 0.3rem; padding: 0.7rem 1.2rem; border-radius: 7px; background: #f6b81b; color: #3a0b0b; font-size: 0.95rem; font-weight: 700; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.event-feature-cta:hover { background: #ffc83a; color: #3a0b0b; transform: translateY(-1px); }
.event-feature-info h3 { margin: 0 0 0.7rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: clamp(1.2rem, 1.7vw, 1.55rem); font-weight: 800; line-height: 1.2; }
.event-feature-info > p { margin: 0 0 1rem; color: var(--rms-muted); font-size: 0.95rem; line-height: 1.5; }
.event-feature-info ul { display: grid; gap: 0.5rem; margin: 0 0 1.1rem; padding: 0; list-style: none; font-size: 0.95rem; }
.event-feature-info li svg, .event-feature-link svg { flex: none; color: #a40304; }
.event-feature-link { display: inline-flex; align-items: center; gap: 0.6rem; color: #a40304; font-weight: 700; text-decoration: none; border-bottom: 2px solid #a40304; padding-bottom: 2px; }
.event-feature-link:hover { color: #7a0b10; border-color: #7a0b10; }
@media (max-width: 900px) {
  .event-feature { grid-template-columns: 1fr; }
  .event-feature-copy { max-width: 100%; }
  .event-feature-banner::before { background: linear-gradient(90deg, rgba(122, 11, 16, 0.96) 0%, rgba(143, 14, 18, 0.88) 60%, rgba(158, 20, 24, 0.6) 100%); }
}

/* Mesmo container da barra de abas e do hero */
.events-page .container { width: min(100% - 2 * var(--rms-gutter), 1400px); }

/* Layout principal: cards + filtros */
.events-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(15rem, 21vw, 19rem); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.events-section { margin-bottom: clamp(2rem, 4vw, 3rem); }
.events-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; padding: 0; border: 0; }
.events-section-head h2 { margin: 0; padding: 0 0 0.45rem; border: 0; position: relative; color: var(--rms-charcoal); font-family: var(--font-title); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; }
.events-section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.6rem; height: 3px; background: #a40304; }
.events-section-link { display: inline-flex; align-items: center; gap: 0.5rem; color: #a40304; font-size: 0.85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.events-section-link:hover { text-decoration: underline; }

/* Cards */
.ev-grid { display: grid; gap: 1.1rem; }
.ev-grid-upcoming { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ev-grid-past { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ev-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rms-line); border-radius: 10px; background: #f8ecdd; }
.ev-card-media { position: relative; display: block; aspect-ratio: 16 / 7.5; background: #8f0e12 center / cover no-repeat; }
.ev-card.is-past .ev-card-media { aspect-ratio: 16 / 7; }
.ev-card-date { position: absolute; top: 0.7rem; left: 0.7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 3.4rem; height: 3.4rem; border-radius: 8px; background: #fbf3e9; color: #a40304; font-size: 0.7rem; font-weight: 700; line-height: 1; text-transform: uppercase; box-shadow: 0 2px 6px rgba(60, 5, 8, 0.25); }
.ev-card-date b { font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; line-height: 1.05; }
.ev-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 0.95rem 1rem 1.1rem; }
.ev-card-body h3 { margin: 0; font-family: var(--font-title); font-size: 1rem; font-weight: 800; line-height: 1.25; }
.ev-card.is-past .ev-card-body h3 { font-size: 0.92rem; }
.ev-card-body h3 a { color: var(--rms-charcoal); text-decoration: none; }
.ev-card-body h3 a:hover { color: #a40304; }
.ev-card-text { margin: 0; color: var(--rms-muted); font-size: 0.85rem; line-height: 1.45; }
.ev-card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; padding: 0; list-style: none; color: var(--rms-charcoal); font-size: 0.82rem; }
.ev-card-meta li { display: inline-flex; align-items: center; gap: 0.4rem; }
.ev-card-meta li + li { padding-left: 1rem; border-left: 1px solid var(--rms-line); }
.ev-card-meta svg, .ev-card-when svg { flex: none; color: var(--rms-charcoal); }
.ev-card-when { display: flex; align-items: center; gap: 0.45rem; margin: 0; color: var(--rms-charcoal); font-size: 0.85rem; }
.ev-card-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; align-self: flex-start; margin-top: auto; padding: 0.45rem 1.1rem; border: 1px solid #a40304; border-radius: 6px; color: #a40304; font-size: 0.85rem; font-weight: 700; text-decoration: none; transition: background 0.15s, color 0.15s; }
.ev-card-btn:hover { background: #a40304; color: #fff; }

/* Filtros */
.ev-filters { padding: 1.25rem; border: 1px solid var(--rms-line); border-radius: 10px; background: #f8ecdd; }
.ev-filter-group { margin: 0 0 1.1rem; padding: 0 0 1.1rem; border: 0; border-bottom: 1px solid var(--rms-line); min-width: 0; }
.ev-filter-group h3, .ev-filter-group legend { display: block; width: 100%; margin: 0 0 0.7rem; padding: 0; color: var(--rms-charcoal); font-family: var(--font-title); font-size: 0.95rem; font-weight: 800; }
.ev-search { display: flex; border: 1px solid #d9c4b0; border-radius: 6px; background: #fff; }
.ev-search input { flex: 1; min-width: 0; padding: 0.6rem 0.7rem; border: 0; border-radius: 6px; background: transparent; font-size: 0.78rem; }
.ev-search button { display: grid; place-items: center; padding: 0 0.7rem; border: 0; background: none; color: var(--rms-charcoal); cursor: pointer; }
.ev-check { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; font-size: 0.85rem; cursor: pointer; }
.ev-check input { width: 1rem; height: 1rem; accent-color: #a40304; }
.ev-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.35rem; }
.ev-dates input { width: 100%; min-width: 0; padding: 0.5rem 0.4rem; border: 1px solid #d9c4b0; border-radius: 6px; background: #fff; font-size: 0.75rem; }
.ev-apply { width: 100%; padding: 0.8rem 1rem; border: 0; border-radius: 6px; background: #8d0e0f; color: #fff; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.ev-apply:hover { background: #a3141a; }
.ev-clear { display: block; margin-top: 0.7rem; text-align: center; color: #a40304; font-size: 0.82rem; font-weight: 600; }
.ev-card.is-demo, .event-feature.is-demo { position: relative; }

@media (max-width: 1100px) {
  .ev-grid-upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-grid-past { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .events-layout { grid-template-columns: 1fr; }
  .ev-filters { order: -1; }
}
@media (max-width: 600px) {
  .ev-grid-upcoming, .ev-grid-past { grid-template-columns: 1fr; }
}

/* Link de volta na página do grupo */
.gp-back { display: inline-block; margin-bottom: 0.5rem; color: #a40304; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.gp-back:hover { text-decoration: underline; }

/* Cartões de grupo */
.gp-total { color: var(--rms-muted); font-size: 0.85rem; font-weight: 600; }
.gp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.gp-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--rms-line); border-radius: 10px; background: #f8ecdd; }
.gp-card-media { display: grid; place-items: center; aspect-ratio: 16 / 7; background: #8f0e12 center / cover no-repeat; }
.gp-card-media.is-empty { background: linear-gradient(135deg, #7a0b10, #a40304 60%, #c4571f); }
.gp-card-media span { color: rgba(255, 255, 255, 0.92); font-family: var(--font-title); font-size: 2.4rem; font-weight: 800; letter-spacing: 0.04em; }
.gp-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 1rem 1.1rem 1.15rem; }
.gp-card-body h3 { margin: 0; font-family: var(--font-title); font-size: 1.08rem; font-weight: 800; line-height: 1.25; }
.gp-card-body h3 a { color: var(--rms-charcoal); text-decoration: none; }
.gp-card-body h3 a:hover { color: #a40304; }
.gp-card-place { display: flex; align-items: center; gap: 0.4rem; margin: 0; color: var(--rms-muted); font-size: 0.82rem; }
.gp-card-place svg, .gp-card-count svg { flex: none; }
.gp-card-text { margin: 0; color: var(--rms-muted); font-size: 0.88rem; line-height: 1.45; }
.gp-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.gp-chips li { padding: 0.2rem 0.6rem; border-radius: 999px; background: rgba(164, 3, 4, 0.1); color: #8d0e0f; font-size: 0.75rem; font-weight: 600; }
.gp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: auto; padding-top: 0.4rem; }
.gp-card-count { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--rms-charcoal); font-size: 0.82rem; }

/* Página do grupo */
.gp-about { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(15rem, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.gp-about h2 { margin: 0 0 1rem; font-family: var(--font-title); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; }
.gp-content { color: var(--rms-charcoal); line-height: 1.65; }
.gp-about-side { padding: 1.25rem; border: 1px solid var(--rms-line); border-radius: 10px; background: #f8ecdd; }
.gp-cover { margin: -1.25rem -1.25rem 1rem; overflow: hidden; border-radius: 10px 10px 0 0; }
.gp-cover img { display: block; width: 100%; height: auto; }
.gp-about-side dl { margin: 0 0 1.1rem; }
.gp-about-side dt { margin-top: 0.8rem; color: var(--rms-muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.gp-about-side dd { margin: 0.2rem 0 0; font-size: 0.95rem; }

/* Membros */
.mb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; }
.mb-card { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.4rem 1.1rem 1.25rem; border: 1px solid var(--rms-line); border-radius: 10px; background: #f8ecdd; text-align: center; }
.mb-photo { display: grid; place-items: center; width: 7rem; height: 7rem; margin-bottom: 0.5rem; overflow: hidden; border-radius: 50%; background: #8f0e12; box-shadow: 0 0 0 3px #fbf3e9, 0 0 0 5px rgba(164, 3, 4, 0.35); }
.mb-photo img { width: 100%; height: 100%; object-fit: cover; }
.mb-photo.is-empty { background: linear-gradient(135deg, #7a0b10, #a40304 60%, #c4571f); }
.mb-photo span { color: #fff; font-family: var(--font-title); font-size: 1.9rem; font-weight: 800; }
.mb-card h3 { margin: 0; font-family: var(--font-title); font-size: 1rem; font-weight: 800; line-height: 1.25; }
.mb-role { margin: 0; color: #a40304; font-size: 0.8rem; font-weight: 700; }
.mb-text { margin: 0.25rem 0 0; color: var(--rms-muted); font-size: 0.85rem; line-height: 1.45; }
.mb-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.6rem; color: #a40304; font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.mb-link:hover { text-decoration: underline; }

@media (max-width: 1100px) { .mb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .gp-about { grid-template-columns: 1fr; } .mb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gp-grid { grid-template-columns: 1fr; } .mb-grid { grid-template-columns: 1fr; } }

/* Hero com a arte rente à borda direita da tela (a ilustração sai da imagem) */
.events-hero.is-bleed .events-hero-inner::before { right: calc((100% - 100vw) / 2); }
@media (max-width: 900px) { .events-hero.is-bleed .events-hero-inner::before { right: calc(-1 * var(--rms-gutter)); } }

/* Barra de grupos: "Todos" fixo + carrossel de 4 grupos por vez, com setas */
.group-strip { background: var(--rms-ivory); border-bottom: 1px solid var(--rms-line); }
.group-strip-inner { display: flex; align-items: stretch; width: min(100% - 2 * clamp(16px, 2.5vw, 40px), 1400px); margin: 0 auto; }
.group-strip .qs-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 1.15rem 1rem; }
.group-strip .qs-label { font-size: 15px; line-height: 18px; }
.group-strip .qs-item.is-active { color: #a40304; }
.group-strip .qs-item.is-active::after { content: ""; position: absolute; inset: auto 0 -1px; height: 3px; background: #a40304; }
.gs-all { flex: none; width: clamp(10.5rem, 14vw, 13rem); justify-content: center; border-right: 1px solid #cdc4b8; }
.group-strip-list { display: flex; flex: 1; min-width: 0; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.group-strip-list::-webkit-scrollbar { display: none; }
.group-strip-list li { position: relative; flex: 0 0 25%; display: flex; scroll-snap-align: start; }
.group-strip-list li + li::before { content: ""; position: absolute; top: 50%; left: 0; width: 1px; height: 44px; background: #cdc4b8; transform: translateY(-50%); }
.group-strip-list li .qs-item { flex: 1; min-width: 0; }
.gs-arrow { align-self: center; flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin: 0 0.35rem; padding: 0; border: 1px solid var(--rms-line); border-radius: 50%; background: #fff; color: #a40304; cursor: pointer; transition: background 0.15s, color 0.15s, opacity 0.15s; }
.gs-arrow[hidden] { display: none; }
.gs-arrow:hover:not(:disabled) { background: #a40304; color: #fff; }
.gs-arrow:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 1000px) { .group-strip-list li { flex-basis: 50%; } }
@media (max-width: 640px) {
  .gs-all { width: 8.5rem; padding-inline: 0.5rem; }
  .group-strip-list li { flex-basis: 85%; }
  .group-strip .qs-label { font-size: 14px; }
}
.events-layout.no-aside { grid-template-columns: 1fr; }

/* Cards de grupo (réplica da referência): foto à esquerda | texto à direita */
.gp-list { display: grid; gap: 1.25rem; }
.gp-item { display: grid; grid-template-columns: 44fr 56fr; overflow: hidden; border: 1px solid #ecdccf; border-radius: 14px; background: #fcf3ea; box-shadow: 0 2px 12px rgba(110, 40, 30, 0.06); }
.gp-item-media { position: relative; display: block; background: #8f0e12 center / cover no-repeat; border-right: 1px solid #ecdccf; }
.gp-item-media::before { content: ""; display: block; padding-top: 36%; }
.gp-item-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(168, 12, 20, 0.95) 0%, rgba(168, 12, 20, 0.6) 7%, rgba(168, 12, 20, 0) 26%); pointer-events: none; }
.gp-item-media.is-empty { display: grid; place-items: center; color: rgba(255, 255, 255, 0.55); background: linear-gradient(135deg, #7a0b10, #a40304 65%, #c4571f); }
.gp-item-media.is-empty::before { grid-area: 1 / 1; }
.gp-item-media.is-empty svg { grid-area: 1 / 1; place-self: center; position: relative; z-index: 1; }
.gp-item-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0.9rem clamp(1.25rem, 3vw, 2.5rem) 1rem; }
.gp-item-badge { display: inline-block; margin-bottom: 0.75rem; padding: 0.28rem 0.95rem; border-radius: 999px; background: #f6b81b; color: #3a1a00; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.3; text-transform: uppercase; }
.gp-item-body h3 { margin: 0 0 0.3rem; color: #1b1818; font-family: var(--font-title); font-size: clamp(1.35rem, 2vw, 1.75rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.005em; }
.gp-item-body h3 a { color: inherit; text-decoration: none; }
.gp-item-body h3 a:hover { color: #a40304; }
.gp-item-text { max-width: 42rem; margin: 0 0 0.75rem; color: #3d3434; font-size: clamp(0.9rem, 1vw, 1rem); line-height: 1.4; }
.gp-item-facts { display: flex; align-items: center; margin: 0 0 0.9rem; padding: 0; list-style: none; }
.gp-item-facts li { display: flex; align-items: center; gap: 0.85rem; padding: 0.15rem 1.7rem; border-left: 1px solid #d9c7b9; color: #2a2222; font-size: 0.95rem; font-weight: 500; line-height: 1.3; }
.gp-item-facts li:first-child { padding-left: 0; border-left: 0; }
.gp-item-facts li:last-child { padding-right: 0; }
.gp-item-facts svg { flex: none; width: 24px; height: 24px; color: #3a2c2c; }
.gp-item-facts span { max-width: 14rem; }
.gp-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2.4rem; }
.gp-item-btn { display: inline-flex; align-items: center; gap: 0.8rem; padding: 0.6rem 1.7rem; border-radius: 7px; background: #770c11; color: #fff; font-size: 0.98rem; font-weight: 600; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.gp-item-btn:hover { background: #a40304; color: #fff; transform: translateY(-1px); }
.gp-item-link { display: inline-flex; align-items: center; gap: 0.7rem; color: #b00d12; font-size: 1rem; font-weight: 700; text-decoration: none; }
.gp-item-link:hover { text-decoration: underline; }
.gp-item-team { align-self: stretch; margin-top: 0.85rem; padding-top: 0.7rem; border-top: 1px solid #e3d3c5; }
.gp-team-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.gp-team-nav { display: flex; gap: 0.4rem; }
.gp-team-nav[hidden] { display: none; }
.gp-team-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid #d9c7b9; border-radius: 50%; background: #fff; color: #770c11; cursor: pointer; transition: background 0.15s, color 0.15s; }
.gp-team-btn:hover:not(:disabled) { background: #770c11; color: #fff; }
.gp-team-btn:disabled { opacity: 0.35; cursor: default; }
.gp-item-team h4 { display: inline-block; margin: 0; padding-bottom: 0.2rem; border-bottom: 3px solid #b00d12; color: #1b1818; font-family: var(--font-title); font-size: 1rem; font-weight: 800; line-height: 1.2; }
.gp-team-list { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gp-team-list::-webkit-scrollbar { display: none; }
.gp-person { position: relative; flex: 0 0 33.3333%; box-sizing: border-box; display: flex; align-items: center; gap: 0.7rem; min-width: 0; padding: 0.1rem 0.9rem; scroll-snap-align: start; }
.gp-person + .gp-person::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 44px; background: #e3d3c5; transform: translateY(-50%); }
.gp-person:first-child { padding-left: 0; }
.gp-person-photo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: #770c11; box-shadow: 0 0 0 1px #d9c7b9; color: #fff; font-weight: 700; font-size: 1rem; }
.gp-person-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gp-person-info { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.gp-person-info strong { color: #1b1818; font-size: 0.92rem; font-weight: 700; }
.gp-person-info span { color: #6b5f5f; font-size: 0.88rem; }
@media (max-width: 1100px) {
  .gp-item-facts { flex-wrap: wrap; gap: 0.7rem 0; }
}
@media (max-width: 900px) {
  .gp-item { grid-template-columns: 1fr; }
  .gp-person { padding-inline: 0.7rem; }
  .gp-person:first-child { padding-left: 0; }
  .gp-item-media { border-right: 0; border-bottom: 1px solid #ecdccf; }
  .gp-item-media::before { padding-top: 38%; }
  .gp-item-facts li { padding-inline: 0 1.4rem; border-left: 0; }
}

@media (max-width: 560px) {
  .gp-person { flex-basis: 100%; }
  .gp-person, .gp-person:first-child { padding-inline: 0; }
  .gp-person + .gp-person::before { display: none; }
}

/* Transição suave entre páginas (navegadores com View Transitions; os demais navegam normalmente) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.hero, .events-hero { view-transition-name: page-hero; }
::view-transition-group(root) { animation-duration: 0.3s; animation-timing-function: ease-out; }
/* Hero: a borda de baixo sobe (ou desce) até a altura da outra página.
   O hero antigo fica opaco por baixo e o novo entra por cima (sem mistura de brilho nem títulos sobrepostos). */
::view-transition-group(page-hero) { overflow: clip; animation-duration: 0.95s; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
::view-transition-old(page-hero) { animation: none; mix-blend-mode: normal; }
::view-transition-new(page-hero) { mix-blend-mode: normal; animation: rms-hero-in 0.6s ease-in-out 0.2s both; }
@keyframes rms-hero-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ===== Produção científica ===== */
.pub-strip .group-strip-list li { flex: 1 1 0; }
.pub-strip .qs-item { justify-content: center; }
.pub-strip .qs-label { font-size: 14.5px; }
.pub-page { padding-top: clamp(1.5rem, 3vw, 2.25rem); }

.pub-filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; padding: 0 0 1.4rem; border-bottom: 1px solid var(--rms-line); }
.pub-filterbar h2 { margin: 0 0.6rem 0 0; color: var(--rms-charcoal); font-family: var(--font-title); font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
.pub-select { position: relative; display: block; flex: 1 1 11rem; min-width: 0; }
.pub-select select { width: 100%; height: 2.75rem; padding: 0 2.4rem 0 0.95rem; border: 1px solid #d9c7b9; border-radius: 7px; background: #fff7ee; color: var(--rms-charcoal); font: inherit; font-size: 0.9rem; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis; }
.pub-select select:hover { border-color: #b9a08f; }
.pub-select svg { position: absolute; top: 50%; right: 0.8rem; transform: translateY(-50%); color: #3a2c2c; pointer-events: none; }
.pub-apply { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 0.6rem; height: 2.75rem; padding: 0 1.7rem; border: 0; border-radius: 7px; background: #770c11; color: #fff; font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.pub-apply:hover { background: #a40304; }

.pub-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin: 1.1rem 0 1.2rem; }
.pub-count { margin: 0; font-size: 1rem; }
.pub-count strong { font-weight: 800; }
.pub-clear { margin-left: 0.9rem; color: #a40304; font-size: 0.85rem; font-weight: 700; }
.pub-sort { display: flex; align-items: center; gap: 0.8rem; font-size: 0.95rem; }
.pub-sort .pub-select { flex: none; width: 12.5rem; }

.pub-list { display: grid; gap: 0.95rem; }
.pub-item { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr) auto; align-items: center; gap: clamp(1rem, 2vw, 1.6rem); padding: 0.7rem 1.1rem 0.7rem 0.7rem; border: 1px solid #ecdccf; border-radius: 12px; background: #fcf3ea; box-shadow: 0 2px 12px rgba(110, 40, 30, 0.06); }
.pub-item-media { display: grid; place-items: center; align-self: stretch; min-height: 7.5rem; border-radius: 8px; background: #8f0e12 center / cover no-repeat; color: rgba(255, 255, 255, 0.6); }
.pub-item-media.is-empty { background: linear-gradient(135deg, #7a0b10, #a40304 65%, #c4571f); }
.pub-item-body { min-width: 0; padding-block: 0.2rem; }
.pub-badge { display: inline-block; margin-bottom: 0.5rem; padding: 0.18rem 0.75rem; border: 1px solid #b00d12; border-radius: 999px; color: #a40304; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.3; text-transform: uppercase; }
.pub-item-body h3 { margin: 0 0 0.3rem; color: #1b1818; font-family: var(--font-title); font-size: clamp(1.02rem, 1.35vw, 1.2rem); font-weight: 800; line-height: 1.25; }
.pub-item-body h3 a { color: inherit; text-decoration: none; }
.pub-item-body h3 a:hover { color: #a40304; }
.pub-authors { margin: 0 0 0.7rem; color: #3d3434; font-size: 0.95rem; }
.pub-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1.9rem; margin: 0; padding: 0; list-style: none; }
.pub-facts li { display: flex; align-items: center; gap: 0.55rem; color: #2a2222; font-size: 0.88rem; }
.pub-facts svg { flex: none; color: #3a2c2c; }

.pub-item-actions { display: grid; gap: 0.6rem; width: 13.5rem; }
.pub-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.55rem 1rem; border: 1px solid #770c11; border-radius: 6px; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: background 0.15s, color 0.15s; }
.pub-btn-solid { background: #770c11; color: #fff; }
.pub-btn-solid:hover { background: #a40304; border-color: #a40304; color: #fff; }
.pub-btn-outline { background: transparent; color: #770c11; }
.pub-btn-outline:hover { background: #770c11; color: #fff; }

.pub-pagination { margin: 2rem 0 2.5rem; }
.pub-pagination ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.pub-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; min-width: 2.6rem; height: 2.6rem; padding: 0 0.9rem; border: 1px solid #d9c7b9; border-radius: 6px; background: #fff7ee; color: #3a2c2c; font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.pub-pagination a.page-numbers:hover { border-color: #a40304; color: #a40304; }
.pub-pagination .page-numbers.current { border-color: #8d0e0f; background: #8d0e0f; color: #fff; }
.pub-pagination .page-numbers.dots { border-color: transparent; background: transparent; min-width: 1.4rem; padding: 0; }
.pub-pagination .next { color: #a40304; font-weight: 700; }

@media (max-width: 1100px) {
	.pub-strip .group-strip-list { overflow-x: auto; }
	.pub-strip .group-strip-list li { flex: 0 0 11.5rem; }
}
@media (max-width: 900px) {
	.pub-item { grid-template-columns: 8rem minmax(0, 1fr); }
	.pub-item-actions { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; width: auto; }
}
@media (max-width: 640px) {
	.pub-filterbar h2 { flex-basis: 100%; }
	.pub-apply { flex: 1 1 100%; }
	.pub-item { grid-template-columns: 1fr; padding: 0.7rem; }
	.pub-item-media { min-height: 9rem; }
	.pub-item-actions { grid-template-columns: 1fr; }
	.pub-sort { width: 100%; }
	.pub-sort .pub-select { flex: 1; width: auto; }
}

/* ===== Contato ===== */
.contact-page { padding-top: clamp(1.75rem, 3.5vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.contact-card { padding: clamp(1.25rem, 2.6vw, 2.2rem); border: 1px solid #ecdccf; border-radius: 14px; background: #fcf3ea; box-shadow: 0 2px 12px rgba(110, 40, 30, 0.06); }
.contact-card h2, .contact-side h2 { margin: 0 0 0.5rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; }
.contact-lead { margin: 0 0 1.4rem; color: #3d3434; }
.contact-msg { margin: 0 0 1.2rem; padding: 0.8rem 1rem; border-left: 4px solid #b78a45; border-radius: 6px; background: #f6e6c4; color: #3a2c1a; font-size: 0.95rem; }
.contact-msg.is-error { border-left-color: #a40304; background: #f8dcd6; color: #5a1410; }
.contact-form { display: grid; gap: 1.1rem; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-field { display: grid; gap: 0.4rem; }
.contact-field > span:first-child { color: #2a2222; font-size: 0.88rem; font-weight: 700; }
.contact-field input, .contact-field textarea { width: 100%; padding: 0.7rem 0.95rem; border: 1px solid #d9c7b9; border-radius: 7px; background: #fff7ee; color: var(--rms-charcoal); font: inherit; font-size: 0.95rem; }
.contact-field input { height: 2.9rem; padding-block: 0; }
.contact-field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.contact-field input:hover, .contact-field textarea:hover { border-color: #b9a08f; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible, .contact-field select:focus-visible { outline: 2px solid #a40304; outline-offset: 1px; }
.contact-field .pub-select select { height: 2.9rem; }
.contact-privacy { margin: 0; color: var(--rms-muted); font-size: 0.82rem; }
.contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; justify-self: start; padding: 0.75rem 2rem; border: 0; border-radius: 7px; background: #770c11; color: #fff; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.15s, transform 0.15s; }
.contact-submit:hover { background: #a40304; transform: translateY(-1px); }

.contact-side { padding: clamp(1.25rem, 2.2vw, 1.75rem); border: 1px solid var(--rms-line); border-radius: 14px; background: #f8ecdd; }
.contact-side h3 { margin: 1.5rem 0 0.7rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: 1rem; font-weight: 800; }
.contact-info { display: grid; gap: 1.2rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.contact-info li { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-ico { display: grid; flex: none; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: #770c11; color: #fff; }
.contact-info li > span:last-child { display: grid; gap: 0.15rem; min-width: 0; overflow-wrap: anywhere; }
.contact-info strong { color: #2a2222; font-size: 0.95rem; }
.contact-info a { color: #a40304; font-size: 0.92rem; font-weight: 600; }
.contact-social { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.contact-social a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: #770c11; color: #fff; transition: background 0.15s; }
.contact-social a:hover { background: #a40304; }
.contact-social svg { width: 1.3rem; height: 1.3rem; }

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-row { grid-template-columns: 1fr; } .contact-submit { justify-self: stretch; } }

/* ===== Notícias ===== */
.nw-search { flex: 1 1 18rem; min-width: 0; }
.nw-search input { width: 100%; height: 2.75rem; padding: 0 0.95rem; border: 1px solid #d9c7b9; border-radius: 7px; background: #fff7ee; color: var(--rms-charcoal); font: inherit; font-size: 0.9rem; }
.nw-search input:hover { border-color: #b9a08f; }
.nw-search input:focus-visible { outline: 2px solid #a40304; outline-offset: 1px; }
.nw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.nw-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ecdccf; border-radius: 12px; background: #fcf3ea; box-shadow: 0 2px 12px rgba(110, 40, 30, 0.06); transition: transform 0.15s, box-shadow 0.15s; }
.nw-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(110, 40, 30, 0.12); }
.nw-card-media { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #8f0e12 center / cover no-repeat; color: rgba(255, 255, 255, 0.6); }
.nw-card-media.is-empty { background: linear-gradient(135deg, #7a0b10, #a40304 65%, #c4571f); }
.nw-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1rem 1.15rem 1.15rem; }
.nw-card-body h3 { margin: 0 0 0.5rem; color: #1b1818; font-family: var(--font-title); font-size: 1.12rem; font-weight: 800; line-height: 1.25; }
.nw-card-body h3 a { color: inherit; text-decoration: none; }
.nw-card-body h3 a:hover { color: #a40304; }
.nw-excerpt { display: -webkit-box; margin: 0 0 0.9rem; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; color: #3d3434; font-size: 0.92rem; line-height: 1.45; }
.nw-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; margin: auto 0 0; color: #5a4b45; font-size: 0.8rem; }
.nw-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
@media (max-width: 960px) { .nw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nw-grid { grid-template-columns: 1fr; } }

/* ===== Quem somos ===== */
.about-page { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.about-intro { max-width: 52rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.about-intro h2, .about-pillars h2, .about-cta h2 { margin: 0 0 0.9rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; line-height: 1.15; }
.about-lead { margin: 0 0 1rem; color: #2a2222; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.55; }
.about-intro p { color: #3d3434; line-height: 1.65; }
.about-content { margin-top: 1.2rem; }
.about-pillars { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.about-pillars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.about-pillar { padding: 1.5rem; border: 1px solid #ecdccf; border-radius: 12px; background: #fcf3ea; box-shadow: 0 2px 12px rgba(110, 40, 30, 0.06); }
.about-pillar h3 { margin: 1rem 0 0.5rem; color: #1b1818; font-family: var(--font-title); font-size: 1.2rem; font-weight: 800; }
.about-pillar p { margin: 0; color: #3d3434; font-size: 0.95rem; line-height: 1.55; }
.about-numbers { margin-bottom: clamp(2rem, 4vw, 3.25rem); padding: 1.6rem 1rem; border-radius: 14px; background: #770c11; color: #fff; }
.about-numbers ul { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 1.2rem; margin: 0; padding: 0; list-style: none; text-align: center; }
.about-numbers strong { display: block; font-family: var(--font-title); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; color: #f8bf08; }
.about-numbers span { display: block; margin-top: 0.35rem; font-size: 0.95rem; }
.about-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; padding: clamp(1.25rem, 2.6vw, 2rem); border: 1px solid var(--rms-line); border-radius: 14px; background: #f8ecdd; }
.about-cta h2 { margin-bottom: 0.4rem; }
.about-cta p { margin: 0; color: #3d3434; }
.about-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; }
.about-cta-actions .pub-btn { padding: 0.6rem 1.5rem; font-size: 0.98rem; }
@media (max-width: 900px) { .about-pillars-grid { grid-template-columns: 1fr; } }

/* ===== Citação discreta no topo das páginas ===== */
/* Frase entre aspas e o nome logo depois, no mesmo trecho de texto. Telas menores: abaixo da descrição. */
.hero-quote { position: relative; width: min(100%, 32rem); margin: 0.85rem 0 0; padding-left: calc(3px + 1.4rem); text-align: left; color: #4a3b35; font-size: 0.82rem; line-height: 1.45; }
.hero-quote blockquote, .hero-quote p, .hero-quote figcaption { display: inline; margin: 0; }
.hero-quote p { font-style: italic; }
.hero-quote figcaption { margin-left: 0.2rem; color: #a40304; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.hero-quote figcaption::before { content: "— "; font-weight: 400; }
.hero-quote figcaption span { margin-left: 0.45rem; color: var(--rms-muted); font-weight: 400; }
@media (max-width: 640px) { .hero-quote { display: none; } }
/* Telas largas: no pé do topo, alinhada com o título. */
@media (min-width: 1440px) {
	.events-hero-inner:has(.hero-quote) { padding-bottom: 2.6rem; }
	.hero-quote { position: absolute; left: 0; bottom: 1rem; width: min(100%, 34rem); margin: 0; z-index: 1; }
}

/* ===== Logo no cabeçalho ===== */
.brand-logo { display: block; width: auto; height: 64px; max-width: 100%; margin-left: 26.5px; flex: none; }
@media (max-width: 1100px) { .brand-logo { height: 52px; margin-left: 0; } }
@media (max-width: 560px) { .brand-logo { height: 40px; } }

/* ===== Logo no rodapé ===== */
.ft-logo-img { display: block; width: auto; height: 42px; max-width: 100%; }

/* ===== Aviso de cookies e links legais ===== */
.cookie-banner { position: fixed; z-index: 9999; right: 1rem; bottom: 1rem; left: 1rem; max-width: 46rem; margin-inline: auto; padding: 1rem 1.2rem; border: 1px solid #ecdccf; border-radius: 12px; background: #fff7ee; box-shadow: 0 8px 30px rgba(60, 20, 15, 0.22); }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.4rem; }
.cookie-text { flex: 1 1 22rem; }
.cookie-text h2 { margin: 0 0 0.25rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: 1rem; font-weight: 800; }
.cookie-text p { margin: 0; color: #3d3434; font-size: 0.85rem; line-height: 1.45; }
.cookie-text a { color: #a40304; font-weight: 700; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.cookie-btn { padding: 0.55rem 1.2rem; border: 1px solid #770c11; border-radius: 6px; font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cookie-btn-solid { background: #770c11; color: #fff; }
.cookie-btn-solid:hover { background: #a40304; border-color: #a40304; }
.cookie-btn-outline { background: transparent; color: #770c11; }
.cookie-btn-outline:hover { background: #770c11; color: #fff; }
.ft-legal { margin: 0; font-size: 11px; }
.ft-legal a, .ft-legal-btn { color: #d9c0b7; text-decoration: underline; text-underline-offset: 2px; }
.ft-legal-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.ft-legal a + .ft-legal-btn { margin-left: 0.9rem; }
.ft-legal a:hover, .ft-legal-btn:hover { color: #fff; }

/* ===== Topo das páginas individuais e textos legais ===== */
.single-hero { background: #fbe6d0 url('assets/images/groups-hero-paper.jpg') center / cover no-repeat; border-bottom: 1px solid var(--rms-line); }
.single-hero-inner { width: min(100% - 2 * var(--rms-gutter), 1400px); margin-inline: auto; padding: clamp(1.75rem, 3.5vw, 3rem) 0; }
.single-hero .pub-badge { margin-bottom: 0.8rem; }
.single-hero h1 { max-width: 52rem; margin: 0 0 0.6rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.12; }
.single-hero-deck { max-width: 46rem; margin: 0 0 0.8rem; color: #2a2222; font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.5; }
.single-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; margin: 0; padding: 0; list-style: none; color: #3d3434; font-size: 0.88rem; }
.single-meta li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legal { max-width: 46rem; padding-bottom: 2rem; }
.legal h2 { margin: 2rem 0 0.6rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: 1.25rem; font-weight: 800; }
.legal p, .legal li { color: #3d3434; line-height: 1.65; }
.legal-date { color: var(--rms-muted); font-size: 0.85rem; }

/* ===== Páginas individuais ===== */
.article { min-width: 0; }
.article-image { margin: 0 0 1.5rem; overflow: hidden; border-radius: 12px; }
.article-image img { display: block; width: 100%; height: auto; }
.article-body { max-width: 46rem; color: #2a2222; font-size: 1.05rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.1rem; }
.article-body h2, .article-body h3 { margin: 1.8rem 0 0.6rem; color: var(--rms-charcoal); font-family: var(--font-title); font-weight: 800; }
.article-body img { max-width: 100%; height: auto; border-radius: 8px; }
.article-body blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 3px solid #a40304; color: #3d3434; font-style: italic; }
.article-h { margin: 0 0 0.7rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: 1.25rem; font-weight: 800; }
.article > .article-h:not(:first-child) { margin-top: 2rem; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rms-line); }
.share-label { color: var(--rms-muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.share ul { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.share a { display: inline-block; padding: 0.35rem 0.9rem; border: 1px solid #d9c7b9; border-radius: 999px; color: #770c11; font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.share a:hover { border-color: #770c11; background: #770c11; color: #fff; }
.related { margin-top: clamp(2.5rem, 5vw, 4rem); }
.pub-single { display: grid; grid-template-columns: minmax(0, 1fr) 18.5rem; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.facts-card { padding: 1.25rem; border: 1px solid #ecdccf; border-radius: 12px; background: #fcf3ea; }
.facts-card h3 { margin: 1.2rem 0 0.6rem; color: var(--rms-charcoal); font-family: var(--font-title); font-size: 0.95rem; font-weight: 800; }
.facts-cover { margin: -1.25rem -1.25rem 1rem; overflow: hidden; border-radius: 12px 12px 0 0; }
.facts-cover img { display: block; width: 100%; height: auto; }
.facts-actions { display: grid; gap: 0.6rem; }
.facts-note { margin: 0 0 1rem; padding: 0.6rem 0.8rem; border-radius: 6px; background: #f1e4d8; color: #5a4b45; font-size: 0.88rem; }
.facts-list { display: grid; gap: 0.8rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.facts-list li { display: flex; align-items: flex-start; gap: 0.7rem; color: #2a2222; font-size: 0.92rem; }
.facts-list svg { flex: none; margin-top: 0.1rem; color: #770c11; }
.cite-box { margin: 0; padding: 0.9rem 1.1rem; border-left: 3px solid #b78a45; border-radius: 6px; background: #f8ecdd; color: #2a2222; font-size: 0.95rem; line-height: 1.55; }
.member-photo { display: grid; place-items: center; aspect-ratio: 1 / 1; margin: -1.25rem -1.25rem 1rem; overflow: hidden; border-radius: 12px 12px 0 0; background: #8f0e12; }
.member-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.member-photo.is-empty { background: linear-gradient(135deg, #7a0b10, #a40304 65%, #c4571f); }
.member-photo span { color: rgba(255, 255, 255, 0.92); font-family: var(--font-title); font-size: 3rem; font-weight: 800; }
.mb-card h3 a { color: inherit; text-decoration: none; }
.mb-card h3 a:hover { color: #a40304; }
@media (max-width: 900px) { .pub-single { grid-template-columns: 1fr; } .facts-card { order: -1; } }

/* ===== Busca ===== */
.search-hero-form { max-width: 40rem; margin-top: 1rem; }
.search-hero-form .search-form { display: flex; gap: 0.6rem; }
.search-hero-form label { flex: 1; }
.search-hero-form .search-field { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #cdbcb3; border-radius: 7px; background: #fff; font: inherit; font-size: 16px; }
.search-hero-form .search-submit { height: 46px; padding: 0 22px; border: 0; border-radius: 7px; background: #770c11; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.search-hero-form .search-submit:hover { background: #a40304; }
.search-results { display: grid; gap: 0.9rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.search-hit { padding: 1.1rem 1.25rem; border: 1px solid #ecdccf; border-radius: 12px; background: #fcf3ea; }
.search-hit .pub-badge { margin-bottom: 0.5rem; }
.search-hit h2 { margin: 0 0 0.35rem; font-family: var(--font-title); font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.search-hit h2 a { color: #1b1818; text-decoration: none; }
.search-hit h2 a:hover { color: #a40304; }
.search-hit p { margin: 0 0 0.3rem; color: #3d3434; font-size: 0.95rem; line-height: 1.5; }
.search-hit-meta { color: var(--rms-muted) !important; font-size: 0.82rem !important; }
.search-empty { max-width: 40rem; padding: 1rem 0 2rem; }
.search-empty h2 { margin: 0 0 0.6rem; font-family: var(--font-title); font-size: 1.5rem; font-weight: 800; }
.search-empty p { color: #3d3434; line-height: 1.6; }
.search-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.search-links a { display: inline-block; padding: 0.5rem 1.1rem; border: 1px solid #770c11; border-radius: 6px; color: #770c11; font-weight: 700; text-decoration: none; }
.search-links a:hover { background: #770c11; color: #fff; }

.single-hero .gp-back { display: block; margin-bottom: 0.7rem; }

.hc-empty { margin: 0.5rem 0 1rem; color: var(--rms-muted); font-size: 0.95rem; line-height: 1.5; }

/* ===== Aviso de cookies em modo "porta" (bloqueia a página até haver uma escolha) ===== */
.cookie-gate-note { display: none; margin-top: 0.5rem !important; font-weight: 700; }
.cookie-banner.is-gate { top: 0; right: 0; bottom: 0; left: 0; display: grid; place-items: center; max-width: none; margin: 0; padding: 1rem; border: 0; border-radius: 0; background: rgba(35, 12, 12, 0.72); box-shadow: none; }
.cookie-banner.is-gate .cookie-inner { max-width: 34rem; padding: 1.5rem; border: 1px solid #ecdccf; border-radius: 14px; background: #fff7ee; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.cookie-banner.is-gate .cookie-gate-note { display: block; }
.cookie-banner.is-gate .cookie-actions { width: 100%; }
.cookie-banner.is-gate .cookie-btn { flex: 1 1 10rem; }
html.cookie-gate, html.cookie-gate body { overflow: hidden; }

/* ===== Redes sociais no cabeçalho ===== */
.header-social { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.header-social a, .header-social span { display: grid; place-items: center; width: 32px; height: 32px; color: #1d1c1b; transition: color 160ms ease, transform 160ms ease; }
.header-social span { opacity: 0.55; }
.header-social svg { width: 100%; height: 100%; }
.header-social a:hover { color: var(--hdr-red); transform: translateY(-1px); }
.header-social-sep { margin: 0 22px 0 24px; }
@media (max-width: 1100px) { .header-social, .header-social-sep { display: none; } }

.header-social svg { width: 25px; height: 25px; }
.header-social span { opacity: 0.6; }
