/*
Theme Name: Bororos
Theme URI: https://bororos.org.br
Author: Bororos
Description: Tema oficial do Grupo Escoteiro e Núcleo Bandeirante Bororos. Integra com o sistema Zelt para blog e eventos.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: bororos
*/

/* =============================================
   1. DESIGN TOKENS EXTRAS (além do theme.json)
   ============================================= */

:root {
  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(4,4,114,.08), 0 1px 2px rgba(4,4,114,.06);
  --shadow-md:  0 4px 12px rgba(4,4,114,.10), 0 2px 6px rgba(4,4,114,.06);
  --shadow-lg:  0 12px 32px rgba(4,4,114,.14), 0 4px 8px rgba(4,4,114,.06);
  --shadow-xl:  0 24px 56px rgba(4,4,114,.18);

  /* Transições */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:  150ms var(--ease-out);
  --t-mid:   250ms var(--ease-out);
  --t-slow:  400ms var(--ease-out);

  /* Bordas */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 9999px;

  /* Layout */
  --header-height: 72px;

  /* Ramo padrão (sobrescritos por [data-ramo]) */
  --ramo-primary:   var(--wp--preset--color--navy);
  --ramo-secondary: var(--wp--preset--color--green);
  --ramo-primary-15: rgba(4,4,114,.12);
}

/* =============================================
   2. SISTEMA DE CORES POR RAMO
   ============================================= */

[data-ramo="lobinhos"] {
  --ramo-primary:    #FAB81B;
  --ramo-secondary:  #004387;
  --ramo-primary-15: rgba(250,184,27,.15);
  --ramo-name: "Lobinhos";
}
[data-ramo="escoteiros"] {
  --ramo-primary:    #005321;
  --ramo-secondary:  #93C01F;
  --ramo-primary-15: rgba(0,83,33,.15);
  --ramo-name: "Escoteiros";
}
[data-ramo="seniors"] {
  --ramo-primary:    #A8153D;
  --ramo-secondary:  #004F9E;
  --ramo-primary-15: rgba(168,21,61,.15);
  --ramo-name: "Sêniors";
}
[data-ramo="pioneiros"] {
  --ramo-primary:    #E20613;
  --ramo-secondary:  #554595;
  --ramo-primary-15: rgba(226,6,19,.15);
  --ramo-name: "Pioneiros";
}
[data-ramo="fadas"] {
  --ramo-primary:    #FEDC01;
  --ramo-secondary:  #2A3282;
  --ramo-primary-15: rgba(254,220,1,.15);
  --ramo-name: "Fadas";
}
[data-ramo="b1s"] {
  --ramo-primary:    #4A96D2;
  --ramo-secondary:  #163666;
  --ramo-primary-15: rgba(74,150,210,.15);
  --ramo-name: "B1s";
}
[data-ramo="b2s"] {
  --ramo-primary:    #01A76C;
  --ramo-secondary:  #0E5432;
  --ramo-primary-15: rgba(1,167,108,.15);
  --ramo-name: "B2s";
}
[data-ramo="guias"] {
  --ramo-primary:    #8B0000;
  --ramo-secondary:  #2A3282;
  --ramo-primary-15: rgba(139,0,0,.15);
  --ramo-name: "Guias";
}

/* =============================================
   3. RESET E BASE
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--wp--preset--color--off-white);
  color: var(--wp--preset--color--gray-900);
  font-family: var(--wp--preset--font-family--calibri);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; display: block; }

/* =============================================
   4. TIPOGRAFIA GLOBAL
   ============================================= */

.wp-block-heading,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--wp--preset--font-family--bree-serif);
  line-height: 1.12;
  text-wrap: balance;
  color: var(--wp--preset--color--gray-900);
  margin-top: 0;
}

/* Tighten tracking at display sizes — AI never does this */
h1 { letter-spacing: -0.025em; }
h2 { letter-spacing: -0.015em; }

h3, h4 { font-family: var(--wp--preset--font-family--calibri); }

p { max-width: 65ch; margin-top: 0; }

