:root {
  --section-gradient: linear-gradient(
    to left,
    hsla(257, 30%, 44%, 0.742),
    hsla(128, 38%, 38%, 0.664)
  );
}

html,
body {
  overflow-x: hidden;
  width: initial;
  margin: 0;
  padding: 0;
}

/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

html,
body {
  width: initial;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: Arial, sans-serif;
}

/* Títulos com cursiva */
h1,
h2,
h3 {
  font-family: "Dancing Script", cursive;
  font-size: 2em;
}

/* Texto normal continua legível */
body,
p,
a,
li,
label,
input,
textarea,
button {
  font-family: "Segoe UI", Poppins, sans-serif;
}

/* HEADER */
header {
  background: linear-gradient(
    to left,
    hsla(257, 30%, 44%, 0.66),
    hsla(128, 38%, 38%, 0.356)
  );
  padding: 10px 20px;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
  position: relative;
}

.logo img {
  width: 100px;
  height: auto;
  border-radius: 200px;
}

.nav-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s ease-in-out;
}

.nav-menu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.nav-menu ul li {
  display: inline;
  margin: 0 10px;
}

nav a {
  color: #f3f1f9;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s;
}

nav a:hover {
  color: #894f9e;
  transform: scale(1.5);
  transition: transform 0.5s;
}

/* Ícones de redes sociais */
.social-icons {
  display: flex;
  gap: 20px;
}

.social-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.5s;
}

.social-icons img:hover {
  transform: scale(1.5);
}

.menu-toggle {
  display: none;
}

/* MOBILE - MENU LATERAL */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 1101;
  }

  .nav-menu {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(to bottom right, #562673, #34856c);
    flex-direction: column;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 40px;
    transition: left 0.4s ease-in-out;
    z-index: 1100;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu ul {
    list-style: none;
    padding: 40px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nav-menu ul li a {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }

  .nav-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    transform: scale(1.2);
  }

  /* Fundo escurecido quando o menu abre */
  body.menu-open::before {
    content: "";
    position: fixed;
    color: #fff;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(
      to left,
      hsl(257, 30%, 44%),
      hsla(128, 38%, 38%, 0.929)
    );
    z-index: 1000;
  }

  /* Ícones sociais dentro do menu */
  .social-icons {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

  .social-icons img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    transition: transform 0.3s;
  }
  .social-icons img:hover {
    transform: scale(1.2);
  }
}

/* SLIDER */
#home {
  position: relative;
  width: 100%;
  min-height: 90vh;
  max-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom right, #562673, #34856c);
  box-shadow: 10px 4px 8px rgba(114, 81, 137, 0.46);
}

.slides {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 50;
  transition: opacity 1s;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slides-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.358);
  mix-blend-mode: multiply;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* usa crop, mas imagens mobile já compostas para isso */
  object-position: center; /* centraliza o foco */
  display: block;
}

/* Ativar a imagem atual */
.hero-slide.active {
  opacity: 90;
}

/* Ajustes para o Slider */
.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  /* Ocupará 100% da altura da tela */
  overflow: hidden;
}

/* Conteúdo sobre o slider */
.home-content {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: 80%;
  height: auto;
  padding: 20px;
  border-radius: 12px;
  background: rgba(8, 0, 10, 0.5);
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 700px;
  align-self: center;
  box-shadow: 10px 4px 8px rgba(6, 6, 6, 0.46);
  color: #fff;
}

.home-content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.home-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.w-button {
  display: inline-block;
  background: #691b9a;
  color: white;
  border: none;
  cursor: pointer;
  bottom: auto;
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

/* SOBRE A CLÍNICA */
#about {
  padding: 60px 20px;
  background: var(--section-gradient);
}

