/* ============================
   BASE
============================ */

body.without-banner {
  font-family: 'Roboto', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* ============================
   HERO
============================ */

.hero {
  top: 50px;
  position: relative;
  color: #f9f9f9;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
}

/* ============================
   HISTÓRIA
============================ */

.historia-container {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}

.historia {
  padding: 30px;
  border-radius: 12px;
}

/* ============================
   PROJETOS
============================ */

.section-projetos {
  text-align: center;
  margin: 50px 0 20px 0;
  font-size: 2em;
  color: #222;
  padding: 0 1rem;
  word-wrap: break-word;
}

/* Container grid dos cards de projetos */
.projetos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  padding: 20px;
  justify-items: center;
}

/* Cada card de projeto */
.projeto {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 300px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, width 0.4s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.projeto:hover {
  width: 3500px; /* Parece um typo: 3500px é exagerado, talvez 350px? */
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.projeto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: height 0.4s ease;
}

.projeto:hover img {
  height: 260px;
}

.projeto p {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.projeto:hover p {
  opacity: 1;
  visibility: visible;
  height: auto;
  margin-top: 10px;
}

.projeto h1 {
  font-size: 60px;
  margin-bottom: 10px;
  color: inherit;
}

.projeto p {
  font-size: 0.95em;
  color: inherit;
}


/* ============================
   ECOSSISTEMA
============================ */

.ecosystem-section {
  /* background-color: #111; */
  /* background: linear-gradient(135deg, #1f2937, #4b5563); */
  color: #000000;
  padding: 60px 20px;
  text-align: center;
}

.ecosystem-section .section-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.ecosystem-section .section-desc {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #000000;
}

.ecosystem-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  margin-top: 2rem;
}

.eco-card {
  /* background: linear-gradient(135deg, #1f2937, #4b5563); */
  color: #000000;
  padding: 0.2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 transparent;
  text-align: center;
  cursor: pointer;
}

.eco-card:hover,
.eco-card.active {
  transform: translateY(-10px);
  /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5); */
}

.eco-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

.eco-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #000000;
}

.eco-card p {
  font-size: 0.95rem;
  color: #000000;
  margin: 0;
}


/* ============================
   RESPONSIVO
============================ */

@media (max-width: 1024px) {
  /* Projetos - 1 card por linha */
  .projetos {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
    padding: 10px !important;
    margin: 0 auto 30px auto !important;
    justify-items: stretch !important;
  }
  .hero {
    top: -50px;
  }
  .projeto {
    width: 100% !important;
    max-width: none !important;
  }

  /* Ecossistema - 1 card por linha */


  /* Hero ajustes */
  .hero {
    top: -50px !important;
  }
}

@media (max-width: 768px) {
  /* Projetos: 1 card por linha para touch */
  .projetos {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    max-width: 100% !important;
    padding: 10px !important;
    margin: 0 auto 30px auto !important;
    justify-items: stretch !important;
  }

  .projeto {
    width: 100% !important;
    max-width: none !important;
  }

  /* Ecossistema: 1 card por linha para touch */
  .ecosystem-grid {
    display: flex !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Ajuste para hero */
  .hero {
    top: -50px !important;
  }
}

@media (max-width: 450px) {
  .section-projetos {
    font-size: 1.5em;
    padding: 0 10px;
    text-align: center;
  }
  .hero {
    top: -100px !important;
  }
}

@media (max-width: 425px) {
  .projeto h3 {
    font-size: 1.1em;
  }
  .projeto p {
    font-size: 0.9em;
  }
  .hero {
    top: -100px !important;
  }
}

@media (max-width: 320px) {
  .projeto h3 {
    font-size: 1.1em;
  }
  .projeto p {
    font-size: 0.9em;
  }
  .hero {
    top: -100px !important;
  }
  .hero-text{
    font-size: 0.9em;
  }
}

        .projeto {
            width: 800px;
            height: 600px;
            border: 1px solid #ccc;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 1rem;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

 .projeto img {
    max-width: 50%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

        .projetos {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 2rem;
        }

/* ==========================
   Hero Section - Responsivo
   ========================== */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh; /* mais imponente */
    padding: 80px 20px;
    background: linear-gradient(135deg, #1f2937, #4b5563); /* tom escuro moderno */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #e5e7eb; /* texto secundário suave */
}

.hero .overlay-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb; /* azul vibrante */
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    margin-top: 20px; /* espaçamento uniforme */
}

.hero .overlay-button:hover {
    background-color: #1e40af;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* Ícone dentro do botão */
.hero .overlay-button i {
    font-size: 1.1rem;
}

/* Link destacado dentro do hero */
.hero .highlight-link {
    color: #fbbf24; /* amarelo vibrante */
    font-weight: 600;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.hero .highlight-link:hover {
    color: #f59e0b;
    text-decoration: none;
    transform: scale(1.05);
}

/* ==========================
   Responsividade
   ========================== */

/* Tablets */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    .hero .overlay-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Smartphones */
@media (max-width: 640px) {
    .hero {
        padding: 50px 15px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .hero .overlay-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
