/*
  Sivepar. Identidade derivada do logo: a fita ambar e oliva.
  Linha de costura (tracejado) e o unico ornamento: marca divisoes reais de conteudo.
*/
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("/assets/fonts/spectral-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --pine: #22301a;
  --pine-deep: #18230f;
  --olive: #4f6112;
  --lime: #c5d01e;
  --amber: #f2a51c;
  --amber-deep: #8f5204;
  --linen: #f1f4ea;
  --ink: #1e2519;
  --muted: #545c4d;
  --line: #d6dccb;
  --white: #fff;
  --surface: #fff;
  --surface-2: var(--linen);
  --text: var(--ink);
  --heading: var(--pine);
  --accent: var(--olive);
  --hover: var(--amber-deep);
  color-scheme: light;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, Arial, sans-serif;
  --radius: 4px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(3rem, 5.5vw, 4.75rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; background: var(--surface); color: var(--text); font-family: var(--sans); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--hover); }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 2px; border-radius: 2px; box-shadow: 0 0 0 5px rgba(242, 165, 28, .55); }
.hero :focus-visible, .foot :focus-visible, .doc-current :focus-visible, .skip:focus-visible, .wa-float:focus-visible { outline-color: var(--amber); box-shadow: none; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
button { font: inherit; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--heading); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 4.2vw, 3.25rem); letter-spacing: -.012em; }
h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); letter-spacing: -.008em; margin-bottom: 1.125rem; }
h3 { font-size: 1.1875rem; line-height: 1.28; }
h4 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; margin-top: 1rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100%, 80rem); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section-tight + .section-tight { padding-top: 0; }
.section-tint { background: var(--surface-2); }
.mt { margin-top: 1.5rem; }
.mt-lg { margin-top: 3.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--pine); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: .5rem; color: #fff; }
.empty { color: var(--muted); padding: 1.25rem 1.5rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); max-width: 44rem; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.5; color: var(--muted); max-width: 44rem; }
.plain li { padding: .15rem 0; }
.link-list li { padding: .3rem 0; }

/* Botoes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .6rem 1.15rem; min-height: 44px; border: 1.5px solid transparent; border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: .9688rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { padding: .75rem 1.4rem; font-size: 1rem; }
.btn-note { font-weight: 400; opacity: .8; }
.btn-primary { background: var(--amber); color: var(--pine-deep); }
.btn-primary:hover { background: #ffb933; color: var(--pine-deep); }
.btn-secondary { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-secondary:hover { background: var(--heading); color: var(--surface); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: var(--surface); border-color: #fff; color: #22301a; }
.btn-dark { background: var(--pine); color: #fff; }
.btn-dark:hover { background: var(--pine-deep); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Topo */
.top { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.mark { width: 2.75rem; height: auto; }
.brand-word { width: 6.5rem; height: auto; }
.nav > ul { display: flex; align-items: center; gap: .1rem; }
.nav-link { display: block; padding: .55rem .65rem; background: none; border: 0; border-radius: var(--radius); color: var(--text); font-size: .9063rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.nav-link:hover { background: var(--surface-2); color: var(--heading); }
.nav-link[aria-current="page"], .nav-link[data-current] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--olive); border-radius: 0; }
.nav-cta { margin-left: .6rem; }
.sub-toggle::after { content: ""; display: inline-block; width: .42em; height: .42em; margin-left: .45em; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-.14em) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::after { transform: translateY(.06em) rotate(225deg); }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + .5rem); left: 0; width: 19rem; padding: .4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(24, 35, 15, .13); display: none; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
.sub a { display: block; padding: .55rem .75rem; color: var(--text); font-weight: 500; text-decoration: none; border-radius: 3px; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--surface-2); color: var(--heading); }
.sub small { display: block; color: var(--muted); font-size: .8438rem; font-weight: 400; }
.menu-toggle { display: none; align-items: center; gap: .55rem; min-height: 44px; padding: .4rem .75rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--heading); font-weight: 600; cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 1.05rem; height: 2px; background: currentColor; }
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -5px; }
.menu-bars::after { top: 5px; }