.about-container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  display: grid;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.about-container h2 {
  font-size: 2em;
  color: #562673;
  margin-bottom: 20px;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text h3 {
  font-size: 1.5em;
  color: #624f93;
  margin-top: 20px;
}

.about-text p {
  font-size: 1.1em;
  color: #666;
  line-height: 1.6;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(87, 40, 144, 0.559);
  transition: transform 0.6s ease, opacity 0.6s ease;
  opacity: 0; /* começa invisível para fade-in */
  transform: translateY(50px); /* começa levemente deslocada */
}

.about-image img.show {
  opacity: 1;
  transform: translateY(0);
}

.about-image img:hover {
  transform: scale(1.05);
}

/* === MISSÃO, VISÃO E VALORES === */
.about-values {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  display: grid;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  height: auto;
  gap: 40px;
  margin-top: 40px;
}

.value-box {
  flex: 1;  
  width: 100%;
  height: 200px;
  max-width: 350px;
  min-width: 280px;
  background: linear-gradient(180deg, #b3f2a069, #d785f361);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: 2px solid rgba(86, 38, 115, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.value-box h3 {
  color: #562673;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.value-box p {
  color: #5b5a5a;
  font-size: 1rem;
  line-height: 1.6;
}

.value-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(87, 40, 144, 0.25);
  border-color: #562673;
}

/* ===== Animação dos boxes de Missão, Visão e Valores ===== */
.value-box {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.value-box.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsividade */
@media (max-width: 900px) {
  .about-values {
    flex-direction: column;
    align-items: center;
  }

  .value-box {
    width: 90%;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    max-width: 300px;
  }
}

/* SERVIÇOS */
#services {
  text-align: center;
  color: #562673;
  padding: 50px 20px;
  background: var(--section-gradient);
}

.services-container {
  display: grid;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  justify-items: center;
  margin-top: 30px;
}

.service-item {
  background: #592b7c43;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 20px;
}

/* Botão App dentro dos cards */
.service-item .btn-app {
  display: inline-block;
  background: #562673;
  color: #fff;
  box-shadow: #562673 0px 4px 10px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: auto; /* empurra o botão para o fim do card */
  transition: background 0.3s ease;
}

.service-item .btn-app:hover {
  background: #7d2ca5;
}

.service-item picture img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease-in-out; /* transição na imagem também */
}

.service-item h3 {
  margin: 15px 0 10px;
  font-size: 1.5rem;
  min-height: 48px; /* garante altura igual para os subtítulos */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-item p {
  flex-grow: 1; /* ocupa o espaço restante */
  font-size: 1rem;
  color: #57376b;
  margin: 0;
  line-height: 1.5;
}

.service-item:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.service-item:hover picture img {
  transform: scale(1.08);
}

/* Responsividade */
@media (max-width: 768px) {
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  .service-item {
    width: 90%;
  }
}

/* ESTILIZAÇÃO DO CARD DE SERVIÇO "CALENDÁRIO PREVENTIVO" COM SLIDER */
.service-item.calendar-card {
  position: relative;
  background: #592b7c43;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  width: 100%; /* ocupa o mesmo espaço dos outros */
  transition: transform 0.3s ease-in-out;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Conteúdo */
.service-item.calendar-card .overlay-content {
  padding: 10px 15px 0;
}

.service-item.calendar-card h3 {
  font-size: 1.8rem;
}

.service-item.calendar-card .slide-text {
  padding: 0 15px 15px;
  font-size: 1rem;
}

.service-item.calendar-card.active {
  display: block;
  animation: fade 0.8s ease-in-out;
}

/* Botões slider */
.service-item.calendar-card .slider-prev,
.service-item.calendar-card .slider-next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(52, 25, 84, 0.116);
  color: #502c6c;
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.service-item.calendar-card .slider-prev {
  left: 10px;
}
.service-item.calendar-card .slider-next {
  right: 10px;
}
.service-item.calendar-card .slider-prev:hover,
.service-item.calendar-card .slider-next:hover {
  background: rgba(79, 43, 107, 0.436);
}

.btn-slider {
  display: inline-block;
  color: #562673;
  border: rgb(92, 41, 137) solid 1px;
  box-shadow: #ad8fc0 0px 4px 10px;
  font-weight: bold;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  text-shadow: #f7f7f7 1px 1px 2px;
  margin-top: auto; /* empurra o botão para o fim do card */
  transition: background 0.3s ease;
}

/* Container do slider no calendário */
.service-item.calendar-card .slider-inner {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* Cada slide do calendário */
.calendar-slide {
  display: none; /* só mostra o ativo */
  width: 100%;
  animation: fade 1s ease-in-out;
  border: 4px solid transparent; /* borda dinâmica via JS */
  border-radius: 10px;
  transition: border-color 0.5s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calendar-card:hover .calendar-slide {
  transform: scale(1.05);
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
}

.calendar-slide.active {
  display: block;
}

/* Imagem responsiva */
.calendar-slide picture img {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  display: block;
}
/* Animação de fade */
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .gallery-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
  }

  .gallery-item {
    width: 90%;
  }

  .gallery-image img {
    height: auto;
  }
}

/* DEPOIMENTOS */
#testimonials {
  text-align: center;
  color: #562673;
  padding: 50px 20px;
  background: var(--section-gradient);
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  justify-items: center;
}

.testimonial-item {
  position: relative;
  max-width: 300px;
  text-align: center;
}

.testimonial-item h3 {
  font-size: 1.2em;
  color: #594585;
  margin-bottom: 10px;
}

.testimonial-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.testimonial-image img {
  width: 300px;
  height: 200px;
  object-fit: cover;
  display: block;
}

.testimonial-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  text-align: center;
}