.eyebrow {
  display: block;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--teal);
  margin-bottom: 8px;
}

/* =============================================
   5. BOTÕES
   ============================================= */

.wp-element-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--wp--preset--font-family--calibri);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--sm);
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.wp-element-button:active,
.wp-block-button__link:active {
  transform: translateY(0);
}

/* Outline variant */
.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: currentColor;
  color: var(--wp--preset--color--navy);
}

.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--navy);
  color: #fff;
}

/* Ramo-colored button */
.is-style-ramo .wp-block-button__link {
  background: var(--ramo-primary);
  color: var(--ramo-secondary);
}

/* =============================================
   6. CABEÇALHO / NAV
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.site-header .wp-block-group {
  width: 100%;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.site-logo img {
  height: 44px;
  width: auto;
}

/* Nav */
.wp-block-navigation {
  font-family: var(--wp--preset--font-family--calibri);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
}

.wp-block-navigation a {
  color: var(--wp--preset--color--gray-700);
  text-decoration: none;
  transition: color var(--t-fast);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.wp-block-navigation a:hover {
  color: var(--wp--preset--color--navy);
  border-bottom-color: var(--wp--preset--color--teal);
}

/* Mobile hamburger */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--wp--preset--color--navy);
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.wp-block-navigation__responsive-container {
  background: #fff;
}

/* =============================================
   7. HERO DA HOME
   ============================================= */

.bororos-hero {
  position: relative;
  background: linear-gradient(150deg, #040472 0%, #08401E 100%);
  color: #fff;
  padding-block: clamp(72px, 12vw, 140px);
  overflow: hidden;
}

.bororos-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(117,178,32,.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(0,167,149,.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Trefoil pattern — CSS-drawn */
.bororos-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 400px;
  height: 400px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='100' cy='70' r='50' fill='rgba(255,255,255,.04)'/%3E%3Ccircle cx='55' cy='145' r='50' fill='rgba(255,255,255,.04)'/%3E%3Ccircle cx='145' cy='145' r='50' fill='rgba(255,255,255,.04)'/%3E%3Ccircle cx='100' cy='110' r='28' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E") no-repeat center/contain;
  opacity: .6;
  pointer-events: none;
}

.bororos-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.bororos-hero__eyebrow {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(117,178,32,.9);
  margin-bottom: 16px;
}

.bororos-hero h1 {
  color: #fff;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 12ch;
  margin-bottom: 24px;
}

.bororos-hero__sub {
  font-size: var(--wp--preset--font-size--lg);
  color: rgba(255,255,255,.80);
  max-width: 48ch;
  margin-bottom: 36px;
  line-height: 1.6;
}

.bororos-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  background: var(--wp--preset--color--green);
  color: var(--wp--preset--color--navy);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-primary:hover {
  background: #8DD224;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(117,178,32,.4);
  color: var(--wp--preset--color--navy);
}

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.20);
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
  color: #fff;
}

/* =============================================
   8. STATS BAR
   ============================================= */

.bororos-stats {
  background: var(--wp--preset--color--navy);
  color: #fff;
  padding-block: 32px;
}

