/* =========================================================================
   Clube Beira Mar de Tramandaí — Design System
   Tokens, componentes e animações. Utilitários de layout ficam a cargo do
   Tailwind (CDN) configurado em includes/header.php.
   ========================================================================= */

:root {
  /* Cor primária — verde da logo oficial do clube */
  --bm-900: #04361b;
  --bm-800: #045c26;
  --bm-700: #018033;
  --bm-650: #019a3d;
  --bm-600: #00a848;
  --bm-500: #00b94f;
  --bm-400: #4fca8b;
  --bm-300: #91ddb9;
  --bm-200: #b5dcc9;
  --bm-100: #d4eee1;
  --bm-50:  #f2fbf7;

  /* Acento dourado/areia */
  --gold-700: #a9781f;
  --gold-600: #c28e2a;
  --gold-500: #d4a13d;
  --gold-400: #e2b968;
  --gold-100: #faf1de;

  /* Neutros */
  --ink-900: #0c1712;
  --ink-800: #16241d;
  --ink-600: #47564d;
  --ink-400: #7c8c82;
  --ink-200: #dde6e1;
  --ink-100: #eef3f0;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-full: 999px;

  --shadow-soft: 0 10px 30px -12px rgba(12, 23, 18, 0.18);
  --shadow-lift: 0 24px 60px -20px rgba(12, 23, 18, 0.28);
  --shadow-glow: 0 8px 30px -8px rgba(19, 122, 84, 0.35);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .6s;

  --topbar-h: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  padding-top: var(--topbar-h);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Evita que itens de grid (select, input, texto sem quebra) forcem a coluna
   a ficar mais larga que o container em telas estreitas, quando não há uma
   grid-cols explícita no breakpoint atual. */
.grid > * { min-width: 0; }

.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: 'ss01' 1;
  letter-spacing: -0.01em;
}

::selection { background: var(--bm-600); color: #fff; }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

/* Scrollbar discreta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-100); }
::-webkit-scrollbar-thumb { background: var(--bm-300); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--bm-500); }

/* ---------------------------------------------------------------------
   Header fixo / glassmorphism
   --------------------------------------------------------------------- */
.site-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
.site-header {
  position: relative;
  transition: all .4s var(--ease-out);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(12, 23, 18, .06), var(--shadow-soft);
  padding: 16px 0;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(12, 23, 18, .08), var(--shadow-lift);
  padding: 12px 0;
}
.site-header .nav-link {
  position: relative;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink-800);
  padding: 8px 2px;
  transition: color .25s;
}
.site-header .nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width .3s var(--ease-out);
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { width: 100%; }
.site-header .nav-link.active { color: var(--bm-700); }

.brand-name { font-weight: 800; letter-spacing: -.01em; color: var(--bm-800); }

