/* ============================================================
   Fundação Cultural de Lages — Folha de estilos
   Réplica fiel do layout original (React/Tailwind) em CSS puro,
   com micro-animações de hover para deixar o site mais dinâmico.
   ============================================================ */

/* ---------- Variáveis de design ---------- */
:root {
  --background: 210 20% 98%;
  --foreground: 215 25% 15%;

  --card: 0 0% 100%;
  --card-foreground: 215 25% 15%;

  --primary: 230 48% 40%;
  --primary-foreground: 0 0% 100%;

  --secondary: 35 90% 55%;
  --secondary-foreground: 0 0% 100%;

  --muted: 210 15% 93%;
  --muted-foreground: 215 15% 45%;

  --accent: 35 90% 55%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;

  --border: 210 15% 88%;
  --input: 210 15% 88%;
  --ring: 230 48% 40%;

  --radius: 0.75rem;

  /* Calendário — dias com evento cadastrado (laranja da identidade visual) */
  --cal-event: 32 95% 52%;
  --cal-event-strong: 27 92% 45%;
  --cal-event-foreground: 25 70% 15%;

  --gradient-accent: linear-gradient(135deg, hsl(35 90% 55%), hsl(25 85% 50%));
  --shadow-card: 0 4px 24px -4px hsl(230 48% 40% / 0.08);
  --shadow-card-hover: 0 12px 32px -8px hsl(230 48% 40% / 0.15);
  --shadow-hero: 0 20px 60px -15px hsl(230 48% 25% / 0.3);

  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: hsl(var(--border));
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Trava de segurança contra rolagem horizontal (não afeta a vertical) */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Palavras longas (URLs, nomes de arquivo) quebram em vez de estourar */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

.is-hidden {
  display: none !important;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.ic-12 { width: 0.75rem;  height: 0.75rem; }
.ic-14 { width: 0.875rem; height: 0.875rem; }
.ic-16 { width: 1rem;     height: 1rem; }
.ic-20 { width: 1.25rem;  height: 1.25rem; }
.ic-24 { width: 1.5rem;   height: 1.5rem; }
.ic-32 { width: 2rem;     height: 2rem; }

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.page-main {
  padding-top: 5rem;
}

/* ---------- Seções ---------- */
.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section--muted {
  background: hsl(var(--muted) / 0.4);
}

.section--blue {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--secondary));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-size: 1.875rem;
  color: hsl(var(--foreground));
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.section-desc {
  color: hsl(var(--muted-foreground));
  max-width: 32rem;
  margin: 0 auto;
}

.section--blue .section-title {
  color: hsl(var(--primary-foreground));
}

.section--blue .section-desc {
  color: hsl(0 0% 100% / 0.7);
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge--musica     { background: hsl(var(--primary));     color: hsl(var(--primary-foreground)); }
.badge--teatro     { background: hsl(var(--destructive)); color: hsl(var(--destructive-foreground)); }
.badge--oficinas   { background: hsl(var(--secondary));   color: hsl(var(--secondary-foreground)); }
.badge--festas     { background: hsl(var(--accent));      color: hsl(var(--accent-foreground)); }
.badge--exposicoes { background: hsl(var(--muted));       color: hsl(var(--foreground)); }

.badge--open-blue    { background: rgba(16, 185, 129, 0.2);  color: hsl(var(--primary-foreground)); border-color: rgba(52, 211, 153, 0.4); }
.badge--open-white   { background: rgba(16, 185, 129, 0.1);  color: #047857;                        border-color: rgba(52, 211, 153, 0.4); }
.badge--closed-blue  { background: hsl(0 0% 100% / 0.1);     color: hsl(0 0% 100% / 0.6);           border-color: hsl(0 0% 100% / 0.2); }
.badge--closed-white { background: hsl(var(--muted));        color: hsl(var(--muted-foreground));   border-color: hsl(var(--border)); }

/* ---------- Botões (com hovers animados) ---------- */
.btn {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
              background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

/* Brilho que atravessa o botão no hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::after {
  animation: btn-shine 0.8s ease;
}

@keyframes btn-shine {
  0%   { left: -80%; opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

/* Ícones que se movem dentro dos botões/links */
.ic-arrow, .ic-cal, .ic-send, .ic-ext {
  transition: transform 0.25s ease;
}

.btn:hover .ic-arrow,
.link-more:hover .ic-arrow,
.news-card:hover .ic-arrow { transform: translateX(4px); }
.btn:hover .ic-cal          { transform: rotate(-10deg) scale(1.15); }
.btn:hover .ic-send         { transform: translate(3px, -3px); }
.btn:hover .ic-ext          { transform: translate(2px, -2px); }

.btn--primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn--primary:hover {
  background: hsl(230 48% 34%);
  box-shadow: 0 12px 24px -8px hsl(var(--primary) / 0.5);
}

.btn--secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-weight: 600;
}

.btn--secondary:hover {
  background: hsl(35 90% 49%);
  box-shadow: 0 14px 28px -10px hsl(var(--secondary) / 0.6);
}

.btn--outline {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
}

.btn--outline:hover {
  border-color: hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
  background: hsl(var(--card));
  box-shadow: 0 10px 20px -10px hsl(var(--primary) / 0.35);
}

.btn--outline-white {
  border: 1px solid #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px -10px rgba(255, 255, 255, 0.35);
}

.btn--outline-onblue {
  border: 1px solid hsl(0 0% 100% / 0.4);
  color: hsl(var(--primary-foreground));
  background: transparent;
}

.btn--outline-onblue:hover {
  background: hsl(0 0% 100% / 0.12);
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.4);
}

.btn--lg {
  height: 3.5rem;
  padding: 0 2.5rem;
  font-size: 1rem;
}

/* Em telas estreitas o botão grande quebra a linha em vez de estourar a largura */
@media (max-width: 420px) {
  .btn--lg {
    height: auto;
    min-height: 3.5rem;
    padding: 0.75rem 1.5rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
}

.btn--sm {
  height: 2.25rem;
  padding: 0 0.75rem;
}

.btn--tiny {
  height: 2rem;
  font-size: 0.75rem;
}

.btn--full {
  width: 100%;
}

.btn.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* Link "Ler mais" (variante ghost) */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--primary));
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.link-more:hover {
  background: hsl(var(--primary) / 0.08);
  transform: translateX(2px);
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: hsl(var(--card) / 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Marca principal + logos institucionais ao lado */
.header-brands {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-logo {
  height: 3.1rem;
  width: auto;
  transition: transform 0.3s var(--ease-out-soft);
}

.brand:hover .brand-logo {
  transform: scale(1.05);
}

.brand-partners {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid hsl(var(--border));
  min-width: 0;
}

.brand-partner {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-partner--fcl  { height: 1.9rem; }
.brand-partner--pref { height: 1.25rem; }

/* Telas bem estreitas: reduz para não estourar a largura */
@media (max-width: 380px) {
  .brand-logo { height: 2.6rem; }
  .brand-partner--fcl  { height: 1.6rem; }
  .brand-partner--pref { height: 1.05rem; }
  .header-brands,
  .brand-partners { gap: 0.375rem; }
  .brand-partners { padding-left: 0.375rem; }
}

.brand-text {
  display: none;
  line-height: 1.2;
}

.brand-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--primary));
  line-height: 1;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-top: 2px;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground) / 0.8);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-link svg {
  color: hsl(var(--primary));
  transition: transform 0.25s ease;
}

/* Sublinhado animado */
.nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.25rem;
  height: 2px;
  border-radius: 2px;
  background: hsl(var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-soft);
}