@media (max-width: 71.9rem) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; inset: 100% 0 auto 0; max-height: calc(100vh - 4.25rem); overflow-y: auto; padding: .75rem var(--gutter) 1.5rem; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 28px rgba(24, 35, 15, .12); }
  .nav.is-open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; padding: .75rem .25rem; font-size: 1rem; text-align: left; border-bottom: 1px solid var(--surface-2); }
  .nav-link[aria-current="page"], .nav-link[data-current] { box-shadow: none; }
  .sub { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 .5rem .75rem; }
  .nav-cta { margin: 1rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* WhatsApp sempre a mao */
.wa-float { position: fixed; right: clamp(.9rem, 2vw, 1.5rem); bottom: clamp(.9rem, 2vw, 1.5rem); z-index: 40; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; background: #128c4a; color: #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(24, 35, 15, .28); }
.wa-float:hover { background: #0e743c; color: #fff; }

.flash { background: var(--olive); color: #fff; padding: .85rem 0; font-weight: 500; }

/* Abertura da pagina inicial */
.hero { background: var(--pine); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); align-items: center; gap: clamp(1.5rem, 3vw, 3rem); padding-top: clamp(2.5rem, 4.5vw, 4rem); }
.hero h1 { color: #fff; }
.hero-lead { margin: 1.25rem 0 1.75rem; font-size: clamp(1.0625rem, 1.35vw, 1.1875rem); line-height: 1.5; color: #dfe5d4; max-width: 34rem; }
.hero-art { margin-right: calc((100vw - min(100vw, 80rem)) / -2 - var(--gutter)); }
.hero-art svg { width: 100%; overflow: visible; }
.hero-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(1.5rem, 3vw, 3rem); padding-block: 1.4rem; border-top: 2px dashed rgba(255, 255, 255, .28); }
.hero-facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero-facts dt { color: #c9d1bc; font-size: .875rem; }
.hero-facts dd { font-family: var(--serif); font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; color: #fff; }

/* Caminhos */
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); margin-top: 1rem; }
.path { padding-top: 1.25rem; border-top: 2px dashed var(--olive); display: flex; flex-direction: column; }
.path h3 { margin-bottom: .5rem; }
.path p { color: var(--muted); font-size: .9688rem; }
.path ul { margin-top: auto; }
.path li { border-top: 1px solid var(--line); }
.path li a { display: block; padding: .55rem 0; font-size: .9688rem; font-weight: 500; text-decoration: none; color: var(--heading); }
.path li a:hover { color: var(--hover); text-decoration: underline; }

/* Faixa da convencao: clara, para a abertura e a chamada final terem mais destaque */
.band-convention { background: var(--surface-2); padding-block: clamp(2.25rem, 4vw, 3rem); }
.band-grid { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: 1.5rem 4rem; align-items: center; }
.band-convention h2 { margin-bottom: .6rem; }
.band-convention p { max-width: 40rem; }
.band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }

/* Cabecalho de secao */
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 500; }
.section-head-stack { display: block; }
.section-head-stack p { color: var(--muted); margin: .35rem 0 0; }
.updates-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem); }

/* Agenda */
.event-row { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); gap: 1.1rem; padding-block: 1.15rem; border-top: 1px solid var(--line); }
.event-date { display: flex; flex-direction: column; align-items: center; padding: .45rem 0 .5rem; background: var(--surface-2); border-radius: var(--radius); line-height: 1.1; align-self: start; }
.event-date .d { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--heading); }
.event-date .m { font-size: .875rem; font-weight: 600; color: var(--accent); }
.event-date .y { font-size: .8125rem; color: var(--muted); margin-top: .1rem; }
.event-date-none { min-height: 3rem; }
.event-kind { margin: 0 0 .15rem; font-size: .875rem; font-weight: 600; color: var(--accent); }
.event-row h3 { font-size: 1.0938rem; font-weight: 600; }
.event-row h3 a { color: var(--heading); text-decoration: none; }
.event-row h3 a:hover { color: var(--hover); text-decoration: underline; }
.event-place { margin: .3rem 0 0; font-size: .9375rem; color: var(--muted); }
.event-list-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); }
.event-list-compact .event-row { border-top: 1px solid rgba(0, 0, 0, .08); }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2.25rem; }
.chips a { padding: .45rem .95rem; min-height: 40px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 500; color: var(--text); text-decoration: none; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.chips a[aria-current="true"] { background: var(--heading); border-color: var(--heading); color: var(--surface); }

/* Noticias */
.news-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1.1rem; padding-block: 1.15rem; border-top: 1px solid var(--line); }
.news-row:not(:has(.news-thumb)) { grid-template-columns: 1fr; }
.news-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); align-self: start; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-row time { font-size: .875rem; color: var(--muted); }
.news-row h3 { font-size: 1.0938rem; font-weight: 600; margin-top: .1rem; }
.news-row h3 a { color: var(--heading); text-decoration: none; }
.news-row h3 a:hover { color: var(--hover); text-decoration: underline; }
.news-source { margin: .3rem 0 0; font-size: .875rem; color: var(--muted); }
.news-list-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); }

