/* ============================================================
   SLIDESHOW UNIFICADO - Core + Fade + Horizontal + Temas
   Consolidado de: core, fade, horizontal, theme-topo,
   theme-depoimentos, theme-segmentos, theme-clientes, responsive
   ============================================================ */

/* ============================================================
   CORE - Estilos Base Compartilhados
   ============================================================ */

.slideshow-container {
  position: relative;
  overflow: visible;
  width: 100%;
  min-height: 300px;
}

.container-slide {
  position: relative;
  padding-bottom: 30px;
}

.slideshow-container .prev,
.slideshow-container .next {
  z-index: 99;
  position: absolute;
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: var(--primary-color);
  background-color: rgba(255, 255, 255, 0.5);
  transition: 0.3s;
}

.slideshow-container .prev { left: 0; }
.slideshow-container .next { right: 0; }

.slideshow-container .prev:hover,
.slideshow-container .next:hover {
  background-color: var(--primary-color);
  color: #fff;
}

.navegacao {
  position: relative;
  margin-top: 20px;
  text-align: center;
  z-index: 10;
}

.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: rgba(0,0,0,0.3);
  border-radius: 50%;
  display: inline-block;
  transition: 0.3s;
}

.dot.ativa, .dot:hover {
  background-color: var(--primary-color);
}

.mySlides {
  display: block;
  width: 100%;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.mySlides.ativa {
  opacity: 1;
  position: relative;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 1;
}

.slide-item {
}

/* ============================================================
   FADE - Modo de Transição Fade
   ============================================================ */

.slideshow-mode-fade .mySlides {
  display: block;
}

.legenda-slide {
  color: #fff;
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
}

.legenda-slide h2 {
  color: #fff;
  text-align: left;
  max-width: 55%;
}

.legenda-slide p {
  color: #fff;
  text-align: left;
  max-width: 55%;
}

.slideshow-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.slides-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.slides-img-depoimentos {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   HORIZONTAL - Modo de Transição Horizontal
   ============================================================ */

.slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 20px auto;
  overflow: hidden;
  font-family: sans-serif;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.slide {
  flex: 0 0 25%;
  min-width: 25%;
  box-sizing: border-box;
  padding: 10px;
}

.slide-content {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  background: #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.slide-content:hover img {
  transform: scale(1.1);
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.slider .caption-white {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  color: #333;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  pointer-events: none;
}

.caption-white strong {
  font-size: 0.95rem;
  text-transform: uppercase;
  display: block;
}

.caption-white span {
  font-size: 0.75rem;
  color: #666;
  font-weight: 400;
}

.slider .prev,
.slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  font-size: 1.2rem;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  margin: 0;
  line-height: 1;
  outline: none;
}

.slider .prev:hover,
.slider .next:hover {
  background: #ffffff;
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.slider .prev { left: 15px; }
.slider .next { right: 15px; }

/* ============================================================
   THEME - SEGMENTOS
   ============================================================ */

.slider.layout-segmentos .slide-content {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 23px;
}

.slider.layout-segmentos .slide-content img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.slider.layout-segmentos .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.3s ease;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  pointer-events: none;
}

.slider.layout-segmentos .slide-content:hover .caption {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

/* ============================================================
   THEME - CLIENTES (Logos) e EQUIPE
   ============================================================ */

#logos-clientes {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

#logos-clientes .slider-track {
  align-items: center;
}

#logos-clientes .slide {
  text-align: center;
  padding: 15px;
}

#logos-clientes .caption,
#logos-clientes .caption-white {
  display: none;
}

#logos-clientes .prev,
#logos-clientes .next {
  display: none;
}

#logos-clientes .slide-content {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#logos-clientes .slide img {
  max-width: 180px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#logos-clientes .slide img:hover {
  transform: scale(1.05);
}

#slideshow-equipe .mySlides {
  display: flex;
  flex-direction: row;
}

.equipe-img {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  overflow: visible;
}

.equipe-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
}

.text {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  padding: 15px 20px;
  width: 85%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  text-align: center;
  z-index: 5;
}

