@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style: none;
  text-decoration: none;
}

:root {
  --font-titulo: "Montserrat", sans-serif;
  --font-texto: "Inter", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

header {
  width: 100%;
  position: sticky;
  top: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  background-color: white;
  z-index: 1;
}

.cabecalho {
  max-width: 920px;
  margin: auto;
  height: 10vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cabecalho > h1 > a {
  font-size: 29px;
  color: black;
  font-family: var(--font-titulo);
}

.icone-hamburguer {
  display: none;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid black;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
}

.icone-hamburguer > div {
  width: 25px;
  height: 4px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.icone-hamburguer.ativo > div:nth-child(1) {
  transform: rotate(45deg);
  position: absolute;
}

.icone-hamburguer.ativo > div:nth-child(2) {
  transform: rotate(-45deg);
  position: absolute;
}

.icone-hamburguer.ativo > div:nth-child(3) {
  display: none;
}

nav > ul {
  display: flex;
  gap: 15px;
}

nav > ul > li > a {
  font-size: 18px;
  color: black;
  font-family: var(--font-texto);
  transition: color 0.3s;
}

nav > ul > li > a:hover {
  color: #4CAF50;
}

.redes-sociais {
  display: flex;
  gap: 10px;
}

.redes-sociais > button {
  border: 1px solid black;
  border-radius: 50%;
}

.redes-sociais > button > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  font-size: 20px;
  border-radius: 50%;
  background-color: white;
}

.redes-sociais > button:nth-child(1) > a {
  color: red;
}

.redes-sociais > button:nth-child(2) > a {
  color: black;
}

.principal > p {
  max-width: 700px;
  text-align: justify;
}

main {
  padding: 20px 10px 30px 10px;
}

.principal {
  display: grid;
  grid-template-areas: 
  "titulo titulo titulo titulo"
  "texto  texto  texto  texto"
  "img    img    img    img"
  "numero numero numero total";
  gap: 20px;
}

.principal > h1 {
  grid-area: titulo;
  font-family: var(--font-titulo);
}

#sobre {
  scroll-margin-top: 130px;
}

.principal > p {
  grid-area: texto;
  font-family: var(--font-texto);
}

.container-numeros {
  grid-area: numero;
  max-width: 700px;
}

.descricao-principal {
  grid-area: total;
  height: fit-content;
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.descricao-principal > p {
  font-size: 18px;
  font-family: var(--font-texto);
}

.container-numeros > p {
  border: 1px solid;
  border-bottom: none;
  width: fit-content;
  margin: auto;
  padding: 5px;
  font-weight: bold;
  font-family: var(--font-titulo);
  border-radius: 5px 5px 0 0;
}

#doacao {
  scroll-margin-top: 100px;
}

#numeros {
  border: 2px solid;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-height: 400px;
  overflow-y: scroll;
  padding: 5px 5px 5px 20px;
  border-radius: 5px;
}

.numero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.numero:hover {
  background-color: #4CAF50;
  color: white;
}  

.numero.bloqueado {
  background-color: rgb(168, 100, 250);
  color: white;
  cursor: not-allowed;
}

.selecionado {
  background-color: #4CAF50;
  color: white;
}
  