/* Noticia em destaque */
.news-feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; margin-bottom: 2.25rem; }
.news-feature:not(:has(.news-feature-photo)) { grid-template-columns: minmax(0, 1fr); }
.news-feature-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.news-feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.news-feature time { font-size: .9063rem; color: var(--muted); }
.news-feature h3 { font-size: clamp(1.375rem, 2.1vw, 1.75rem); line-height: 1.2; margin: .2rem 0 .6rem; }
.news-feature h3 a { color: var(--heading); text-decoration: none; }
.news-feature h3 a:hover { color: var(--hover); text-decoration: underline; }
.news-feature p { color: var(--muted); max-width: 34rem; }
.news-feature-compact { grid-template-columns: minmax(0, 1fr); gap: .85rem; margin-bottom: 1rem; padding-top: 1.15rem; border-top: 1px solid var(--line); }
.news-feature-compact .news-feature-photo { aspect-ratio: 16 / 9; }
.news-feature-compact h3 { font-size: 1.25rem; font-weight: 600; }

/* Fotos do sindicato em acao */
.section-action { padding-top: 0; }
.action-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); aspect-ratio: 16 / 7; }
.action-photo { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); min-height: 0; }
.action-photo:first-child { grid-row: span 2; }
.action-photo img { width: 100%; height: 100%; object-fit: cover; }
.action-photo figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .8rem; background: linear-gradient(transparent, rgba(24, 35, 15, .86)); color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .55); font-size: .875rem; font-weight: 500; line-height: 1.35; }

/* Linha do tempo: uma sequencia real, marcada pela linha de costura */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding-top: 1.5rem; border-top: 2px dashed var(--olive); }
.timeline li::before { content: ""; position: absolute; top: -.5rem; left: 0; width: .875rem; height: .875rem; background: var(--amber); border-radius: 50%; }
.timeline strong { display: block; font-family: var(--serif); font-size: clamp(1.625rem, 2.4vw, 2.125rem); font-weight: 500; line-height: 1.1; color: var(--heading); margin-bottom: .5rem; }

/* Agenda por ano */
.note-line { max-width: 44rem; margin-bottom: 2.25rem; color: var(--muted); }
.year-group { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: .5rem 1.5rem; padding-block: 1.25rem; }
.year-group > h3 { font-size: 1.375rem; color: var(--accent); padding-top: 1.05rem; }

/* Logos */
.members-strip { background: var(--surface-2); }
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .75rem; }
.logo-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 1rem; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); }
a.logo-tile:hover { border-color: var(--accent); }
.logo-tile.is-loading { background: var(--surface-2); }
.logo-tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.logo-name { font-family: var(--serif); text-align: center; color: var(--heading); line-height: 1.2; }
.logo-grid-named li > span { display: block; margin-top: .4rem; font-size: .875rem; color: var(--muted); text-align: center; }

