@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root {
  --primary-color: #20448C;
  --second-color: #086CB4;
  --threeth-color: #008CDB;
  --fourth-color: #0286EA;
  --fiventh-color: #ffffff;
}

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

html {
  font-size: 62.5%;
  font-family: 'Open Sans';
}


.header-home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--threeth-color);
  padding: 2rem;
}

.wrappercontainer,
.container-desk {
  display: none;
}

/* -------------------------------------------- */

.navigation {
  width: 100%;
  /* height: 70%; */
  background-color: var(--threeth-color);
  display: flex;
  justify-content: center;
  align-items: center;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

ul {
  list-style: none;
  font-size: 17px;
  color: var(--fiventh-color);
  
}

a {
  text-decoration: none;
}


.navigation ul {
  width: 350px;
  display: flex;
  position: relative;
}

.navigation ul li {
  width: 70px;
  height: 70px;
  z-index: 1;
}

.navigation ul li a {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  font-weight: 500;
}


.navigation ul li a .icon {
  display: block;
  line-height: 70px;
  font-size: 2.1rem;
  text-align: center;
  transition: 0.5s;
  color: var(--fiventh-color);
}

.navigation ul li.active a .icon {
  transform: translateY(-32px);
  color: var(--fiventh-color);
}

.navigation ul li a .text {
  position: absolute;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  transition: 0.5s;
  opacity: 0;
  color: var(--fiventh-color);
  transform: translateY(20px);
  
}

.navigation ul li.active a .text {
  opacity: 1;
  transform: translateY(10px);
}

.indicator {
  width: 50px;
  height: 50px;
  position: absolute;
  top: -28%;
  right: 83%;
  background: var(--primary-color);
  border-radius: 50%;
  border: 1px solid var(--fiventh-color);
  transition: 0.5s;
}

.indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -22px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-right-radius: 20px;
  box-shadow: 1px -10px 0 0 var(--color-primary);
  
}

.indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -22px;
  width: 20px;
  height: 20px;
  background: transparent;
  border-top-left-radius: 20px;
  box-shadow: -1px -10px 0 0 var(--color-primary);
}

.navigation ul li:nth-child(1).active ~ .indicator {
  transform: translateX(calc(70px * 0));
}

.navigation ul li:nth-child(2).active ~ .indicator {
  transform: translateX(calc(70px * 1));
}

.navigation ul li:nth-child(3).active ~ .indicator {
  transform: translateX(calc(70px * 2));
}

.navigation ul li:nth-child(4).active ~ .indicator {
  transform: translateX(calc(70px * 3));
}

.navigation ul li:nth-child(5).active ~ .indicator {
  transform: translateX(calc(70px * 4));
}


/* -------------------------------------------- */

.logo-senac-home {
  width: 5rem;
  height: 3rem;
}

.logo-app-home {
  width: 5rem;
  height: 4rem;
}

.logo-senac-home img,
.logo-app-home img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
}

/* Dropdown Configuração */
/* Esconder o dropdown inicialmente */
.dropdown-menu {
  display: none;
  position: fixed;
  bottom: 50px;
  right: 0;
  height: 35vh;
  background-color: #ffffff;
  color: white;
  list-style: none;
  padding: 10px;
  border-left: 1px solid var(--threeth-color);
  border-top : 1px solid var(--threeth-color);
  border-radius: 10px 0 0 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 5;
}

/* Estilização dos itens do dropdown */
.dropdown-menu li {
  margin-bottom: 10px;
}

.dropdown-menu li img {
  width: 30px;
  height: auto;
  margin-right: 10px;
}

.idiomas {
  display: flex;
  align-items: center;
  font-size: 1.3rem;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  background-color: var(--primary-color);
  padding: 1rem;
}

.version {
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* Exibir o dropdown quando estiver ativo */
.dropdown-menu.active {
  display: block;
  animation: slide-up 0.3s ease-out forwards;
}

/* Animação para o dropdown invertido */
@keyframes slide-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

/* Dropdown Configuração Fim*/

/* Botão para abrir o dropdown */
/* .dropdown-toggle {
  background-color: transparent;
  border: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
} */





/* Media Queries ----------------------------------------------- */

/* / Desktops / */
@media (min-width: 1024px) {

  /* Header para desktop ----------------------------------------*/
  .header-home {
    height: 10rem;
  }

  .logo-senac-home {
    width: 8rem;
    height: 5rem;
  }

  .logo-app-home {
    width: 7rem;
    height: 5rem;
  }

  .logo-senac-home img,
  .logo-app-home img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
  }

  .wrappercontainer {
    display: block;
    width: 50%;
  }

  .header_nav a {
    font-size: 2rem;
    padding: 1rem 0rem;
    text-decoration: none;
    color: white;
    border: solid 1px transparent;
    transition: transform 0.3s;
    display: inline-block;
  }

  .header_nav a:hover {
    border-radius: 5px;
    border-color: var(--primary-color);
    transform: scale(1.05);
    background-color: var(--second-color);
  }

  .header_nav ul {
    display: flex;
    justify-content: space-around;
    list-style-type: none;
  }

  /* Ajuste para o item do menu desktop */
  .header_nav li {
    position: relative; /* Permite o dropdown se posicionar relativo a este item */
  }

  /* Estilização do dropdown para desktop */
  .dropdown-menu {
    display: none;
    position: absolute; /* Posicionamento relativo ao pai */
    top: 100px;
    left: 65%;
    right: auto;
    height: 241px;
    transform: translateX(-50%);
    min-width: 200px;
    background-color: #ffffff;
    color: var(--primary-color);
    list-style: none;
    padding: 10px;
    border: 1px solid var(--threeth-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 5;
  }

  /* Exibir o dropdown quando estiver ativo */
  .dropdown-menu.active {
    display: block;
    animation: slide-down 0.3s ease-out forwards;
  }

  /* Animação para o dropdown */
  @keyframes slide-down {
    from {
      opacity: 0;
      transform: translateY(-10%);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Footer para desktop -------------------------------------- */
  .navigation {
    display: none;

  }

  .container-desk {
    display: block;

  }

  .footer-desk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1.8rem;
    text-align: center;
    padding: 2.0rem; 
    background-color: var(--threeth-color);

  }

  .footer-desk img {
    color: #ffffff;
    width: 4.5rem;
    height: auto;

  }

  .logo-senac-footer {
    width: 7.0rem;
    height: 5.0rem;

  }

  .logo-senac-footer img {
    width: 100%;
    height: 100%;
    /* object-fit: cover; */
  }
  .footer-container {
    display: flex;
    justify-content: center; /* Centraliza as imagens no contêiner */
    gap: 20px; /* Espaçamento entre as imagens */
  }

  .rede_logo {
    display: flex;
    gap: 1rem;
  }

  .direitos_footer {
    font-size: 15px;
    color: white;
    text-align: center;
    padding: 30px 0;
    text-shadow: 0 0.3rem 0.3rem rgba(0, 0, 0, 0.3);

  }

}

/* / Mobiles - altura / */
@media (max-height: 740px) {
  .dropdown-menu {
    height: 45vh;
  }
}