/* Reset e base */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(180deg, #fad49e, #e48d1b);
  color: #333;
  margin: 0;
}

h1, h2, h3 {
  font-weight: 700;
  color: #343a40;
}

p, li {
  font-weight: 400;
  color: #555;
}

/* Header */
header .logo {
  height: 50px;
}

/* Hero */
.hero {
  height: 100vh;
  background: url('images/bg-hero.jpg') no-repeat center center/cover;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  padding-top: 60px;
}

/* Seções */
section {
  padding: 60px 0;
}

.container h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.list-group-item {
  background: transparent;
  border: none;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background: #343a40;
  color: white;
}

footer .social img {
  transition: transform 0.3s ease;
}

footer .social img:hover {
  transform: scale(1.2);
}

/* Animações */
[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Responsivo */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .container h2 {
    font-size: 1.5rem;
  }
}

/* Modal imagem */
.modal-content img {
  width: 100%;
  object-fit: contain;
}

/* Galeria e Espaço */
.custom-carousel .carousel-item {
  transition: opacity 1s ease, transform 1s ease;
}

.custom-carousel .carousel-item.active .transition-image {
  animation: zoomFade 3s ease forwards;
}

@keyframes zoomFade {
  0% {
    transform: scale(1.05);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Depoimentos */
.depoimento bg-white rounded shadow-sm p-3 {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* Oficinas */
.oficinas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.oficina-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s;
}
.oficina-item:hover {
  transform: translateY(-5px);
}
.oficina-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.oficina-item .content {
  padding: 15px;
}

/* === GALERIA - Ajustada para seu JS === */

.CarouselNossoEspaco {
  width: 70%;
  max-width: 900px;
  height: 60vh;
  max-height: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Área da imagem principal */
.CarouselNossoEspaco .main-image {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.CarouselNossoEspaco .main-image img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.CarouselNossoEspaco .main-image img.active {
  opacity: 1;
  pointer-events: auto;
}

/* Miniaturas na base */
.CarouselNossoEspaco .thumbnails {
  height: 15vh;
  max-height: 100px;
  background: #fafafa;
  display: flex;
  overflow-x: auto;
  padding: 5px 10px;
  scrollbar-width: thin;
  scrollbar-color: #e48d1b transparent;
}

.CarouselNossoEspaco .thumbnails::-webkit-scrollbar {
  height: 8px;
}

.CarouselNossoEspaco .thumbnails::-webkit-scrollbar-thumb {
  background-color: #e48d1b;
  border-radius: 10px;
}

.CarouselNossoEspaco .thumb-track {
  display: flex;
  gap: 10px;
}

.CarouselNossoEspaco .thumbnails img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
  border: 3px solid transparent;
}

.CarouselNossoEspaco .thumbnails img:hover {
  transform: scale(1.1);
}

.CarouselNossoEspaco .thumbnails img.active-thumb {
  border-color: #e48d1b;
  box-shadow: 0 0 12px #e48d1b;
}

/* Responsivo */
@media (max-width: 600px) {
  .CarouselNossoEspaco {
    width: 90vw;
    height: 50vh;
  }
  .CarouselNossoEspaco .thumbnails {
    height: 12vh;
    max-height: 80px;
    padding: 3px 5px;
  }
  .CarouselNossoEspaco .thumbnails img {
    width: 60px;
    height: 60px;
    margin-right: 8px;
  }
}

/* Scroll top */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #f59f00;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 1000;
  display: none;
}

.scroll-top svg {
  width: 24px;
  height: 24px;
}
