:root {
  --background-color: #ffffff;
  --accent: #ff4373;
  --text-color: #111;
  --icon-whatsapp: #25d366;
  --icon-instagram: #e1306c;
  --icon-facebook: #3b5998;
  --icon-gmail: #D44638;
  --text-color-botton: #ffffff;
  --text-color-footer: #ffffff;
  --background-color-footer: #111;
}

:dark {
    --background-color: #111;
    --accent: #ff4373;
    --text-color: #ffffff;
    --icon-whatsapp: #25d366;
    --icon-instagram: #e1306c;
    --icon-facebook: #3b5998;
    --icon-gmail: #D44638;
    --text-color-botton: #111var(--text-color-botton);
    --text-color-footer: #111;
    --background-color-footer: #ffffff;
}

/* ---------- NAV / LOGO ---------- */

/* Barra fixa do topo */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  z-index: 1000;
  padding: 10px 20px;
  transition: all 0.3s ease-in-out;
}

/* Quando rolar, diminui o tamanho */
.top-bar.shrink {
  padding: 5px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

body {
  padding-top: 80px; /* altura da barra */
}

.nav {
  display: flex;
  justify-content: center;
  font-size: 20px;
  align-items: center;
  background-color: var(--background-color);
  padding: 10px 0;
  position: relative;
  z-index: 10;
  gap: 20px;
  margin-top: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo h1 {
  margin-bottom: 0;
  font-weight: 300;
}

.titulo-bolsa {
  font-family: sans-serif;
  text-align: center;
  padding: 10px;
}

#galeria .lead {
  margin-bottom: 2.5rem;
}

.titulo-bolsa {
  margin-top: 0;
}

#galeria .text-center {
  margin-bottom: 3rem;
}

/* ---------- CARROSSEL ---------- */
.page-counter {
  position: absolute;
  top: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 14px;
  font-family: Arial, sans-serif;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 15;
}

.carousels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #111;
  border-radius: 8px;
}

.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* prev/next */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 30px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  z-index: 10;
}

.prev:hover, .next:hover {
  transition: 0.8s;
  background: rgba(0,0,0,0.8);
}

.prev { left: 10px; width: 60px; }
.next { right: 10px; width: 60px; }

/* dots */
.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 20;
}

.dot {
  height: 10px;
  width: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active { background: white; }

/* ---------- RODAPÉ ---------- */
.footer {
  background-color: var(--background-color-footer);
  color: var(--text-color-footer);
}

.footer h4 { font-weight: bold; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icon {
  font-size: 1.8rem;
  color: white;
  transition: transform 0.3s, color 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  color: var(--icon-whatsapp);
}

.social-icon:nth-child(2):hover {
  color: var(--icon-instagram);
}

.social-icon.facebook:hover {
  color: var(--icon-facebook);
}

.btn-img-instagram {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background-color: var(--background-color-footer);
  border: #ffffff 1px solid;
  color: var(--text-color-botton);;
  text-decoration: none;
  border-radius: 5px;
}

.btn-img-instagram:hover {
  background-color: var(--icon-instagram);
  color: var(--text-color-botton);
  transition: 0.8s ease-in-out;
  transform: scale(1.05);
}

.btn-img-whatsapp {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background-color: var(--background-color-footer);
  border: #ffffff 1px solid;
  color: var(--text-color-botton);;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-img-whatsapp:hover {
  background-color: var(--icon-whatsapp);
  color: var(--text-color-botton);
  transition: 0.8s ease-in-out;
  transform: scale(1.05);
}

.btn-img-facebook {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 15px;
  background-color: var(--background-color-footer);
  border: #ffffff 1px solid;
  color: var(--text-color-botton);;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s, transform 0.3s;
}

.btn-img-facebook:hover {
  background-color: var(--icon-facebook);
  color: var(--text-color-botton);
  transition: 0.8s ease-in-out;
  transform: scale(1.05);
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Responsividade */
@media (max-width: 992px) {
  .carousels-grid {
    grid-template-columns: repeat(2, 1fr); /* tablet: 2 colunas */
  }
}

@media (max-width: 576px) {
  .carousels-grid {
    grid-template-columns: 1fr; /* celular: 1 coluna */
  }

  .nav {
    flex-direction: column;
    gap: 10px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .prev, .next {
    width: 40px;
    font-size: 20px;
  }

  .slide img {
  width: 100%;
  height: auto; /* Evita distorcer */
}
}
/* --- Responsivo geral --- */
@media (max-width: 768px) {
  .top-bar nav {
    flex-direction: column;
    align-items: center;
  }

  /* Menu horizontal no celular */
  .nav {
    flex-direction: row;       /* Itens em linha */
    flex-wrap: wrap;           /* Quebra se não couber */
    gap: 15px;
    font-size: 16px;
    margin-top: 0px;
    justify-content: center;
  }

  .nav-link {
    padding: 5px 8px;
  }

  .logo {
    flex-direction: column;
    text-align: center;
  }

  .logo span {
    font-size: 0.85rem;
  }
}


/* --- Para celulares muito pequenos (até 480px) --- */
@media (max-width: 480px) {
  .logo h1 {
    font-size: 1.2rem;
  }
  
  .lead {
    font-size: 0.9rem;
  }
  
  .slide img {
    height: auto;
  }
}