/* Menu mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bm-900);
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a { color: #fff; }

/* ---------------------------------------------------------------------
   Botões
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 15px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--bm-700); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--bm-650); transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(19,122,84,.45); }
.btn-gold { background: var(--gold-500); color: var(--ink-900); box-shadow: 0 10px 30px -10px rgba(212,161,61,.55); }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--bm-800); }
.btn-white:hover { background: var(--bm-50); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-dark { background: transparent; border: 1.5px solid var(--ink-200); color: var(--ink-800); }
.btn-outline-dark:hover { border-color: var(--bm-600); color: var(--bm-700); background: var(--bm-50); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

.ripple { position: absolute; border-radius: 50%; transform: scale(0); animation: ripple .65s var(--ease-out); background: rgba(255,255,255,.55); pointer-events: none; }
@keyframes ripple { to { transform: scale(3.5); opacity: 0; } }

/* ---------------------------------------------------------------------
   Badges
   --------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; padding: 6px 14px; border-radius: var(--radius-full); text-transform: uppercase; }
.badge-green { background: var(--bm-100); color: var(--bm-700); }
.badge-gold  { background: var(--gold-100); color: var(--gold-700); }
.badge-blue  { background: #e3edfb; color: #2455a4; }
.badge-terra { background: #fbe9e1; color: #a34a24; }
.badge-pink  { background: #fbe3ef; color: #a3245f; }

/* ---------------------------------------------------------------------
   Glass / superfícies
   --------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, .6);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .5);
}
.glass-dark {
  background: rgba(10, 25, 18, .45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12);
}

.surface-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.surface-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  animation: heroZoom 16s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-dots { position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 10px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .3s; cursor: pointer; }
.hero-dots button.is-active { background: var(--gold-500); width: 26px; border-radius: 4px; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,20,15,.55) 0%, rgba(5,20,15,.35) 35%, rgba(5,20,15,.85) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; }

.scroll-indicator {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,.85); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  z-index: 2;
}
.scroll-indicator .line { width: 1.5px; height: 40px; background: rgba(255,255,255,.4); position: relative; overflow: hidden; }
.scroll-indicator .line::after { content: ''; position: absolute; top: -40px; left: 0; width: 100%; height: 40px; background: #fff; animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -40px; } 100% { top: 40px; } }

/* ---------------------------------------------------------------------
   Contadores
   --------------------------------------------------------------------- */
.counter-value { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-scale { opacity: 0; transform: scale(.94); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-scale.is-visible { opacity: 1; transform: scale(1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-stagger > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: .15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: .25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: .35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: .45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: .55s; }

/* ---------------------------------------------------------------------
   Estrutura — cards com hover premium
   --------------------------------------------------------------------- */
.structure-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.structure-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.structure-card:hover img { transform: scale(1.08); }
.structure-card .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,20,15,.88) 100%); }
.structure-card .content { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; transform: translateY(8px); transition: transform .5s var(--ease-out); }
.structure-card:hover .content { transform: translateY(0); }
.structure-card .arrow { opacity: 0; transform: translateX(-8px); transition: all .4s var(--ease-out); }
.structure-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------------------------------------------------------------------
   Planos de associação — card premium (se adapta a 1, 2 ou 3+ planos)
   --------------------------------------------------------------------- */
.plano-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.plano-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.plano-card.is-destaque {
  border-color: var(--gold-400);
  box-shadow: 0 24px 60px -24px rgba(212, 161, 61, .4);
}
.plano-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
}
.plano-card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--bm-100); color: var(--bm-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.plano-card.is-destaque .plano-card-icon { background: var(--gold-100); color: var(--gold-700); }
.plano-card-nome { font-family: 'Fraunces', Georgia, serif; font-size: 26px; margin-bottom: 8px; }
.plano-card-desc { color: var(--ink-600); font-size: 14.5px; margin-bottom: 22px; }
.plano-card-preco { display: flex; align-items: baseline; gap: 6px; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--ink-100); }
.plano-card-preco .valor { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 40px; color: var(--bm-700); line-height: 1; }
.plano-card-preco .periodo { color: var(--ink-400); font-size: 14px; }
.plano-card-beneficios { display: grid; gap: 14px; margin-bottom: 32px; }
@media (min-width: 640px) { .plano-card-beneficios.is-duas-colunas { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.plano-card-beneficios li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--ink-700); line-height: 1.4; }
.plano-card-beneficios i { color: var(--bm-600); flex-shrink: 0; margin-top: 1px; }

/* ---------------------------------------------------------------------
   Diretoria — liderança em destaque + grade de cards premium
   --------------------------------------------------------------------- */
