@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

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

body {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(4, 448px) 744px 134px;
  grid-template-areas: 
  "header"
  "main-1"
  "main-2"
  "main-3"
  "main-4"
  "footer"
}


header {
  background-image: url(./assets/header-background.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  text-align: center;
  display: flex;
  grid-area: header;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

header h1{
  color: white;
  font-size: 56px;
  margin: 0 0 30px;
  font-family: Luckiest Guy;
  width: 313px;
  height: 112px;
}

 .p-header {
  color: white;
  font-family: Open sans;
  margin: 0 auto;
  width: 757px;
  height: 66px;
 }

 .item-header {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  height: 100%;
  width: 100%;
  grid-area: header;
}

.buttom-1 {
  background-color: white;
  width: 205px;
  height: 44px;
  border-radius: 28px;
  font-family: Open sans;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.buttom-2 {
  color: white;
  background-color: rgba(35, 39, 42, 1);
  width: 281px;
  height: 44px;
  border-radius: 28px;
  font-family: Open Sans;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

header ul {
  display: flex;
  flex-direction: row;
  list-style: none;
  flex: 1;
  gap: 16px;
  justify-content: center;
  margin: 0;
  padding: 0;
}

header ul li {
  cursor: pointer;
  display: inline-block;
}

.main-1 img {
  width: 607px;
  height: 394px;
  text-align: center;
  justify-content: center;
}

.main-1 {
  display: flex;
  text-align: center;
  justify-content: center;
  flex-direction: row;
  margin: auto;
  gap: ;
  grid-area: main-1;
}

.main-1 h2 {
  color: rgba(35, 39, 42, 1);
  width: 329px;
  height: 270px;
  font-weight: 800px;
  font-size: 40px;
  font-family: Open sans;
  text-align: left;
  font-weight: bold;
  margin: 0;
  margin-bottom: 24px;
}

.main-1 p {
  color: rgba(35, 39, 42, 1);
  width: 348px;
  height: 88px;
  font-family: Open Sans, sans-serif;
  text-align: left;
  font-size: 1rem;
  margin: 0;
}

.main-2 img {
  width: 607px;
  height: 394px;
  text-align: center;
  justify-content: center;
}

.main-2 {
  background-color: rgba(246, 246, 246, 1);
  display: flex;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  margin: auto;
  gap: 20px;
  grid-area: main-2;
}

.main-2 h2 {
  color: rgba(35, 39, 42, 1);
  width: 329px;
  height: 108px;
  font-weight: 800px;
  font-size: 40px;
  font-family: Open sans;
  text-align: left;
  font-weight: bold;
  margin: 0 0 16px 0;
}

.main-2 p {
  color: rgba(35, 39, 42, 1);
  width: 348px;
  height: 88px;
  font-family: Open Sans, sans-serif;
  text-align: left;
  font-size: 1rem;
  margin: 0;
}

.main-3 img {
  width: 607px;
  height: 394px;
  text-align: center;
  justify-content: center;
}

.main-3 {
  display: flex;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  margin: auto;
  gap: 20px;
  grid-area: main-3;
}

.main-3 h2 {
  color: rgba(35, 39, 42, 1);
  width: 329px;
  height: 108px;
  font-weight: 800px;
  font-size: 40px;
  font-family: Open sans;
  text-align: left;
  font-weight: bold;
  margin: 0 0 16px 0;
}

.main-3 p {
  color: rgba(35, 39, 42, 1);
  width: 348px;
  height: 88px;
  font-family: Open Sans, sans-serif;
  text-align: left;
  font-size: 1rem;
  margin: 0;
}

.main-4 img {
  width: 784px;
  height: 508px;
}

.main-4 {
  background-color: rgba(246, 246, 246, 1);
  display: flex;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  grid-area: main-4;
  gap: 0;
}

.main-4 h2 {
  color: rgba(35, 39, 42, 1);
  width: 608px;
  height: 80px;
  font-weight: 400px;
  font-size: 40px;
  font-family: Luckiest Guy;
  text-align: center;
  font-weight: bold;
  align-items: center;
  margin: 0 auto;
  margin-bottom: 40px;
}

.main-4 p {
  color: rgba(35, 39, 42, 1);
  width: 802px;
  height: 44px;
  font-family: Open Sans, sans-serif;
  text-align: center;
  font-size: 1rem;
  margin: 24px 0 0 0;
}

.item-main4 {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  height: 100%;
  width: 100%;
  grid-area: main-4;
}

footer {
  background-color: rgba(35, 39, 42, 1);
  grid-area: footer;
  align-items: center;
  text-align: center;
  justify-content: center;
  display: flex;
  height: 100%;
  width: 100%;
}

@media screen and (max-width: 428px) {

  body {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 505px) 506px 140px;
    grid-template-areas: 
    "header"
    "main-1"
    "main-2"
    "main-3"
    "main-4"
    "footer"
  }

  header {
    background-image: url(./assets/header-background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    grid-area: header;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
  }

  .p-header {
    width: 381px;
    height: 132px;
    text-align: left;
    font-family: Open sans;
  }

  header ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    flex: 1;
    gap: 16px;
    justify-content: center;
    margin: 0;
    padding: 0;
  }

  .buttom-1 {
    background-color: white;
    width: 381px;
    height: 54px;
    border-radius: 28px;
    font-family: Open sans;
    font-size: 1rem;
    border: none;
  }

  .buttom-2 {
    color: white;
    background-color: rgba(35, 39, 42, 1);
    width: 381px;
    height: 54px;
    border-radius: 28px;
    font-family: Open sans;
    font-size: 1rem;
    border: none;
  }

  header h1{
    color: white;
    font-size: 36px;
    margin: 0 100px 24px 0;
    font-family: Luckiest Guy;
    width: 278px;
    height: 64px;
    text-align: left;
    justify-content: left;
  }

  header {
    text-align: left;
  }

  .main-1 img{
    width: 379px;
    height: 252px;
  }

  .main-1 {
    grid-area: main-1;
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    margin: 0;
    align-items: center;

  }

  .main-1 h2 {
    color: rgba(35, 39, 42, 1);
    width: 370px;
    height: 99px;
    font-size: 24px;
    font-family: Open sans;
    text-align: left;
    font-weight: bold;
    margin: 0;
  }

  .main-1 p {
    color: rgba(35, 39, 42, 1);
    width: 378px;
    height: 88px;
    font-size: 1rem;
    font-family: Open sans;
    text-align: left;
    font-size: 1rem;
    margin: 0;

  }

  .item-main-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Alinha o conteúdo à esquerda */
    gap: 24px;
  }

  .main-2 img {
    width: 379px;
    height: 252px;
    text-align: center;
    justify-content: center;
  }

  .main-2 {
    background-color: rgba(246, 246, 246, 1);
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column-reverse;
    margin: auto;
    gap: 20px;
    grid-area: main-2;
  }

  .main-2 h2 {
    color: rgba(35, 39, 42, 1);
    width: 379px;
    height: 33px;
    font-weight: 800px;
    font-size: 24px;
    font-family: Open sans;
    text-align: left;
    font-weight: bold;
    margin: 0 0 16px 0;
  }

  .main-2 p {
    color: rgba(35, 39, 42, 1);
    width: 378px;
    height: 88px;
    font-family: Open Sans, sans-serif;
    text-align: left;
    font-size: 1rem;
    margin: 0;
  }

  .main-3 img {
    width: 379px;
    height: 252px;
    text-align: center;
    justify-content: center;
  }

  .main-3 {
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: auto;
    gap: 20px;
    grid-area: main-3;
  }

  .main-3 h2 {
    color: rgba(35, 39, 42, 1);
    width: 379px;
    height: 33px;
    font-weight: 800px;
    font-size: 24px;
    font-family: "Open Sans", sans-serif;
    text-align: left;
    margin: 0 0 16px 0;
  }

  .main-3 p {
    color: rgba(35, 39, 42, 1);
    width: 378px;
    height: 88px;
    font-family: Open Sans, sans-serif;
    text-align: left;
    font-size: 1rem;
    margin: 0;
  }

  .main-4 img {
    width: 379px;
    height: 252px;
  }

  .main-4 {
    background-color: rgba(246, 246, 246, 1);
    display: flex;
    width: 100%;
    height: 100%;
    text-align: center;
    align-items: center;
    justify-content: center;
    grid-area: main-4;
    gap: 0;

  }

  .main-4 h2 {
    color: rgba(35, 39, 42, 1);
    font-size: 2rem;
    font-family: 'Luckiest Guy', cursive;
    text-align: left; 
    margin: 0 auto;      
    width: 376px;       
    height: auto;
  }

  .main-4 p {
    color: rgba(35, 39, 42, 1);
    width: 378px;
    height: 110px;
    font-size: 1rem;
    font-family: Open Sans, sans-serif;
    text-align: left;
    margin: 0;
  }

  footer img{
    width: 162px;
    height: 30,77px;
  }

}
