@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --largura-slider: 320px;
  --altura-slider: calc(var(--largura-slider) / 1.5);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Comfortaa', sans-serif;
  scroll-behavior: smooth;
}

*, *:before, *:after {
     box-sizing: inherit;
}

.principal {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.principal video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
  filter: brightness(.7);
}

.conteudo {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 20px;
}

.conteudo header {
  width: 80%;
  height: fit-content;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.conteudo header nav a {
  padding: 0 20px;
  font-weight: 500;
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 1rem;
}

.conteudo header nav:hover a {
  color: #d9d9d9;
  transition: .2s linear;
}

.conteudo header nav a:hover {
  color: white;
}

.logo {
  width: 200px;
}

.sobre {
  width: 100%;
  background-color: #E5E5E5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
  gap: 50px;
}

.sobre .text-sobre {
  width: 50%;
}

.sobre .text-sobre h1 {
  font-size: 2.5rem;
  color: #4d4d4d;
}

.sobre .text-sobre p {
  color: #636363;
  font-size: 1.1rem;
  padding: 20px 0;
}

.sobre-clinica {
  padding: 20px;
  position: relative;
}

.sobre-clinica section {
  width: 90%;
  border-radius: 2px;
  max-width: 800px;
  background-color: rgba(0, 0, 0, .4);
  margin: 0 auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  padding: 15px;
}

.sobre-clinica section:hover {
  background-color: rgba(0, 0, 0, .6);
  transition: .3s linear;
}

.sobre-clinica h1 {
  font-size: 3rem;
  font-weight: 400;
  padding-bottom: 10px;
  font-family: "Merriweather", serif;
  color: white;
  text-align: center;
  text-transform: uppercase;
}

.sobre-clinica p {
  font-size: 1.1rem;
  color: #f2f2f2;
  padding: 10px 0;
  font-family: "Merriweather", serif;
}

.sobre-clinica::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/img_01.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

.sobre img {
  width: 350px;
  border-radius: 2px;
}

.frase_principal {
  position: relative;
  width: 100%;
  bottom: 10px;
  text-align: center;
  align-self: flex-end;
}

.frase_principal h1 {
  color: white;
  text-transform: uppercase;
  font-weight: 400;
  font-family: "Comfortaa", serif;
  padding-bottom: 20px;
}

.frase_principal div a:hover i {
  color: #2f4f4f;
}

.frase_principal div i {
  font-size: 2rem;
  color: white;
  padding-bottom: 20px;
}

.typewriter {
  padding-right: 2px;
  border-right: 2px solid white;
  white-space: nowrap;
  overflow: hidden;
  animation: caret 0.5s step-end infinite;
}

@keyframes caret {
  50% {
    border-color: transparent;
  }
}

.nossa_missao {
  padding: 100px;
  height: auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-image: url('../img/img_02.jpg');
}

.nossa_missao .text-section h1 {
  font-size: 2.5rem;
  font-weight: 400;
  padding-bottom: 10px;
  font-family: "Merriweather", serif;
  color: #1a1a1a;
}

.nossa_missao .text-section p {
  line-height: 20px;
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333333;
}

.text-section {
  width: 40%;
}

.nossa_missao .image-section {
  width: 50%;
  position: relative;
  overflow: hidden; /* Garante que os clipes animados não saiam do contêiner */
}

.nossa_missao .image-section img {
  width: 100%;
  max-width: 700px;
}

.image-section .animated-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Mantém o efeito atrás do conteúdo */
  pointer-events: none;
}

.image-section .clip {
  position: absolute;
  width: 100%;
  height: 100%;
  background: url("../img/img_01.png") no-repeat center;
  background-size: cover;
  transform-origin: center;
}

.image-section:hover .clip {
  animation: none; /* Remove a animação */
  opacity: 0; /* Faz o efeito desaparecer suavemente */
  transition: opacity .5s ease; /* Suaviza o desaparecimento */
}

#clip1 { animation: clip1 8s linear infinite; }
#clipa {
  transform: scale(1.1, 1.1);
  animation: clipa 18s linear infinite;
}
#clip2 {
  transform: scale(1.12, 1.12);
  animation: clip2 10s linear infinite;
}
#clipb {
  transform: scale(1.14, 1.14);
  animation: clipb 8s linear infinite;
}
#clip3 {
  transform: scale(1.15, 1.15);
  animation: clip3 14s linear infinite;
}
#clip4 {
  transform: scale(1.13, 1.13);
  animation: clip4 12s linear infinite;
}