.director-lead { position: relative; display: grid; border-radius: var(--radius-xl); overflow: hidden; background: var(--bm-900); box-shadow: var(--shadow-lift); }
@media (min-width: 1024px) { .director-lead { grid-template-columns: 1fr 1.35fr; } }
.director-lead-media { position: relative; aspect-ratio: 4/5; }
.director-lead-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; position: absolute; inset: 0; }
.director-lead-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, var(--bm-900) 100%); }
@media (max-width: 1023px) { .director-lead-media::after { background: linear-gradient(180deg, transparent 45%, var(--bm-900) 100%); } }
.director-lead-content { position: relative; padding: 48px 40px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 640px) { .director-lead-content { padding: 52px 56px; } }
.director-lead-quote { position: absolute; top: 4px; right: 28px; opacity: .1; font-family: 'Fraunces', Georgia, serif; font-size: 150px; line-height: 1; color: var(--gold-400); pointer-events: none; user-select: none; }
.director-lead-content .cargo { color: var(--gold-400); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; margin-top: 16px; margin-bottom: 6px; }
.director-lead-content h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; }
.director-lead-content .mandato { color: rgba(255,255,255,.5); font-size: 13.5px; margin-bottom: 22px; }
.director-lead-content .bio { position: relative; color: rgba(255,255,255,.82); font-size: 16.5px; line-height: 1.7; max-width: 48ch; }

.director-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.director-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.director-card-photo { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.director-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; display: block; transition: transform .8s var(--ease-out); }
.director-card:hover .director-card-photo img { transform: scale(1.07); }
.director-card-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,20,15,.92) 100%); }
.director-card-photo .info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 20px; color: #fff; }
.director-card-photo .info .cargo { color: var(--gold-400); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.director-card-photo .info h3 { font-size: 19px; line-height: 1.2; }
.director-card-body { padding: 20px 22px 24px; }
.director-card-body .mandato { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-400); margin-bottom: 10px; }
.director-card-body .mandato i { width: 13px; height: 13px; }
.director-card-body p { color: var(--ink-600); font-size: 14.5px; line-height: 1.65; }

/* ---------------------------------------------------------------------
   Timeline de eventos
   --------------------------------------------------------------------- */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: var(--bm-200); }
@media (min-width: 768px) { .timeline::before { left: 50%; margin-left: -1px; } }
.timeline-item { position: relative; }
.timeline-dot { position: absolute; left: 24px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bm-600); border: 4px solid var(--bm-100); transform: translateX(-50%); z-index: 2; }
@media (min-width: 768px) { .timeline-dot { left: 50%; } }

