/* Container principal */
.sobre-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  color: #a0d9cc;
  font-family: Arial, sans-serif;
}

/* Header */
header {
  background: #000000;
  padding: 10px 20px;
}
.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 40px;
}
nav a {
  color: #a0d9cc;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
}
nav a.active, nav a:hover {
  color: #00ffbf;
}

/* Título */
h1 {
  color: #00ffbf;
  margin-bottom: 10px;
}

/* Imagens swiper */
.swiper-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffbf55;
  transition: transform 0.3s ease;
}
.swiper-slide img:hover {
  transform: scale(1.05);
}

.funcionalidades-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 40px 30px;
  margin-top: 50px;
  padding: 0 40px;
  justify-items: center; /* centraliza cada box */
}

.func-box {
  background: #030303;
  border-radius: 18px;
  padding: 16px 20px;
  width: 140px;  /* tamanho fixo para uniformidade */
  height: 120px;
  box-shadow: 0 4px 15px rgba(0, 255, 191, 0.2);
  color: #00ffbf;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: default;
  user-select: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.func-box h3 {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

.func-box p {
  font-weight: 400;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
  color: #a0f4de;
}

.func-box:hover {
  box-shadow: 0 6px 25px rgba(0, 255, 191, 0.6);
  transform: translateY(-6px);
}


/* Imagens do swiper maiores, inteiras e com boa perspectiva */
.swiper-slide img {
  width: 100%;
  max-height: 400px;  /* altura maior para perspectiva */
  object-fit: contain; /* mostra a imagem inteira, sem cortes */
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 0 18px #00ffbfaa;
  transition: transform 0.3s ease;
}
.swiper-slide img:hover {
  transform: scale(1.07);
}

/* Responsividade para telas menores */
@media (max-width: 900px) {
  .funcionalidades-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .func-box {
    max-width: 100%;
    min-height: 80px;
    font-size: 1rem;
  }
  .swiper-slide img {
    max-height: 200px;
  }
}
.menu-toggle {
  display: none; /* no desktop */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 2001;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    flex-direction: column;
    background-color: #111;
    position: fixed;
    top: 0;
    right: -250px; /* hidden off-screen */
    width: 250px;
    height: 100vh;
    padding-top: 60px;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 8px rgba(0,0,0,0.7);
    z-index: 2000;
  }

  nav a {
    padding: 15px 20px;
    border-bottom: 1px solid #222;
    color: white;
    text-decoration: none;
  }

  nav.show {
    right: 0; /* menu visible */
  }
}

@media (max-width: 768px) {
  .funcionalidades-grid {
    grid-template-columns: 1fr !important; /* força uma coluna só */
    gap: 20px !important;
    padding: 0 20px !important; /* diminuir o padding lateral */
    justify-items: stretch; /* para as caixas ocuparem a largura total */
  }

  .func-box {
    width: 100% !important; /* largura total dentro do grid */
    max-width: 100% !important;
    min-height: auto; /* deixa a altura automática */
  }
}
