/* banner rotativo (hero slider) */
.hero-slider {
  position: relative;
  margin: 6rem auto;
  overflow: hidden;
}

#sliderContainer {
  cursor: grab;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

#sliderContainer:active {
  cursor: grabbing;
}

.slider-container {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  background: linear-gradient(145deg, #f1f8ec, #e0efd3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}

.slide img {
  max-width: 100%;
  width: 100%;
}

.slide-content {
  flex: 1;
  min-width: 260px;
}

.slide-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #254b21;
  line-height: 1.1;
}

.slide-content .tagline {
  font-size: 1.2rem;
  color: #4d7347;
  margin: 1rem 0;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide-content .highlight {
  background: #f9b23f;
  color: #1e3a1b;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  font-weight: 600;
  display: inline-block;
}

.slide-img {
  flex: 0 0 180px;
  text-align: center;
}

.slide-img img {
  max-width: 100%;
  filter: drop-shadow(0 10px 12px rgba(44, 82, 32, 0.3));
}

.hero-slider .slider-btn {
  display: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: #2d5727;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background: white;
  color: #1a3f15;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.dot-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  background: #524f4f;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.dot.active {
  background: #fff;
  width: 32px;
  border-color: #f1f8e3;
  box-shadow: 0 0 0 2px #524f4f;
}

@media screen and (max-width: 915px) {
  .hero-slider {
    margin: 5rem auto;
  }
}

@media screen and (max-width: 768px) {
  .btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-slider {
    margin: 5rem auto;
  }
}

@media screen and (max-width: 430px) {
  .btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* objetivo */
.objetivo {
  margin: 4rem auto;
  padding: 0 1rem;
}

.objetivo-carousel {
  display: flex;
  gap: 30px;
  padding: 1rem 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.objetivo-card {
  flex: 0 0 calc(33.33% - 20px);
  min-width: 250px;
  border-radius: 15px;
  transition: transform 0.2s;
  /* height: 36.2vh; */
  aspect-ratio: 1 / 0.71;
  padding: 1.2rem;
}

.objetivo-content {
  display: flex;
  flex-flow: column;
  align-items: self-start;
  justify-content: space-between;
  height: 100%;
}

.objetivo-card .objetivo-content h3 {
  color: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 400;
  padding-top: 1rem;
}

.btn.btn-objetivo {
  background-color: #fff;
  color: #000;
  font-size: 1rem;
  transition:
    background-color 0.3s ease,
    color 0.3s ease; /* Smooth transition */
}

.btn.btn-objetivo:hover {
  background-color: #3c3a3a;
  color: #fff;
}

/* @media screen and (max-width: 991px) {
    .objetivo-card .objetivo-content h3 {
        font-size: 1rem;
    }
} */

@media screen and (max-width: 960px) {
  .objetivo-card {
    flex: 0 0 calc(50% - 20px);
    min-width: auto;
  }
}

@media screen and (max-width: 768px) {
  .objetivo-card .objetivo-content h3 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 630px) {
  .objetivo-card {
    flex: 0 0 calc(100% - 20px);
    min-width: 300px;
  }
  .objetivo-card .objetivo-content h3 {
    font-size: 1rem;
  }
}

/* destaques */
#section-destaque .row {
  display: flex;
}

#section-destaque img.destaque-absolut {
  position: absolute;
  left: 50%;
  z-index: 9;
  margin-top: 80px;
  transform: translateX(-50%);
  width: 49%;
  max-width: 490px;
}

#section-destaque .row .featured-item {
  width: 50%;
  height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#section-destaque .row .featured-item.white {
  background-color: #fff;
}

#section-destaque .row .featured-item.choco {
  background-color: #281303;
}

#section-destaque .row .featured-item.gray {
  background-color: #f4f4f4;
}

#section-destaque .row .featured-item video {
  height: 800px;
}

#section-destaque .row .featured-item video::before {
  content: "";
  position: absolute;
  top: 0;
  height: 250px;
  width: 50px;
  background: #fff;
}

