:root {
  --primary: #d32f2f;
  --primary-dark: #b71c1c;
  --bg: #f9f9f9;
  --text: #333;
}

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

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Cabeçalho */
.topo {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 20px;
  position: relative;
}

.texto-central {
  text-align: center;
}

.texto-central h1 {
  margin: 0;
  font-size: 1.8rem;
}

.texto-central p {
  margin: 4px 0 0;
  font-size: 1rem;
  opacity: 0.9;
}

.logo-esquerda {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 160px;
  height: auto;
}

/* Navegação */
nav {
  background: #fff;
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

nav a {
  margin: 0 12px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
}

nav a:hover { color: var(--primary-dark); }

/* Hero/banner */
.hero {
  background: url('uploads/fotologin.jpeg') center/cover no-repeat;
  min-height: calc(100vh - 120px); /* ocupa toda a tela menos cabeçalho/nav */
  position: relative;
}

.hero-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
}

.hero-text h2 {
  margin: 0 0 10px;
  font-size: 2rem;
}

.hero-text p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* Botões */
.botao {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background .2s ease;
}

.botao:hover { background-color: var(--primary-dark); }

/* Conteúdo principal */
main {
  padding: 40px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.section {
  margin-bottom: 40px;
  text-align: center;
}

.section h2, .section h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
}

/* Lista de projetos */
.lista-projetos {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.lista-projetos li {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Formulário de contato */
form {
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

form label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
}

form input, form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font: inherit;
}

form textarea { resize: vertical; min-height: 120px; }

form input[type="submit"] {
  margin-top: 12px;
  cursor: pointer;
}

/* Rodapé */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Responsivo */
@media (max-width: 600px) {
  .texto-central h1 { font-size: 1.6rem; }
  .hero-text h2 { font-size: 1.4rem; }
  .hero-text p { font-size: 1rem; }
  .botao { display: block; width: 100%; margin-top: 10px; text-align: center; }
  main { padding: 20px; }
}
