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

:root {
  font-size: 62.5%;
  /* 1 rem = 10px */
  --primaryColor: ;
  --nav-height: 7.2rem;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "DM Sans";
  font-size: 1.6rem;
  text-align: center;
  overflow: overlay;
  background-color: #ffffff;
  color: #0d4373;
}

body::-webkit-scrollbar {
  width: 12px;
}

body::-webkit-scrollbar-track {
  background: #0d4373;
}

body::-webkit-scrollbar-thumb {
  background-color: #0d4373;
  color: #ffffff;
  border-radius: 20px;
  border: 3px solid rgb(255, 255, 255);
}

.wrapper {
  width: min(50rem, 100%);
  margin-inline: auto;
  padding-inline: 2.4rem;
}


main {
  min-width: 300px;
  max-width: 1000px;
  padding: 20px;
  background-color: white;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.504);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

main img {
  width: 100%;
}
main img.pequena {
  max-width: 350px;
  display: block;
  margin: auto;
}

.logo_NAF {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 40%;
  width: 100%;
  height: 110px;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

section {
  padding-block: 10rem;
}

section header h4 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0.08rem;
  color: #0d4373;
  margin-bottom: 1.6rem;

  text-transform: uppercase;
}

section header h2 {
  font-size: 3rem;
  line-height: 3.9rem;

  color: var(--headline);
}

section header h1 {
  font-size: 3.4rem;
  color: var(--headline);
  line-height: 130%;

  margin-bottom: 2.4rem;
}

section .content p {
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 150%;

  color: var(--paragraph);
}

.button {
  background: var(--primary-color);

  border: none;
  border-radius: 4rem;
  margin-bottom: 6rem;

  padding: 1.6rem 3.2rem;
  width: fit-content;

  color: #0d4373;
  font-size: 1.4rem;
  font-weight: bold;
  text-transform: uppercase;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;

  text-decoration: none;
}

a.button {
  background-color: #0d4373;
  color: white;
}

.button:hover {
  background-color: black;
  color: #0d4373;
}

.social-links {
  margin-top: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
}

/* CUSTOM COLORS */

#services .card circle {
  fill: white;
}

#navigation .logo path[fill*="#00856F"],
#backToTopButton circle {
  fill: #0d4373;
}

button.open-menu path[stroke*="#00856F"],
#contact li path {
  stroke: #0d4373;
}

body.menu-expanded #navigation .logo path,
#navigation.scroll .logo path {
  fill: #0d4373;
}

#navigation.scroll button.open-menu path[stroke*="#00856F"] {
  stroke: #0d4373;
}

/*=====NAVIGATION==========================*/
nav {
  display: flex;
  height: 120px;
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100vw;
  color: #0d4373;
  text-align: center;
}

nav .wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.scroll {
  background-color: white;
  color: #0d4373;
  box-shadow: 1px 1px 10px 1px #0d4373;
}

nav button {
  background: none;
  border: none;
  cursor: pointer;
  color: #0d4373;
}

nav .menu,
nav .close-menu {
  position: fixed;
}

.avisoNav {
  background-color: red;
  color: white;
  font-size: small;
  font-weight: bold;
  text-align: center;
  padding-top: 8px;
  padding-bottom: 1px;
}
.avisoNav p{
  margin-left: 5px;
  margin-right: 5px;
}
.avisoNav a {
  border-radius: 10px;
  background-color: green;
  color: white;
  font-size: small;
  font-weight: bold;
  padding: 3px;
}
.avisoNav a:hover {
  color: white;
}

/*=====MENU-EXPANDED==========================*/
body.menu-expanded {
  overflow: hidden;
}

body.menu-expanded > :not(nav) {
  visibility: hidden;
}

.menu,
.close-menu,
body.menu-expanded .open-menu {
  opacity: 0;
  visibility: hidden;
}

.close-menu {
  color: #0d4373;
}

body.menu-expanded .menu,
body.menu-expanded .close-menu {
  opacity: 1;
  visibility: visible;
}

.menu {
  transform: translateY(100%);
}

body.menu-expanded .menu {
  top: 0;
  left: 0;
  background: #0d4373;

  width: 100vw;
  height: 100vh;

  padding-top: var(--nav-height);

  transition: transform 400ms;

  transform: translateY(0);
}

.menu ul:nth-child(1) {
  display: flex;
  flex-direction: column;
  gap: 4.8rem;

  margin-top: 6rem;

  font-weight: bold;
  font-size: 2.4rem;
  line-height: 3.1rem;
}

.menu ul li a {
  color: white;
  text-decoration: none;
}

.menu .button {
  background: #ffffff;
  border-radius: 4rem;
  font-weight: bold;
  font-size: 1.8rem;
  line-height: 2.3rem;
  text-transform: uppercase;
  text-decoration: none;

  color: #0d4373;

  display: inline-block;
  padding: 16px 32px;

  margin-top: 4.8rem;
  margin-bottom: 8rem;
}