.testimonial-image:hover .testimonial-overlay {
  opacity: 1;
}

/* Responsividade */
@media (max-width: 768px) {
  .testimonials-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .testimonial-item {
    width: 90%;
  }

  .testimonial-image img {
    height: auto;
  }
}

/* CONTATO */
#contact {
  color: #562673;
  text-align: center;
  padding: 60px 30px;
  background: var(--section-gradient);
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.contact-form,
.contact-map {
  flex: 1;
  min-width: 300px;
}

.contact-form h3,
.contact-map h3 {
  font-size: 1.5em;
  color: #624f93;
  margin-bottom: 10px;
  padding-left: 5px;
  font-weight: bold;
}

.contact-map h3 {
  margin-bottom: 20px;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #594585;
  outline: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  text-align: left;
}

.input-group label {
  margin-bottom: 3px;
  text-align: left;
  font-weight: bold;
  color: #594585;
  font-size: 14px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #594585;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group textarea {
  height: 100px;
  resize: none;
}

.contact-map iframe {
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: none;
  transition: transform 0.3s ease;
  transform: scale(1);
}

.btn-submit {
  display: inline-block;
  width: 100%;
  max-width: 300px;
  text-align: center;
  padding: 10px;
  background: #624f93;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #8778ae;
}

/* Responsividade */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-top: 20px;
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    cursor: pointer;
    position: absolute;
    top: 70px;
    left: 0;
    max-width: 0 50px;
    width: 100%;
    background: none;
    display: none;
    flex-direction: row;
    text-align: right;
    padding: 0 120px;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu.active {
    display: flex;
  }

  /* Ajuste para alinhar ícones sociais abaixo do menu no mobile */
  .social-icons {
    position: absolute;
    right: 80px;
    top: 20px;
  }

  .home-content {
    padding: 0 20px;
    width: 90%;
    height: 30%;
    position: absolute;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    text-align: center;
    background: rgba(8, 0, 10, 0.497);
    border-radius: 10px;
    left: 50%;
    transform: translateX(-50%);
    top: 70%;
  }

  .home-content p {
    font-size: 1rem;
    margin-bottom: 15px;
  }

  .home-content h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: bold;
  }
  .w-button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    background-color: #691b9a;
  }

  .slider-container {
    width: 100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  }

  .hero-slide img {
    height: 100vh;
    width: 100vw;
    object-fit: cover;
    object-position: center;
  }

  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }

  .hero-slide.active {
    opacity: 1;
  }
}

/* Botão Flutuante do WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 1000;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-button img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(87, 40, 144, 0.559);
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
}

/* ===== FOOTER ===== */
footer {
  background: linear-gradient(
    to right,
    hsla(128, 41%, 25%, 0.711),
    hsla(257, 30%, 44%, 0.819)
  );
  color: #753f96;
  padding: 40px 20px 20px;
  position: relative;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  align-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 30px;
}

.footer-column {
  flex: 0 1 200px;
  min-width: 250px;
  margin-bottom: 20px;
  text-align: left;
}

.footer-column h3 {
  font-weight: bold;
  font-size: 1.2rem;
  color: #691b9a;
  text-align: left;
  margin-bottom: 10px;
  border-bottom: 2px solid #75c49e;
  padding-bottom: 5px;
}

.footer-column p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #ffffff;
  text-align: left;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #e9e5e5;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: #8e729c;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: left;
  align-items: left;
  margin-top: 20px;
}

.footer-social img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.footer-social img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #ccc;
}