.nav-link:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
}

.nav-link:hover svg {
  transform: translateY(-2px) scale(1.12);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: hsl(var(--primary));
  font-weight: 600;
}

.menu-toggle {
  display: block;
  padding: 0.5rem;
  color: hsl(var(--foreground));
  transition: transform 0.2s ease;
}

.menu-toggle:hover {
  transform: scale(1.12);
}

.menu-toggle .ic-close { display: none; }
.menu-toggle.is-open .ic-close { display: block; }
.menu-toggle.is-open .ic-menu  { display: none; }

.mobile-nav {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: hsl(var(--card));
  border-top: 1px solid transparent;
  transition: max-height 0.35s var(--ease-out-soft), opacity 0.3s ease, border-color 0.3s ease;
}

.mobile-nav.is-open {
  max-height: 480px;
  opacity: 1;
  border-top-color: hsl(var(--border));
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.mobile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground) / 0.8);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.mobile-link svg {
  color: hsl(var(--primary));
}

.mobile-link:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
  transform: translateX(6px);
}

.mobile-link.is-active {
  color: hsl(var(--primary));
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg picture,
.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradiente azul da esquerda para a direita (contraste sob o texto) */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    hsl(230 48% 20% / 0.94) 0%,
    hsl(230 48% 24% / 0.78) 30%,
    hsl(230 48% 28% / 0.42) 60%,
    hsl(230 48% 30% / 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-inner {
  max-width: 42rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--secondary) / 0.2);
  border: 1px solid hsl(var(--secondary) / 0.3);
  color: hsl(var(--secondary-foreground));
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: badge-glow 3.2s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out-soft);
}

.hero-badge:hover {
  transform: scale(1.06);
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--secondary) / 0); }
  50%      { box-shadow: 0 0 26px 2px hsl(var(--secondary) / 0.35); }
}

/* Textos por slide (empilhados; o ativo aparece) */
.hero-texts {
  display: grid;
  margin-bottom: 2.5rem;
}

.hero-text {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out-soft);
  pointer-events: none;
}

.hero-text.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
}

.hero-strong { font-weight: 700; }
.hero-light  { font-weight: 300; }

.hero-desc {
  font-size: 1.125rem;
  color: hsl(0 0% 100% / 0.8);
  font-weight: 300;
  line-height: 1.6;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ---------- Banner das páginas internas ---------- */
.page-banner {
  position: relative;
  width: 100%;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-banner picture,
.page-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-banner-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

.page-banner h1 {
  font-size: 1.875rem;
  color: #fff;
  margin-top: 0.25rem;
}

/* ---------- Filtros (pílulas) ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-pill {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  transition: all 0.25s ease;
}

.filter-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -6px hsl(var(--primary) / 0.3);
  color: hsl(var(--foreground));
}

.filter-pill:active {
  transform: translateY(0) scale(0.96);
}

.filter-pill.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-card);
}

.filter-pill.is-active:hover {
  color: hsl(var(--primary-foreground));
}

.filters--news .filter-pill {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
}

.filters--news .filter-pill.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

/* ---------- "Ver todas as notícias" (CTA da home) ---------- */
.news-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.news-more {
  min-width: 16rem;
}

/* ---------- Paginação ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 3.5rem;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 9999px;
  font-size: 0.9375rem;
  font-weight: 600;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination-link:hover {
  transform: translateY(-2px);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 8px 18px -8px hsl(var(--primary) / 0.35);
}

.pagination-link:active {
  transform: translateY(0) scale(0.96);
}

/* Página atual — destaque em azul primário */
.pagination-link.is-current {
  background: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-card);
  cursor: default;
}

.pagination-link.is-current:hover {
  transform: none;
  box-shadow: var(--shadow-card);
}

/* Setas Anterior / Próxima */
.pagination-arrow {
  padding: 0 1.1rem;
  color: hsl(var(--foreground));
}

.pagination-arrow svg {
  color: currentColor;
}

.pagination-arrow:hover svg {
  color: hsl(var(--primary));
}

/* Reticências entre blocos de páginas */
.pagination-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 2.75rem;
  color: hsl(var(--muted-foreground));
  font-weight: 700;
  letter-spacing: 0.05em;
  user-select: none;
}

/* Mobile: compacta e mostra só os ícones das setas */
@media (max-width: 560px) {
  .pagination { gap: 0.3rem; }
  .pagination-link {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.65rem;
    font-size: 0.875rem;
  }
  .pagination-gap { height: 2.5rem; min-width: 1rem; }
  .pagination-arrow { padding: 0 0.7rem; }
  .pagination-arrow span { display: none; }
}