/* Animações */
@keyframes clip1 {
  0% { clip-path: polygon(0% -50%, 50% -50%, -50% 50%, -100% 50%); }
  100% { clip-path: polygon(150% 50%, 200% 50%, 100% 150%, 50% 150%); }
}

@keyframes clipa {
  0% { clip-path: polygon(-5% -55%, 55% -45%, -45% 55%, -95% 55%); }
  100% { clip-path: polygon(150% 50%, 200% 50%, 100% 150%, 50% 150%); }
}

@keyframes clip2 {
  0% { clip-path: polygon(50% -50%, 100% -50%, 200% 50%, 150% 50%); }
  100% { clip-path: polygon(-100% 50%, -50% 50%, 50% 150%, 0% 150%); }
}

@keyframes clipb {
  0% { clip-path: polygon(40% -60%, 100% -50%, 190% 40%, 150% 50%); }
  100% { clip-path: polygon(-100% 50%, -50% 50%, 50% 150%, 0% 150%); }
}

@keyframes clip3 {
  0% { clip-path: polygon(-100% -150%, -50% -150%, -150% -50%, -200% -50%); }
  100% { clip-path: polygon(150% 50%, 200% 50%, 100% 150%, 50% 150%); }
}

@keyframes clip4 {
  0% { clip-path: polygon(150% -150%, 200% -150%, 300% -50%, 250% -50%); }
  100% { clip-path: polygon(-100% 50%, -50% 50%, 50% 150%, 0% 150%); }
}

.btn-agendar {
  background: #435D52;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(109, 130, 153, 0.4);
  transition: all 0.3s ease;
}

.btn-agendar i {
  font-size: 18px;
}

.btn-agendar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(109, 130, 153, 0.6);
}

.btn-agendar:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(109, 130, 153, 0.4);
}

