:root {
  /* Paleta Principal - Preto, Vermelho e Branco */
  --primary-color: #dc3545;      /* Vermelho principal */
  --secondary-color: #b02a37;    /* Vermelho escuro */
  --accent-color: #ff4757;       /* Vermelho claro para acentos */
  --success-color: #28a745;      /* Verde para sucesso */
  --warning-color: #ffc107;      /* Amarelo para avisos */
  --danger-color: #dc3545;       /* Vermelho para perigos */
  --dark-color: #000000;         /* Preto absoluto */
  --gray-900: #111111;           /* Preto quase absoluto */
  --gray-800: #1a1a1a;          /* Preto escuro */
  --gray-700: #2d2d2d;          /* Cinza escuro */
  --gray-600: #404040;          /* Cinza médio escuro */
  --gray-500: #6b7280;          /* Cinza médio */
  --gray-400: #9ca3af;          /* Cinza médio claro */
  --gray-300: #d1d5db;          /* Cinza claro */
  --gray-200: #e5e7eb;          /* Cinza muito claro */
  --gray-100: #f3f4f6;          /* Cinza quase branco */
  --gray-50: #f9fafb;           /* Cinza ultra claro */
  --white: #ffffff;              /* Branco puro */
  
  /* Sombras */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Raios de borda */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 16px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--gray-900) 100%);
  color: var(--white);
  padding: 0.75rem 0;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.header-top i {
  font-size: 1rem;
  opacity: 0.9;
  color: var(--primary-color);
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: 4rem;
  left: 1rem;
  z-index: 1001;
  background: var(--white);
  border: 2px solid var(--primary-color);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.mobile-toggle:hover {
  transform: scale(1.05);
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-xl);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  padding: 0;
  background: #131d27;
  color: var(--white);
  overflow-y: auto;
  z-index: 999;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-xl);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: var(--gray-800);
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

.sidebar-header {
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--gray-700);
  background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
}

.sidebar-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

.sidebar-header .icon {
  font-size: 1.5rem;
  color: var(--white);
  opacity: 0.9;
}

.sidebar-nav {
  padding: 1.5rem 0;
}

.sidebar-nav a {
  color: var(--gray-300);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0.875rem 1.5rem;
  margin: 0.25rem 0;
  font-weight: 500;
  font-size: 0.925rem;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  gap: 0.75rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--white);
  background: rgba(220, 53, 69, 0.15);
  border-left-color: var(--primary-color);
  transform: translateX(5px);
}

.sidebar-nav a i {
  font-size: 1.125rem;
  min-width: 1.25rem;
  color: var(--primary-color);
  opacity: 0.8;
}

.sidebar-nav a:hover i,
.sidebar-nav a.active i {
  opacity: 1;
  color: var(--primary-color);
}

.main-container {
  margin-left: 280px;
  min-height: 100vh;
  background: var(--white);
}

.content {
  padding: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.content-header {
  margin-bottom: 3rem;
  text-align: center;
}

.content-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-header .subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.content-section {
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.content-section:nth-child(even) {
  animation-delay: 0.1s;
}

.content-section:nth-child(odd) {
  animation-delay: 0.2s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
  border-radius: 2px;
}

.section-title i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.section-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
}

.section-content p {
  margin-bottom: 1.5rem;
}

/* ================================
   ACCORDION PADRONIZADO
================================ */

.accordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 12px;
  --bs-accordion-inner-border-radius: 10px;
}

.accordion-item {
  background: var(--white);
  border: 2px solid var(--gray-200) !important;
  border-radius: var(--border-radius) !important;
  margin-bottom: 1rem !important;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.accordion-item:hover {
  border-color: var(--primary-color) !important;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Botão do accordion padrão para todos */
.accordion-button {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--dark-color) 100%) !important;
  color: var(--white) !important;
  border: none !important;
  padding: 1.25rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  border-radius: 0 !important;
  position: relative;
  transition: all 0.3s ease !important;
  box-shadow: none !important;
}

.accordion-button:hover {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%) !important;
  transform: translateX(5px);
}

.accordion-button:focus {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--dark-color) 100%) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--dark-color) 100%) !important;
  color: var(--white) !important;
}

/* Ícone da seta personalizado */
.accordion-button::after {
  background-image: none !important;
  content: "\f107" !important; /* FontAwesome down arrow */
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  font-size: 1.2rem !important;
  color: var(--white) !important;
  transform: none !important;
  transition: transform 0.3s ease !important;
}

.accordion-button:not(.collapsed)::after {
  content: "\f106" !important; /* FontAwesome up arrow */
  transform: none !important;
}

/* Corpo do accordion */
.accordion-body {
  padding: 2rem 1.5rem !important;
  background: var(--white) !important;
  border-top: 1px solid var(--gray-200) !important;
}