/* ---------- Calendário ---------- */
.calendar-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.calendar-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.calendar-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.cal-nav {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cal-nav:hover {
  background: hsl(var(--muted));
  transform: scale(1.12);
}

.cal-nav:active {
  transform: scale(0.94);
}

.cal-nav svg {
  transition: transform 0.2s ease;
}

.cal-nav--prev:hover svg { transform: translateX(-2px); }
.cal-nav--next:hover svg { transform: translateX(2px); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.calendar-weekdays div {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  padding: 0.375rem 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.cal-day {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cal-day:hover {
  background: hsl(var(--muted));
  transform: scale(1.12);
  z-index: 1;
}

/* Dias com evento cadastrado: laranja forte da identidade visual do site.
   Mesmo padrão nos dois calendários (home e /eventos) — as classes vêm de
   includes/calendar-section.php (1ª carga) e de js/main.js (navegação/filtro). */
.cal-day.has-event:not(.is-today):not(.is-selected) {
  background: hsl(var(--cal-event));
  color: hsl(var(--cal-event-foreground));
  font-weight: 700;
  box-shadow: inset 0 0 0 1px hsl(var(--cal-event-strong) / 0.55);
}

.cal-day.has-event:not(.is-today):not(.is-selected):hover {
  background: hsl(var(--cal-event-strong));
  color: hsl(var(--cal-event-foreground));
}

.cal-day.is-today:not(.is-selected) {
  box-shadow: inset 0 0 0 2px hsl(var(--secondary));
  color: hsl(var(--secondary));
  font-weight: 700;
}

/* Dia atual que também possui evento: fundo laranja + anel escuro marcando "hoje". */
.cal-day.has-event.is-today:not(.is-selected) {
  background: hsl(var(--cal-event));
  color: hsl(var(--cal-event-foreground));
  font-weight: 700;
  box-shadow: inset 0 0 0 2px hsl(var(--cal-event-foreground) / 0.75);
}

.cal-day.is-selected {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

/* Dia com evento que está selecionado: mantém o azul de "selecionado" e sinaliza
   o evento com anel laranja, para não perder a indicação da data com programação. */
.cal-day.has-event.is-selected {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15), inset 0 0 0 2.5px hsl(var(--cal-event));
}

.cal-day.is-selected:hover {
  transform: scale(1.12);
}

/* Painel de eventos */
.events-panel {
  background: hsl(var(--card));
  border-radius: 1rem;
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
}

.events-date {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.events-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  height: 100%;
  text-align: center;
}

.events-empty-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: hsl(var(--muted));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.events-empty-icon svg {
  color: hsl(var(--muted-foreground));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.events-empty p {
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

/* Cartão de evento */
.event-card {
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
  background: hsl(var(--card));
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(var(--primary) / 0.35);
}

.event-img {
  width: 100%;
  height: 9rem;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-soft);
}

.event-card:hover .event-img {
  transform: scale(1.07);
}

.event-card--month .event-img {
  height: 10rem;
}

.event-body {
  padding: 1rem;
}

.event-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.event-date {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.event-title {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0.5rem 0;
  transition: color 0.25s ease;
}

.event-card:hover .event-title {
  color: hsl(var(--primary));
}

.event-card--month .event-title {
  margin-top: 0;
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}

.event-body .btn {
  margin-top: 0.75rem;
}

/* Lista de eventos do mês */
.month-events {
  margin-top: 3rem;
}

.month-events h3 {
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  margin-bottom: 2rem;
}

.month-grid {
  display: grid;
  gap: 1.5rem;
}

/* ---------- Notícias ---------- */
.news-grid {
  display: grid;
  gap: 1.5rem;
}

.news-card {
  position: relative;
  cursor: pointer;
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s ease;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

/* Link "esticado": o título é o único link real e cobre o card inteiro */
.news-card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-media {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

.news-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}

.news-card:hover .news-media img {
  transform: scale(1.08);
}

.news-cat {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--card) / 0.9);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: transform 0.3s ease;
}

.news-card:hover .news-cat {
  transform: translateY(-2px);
}

.news-body {
  padding: 1.25rem;
}

.news-date {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  line-height: 1.375;
  margin: 0.25rem 0 0.5rem;
  transition: color 0.25s ease;
}

.news-card:hover .news-title {
  color: hsl(var(--primary));
}

.news-summary {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Editais ---------- */
.editais-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edital {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease, background-color 0.3s ease;
}

/* Barra lateral que cresce no hover */
.edital::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  bottom: 0.9rem;
  width: 4px;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  transform: scaleY(0);
  transition: transform 0.3s var(--ease-out-soft);
}

.edital:hover {
  transform: translateY(-4px);
}

.edital:hover::before {
  transform: scaleY(1);
}

.edital--blue {
  background: hsl(0 0% 100% / 0.1);
  border-color: hsl(0 0% 100% / 0.2);
}

.edital--blue:hover {
  background: hsl(0 0% 100% / 0.15);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.35);
}

.edital--white {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
}

.edital--white:hover {
  background: hsl(var(--muted) / 0.5);
  box-shadow: var(--shadow-card-hover);
}

.edital-info {
  flex: 1;
}

.edital-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.edital-deadline {
  font-size: 0.75rem;
}

.edital--blue .edital-deadline  { color: hsl(0 0% 100% / 0.7); }
.edital--white .edital-deadline { color: hsl(var(--muted-foreground)); }

.edital-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.edital--blue .edital-title  { color: hsl(var(--primary-foreground)); }
.edital--white .edital-title { color: hsl(var(--foreground)); }

.edital-desc {
  font-size: 0.875rem;
}

.edital--blue .edital-desc  { color: hsl(0 0% 100% / 0.6); }
.edital--white .edital-desc { color: hsl(var(--muted-foreground)); }

.edital .btn {
  flex-shrink: 0;
  align-self: flex-start;
}

/* ---------- Espaços culturais ---------- */
.spaces-grid {
  display: grid;
  gap: 1.5rem;
}

.space-card {
  background: hsl(var(--card));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s ease;
}

.space-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.space-media {
  height: 12rem;
  overflow: hidden;
}

.space-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}

.space-card:hover .space-media img {
  transform: scale(1.08);
}

.space-body {
  padding: 1.25rem;
}

.space-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  transition: color 0.25s ease;
}

.space-card:hover .space-title {
  color: hsl(var(--primary));
}

.space-desc {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.space-addr {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.space-addr svg {
  color: hsl(var(--secondary));
}

.space-card:hover .space-addr svg {
  animation: pin-bounce 0.5s ease;
}

@keyframes pin-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ---------- Sobre ---------- */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.about-title {
  font-size: 1.875rem;
  color: hsl(var(--foreground));
  margin: 0.5rem 0 1.5rem;
}

.about-title--plain {
  margin-top: 0;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
}

.about-media {
  position: relative;
}

.about-media-frame {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}

.about-media-frame img {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}

.about-media:hover .about-media-frame img {
  transform: scale(1.04);
}

.about-stat {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-hero);
  display: none;
  transition: transform 0.3s var(--ease-out-soft);
}

.about-media:hover .about-stat {
  transform: translateY(-6px) rotate(-2deg);
}

.about-stat-num {
  font-size: 1.875rem;
  font-weight: 700;
}

.about-stat-label {
  font-size: 0.875rem;
  color: hsl(0 0% 100% / 0.8);
}

/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  margin-top: 5rem;
}

.gallery-item {
  cursor: pointer;
}

.gallery-frame {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
  transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s ease;
}

.gallery-item:hover .gallery-frame {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-soft);
}

.gallery-item:hover .gallery-frame img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 0.75rem;
  object-fit: contain;
  transform: scale(0.85);
  transition: transform 0.3s var(--ease-out-soft);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease, transform 0.25s ease;
}

