:root {
    --azul: #1e90ff;
    --verde: #2ed573;
    --cinza: #2f3542;
    --fundo-claro: #f9f9f9;
    --card-bg: #fff;
    --text-color: #333;
  }
  
  /* Dark mode */
  body.dark-mode {
    --fundo-claro: #121212;
    --text-color: #ddd;
    --card-bg: #1e1e1e;
    --cinza: #333;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background: var(--fundo-claro);
    color: var(--text-color);
  }
  
  /* Header */
  .header {
    background: var(--cinza);
    color: white;
    position: sticky;
    top: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: start;
    z-index: 1000;
  }
  .header h1 {
    font-size: 1.5rem;
  }
  #dark-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: white;
    transition: transform 0.3s;
  }
  #dark-toggle:hover {
    transform: scale(1.2);
  }
  .header nav {
    display: flex;
    gap: 1rem;
  }
  .header nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
  }
  .header nav a:hover {
    text-decoration: underline;
  }
  
  /* Hero */
  .hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
  }
  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
  }
  .btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--azul);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
  }
  .btn:hover {
    background: var(--verde);
  }
  
  /* Sections */
  .section {
    padding: 3rem 2rem;
  }
  .dark {
    background: var(--card-bg);
  }
  .grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .card h3 {
    margin-bottom: 1rem;
  }
  .mapa-img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 90, 150, 0.1);
  }
  
  /* Dicas */
  .dicas-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
  }
  .dica {
    background: var(--card-bg);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }
  .dica img {
    width: 64px;
    height: 64px;
  }
  .dica-text h4 {
    color: var(--azul);
    margin-bottom: 0.25rem;
  }
  .dica-text p {
    font-size: 0.9rem;
    color: var(--text-color);
  }
  .dica:hover {
    transform: translateY(-5px);
  }
  
  /* Calculadora */
  .calculator {
    background: var(--card-bg);
    max-width: 400px;
    margin: 1rem auto;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .calc-field {
    margin-bottom: 1rem;
  }
  .calc-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 0.5rem;
  }
  .calculator input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
  }
  .calculator button {
    margin-top: 1rem;
    width: 100%;
  }
  
  /* Quiz */
  .quiz-progress {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  .progress-bar {
    width: 300px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin: 0.5rem auto;
  }
  
  .progress-fill {
    height: 100%;
    background: var(--verde);
    width: 0;
    transition: width 0.5s ease;
  }
  
  .question {
    position: relative;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    min-height: 180px; /* Espaço para mais opções */
    margin: 1rem 0;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
  }
  
  .question.hidden {
    transform: translateX(-50px);
    opacity: 0;
    position: absolute;
  }
  
  .question h3 {
    margin-bottom: 1rem;
    color: var(--azul);
  }
  
  #restart-quiz {
    margin: 1rem auto;
    display: block;
  }
  
  /* Estados das respostas */
  .quiz-btn.correct {
    background: var(--verde);
    border: 2px solid #2ed573;
  }
  
  .quiz-btn.wrong {
    background: #ff4757;
    border: 2px solid #ff6b81;
  }
  
  .quiz-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
  }
  
  /* Impacto */
  .impacto-cards {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 2rem 0;
  }
  .impacto-card {
    background: var(--card-bg);
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }
  .impacto-card img {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
  }
  .impacto-card h4 {
    margin: 0.5rem 0;
    color: var(--azul);
    font-size: 1.1rem;
  }
  .impacto-card p {
    font-size: 0.9rem;
    color: var(--text-color);
  }
  .impacto-card:hover {
    transform: translateY(-5px);
  }
  
  /* Footer */
  .footer {
    background: var(--card-bg);
    padding: 2rem;
  }
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }
  .centraliza{
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  
  .footer-nav a {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
  }
  .footer-nav a:hover {
    text-decoration: underline;
  }
  .footer .social img {
    width: 24px;
    margin-right: 0.5rem;
  }
  
  /* Legenda Mapa */
  .legenda-mapa {
    margin-top: 1rem;
    font-size: 0.9rem;
  }
  .legenda-mapa span {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 0.5rem;
  }
  .cor-alto { background: #8f0f19; }
  .cor-medio { background: #ffa502; }
  .cor-baixo { background: #fff990; }
  
  /* Responsivo */
  @media (max-width: 768px) {
    .infografico-content { flex-direction: column; }
    .header nav { flex-direction: column; }
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .feedback {
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 1rem;
    animation: fadeIn 0.5s;
  }

  /* Menu styles */
.side-menu {
  background-color: #333;
  color: white;
  position: fixed;
  top: 0;
  left: -260px;
  width: 260px;
  height: 100%;
  padding: 15px 25px;
  transition: 0.3s;
  z-index: 1000;
  overflow-y: auto;
}

.side-menu.active {
  left: 0;
}

.side-menu .item {
  display: block;
  color: #fff;
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: 0.3s;
}

.side-menu .item:hover {
  background-color: white;
  color: #333;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.page-wrapper {
  margin-left: 0;
  transition: 0.3s;
}

.page-wrapper.menu-active {
  margin-left: 260px;
}

/* Botão de fechar */
.menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 10px;
}

.close-menu {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
  transition: 0.3s;
}

.close-menu:hover {
  color: #ff4757;
  transform: scale(1.2);
}

/* Ajuste de posicionamento */
.side-menu {
  display: flex;
  flex-direction: column;
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--azul);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.back-to-top.show {
  opacity: 0.8;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Dark mode botão */
body.dark-mode .back-to-top {
  background: var(--verde);
  color: var(--cinza);
}
