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

:root {
  --main-bg-color: white;
  --color1: #FDB713;
  --color2: #F99E1B;
  --color3: #8ECBE8;
  --color4: #1D9EBD;
  --color5: #1B6983;
  --color6: #053047;
  --simple-text-color: #555;
  --light-gray: #ccc;
  --main-font:  Montserrat;
}

html, body {
  height: 100%;
  min-height: 100%; /* for firefox */
  scroll-behavior: smooth;
  font-family: var(--main-font);
}

body {
  overflow: overlay;
  overflow-x: hidden;
}

li {
  list-style-type: none;
}

li a {
  text-decoration: none;
}

h1 {
  font-weight: 600;
  font-size: 4rem;
}

p {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 2;
}

h2 {
  color: var(--color4);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

/* ---------- Cabeçalho ---------- */
#header {
  background: none;
  height: 25vh;
  width: 100%;
  display: flex;
  top: 0;
  position: fixed;
  padding: 2rem 6rem 2rem 6rem;
  transition: 0.2s;
}

/* ---------- Logo */
#logo-link {
  display: flex;
  height: 85%;
}

#logo-div {
  height: 100%;
  display: flex;
  align-items: center;
}

#logo-txt {
  margin-left: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color4);
  text-decoration-line: none;
}

/* ---------- Navegação */
#navbar {
  margin-left: 50px;
  align-self: center;
}

#navbar-list {
  display: flex;
}

.navbar-item a {
  font-size: 1.1rem;
  color: #333;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.0);
}

.navbar-item {
  margin-left: 50px;
  padding: 0;
}

.navbar-item a:hover {
  border: 1px solid var(--color2);
  cursor: pointer;
  border-radius: 20px;
  color: var(--color2);
}

/* ---------- Social */
#social {
  align-self: center;
  width: 100%;
}

#social-list {
  display: flex;
  justify-content: flex-end;
  margin-right: 2rem;
}

#social-list a {
  font-size: 1.6rem;
  color: var(--color2);
}

#social-list a:hover {
  color: var(--color5);
}

.social-item {
  margin-left: 50px;
}

@media (max-width: 500px) {
  #header {
    position: static;
    height: unset;
    flex-wrap: wrap;
    flex-direction: column;
    padding: 0;
    justify-content: center;
    width: 100%;
  }

  #logo-div {
    height: 8rem;
    justify-content: center;
  }

  #logo-img {
    height: 100%;
  }

  #navbar {
    margin: 1.5rem 0 0 0;
  }

  .navbar-item {
    margin: 0;
    padding: 0 1rem;
  }

  #inicio-item {
    display: none;
  }

  #social {
    display: none;
  }
}

/* ---------- Apresentação ----------*/
#section1 {
  background: url("background.png") no-repeat center center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
}

#wrapper {
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: 5%;
}

#img1-div {
  height: 100%;
  display: flex;
  align-items: center;
  /*margin-top: 10%;*/
}

#img1 {
  height: 60%;
}

#presentation {
  margin: 0 6% 0 6%;
  min-width: 40%;
}

#subtitulo {
  font-size: 2rem;
  color: var(--simple-text-color);
}

#presentation h1 {
  color: var(--color2);
}

@media (max-width: 1024px) {
  #img1-div {
    height: 80%;
  }

  #presentation {
    min-width: 50%;
  }
}

@media (max-width: 500px) {
  #section1 {
    background: none;
    height: 50vh;
  }
  
  #wrapper {
    height: unset;
  }

  #img1-div {
    height: 0%;
  }

  #presentation{
    text-align: center;
  }
}


/* ---------- Segunda parte ----------*/
#section2 {
  height: 100vh;
  /*background-image: url("background2.png");*/
  background-size: 100% 100%;
  display: flex;
  align-items: center;
}

#wrapper2 {
  height: 80%;
  width: 100%;
  display: flex;
  align-items: center;
}

#img2-div {
  height: 100%;
  display: flex;
}

#sobre {
  margin: 0 5% 0 5%;
}

#sobre h1 {
  color:  var(--color5);
}

@media (max-width: 500px) {
  #section2 {
    height: unset;
  }

  #wrapper2 {
    flex-wrap: wrap;
    justify-content: center;
  }

  #img2 {
    width: 100vw;
  }

  #sobre {
    text-align: center;
    margin: 3rem 1rem;
  }
}
/* ---------- Terceira parte ---------- */
#section3 {
  display: flex;
  align-items: center;
  justify-content: center;
}

#wrapper3 {
  width: 85vw;
  margin: 15vh auto;
}

#people-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

}

.person {
  padding: 20px;
  margin: 20px;
  width: 25vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.img-person {
  width: 6rem;
  object-fit: cover;
  border-radius: 100%;
  transition: 0.2s;
}

.img-person:hover {
  width:  8rem;
}

.person-name {
  margin-top: 1.5rem;
}

.person-description {
  font-size: 1rem;
}

@media (max-width: 500px) {
  #wrapper3 {
    margin:  unset;
  }

  .person {
    width: 100%;
  }
}

/* ---------- Quarta Parte ---------- */
#section4 {
  height: 70vh;
  margin-top: 10vh;
  display: flex;
  justify-content: center;
}

#wrapper4 {
  margin-top: 10vh;
  display: flex;
  flex-wrap: wrap;
  width: 70%;
  justify-content: center;
}
/* Newslatters */
#newslatters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#newsad {
  width: 48%;
}

#inpmail {
  display: flex;
  flex-direction: column;
  width: 48%;
}

#email {
  height: 3rem;
  margin: 0.5rem 0 1rem 0;
  padding-left: 0.5rem;
  font-family: var(--main-font);
  font-size: 1rem;
  border: 2px solid var(--light-gray);
  border-radius: 0.2rem;
  color: var(--simple-text-color);
}

#email:focus {
  border-color: var(--color1);
}

#submit {
  background: var(--simple-text-color);
  color: white;
  font-family: var(--main-font);
  font-size: 1rem;
  border-style: none;
  border-radius: 0.5rem;
  padding: 1rem 2rem;
}

#submit:hover {
  background: var(--color1);
  color: var(--color5);
  cursor: pointer;
}

#submit:active {
  background: var(--color2);
  color: var(--color5);
}

/* Social Rodape */
#social-rp {
  width: 50%;
}

#contact {
  text-align: center;
}

#social-rp-list {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
}

#social-rp-list a {
  font-size: 1.6rem;
  color: var(--color2);
}

#social-rp-list a:hover {
  color: var(--color5);
}

.social-rp-item {
  /*margin: 0 50px;*/
}

@media (max-width: 500px) {
  #wrapper4 {
    width: 80%;
    margin: unset;
    margin-bottom: 5rem;
  }
  #section4 {
    height: unset;
  }

  #newslatters {
    flex-direction: column;
    width: unset;
    margin-bottom: 3rem;
  }

  #newsad {
    width: unset;
    margin-bottom: 3rem;
  }

  #inpmail {
    width: unset;
  }

  #submit {
    width: 100%;
  }

  .social-rp-item {

  }
}
 
/* ---------- Rodape ---------- */
#rodape {
  height: 10vh;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

#infos {
  margin-right: 2rem;
}

#rodape-txt {
  font-size: 1rem;
}

@media (max-width: 500px) {
  #rodape {
    height: 5vh;
  }

  #rodape-txt {
    font-size: 0.7rem;
  }
}

/* ---------- ScrollBar ---------- */
/* width */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: rgba(100, 100, 100, 0.5); 
  border-radius: 10px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #777; 
}

/* ---------- Selection ---------- */
::selection {
  color: var(--color1);
  background: var(--color5);
}