.lightbox-close:hover {
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  gap: 3rem;
}

.section--contact {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(var(--primary) / 0.3);
}

/* Card de endereço clicável (abre a localização no Google Maps).
   Mantém o mesmo visual do card comum — só acrescenta o indício de item clicável. */
.contact-card--link {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.contact-card--link:hover,
.contact-card--link:focus-visible {
  border-color: hsl(var(--primary) / 0.45);
}

.contact-icon {
  display: flex;
  padding: 0.625rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-icon {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  animation: wiggle 0.5s ease;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25%      { transform: rotate(-8deg); }
  75%      { transform: rotate(8deg); }
}

.contact-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.contact-value {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  white-space: pre-line;
}

.contact-socials {
  display: flex;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.contact-social {
  display: flex;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  transition: all 0.3s ease;
}

.contact-social:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-4px) rotate(6deg) scale(1.06);
  box-shadow: 0 10px 20px -8px hsl(var(--primary) / 0.5);
}

.contact-form-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
}

.contact-form-card h3 {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid hsl(var(--input));
  background: hsl(var(--background));
  border-radius: calc(var(--radius) - 2px);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: hsl(var(--foreground));
  height: 2.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-textarea {
  height: auto;
  line-height: 1.5;
  padding: 0.625rem 0.75rem;
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-input:hover,
.form-textarea:hover {
  border-color: hsl(var(--primary) / 0.45);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.18);
}

.form-alert {
  margin-bottom: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  animation: fade-slide-up 0.4s ease both;
}

.form-alert--ok {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.form-alert--err {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border: 1px solid hsl(var(--destructive) / 0.3);
}

/* Honeypot invisível */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.6);
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: hsl(var(--background) / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social:hover {
  background: hsl(var(--background) / 0.25);
  transform: translateY(-4px) scale(1.1) rotate(8deg);
  box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.4);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--background) / 0.8);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.6);
}

.footer-links a {
  position: relative;
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}

/* Setinha que aparece no hover */
.footer-links a::before {
  content: "→";
  position: absolute;
  left: -1.2em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: hsl(var(--background));
  transform: translateX(1.2em);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.6);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  transition: color 0.25s ease;
}

.footer-contact li:hover {
  color: hsl(var(--background) / 0.9);
}

.footer-contact svg {
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--background) / 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: hsl(var(--background) / 0.4);
}

.footer-credit img {
  height: 1.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.footer-credit:hover img {
  opacity: 1;
  transform: scale(1.08);
}

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
  width: calc(100vw - 2rem);
}

@media (min-width: 640px) {
  .toast-region {
    width: auto;
    min-width: 20rem;
  }
}

.toast {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card-hover);
  padding: 1rem 2.5rem 1rem 1rem;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s var(--ease-out-soft), opacity 0.35s ease;
}

.toast.is-in {
  transform: none;
  opacity: 1;
}

.toast--destructive {
  background: hsl(var(--destructive));
  border-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.toast-desc {
  font-size: 0.8125rem;
  opacity: 0.85;
  margin-top: 0.125rem;
}

.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* ---------- Página 404 ---------- */
.nf-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--muted));
  text-align: center;
  padding: 1.5rem;
}