#section-destaque .row .featured-item .featured-complement {
  border-radius: 0 80px 0px 0px;
  background-color: #fff;
  width: 100%;
  height: 800px;
  display: flex;
  align-items: end;
}

#section-destaque .row .featured-item .featured-content {
  width: 80%;
  margin: 0 auto;
}

#section-destaque .row .featured-item .featured-content.column-one {
  margin-bottom: 110px;
}

#section-destaque
  .row
  .featured-item
  .featured-content.column-one
  .content-limited {
  width: 60%;
}

#section-destaque
  .row
  .featured-item
  .featured-content.column-one
  .content-limited
  h2.section-title {
  font-size: 2.5rem;
}

#section-destaque
  .row
  .featured-item
  .featured-content.column-one
  .content-limited
  p {
  margin: 2rem 0;
}

#section-destaque .row .featured-item .featured-content h3.section-title {
  font-size: 2rem;
}

#section-destaque .row .featured-item .product-featured {
  position: relative;
  margin: 0 auto;
  display: table;
  margin-top: 50px;
}

#section-destaque .row .featured-item .product-featured .video-circle {
  border-radius: 100%;
  max-width: 500px;
  max-height: 500px;
  object-fit: cover;
}

#section-destaque .row .featured-item .product-featured img {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 360px;
}

#section-destaque .row .featured-item .product-featured img.product-melatonina {
  width: 430px;
  transform: translateX(-50%) translateY(-40px);
}

#section-destaque .row .featured-item .featured-content .footer-content {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#section-destaque .row .featured-item .featured-content .footer-content p {
  width: 60%;
}

#section-destaque .row .featured-item .featured-content .footer-content .btn {
  font-size: 1rem;
}

@media (max-width: 1199px) {
  #section-destaque img.destaque-absolut {
    margin-top: 144px;
    max-width: 400px;
    width: auto;
  }
  #section-destaque .row .featured-item .featured-content.column-one {
    margin-bottom: 160px;
  }
  #section-destaque .row .featured-item .product-featured .video-circle {
    max-width: 400px;
    max-height: 400px;
  }
  #section-destaque .row .featured-item .product-featured img {
    width: 290px;
  }
  #section-destaque
    .row
    .featured-item
    .product-featured
    img.product-melatonina {
    width: 340px;
  }
}

@media (max-width: 991px) {
  #section-destaque .row {
    display: block;
  }
  #section-destaque .row .featured-item {
    width: 100%;
    height: auto;
  }
  #section-destaque .row .featured-item .featured-complement {
    height: auto;
  }
  #section-destaque .row .featured-item .featured-content.column-one {
    margin-top: 60px;
    margin-bottom: 60px;
  }
  #section-destaque .row .featured-item.gray,
  #section-destaque .row .featured-item.white {
    padding: 60px 0;
  }
}

@media (max-width: 515px) {
  #section-destaque .row .featured-item .product-featured .video-circle {
    max-width: 300px;
    max-height: 300px;
  }
  #section-destaque .row .featured-item .product-featured img {
    width: 216px;
  }
  #section-destaque
    .row
    .featured-item
    .product-featured
    img.product-melatonina {
    width: 258px;
  }
}

