.hero {
  width: 100%;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.hero-slider {
  display: flex;
  width: 200%;
  transition: transform 0.4s ease;
}

.hero-slide {
  width: 100%;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

.hero-text{
  max-width: 500px;
  display: flex;
  align-items: end;
  justify-content: center;
  flex-direction: column;
}

.hero-text h3 {
  color: var(--vermelho);
  font-size: 14px;
  margin-bottom: 10px;
  text-align: end;
}

.hero-text h1 {
  font-size: clamp(42px, 5vw, 60px);
  color: #0d1b2a;
  margin-bottom: 20px;
  text-align: end;
}

.hero-text p {
  font-size: clamp(12px, 2vw, 16px);
  width: 300px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: end;
  border-right: 1px solid var(--shadow);
  padding-right: 10px;
}

.hero-text a {
  text-decoration: none;
}

.hero-button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  color: #fff;
  font-size: clamp(12px, 2vw, 16px);
  letter-spacing: 0.15rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  text-transform: uppercase;
}

.hero-button img{
  width: 20px;
  padding-right: 2px;
}

.hero-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--vermelho); 
  z-index: -2;
  border-radius: 5px;
}

.hero-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: var(--vermelho-hover);
  transition: width 0.3s ease;
  z-index: -1;
  border-radius: 5px;
}

.hero-button:hover {
  color: #fff;
}

.hero-button:hover::before {
  width: 100%;
}

.right{
  display: flex;
  max-width: 500px;
  align-items: start;
  justify-content: center;
  flex-direction: column;
}

.right h3, .right h1, .right p{
    text-align: start;
}

.right p{
  padding-left: 10px;
  border-left: 1px solid var(--shadow);
  border-right: none;
}

.hero-image img {
  width: 480px;
  max-width: 100%;
  margin-top: 10px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #ccc;
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: var(--vermelho);
}

.animate-text {
  opacity: 0;
  transform: translateY(-15px);
}

.animate-image {
  opacity: 0;
}

.animate-text.show {
  animation: fadeDown 0.5s ease forwards;
}

.animate-image {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--shadow);
  background: transparent;
  color: var(--black);
  font-size: 26px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero:hover .hero-arrow {
  opacity: 1;
  pointer-events: auto;
}

.hero-arrow:hover {
  color: var(--white);
  border: none;
  background: var(--vermelho);
}

.hero-arrow.arrow-left {
  left: 30px;
}

.hero-arrow.arrow-right {
  right: 30px;
}

@media (max-width: 600px) {
      .hero-arrow {
    display: none;
  }
}

@media (min-width: 600px) and (max-width: 1200px) {
  .hero-slide {
    flex-direction: column;
    padding: 30px 70px;
    align-items: end;
  }

  .hero-slide-right{
    flex-direction: column;
    padding: 30px 70px;
    align-items: start;
  }
  
  .right{
    flex-direction: column;
    align-items: start;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-image img {
    margin-bottom: 30px;
    width: 100%;
  }

    .hero-arrow {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hero{
    min-height: 60vh;
  }
  
  .hero-slide{
    display: flex;
    flex-direction: row-reverse;
    padding: 30px 200px;
    align-items: end;
    min-height: 0vh;
    max-height: 70vh;
    margin-top: 80px;
  }

  .hero-text{
    max-width: 620px;
    height: 100%;
    display: flex;
    justify-content: start;
  }

    .hero-slide-right{
    flex-direction: row;
    padding: 30px 200px;
    align-items: start;
  }

    .hero-image img {
    width: 100%;
  }
}