.nf-wrap h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.nf-wrap p {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.nf-wrap a {
  color: hsl(var(--primary));
  text-decoration: underline;
  transition: color 0.2s ease;
}

.nf-wrap a:hover {
  color: hsl(230 48% 30%);
}

/* ---------- Animações de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s var(--ease-out-soft);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}

.reveal--left  { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }

/* Enquanto a janela não tem folga lateral (container de 1280px + 30px de
   deslocamento), a entrada é vertical: o deslocamento lateral criava
   rolagem horizontal enquanto o elemento ainda não estava visível. */
@media (max-width: 1339px) {
  .reveal--left,
  .reveal--right { transform: translateY(26px); }
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.no-js .reveal {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

.anim-hero {
  animation: fade-up 0.8s ease both;
}

@keyframes fade-slide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}

.anim-in {
  animation: fade-slide 0.35s ease both;
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: none; }
}

.anim-pop {
  animation: fade-slide-up 0.4s ease both;
}

/* ---------- Responsivo ---------- */
@media (min-width: 640px) {
  .hero-actions { flex-direction: row; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; }

  .news-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .edital {
    flex-direction: row;
    align-items: center;
  }

  .edital .btn {
    align-self: auto;
  }

  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .header-inner { height: 5rem; }
  .brand-logo { height: 3.6rem; }

  .header-brands  { gap: 0.875rem; }
  .brand-partners { gap: 0.875rem; padding-left: 0.875rem; }
  .brand-partner--fcl  { height: 2.6rem; }
  .brand-partner--pref { height: 1.7rem; }

  .section {
    padding-top: 7rem;
    padding-bottom: 7rem;
  }

  .section--contact {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .section-title { font-size: 3rem; }
  .about-title   { font-size: 3rem; }

  .hero-title { font-size: 3.75rem; }
  .hero-desc  { font-size: 1.25rem; }

  .hero-content {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }

  .page-banner { height: 12rem; }
  .page-banner h1 { font-size: 2.25rem; }

  .calendar-card { padding: 1.5rem; }

  .month-events h3 { font-size: 1.875rem; }

  .about-stat { display: block; }

  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* Faixa apertada: menu completo + três logos no mesmo cabeçalho.
   Compacta marcas e itens do menu para nada se sobrepor. */
@media (min-width: 1200px) and (max-width: 1379px) {
  .brand-logo { height: 3rem; }
  .brand-partner--fcl  { height: 2.1rem; }
  .brand-partner--pref { height: 1.35rem; }
  .header-brands  { gap: 0.5rem; }
  .brand-partners { gap: 0.5rem; padding-left: 0.5rem; }

  .main-nav { gap: 0; }
  .main-nav .nav-link { padding: 0.5rem 0.5rem; font-size: 0.8125rem; }
  .main-nav .nav-link::after { left: 0.5rem; right: 0.5rem; }
  .nav-cta { margin-left: 0.25rem; padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 4.5rem; }

  .calendar-layout { grid-template-columns: 420px minmax(0, 1fr); }

  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spaces-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .month-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .about-media-frame img { height: 420px; }

  .contact-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

@media (min-width: 1280px) {
  .month-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ============================================================
   Novos componentes (alterações solicitadas pelo cliente)
   ============================================================ */

/* ---------- Menu: dropdowns ---------- */
.main-nav .nav-link {
  padding: 0.5rem 0.75rem;
}

.main-nav .nav-link::after {
  left: 0.75rem;
  right: 0.75rem;
}

.nav-item {
  position: relative;
}

.nav-drop-btn {
  cursor: pointer;
}

.nav-link .nav-caret {
  color: hsl(var(--muted-foreground));
  margin-left: -0.125rem;
  transition: transform 0.25s ease;
}

.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card-hover);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out-soft), visibility 0.25s;
  z-index: 60;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drop-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.drop-link svg {
  color: hsl(var(--primary));
  transition: transform 0.25s ease;
}

.drop-link:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
  transform: translateX(4px);
}

.drop-link:hover svg {
  transform: scale(1.15);
}

.drop-link.is-active {
  color: hsl(var(--primary));
  font-weight: 600;
}

/* Botão Editais em grande destaque */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  animation: cta-pulse 3s ease-in-out infinite;
}

.nav-cta:hover {
  animation: none;
  transform: translateY(-2px) scale(1.05);
  background: hsl(35 90% 49%);
  box-shadow: 0 10px 22px -8px hsl(var(--secondary) / 0.6);
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 hsl(var(--secondary) / 0.4); }
  60%      { box-shadow: 0 0 0 8px hsl(var(--secondary) / 0); }
}

/* Menu mobile: grupos com acordeão */
.mobile-group-btn {
  width: 100%;
  text-align: left;
}

.mobile-group-btn .nav-caret {
  margin-left: auto;
  color: hsl(var(--muted-foreground));
  transition: transform 0.25s ease;
}

.mobile-group-btn[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.mobile-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease-out-soft);
}

.mobile-sub.is-open {
  max-height: 560px;
}

.mobile-sub-link {
  padding-left: 2.5rem;
  font-size: 0.8125rem;
}

.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 1rem 0;
  padding: 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  font-size: 0.875rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mobile-cta:active {
  transform: scale(0.98);
}

/* ---------- Badge de Lançamentos ---------- */
.badge--lancamentos {
  background: hsl(160 84% 30%);
  color: #fff;
}

/* ---------- Escola de Artes (destaque na home) ---------- */
.section--escola {
  background: linear-gradient(180deg, hsl(var(--secondary) / 0.09), hsl(var(--background)) 65%);
}

.escola-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.escola-title {
  margin-bottom: 1.25rem;
}

.escola-title-sub {
  display: inline-block;
  font-size: 0.5em;
  font-weight: 600;
  color: hsl(var(--secondary));
  letter-spacing: 0.01em;
  margin-top: 0.375rem;
}

.escola-text {
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.escola-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.escola-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.85);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.escola-chip svg {
  color: hsl(var(--secondary));
}

.escola-chip:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--secondary) / 0.5);
  box-shadow: 0 6px 14px -6px hsl(var(--secondary) / 0.45);
}

.escola-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.escola-media {
  position: relative;
}

.escola-media-frame {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}

.escola-media-frame img {
  width: 100%;
  height: 22rem;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}

.escola-media:hover .escola-media-frame img {
  transform: scale(1.05);
}

.escola-stat {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-hero);
  transition: transform 0.3s var(--ease-out-soft);
}

.escola-media:hover .escola-stat {
  transform: translateY(-6px) rotate(2deg);
}

.escola-stat svg {
  animation: float 3s ease-in-out infinite;
}

.escola-stat-title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.escola-stat-sub {
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ---------- Banner Sapecada ---------- */
.sapecada-banner {
  background: var(--gradient-accent);
  color: #fff;
  padding: 2.5rem 0;
  overflow: hidden;
}

.sapecada-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.sapecada-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sapecada-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}

.sapecada-title {
  font-size: 1.5rem;
  color: #fff;
}

.sapecada-sub {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
}

.btn--sapecada {
  background: #fff;
  color: hsl(25 85% 42%);
  font-weight: 700;
}

.btn--sapecada:hover {
  background: #fff;
  box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.35);
}

/* ---------- Abas (Escola / Editais SC-BR) ---------- */
.tab-nav,
.scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.scope-tabs {
  justify-content: center;
}

.tab-nav {
  justify-content: flex-start;
  margin-bottom: 3rem;
}