.destaque {
  font-weight: bold;
  color: #4CAF50;
}

  #whatsappBtn {
  width: 200px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 15px;
  border: none;
  border-radius: 8px;
  background-color: #25D366;
  color: white;
  cursor: pointer;
  font-family: var(--font-texto);
  }

  #whatsappBtn:hover {
    background-color: #1ebe5d;
  }

  #whatsappBtn > i {
    font-size: 18px;
  }

  footer {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: black;
    color: white;
    padding: 30px 10px 5px 10px;
  }

  .rodape {
    width: 100%;
    max-width: 900px;
  }

  .rodape > ul {
    width: 100%;
    display: grid;
    grid-template-areas:
    'texto links sociais'
    'direitos direitos direitos';
    grid-template-rows: repeat(2, 1fr);
    justify-content: space-between;
    gap: 30px;
  }

  .rodape > ul > li:nth-child(1) {
    grid-area: texto;
  }
  .rodape > ul > li:nth-child(2) {
    grid-area: links;
  }
  .rodape > ul > li:nth-child(3) {
    grid-area: sociais;
  }
  .rodape > ul > li:nth-child(4) {
    grid-area: direitos;
    display: flex;
    justify-content: end;
    align-items: center;
  }

  .rodape > ul > li {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .rodape > ul > li > h3 {
    font-size: 25px;
    font-family: var(--font-titulo);
  }

  .rodape > ul > li:nth-child(1) > p {
    max-width: 200px;
    font-family: var(--font-texto);
  }

  .rodape > ul > li:nth-child(1) > p > a {
    color: white;
    text-decoration: underline;
  }

  .rodape > ul > li:nth-child(2) > div {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .rodape > ul > li:nth-child(2) > div > a {
    font-size: 18px;
    color: white;
    font-family: var(--font-texto);
    transition: color 0.3s;
  }

  .rodape > ul > li:nth-child(2) > div > a:hover {
    color: #4CAF50;
  }

  .rodape > ul > li:nth-child(3) > div {
    display: flex;
    justify-content: center;
    gap: 30px;
  }

  .rodape > ul > li:nth-child(3) > div > a > i {
    transition: color 0.3s;
  }

  .rodape > ul > li:nth-child(3) > div > a > i:hover {
    color: #4CAF50;
  }

  .rodape > ul > li:nth-child(3) > div > a {
    color: white;
    font-size: 30px;
  }

  .rodape > ul > li:nth-child(4) > p {
    font-family: var(--font-texto);
  }

  .rodape > ul > li:nth-child(4) > p > br {
    display: none;
  }

  .rodape > ul > li:nth-child(4) > p > a {
    color: white;
    text-decoration: underline;
    font-size: 17px;
  }

  .carrossel {
    grid-area: img;
    border: 1px solid black;
    max-width: 700px;
    height: 400px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    border-radius: 10px;
  }
  
  .carrossel img {
    display: none;
    width: 600px;
    object-fit: cover;
  }
  
  .carrossel img.ativa {
    display: block;
  }
  
  .carrossel button {
    width: 35px;
    height: 35px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
  }
  
  .carrossel .anterior {
    left: 7px;
  }
  
  .carrossel .proximo {
    right: 7px;
  }  

  @media (max-width: 700px) {

    .cabecalho {
      max-width: 350px;
    }

    .cabecalho > h1 > a {
      font-size: 26px;
    }

    nav {
      display: none;
    }

    nav.ativo {
      display: flex;
      position: fixed;
      top: 10vh;
      left: 0;
      width: 100%;
      background-color: black;
    }

    nav > ul {
      width: 100%;
      flex-direction: column;
      gap: 0;
    }

    nav > ul > li {
      width: 100%;
      height: 40px;
    }

    nav > ul > li > a {
      border-bottom: 1px solid white;
      color: white;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.3s;
    }

    nav > ul > li > a:hover {
      color: white;
      background-color: #4CAF50;
    }

    .icone-hamburguer {
      display: flex;
    }
    
    .principal {
      max-width: 350px;
      display: flex;
      flex-direction: column;
    }

    .principal > p {
      width: fit-content;
    }

    #numeros {
      max-width: 350px;
      max-height: 350px;
    }

    .descricao-principal {
      width: fit-content;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-top: 0;
      margin: auto;
    }

    .descricao-principal > p > br {
      display: none;
    }

    .rodape {
      max-width: 350px;
    }

    .rodape > ul {
      display: grid;
    }

    .rodape > ul {
      grid-template-areas:
      'texto texto texto texto'
      'links links sociais sociais'
      'direitos direitos direitos direitos';
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(3, 100px);
    }

    .rodape > ul > li:nth-child(1) > p {
      max-width: fit-content;
      text-align: justify;
    }

    .rodape > ul > li:nth-child(4) > p {
      text-align: center;
    }

    .rodape > ul > li:nth-child(4) > p > br {
      display: block;
    }

  }