/* Stats: editorial, não SaaS KPI bar */
.bororos-stats__grid {
  display: flex;
  align-items: stretch;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.bororos-stat {
  flex: 1;
  text-align: left;
  padding: 28px 32px;
  border-right: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bororos-stat:first-child { padding-left: 0; }
.bororos-stat:last-child  { border-right: none; }

.bororos-stat__number {
  font-family: var(--wp--preset--font-family--bree-serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--wp--preset--color--green);
  display: block;
  margin-bottom: 10px;
}

.bororos-stat__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
  max-width: 18ch;
}

/* =============================================
   9. GRID DE RAMOS
   ============================================= */

.bororos-section {
  padding-block: clamp(48px, 8vw, 96px);
}

.section-header {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  margin-bottom: 40px;
}

.ramos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Ramo cards — cor visível desde o repouso, não só no hover */
.ramo-card {
  background: #fff;
  border-radius: 0;                              /* sem radius uniforme */
  padding: 0;
  position: relative;
  overflow: hidden;
  border: none;
  border-left: 5px solid var(--ramo-primary);   /* cor sempre visível */
  box-shadow: 0 1px 4px rgba(4,4,114,.06);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.ramo-card__body {
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ramo-card:hover {
  transform: translateY(-3px) translateX(2px);
  box-shadow: -4px 8px 24px rgba(4,4,114,.12);
}

/* Cabeçalho colorido do card */
.ramo-card__header {
  background: var(--ramo-primary);
  padding: 18px 22px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ramo-card__org {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
  margin-bottom: 2px;
}

.ramo-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.20));
}

.ramo-card__name {
  font-family: var(--wp--preset--font-family--bree-serif);
  font-size: clamp(1.15rem, 2vw, 1.375rem);
  letter-spacing: -0.01em;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.ramo-card__ages {
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
  background: rgba(255,255,255,.18);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  width: fit-content;
  margin-top: 4px;
}

.ramo-card__desc {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--gray-500);
  line-height: 1.6;
  flex: 1;
  max-width: none;
}

.ramo-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--ramo-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--t-fast), color var(--t-fast);
  margin-top: 4px;
}

.ramo-card:hover .ramo-card__cta { gap: 12px; }

/* =============================================
   10. EVENTOS
   ============================================= */

.bororos-events {
  background: #fff;
  padding-block: clamp(48px, 8vw, 80px);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.event-card {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--wp--preset--color--gray-100);
  background: var(--wp--preset--color--off-white);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}

.event-card:hover {
  border-color: var(--wp--preset--color--navy);
  background: #fff;
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.event-card__date {
  text-align: center;
  background: var(--wp--preset--color--navy);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 4px;
  flex-shrink: 0;
}

.event-card__date-day {
  display: block;
  font-family: var(--wp--preset--font-family--bree-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-card__date-month {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 2px;
}

.event-card__body { min-width: 0; }

.event-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.event-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--ramo-primary-15);
  color: var(--ramo-secondary);
}

.event-card__title {
  font-family: var(--wp--preset--font-family--calibri);
  font-size: var(--wp--preset--font-size--md);
  font-weight: 700;
  color: var(--wp--preset--color--gray-900);
  margin-bottom: 4px;
  line-height: 1.35;
}

.event-card__location {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-card__action {
  align-self: center;
  flex-shrink: 0;
  background: var(--wp--preset--color--navy);
  color: #fff;
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background var(--t-fast);
}

.event-card:hover .event-card__action {
  background: var(--wp--preset--color--teal);
}

/* =============================================
   11. BLOG / NOTÍCIAS
   ============================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.post-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--wp--preset--color--gray-100);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--wp--preset--color--gray-100);
}

.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.post-card:hover .post-card__image img {
  transform: scale(1.04);
}

.post-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--gray-500);
}

.post-cat {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--wp--preset--color--gray-100);
  color: var(--wp--preset--color--gray-700);
}

.post-card__title {
  font-family: var(--wp--preset--font-family--calibri);
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  color: var(--wp--preset--color--gray-900);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__excerpt {
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--gray-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  max-width: none;
}

/* =============================================
   12. CTA DE INSCRIÇÃO
   ============================================= */

/* CTA: editorial assimétrico — título à esquerda, não centrado */
.bororos-cta {
  background: linear-gradient(135deg, #040472 0%, #08401E 100%);
  color: #fff;
  text-align: left;
  padding-block: clamp(64px, 10vw, 112px);
  position: relative;
  overflow: hidden;
}

.bororos-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 40%, rgba(117,178,32,.20) 0%, transparent 70%);
  pointer-events: none;
}

.bororos-cta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.bororos-cta h2 { color: #fff; margin-bottom: 12px; max-width: 18ch; }
.bororos-cta p  { color: rgba(255,255,255,.80); max-width: 52ch; margin-bottom: 32px; }

/* =============================================
   13. PÁGINAS DE RAMO
   ============================================= */

.ramo-page-hero {
  background: var(--ramo-primary);
  color: var(--ramo-secondary);
  padding-block: clamp(56px, 10vw, 100px);
  position: relative;
  overflow: hidden;
}

.ramo-page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  pointer-events: none;
}

.ramo-page-hero__eyebrow {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: .70;
  margin-bottom: 12px;
}

.ramo-page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--ramo-secondary);
  margin-bottom: 12px;
}

