/* Scroll suave */
html {
  scroll-behavior: smooth;
}

/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* Container padrão */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header fixo */
.sticky-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sticky-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  height: 105px;
  max-height: 120px;
}

/* Menu */
nav ul {
  display: flex;
  list-style: none;
  gap: 1.4rem;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Menu hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Hero principal */
.hero {
  text-align: center;
  padding: 2rem 1rem 4rem;
  background-color: #f9f9f9;
  margin-top: -20px;
}

.hero img {
  max-width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #555;
}

/* Hero 2 */
.hero2 {
  background-image: url('hero2_autarkia.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #fff;
  text-align: center;
}

.hero2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
}

/* Secção SOBRE */
.sobre-bloco {
  background-color: #ffffff;
  padding: 4rem 1rem;
}

.sobre-cols {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 1rem;
}

#sobre .col-texto {
  flex: 1;
  font-size: 1.2rem;
  text-align: justify;
  line-height: 1.6;
}

.col-imagem {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.col-imagem img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Bloco funcionalidades/impacto/futuro */
.bloco-cinza {
  background-color: #f2f2f2;
  padding: 4rem 1rem;
}

.grid-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.bloco-item {
  flex: 1 1 calc(33.333% - 1.5rem);
  background-color: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.bloco-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.bloco-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.bloco-item ul {
  list-style: none;
  padding: 0;
}

.bloco-item ul li {
  margin: 0.5rem 0;
}

/* Call to Action */
.cta-branca {
  background-color: #ffffff;
  padding: 5rem 1rem;
  text-align: center;
}

.cta-branca h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.cta-branca p {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: #444;
}

.botao-verde {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #007B55;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.botao-verde:hover {
  background-color: #005c40;
}

/* Formulário com imagem lateral */
.contato-bloco {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
}

.contato-cols {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.contato-cols .col-texto,
.contato-cols .col-imagem {
  flex: 1;
  min-width: 0;
}

.contato-cols .col-imagem img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.form-style {
  max-width: 600px;
  margin: 0 auto;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.form-style button {
  padding: 0.75rem 1.5rem;
  background-color: #007B55;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

.form-style button:hover {
  background-color: #005c40;
}

/* Footer */
footer {
  background-color: #333333;
  color: #ffffff;
  padding: 2rem 1rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer h4 {
  margin-bottom: 1rem;
}

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

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: #ffffff;
  text-decoration: none;
}

.footer ul li a:hover {
  text-decoration: underline;
}

/* Responsivo */
@media (max-width: 768px) {
  .sobre-cols,
  .contato-cols {
    flex-direction: column;
    text-align: center;
  }

  .col-texto,
  .col-imagem {
    flex: 1 1 100%;
  }

  .grid-3 {
    flex-direction: column;
  }

  .bloco-item {
    flex: 1 1 100%;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
    display: none;
    position: absolute;
    top: 70px;
    right: 1rem;
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  nav ul.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
  }

  .logo {
    height: 80px;
  }
}