/* Remove classes específicas de cor para padronizar */
.text-danger,
.text-white {
  color: inherit !important;
}

.note {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(255, 71, 87, 0.02) 100%);
  border: 1px solid rgba(220, 53, 69, 0.1);
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.note::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
  transform: translate(30px, -30px);
}

.note-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1rem;
}

.note-header i {
  font-size: 1.25rem;
}

.note-content {
  color: var(--gray-700);
  line-height: 1.6;
}

.note.warning {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
  border-left-color: var(--warning-color);
  border-color: rgba(255, 193, 7, 0.1);
}

.note.warning .note-header {
  color: var(--warning-color);
}

.note.success {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.02) 100%);
  border-left-color: var(--success-color);
  border-color: rgba(40, 167, 69, 0.1);
}

.note.success .note-header {
  color: var(--success-color);
}

ol, ul {
  margin: 1.5rem 0;
  padding-left: 0;
}

ol li, ul li {
  margin-bottom: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  border-radius: var(--border-radius-sm);
  border-left: 4px solid var(--primary-color);
  position: relative;
  transition: all 0.3s ease;
}

ol li:hover, ul li:hover {
  background: var(--gray-100);
  transform: translateX(5px);
  border-left-color: var(--secondary-color);
}

ol li {
  counter-increment: step-counter;
}

ol {
  counter-reset: step-counter;
}

ol li::before {
  content: counter(step-counter);
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: var(--white);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.manual-img {
  width: 100%;
  max-width: 800px;
  border-radius: var(--border-radius-lg);
  margin: 2rem auto;
  display: block;
  box-shadow: var(--shadow-xl);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid var(--gray-200);
}

.manual-img:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  border-color: var(--primary-color);
}

pre {
  background: var(--gray-900);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  position: relative;
  border: 2px solid var(--primary-color);
}

pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--gray-50);
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--gray-100);
}

.faq-question i {
  color: var(--primary-color);
  font-size: 1.125rem;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--gray-700);
  line-height: 1.7;
}

footer {
  background: var(--white);
  color: var(--gray-700);
  margin-top: 4rem;
  border-top: 1px solid var(--gray-200);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 200px 200px 150px;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
}

.footer-section.logo-main {
  grid-column: 1;
  display: flex;
  flex-direction: column;
}

.footer-section.logo-main .footer-logo {
  max-width: 140px;
  margin-bottom: 1rem;
}

.footer-section.services {
  grid-column: 2;
}

.footer-section.partners {
  grid-column: 3;
}

.footer-section.logo-partner {
  grid-column: 4;
  text-align: center;
}

.footer-section.logo-partner .footer-logo {
  max-width: 120px;
  margin-bottom: 1rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
  background: none;
  border: none;
  padding: 0;
}

.footer-section ul li a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 400;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-logo {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

.footer-description {
  color: var(--gray-500);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
}

.social-icons a:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
  text-align: center;
  color: var(--gray-500);
  background: var(--gray-50);
  font-size: 0.875rem;
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

/* Sobrescrevendo classes do Bootstrap que possam interferir */
.text-primary {
  color: var(--primary-color) !important;
}

/* ================================
   RESPONSIVIDADE
================================ */

@media (max-width: 1024px) {
  .main-container {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content {
    padding: 2rem;
  }

  .content-header h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  ol li::before {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-section.logo-main {
    grid-column: 1;
  }

  .footer-section.services {
    grid-column: 2;
  }

  .footer-section.partners {
    grid-column: 1;
  }

  .footer-section.logo-partner {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .content {
    padding: 1.5rem;
  }

  .content-header h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.375rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .accordion-button {
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
  }

  .accordion-body {
    padding: 1.5rem 1.25rem !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-section.logo-main,
  .footer-section.services,
  .footer-section.partners,
  .footer-section.logo-partner {
    grid-column: 1;
  }
}

/* ================================
   ANIMAÇÕES E EFEITOS EXTRAS
================================ */

/* Animação suave para transições */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

/* Efeito hover para links */
a {
  transition: all 0.3s ease;
}

/* Animação para o loading da página */
@keyframes loadingFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-section {
  animation: loadingFade 0.6s ease-in-out;
}


/* Wrapper do logo */
.sidebar-logo {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e9ecf0;
}

/* Ajuste fino do logo */
.sidebar-logo-img {
    max-width: 140px;      /* impede estourar a sidebar */
    width: 80%;            /* responsivo */
    height: auto;
    display: block;
    object-fit: contain;   /* mantém proporção perfeita */
    transition: opacity 0.2s ease;
}

/* Caso use animação de scan */
.subtle-scan {
    pointer-events: none;
}


.note-content a {
    color: #25D366; /* Cor verde do WhatsApp */
    text-decoration: none;
}

.note-content a:hover {
    text-decoration: underline;
}

.note-content .fa-whatsapp {
    color: #25D366;
    margin-right: 5px;
}