* { margin: 0; padding: 0; box-sizing: border-box; /*mantem a largura do elemento determinada no widht e nao adiciona o tamanho do padding no calculo, porem ele vai estar la*/ } body { font-family: 'Inter', sans-serif; color: #000; } .page-header { display: flex; justify-content: center; padding: 28px 0; background: #000; } .header-logo { display: block; } .main-banner, .middle-banner { width: 100%; display: block; } .top-infocard { display: flex; align-items: center; justify-content: center; padding: 80px 0 96px; } .top-infocard-text { max-width: 766px; /*tamanho maximo da parte de textos no figma*/ margin-right: 124px; } .top-infocard-subtitle { font-size: 32px; font-weight: 400; text-transform: uppercase; } .top-infocard-title { font-size: 40px; font-weight: 500; text-transform: uppercase; margin-bottom: 24px; } .top-infocard-description { font-size: 16px; line-height: 24px; } .top-cards{ padding: 74px 0; background: #F0F0F0; display: grid; grid-template-columns: repeat(3, max-content); /*divide em 3, e cada espaço o tamanho do card. OU 1f=1 fraçao (poderia ser 1f, 1f, 1f)*/ gap: 20px; /*espaçamento entre eles*/ justify-content: center; } .top-card{ display: flex; flex-direction: column; /*alinhar por coluna*/ align-items: center; background: #FFFFFF; box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23); padding: 26px 26px 34px; } .top-card-image{ display: block; /*mexer com tamanho pading de imagem*/ margin-bottom: 26px; } .top-card-description{ max-width: 300px; font-size: 16px; line-height: 24px; text-align: center; } .bottom-cards{ margin-top: 140px; background: linear-gradient(180deg, #00C8FF 0%, #15ACD6 100%); } .bottom-cards-wrapper{ display: grid; grid-template-columns: repeat(2, max-content); justify-content: center; gap: 20px; /*poderia escolher por collum gap ou row gap*/ position: relative; top: -60px; } .bottom-card{ display: flex; flex-direction: column; align-items: center; background: #FFFFFF; box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15); padding: 36px 32px 66px; } .bottom-card-description{ max-width: 368px; font-size: 16px; line-height: 24px; text-align: center; } .bottom-card-image{ display: block; margin-bottom: 14px; } .bottom-infocard{ display: flex; align-items: center; justify-content: center; } .bottom-infocard-image{ margin-right: 40px; padding: 142px 0 180px; } .bottom-infocard-text{ max-width: 550px; } .bottom-infocard-title{ font-weight: 600; /*IMPORTAR DO GOOGLE TB*/ font-size: 32px; line-height: 1; /*mantem o mesmo do fontesize*/ margin-bottom: 18px; } .bottom-infocard-description{ font-size: 16px; line-height: 24px; } @media screen and (max-width: 414px) { /*esse pixel pq é o tamanho maximo da imagem banner mobile*/ .main-banner-desktop, .middle-banner-desktop{ display: none; } } @media screen and (min-width: 415px) { /*esse pixel pq é o tamanho maximo da imagem banner mobile*/ .main-banner-mobile, .middle-banner-mobile{ display: none; } } @media screen and (max-width: 768px) { .top-cards{ grid-template-columns: 1fr; /*uma coluna unica ocupa todo o espaço*/ padding: 36px 26px; } .bottom-cards{ margin-top: 114px; padding: 0 26px; } .bottom-cards-wrapper{ grid-template-columns: 1fr; /*uma coluna unica ocupa todo o espaço*/ gap: 16px; } .bottom-card-description{ font-size: 14px; } } @media screen and (max-width: 992px) { .top-infocard{ flex-direction: column; padding: 84px 26px 158px; } .top-infocard-text{ margin: 0 0 68px; } .top-infocard-subtitle{ font-size: 20px; } .top-infocard-title{ font-size: 28px; margin-bottom: 20px; } .top-infocard-image{ width: 100%; max-width: 240px; } .bottom-infocard{ flex-direction: column; padding: 80px 0 136px; } .bottom-infocard-image{ width: 100%; /*POREM DEIXAR O MAX WIDTH DO TAMANHO DA IMAGEM PRA NAO ESTICAR*/ max-width: 596px; margin: 0 0 50px; } .bottom-infocard-title{ font-size: 24px; } .bottom-infocard-text{ padding: 0 26px; } } @media screen and (min-width: 769px) and (max-width: 1200px) { .top-cards{ grid-template-columns: repeat(2, max-content); /*limitar ate 2 colunas / tb da pra testar usando 1fr*/ } } @media screen and (min-width: 769px) and (max-width: 992px) { .bottom-card-description{ max-width: 280px; } } @media screen and (min-width: 993px) and (max-width: 1280px) { .top-infocard-text{ max-width: 520px; margin-right: 70px; } .bottom-infocard-image{ max-width: 480px; } .bottom-infocard-text{ max-width: 400px; } }