.menu .button:hover {
  background-color: #0d4373;
  color: white;

  filter: brightness(1.3);
}

body.menu-expanded button {
  position: relative;
  z-index: 100;
}

body.menu-expanded button path {
  stroke: white;
}

/*=====HOME==========================*/

#home {
  margin-bottom: -15%;
  margin-top: 8%;
}

#home::before {
  width: 100%;
  height: calc(76% + var(--nav-height));
  background-color: white;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

#home h1 {
  padding-top: var(--nav-height);
}
#home p {
  font-size: 1.8rem;
  line-height: 150%;
  font-weight: 400;
  color: #0d4373;
}

#home img {
  width: 500px;
  height: 200px;  
}
div .col-b {
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

#home .stats {
  width: 100%;
  padding-block: 4rem;
  margin-inline: auto;
  border-radius: 0.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6rem;
  text-align: center;
}

#home .stat h3 {
  font-size: 4.3rem;
  font-weight: bold;
  color: var(--headline);
  line-height: 130%;
}

#home .stat p {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.6rem;
  line-height: 150%;
}


/*=====Aviso==========================*/


.avisoAtualWrapper{
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;
  margin-bottom: -10%;
}
#avisoAtual {
  display: flex;
  justify-content: center;
  align-items: center;
}
#avisoAtual img {
  width: 1000px;
}


/*=====about=========================*/

#about {
  margin-bottom: -20%;
}
#about .col-b {
  display: flex;
  justify-content: center;
  align-items: center;
}

#about p {
  margin: 20px;
}


/*=====SERVICES==========================*/

#services {
  margin-bottom: -20%;
}

#services h2 {
  margin-bottom: 2rem;
}

#services header {
  margin-top: 1%;
  margin-bottom: 1rem;
}

#services .cards {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.card {
  padding: 2rem;
  text-align: center;
  border: 1px solid hsl(calc(var(--hue) - 22), 23%, 89%);
  border-radius: 0.6rem;
  margin: -10px;
}

#services .card h3 {
  margin-block: 1em;
  font-size: 2.2em;
}

/*=====AGENDA==========================*/
#agenda h2 {
  margin-bottom: 2rem;
}

#agenda header {
  margin-top: 1%;
  margin-bottom: 1rem;
}

#agenda .cards {
  display: flex;
  flex-direction: column;
  border: none;
}

#agenda .card {
  text-align: left;
  border: none;
  max-width: 375px;
}

#agenda h2 {
  margin-inline: auto;
}

#agenda .cards {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4rem;
}

#agenda .card {
  flex-grow: 1;
}

#agenda p {
  font-size: 1.2em;
}
#agenda li {
  font-size: 1.2em;
}

#agenda header {
  margin-top: 8%;
  margin-bottom: 3.2rem;
}

#agenda h2 {
  margin-bottom: 2.4rem;
}

#agenda .content p {
  margin-top: 2.4rem;
  margin-bottom: 6rem;
}

/*=====Doação==========================*/
.doacao {
  display: flex;
  justify-content: center;
  align-items: center;
}

.aviso {
  text-align: center;
  border-radius: 10px;
  background-color: red;
  color: #ffffff;
  font-weight: bold;
  padding: 10px;
  margin-top: -15px;
  margin-bottom: 10px;
}

.divPix {
  max-width: 90vw;
  max-height: 800px;
  border-radius: 10px;
  border: 1px solid #0d4373;
  font-size: medium;
  margin: 10px;
  padding: 30px;
}

/*=====CONTACT==========================*/
#contact {
  text-align: left;
  margin-top: -100px;
  font-size: large;
}

#contact header {
  margin-top: 8%;
  margin-bottom: 3.2rem;
}

#contact ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2rem;
}

#contact ul li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/*=====FOOTER==========================*/
footer {
  background-color: var(--primary-color);
  padding-block: 6rem;

  text-align: left;

  color: white;
}

footer .logo {
  display: inline-block;
  margin-bottom: 2.4rem;
}

footer .logo svg {
  width: 23.6rem;
  height: 3.1rem;
}

footer .logo path {
  fill: white;
}

footer p {
  color: var(--brand-beige);
  line-height: 2;
  margin-bottom: 3.2rem;
}

footer .social-links {
  justify-content: flex-start;
}

/* BACK TO TOP*/
#backToTopButton {
  position: fixed;
  bottom: 1rem;
  right: 2.5rem;

  opacity: 0;
  visibility: hidden;

  transform: translateY(100%);
  transition: 200ms;
}