.ramo-page-hero__ages {
  display: inline-block;
  background: rgba(255,255,255,.25);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  margin-top: 8px;
}

/* Subnav de ramo */
.ramo-subnav {
  background: #fff;
  border-bottom: 1px solid var(--wp--preset--color--gray-100);
  position: sticky;
  top: var(--header-height);
  z-index: 50;
}

.ramo-subnav__list {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.ramo-subnav__list::-webkit-scrollbar { display: none; }

.ramo-subnav__item {
  white-space: nowrap;
}

.ramo-subnav__link {
  display: block;
  padding: 16px 20px;
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 600;
  color: var(--wp--preset--color--gray-500);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.ramo-subnav__link:hover,
.ramo-subnav__link.is-active {
  color: var(--ramo-primary);
  border-bottom-color: var(--ramo-primary);
}

/* =============================================
   14. RODAPÉ
   ============================================= */

.site-footer {
  background: var(--wp--preset--color--gray-900);
  color: rgba(255,255,255,.75);
  padding-block: 48px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.footer-brand__logo { margin-bottom: 12px; }
.footer-brand__desc { font-size: var(--wp--preset--font-size--sm); line-height: 1.6; max-width: 32ch; }

.footer-col__title {
  font-family: var(--wp--preset--font-family--bree-serif);
  font-size: var(--wp--preset--font-size--sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: var(--wp--preset--font-size--sm);
  color: rgba(255,255,255,.60);
  text-decoration: none;
  transition: color var(--t-fast);
}

.footer-links a:hover { color: var(--wp--preset--color--green); }

.footer-bottom {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--wp--preset--font-size--xs);
  color: rgba(255,255,255,.40);
}

/* =============================================
   15. UTILITÁRIOS E WRAPPERS GERAIS
   ============================================= */

.container {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.has-navy-background-color { background: var(--wp--preset--color--navy); }
.has-green-background-color { background: var(--wp--preset--color--green); }
.has-teal-background-color  { background: var(--wp--preset--color--teal); }

.text-balance { text-wrap: balance; }
.text-center  { text-align: center; }

/* Loading skeleton */
.bororos-skeleton {
  background: linear-gradient(90deg, #E8EAF4 25%, #F4F5FB 50%, #E8EAF4 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =============================================
   16. RESPONSIVO
   ============================================= */

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

@media (max-width: 768px) {
  .bororos-stats__grid { grid-template-columns: repeat(2, 1fr); }
  .ramos-grid { grid-template-columns: repeat(2, 1fr); }
  .event-card { grid-template-columns: 56px 1fr; }
  .event-card__action { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .bororos-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ramos-grid { grid-template-columns: 1fr; }
  .bororos-hero__ctas { flex-direction: column; }
}

/* =============================================
   17. ANIMAÇÕES / SCROLL REVEAL
   ============================================= */

.bororos-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.bororos-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bororos-reveal-delay-1 { transition-delay: 100ms; }
.bororos-reveal-delay-2 { transition-delay: 200ms; }
.bororos-reveal-delay-3 { transition-delay: 300ms; }
.bororos-reveal-delay-4 { transition-delay: 400ms; }

/* Stagger n² para ramo cards — delays: 1²=80, 2²=160, 3²=240, 4²=320… */
.ramos-grid .ramo-card:nth-child(1) { transition-delay:  80ms; }
.ramos-grid .ramo-card:nth-child(2) { transition-delay: 160ms; }
.ramos-grid .ramo-card:nth-child(3) { transition-delay: 270ms; }
.ramos-grid .ramo-card:nth-child(4) { transition-delay: 400ms; }
.ramos-grid .ramo-card:nth-child(5) { transition-delay: 550ms; }
.ramos-grid .ramo-card:nth-child(6) { transition-delay: 720ms; }
.ramos-grid .ramo-card:nth-child(7) { transition-delay: 920ms; }
.ramos-grid .ramo-card:nth-child(8) { transition-delay:1080ms; }

@media (prefers-reduced-motion: reduce) {
  .bororos-reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* =============================================
   18. INTEGRAÇÕES ZELT
   ============================================= */

.zelt-embed {
  border: none;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.zelt-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: var(--wp--preset--color--gray-100);
  border-radius: var(--radius-lg);
  color: var(--wp--preset--color--gray-500);
  font-size: var(--wp--preset--font-size--sm);
}

.zelt-error {
  padding: 20px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  color: #991B1B;
  font-size: var(--wp--preset--font-size--sm);
}

/* =============================================
   19. BARRA UTILITÁRIA (topbar)
   ============================================= */

.site-topbar {
  background: var(--wp--preset--color--navy);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-block: 6px;
}

.site-topbar__inner {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-topbar a {
  color: rgba(255,255,255,.70);
  text-decoration: none;
  transition: color var(--t-fast);
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-topbar a:hover {
  color: var(--wp--preset--color--green);
}

.topbar-highlight {
  color: var(--wp--preset--color--green) !important;
  font-weight: 700;
}

.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,.20);
}

@media (max-width: 768px) {
  .site-topbar__left { display: none; }
}

/* =============================================
   20. DEPOIMENTOS
   ============================================= */

.bororos-testimonials {
  padding-block: clamp(56px, 9vw, 96px);
  background: var(--wp--preset--color--navy);
  position: relative;
  overflow: hidden;
}

.bororos-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 10% 50%, rgba(117,178,32,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(0,167,149,.10) 0%, transparent 60%);
  pointer-events: none;
}

.bororos-testimonials .section-header {
  margin-bottom: 48px;
}

.bororos-testimonials .section-header .eyebrow {
  color: var(--wp--preset--color--teal);
}

.bororos-testimonials .section-header h2 {
  color: #fff;
}

.bororos-testimonials .section-header > p {
  color: rgba(255,255,255,.70);
}

/* Depoimentos: frase principal editorial, não centralizada genérica */
.testimonials-big-quote {
  font-family: var(--wp--preset--font-family--bree-serif);
  font-size: clamp(2.25rem, 6vw, 5rem);
  color: #fff;
  text-align: left;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  margin-bottom: 48px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  text-wrap: balance;
}

/* Aspas como elemento gráfico lateral, não em cima */
.testimonials-big-quote::before {
  content: '\201C';
  position: absolute;
  left: 18px;
  top: -0.3em;
  font-size: 8rem;
  line-height: 1;
  color: var(--wp--preset--color--green);
  font-family: Georgia, serif;
  opacity: .40;
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--t-mid), border-color var(--t-mid);
}

.testimonial-card:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(117,178,32,.30);
}

.testimonial-card__quote {
  font-size: var(--wp--preset--font-size--md);
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  flex: 1;
  max-width: none;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ramo-primary, #75B220);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: var(--wp--preset--font-size--sm);
  color: #fff;
  display: block;
  line-height: 1.2;
}

.testimonial-card__role {
  font-size: var(--wp--preset--font-size--xs);
  color: rgba(255,255,255,.50);
  display: block;
}

.testimonial-card__ramo-badge {
  margin-left: auto;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--ramo-primary-15, rgba(117,178,32,.15));
  color: var(--ramo-primary, #75B220);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-big-quote { font-size: 1.5rem; }
}

/* =============================================
   21. EVENTO INDIVIDUAL
   ============================================= */

.event-single-hero {
  background: linear-gradient(160deg, #040472 0%, #08401E 100%);
  color: #fff;
  padding-block: clamp(48px, 8vw, 80px);
  position: relative;
  overflow: hidden;
}

.event-single-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--ramo-primary, var(--wp--preset--color--green));
}

.event-single-hero__inner {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  position: relative;
  z-index: 1;
}

.event-single-hero__badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.event-single-hero__ramo-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--ramo-primary, rgba(117,178,32,.25));
  color: var(--ramo-secondary, #fff);
}

.event-single-hero__free-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,167,149,.20);
  color: var(--wp--preset--color--teal);
}

.event-single-hero__title {
  font-family: var(--wp--preset--font-family--bree-serif);
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 20px;
  max-width: 22ch;
  text-wrap: balance;
  line-height: 1.15;
}

.event-single-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.event-single-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: rgba(255,255,255,.78);
}

