:root {
  --primary: #059669; /* Verde Nexa */
  --primary-hover: #047857;
  --bg-dark: #0f172a;
  --bg-card: #ffffff;
  --text-main: #333333;
  --text-muted: #666666;
  --font-family: 'Sora', sans-serif;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Image fixo */
.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url('imgs/bg-portal.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Escurecendo a imagem de fundo */
  z-index: -1;
}

/* Container de conteúdo que rola por cima do fundo */
.content-wrapper {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.header {
  padding: 30px;
  text-align: center;
}

.header .logo {
  max-height: 150px;
  width: auto;
}

/* Título Central */
.title-container {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
  padding: 0 20px;
}

.title-container h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.title-container p {
  font-size: 1.2rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto;
}

/* Faixa Central e Cards */
.center-band-wrapper {
  position: relative;
  width: 100%;
  padding: 50px 0;
  flex: 1; /* Preenche o resto do espaço vazio */
  display: flex;
  align-items: center;
}

.color-band {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  height: 250px;
  background-color: var(--primary); /* Verde Nexa para manter a identidade */
  z-index: 1;
}

/* Grid de Cards */
.cards-grid {
  position: relative;
  z-index: 2; /* Fica por cima da faixa */
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.card {
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 380px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.card-img {
  width: 100%;
  height: 220px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

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

.card-content {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-content h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.card-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 30px;
  flex: 1;
}

/* Botão do card */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
  letter-spacing: 1px;
}

.btn:hover {
  background-color: var(--primary);
  color: #fff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}

/* Responsividade */
@media (max-width: 800px) {
  .cards-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  .color-band {
    height: 100%; /* No mobile a faixa ocupa tudo por trás */
    opacity: 0.8;
  }
  
  .title-container h1 {
    font-size: 2.2rem;
  }
}