.text p {
  margin: 0;
  color: var(--text-color, #333);
  font-family: "Roboto", sans-serif;
}

.text p:first-child {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #000;
}

.text p:last-child {
  font-size: 0.9rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   THEME - TOPO (Slide Principal)
   ============================================================ */

.slide-topo .legenda-slide {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 2;
}

.slide-topo .legenda-slide h2 {
  color: #fff;
  text-align: left;
  max-width: 55%;
}

.slide-topo .legenda-slide p {
  color: #fff;
  text-align: left;
  max-width: 55%;
}

@media (max-width: 768px) {
  .slide-topo .legenda-slide {
    top: 20%;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .slide-topo .legenda-slide h2 {
    text-align: center;
    font-size: 1.5rem;
    max-width: 100%;
  }

  .slide-topo .legenda-slide p,
  .slide-topo .legenda-slide .slide-post-conteudo {
    max-width: 100%;
    text-align: center;
    font-size: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .slide-topo .legenda-slide h2 {
    max-width: 50%;
    font-size: calc(var(--base-font-size)* 1.5);
  }

  .slide-topo .legenda-slide p {
    max-width: 50%;
    font-size: calc(var(--base-font-size)* 1);
  }
}

/* ============================================================
   THEME - DEPOIMENTOS / CASES
   ============================================================ */

.slides-clientes-depoimentos {
  display: flex;
  flex-direction: row;
  gap: 50px;
  align-items: center;
  padding: 20px 50px;
}

.slideshow-img-depoimentos {
  width: 40%;
}

.slideshow-conteudo {
  width: 60%;
}

.slideshow-conteudo h2 {
  font-size: 1.5rem;
  text-align: left;
  margin-left: 0;
}

.slideshow-conteudo p {
  font-size: 1rem;
  color: var(--text-color);
}

.slideshow-img-depoimentos img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .slides-clientes-depoimentos {
    flex-direction: column;
    padding: 20px;
  }

  .slideshow-img-depoimentos,
  .slideshow-conteudo {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .slideshow-img-depoimentos img {
    max-height: 300px;
    width: auto;
    display: block;
    margin-right: auto;
    margin-left: auto;
  }
}

/* ============================================================
   RESPONSIVO - Media Queries Gerais
   ============================================================ */

@media (max-width: 480px) {
  .slideshow-container {
    display: block;
    justify-items: center;
  }

  .legenda-slide {
    position: absolute;
    top: 20%;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .legenda-slide h2 {
    text-align: center;
    font-size: 1.5rem;
    max-width: 90%;
  }

  .slide-topo .legenda-slide p {
    max-width: 90%;
    text-align: center;
    font-size: 1rem;
  }

  article.slides-clientes-depoimentos {
    flex-direction: column;
  }

  .page-cases-bg .depoimentos-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-cases-bg {
    flex-direction: column;
  }

  .slideshow-conteudo {
    width: 100%;
  }

  .slideshow-img-depoimentos {
    width: 100%;
    height: auto;
    justify-items: center;
  }

  .slideshow-img-depoimentos img {
    max-height: 300px;
    width: auto;
    display: block;
    margin-right: auto;
    margin-left: auto;
  }

  .container-slide {
    width: 100%;
  }

  .item-galeria {
    width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .legenda-slide {
    position: absolute;
    top: 20%;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .legenda-slide h2 {
    text-align: center;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .slide-topo .legenda-slide p {
    max-width: 90%;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .slideshow-container {
    display: block;
    width: 100%;
    justify-items: center;
  }

  article.slides-clientes-depoimentos {
    flex-direction: column;
  }

  .slideshow-conteudo {
    width: 100%;
  }

  .slideshow-img-depoimentos {
    width: 100%;
    height: auto;
    justify-items: center;
  }

  .slideshow-img-depoimentos img {
    max-height: 300px;
    width: auto;
    display: block;
    margin-right: auto;
    margin-left: auto;
  }

  .page-cases-bg .depoimentos-card {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-cases-bg {
    flex-direction: column;
  }

  #slideshow-equipe-mobile img {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .slide-topo .legenda-slide h2 {
    max-width: 50%;
    font-size: calc(var(--base-font-size)* 1.5);
  }

  .slide-topo .legenda-slide p {
    max-width: 50%;
    font-size: calc(var(--base-font-size)* 1);
  }

  .page-cases-bg .depoimentos-card {
    width: 50%;
  }
}

/* Horizontal responsivo */
@media (max-width: 1023px) {
  .slide {
    flex: 0 0 50%;
    min-width: 50%;
  }
}

@media (max-width: 767px) {
  .slide {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .slider .prev { left: 8px; }
  .slider .next { right: 8px; }

  .slider .prev,
  .slider .next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  #slideshow-equipe-mobile img {
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}