.tab-btn,
.scope-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  transition: all 0.25s ease;
}

.tab-btn svg,
.scope-tab svg {
  color: hsl(var(--primary));
  transition: transform 0.25s ease;
}

.tab-btn:hover,
.scope-tab:hover {
  transform: translateY(-2px);
  color: hsl(var(--primary));
  box-shadow: 0 6px 16px -6px hsl(var(--primary) / 0.3);
}

.tab-btn:hover svg,
.scope-tab:hover svg {
  transform: scale(1.15);
}

.tab-btn.is-active,
.scope-tab.is-active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  box-shadow: var(--shadow-card);
}

.tab-btn.is-active svg,
.scope-tab.is-active svg {
  color: hsl(var(--primary-foreground));
}

.section--blue .scope-tab {
  background: hsl(0 0% 100% / 0.1);
  border-color: hsl(0 0% 100% / 0.2);
  color: hsl(0 0% 100% / 0.75);
}

.section--blue .scope-tab svg {
  color: hsl(var(--secondary));
}

.section--blue .scope-tab.is-active {
  background: #fff;
  color: hsl(var(--primary));
  border-color: #fff;
}

.section--blue .scope-tab.is-active svg {
  color: hsl(var(--primary));
}

/* ---------- Subcategorias de editais (segundo nível) ---------- */
.subcat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: -1rem 0 2rem;
}

.subcat-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  transition: all 0.2s ease;
}

.subcat-chip:hover {
  transform: translateY(-1px);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary));
}

.subcat-chip.is-active {
  background: hsl(var(--secondary));
  color: #fff;
  border-color: hsl(var(--secondary));
  box-shadow: 0 4px 12px -4px hsl(var(--secondary) / 0.5);
}

/* ---------- Cursos (Escola de Artes / Praça do CEU) ---------- */
.courses-head {
  text-align: center;
  margin: 4rem 0 2rem;
}

.courses-title {
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  margin-top: 0.5rem;
}

.courses-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.course-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(var(--secondary) / 0.4);
}

.course-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.course-card:hover .course-icon {
  background: hsl(var(--secondary));
  color: #fff;
  animation: wiggle 0.5s ease;
}

.course-title {
  font-size: 1.0625rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
}

.course-meta {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

/* ---------- Galeria (página) ---------- */
.galeria-card {
  cursor: pointer;
}

.galeria-count {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: transform 0.3s ease;
}

.galeria-card:hover .galeria-count {
  transform: translateY(-2px);
}

.gallery-caption {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.625rem;
  text-align: center;
}

.gallery-frame--contain {
  background: hsl(var(--muted) / 0.5);
}

.gallery-frame--contain img {
  object-fit: contain;
  padding: 1.5rem;
}

/* ---------- Páginas institucionais (página padrão) ---------- */
.section--inst {
  padding-top: 4rem;
}

.inst-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.inst-grid--single {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.inst-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.inst-info {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
}

.doc-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery--inst {
  margin-top: 3rem;
}

/* ---------- Modais (evento e galeria) ---------- */
body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  background: hsl(var(--card));
  border-radius: 1rem;
  max-width: 34rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(14px);
  transition: transform 0.3s var(--ease-out-soft);
  box-shadow: var(--shadow-hero);
}

.modal.is-open .modal-box {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: rotate(90deg) scale(1.08);
}

.modal-img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.modal-body {
  padding: 1.5rem;
}

.modal-title {
  font-size: 1.375rem;
  color: hsl(var(--foreground));
  margin: 0.625rem 0 1rem;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-meta .event-meta {
  margin-bottom: 0;
  font-size: 0.8125rem;
}

.modal-desc {
  color: hsl(var(--muted-foreground));
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* Visualizador de galeria */
.gv-box {
  position: relative;
  background: hsl(var(--card));
  border-radius: 1rem;
  max-width: 56rem;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.92);
  transition: transform 0.3s var(--ease-out-soft);
  box-shadow: var(--shadow-hero);
}

.modal.is-open .gv-box {
  transform: none;
}

.gv-stage {
  position: relative;
  background: #0a0d18;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gv-stage img {
  width: 100%;
  height: min(55vh, 480px);
  object-fit: contain;
}

.gv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.gv-nav--prev { left: 0.75rem; }
.gv-nav--next { right: 0.75rem; }

.gv-nav:hover {
  background: hsl(var(--secondary));
  transform: translateY(-50%) scale(1.12);
}

.gv-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.5rem;
}

.gv-title {
  font-size: 1.0625rem;
  color: hsl(var(--foreground));
}

.gv-caption {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}

.gv-counter {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
}

.gv-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
  overflow-x: auto;
}

.gv-thumb {
  width: 4.25rem;
  height: 3rem;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  padding: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.gv-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gv-thumb:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.gv-thumb.is-active {
  opacity: 1;
  border-color: hsl(var(--secondary));
}

/* ---------- Responsivo dos novos componentes ---------- */
@media (min-width: 640px) {
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inst-info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .sapecada-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .sapecada-title { font-size: 1.875rem; }

  .courses-title { font-size: 1.875rem; }

  .escola-stat { display: flex; }

  .section--inst { padding-top: 5rem; }
}

@media (min-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inst-info { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .escola-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .escola-media-frame img { height: 26rem; }
  .inst-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .inst-grid--single { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Ajustes rodada 2
   ============================================================ */

/* Menu em uma linha só */
.nav-link {
  white-space: nowrap;
}

/* ---------- Hero: slideshow ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide picture,
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide.is-active img {
  animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Setas do slideshow */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-arrow--prev { left: 1rem; }
.hero-arrow--next { right: 1rem; }

.hero-arrow:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--secondary));
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.5);
}

.hero-arrow svg {
  transition: transform 0.25s ease;
}

.hero-arrow--prev:hover { transform: translateY(-50%) scale(1.08); }
.hero-arrow--next:hover { transform: translateY(-50%) scale(1.08); }
.hero-arrow--prev:hover svg { transform: translateX(-3px); }
.hero-arrow--next:hover svg { transform: translateX(3px); }

