

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text, #333);
    background-color: var(--color-bg, #ecf0ea); /* cinza claro */
}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh; /* corpo inteiro */
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/*-------IMAGEM DE FUNDO DO INICIO----*/
.imagem-borrada {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('imagem/trabalho-voluntario-onde-fazer.jpg');
  background-color: rgba(0, 0, 0, 0.4);
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  filter: blur(4px);
  opacity: 0.4;
  z-index: 0;
}
.conteudo {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}
.conteudo h1,
.conteudo p,
.conteudo a {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}
/*==========================
IMAGEM DE FUNDO DOS PROJETOS
===========================*/
.hero-projetos {
  position: relative;
  width: 100vw;
  height: 100vh; /* ocupa a tela inteira */
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-projetos .imagem-borrada {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('imagem/voluntario.jpg');
  background-color: rgba(0, 0, 0, 0.4);
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  filter: blur(4px);
  opacity: 0.4;
  border: 8px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  z-index: 0;
  border-radius: 12px;
}

.hero-projetos .conteudo {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-projetos h1,
.hero-projetos p,
.hero-projetos a {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/*--------IMAGEM CADASTRO--------*/
.hero-cadastro {
  position: relative;
  width: 100vw;
  height: 100vh; /* ocupa a tela inteira */
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-cadastro .imagem-borrada {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('imagem/volun.png');
  background-color: rgba(0, 0, 0, 0.4);
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  filter: blur(4px);
  opacity: 0.4;
  border: 8px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  z-index: 0;
  border-radius: 12px;
}

.hero-cadastro .conteudo {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
}

.hero-cadastro h1,
.hero-cadastro p,
.hero-cadastro a {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}


/* Buttons moved to `css/components.css` (.btn, .btn-primary, .btn-secondary).
     Keep any site-specific overrides here if needed. */

/* Revert CTA buttons in .cta-buttons to the previous site-specific style */
.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  flex: 0 1 auto;
  min-width: 180px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin: 0 0.5rem;
  position: relative;
}
.cta-buttons .btn-primary{ background: #2a3d35; color: white; }
.cta-buttons .btn-secondary{ background: #181f1c; color: white; }
.cta-buttons .btn-primary:hover, .cta-buttons .btn-secondary:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0, 0, 0.3);
}
.cta-buttons .btn-primary::after, .cta-buttons .btn-secondary::after{
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255, 0.15);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}
.cta-buttons .btn-primary:hover::after, .cta-buttons .btn-secondary:hover::after{
  top:-20px;
  left: -20px;
}

/* Restore hero CTAs to previous visual style as well */
.hero .btn-primary,
.hero .btn-secondary {
  flex: 0 1 auto;
  min-width: 180px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin: 0 0.5rem;
  position: relative;
}
.hero .btn-primary{ background: #2a3d35; color: white; }
.hero .btn-secondary{ background: #181f1c; color: white; }
.hero .btn-primary:hover, .hero .btn-secondary:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0, 0, 0.3);
}
.hero .btn-primary::after, .hero .btn-secondary::after{
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255, 0.15);
    transform: rotate(45deg);
    transition: all 0.5s ease;
}
.hero .btn-primary:hover::after, .hero .btn-secondary:hover::after{
    top:-20px;
    left: -20px;
}

/* Center CTA content: heading + paragraph centered, buttons remain below */
.cta {
  padding: var(--space-4, 32px) 0;
}
.cta-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2, 16px);
}
.cta-content h2 {
  margin-bottom: 0;
}
.cta-content p {
  margin-top: 0;
  margin-bottom: 0.5rem;
  max-width: 760px;
}
.cta-buttons { margin-top: var(--space-3, 24px); }

/* ==========================
   Header e Navegação
   ========================== */
header {
    background: linear-gradient(135deg, var(--color-header-start, #b7bbb5) 0%, var(--color-header-end, #467060) 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
}


nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}


nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    font-weight: 500;
}


nav a:hover,
nav a.active {
    opacity: 1;
    font-weight: bold;
}


nav a {
    opacity: 0.8;
}



.hero {
    background: linear-gradient(rgba(19, 22, 19, 0.8), rgba(67, 104, 85, 0.8)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f0f0" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}


.hero-page {
    background: linear-gradient(135deg, #66e1ea 0%, #764ba2 100%);
    padding: 8rem 2rem 4rem;
    text-align: center;
    color: white;
    margin-top: 70px;
}


.hero-content, .signup-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}


.hero h1,
.hero-page h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}


.hero p,
.hero-page p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 600px;
}

/* Button styles moved to `css/components.css`. Any hover/focus/active states
   are defined there to keep components centralized. */

/* Form styles moved to `css/components.css` (.form-control, .form-group, fieldset,
   validation helpers). Keep site-specific form overrides here if necessary. */

footer{
    text-align: center;
    padding: 2rem;
    background: var(--color-footer-bg, rgb(190, 192, 190));
    margin-top: -3px;
}

/* Volunteer table styles moved to `css/components.css` (#tabelaVoluntarios rules).
   Keep site-specific overrides here if needed. */

/* Center "Como Funciona" and "Para Que Serve" sections */
.about {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-4, 32px) var(--space-3, 24px);
    text-align: center;
}

.about h2 {
    margin-bottom: var(--space-2, 16px);
    font-size: 2rem;
    color: var(--color-text-dark, #2a3d35);
}

.about p {
    margin-bottom: var(--space-4, 32px);
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text, #333);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.about .impact-cards {
    margin-top: var(--space-4, 32px);
}

/* Container principal do formulário */
.signup-section {
  max-width: 720px;
  margin: 4rem auto;
  padding: 3rem 2rem;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  font-family: 'Segoe UI', sans-serif;
}

/* Título do formulário */
.signup-section h2 {
  text-align: center;
  font-size: 2.2rem;
  color: #2b5545;
  margin-bottom: 2.5rem;
}

/* Agrupamento de campos */
form fieldset


/* Container do formulário */
.signup-section {
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 10px;
  font-family: 'Segoe UI', sans-serif;
}

/* Título */
.signup-section h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #2b5545;
  margin-bottom: 2rem;
}

/* Agrupamento de campos */
form fieldset {
  border: none;
  margin-bottom: 2rem;
}

form legend {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2b5545;
}

/* Campos */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #ecf0ea;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2b5545;
  outline: none;
  background-color: #fff;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Botão */
.btn-primary {
  background-color: #2e7d32;
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  margin: 0 auto;
}
 

/* ===== TABELA DE VOLUNTÁRIOS ===== */
#tabelaVoluntarios {
  max-width: 720px;
  margin: 3rem auto;
  padding: 0 1rem;
  text-align: center;
  overflow-x: auto;
}

.tabela-voluntarios {
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.tabela-voluntarios th,
.tabela-voluntarios td {
  padding: 1rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}

.tabela-voluntarios th {
  background-color: #ffffff;
  color: #2e7d32;
  font-weight: bold;
}

.tabela-voluntarios tr:hover {
  background-color: #f1f8e9;
}

.voluntarios-lista button {
  margin-top: 1.5rem;
  background-color: #d32f2f;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.voluntarios-lista button:hover {
  background-color: #b71c1c;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 600px) {
  .signup-section {
    padding: 1.5rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.95rem;
  }

  .btn-primary {
    width: 100%;
  }

  .tabela-voluntarios th,
  .tabela-voluntarios td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
}