/* Pills de filtro */
.filter-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid var(--ink-200);
  color: var(--ink-600);
  transition: all .3s var(--ease-out);
  cursor: pointer; background: #fff;
}
.filter-pill:hover { border-color: var(--bm-400); color: var(--bm-700); transform: translateY(-1px); }
.filter-pill.active { background: var(--bm-700); border-color: var(--bm-700); color: #fff; box-shadow: var(--shadow-glow); }
.filter-pill i { width: 14px; height: 14px; flex-shrink: 0; }
.filter-pill .count {
  font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--radius-full);
  background: var(--ink-100); color: var(--ink-500);
}
.filter-pill.active .count { background: rgba(255,255,255,.2); color: #fff; }

/* ---------------------------------------------------------------------
   Eventos — evento em destaque + lista alinhada
   --------------------------------------------------------------------- */
.event-featured {
  display: grid;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bm-900);
  box-shadow: var(--shadow-lift);
}
.event-featured-media { position: relative; height: 320px; min-height: 0; }
@media (min-width: 1024px) { .event-featured { grid-template-columns: 1.15fr 1fr; grid-template-rows: 460px; height: 460px; } .event-featured-media { height: 100%; } }
.event-featured-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.event-featured-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 55%, var(--bm-900) 100%);
}
@media (max-width: 1023px) { .event-featured-media::after { background: linear-gradient(180deg, transparent 40%, var(--bm-900) 100%); } }
.event-featured-content { padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; color: #fff; position: relative; }
@media (max-width: 1023px) { .event-featured-content { padding: 30px 28px; } }

.event-row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.event-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.event-date-block {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border-radius: 18px;
  background: var(--bm-100);
  color: var(--bm-700);
  flex-shrink: 0;
}
.event-date-block .day { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; line-height: 1; }
.event-date-block .month { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.event-row:hover .event-date-block { background: var(--bm-700); color: #fff; }

.event-row-photo {
  width: 92px; height: 92px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  overflow: hidden;
}
.event-row-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.event-row:hover .event-row-photo img { transform: scale(1.08); }

/* Em telas estreitas, data + foto lado a lado não deixam espaço para o
   texto (título/local); esconde a foto e mantém apenas o bloco de data. */
@media (max-width: 639px) {
  .event-row-photo { display: none; }
}

.event-empty-state {
  display: none;
  text-align: center;
  padding: 60px 24px;
  border-radius: var(--radius-lg);
  background: var(--ink-100);
  color: var(--ink-500);
}
.event-empty-state.is-visible { display: block; }

/* Estado vazio genérico — quando uma listagem (notícias, galeria, documentos,
   diretoria, estrutura...) ainda não tem nenhum registro cadastrado. */
.empty-state { text-align: center; padding: 60px 24px; border-radius: var(--radius-lg); background: var(--ink-100); color: var(--ink-500); }
.empty-state p:first-of-type { font-weight: 600; color: var(--ink-600); }
.empty-state p:last-child { font-size: 14px; color: var(--ink-400); margin-top: 4px; }

/* Destaque: mídia com técnica "contain + fundo desfocado" para nunca
   cortar o cartaz/flyer do evento, mesmo fora do formato do container. */
.event-featured-media.is-contain { background-color: var(--bm-900); background-size: cover; background-position: center; }
.event-featured-media.is-contain::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; background-size: cover; background-position: center;
  filter: blur(32px) brightness(.5) saturate(1.15); transform: scale(1.15);
}
.event-featured-media.is-contain img {
  position: relative; z-index: 1; inset: auto;
  width: 100%; height: 100%; object-fit: contain;
}

/* Cartões premium (próximos + retrospectiva) — imagem sempre inteira,
   nunca cortada: contain sobre um fundo desfocado da própria imagem. */
.event-card-premium {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.event-card-premium:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }

.event-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--bm-900);
  background-size: cover;
  background-position: center;
}
.event-card-media::before {
  content: ''; position: absolute; inset: 0;
  background: inherit; background-size: cover; background-position: center;
  filter: blur(26px) brightness(.55) saturate(1.15); transform: scale(1.15);
}
.event-card-media img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform .6s var(--ease-out);
}
.event-card-premium:hover .event-card-media img { transform: scale(1.04); }

.event-card-date {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(4px);
  color: var(--bm-800);
  box-shadow: var(--shadow-soft);
}
.event-card-date .day { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; line-height: 1; }
.event-card-date .month { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }

.event-card-status { position: absolute; top: 14px; right: 14px; z-index: 2; }

.event-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.event-card-body h3 { transition: color .3s var(--ease-out); }
.event-card-premium:hover .event-card-body h3 { color: var(--bm-700); }