/* depoimentos com vídeo no card */
.testimonials {
  margin: 5rem auto;
  padding: 0 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

.person-card {
  background: #f4f4f4;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  display: flex;
}

.person-card .avatar {
  width: 80px;
  height: 80px;
  background: #b4cfaa;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f5629;
  font-size: 2rem;
}

.person-card h3 {
  font-weight: 600;
  font-size: 1rem;
}

.person-card p {
  color: #fff;
  font-size: 0.9rem;
}

/* miniatura do vídeo */
.video-thumb {
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 16/9;
  background: #fff;
  border: 2px solid #fff;
  height: calc(55vw * (9 / 16)); /* Manter a proporção de altura usando calc */
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: none;
  transition: transform 0.3s;
}

.video-thumb:hover img {
  transform: scale(1.05);
}

.video-thumb .play-btn {
  top: 50%;
  left: 50%;
  /* transform: translate(-50%, -50%); */
  background: rgb(255, 255, 255);
  color: #535353;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  border: 2px solid white;
  padding: 30px;
}

.video-thumb:hover .play-btn {
  background: rgba(255, 255, 255, 0.6);
  color: #535353;
}

.video-thumb .legend {
  position: absolute;
  bottom: 6px;
  background: #00000082;
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5%;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
}

.video-thumb .legend .info {
  color: #fff;
  text-align: left;
}

/* player incorporado (escondido por padrão) */
.video-player {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  display: none;
}

.video-player iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 1199px) {
  .video-thumb .play-btn {
    font-size: 1.5rem;
    padding: 20px;
  }
}

@media (max-width: 991px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-thumb {
    height: calc(100vw * (9 / 16));
  }
}

@media (max-width: 480px) {
  .testimonial-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  .video-thumb {
    height: calc(200vw * (9 / 16));
  }
  .video-player {
    aspect-ratio: 9 / 16;
    margin: 0 auto;
  }
}

/* historia */
#historia {
  background: #f4f4f4;
}

#historia .container {
  margin: 5rem auto;
  padding: 0 2rem;
}

#historia .historia {
  display: flex;
  gap: 30px;
  padding: 5rem 1rem;
  align-items: center;
}

#historia .historia h2 {
  margin-bottom: 1.6rem;
}

#historia .historia img {
  border-radius: 20px;
  overflow: hidden;
  width: 70%;
}

#historia .historia-content {
  width: 30%;
  display: flex;
  justify-content: center;
  flex-flow: column;
}

#historia .historia-content .btn {
  width: max-content;
  margin-top: 60px;
}

@media (max-width: 1299px) {
  #historia .historia {
    flex-wrap: wrap;
    max-width: 850px;
  }
  #historia .historia img,
  #historia .historia-content {
    width: 100%;
  }
}

/* mídia */
#media {
  background: #fff;
}

#media .container {
  margin: 5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

#media .container img {
  margin: 0 auto;
  display: table;
  width: 100%;
  max-width: 200px;
  object-fit: scale-down;
  height: 120px;
}

#media .container p {
  color: #7b7b7b;
}

@media (max-width: 768px) {
  #media .container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 540px) {
  #media .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  #media .container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* diferenciais */
#diferenciais .container {
  margin: 5rem auto;
  padding: 0 2rem;
}

#diferenciais .diferenciais {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

#diferenciais .diferenciais .diferencial-item {
  position: relative;
  flex: 1 1 calc(33.33% - 30px);
  max-width: calc(33.33% - 30px);
  border: 1px solid var(--cor-destaque, #75694b);
  border-radius: 10px;
  padding: 60px 40px 45px;
  box-sizing: border-box;
  margin-bottom: 25px;
}

#diferenciais .diferenciais .diferencial-item .section-title {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #424242;
  margin-top: 0;
  margin-bottom: 1rem;
}

#diferenciais .diferenciais .diferencial-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

#diferenciais .ico {
  background: var(--cor-destaque, #75694b);
  width: 80px;
  height: 80px;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 900px) {
  #diferenciais .diferenciais .diferencial-item {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  #diferenciais .diferenciais .diferencial-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/* benefícios */
#beneficios {
  background-color: #e5e5e5;
  padding: 1rem 0;
}

#beneficios .container {
  margin: 5rem auto;
  padding: 0 2rem;
}

#beneficios .beneficios {
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  gap: 20px;
}

#beneficios .beneficios .beneficio-item {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

#beneficios .beneficios .beneficio-item img {
  width: 100%;
  max-width: 75px;
  height: auto;
}

@media (max-width: 420px) {
  #beneficios .beneficios {
    grid-template-columns: 1fr;
  }
}
