* {
  margin: 0;
  padding: 0;
  box-sizing: unset;
}

body {
  background-color: azure;
  font-family: "Poppins";
}

header {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  height: 5em;
  width: 100vw;
  align-items: center;
  z-index: 99;

  ul {
    margin-inline: 10%;

    display: flex;
    align-items: center;
    gap: 30px;
  }

  position: fixed;
}

li {
  list-style: none;
  img {
    margin-top: 10px;
  }
}

a {
  text-decoration: none;
  color: #1c2b33;
}

.txt-orcamento {
  background: linear-gradient(
    90deg,
    rgba(2, 0, 36, 1) 0%,
    rgba(9, 9, 121, 1) 40%,
    rgba(0, 212, 255, 1) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: letter-spacing 0.3s ease-in-out;
}
/* main {
  width: 100vw;
} */

.home {
  color: #fff;
  /* background-image: url("../images/6915809_Motion_Graphics_Motion_Graphic_1280x720-ezgif.com-video-to-gif-converter.gif"); */
  background-image: url("../images/5630939.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-inline: 10%;

  .descricao {
    margin-top: 15em;
    h1,
    p,
    h2 {
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
  }

  .distaques {
    margin-bottom: 5%;
    display: grid;
    gap: 20px;

    .vitrine {
      display: flex;
      gap: 30px;

      .card {
        color: #1c2b33;
        box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
        width: 10em;
        height: 10em;
        background-color: #fff;
        border-radius: 11px;
        padding: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;

        a {
          font-size: 12px;
          font-weight: bold;
        }
      }
    }
  }
}

/* Estilos para carousel quando ativado */
.vitrine.carousel-active {
  overflow: hidden; /* Mantém hidden para carousel */
}

/* Para loop infinito: container interno com duplicação */
.carousel-inner {
  display: flex;
  transition: transform 0.5s ease; /* Transição suave */
  gap: 30px;
}

.vitrine.carousel-active .carousel-inner {
  animation: none; /* Será controlado por JS */
}

.carousel {
  flex-wrap: nowrap; /* Inicialmente sem wrap */
  overflow: hidden; /* Esconde overflow */
  transition: all 0.3s ease;
  /* position: relative; */
  max-width: 100%; /* Limita à largura da tela */
  -webkit-user-select: none; /* Safari */
  user-select: none; /* Impede seleção de texto */

  .card {
    flex-shrink: 0; /* Impede que cards encolham */
  }
}

.chatbots {
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  /* height: 90vh; */
  padding-block: 7em;

  .caixa {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 45px;
    width: 80%;
  }

  .textos {
    width: 100%;
    /* width: 60%; */
    /* text-align: center; */

    h1 {
      /* font-size: 48px; */
    }
  }

  .plataformas {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* justify-content: center; */

    .plataforma {
      flex: 1 1 300px; /* base de 300px, pode crescer ou diminuir */
      min-width: 260px; /* largura mínima */
      max-width: 400px; /* largura máxima */
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: #f8f8f8;
      padding: 20px;
      text-decoration: none;
      color: #333;
      border-radius: 12px;
      box-sizing: border-box;
      .um {
        display: flex;
        align-items: center;
        gap: 7px;
        i {
          font-size: 32px;
        }
      }
    }
    a {
      transition: background 0.3s ease-in-out;
    }
    a:hover {
      color: #fff;
      background: #1c2b33;
    }
  }
}

.nossos-cursos,
.blog-news {
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 80vh;
  padding: 50px;

  .txt-orcamento {
    background: linear-gradient(120deg, #ffffff 0%, #00c8d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: letter-spacing 0.3s ease-in-out;
  }

  .textos {
    width: 70%;
  }

  .conteudo {
    width: 80%;
    display: grid;
    gap: 25px;
  }

  .cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    .card {
      max-width: 25em;
      min-width: 20em;
      flex: 1 1 25em;
      display: grid;
      gap: 15px;

      .ilustracao {
        width: 100%;
        height: 200px;
        img {
          object-fit: cover;
          object-position: center;
          width: 100%;
          height: 100%;
          border-radius: 20px;
        }
      }

      p {
        text-align: justify;
      }

      span {
        font-size: 12px;
        color: gray;
      }
    }
  }

  .btn {
    background-color: #fff;
    color: #1c2b33;
    padding: 15px;
    padding-inline: 20px;
    border-radius: 25px;
  }
}

.nossos-cursos {
  background: linear-gradient(0deg, #06060e 0%, #19193b 100%);
  span {
    font-size: 16px;
  }
}

.txt-orcamento:hover {
  letter-spacing: 1px;
}

.telefone {
  color: #fff;
}

.blog-news {
  background-color: #fff;
  color: #1c2b33;
  .cards {
    flex-wrap: wrap;
  }

  .btn {
    background-color: #1c2b33;
    color: #fff;
  }
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .contactos {
    margin-block: 100px;
    border: 1px solid;
    width: 70vw;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px;
    background-color: #1c2b33;
    color: #fff;

    a {
      background-color: #fff;
      color: #1c2b33;
      padding: 10px;
      border-radius: 20px;
    }
  }

  .rodape {
    border-top: 1px solid gray;
    width: 100%;
    display: flex;
    justify-content: center;
    padding-block: 60px;
    .caixa {
      width: 80%;
      display: grid;
      grid-template-columns: 400px calc(100% - 400px);
      flex-wrap: wrap;
      align-items: center;

      .f-logos {
        display: grid;
        ul {
          display: flex;
          flex-wrap: wrap;
          margin-left: 20px;
          li {
            padding: 10px;
          }
        }
      }

      .f-menu {
        max-width: 100%;
        /* border: 1px solid blue; */
      }

      .f-menus {
        display: flex;
        flex-wrap: wrap;
        justify-content: start;
        gap: 30px;
        /* border: 1px solid red; */
        max-width: 100%;

        ul {
          width: 300px;
          li {
            margin-bottom: 7px;
          }
        }
      }
    }
  }

  .fundao {
    display: flex;
    justify-content: space-between;
    border-top: 2px solid;
    align-items: center;
    height: 100px;
    width: 80%;
    ul {
      display: flex;
      align-items: center;
      gap: 20px;
    }
  }
}

#menu {
  display: none;
}

@media screen and (max-width: 1699px) {
  .f-menus {
    ul a {
      font-size: 1rem;
    }
    ul {
      max-width: 250px;
      /* border: 1px solid red; */
    }
  }
}

@media screen and (max-width: 1519px) {
  footer .rodape .caixa {
    .f-menus {
      gap: 10px;
    }
    .caixa {
      min-width: 90%;
    }

    .fundao {
      width: 90%;
    }
  }
}

@media screen and (max-width: 1469px) {
  .f-menus {
    ul a {
      font-size: 0.9rem;
    }
    ul {
      /* max-width: 200px; */
      /* border: 1px solid red; */
    }
  }
}

@media screen and (max-width: 1282px) {
  .textos {
    min-width: 100%;
  }

  footer .rodape .caixa {
    /* border: 1px solid blue; */
    display: flex;
    flex-direction: column;
    align-items: center;

    .f-menus {
      ul {
        /* max-width: 33%; */
        /* border: 1px solid red; */
      }
    }
  }
}

@media screen and (max-width: 1157px) {
  footer .rodape .caixa .f-menus {
    justify-content: center;
    align-items: start;
    /* ul {
      max-width: 32%;
    } */
  }

  #menu {
    display: block;
  }
  header #catalogos li:not(#logo) {
    display: none;
  }
  /* main .home .descricao {
    margin-top: 25%;
  } */
}

@media screen and (max-width: 1021px) {
  footer .fundao {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  footer .fundao .politicas ul {
    flex-wrap: wrap;
    /* border: 1px solid red; */
    justify-content: center;
  }
}

@media screen and (max-width: 680px) {
  footer .contactos .esquerda span {
    display: none;
  }
  footer .contactos .esquerda {
    margin-left: 0.5em;
  }
}

@media screen and (max-width: 600px) {
  .nossos-cursos,
  .blog-news {
    padding-inline: 2em;
    /* border: 1px solid red; */
    justify-content: center;
    align-items: center;
  }

  .nossos-cursos .cards,
  .blog-news .cards {
    width: 100%;
    border: 1px solid white;
  }
  .nossos-cursos .cards .card {
    border: 1px solid orange;
    width: 100vw;
  }

  .blog-news .cards .card {
    /* border: 1px solid green; */
    width: 100%;
  }
}

@media screen and (max-width: 490px) {
  #menu-contacto {
    display: none;
  }
  footer .rodape .caixa {
    .f-menus {
      ul {
        min-width: 100%;
        /* border: 1px solid blue; */
      }
    }
  }
}

@media screen and (max-width: 412px) {
  .blog-news {
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 1px solid yellow; */
    width: 100%;
    padding-inline: 0;
  }
}

@-webkit-keyframes scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
  }
}