.event-single-hero__meta-item svg {
  flex-shrink: 0;
  opacity: .70;
}

.event-single-hero__cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wp--preset--color--green);
  color: var(--wp--preset--color--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background var(--t-fast), transform var(--t-fast);
}
.event-single-hero__cta-btn:hover { background: #8DD224; transform: translateY(-1px); }

/* Mobile CTA — escondida em desktop porque a sidebar assume */
.event-single-hero__cta-mobile { display: none; }

/* Layout de duas colunas: conteúdo + sidebar */
.event-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: clamp(40px, 6vw, 64px);
  align-items: start;
}

.event-single-main { min-width: 0; }

.event-single-main .wp-block-post-content { max-width: none; }

/* Sidebar */
.event-sidebar {
  position: sticky;
  top: calc(var(--header-height, 72px) + 16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-info-card {
  background: var(--wp--preset--color--off-white);
  border: 1.5px solid var(--wp--preset--color--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.event-price-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 16px;
}

.event-price-badge--free {
  background: rgba(0,167,149,.12);
  color: var(--wp--preset--color--teal);
}

.event-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--wp--preset--color--gray-100);
}

.event-info-item:first-of-type { padding-top: 0; }
.event-info-item:last-child { border-bottom: none; padding-bottom: 0; }

.event-info-item__icon {
  font-size: 1.05rem;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
  margin-top: 2px;
}

.event-info-item__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.event-info-item__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
}

