/* Estilos para Top Banner e Banners Rotativos */
.top-banner {
  width: 100%;
  background-color: var(--primary-color);
  padding: 0.5rem 0;
  position: relative;
  overflow: hidden;
  z-index: 1001;
}

.top-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
  padding: 0 1rem;
}

.top-banner a {
  color: var(--text-light);
  text-decoration: underline;
  margin-left: 0.5rem;
  font-weight: 600;
}

.top-banner a:hover {
  color: var(--accent-color);
}

/* Banners Rotativos */
.square-banners {
  padding: 3rem 0;
  background-color: var(--light-color);
}

.banners-title {
  text-align: center;
  margin-bottom: 2rem;
}

.banners-title h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.banners-title p {
  color: var(--gray-color);
  max-width: 700px;
  margin: 0 auto;
}

.banners-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.banners-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem;
}

.square-banner {
  width: 280px;
  height: 280px;
  background-color: var(--gray-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.square-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-dark);
}

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

.square-banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--text-light);
}

.square-banner-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.square-banner-content p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.square-banner-content .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.banner-nav {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  gap: 0.5rem;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--gray-color);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.banner-arrow:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.banner-prev {
  left: 10px;
}

.banner-next {
  right: 10px;
}

/* Responsividade para banners */
@media (max-width: 992px) {
  .banner-slide {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .square-banner {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .banner-slide {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .square-banner {
    width: 100%;
    max-width: 320px;
    height: 320px;
  }
  
  .banner-arrow {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 576px) {
  .top-banner-content {
    font-size: 0.9rem;
  }
  
  .square-banner {
    height: 280px;
  }
  
  .banners-title h2 {
    font-size: 1.8rem;
  }
}
