:root {
  --primary: #3B2E7E;
  --primary-light: #5B4E9E;
  --primary-dark: #2A1E5E;
  --secondary: #F5A623;
  --secondary-light: #FFC04D;
  --secondary-dark: #D4881A;
  --success: #16a34a;
  --warning: #F5A623;
  --error: #dc2626;
  --info: #3B82F6;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--neutral-100);
  color: var(--neutral-800);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* Header */
.site-header {
  background: var(--primary);
  color: #fff;
  padding: 16px 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.logo-area { display: flex; align-items: center; gap: 12px; }
.logo-ibc {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.site-title { font-size: 18px; font-weight: 600; }
.header-nav { display: flex; gap: 8px; flex-wrap: wrap; }

/* Footer */
.site-footer { margin-top: auto; background: var(--neutral-800); color: var(--neutral-400); padding: 20px 0; text-align: center; font-size: 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--secondary); color: var(--primary); }
.btn-secondary:hover { background: var(--secondary-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.admin-body .btn-ghost { color: var(--neutral-700); border-color: var(--neutral-300); }
.admin-body .btn-ghost:hover { background: var(--neutral-100); }
.btn-danger { color: var(--error); border-color: var(--error); }
.btn-danger:hover { background: var(--error); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-loading { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Cards */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card h2, .card h3 { margin-bottom: 16px; color: var(--neutral-900); }

/* Hero */
.hero { text-align: center; padding: 40px 0 24px; }
.hero h1 { font-size: 28px; color: var(--primary); margin-bottom: 8px; }
.hero p { color: var(--neutral-500); font-size: 16px; }

/* Projetos grid */
.projetos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.projeto-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; padding: 0; overflow: hidden; }
.projeto-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.projeto-logo { width: 100%; height: 160px; object-fit: cover; background: var(--neutral-100); }
.projeto-logo-placeholder {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 32px; font-weight: 700;
}
.projeto-info { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.projeto-info h3 { color: var(--primary); }
.projeto-info p { color: var(--neutral-500); font-size: 14px; flex: 1; }
.projeto-info .btn { align-self: flex-start; margin-top: 8px; }

/* Forms */
.form-inscricao { max-width: 800px; margin: 0 auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 500; color: var(--neutral-700); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  transition: border-color var(--transition);
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59,46,126,0.1);
}
.form-group small { font-size: 12px; color: var(--neutral-500); }
.textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--neutral-300); border-radius: var(--radius-sm); font-family: inherit; font-size: 14px; resize: vertical; }
.file-input { padding: 8px; border: 2px dashed var(--neutral-300); cursor: pointer; }

/* Multi-step */
.form-step { display: none; animation: fadeIn 0.3s ease; }
.form-step.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.step-progress { height: 4px; background: var(--neutral-200); border-radius: 2px; margin-bottom: 16px; overflow: hidden; }
.step-progress-bar { height: 100%; background: var(--primary); width: 16.66%; transition: width 0.3s ease; }
.steps-indicator { display: flex; justify-content: space-between; margin-bottom: 24px; }
.step-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--neutral-200);
  color: var(--neutral-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  transition: all var(--transition);
  position: relative;
}
.step-dot.active { background: var(--primary); color: #fff; }
.step-dot.completed { background: var(--success); color: #fff; }
.step-dot::after {
  content: ''; position: absolute; top: 50%; left: 100%; width: calc(100% - 36px); height: 2px;
  background: var(--neutral-200); z-index: -1;
}
.step-dot:last-child::after { display: none; }

.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: var(--primary); color: #fff;
  border-radius: 50%; font-size: 14px; margin-right: 8px;
}
.form-step h2 { display: flex; align-items: center; margin-bottom: 20px; color: var(--primary); }
.form-actions { display: flex; justify-content: space-between; margin-top: 24px; gap: 8px; }

/* Checkbox */
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

/* Modalidades */
.modalidades-list { display: flex; flex-direction: column; gap: 8px; }
.modalidade-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.modalidade-option:hover { border-color: var(--primary-light); background: var(--neutral-50); }
.modalidade-option:has(input:checked) { border-color: var(--primary); background: rgba(59,46,126,0.05); }
.modalidade-option.lotada { opacity: 0.6; }
.modalidade-option input[type="radio"] { width: 20px; height: 20px; }
.modalidade-info { flex: 1; display: flex; flex-direction: column; }
.modalidade-info strong { font-size: 15px; }
.modalidade-info small { color: var(--neutral-500); }

/* Termo */
.termo-box {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
}
.termo-box h3 { color: var(--primary); margin-bottom: 8px; }
.termo-box p { font-size: 14px; color: var(--neutral-600); }

/* Assinatura canvas */
#assinatura-canvas { border: 2px solid var(--neutral-300); border-radius: var(--radius-sm); cursor: crosshair; width: 100%; max-width: 500px; touch-action: none; }

/* Foto preview */
.foto-preview { margin-top: 8px; }
.foto-preview img { max-width: 150px; max-height: 150px; border-radius: var(--radius-sm); object-fit: cover; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert ul { margin-left: 20px; margin-top: 4px; }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-admin { background: var(--primary); color: #fff; }
.badge-coordenador { background: var(--secondary); color: var(--primary); }
.badge-visualizador { background: var(--neutral-300); color: var(--neutral-700); }

/* Status badges */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.status-pendente { background: #fef3c7; color: #92400e; }
.status-confirmado { background: #d1fae5; color: #065f46; }
.status-cancelado { background: #fee2e2; color: #991b1b; }
.status-espera { background: rgba(59,46,126,0.1); color: var(--primary); }

/* Success card */
.success-card { text-align: center; padding: 40px 24px; }
.success-icon {
  width: 64px; height: 64px;
  background: var(--success); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 16px;
  animation: popIn 0.4s ease;
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.success-card h1, .success-card h2 { color: var(--primary); margin-bottom: 8px; }
.success-card p { color: var(--neutral-500); margin-bottom: 20px; }

.protocolo-box {
  background: var(--neutral-50);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px auto;
  max-width: 400px;
  text-align: center;
}
.protocolo-box label { display: block; font-size: 12px; color: var(--neutral-500); margin-bottom: 4px; text-transform: uppercase; }
.protocolo-box strong { font-size: 20px; color: var(--primary); word-break: break-all; }

.confirmacao-dados { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.confirmacao-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--neutral-100); }
.confirmacao-item span { color: var(--neutral-500); }
.confirmacao-acoes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* Consulta */
.form-busca { margin-top: 16px; }
.inscricao-card { margin-bottom: 16px; }
.inscricao-header { display: flex; justify-content: space-between; align-items: start; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }
.inscricao-header h3 { margin: 0 0 4px; color: var(--primary); }
.protocolo-badge { display: inline-block; background: var(--neutral-100); padding: 2px 10px; border-radius: 4px; font-size: 13px; font-family: monospace; margin-right: 8px; }
.inscricao-detalhes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.detalhe-item { font-size: 14px; }
.detalhe-item span { color: var(--neutral-500); }
.docs-list, .historico-list { list-style: none; padding: 0; }
.docs-list li { padding: 6px 0; border-bottom: 1px solid var(--neutral-100); font-size: 14px; }
.doc-tipo { display: inline-block; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin-right: 8px; }
.historico-list li { padding: 8px 0; border-bottom: 1px solid var(--neutral-100); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hist-status { font-weight: 600; color: var(--primary); }
.hist-data { color: var(--neutral-500); font-size: 12px; }
.hist-obs { color: var(--neutral-600); font-style: italic; width: 100%; }
.hist-user { font-size: 12px; color: var(--neutral-500); }
.inscricao-acoes { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }

/* Login */
.login-page { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-container { width: 100%; max-width: 400px; padding: 16px; }
.login-card { background: #fff; border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: var(--shadow-lg); text-align: center; }
.login-logo { margin: 0 auto 16px; }
.login-card h1 { color: var(--primary); font-size: 22px; margin-bottom: 4px; }
.login-subtitle { color: var(--neutral-500); margin-bottom: 24px; }
.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 16px; }
.login-hint { margin-top: 16px; font-size: 12px; color: var(--neutral-400); }

/* Admin layout */
.admin-body { background: var(--neutral-100); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  background: var(--primary);
  color: #fff;
  width: 240px;
  padding: 20px 0;
  flex-shrink: 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}
.admin-sidebar .logo-ibc { margin: 0 auto 24px; }
.admin-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; }
.admin-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}
.admin-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-nav a.active { background: var(--secondary); color: var(--primary); font-weight: 600; }
.admin-nav .nav-logout { margin-top: 16px; color: rgba(255,255,255,0.6); }
.admin-nav .nav-logout:hover { background: var(--error); color: #fff; }

.admin-main { margin-left: 240px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  background: #fff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 40;
}
.admin-topbar h1 { font-size: 20px; color: var(--neutral-900); }
.admin-user { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--neutral-600); }
.admin-content { padding: 24px; flex: 1; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
}
.stat-number { font-size: 32px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--neutral-500); margin-top: 4px; }
.stat-confirmado { border-left-color: var(--success); }
.stat-confirmado .stat-number { color: var(--success); }
.stat-pendente { border-left-color: var(--warning); }
.stat-pendente .stat-number { color: var(--warning); }
.stat-cancelado { border-left-color: var(--error); }
.stat-cancelado .stat-number { color: var(--error); }
.stat-espera { border-left-color: var(--primary-light); }
.stat-warning { border-left-color: var(--secondary); }
.stat-warning .stat-number { color: var(--secondary-dark); }

/* Charts */
.charts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 16px; }
.chart-card { min-height: 300px; }
.chart-card canvas { max-height: 280px; }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px 8px; border-bottom: 2px solid var(--neutral-200); color: var(--neutral-600); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table td { padding: 12px 8px; border-bottom: 1px solid var(--neutral-100); }
.data-table tr:hover { background: var(--neutral-50); }

/* Detalhe */
.inscricao-detalhe-header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detalhe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.detalhe-section { background: var(--neutral-50); padding: 16px; border-radius: var(--radius-sm); }
.detalhe-section h3 { color: var(--primary); font-size: 15px; margin-bottom: 12px; }
.detalhe-item { font-size: 14px; padding: 4px 0; }
.detalhe-item span { color: var(--neutral-500); }

/* Filtros */
.filtros-form { margin-bottom: 16px; }
.filtros-form .form-grid { margin-bottom: 12px; }

/* Empty state */
.empty-state { text-align: center; padding: 40px; color: var(--neutral-500); }

.text-muted { color: var(--neutral-500); }
.text-center { text-align: center; }

/* Responsive */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 16px; }
  .inscricao-detalhes { grid-template-columns: 1fr; }
  .steps-indicator { gap: 4px; }
  .step-dot { width: 28px; height: 28px; font-size: 12px; }
  .step-dot::after { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 24px; }
  .hero h1 { font-size: 22px; }
}

/* ========================================
   BANNERS DA HOME (completos, sem corte)
   ======================================== */
.banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--primary-dark);
}

.banner-track {
  position: relative;
  width: 100%;
}

.banner-slide {
  display: none;
  position: relative;
  width: 100%;
}

.banner-slide.active {
  display: block;
  animation: bannerFade 0.4s ease;
}

@keyframes bannerFade {
  from { opacity: 0.35; }
  to   { opacity: 1; }
}

/* Imagem/vídeo inteiros */
.banner-media {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
  background: var(--primary-dark);
}

/* Desktop: só a versão desktop */
.banner-media-desktop { display: block !important; }
.banner-media-mobile  { display: none !important; }

.banner-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.banner-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(transparent, rgba(42, 30, 94, 0.88));
  color: #fff;
  pointer-events: none;
}

.banner-caption h2 {
  margin: 0;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
}

.banner-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.banner-prev { left: 12px; }
.banner-next { right: 12px; }

.banner-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.banner-dot.active {
  background: var(--secondary);
  width: 22px;
  border-radius: 99px;
}

/* Mobile: troca para versão mobile */
@media (max-width: 768px) {
  .banner-media-desktop { display: none !important; }
  .banner-media-mobile  { display: block !important; }

  .banner-media {
    max-height: 85vh;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .banner-nav {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .projetos-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .projetos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Header / Título ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8e6f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(59, 46, 126, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: inherit;
}

.site-logo-img {
    max-height: 48px;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.logo-ibc {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3B2E7E 0%, #5a4a9e 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.site-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #3B2E7E;
    letter-spacing: -0.02em;
}

.site-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
}

/* ===== Hero / Título da página ===== */
.hero {
    text-align: center;
    padding: 2.75rem 1rem 2rem;
    margin-bottom: 0.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(245, 166, 35, 0.12);
    color: #b7791f;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #F5A623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 800;
    color: #1f1635;
    letter-spacing: -0.03em;
    margin: 0 0 0.65rem;
    line-height: 1.15;
}

.hero p {
    font-size: 1.05rem;
    color: #6b7280;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.55;
}

/* Mobile */
@media (max-width: 640px) {
    .header-inner {
        min-height: 64px;
    }

    .site-name {
        font-size: 0.95rem;
    }

    .site-title {
        font-size: 0.72rem;
    }

    .hero {
        padding: 2rem 0.75rem 1.5rem;
    }
}

/* ===== Header mobile – menos espaço ===== */
@media (max-width: 640px) {
    .site-header {
        padding: 0;
    }

    .header-inner {
        min-height: 0;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .logo-area {
        gap: 0.55rem;
    }

    .site-logo-img {
        max-height: 36px;
        max-width: 100px;
    }

    .logo-ibc {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
        border-radius: 9px;
    }

    .logo-text {
        gap: 0;
    }

    .site-name {
        font-size: 0.88rem;
        line-height: 1.15;
    }

    .site-title {
        font-size: 0.68rem;
        line-height: 1.15;
    }

    .header-nav .btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.78rem;
    }

    /* Hero também um pouco mais compacto no mobile */
    .hero {
        padding: 1.5rem 0.75rem 1.25rem;
    }

    .hero-badge {
        margin-bottom: 0.65rem;
        font-size: 0.7rem;
        padding: 0.28rem 0.7rem;
    }

    .hero h1 {
        font-size: 1.45rem;
        margin-bottom: 0.4rem;
    }

    .hero p {
        font-size: 0.92rem;
    }
}

/* ===== Header institucional ===== */
.site-header--brand {
    background: linear-gradient(135deg, #2d2268 0%, #3B2E7E 55%, #4a3c94 100%);
    color: #fff;
    position: relative;
}

.site-header--brand .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    min-height: 78px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.brand-logo {
    height: 52px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 0.3rem 0.45rem;
}

.brand-logo-fallback {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    color: #3B2E7E;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.brand-tag {
    font-size: 0.8rem;
    opacity: 0.88;
    line-height: 1.25;
}

.btn-header {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F5A623;
    color: #1a1330;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transition: transform 0.15s, background 0.15s;
}

.btn-header:hover {
    background: #ffb83d;
    transform: translateY(-1px);
}

.header-accent {
    height: 4px;
    background: linear-gradient(90deg, #F5A623 0%, #ffd27a 50%, #F5A623 100%);
}

/* ===== Título da seção (editorial / institucional) ===== */
.section-head {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    padding: 1.75rem 0 1.35rem;
    margin-bottom: 0.5rem;
}

.section-head-bar {
    width: 5px;
    border-radius: 99px;
    background: linear-gradient(180deg, #F5A623 0%, #3B2E7E 100%);
    flex-shrink: 0;
}

.section-head-content h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1a1330;
    line-height: 1.15;
}

.section-head-content p {
    margin: 0;
    color: #6b7280;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 640px) {
    .site-header--brand .header-inner {
        min-height: 0;
        padding: 0.85rem 1rem;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .brand-logo {
        height: 44px;
        max-width: 110px;
        border-radius: 10px;
    }

    .brand-name {
        font-size: 1rem;
    }

    .brand-tag {
        font-size: 0.72rem;
        max-width: 12.5rem;
    }

    .btn-header {
        width: 100%;
        margin-top: 0.15rem;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .section-head {
        padding: 1.25rem 0 1rem;
        gap: 0.75rem;
    }

    .section-head-content h1 {
        font-size: 1.35rem;
    }

    .section-head-content p {
        font-size: 0.9rem;
    }
}

/* ===== Topbar flutuante / glass ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(59, 46, 126, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: 0.6rem 1rem;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: #1a1330;
}

.topbar-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    display: block;
}

.topbar-logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3B2E7E, #6b5bb8);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
}

.topbar-brand-text {
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: -0.02em;
}

.topbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: #fff;
    background: #1a1330;
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
    box-shadow: 0 8px 20px rgba(26, 19, 48, 0.18);
}

.topbar-cta:hover {
    background: #3B2E7E;
    transform: translateY(-1px);
}

/* ===== Intro estilizado ===== */
.intro-stage {
    position: relative;
    margin: 1.5rem 0 1.75rem;
    padding: 1.6rem 1.25rem;
    border-radius: 24px;
    background:
        radial-gradient(1200px 400px at 10% -20%, rgba(245, 166, 35, 0.18), transparent 55%),
        radial-gradient(900px 380px at 100% 0%, rgba(59, 46, 126, 0.14), transparent 50%),
        linear-gradient(180deg, #faf8ff 0%, #ffffff 100%);
    border: 1px solid rgba(59, 46, 126, 0.08);
    overflow: hidden;
}

.intro-glow {
    position: absolute;
    inset: auto -20% -40% auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.22), transparent 70%);
    pointer-events: none;
}

.intro-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem 2rem;
    align-items: end;
}

.intro-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a6410;
    background: rgba(245, 166, 35, 0.14);
    border: 1px solid rgba(245, 166, 35, 0.28);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.intro-chip i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #F5A623;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.2);
}

.intro-main h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4.2vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: #1a1330;
}

.intro-main h1 em {
    font-style: normal;
    background: linear-gradient(90deg, #3B2E7E 0%, #7c6bc4 45%, #F5A623 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.intro-side p {
    margin: 0 0 1.1rem;
    color: #5b6472;
    font-size: 1rem;
    line-height: 1.55;
}

.intro-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.intro-meta strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #1a1330;
    letter-spacing: -0.03em;
    line-height: 1;
}

.intro-meta span {
    font-size: 0.78rem;
    color: #7b8494;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.intro-meta-line {
    width: 1px;
    height: 34px;
    background: rgba(59, 46, 126, 0.15);
}

/* Mobile */
@media (max-width: 700px) {
    .topbar-inner {
        min-height: 56px;
        padding: 0.5rem 0.9rem;
    }

    .topbar-logo { height: 34px; max-width: 100px; }
    .topbar-brand-text { font-size: 0.9rem; }
    .topbar-cta {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .intro-stage {
        margin: 1rem 0 1.25rem;
        padding: 1.2rem 1rem;
        border-radius: 18px;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .intro-main h1 {
        font-size: 1.7rem;
    }

    .intro-side p {
        font-size: 0.94rem;
    }
}

/* ========================================
   ADMIN SIDEBAR – MOBILE OFF-CANVAS
   ======================================== */

.admin-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle {
  display: none; /* escondido no desktop */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.sidebar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--neutral-700);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.sidebar-toggle:hover {
  background: var(--neutral-100);
}

/* Overlay (fundo escuro) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 45;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex;
  }

  .admin-sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-main {
    margin-left: 0 !important;
  }

  .admin-content {
    padding: 16px;
  }

  .admin-topbar h1 {
    font-size: 17px;
  }

  /* Quando o menu está aberto */
  body.sidebar-open .sidebar-overlay {
    display: block;
  }
}
/* ========================================
   MENU STICKY - NAVEGAÇÃO SITE
   ======================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(59, 46, 126, 0.08);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.6rem 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #1a1330;
  font-weight: 700;
}

.nav-logo {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.nav-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3B2E7E, #5B4E9E);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.nav-brand-text {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-menu a {
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-menu a:hover {
  color: #3B2E7E;
  background: rgba(59, 46, 126, 0.06);
}

.nav-cta {
  background: #3B2E7E !important;
  color: #fff !important;
  font-weight: 600 !important;
  padding: 0.55rem 1.15rem !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 12px rgba(59, 46, 126, 0.25);
}

.nav-cta:hover {
  background: #2A1E5E !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a1330;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  background: rgba(59, 46, 126, 0.06);
}

/* Mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(59, 46, 126, 0.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.4rem;
  }

  .nav-brand-text {
    font-size: 0.95rem;
  }

  .nav-logo {
    height: 34px;
  }
}

.admin-user-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    margin-right: 8px;
}
.admin-user-link:hover {
    color: #3B2E7E;
    text-decoration: underline;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}
.sidebar-logo {
    display: block;
    max-width: 140px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    border: none;
    padding: 0;
    box-shadow: none;
}
.sidebar-logo-fallback {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
}