.event-info-item__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--wp--preset--color--gray-900);
  line-height: 1.4;
}

.event-info-item__link { color: var(--wp--preset--color--navy); }
.event-info-item__link:hover { text-decoration: underline; }

/* Bloco de ingresso */
.event-ticket-cta {
  background: var(--wp--preset--color--navy);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.event-ticket-cta__btn {
  display: block;
  width: 100%;
  background: var(--wp--preset--color--green);
  color: var(--wp--preset--color--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  text-align: center;
  transition: background var(--t-fast), transform var(--t-fast);
}
.event-ticket-cta__btn:hover { background: #8DD224; transform: translateY(-1px); color: var(--wp--preset--color--navy); }

.event-ticket-cta__sub {
  font-size: 12px;
  color: rgba(255,255,255,.50);
  margin-top: 8px;
  margin-bottom: 0;
  max-width: none;
}

/* Share */
.event-share {
  padding: 16px 20px;
  background: var(--wp--preset--color--off-white);
  border: 1.5px solid var(--wp--preset--color--gray-100);
  border-radius: var(--radius-md);
}

.event-share__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
  margin-bottom: 10px;
  max-width: none;
}

.event-share__links { display: flex; gap: 8px; }

.event-share__btn {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  background: var(--wp--preset--color--gray-100);
  color: var(--wp--preset--color--gray-700);
  transition: background var(--t-fast), color var(--t-fast);
}
.event-share__btn:hover { background: var(--wp--preset--color--navy); color: #fff; }
.event-share__btn--wa { background: #25D366; color: #fff; }
.event-share__btn--wa:hover { background: #1fba58; color: #fff; }

@media (max-width: 900px) {
  .event-single-layout {
    grid-template-columns: 1fr;
  }
  .event-sidebar {
    position: static;
    order: -1;
  }
  .event-single-hero__cta-mobile { display: block; }
}

/* =============================================
   22. ARQUIVO DO BLOG
   ============================================= */

.archive-header {
  background: var(--wp--preset--color--navy);
  color: #fff;
  padding-block: clamp(40px, 7vw, 72px);
}

.archive-header__inner {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.archive-header__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--teal);
  display: block;
  margin-bottom: 10px;
}

.archive-header .wp-block-query-title,
.archive-header h1 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.archive-header__desc,
.archive-header .wp-block-term-description {
  color: rgba(255,255,255,.70);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-bottom: 0;
}

/* Filter chips */
.archive-filter {
  background: #fff;
  border-bottom: 1px solid var(--wp--preset--color--gray-100);
  position: sticky;
  top: var(--header-height, 72px);
  z-index: 40;
}

.archive-filter__inner {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
  padding-block: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.archive-filter__inner::-webkit-scrollbar { display: none; }

.archive-chip {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--wp--preset--color--gray-100);
  background: transparent;
  color: var(--wp--preset--color--gray-700);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.archive-chip:hover {
  border-color: var(--wp--preset--color--navy);
  color: var(--wp--preset--color--navy);
}

.archive-chip--active {
  background: var(--wp--preset--color--navy);
  border-color: var(--wp--preset--color--navy);
  color: #fff;
}

.archive-chip--ramo:hover,
.archive-chip--ramo.archive-chip--active {
  background: var(--ramo-chip-color, var(--wp--preset--color--navy));
  border-color: var(--ramo-chip-color, var(--wp--preset--color--navy));
  color: #fff;
}

.archive-filter__divider {
  width: 1px;
  height: 20px;
  background: var(--wp--preset--color--gray-100);
  flex-shrink: 0;
}

/* Área dos posts */
.archive-posts {
  padding-block: clamp(40px, 6vw, 64px);
  background: var(--wp--preset--color--off-white);
}

.archive-posts .wp-block-query {
  max-width: var(--wp--style--global--wide-size);
  margin-inline: auto;
  padding-inline: 24px;
}

.archive-posts .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Card de post no contexto de arquivo */
.archive-posts .post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--wp--preset--color--gray-100);
  transition: box-shadow var(--t-mid), transform var(--t-mid);
}

.archive-posts .post-card:hover {
  box-shadow: 0 8px 24px rgba(4,4,114,.10);
  transform: translateY(-2px);
}

.archive-posts .post-card .wp-block-post-featured-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.archive-posts .post-card .wp-block-post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.archive-posts .post-card:hover .wp-block-post-featured-image img {
  transform: scale(1.04);
}

.archive-posts .post-card .post-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.archive-posts .post-card .post-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--gray-500);
}

.archive-posts .post-card .post-card__meta .wp-block-post-terms a {
  color: var(--wp--preset--color--green);
  text-decoration: none;
}

.archive-posts .post-card .wp-block-post-title {
  font-family: var(--wp--preset--font-family--bree-serif);
  font-size: 1rem;
  line-height: 1.3;
  margin: 0;
}

.archive-posts .post-card .wp-block-post-title a {
  color: var(--wp--preset--color--gray-900);
  text-decoration: none;
  transition: color var(--t-fast);
}

.archive-posts .post-card .wp-block-post-title a:hover {
  color: var(--wp--preset--color--navy);
}

.archive-posts .post-card .wp-block-post-excerpt {
  font-size: 13.5px;
  color: var(--wp--preset--color--gray-500);
  line-height: 1.55;
  flex: 1;
}

.archive-posts .post-card .wp-block-post-excerpt p { margin: 0; max-width: none; }

/* Paginação */
.wp-block-query-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-block: 48px;
  flex-wrap: wrap;
}

.wp-block-query-pagination-numbers a,
.wp-block-query-pagination-next a,
.wp-block-query-pagination-previous a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid var(--wp--preset--color--gray-100);
  color: var(--wp--preset--color--gray-700);
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.wp-block-query-pagination-numbers a:hover,
.wp-block-query-pagination-next a:hover,
.wp-block-query-pagination-previous a:hover {
  background: var(--wp--preset--color--navy);
  border-color: var(--wp--preset--color--navy);
  color: #fff;
}

.wp-block-query-pagination-numbers .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  background: var(--wp--preset--color--navy);
  color: #fff;
}

@media (max-width: 768px) {
  .archive-posts .wp-block-post-template {
    grid-template-columns: 1fr;
  }
}