@media (min-width: 768px) {
  .hero-arrow { width: 3.25rem; height: 3.25rem; }
  .hero-arrow--prev { left: 1.75rem; }
  .hero-arrow--next { right: 1.75rem; }
}

.hero-dots {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  transition: all 0.3s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.25);
}

.hero-dot.is-active {
  width: 1.75rem;
  background: hsl(var(--secondary));
}

/* ---------- Sapecada: identidade nativista (madeira rústica) ---------- */
.sapecada-banner {
  position: relative;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0 3px, rgba(0, 0, 0, 0) 3px 170px),
    repeating-linear-gradient(0deg, rgba(255, 245, 220, 0.04) 0 2px, rgba(0, 0, 0, 0.07) 2px 5px, rgba(0, 0, 0, 0) 5px 11px),
    linear-gradient(90deg, #5e3a1c, #77492a 22%, #61391b 47%, #7d4e2c 72%, #56341a);
  border-top: 6px solid #3a2410;
  border-bottom: 6px solid #3a2410;
  padding: 2.75rem 0;
}

/* "Costura" de couro nas bordas */
.sapecada-banner::before,
.sapecada-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 2px dashed rgba(247, 234, 210, 0.35);
}

.sapecada-banner::before { top: 0.625rem; }
.sapecada-banner::after  { bottom: 0.625rem; }

.sapecada-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7ead2;
  border: 3px solid #3a2410;
  border-radius: 0.875rem;
  padding: 0.625rem 1rem;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
  transform: rotate(-2deg);
  transition: transform 0.3s var(--ease-out-soft);
}

.sapecada-text:hover .sapecada-logo-wrap {
  transform: rotate(0deg) scale(1.05);
}

.sapecada-logo {
  height: 3.5rem;
  width: auto;
}

.sapecada-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  color: #f7ead2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.sapecada-sub {
  font-size: 0.9375rem;
  color: rgba(247, 234, 210, 0.85);
}

.btn--sapecada {
  background: #f7ead2;
  color: #4a2c12;
  font-weight: 700;
  border: 2px solid #3a2410;
  box-shadow: 0 6px 0 #3a2410;
}

.btn--sapecada:hover {
  background: #fff6e3;
  color: #3a2410;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #3a2410, 0 14px 26px -10px rgba(0, 0, 0, 0.5);
}

.btn--sapecada:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #3a2410;
}

/* ---------- Rodapé: colunas alinhadas em uma linha ---------- */
.footer-grid {
  align-items: start;
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

/* ---------- Editais em duas colunas (SC | Brasil) ---------- */
.editais-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .editais-cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.editais-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.editais-col-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid hsl(var(--secondary));
  margin-bottom: 0.25rem;
}

.editais-col-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: hsl(var(--secondary) / 0.15);
  color: hsl(var(--secondary));
  flex-shrink: 0;
}

.editais-col-title {
  font-size: 1.25rem;
}

.section--blue .editais-col-title {
  color: hsl(var(--primary-foreground));
}

/* Cartão de edital dentro das colunas: botão abaixo do texto */
.edital--col {
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  padding: 1.25rem;
}

.edital--col .btn {
  align-self: flex-start;
}

.ic-down {
  transition: transform 0.25s ease;
}

.btn:hover .ic-down {
  transform: translateY(3px);
}

/* ---------- Página interna de notícia ---------- */
.section--article {
  padding-top: 3.5rem;
}

.article-container {
  max-width: 50rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 1.75rem;
  transition: transform 0.25s ease, color 0.25s ease;
}

.article-back:hover {
  transform: translateX(-4px);
}

.ic-back {
  transform: rotate(180deg);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.news-cat--static {
  position: static;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 600;
}

.article-title {
  font-size: 1.75rem;
  line-height: 1.25;
  color: hsl(var(--foreground));
  margin-bottom: 1.75rem;
}

.article-media {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.article-media img {
  width: 100%;
  max-height: 26rem;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}

.article-media:hover img {
  transform: scale(1.03);
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

.article-lead {
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.85);
}

.article-related {
  margin-top: 4.5rem;
}

.article-related .courses-title {
  margin-bottom: 2rem;
}

.news-title a {
  transition: color 0.25s ease;
}

.news-title a:hover {
  color: hsl(var(--primary));
}

/* ---------- Conteúdo rich-text (editor TinyMCE) ---------- */
.rich-content {
  line-height: 1.75;
}
.rich-content > *:first-child { margin-top: 0; }
.rich-content > *:last-child { margin-bottom: 0; }
.rich-content p { margin: 0 0 1.125rem; }
.rich-content h3 {
  font-size: 1.35rem; font-weight: 700;
  color: hsl(var(--foreground)); margin: 1.75rem 0 0.75rem;
}
.rich-content h4 {
  font-size: 1.1rem; font-weight: 700;
  color: hsl(var(--foreground)); margin: 1.5rem 0 0.6rem;
}
.rich-content ul, .rich-content ol { margin: 0 0 1.125rem 1.5rem; padding: 0; }
.rich-content li { margin: 0 0 0.4rem; }
.rich-content a {
  color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 2px;
}
.rich-content a:hover { color: hsl(230 48% 30%); }
.rich-content strong, .rich-content b { font-weight: 700; color: hsl(var(--foreground) / 0.9); }
.rich-content blockquote {
  margin: 0 0 1.125rem; padding: 0.6rem 1rem;
  border-left: 3px solid hsl(var(--primary) / 0.4);
  background: hsl(var(--muted)); border-radius: 0 8px 8px 0;
}
.rich-content img { max-width: 100%; height: auto; border-radius: 10px; }

/* ---------- Página de álbum (galeria) ---------- */
.album-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.album-head .article-back {
  margin-bottom: 0;
}

.album-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.album-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.album-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease;
}

.album-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-soft);
}

.album-thumb:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.album-thumb:hover img {
  transform: scale(1.07);
}

.album-thumb-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.5rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
  font-size: 0.8125rem;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.album-thumb:hover .album-thumb-caption {
  opacity: 1;
  transform: none;
}

/* ---------- Navegação de espaços ---------- */
.tab-nav--center {
  justify-content: center;
}

.space-card[id] {
  scroll-margin-top: 6.5rem;
}