#backToTopButton.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/*===== RESPONSIVO ==========================*/
@media (min-width: 1024px) {
  /*===== GERAL ==========================*/
  body {
    overflow: auto;
  }

  .wrapper {
    width: min(112rem, 100%);
    display: grid;
  }

  .col-a {
    grid-area: A;
  }

  .col-b {
    grid-area: B;
  }

  section {
    padding-block: 16rem;
  }

  section header h2 {
    font-size: 4rem;
    line-height: 5.2rem;
  }

  /*===== NAVIGATION ==========================*/

  /* reset */
  nav#navigation .wrapper * {
    margin: 0;
    padding: 0;
    visibility: initial;
    display: initial;
    opacity: initial;
    flex-direction: initial;
    position: initial;
    font-size: initial;
    transform: initial;
    color: initial;
    background-color: initial;
    font-weight: initial;
    filter: initial;
  }

  nav#navigation .close-menu,
  nav#navigation .open-menu,
  nav#navigation .social-links {
    display: none;
  }

  nav#navigation .menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 60%;
  }

  nav#navigation .menu ul:nth-child(1) {
    display: flex;
    gap: 3.2rem;
  }

  nav#navigation .menu ul li a {
    color: var(--primary-color);
    opacity: 0.7;
  }

  nav#navigation .menu a.button {
    display: flex;

    justify-content: center;
    align-items: center;
    padding: 1rem 2.4rem;

    border: 1px solid var(--primary-color);
    border-radius: 4rem;

    color: var(--primary-color);

    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.8rem;
    text-transform: uppercase;
  }

  nav#navigation .menu a.button:hover {
    background-color: var(--primary-color);
    border: none;
    color: white;
  }

  nav#navigation.scroll .menu ul li a {
    color: var(--brand-light-2);
    opacity: 0.6;
  }

  nav#navigation.scroll .menu a.button {
    border-color: white;
    color: white;
  }

  nav#navigation .menu li a {
    transition: opacity 0.4s;
  }

  nav#navigation .menu li a.active,
  nav#navigation .menu li a:hover {
    opacity: 1;
    font-weight: bold;
  }

  nav#navigation .menu li a::after {
    content: "";
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);

    position: relative;
    bottom: -2rem;
    left: -0.5rem;

    display: block;

    transition: width 0.2s;
  }

  nav#navigation.scroll .menu li a::after {
    background-color: white;
  }

  nav#navigation .menu li a.active::after,
  nav#navigation .menu li a:hover::after {
    padding-inline: 0.8rem;
    width: 100%;
  }

  nav#navigation.scroll .menu li a.active,
  nav#navigation.scroll .menu li a:hover {
    opacity: 1;
  }

  nav#navigation.scroll .menu a.button.active,
  nav#navigation.scroll .menu li a:hover {
    opacity: 1;
  }

  nav#navigation.scroll .menu a.button.active,
  nav#navigation.scroll .menu a.button:hover {
    background-color: var(--primary-color);
    filter: brightness(1.3);
    border: none;
  }

  /*===== HOME ==========================*/

  #home::before {
    height: calc(96.5% - var(--nav-height));
  }

  #home {
    padding-top: var(--nav-height);
  }

  #home .wrapper {
    grid-template-columns: 60.5rem 1fr;
    grid-template-areas:
      "A B"
      "C C";
  }

  #home .col-a {
    text-align: left;
    align-self: center;
  }

  #home h1 {
    font-size: 5.2rem;
  }

  #home .content p {
    font-size: 1.8rem;
  }

  #home .stats {
    grid-area: C;

    flex-direction: row;
    padding: 6rem;
    gap: 0;
  }

  #home .stats .stat + .stat {
    border-left: 1px solid var(--primary-color);
  }

  #home .stats .stat {
    flex: 1;
  }

  #home .button {
    margin: 0;
  }

  #home img {
    width: 42rem;
  }

  /*===== ABOUT ==========================*/

  #about .wrapper {
    grid-template-columns: 48rem 1fr;
    grid-template-areas: "B A";
    gap: 6.7rem;
  }

  #about col-a {
    align-self: center;
  }

  #about .content p {
    margin-bottom: 0;
  }

  /*===== SERVICES ==========================*/
  #services h2 {
    width: 47rem;
    margin-inline: auto;
  }

  #services .cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4rem;
  }

  #services .card {
    width: 30%;
    flex-grow: 1;
  }

  /*===== CONTACT ==========================*/

  #contact .wrapper {
    grid-template-columns: 1fr 57.5rem;
    grid-template-areas: "A B";
  }

  #contact h2 {
    width: 40.4rem;
  }

  /*===== FOOTER ==========================*/
  footer {
    padding-block: 8rem;
    background-color: #0d4373;
  }

  footer .wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "A B";
  }

  footer .col-a {
    align-self: center;
    background-color: #0d4373;
  }

  footer .col-b {
    align-self: center;
    justify-self: flex-end;
    background-color: #0d4373;
  }

  footer p {
    margin-bottom: 0;
  }
}
