

.section-main {
  background-color: #fff4e6;
}

.div-section-main {
  max-width: 160rem;
  margin: 0em auto;
  padding: 4.8rem;
  padding-top: 12.8rem;
  
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* grid-template-rows: repeat(4, 1fr); */
  grid-template-rows: auto 1fr auto auto auto;
  justify-items: center;
  align-items: center;
  column-gap: 4.8rem;
}

.div-main-image {
  grid-column: 7 / -1;
  grid-row: 1 / -1;
}

.div-main-image img {
  width: 100%;
}

.div-main-buttons {
  grid-column: 1 / 7;
  grid-row: -2 / -1;
}

.main-description-h1 {
  grid-column: 1 / 7;
  grid-row: 3 / 4;
  font-size: 7.4rem;
  padding-bottom: 4.8rem;
  font-weight: 500;
  justify-self: start;
}

.main-description-h2 {
  grid-column: 1 / 7;
  grid-row: 1 / 2;
  font-size: 5.2em;
  font-weight: 500;
  padding-top: 6.4rem;
  color: #1864ab;
  justify-self: start;
}

.main-description-h3 {
  grid-column: 1 / 7;
  grid-row: 2 / 3;
  font-size: 3.6em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.3em;
  justify-self: start;
}


.div-main-buttons {
  display: flex;
  padding: 2.4rem 0;
  gap: 10em;
}

.hero-button:link,
.hero-button:visited {
  font-size: 2rem;
  background-color: #1864ab;
  color: #fff4e6;
  text-decoration: none;
  display: inline-block;
  padding: 1.2rem 1.6rem;
  border-radius: 6px;
  transition: all 0.3s;
  border: 0.5rem solid #fff4e6;
  text-align: center;
}

.hero-button:hover,
.hero-button:active {
  border: 0.4rem solid #ff922b;
  color: #ff922b;
}

/* @@@@@@@@@@@ */
/* 1296 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 81em) {
 
  .main-description-h1 {
    font-size: 6.2rem;
	padding-bottom: 3.2rem;
  }

  .main-description-h2 {
    font-size: 4.4em;
	padding-top: 4.8rem;
  }

  .main-description-h3 {
    font-size: 3em;
  }

  .div-main-buttons {
    gap: 5em;
  }
}

/* @@@@@@@@@@@ */
/* 1136 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 71em) {
  
  .hero-button:link,
  .hero-button:visited {
	font-size: 1.8rem;
  }  
}

/* @@@@@@@@@@@ */
/* 1104 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 69em) {
  
  /* i bottoni vanno sotto tutto e quindi l'immagine
    si rimpicciolisce  */
  
  .div-section-main {
    column-gap: 3.2rem;
  }

  .div-main-image {
    grid-row: 1 / 4;
  }

  .main-description-h2 {
    font-size: 3.6em;
	padding-top: 4.8rem;
  }
  
  .main-description-h3 {
    font-size: 3rem;
  }

  .main-description-h1 {
    font-size: 5.2em;
	padding-bottom: 4.8rem;
  }
  
  .div-main-buttons {
    grid-column: 1 / -1;
  }  
}


@media (max-width: 57em) {
  .main-description-h2 {
	padding-top: 3.2rem;
    font-size: 3.0em;
	justify-self: center;
  }
  
  .main-description-h1 {
    font-size: 4.4rem;
	justify-self: center;
	padding-bottom: 3.2rem;
  }
  
  .main-description-h3 {
	justify-self: center;
    font-size: 2.4rem;
  }
}

@media (max-width: 49em) {
	
  .main-description-h2 {
	padding-top: 2.4rem;
    font-size: 2.4em;
  }
  
  .main-description-h1 {
	padding-bottom: 2.4rem;
	font-size: 3.6rem;
  }	
}


@media (max-width: 43em) {
  .div-section-main {
	grid-template-columns: 1fr;
  }

  .main-description-h2 {
	grid-column: 1 / -1;
	
	
	font-size: 3.6em;
	grid-row: 1 / 2; 
	padding-bottom: 3.2rem;
	padding-top:0;
	
  }
  
   .div-main-image {
	grid-column: 1 / -1; 
	grid-row: 2 / 3; 
	width: 80%;
	padding-bottom: 0;
  }

  .main-description-h3 {
	grid-column: 1 / -1;
	
	grid-row: 3 / 4;
    font-size: 3rem;
	padding-bottom: 3rem;
	padding-top: 3rem;
  }

  .main-description-h1 {
    grid-column: 1 / -1;    
    font-size: 5.6em;
	grid-row: 4 / 5;
	padding-bottom: 0;
  }
}

/* @@@@@@@@@@@ */
/* 560 pixels */
/* @@@@@@@@@@@ */

@media (max-width: 35em) {
  .div-main-buttons{
	flex-direction: column;
	gap: 1.2rem;
  }
  
  .main-description-h2 {
	font-size: 3rem;
  }
}

/* @@@@@@@@@@@ */
/* 480 pixels */
/* @@@@@@@@@@@ */


@media (max-width: 28em) {
	
	
	.div-section-main {
		padding-left: 0;
		padding-right: 0;
	}
	
	.main-description-h2 {
		font-size: 2.4rem;
		
	}

	
	.main-description-h1 {
		font-size: 3.6rem;
		
	}
}