.pilares {
  width: 100%;
  padding: 50px 0 200px;
  background-image: url('../img/img_03.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
}

.title-pilares {
  font-size: 2.5rem;
  font-weight: 400;
  font-family: "Merriweather", serif;
  color: white;
  padding-bottom: 50px;
}

.grid {
   display: grid;
   width: 90%;
   max-width: 1000px;
   margin: 0 auto;
   grid-gap: 1.5rem;
   grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
}
 @media (max-width: 60em) {
   .grid {
     grid-gap: 3rem;
  }
}
 .grid .card {
   display: flex;
   flex-direction: column;
   background-color: #fff;
   border-radius: 0.4rem;
   overflow: hidden;
   box-shadow: 0 3rem 6rem rgba(0, 0, 0, .1);
   cursor: pointer;
   transition: 0.2s;
}
 .grid .card:hover {
   transform: translateY(-0.5%);
   box-shadow: 0 4rem 8rem rgba(0, 0, 0, .2);
}
 .grid .card__img {
   display: block;
   width: 100%;
   object-fit: cover;
}
 .grid .card__content {
   padding: 15px;
}
 .grid .card__header {
   font-size: 1.5rem;
   font-weight: 500;
   color: #0d0d0d;
}
 .grid .card__btn {
   display: block;
   width: 100%;
   padding: 1rem;
   font-size: 1.1rem;
   text-align: center;
   color: #3363ff;
   background-color: #e6ecff;
   border: none;
   border-radius: 0.4rem;
   transition: 0.2s;
   cursor: pointer;
   margin-top: 10px;
}
 .grid .card__btn span {
   margin-left: 5px;
   transition: 0.2s;
}
 .grid .card__btn:hover, .grid .card__btn:active {
   background-color: #dce4ff;
}
 .grid .card__btn:hover span, .grid .card__btn:active span {
   margin-left: 10px;
}

.cursos {
  width: 90%;
  margin: 0 auto;
  padding: 20px;
  margin-top: -100px;
  background-color: white;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.cursos h1 {
  font-size: 2.5rem;
  font-weight: 400;
  font-family: "Merriweather", serif;
  padding-bottom: 30px;
  text-align: center;
}

.cards-cursos {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  max-width: 1200px;
}

.card-curso {
  width: 30%;
  height: 400px;
  max-width: 300px;
  padding: 25px 15px;
  position: relative;
  z-index: 2;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.card-curso:hover {
  transform: scale(1.02);
  transition: .2s linear;
  cursor: pointer;
}

.card-curso::before {
  border-radius: 5px;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/img_04.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0.3);
  z-index: -1;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.card-curso:nth-child(2)::before {
  background-image: url('../img/img_05.jpg');
}

.card-curso:nth-child(3)::before {
  background-image: url('../img/img_06.jpg');
}

.card-curso h2 {
  font-size: 3rem;
  font-weight: 400;
  font-family: "Teko", serif;
  text-align: center;
  color: white;
  padding-bottom: 0;
}

.card-curso p {
  color: white;
  font-size: .9rem;
  letter-spacing: 1px;
  font-weight: 200;
  padding: 10px 0;
}

.card-curso p font {
  font-weight: 600 !important;
  color: #ff00ff;
}

.container {
     position: relative;
     width: var(--largura-slider);
     height: var(--altura-slider);
     border: 2px solid white;
}
 .container .img {
  border-radius: 5px;
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-size: var(--largura-slider) 100%;
}
 .container .background-img {
     background-image: url('../img/depois.jpg');
}
 .container .foreground-img {
     background-image: url('../img/antes.jpg');
     width: 50%;
}

.container .foreground-img::after {
  content: 'Antes';
  position: absolute;
  font-size: .8rem;
  top: 10px;
  left: 10px;
  color: white;
  font-weight: bolder;
}

.container .background-img::after {
  content: 'Depois';
  position: absolute;
  font-size: .8rem;
  right: 0;
  padding: 10px;
  color: white;
  font-weight: bolder;
  float: right;
  z-index: 10 !important;
}

 .container .slider {
     position: absolute;
     -webkit-appearance: none;
     appearance: none;
     width: 100%;
     height: 100%;
     background: rgba(242, 242, 242, .3);
     outline: none;
     margin: 0;
     transition: all 0.2s;
     display: flex;
     justify-content: center;
     align-items: center;
}
 .container .slider:hover {
     background: rgba(242, 242, 242, .1);
}
 .container .slider::-webkit-slider-thumb {
     -webkit-appearance: none;
     appearance: none;
     width: 6px;
     height: var(--altura-slider);
     background: white;
     cursor: pointer;
}
 .container .slider::-moz-range-thumb {
     width: 6px;
     height: var(--altura-slider);
     background: white;
     cursor: pointer;
}
 .container .slider-button {
     pointer-events: none;
     position: absolute;
     width: 30px;
     height: 30px;
     border-radius: 50%;
     background-color: white;
     left: calc(50% - 18px);
     top: calc(50% - 18px);
     display: flex;
     justify-content: center;
     align-items: center;
}
 .container .slider-button:after {
     content: '';
     padding: 3px;
     display: inline-block;
     border: solid #5d5d5d;
     border-width: 0 2px 2px 0;
     transform: rotate(-45deg);
}
 .container .slider-button:before {
     content: '';
     padding: 3px;
     display: inline-block;
     border: solid #5d5d5d;
     border-width: 0 2px 2px 0;
     transform: rotate(135deg);
}

.resultados {
  padding: 20px;
}

.resultados h1 {
  font-size: 2.5rem;
  font-weight: 400;
  padding-bottom: 10px;
  font-family: "Merriweather", serif;
  color: #1a1a1a;
  text-align: center;
  padding: 50px 0 30px;
}

.resultados-img {
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  gap: 50px;
}

footer {
  margin-top: 50px;
  padding: 20px;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, .9);
}

footer h3 {
  font-size: 1rem;
  padding-bottom: 10px;
  color: #f2f2f2;
}

footer h4 {
  color: #cccccc;
  font-size: .9rem;
}

.tratamentos-section {
  background-color: #E5E5E5;
  padding: 30px 0 150px;
}

.slider-container {
    position: relative;
    margin: 0 auto;
    width: 300px;
    height: 500px;
    overflow: hidden;
}

.tratamentos-section h1 {
  font-size: 2.5rem;
  font-weight: 400;
  padding-bottom: 25px;
  font-family: "Merriweather", serif;
  color: #4d4d4d;
  text-align: center;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(.6);
}

.slide:nth-child(1)::before {
  background-image: url('../img/img_08.png');
}

.slide:nth-child(2)::before {
  background-image: url('../img/IMG_7118 TRATADA.jpg');
}

.slide:nth-child(3)::before {
  background-image: url('../img/IMG_6666 TRATADA.jpg');
}

.slide:nth-child(4)::before {
  background-image: url('../img/IMG_6555 TRATADA.jpg');
}

.slide.active {
    opacity: 1;
}

.slide-title, .slide-text, .slide-button, .slider-nav {
  z-index: 2;
}

.slide-title {
    font-size: 1.3em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-text {
    font-size: 1em;
    margin-bottom: 20px;
    width: 80%;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.slide-button {
    padding: 12px 30px;
    font-size: 1.1em;
    background: transparent;
    border: 2px solid white;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 25px;
    margin-bottom: 15px;
}

.slide-button:hover {
    background: white;
    color: #333;
}

.slider-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.slider-dot.active {
    background: white;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    border: none;
    font-size: 24px;
    background: none;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.mobile-menu {
    display: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: white; /* Mantendo o esquema de cores original */
    position: absolute;
    transition: 0.3s all;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* Animação do X */
.mobile-menu.active .hamburger span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-menu.active .hamburger span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle i  {
    margin-left: 5px;
    font-size: 16px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    z-index: 1000;
    border-radius: 5px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    margin: 10px 0;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

@media (max-width: 768px) {
  .text-sobre {
    text-align: center;
  }

  .text-sobre p {
    width: 90%;
    text-align: left;
    margin: 0 auto;
  }
    .conteudo header {
        position: relative;
        justify-content: space-between;
    }

    .mobile-menu {
        display: block;
    }

    .conteudo header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.9); /* Fundo escuro para manter contraste com texto branco */
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
    }

    .conteudo header nav.active {
        display: flex;
        flex-direction: column;
    }

    .conteudo header nav a {
        padding: 15px 20px;
    }

    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        background-color: rgba(255, 255, 255, 0.1);
        width: 100%;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Tablet (768px até 1024px) */
@media (max-width: 1024px) {

  .nossa_missao {
    padding: 50px 30px;
    flex-direction: column;
    text-align: center;
  }

  .text-section {
    width: 90%;
    margin-bottom: 30px;
  }

  .nossa_missao .image-section {
    width: 90%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards-cursos {
    flex-wrap: wrap;
    gap: 30px;
  }

  .card-curso {
    width: 45%;
    max-width: none;
  }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
  .sobre-clinica::before {
    background-image: url('../img/IMG_5927.jpg');
    background-attachment: initial;
  }
  .conteudo {
    padding: 10px;
  }

  .sobre {
    flex-wrap: wrap;
  }

  .sobre .text-sobre {
    width: 90%;
  }

  .sobre .text-sobre h1 {
    font-size: 2rem;
  }

  .sobre img {
    width: auto;
    height: 300px;
  }

  .grid .card__btn {
     width: 80%;
     margin: 20px auto 0;
     font-size: 1rem;
  }

  .logo {
    width: 150px;
  }

  .frase_principal h1 {
    font-size: 1.5rem;
    padding: 0 20px 20px;
  }

  .nossa_missao .text-section h1 {
    font-size: 2rem;
  }

  .nossa_missao .text-section p {
    font-size: 0.9rem;
  }

  .grid {
    grid-template-columns: 1fr;
    width: 80%;
  }

  .title-pilares {
    font-size: 2rem;
    padding: 0 20px 30px;
  }

  .cursos {
    width: 80%;
  }

  .cursos h1 {
    font-size: 2rem;
  }

  .cards-cursos {
    flex-direction: column;
    align-items: center;
  }

  .card-curso {
    width: 90%;
    height: 350px;
    margin-bottom: 20px;
  }

  .card-curso h2 {
    font-size: 2.5rem;
  }

  .resultados h1 {
    font-size: 2rem;
  }

  .container {
    --largura-slider: 280px;
  }

  .resultados-img {
    gap: 30px;
  }
}

@media (max-width: 480px) {

  .logo {
    width: 200px;
  }

  .frase_principal h1 {
    font-size: 1.2rem;
  }

  .nossa_missao {
    padding: 30px 15px;
  }

  .nossa_missao .text-section h1 {
    font-size: 1.8rem;
  }

  .card-curso {
    width: 80%;
    height: 300px;
  }

  .card-curso p {
    font-size: 0.8rem;
  }

  .container {
    --largura-slider: 240px;
  }

  .resultados-img {
    gap: 20px;
  }

  footer {
    padding: 15px;
  }

  footer h3 {
    font-size: 0.9rem;
  }

  footer h4 {
    font-size: 0.8rem;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .principal {
    height: auto;
    min-height: 100vh;
  }

  .conteudo {
    height: auto;
    min-height: 100vh;
  }

  .frase_principal {
    padding: 40px 0;
  }
}