/* Slider Container */
#main-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 480px;
  background-color: #f9f9f9;
  margin-top: 10px;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  will-change: transform;
}

.slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  position: relative;
  padding: 0;
  box-sizing: border-box;
}

.left-side {
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  height: 100%;
  text-align: center;
}

.right-side {
  width: 40%;
  height: 100%;
  position: relative;
}

.img-container {
  width: 100%;
  height: 100%;
  position: relative;
}

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

.slide-title {
  font-size: 24px;
  color: white;
  margin-bottom: 10px;
  white-space: normal;
  max-width: 100%;
}

.slide-subtitle {
  font-size: 48px;
  color: white;
  margin: 0;
  text-transform: none;
  white-space: normal;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
}
.slide-subtitle_min {
  font-size: 34px;
  color: white;
  margin: 0;
  text-transform: none;
  white-space: normal;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
}

.slide-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.slide-btn {
  background: none;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.control {
  position: absolute;
  top: 50%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  transition: all 0.3s ease;
}

.control.prev {
  left: 10px;
}

.control.next {
  right: 10px;
}

.control:hover {
  background: rgba(255, 255, 255, 0.8);
  color: black;
}

.control:hover {
  background: rgba(255, 255, 255, 0.8);
  color: #000;
}

.slide-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.slide-info_location {
  font-size: 22px;
  font-weight: normal;
  font-family: Montserrat;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

/* responsive slides */
@media screen and (max-width: 768px) {
  #main-slider {
    height: 280px; /* Menor altura para mobile */
    overflow: hidden;
  }

  .slider-container {
    width: 100%;
  }

  .slide {
    flex-direction: column;
    width: 100%;
    min-width: 100%;
  }

  .left-side {
    width: 100%;
    height: 100%;
    padding: 25px;
    justify-content: center;
    overflow: hidden;
  }

  .right-side {
    display: none;
  }

  .slide-title {
    font-size: 16px;
    margin-bottom: 10px;
    width: 100%;
    padding: 0 10px;
    margin: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .slide-subtitle,
  .slide-subtitle_min {
    font-size: clamp(20px, 3.5vw, 26px);
    padding: 0 10px;
    line-height: 1.2;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  .slide-buttons {
    gap: 10px;
    margin-top: 15px;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .slide-btn {
    font-size: 14px;
    padding: 8px 12px;
    white-space: nowrap;
  }

  .control {
    padding: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .control i {
    font-size: 14px;
  }
}

/* Ajustes para telas muito pequenas */
@media screen and (min-width: 390px) and (max-width: 768px) {
  #main-slider {
    height: 300px;
  }

  .slide-title {
    font-size: 18px;
  }

  .slide-subtitle,
  .slide-subtitle_min {
    font-size: clamp(20px, 3.5vw, 26px);
  }
}

/* Ajustes para smartphones muito grandes (iPhone Pro Max, S21 Ultra, etc) */
@media screen and (min-width: 428px) and (max-width: 768px) {
  #main-slider {
    height: 320px;
  }
}