.footer-bottom a {
  color: #ffffff;
  text-decoration: none;
}

/* ===== Botão Voltar ao Topo ===== */
#back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  background: #6226738c;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  display: inline-flex; /* usado quando .show estiver ativo */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  z-index: 1100;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* aparece com classe .show */
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* hover */
#back-to-top:hover {
  background: #542869d7;
  transform: translateY(-2px) scale(1.05);
}

/* Responsividade */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  .whatsapp-button {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
  }
}

/* Estado inicial: invisível e levemente deslocado */
.service-item,
.gallery-item,
.testimonial-item,
.team-item,
.calendar-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Quando entra na tela */
.service-item.show,
.gallery-item.show,
.testimonial-item.show,
.team-item.show,
.calendar-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* Hero container */
.home-content {
  opacity: 0;
  transform: translate(-50%, -40%);
  transition: opacity 1s ease, transform 1s ease;
}

/* Quando ativa */
.home-content.show {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Hero título e parágrafo */
.home-content h1,
.home-content p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.home-content.show h1,
.home-content.show p {
  opacity: 1;
  transform: translateY(0);
}

/* Botão da hero */
.home-content .w-button {
  opacity: 0;
  background-color: #691b9a;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.5s; /* botão aparece depois */
}

.home-content.show .w-button {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.home-content .w-button:hover {
  background-color: #6e458d;
  transition: background-color 0.3s ease; 
}

#gallery {
  padding: 40px 20px;
  background: var(--section-gradient);
  text-align: center;
}

#gallery h2 {
  font-size: 2em;
  color: #562673;
  margin-bottom: 30px;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  color: #481f67;
  margin-bottom: 30px;
  background: rgba(147, 115, 155, 0.8);
  height: 100%;
  max-height: 500px;
  box-shadow: 0 4px 10px rgba(72, 30, 102, 0.536);
}
.gallery-item h3 {
  font-size: 1.8rem;
  margin: 15px 0 10px;
  color: #481f67;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.6s ease-in-out, transform 0.3s ease-in-out;
  padding: 30px 20px;
  text-align: center;
  transform: translateY(100%);
}
.gallery-item:hover .gallery-overlay{
  opacity: 1;
  transform: translateY(0);
}

/* ===== NOSSA EQUIPE (MOSAICO) ===== */
#team {
  padding: 20px 20px;
  background: var(--section-gradient);
  text-align: center;
}

#team h2 {
  font-size: 2em;
  color: #562673;
  margin-bottom: 30px;
}

.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.team-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  color: #481f67;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(72, 30, 102, 0.536);
}

.team-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.team-item:hover img {
  transform: scale(1.05);
}

.team-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  transition: opacity 0.6s ease-in-out, transform 0.3s ease-in-out;
  padding: 30px 20px;
  text-align: center;
}

.team-item:hover .team-overlay{
  opacity: 1;
  transform: translateY(0);
}

.team-overlay h3 {
  
  font-size: 1.2rem;
  
  align-self: center ! important;
}

.team-overlay p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  bottom: 100px;
  margin-top: 100px;
  text-align: justify;
  align-self: flex-end ! important;
}