.event-card-cta {
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--bm-700);
}
.event-card-cta i { transition: transform .3s var(--ease-out); }
.event-card-premium:hover .event-card-cta i { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   Galeria — masonry (Pinterest style)
   --------------------------------------------------------------------- */
.masonry { column-count: 1; column-gap: 20px; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
@media (min-width: 1400px) { .masonry { column-count: 4; } }
.masonry-item { break-inside: avoid; margin-bottom: 20px; position: relative; border-radius: var(--radius-md); overflow: hidden; cursor: zoom-in; }
.masonry-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.masonry-item:hover img { transform: scale(1.06); }
.masonry-item .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(5,20,15,.75) 100%); opacity: 0; transition: opacity .4s; display: flex; align-items: flex-end; padding: 18px; color: #fff; font-weight: 600; font-size: 14px; }
.masonry-item:hover .overlay { opacity: 1; }
.masonry-item.is-album { display: block; cursor: pointer; }
.masonry-item .photo-count-badge { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 5px; background: rgba(5,20,15,.72); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(2px); }
.masonry-item .album-label { position: absolute; inset: auto 0 0 0; z-index: 1; background: linear-gradient(180deg, transparent 0%, rgba(5,20,15,.85) 100%); padding: 32px 16px 14px; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Variante para poucos álbuns (preview da home): centraliza numa fileira em
   vez do masonry de colunas, que deixa um vão vazio grande com 1-3 itens. */
.galeria-preview-centro { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.galeria-preview-centro .masonry-item { width: 100%; max-width: 340px; margin-bottom: 0; }

/* ---------------------------------------------------------------------
   Detalhamento da notícia — layout editorial premium
   --------------------------------------------------------------------- */
/* Layout "editorial": a foto (formato retrato/Instagram, sem cortes) flutua ao
   lado do texto, que já começa a fluir junto dela — assim a leitura não fica
   represada atrás de um bloco de imagem inteiro antes do conteúdo. */
.noticia-layout { max-width: 760px; margin: 0 auto; }

.noticia-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.noticia-eyebrow-meta { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-400); }

.noticia-media { position: relative; float: right; width: 300px; margin: 6px 0 28px 36px; }
@media (max-width: 767px) {
  .noticia-media { float: none; width: 100%; max-width: 340px; margin: 0 auto 32px; }
}
.noticia-body { width: 100%; }

/* Carrossel de imagens da notícia (avanço automático) */
.noticia-carousel { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lift); aspect-ratio: 4/3; background: var(--ink-100); }
.noticia-carousel::before {
  content: '';
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.noticia-carousel-track { position: relative; width: 100%; height: 100%; }
.noticia-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease-out); pointer-events: none; cursor: zoom-in; }
.noticia-carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.noticia-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 6s var(--ease-out); }
.noticia-carousel-slide.is-active img { transform: scale(1.05); }
/* Variante "is-contain": mostra a imagem inteira dentro do card, sem cortar
   (para artes/flyers prontos, ex.: posts de Instagram, onde o enquadramento
   já vem definido e cortar perderia texto/elementos do design). O espaço que
   sobra nas bordas (quando a imagem não bate exatamente com a proporção do
   card) é preenchido com a própria imagem desfocada ao fundo, em vez de
   deixar um vão liso — mesma técnica do Spotify/Apple Music para capas fora
   de proporção. */
.noticia-carousel.is-contain .noticia-carousel-slide::before {
  content: '';
  position: absolute; inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(.55) saturate(1.15);
  transform: scale(1.15);
}
.noticia-carousel.is-contain .noticia-carousel-slide img { position: relative; z-index: 1; object-fit: contain; }
.noticia-carousel.is-contain .noticia-carousel-slide.is-active img { transform: none; }
.noticia-carousel-counter {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  background: rgba(5,20,15,.5); backdrop-filter: blur(8px) saturate(160%); -webkit-backdrop-filter: blur(8px) saturate(160%);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .03em;
  padding: 7px 14px; border-radius: 999px; font-variant-numeric: tabular-nums;
}
.noticia-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(5,20,15,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; display: flex; align-items: center; justify-content: center; opacity: .9; transition: all .25s var(--ease-out); z-index: 2; }
.noticia-carousel-nav:hover { opacity: 1; background: rgba(5,20,15,.8); transform: translateY(-50%) scale(1.08); }
.noticia-carousel-nav.prev { left: 18px; }
.noticia-carousel-nav.next { right: 18px; }
.noticia-carousel-dots { position: absolute; bottom: 18px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.noticia-carousel-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); transition: all .25s; box-shadow: 0 0 0 1px rgba(5,20,15,.25); }
.noticia-carousel-dots button.is-active { background: var(--gold-400); width: 24px; border-radius: 4px; }

.noticia-content-text { font-size: 18px; }
.noticia-content-text p:first-of-type::first-letter {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 62px; font-weight: 700; line-height: .78;
  float: left; padding: 6px 10px 0 0;
  color: var(--bm-700);
}