/* Chamada final */
.cta { background: var(--amber); color: var(--pine-deep); padding-block: clamp(2.5rem, 4vw, 3.25rem); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) auto; gap: 2rem 4rem; align-items: center; }
.cta h2 { margin-bottom: .6rem; color: #18230f; }
.cta p { max-width: 38rem; }
.cta .btn-primary { background: #22301a; color: #fff; }
.cta .btn-primary:hover { background: var(--pine-deep); color: #fff; }
.cta .btn-ghost { border-color: #22301a; color: #18230f; }
.cta .btn-ghost:hover { background: #22301a; border-color: #22301a; color: #fff; }

/* Rodape */
.foot { background: var(--pine-deep); color: #d5dcc9; font-size: .9688rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 4fr); gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4rem); }
.foot h2 { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: #fff; margin-bottom: .75rem; }
.foot a { color: #d5dcc9; text-decoration: none; }
.foot a:hover { color: var(--amber); text-decoration: underline; }
.foot-contact { display: grid; gap: 1.1rem; }
.foot-contact h3 { font-family: var(--sans); font-size: .8438rem; font-weight: 500; line-height: 1.4; color: #aab49c; margin-bottom: .15rem; }
.foot-contact p { margin: 0; line-height: 1.5; }
.foot li { padding: .2rem 0; }
.foot-about img { width: 8rem; margin-bottom: 1rem; }
.foot-about p { max-width: 21rem; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 2px dashed rgba(255, 255, 255, .16); font-size: .875rem; color: #aab49c; }
.foot-legal p { margin: 0; }

/* Paginas internas */
.page-head { position: relative; overflow: hidden; background: var(--surface-2); padding-block: clamp(1.75rem, 3vw, 2.5rem); border-bottom: 2px dashed var(--line); }
.page-head .wrap { position: relative; }
.page-ribbon { position: absolute; right: max(-2rem, calc((100vw - 80rem) / 2 - 7rem)); top: 50%; width: clamp(11rem, 16vw, 15rem); height: auto; opacity: .85; transform: translateY(-50%); }
.crumb { font-size: .875rem; color: var(--muted); margin-bottom: .85rem; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--hover); }
.page-head h1 { font-size: clamp(1.875rem, 3.2vw, 2.5rem); max-width: 44rem; }
.page-head .lead { margin: .9rem 0 0; }

.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.note { padding: 1.5rem; background: var(--surface-2); border-radius: var(--radius); }
.section-tint .note { background: var(--surface); }
.note h2 { font-size: 1.25rem; margin-bottom: .6rem; }
.note .note-next { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 2px dashed var(--line); }
.prose { max-width: 42rem; }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.prose h3 { margin: 1.5rem 0 .5rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1rem; }
.prose ol { padding-left: 1.25rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 3px solid var(--amber); font-family: var(--serif); font-size: 1.1875rem; }
.columns-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.columns-3 > div { padding-top: 1rem; border-top: 2px dashed var(--olive); }
.columns-3 h3 { margin-bottom: .5rem; }
.columns-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem clamp(2rem, 5vw, 4rem); }
.advantages > div { padding-top: 1rem; border-top: 2px dashed var(--olive); }
.advantages h3 { margin-bottom: .4rem; }

/* Diretoria */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 2rem 1.5rem; margin-top: 1.5rem; }
.person-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); display: block; margin-bottom: .7rem; }
.person h3 { font-size: 1.0625rem; font-weight: 600; }
.person p { color: var(--muted); font-size: .9375rem; margin: .15rem 0 0; }
.councils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); margin-top: 3rem; padding-top: 1.5rem; border-top: 2px dashed var(--olive); }

/* Convencao */
.doc-current { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 3rem; padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--pine); color: #e3e8d9; border-radius: var(--radius); }
.doc-current h2 { color: #fff; margin: 0 0 .25rem; }
.doc-current p { margin: 0; }
.doc-status { display: inline-block; padding: .1rem .6rem; margin-bottom: .6rem !important; background: var(--lime); color: var(--pine-deep); border-radius: 999px; font-size: .875rem; font-weight: 600; }
.doc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.doc-list span { color: var(--muted); font-size: .9375rem; }

/* Beneficios */
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; }
.benefit summary { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 1.25rem; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; }
.benefit summary::-webkit-details-marker { display: none; }
.benefit-logo { display: flex; align-items: center; justify-content: center; height: 3.25rem; }
.benefit-logo img { max-height: 100%; width: auto; object-fit: contain; }
.benefit-text strong { display: block; font-family: var(--serif); font-size: 1.125rem; font-weight: 500; color: var(--heading); }
.benefit-text span { color: var(--muted); font-size: .9688rem; line-height: 1.4; display: block; }
.benefit-more { width: .6rem; height: .6rem; border-right: 2px solid var(--olive); border-bottom: 2px solid var(--olive); transform: rotate(45deg); justify-self: center; transition: transform .15s; }
.benefit[open] .benefit-more { transform: rotate(225deg); }
.benefit-body { padding: 0 1.25rem 1.25rem calc(6rem + 2.5rem); }
.benefit-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 1rem 0 0; font-weight: 500; }

/* Artigo e evento */
.article { max-width: 46rem; }
.article-date { color: var(--muted); font-size: .9375rem; }
.article-figure { margin-bottom: 1.5rem; }
.article-figure img { width: auto; max-width: 100%; max-height: 34rem; height: auto; border-radius: var(--radius); }
.split-article { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.split-article .facts { position: sticky; top: 6.5rem; }
.facts dt { font-size: .875rem; color: var(--muted); margin-top: .85rem; }
.facts dd { font-weight: 500; }
.facts p:last-child { margin-top: 1.25rem; }

/* Galeria */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem 1.5rem; }
.album a { display: block; color: var(--heading); text-decoration: none; }
.album-cover { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); margin-bottom: .7rem; }
.album-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.album a:hover .album-cover img { transform: scale(1.025); }
.album strong { display: block; font-family: var(--serif); font-size: 1.0938rem; font-weight: 600; line-height: 1.25; }
.album a:hover strong { text-decoration: underline; }
.album-meta { color: var(--muted); font-size: .9063rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .6rem; }
.photo-grid a { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 4rem minmax(0, 1fr) 4rem; align-items: center; background: rgba(12, 17, 8, .95); margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0; padding: 0; color: #fff; }
.lightbox:not([open]) { display: none; }
.lightbox img { max-height: 92vh; max-width: 100%; width: auto; margin: auto; }
.lightbox button { width: 3rem; height: 3rem; margin: auto; background: rgba(255, 255, 255, .12); border: 0; border-radius: 50%; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox .lb-close { position: absolute; top: 1rem; right: 1rem; }

/* Formularios */
.form { max-width: 40rem; }
.form-card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.optional { font-weight: 400; color: var(--muted); }
.field select { width: 100%; min-height: 46px; padding: .6rem .8rem; background: var(--surface); border: 1px solid #98a18c; border-radius: var(--radius); font: inherit; color: var(--text); }
.field select:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(242, 165, 28, .45); }
.field input:not([type=checkbox]), .field textarea { width: 100%; min-height: 46px; padding: .6rem .8rem; background: var(--surface); border: 1px solid #98a18c; border-radius: var(--radius); font: inherit; color: var(--text); }
.field input[type=file] { padding: .45rem; color: var(--muted); }
input[type=file]::file-selector-button { min-height: 36px; margin-right: .75rem; padding: .25rem .9rem; background: var(--surface); border: 1px solid var(--heading); border-radius: var(--radius); color: var(--heading); font: inherit; font-weight: 600; cursor: pointer; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--pine); outline-offset: 0; border-color: var(--pine); box-shadow: 0 0 0 4px rgba(242, 165, 28, .45); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field-check label { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .6rem; font-weight: 400; font-size: .9688rem; line-height: 1.45; }
.field-check input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--accent); }
.help { margin: 0 0 .3rem; font-size: .9063rem; color: var(--muted); }
.error { margin: .3rem 0 0; color: #a11d10; font-size: .9375rem; font-weight: 500; }
.has-error input:not([type=checkbox]), .has-error textarea { border-color: #a11d10; }
.hp { position: absolute; left: -9999px; }
.steps { padding-left: 1.2rem; margin-bottom: 1.25rem; }
.steps li { margin-bottom: .55rem; }
.contact-list dt { font-size: .875rem; color: var(--muted); margin-top: .85rem; }
.contact-list dd { font-weight: 500; }

/* Comunicados */
.notice-list li { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.notice-list time { font-size: .875rem; color: var(--muted); }
.notice-list h2 { font-size: 1.25rem; font-weight: 600; margin: .15rem 0 .35rem; }
.notice-list h2 a { color: var(--heading); text-decoration: none; }
.notice-list h2 a:hover { color: var(--hover); text-decoration: underline; }
.notice-list p { color: var(--muted); }
.map-link { font-weight: 500; }

.project-list { display: grid; gap: 3rem; }
.project { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 2rem; align-items: start; }
.project img { border-radius: var(--radius); }
.project:not(:has(img)) { grid-template-columns: 1fr; }

/* Telas menores */
@media (max-width: 60rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 34rem; margin-inline: auto calc(var(--gutter) * -1); width: 100%; }
  .split-article .facts { position: static; order: -1; }
  .news-feature { grid-template-columns: minmax(0, 1fr); }
  .action-grid { aspect-ratio: 16 / 11; }
  .band-grid, .cta-grid, .split, .split-article, .updates-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
  .paths-grid, .columns-3 { grid-template-columns: minmax(0, 1fr); }
  .path h3 { min-height: 0; }
  .path ul { margin-top: .5rem; }
}
@media (max-width: 42rem) {
  .top-row { min-height: 4rem; }
  .mark { width: 2.6rem; }
  .brand-word { width: 6.25rem; }
  .nav { max-height: calc(100vh - 4rem); }
  .hero-art { max-width: 22rem; }
  .hero-facts { margin-top: 1rem; padding-block: 1.25rem; }
  .path p { display: none; }
  .path h3 { margin-bottom: .35rem; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .year-group { grid-template-columns: minmax(0, 1fr); padding-block: .75rem; }
  .year-group > h3 { padding-top: 0; }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; aspect-ratio: auto; }
  .action-photo:first-child { grid-column: span 2; grid-row: auto; }
  .action-photo:not(:first-child) figcaption { padding: 1.75rem .6rem .5rem; font-size: .8125rem; }
  .action-photo { aspect-ratio: 3 / 2; }
  .action-photo:not(:first-child) { aspect-ratio: 1; }
  .page-ribbon { display: none; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); row-gap: 1.25rem; }
  .event-list-wide, .news-list-wide, .columns-2, .councils, .field-row { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .benefit summary { grid-template-columns: 3.75rem minmax(0, 1fr) 1rem; gap: .85rem; padding: .85rem; }
  .benefit-body { padding: 0 .85rem 1rem; }
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); }
  .news-row { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .project { grid-template-columns: minmax(0, 1fr); }
  .lightbox { grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; }
}

/* Perguntas frequentes */
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.1875rem; font-weight: 600; color: var(--heading); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-more { flex: none; width: .6rem; height: .6rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .15s; }
.faq[open] .faq-more { transform: rotate(225deg); }
.faq-answer { padding: 0 0 1.25rem; }

/* Abertura: a fita entra uma unica vez ao carregar a pagina */
@media (prefers-reduced-motion: no-preference) {
  .hero-art path { transform-box: fill-box; animation: fita-entra .9s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-art path:first-of-type { --dx: 3rem; }
  .hero-art path:last-of-type { --dx: -3rem; animation-delay: .12s; }
  .hero-art image { transform-box: fill-box; transform-origin: center; animation: foto-assenta 1.4s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes fita-entra { from { opacity: 0; transform: translateX(var(--dx, 0)); } to { opacity: 1; transform: none; } }
@keyframes foto-assenta { from { transform: scale(1.05); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .top, .foot, .cta, .chips, .wa-float { display: none; }
  body { font-size: 11pt; }
}

/* Botao do WhatsApp nunca cobre o fim do rodape; some enquanto a pessoa digita */
.foot-legal { padding-right: 4.5rem; }
body.digitando .wa-float { opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; }

/* Fita do topo das paginas internas: em telas medias, o texto para antes dela */
@media (min-width: 42.01rem) and (max-width: 80rem) {
  .page-head h1, .page-head .lead, .page-head .crumb { max-width: min(44rem, calc(100% - 11.5rem)); }
}

/* Celular: tudo que se toca tem pelo menos 44 px de altura */
@media (max-width: 42rem) {
  .wa-float { width: 2.75rem; height: 2.75rem; }
  body:has(form.form) .wa-float { display: none; }
  .foot li { padding: 0; }
  .foot li a, .foot-contact a, .foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }
  .section-head a, .crumb a, .note a:not(.btn), .faq-answer a, .band-actions a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; }
  .path li a { padding-block: .7rem; }
  .brand { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Associe-se: condicoes antes do formulario */
.facts-list { margin: 0 0 .5rem; display: grid; gap: .85rem; }
.facts-list dt { font-weight: 600; color: var(--heading); }
.facts-list dd { margin: .1rem 0 0; }

/* Pagina inicial: agenda sem eventos marcados */
.agenda-wait { margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; background: var(--surface-2); border-radius: var(--radius); color: var(--text); }
.agenda-past { font-family: var(--sans); font-size: .9375rem; font-weight: 600; color: var(--muted); margin: 0 0 .5rem; }

/* Quebra de linha mais equilibrada: titulos sem linha curta e paragrafos sem palavra sozinha */
h1, h2, h3, .hero-lead { text-wrap: balance; }
p, li, dd, .lead { text-wrap: pretty; }

/* Inscricao na pagina do curso */
.btn-block { display: flex; width: 100%; justify-content: center; }
.signup-note { margin-top: -.25rem; font-size: .875rem; color: var(--muted); }
.signup-closed { padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prose a { overflow-wrap: anywhere; }

/* Acesso discreto ao painel, no fim do rodape */
.foot-sep { margin: 0 .6rem; color: #6f7a62; }
.foot .foot-staff { color: #aab49c; }