@keyframes scroll {
  0% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  100% {
    -webkit-transform: translateX(calc(-250px * 7));
    transform: translateX(calc(-250px * 7));
  }
}

.parceiros {
  background-color: #fff;
  padding-bottom: 5em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider {
  /* background: #fff; */
  /* box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125); */
  height: 100px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%; /* opcional: limite máximo */
  /* padding: 0 20px; */
  /* margin-inline: 2.5em; */
}

.slider::before,
.slider::after {
  background: linear-gradient(to right, white 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 15%; /* fade responsivo */
  max-width: 150px;
  z-index: 2;
  top: 0;
}

.slider::after {
  right: 0;
  transform: rotateZ(180deg);
}

.slider::before {
  left: 0;
}

.slider .slide-track {
  animation: scroll 40s linear infinite;
  display: flex;
  width: calc(250px * 14); /* mantém a animação infinita */
  gap: 0; /* remove espaço entre slides */
}

.slider .slide {
  height: 100px;
  min-width: 180px; /* tamanho mínimo em mobile */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider .slide img {
  max-height: 70px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Animação de scroll */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 7));
  }
}

/* Responsividade extra para telas pequenas */
@media (max-width: 768px) {
  .slider .slide {
    min-width: 140px;
  }

  .slider .slide img {
    max-height: 60px;
  }

  .slider .slide-track {
    width: calc(140px * 14); /* ajusta para o novo tamanho */
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-140px * 7));
    }
  }
}

@media (max-width: 480px) {
  .slider .slide {
    min-width: 120px;
  }

  .slider .slide img {
    max-height: 50px;
  }

  .slider .slide-track {
    width: calc(120px * 14);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-120px * 7));
    }
  }
}