.noticia-share-box {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  clear: both;
  margin-top: 44px; padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--bm-50);
  border: 1px solid var(--bm-100);
}
.noticia-share-box .share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--bm-700);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
}
.noticia-share-box .share-btn:hover { transform: translateY(-3px); background: var(--bm-700); color: #fff; box-shadow: var(--shadow-glow); }

/* Balão de confirmação ao copiar link (compartilhar no Instagram) */
.copy-tooltip { position: absolute; bottom: calc(100% + 9px); left: 50%; transform: translateX(-50%) translateY(4px); background: var(--ink-900); color: #fff; font-size: 11px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all .25s var(--ease-out); }
.copy-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink-900); }
.copy-tooltip.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Lightbox */
.lightbox-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(5,15,12,.94); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox-overlay.is-open { display: flex; }
.lightbox-overlay img { max-width: min(92vw, 1100px); max-height: 86vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lift); }
.lightbox-close, .lightbox-nav { position: absolute; color: #fff; cursor: pointer; opacity: .8; transition: opacity .2s; }
.lightbox-close:hover, .lightbox-nav:hover { opacity: 1; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-title {
  position: absolute; top: 26px; left: 50%; transform: translateX(-50%);
  color: #fff; font-family: 'Fraunces', Georgia, serif; font-size: 18px; font-weight: 600;
  text-align: center; max-width: min(70vw, 640px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: none;
}
.lightbox-title.is-visible { display: block; }
@media (min-width: 640px) { .lightbox-title { font-size: 21px; } }

/* ---------------------------------------------------------------------
   Carrossel simples (depoimentos / patrocinadores)
   --------------------------------------------------------------------- */
.carousel-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex-shrink: 0; }
/* No mobile, os depoimentos ficam empilhados (um abaixo do outro) em vez de
   carrossel horizontal — mais fácil de ler que precisar arrastar pro lado. */
@media (max-width: 767px) {
  .carousel-track { flex-direction: column; overflow-x: visible; scroll-snap-type: none; padding-bottom: 0; }
}

.marquee { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Estrelas */
.stars { color: var(--gold-500); letter-spacing: 2px; }

/* ---------------------------------------------------------------------
   Formulários
   --------------------------------------------------------------------- */
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 14px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--ink-200); font-size: 15px; color: var(--ink-900);
  background: #fff; transition: border-color .25s, box-shadow .25s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--bm-500); box-shadow: 0 0 0 4px var(--bm-100);
}
.form-label { font-size: 13.5px; font-weight: 600; color: var(--ink-800); margin-bottom: 6px; display: block; }

/* ---------------------------------------------------------------------
   Rodapé
   --------------------------------------------------------------------- */
.site-footer { background: var(--bm-900); color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; }

/* ---------------------------------------------------------------------
   WhatsApp flutuante / voltar ao topo
   --------------------------------------------------------------------- */
.fab { position: fixed; right: 24px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lift); transition: all .3s var(--ease-out); }
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab-whatsapp { bottom: 24px; width: auto; height: auto; padding: 14px 20px; border-radius: 999px; gap: 10px; background: #25D366; color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; }
.fab-top { bottom: 94px; background: #fff; color: var(--bm-700); border: 1px solid var(--ink-200); opacity: 0; pointer-events: none; transform: translateY(12px); }
.fab-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.cookie-consent {
  display: none;
  position: fixed; left: 20px; bottom: 20px; z-index: 120;
  width: calc(100% - 100px); max-width: 380px;
  background: var(--bm-900); color: rgba(255,255,255,.88);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 20px 22px; flex-direction: column; gap: 14px;
  font-size: 13.5px; line-height: 1.55;
}
.cookie-consent.is-visible { display: flex; }
.cookie-consent a { color: var(--gold-400); text-decoration: underline; }
@media (max-width: 640px) {
  .cookie-consent { left: 12px; right: 12px; bottom: 90px; width: auto; max-width: none; padding: 14px 16px; gap: 10px; font-size: 12.5px; line-height: 1.45; border-radius: var(--radius-md); }
}

/* ---------------------------------------------------------------------
   Documentos
   --------------------------------------------------------------------- */
.doc-row {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.doc-row:hover { transform: translateY(-3px) translateX(2px); box-shadow: var(--shadow-lift); }
.doc-row-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-row-download {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400); background: var(--ink-100);
  transition: all .3s var(--ease-out);
}
.doc-row:hover .doc-row-download { background: var(--bm-700); color: #fff; transform: scale(1.08); }

/* ---------------------------------------------------------------------
   Calendário
   --------------------------------------------------------------------- */
.cal-day { aspect-ratio: 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; position: relative; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.cal-day.has-event { background: var(--bm-700); color: #fff; font-weight: 700; cursor: pointer; }
.cal-day.has-event:hover { background: var(--bm-650); transform: translateY(-2px) scale(1.06); box-shadow: var(--shadow-soft); }
.cal-day.is-today { border: 2px solid var(--gold-500); }
.cal-day-count {
  position: absolute; top: -5px; right: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold-500); color: var(--bm-900);
  font-size: 9.5px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.cal-day.is-muted { color: var(--ink-400); }

/* Dark mode toggle (aplicado via classe no <html>) */
html.dark { color-scheme: dark; }
html.dark body { background: #0b1712; color: #eef3f0; }
html.dark .surface-card { background: #10201a; box-shadow: 0 10px 30px -12px rgba(0,0,0,.55); }
html.dark .site-header { background: rgba(11,23,18,.9); }
html.dark .site-header .nav-link { color: #eef3f0; }
html.dark .brand-name { color: #fff; }
html.dark .form-input, html.dark .form-select, html.dark .form-textarea { background: #10201a; border-color: #1e352b; color: #eef3f0; }
html.dark .filter-pill { background: #10201a; border-color: #1e352b; color: #cfe0d7; }

/* ---------------------------------------------------------------------
   Hero de páginas internas
   --------------------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: calc(26vh - var(--topbar-h));
  display: flex; align-items: flex-end;
  overflow: hidden;
  background-size: cover; background-position: center;
}
.page-hero .hero-overlay { background: linear-gradient(180deg, rgba(5,20,15,.5) 0%, rgba(5,20,15,.58) 40%, rgba(5,20,15,.92) 100%); }
.page-hero .hero-content { padding-top: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: rgba(255,255,255,.75); }
.breadcrumb a:hover { color: #fff; }

/* Aproxima o conteúdo da página do banner (hero), em vez do respiro
   padrão de .section-pad usado entre seções internas. */
.page-hero + .section-pad { padding-top: 64px; }
@media (max-width: 768px) { .page-hero + .section-pad { padding-top: 44px; } }

/* ---------------------------------------------------------------------
   Selo da logo oficial (destaque com moldura sobre fundos coloridos)
   --------------------------------------------------------------------- */
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(4, 54, 27, .45), 0 0 0 3px var(--gold-500);
  padding: 4px;
  flex-shrink: 0;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  overflow: hidden;
}
.logo-badge img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; font-size: 0; color: transparent; }
.logo-badge:hover { transform: scale(1.06) rotate(-2deg); box-shadow: 0 10px 26px -6px rgba(4, 54, 27, .55), 0 0 0 3px var(--gold-400); }
.logo-badge-lg { box-shadow: 0 14px 40px -10px rgba(4, 54, 27, .5), 0 0 0 4px var(--gold-500); }

/* Utilidades extras */
.section-pad { padding-top: 120px; padding-bottom: 120px; }
@media (max-width: 768px) { .section-pad { padding-top: 76px; padding-bottom: 76px; } }
.text-gradient { background: linear-gradient(120deg, var(--bm-600), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.divider-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); display: inline-block; }

/* Selo de destaque sobre imagens escuras (hero) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(212, 161, 61, .4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}