/* ===== AJUSTES GERAIS MOBILE ===== */
@media (max-width: 768px) {
  /* Corrige qualquer faixa branca lateral */
  body {
    overflow-x: hidden;
    padding: 0;
  }

  /* ===== Seção Serviços ===== */
  #services {
    padding: 40px 10px;
  }

  #services h2 {
    font-size: 1.8rem;
  }

  .services-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .service-item {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    box-sizing: border-box;
  }

  .service-item picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .service-item h3 {
    font-size: 1.2rem;
  }

  .service-item p {
    font-size: 0.95rem;
  }

  .service-item .btn-app {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* ===== Card do Calendário ===== */
  .calendar-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .calendar-card .slider-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .calendar-slide picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .calendar-card .slider-prev,
  .calendar-card .slider-next {
    top: 50%;
    transform: translateY(-50%);
    background: rgba(86, 38, 115, 0.6);
    font-size: 1rem;
    padding: 8px;
  }

  /* Evita que os botões invadam o texto */
  .calendar-card .overlay-content {
    padding-top: 10px;
  }

  /* ===== Galeria ===== */
  .gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 10px rgba(72, 30, 102, 0.536);
    background-color: #594585;
  }

  .gallery-item h3 {
    font-size: 1.8rem;
    margin: 15px 0 10px;
    color: #fff;
  }

  .gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  /* ===== Seção Sobre Nós ===== */
  .about-container {
    flex-direction: column;
    gap: 25px;
    text-align: justify;
  }

  .about-text h2 {
    text-align: center;
    font-size: 1.6rem;
  }

  .about-text p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .about-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
  }

  /* ===== Missão, Visão e Valores ===== */
  .about-values {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto; 
    gap: 10px;
    margin-top: 30px;
    height: auto;
  }

  .value-box {
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
    align-items: center;
    text-align: center;
    padding: 15px;
    max-width: 350px;
    box-sizing: border-box;
    height: auto;
  }

  @media screen and (max-width: 768px) {
    .value-box {
      margin-bottom: 20px;
      align-items: center;
      text-align: center;
      padding: 15px;
      max-width: 90%;
      margin: 0 auto;
    }

    .value-box h3 {
      font-size: 1.3rem;
    }
    
  }

  /* ===== Footer ===== */
  footer {
    padding: 20px 10px;
  }

  .footer-container {
    grid-template-columns: repeat(2, 1fr); /* duas colunas no mobile */
    gap: 20px;
  }

  .footer-column h4 {
    font-size: 1.2rem;
  }

  .footer-column {
    width: 100%;
    flex: 1 1 100%;
    min-width: auto;
    margin-bottom: 15px;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    margin-top: 15px;
    font-size: 0.9rem;
  }

  /* Botão de voltar ao topo e WhatsApp não se sobrepõem */
  #backToTop {
    right: auto;
    left: 20px;
    bottom: 80px;
  }

  .whatsapp-button {
    right: 20px;
  }
}

/* ===== Ajuste para telas muito pequenas (≤480px) ===== */
@media (max-width: 480px) {
  .service-item h3 {
    font-size: 1.4rem;
  }

  .service-item p {
    font-size: 0.9rem;
  }

  .btn-app {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .calendar-card .slider-prev,
  .calendar-card .slider-next {
    font-size: 0.9rem;
    padding: 5px;
  }
}

/* ===== EFEITO FADE-IN PARA OVERLAYS ===== */
.gallery-overlay,
.testimonial-overlay,
.team-overlay {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Quando aparece */
.gallery-overlay.show,
.testimonial-overlay.show,
.team-overlay.show {
  opacity: 0.6;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.9s ease;
}

/* ===== ANIMAÇÕES EM CASCATA (reaplicadas) ===== */
.service-item,
.gallery-item,
.team-item,
.testimonial-item,
.calendar-card {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-item.show,
.gallery-item.show,
.team-item.show,
.testimonial-item.show,
.calendar-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* === BANNER DE COOKIES === */
.cookie-banner {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 100%;
  transform: translateX(-20%);
  background: rgba(85, 38, 115, 0.751);
  color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 400px;
  font-size: 0.95rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.cookie-banner.show {
  opacity: 1;
  visibility: visible;
}

.cookie-banner a {
  color: #f8d80b;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner button {
  background: #f8d80b;
  color: #562673;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  padding: 10px 25px;
  transition: background 0.3s ease;
  margin-left: auto;
}

.cookie-banner button:hover {
  background: #fff18a;
}

@media screen and (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    max-width: 90%;
  }

  .cookie-banner button {
    margin-left: 0;
    margin-top: 10px;
  }
  
}

/* === MODAL DE POLÍTICA === */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.privacy-modal.show {
  opacity: 1;
  visibility: visible;
}

.privacy-content {
  background: #fff;
  color: #333;
  max-width: 600px;
  width: 90%;
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: slideIn 0.4s ease;
}

.privacy-content h2 {
  color: #562673;
  margin-bottom: 10px;
}

.privacy-content p {
  margin: 10px 0;
  line-height: 1.6;
}

.privacy-content button {
  display: block;
  background: #562673;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  margin: 15px auto 0;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.privacy-content button:hover {
  background: #7d2ca5;
}

/* Ícone fechar (X) */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  color: #562673;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover {
  color: #7d2ca5;
}

/* Animação suave do modal */
@keyframes slideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 480px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    bottom: 10px;
    width: 95%;
  }
}