/* ---------- Mapa no contato ---------- */
.contact-map {
  margin-top: 3rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border));
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.contact-map:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.contact-map iframe {
  display: block;
  width: 100%;
}

/* ---------- Logo no rodapé ---------- */
.footer-logo {
  height: 4.25rem;
  width: auto;
  margin-bottom: 1.25rem;
  transition: transform 0.3s var(--ease-out-soft);
}

.footer-brand:hover .footer-logo {
  transform: scale(1.04);
}

/* ---------- Página de Logos ---------- */
.logos-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .logos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.logo-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease;
}

.logo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  min-height: 200px;
}

.logo-preview--light {
  background:
    linear-gradient(45deg, hsl(var(--muted) / 0.6) 25%, transparent 25%, transparent 75%, hsl(var(--muted) / 0.6) 75%),
    linear-gradient(45deg, hsl(var(--muted) / 0.6) 25%, hsl(var(--card)) 25%, hsl(var(--card)) 75%, hsl(var(--muted) / 0.6) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.logo-preview--dark {
  background: hsl(var(--primary));
}

.logo-preview img {
  max-width: 100%;
  max-height: 130px;
  width: auto;
  transition: transform 0.4s var(--ease-out-soft);
}

.logo-card:hover .logo-preview img {
  transform: scale(1.05);
}

.logo-card-body {
  padding: 1.5rem;
}

.logo-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.125rem;
  flex-wrap: wrap;
}

.logo-card-title {
  font-size: 1.125rem;
  color: hsl(var(--foreground));
}

.logo-card-note {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
}

.logo-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.625rem;
}

.logo-dl {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: all 0.25s ease;
}

.logo-dl-fmt {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}

.logo-dl-fmt svg {
  color: hsl(var(--primary));
  transition: transform 0.25s ease;
}

.logo-dl-hint {
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  padding-left: 1.25rem;
}

.logo-dl:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.06);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -8px hsl(var(--primary) / 0.35);
}

.logo-dl:hover .logo-dl-fmt svg {
  transform: translateY(3px);
}

/* ---------- Notícia: layout com barra lateral ---------- */
.article-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.article-main {
  min-width: 0;
  max-width: 50rem;
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s ease;
}

.widget:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: hsl(var(--foreground));
  margin-bottom: 1.125rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid hsl(var(--secondary));
}

.widget-title svg {
  color: hsl(var(--secondary));
}

/* Busca */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form .form-input {
  flex: 1;
  min-width: 0;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.search-btn:hover {
  background: hsl(230 48% 34%);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px hsl(var(--primary) / 0.5);
}

.search-btn:hover svg {
  animation: wiggle 0.5s ease;
}

/* Lista de categorias */
.cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cat-name {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.cat-name svg {
  color: hsl(var(--secondary));
  transition: transform 0.25s ease;
}

.cat-list a:hover {
  background: hsl(var(--muted));
  color: hsl(var(--primary));
  transform: translateX(4px);
}

.cat-list a:hover .cat-name svg {
  transform: translateX(3px);
}

.cat-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--muted));
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.cat-list a:hover .cat-count {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.cat-all {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: transform 0.25s ease;
}

.cat-all:hover {
  transform: translateX(4px);
}

/* Nota de resultado da busca */
.search-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  max-width: 40rem;
  margin: 0 auto 2rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-card);
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.search-note svg {
  color: hsl(var(--secondary));
  flex-shrink: 0;
}

.search-clear {
  margin-left: auto;
  font-weight: 600;
  color: hsl(var(--primary));
  transition: color 0.2s ease, transform 0.2s ease;
}

.search-clear:hover {
  transform: translateX(2px);
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .article-aside {
    position: sticky;
    top: 6.5rem;
  }
}

@media (min-width: 768px) {
  .sapecada-logo { height: 4.25rem; }
  .sapecada-title { font-size: 2rem; }
  .article-title { font-size: 2.375rem; }
}

/* ============================================================
   Ajustes rodada 3
   ============================================================ */

/* ---------- Cards de curso clicáveis ---------- */
.course-card--link {
  display: block;
  position: relative;
}

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.course-card--link:hover .course-link {
  opacity: 1;
  transform: none;
}

/* ---------- Página individual de curso ---------- */
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: hsl(var(--secondary) / 0.15);
  color: hsl(25 85% 40%);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.course-badge svg {
  color: hsl(var(--secondary));
}

.course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.course-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.course-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.course-detail:last-child {
  border-bottom: 0;
}

.course-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.625rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.course-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.125rem;
}

.course-detail-value {
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  white-space: pre-line;
  line-height: 1.5;
}

/* ---------- Cards de espaço clicáveis ---------- */
.space-card--link {
  display: block;
}

.space-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary));
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.space-card--link:hover .space-link {
  opacity: 1;
  transform: none;
}

/* ---------- Editais: 3 colunas + Ver mais ---------- */
.editais-cols--3 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
  .editais-cols--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .editais-cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.editais-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.editais-more--blue {
  background: hsl(0 0% 100% / 0.12);
  color: #fff;
}

.editais-more--blue:hover {
  background: hsl(var(--secondary));
  transform: translateX(3px);
}

.editais-more--white {
  background: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

.editais-more--white:hover {
  background: hsl(var(--primary));
  color: #fff;
  transform: translateX(3px);
}

/* ---------- Página de editais: abas + painéis ---------- */
.editais-full-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
  .editais-full-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .editais-full-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Conselhos: composição ---------- */
.membros-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .membros-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .membros-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.membro-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.membro-card svg {
  color: hsl(var(--secondary));
  flex-shrink: 0;
}

.membro-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: hsl(var(--secondary) / 0.4);
}

/* ---------- Destaques (home) ---------- */
.destaques-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .destaques-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .destaques-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.destaque-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 16 / 10;
  transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s ease;
}

.destaque-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-soft);
}

.destaque-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.destaque-card:hover img {
  transform: scale(1.06);
}

.destaque-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.destaque-caption svg {
  transition: transform 0.25s ease;
}

.destaque-card:hover .destaque-caption svg {
  transform: translateX(4px);
}

/* ---------- Acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
