challenge-landing-page-vito.../assets/styles/main.css

293 lines
5.1 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Inter', sans-serif;
color: #000000;
}
/*Adiciona header*/
.page-header {
display: flex;
justify-content: center;
padding: 29px;
background: #000000;
}
.header-logo {
display: block;
}
/*Adiciona banner principal*/
.main-banner {
display: block;
width: 100%;
}
/*Adiciona top infocard*/
.top-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 70px 0 180px;
}
.top-infocard-text {
margin-bottom: 70px;
max-width: 766px;
}
.top-infocard-subtitle {
font-size: 32px;
line-height: 39px;
text-align: center;
text-transform: uppercase;
}
.top-infocard-title {
font-weight: 500;
font-size: 48px;
line-height: 58px;
padding: 0 0 28px;
text-align: center;
text-transform: uppercase;
}
.top-infocard-description {
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Adiciona top cards*/
.top-cards {
display: grid;
grid-template-columns: repeat(3, max-content);
gap: 20px;
justify-content: center;
padding: 0 0 80px;
}
.top-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 26px 26px;
box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.23);
}
.top-card-image {
display: block;
margin-bottom: 26px;
}
.top-card-description {
max-width: 300px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
.middle-banner {
position: relative;
display: flex;
justify-content: center;
margin-bottom: 162px;
padding: 0 72px;
}
.middle-banner-wrapper {
display: flex;
align-items: center;
gap: 40px;
}
.middle-banner-image img {
width: 100%;
}
.middle-banner-background {
position: absolute;
background: #E0E0E0;
height: 85%;
width: 100%;
top: -32px;
left: 0;
z-index: -1;
}
/*Adiciona bottom card*/
.bottom-cards {
display: grid;
grid-template-columns: repeat(4, max-content);
gap: 16px;
padding: 0 0 108px 0;
max-width: fit-content;
margin: 0 auto;
}
.bottom-card {
display: flex;
flex-direction: column;
align-items: center;
padding: 36px 32px 65px;
box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
}
.bottom-card-image {
display: block;
margin-bottom: 18px;
}
.bottom-card-description {
max-width: 368px;
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Adiciona bottom infocard*/
.bottom-infocard {
display: flex;
flex-direction: column;
align-items: center;
padding: 0px 72px 116px;
}
.bottom-infocard-image {
max-width: 1360px;
width: 100%;
margin-top: 50px;
}
.bottom-infocard-text {
max-width: 550px;
}
.bottom-infocard-title {
font-weight: 600;
font-size: 32px;
line-height: 39px;
text-align: center;
}
.bottom-infocard-description {
font-size: 16px;
line-height: 24px;
text-align: center;
}
/*Media Querie*/
@media screen and (max-width: 414px) {
.main-banner {
content: url('../imagens/main-banner-mobile.png');
}
.bottom-card-description {
font-size: 14px;
}
}
@media screen and (max-width:1776px) {
.bottom-cards {
grid-template-columns: repeat(2, 1fr);
}
}
@media screen and (max-width: 768px) {
.top-cards {
grid-template-columns: 1fr;
padding: 0 32px 80px;
}
.bottom-cards {
grid-template-columns: 1fr;
padding: 0 24px 98px;
}
.bottom-infocard {
flex-direction: column-reverse;
padding: 0 0 88px 0;
}
.bottom-infocard-image {
content: url('../imagens/bottom-banner-mobile.png');
margin: 0 0 50px 0;
}
.bottom-infocard-title {
font-size: 24px;
line-height: 20px;
margin: 0 0 18px 0;
}
.bottom-infocard-description {
padding: 0 30px 0;
}
}
@media screen and (max-width: 992px) {
.top-infocard {
padding: 70px 30px 90px;
}
.top-infocard-subtitle {
font-size: 20px;
line-height: 24px;
}
.top-infocard-title {
font-size: 28px;
line-height: 34px;
}
.top-infocard-text {
margin: 0 0 65px;
}
.top-infocard-image {
width: 100%;
max-width: 240px;
}
.middle-banner {
padding: 0;
margin-bottom: 80px;
}
.middle-banner-wrapper {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(2, auto);
padding: 30px 23px 0;
margin-bottom: 80px;
gap: 14px;
max-width: 900px;
}
.middle-banner-image:nth-child(1) {
order: 2;
}
.middle-banner-image:nth-child(2) {
order: 1;
}
.middle-banner-image:nth-child(3) {
grid-column: 1 / span 2;
order: 3;
width: 100%;
}
}
@media screen and (min-width: 768px) and (max-width: 1200px) {
.top-cards {
grid-template-columns: repeat(2, max-content);
}
}