/* novo/frontend/assets/css/index.css */

/* ================= HERO ================= */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* impede overlay de ultrapassar */
}

.hero-overlay {
  background-color: rgba(34, 35, 38, 0.5);
  padding: 2rem;
  text-align: center;
  color: #fff;
  border-radius: 1rem;
  max-width: 90%;
  box-sizing: border-box;
}

.hero-overlay h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero-overlay p {
  margin-bottom: 1rem;
}

.hero-overlay .botao {
  display: inline-flex;
  align-items: center; /* alinha verticalmente ícone + texto */
  gap: 0.5rem; /* espaço entre ícone e texto */
  background-color: #2563eb;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: auto;
  align-self: center;
  font-size: 1rem;
}

.hero-overlay .botao:hover {
  background-color: #1d2a78;
}

.hero-overlay .botao i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2; /* opcional para afinar/engrossar o ícone */
}

/* Responsividade para dispositivos móveis */
@media (max-width: 600px) {
  .hero {
    height: 220px;
  }

  .hero-overlay {
  padding: 0.5rem;
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.75rem;
  box-sizing: border-box;
  }

.hero-overlay h1 {
  font-size: 1.2rem;
    color: #fff;
}

.hero-overlay p {
  font-size: 0.8rem;
}

.hero-overlay .botao {
  display: inline-flex;
  align-items: center; /* alinha verticalmente ícone + texto */
  gap: 0.5rem; /* espaço entre ícone e texto */
  background-color: #2563eb;
  color: #fff;
  padding: 0.5rem 0.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: auto;
  align-self: center;
  font-size: 0.7rem;
}

.hero-overlay .botao:hover {
  background-color: #1d2a78;
}
.hero-overlay .botao i {
  width: 18px;
  height: 18px;
  stroke-width: 2.2; /* opcional para afinar/engrossar o ícone */
}
}
/* ================= SOBRE ================= */
.sobre-home {
  background-color: #fff;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 30px;
}

@media (min-width: 768px) {
  .sobre-home {
    grid-template-columns: 1fr 1fr;
  }
}

.sobre-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1rem;
}

.sobre-titulo {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.sobre-paragrafo {
  color: #374151;
  margin-bottom: 1rem;
}

.sobre-lista {
  list-style: none;
  padding-left: 0;
  color: #1f2937;
}

.sobre-lista li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icone-azul { color: #3b82f6; }
.icone-verde { color: #10b981; }
.icone-vermelho { color: #ef4444; }

.botao-sobre {
  display: inline-flex;
  background-color: #2563eb;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: auto;
  align-self: center;
}

.botao-sobre:hover {
  background-color: #1d4ed8;
}

.sobre-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.sobre-logo img {
  max-width: 100%;
  width: 16rem;
}

/* ================= CARROSSEL ================= */
.carrossel {
  padding: 2rem 1rem;
}

.carrossel h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.carrossel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.carrossel-container {
  display: flex;
  gap: 1rem;
  overflow-x: hidden; /* Removida a barra visível */
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
}

.carrossel-container > .ponto-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 200px;
}

/* Responsividade ajustada */
@media (max-width: 768px) {
  .carrossel-container > .ponto-card {
    width: 45vw;
  }
}

@media (max-width: 480px) {
  .carrossel-container > .ponto-card {
    width: 80vw;
  }
}

.carrossel-container::-webkit-scrollbar {
  height: 6px;
}

.carrossel-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.carrossel-btn {
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carrossel-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.carrossel-btn.prev {
  left: -0.5rem;
}

.carrossel-btn.next {
  right: -0.5rem;
}

/* ================= PONTO CARD ================= */
.ponto-card {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 1rem;
  overflow: hidden;
  background-color: #f8f8f8;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.ponto-card:hover {
  transform: translateY(-4px);
}

.ponto-card picture img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.ponto-info {
  padding: 0.5rem 1rem;
}

.ponto-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin: 0;
}

/* ================= DESTAQUES ================= */
.destaques {
  padding: 2rem 1rem;
  background: #f9f9f9;
  max-width: 1080px;
  margin: 0 auto;
}

.destaques h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.destaques-bloco {
  margin-bottom: 2.5rem;
}

.destaques-bloco h3 {
  font-size: 1.2rem;
  color: #444;
  text-align: center;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.grid-destaques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 0 1rem;
}

.card-destaque {
  background: #fff;
  padding: 1rem;
  border-radius: 1rem;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, background-color 0.2s;
}

.card-destaque:hover {
  background-color: #eef6ff;
  transform: translateY(-2px);
}

.card-destaque .titulo {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.card-destaque .contador {
  color: #777;
  font-size: 0.85rem;
}

/* ================= BUSCA ================= */
.busca {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #f0f0f0;
}

.busca h2 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

#busca {
  width: 90%;
  max-width: 500px;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 1rem;
  font-size: 1rem;
}

#sugestoes {
  margin-top: 1rem;
}

#resultados {
  background: #fff;
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.resultado-item {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.resultado-item a {
  text-decoration: none;
  color: #333;
  display: block;
}

.resultado-item:hover {
  background-color: #f2f2f2;
}
