﻿.div-carousel-banner .swiper-container {
  width: 100%;

  height: 60vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.div-carousel-banner {
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
  overflow: hidden;
  position: relative;
}

.div-carousel-banner .swiper {
  height: 100%;
}

.div-carousel-banner .swiper-slide {
  float: left;
  height: inherit !important;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  .div-carousel-banner {
    min-height: 580px;
    display: inline-table;
  }
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.2);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

.banner-titulo {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.banner-descricao {
  display: block;
  font-size: 1.3rem;
  margin-top: 0px;
  margin-bottom: 2rem;
  line-height: 1.5;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 300;
  opacity: 0.95;
}

.banner-content {
  padding: 0 5%;
  pointer-events: none;
}

.banner-content * {
  pointer-events: auto;
}

.banner-btn-link {
  display: inline-block;
  border-radius: 50px;
  padding: 0;
  cursor: pointer;
  font-size: 1.1rem;
  margin-top: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.banner-btn-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.banner-btn-link .el-button {
  border-radius: 50px !important;
  padding: 16px 32px !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.banner-btn-link .el-button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.banner-btn-link span {
  padding-bottom: 0;
}

.posicao-centro .div-inner-content {
  text-align: center;
  padding: 0;
  margin: 0 auto;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(-50%);
  width: 100%;
}

.posicao-esquerda .div-inner-content {
  text-align: left;
  margin-left: 5%;
  max-width: 50%;
  padding: 3rem;
}

.posicao-direita {
  text-align: right;
  margin-right: 5%;
  max-width: 50%;
}

.posicao-direita .div-inner-content {
  text-align: right;
  margin-right: 5%;
  max-width: 50%;
  right: 0px !important;
  left: unset;
  padding: 3rem;
}

@media only screen and (max-width: 1000px) {
  .posicao-esquerda .div-inner-content {
    margin-left: 5%;
    max-width: 60%;
    padding: 2rem;
  }

  .posicao-direita .div-inner-content {
    margin-right: 5%;
    max-width: 60%;
    padding: 2rem;
  }
}

@media only screen and (max-width: 766px) {
  .div-carousel-banner .swiper-container {
    height: 50vh;
  }

  .posicao-esquerda .div-inner-content,
  .posicao-direita .div-inner-content,
  .posicao-centro .div-inner-content {
    margin: 0 5%;
    max-width: 90%;
    padding: 2rem 1.5rem;
    text-align: center;
    left: 50% !important;
    right: unset !important;
    transform: translateX(-50%);
  }

  .banner-titulo {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .banner-descricao {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
  }

  .banner-btn-link .el-button {
    padding: 14px 28px !important;
    font-size: 1rem !important;
  }

  /* Setas responsivas para mobile */
  .swiper-button-next,
  .swiper-button-prev {
    width: 40px !important;
    height: 40px !important;
    margin-top: -20px !important;
    border-radius: 10px !important;
  }

  .swiper-button-next {
    right: 15px !important;
  }

  .swiper-button-prev {
    left: 15px !important;
  }

  .swiper-button-next::before,
  .swiper-button-prev::before {
    width: 10px;
    height: 10px;
    border-width: 1.5px;
  }
}

.div-carousel-banner .swiper-slide {
  float: left;
  height: inherit !important;
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  /*Center slide text vertically*/
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.img-carousel-background {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.div-carousel-banner .swiper-slide:hover .img-carousel-background {
  transform: scale(1.05);
}

/* Overlay moderno para melhor legibilidade do texto */
.div-carousel-banner .swiper-slide:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.div-inner-content {
  transform: translateY(-50%);
  top: 50%;
  position: absolute;
  width: 100%;
  left: 0px;
  z-index: 2;
  animation: slideInUp 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(-50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateY(0);
  }
}

.div-carousel-banner .swiper-slide-active .div-inner-content {
  animation: slideInUp 0.8s ease-out forwards;
}

/* Resetar estilos padrão do Swiper */
.swiper-button-next,
.swiper-button-prev {
  width: 48px !important;
  height: 48px !important;
  margin-top: -24px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(20px) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  opacity: 0.85 !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  border: 2px solid rgba(255, 255, 255, 0.6) !important;
  opacity: 1 !important;
}

/* Customizar as setas */
.swiper-button-next:after,
.swiper-button-prev:after {
  content: "" !important;
  display: none !important;
}

.swiper-button-next::before,
.swiper-button-prev::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transform-origin: center;
  transition: all 0.3s ease;
}

.swiper-button-next::before {
  transform: translate(-40%, -50%) rotate(45deg);
}

.swiper-button-prev::before {
  transform: translate(-60%, -50%) rotate(-135deg);
}

.swiper-button-next:hover::before,
.swiper-button-prev:hover::before {
  border-color: #000;
  transform-origin: center;
}

.swiper-button-next:hover::before {
  transform: translate(-40%, -50%) rotate(45deg) scale(1.1);
}

.swiper-button-prev:hover::before {
  transform: translate(-60%, -50%) rotate(-135deg) scale(1.1);
}

.swiper-button-next {
  right: 20px !important;
}

.swiper-button-prev {
  left: 20px !important;
}

.thumbnails-swiper {
  margin-top: 20px;
}

.thumbnails-swiper .swiper-slide {
  height: 150px !important;
  cursor: pointer;
}

.thumbnails-swiper .swiper-slide {
  background-color: black;
}

.thumbnails-swiper .swiper-slide .el-image:hover {
  opacity: 0.5;
}

.thumbnails-swiper .el-image {
  width: 100%;
  height: 100%;
}

.thumbnails-swiper .active-thumb {
  opacity: 0.5;
}

.div-carousel-banner.single-slide {
  touch-action: manipulation;
}

/* ===== SKELETON LOADING - Element UI Style ===== */
.banner-skeleton {
  width: 100%;
  height: 60vh;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.skeleton-content {
  text-align: center;
  padding: 0 5%;
  max-width: 600px;
}

.skeleton-title {
  height: 32px;
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  border-radius: 4px;
  margin-bottom: 16px;
  animation: el-skeleton-loading 1.4s ease infinite;
}

.skeleton-description {
  height: 16px;
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: el-skeleton-loading 1.4s ease infinite;
}

.skeleton-description-short {
  height: 16px;
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  border-radius: 4px;
  margin-bottom: 24px;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
  animation: el-skeleton-loading 1.4s ease infinite;
}

.skeleton-button {
  height: 40px;
  width: 120px;
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  border-radius: 4px;
  margin: 0 auto;
  animation: el-skeleton-loading 1.4s ease infinite;
}

@keyframes el-skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* Skeleton responsivo */
@media only screen and (max-width: 766px) {
  .banner-skeleton {
    height: 50vh;
  }

  .skeleton-title {
    height: 28px;
    margin-bottom: 12px;
  }

  .skeleton-description,
  .skeleton-description-short {
    height: 14px;
    margin-bottom: 6px;
  }

  .skeleton-button {
    height: 36px;
    width: 100px;
  }
}
