/*--- grid ---*/
.grid-container, #section-2.grid-container, #section-4.grid-container, #section-3.grid-container, #section-5.grid-container {
  max-width: 1408px !important;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-column-gap: 2rem;
  padding: 0 4rem;
  box-sizing: content-box;
  margin: 0 auto !important;
  grid-template-rows: max-content;
  grid-row-gap: inherit;
}

 /* Layout tablet */
@media (max-width: 1279px) and (min-width: 600px) {
  .grid-container, #section-1.grid-container {
		padding: 0 2rem;
        grid-template-columns: repeat(8, minmax(0, 1fr));
		grid-column-gap: 2rem;
    }
}

@media (max-width: 1024px) and (min-width: 600px) {
    #section-2.grid-container, #section-4.grid-container, #section-3.grid-container, #section-5.grid-container {
		padding: 0 2rem;
        grid-template-columns: repeat(8, minmax(0, 1fr));
		grid-column-gap: 2rem;
    }
}

/* Layout mobile */
@media (max-width: 599px) {
    .grid-container, #section-2.grid-container, #section-4.grid-container, #section-3.grid-container, #section-5.grid-container {
		padding: 0 1rem !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-column-gap: 1rem;
    }
}

/* breadcrumb */
.breadcrumb ul {
  color: var(--wp--preset--color--custom-blu);
}

.breadcrumb li a {
  color: var(--wp--preset--color--custom-blu);
}

/* section 1*/
#section-1 .offerta-page-title {
  grid-column: 1 / 11;
    grid-row: 1;
}

.show-mobile {
  display: none;
}

#section-1 hr {
    grid-column: 1 / 13;
    width: 100%;
    height: 1px;
    border: none;
    background-color: var(--wp--preset--color--custom-blu);
    grid-row: 2;
}

#section-1 .paragrafo-1 {
  grid-column: 1 / 8;
  grid-row: 3;
}

#section-1 .payoff-1 {
  grid-column: 8 / 13;
  grid-row: 4;
  width: 100%;
}

#section-1 .payoff-2 {
  grid-column: 5 / 13;
  grid-row: 5;
  width: 100%;
}

#section-1 .head-percorsi {
  grid-column: 1 / 7;
  width: 100%;
    grid-row: 6;
}

#section-1 .cit {
  grid-column: 1 / 11;
    grid-row: 7;
}

#section-1 .sub-head-percorsi {
  grid-column: 1 / 7;
  width: 100%;
    grid-row: 8;
}

#section-1 .percorsi-cta {
  grid-column: 1 / 4;
    grid-row: 9;
}

/* section 2*/
#section-2 .video-wrapper {
  grid-area: 1 / 1 / 6 / 6;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
  border-radius: 2.5rem;
  /*background-color: var(--wp--preset--color--custom-giallo);
  padding: 1rem;*/
  max-width: 19rem;
  aspect-ratio: 9 / 16;
}

#section-2 .video-wrapper img {
  border-radius: 2rem;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
}

#section-2 .icon-wrapper {
  grid-column: 11 / 13;
  width: 100%;
  height: fit-content;
  align-self: center;
}

#section-2 .icon-container.ipicon {
  font-size: 2.5rem;
  border-radius: 3rem;
  background-color: var(--wp--preset--color--custom-azzurro);
  width: 5.5rem;
  height: 5.5rem;
  line-height: 5.5rem;
  text-align: center;
  border: 1px solid var(--wp--preset--color--custom-base);
  color: var(--wp--preset--color--custom-blu);
  display: block;
}

#section-2 .category-head {
  grid-column: 6 / 10;
  width: 100%;
  height: fit-content;
  align-self: center;
}

#section-2 .category-p-1 {
  grid-column: 6 / 11;
  width: 100%;
    grid-row: 2;
    margin-top: 2rem;
}

#section-2 .category-p-2 {
  grid-column: 6 / 11;
  width: 100%;
    grid-row: 3;
}

#section-2 .category-cta {
  grid-column: 6 / 10;
  width: 100%;
}

#section-2 hr {
  grid-column: 1 / 13;
  width: 100%;
  height: 1px;
  border: none;
  background-color: var(--wp--preset--color--custom-base);
  margin: 8rem 0;
}

/* section 3*/
#section-3 .icon-wrapper {
  grid-column: 1 / 3;
  width: 100%;
  height: fit-content;
  align-self: center;
}

#section-3 .icon-container.ipicon {
  font-size: 2.5rem;
  border-radius: 3rem;
  background-color: var(--wp--preset--color--custom-azzurro);
  width: 5.5rem;
  height: 5.5rem;
  line-height: 5.5rem;
  text-align: center;
  border: 1px solid var(--wp--preset--color--custom-base);
  color: var(--wp--preset--color--custom-blu);
  display: block;
}

#section-3 .category-head {
  grid-column: 3 / 8;
  width: 100%;
  height: fit-content;
  align-self: center;
}

#section-3 .category-p-1 {
  grid-column: 3 / 8;
  width: 100%;
    margin-top: 2rem;
}

#section-3 .category-p-2 {
  grid-column: 3 / 8;
  width: 100%;
}

#section-3 .category-cta {
  grid-column: 4 / 8;
  width: 100%;
}

#section-3 .video-wrapper {
  grid-area: 1 / 8 / 6 / 13;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
  border-radius: 2.5rem;
  /*background-color: var(--wp--preset--color--custom-giallo);
  padding: 1rem;*/
  max-width: 19rem;
  aspect-ratio: 9 / 16;
}

#section-3 .video-wrapper img {
  border-radius: 2rem;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
}

/* section 4*/
#section-4 .video-wrapper {
  grid-area: 1 / 1 / 6 / 6;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
  border-radius: 2.5rem;
  /*background-color: var(--wp--preset--color--custom-giallo);
  padding: 1rem;*/
  max-width: 19rem;
  aspect-ratio: 9 / 16;
}

#section-4 .video-wrapper img {
  border-radius: 2rem;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
}

#section-4 .icon-wrapper {
  grid-column: 11 / 13;
  width: 100%;
  height: fit-content;
  align-self: center;
}

#section-4 .icon-container.ipicon {
  font-size: 2.5rem;
  border-radius: 3rem;
  background-color: var(--wp--preset--color--custom-azzurro);
  width: 5.5rem;
  height: 5.5rem;
  line-height: 5.5rem;
  text-align: center;
  border: 1px solid var(--wp--preset--color--custom-blu);
  color: var(--wp--preset--color--custom-blu);
  display: block;
}

#section-4 .category-head {
  grid-column: 6 / 10;
  width: 100%;
  height: fit-content;
  align-self: center;
}

#section-4 .category-p-1 {
  grid-column: 6 / 11;
  width: 100%;
  grid-row: 2;
  margin-top: 2rem;
}

#section-4 .category-p-2 {
  grid-column: 6 / 11;
  width: 100%;
  grid-row: 3;
}

#section-4 .category-cta {
  grid-column: 6 / 10;
  width: 100%;
}

#section-4 hr {
  grid-column: 1 / 13;
  width: 100%;
  height: 1px;
  border: none;
  background-color: var(--wp--preset--color--custom-blu);
  margin: 8rem 0;
}

/* section 5*/
#section-5 .icon-wrapper {
  grid-column: 1 / 3;
  width: 100%;
  height: fit-content;
  align-self: center;
}
#section-5 .icon-container.ipicon {
  font-size: 2.5rem;
  border-radius: 3rem;
  background-color: var(--wp--preset--color--custom-azzurro);
  width: 5.5rem;
  height: 5.5rem;
  line-height: 5.5rem;
  text-align: center;
  border: 1px solid var(--wp--preset--color--custom-blu);
  color: var(--wp--preset--color--custom-blu);
  display: block;
}

#section-5 .category-head {
  grid-column: 3 / 8;
  width: 100%;
  height: fit-content;
  align-self: center;
}

#section-5 .category-p-1 {
  grid-column: 3 / 8;
  width: 100%;
    margin-top: 2rem;
}

#section-5 .category-p-2 {
  grid-column: 3 / 8;
  width: 100%;
}

#section-5 .category-cta {
  grid-column: 4 / 8;
  width: 100%;
}

#section-5 .video-wrapper {
  grid-area: 1 / 8 / 6 / 13;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
  border-radius: 2.5rem;
  /*background-color: var(--wp--preset--color--custom-giallo);
  padding: 1rem;*/
  max-width: 19rem;
  aspect-ratio: 9 / 16;
}

#section-5 .video-wrapper img {
  border-radius: 2rem;
  /*border: 1px solid var(--wp--preset--color--custom-blu);*/
}

/* Media query */
/* Layout tablet */
@media (max-width: 1279px) and (min-width: 600px) {
/* section 1 */
    #section-1 .offerta-page-title {
  grid-column: 1 / 9;
}

    #section-1 hr {
    grid-column: 1 / 9;
}

    #section-1 .paragrafo-1 {
  grid-column: 1 / 7;
}

    #section-1 .payoff-1 {
  grid-column: 4 / 9;
}

    #section-1 .payoff-2 {
  grid-column: 2 / 9;
}

    #section-1 .head-percorsi {
  grid-column: 1 / 8;
}

    #section-1 .cit {
  grid-column: 1 / 9;
}

    #section-1 .sub-head-percorsi {
  grid-column: 1 / 8;
}

  #section-1 .percorsi-cta {
    grid-column: 1 / 5;
    width: 100%;
  }
}

@media (max-width: 1024px) and (min-width: 600px) {
  /* section 2 - section 4 -- section 3 - section 5 */
#section-2 .category-head, #section-2 .category-p-1, #section-2 .category-p-2, 
#section-4 .category-head, #section-4 .category-p-1, #section-4 .category-p-2 {
  grid-column: 1 / 7;
}

#section-2 .category-cta, #section-4 .category-cta {
  grid-column: 6 / 9;
  grid-row: 6 / 7;
  height: fit-content;
  align-self: end;
  justify-content: end;
}

#section-3 .category-head, #section-3 .category-p-1, #section-3 .category-p-2,
#section-5 .category-head, #section-5 .category-p-1, #section-5 .category-p-2 {
  grid-column: 3 / 9;
}

#section-3 .category-cta, #section-5 .category-cta {
  grid-column: 1 / 4;
  grid-row: 6 / 7;
  height: fit-content;
  align-self: end;
  justify-content: start;
}

#section-2 .icon-wrapper, #section-4 .icon-wrapper {
   grid-column: 7 / 9;
   grid-row: 1;
    display: flex;
    justify-content: flex-end;
}

#section-3 .icon-wrapper, #section-5 .icon-wrapper {
   grid-column: 1 / 3;
    grid-row: 1;
}

#section-2 .icon-container.ipicon, #section-4 .icon-container.ipicon {
    position: relative;
    margin: 0 !important;
}

 #section-3 .icon-container.ipicon, #section-5 .icon-container.ipicon {
     position: relative;
     left: 0;
     display: block;
     margin: 0 !important;
     grid-column: 3 / 9;
}

 #section-2 .video-wrapper, #section-4 .video-wrapper {
  grid-area: 6 / 1 / 6 / 8;
  margin: 0 !important;
}

 #section-3 .video-wrapper, #section-5 .video-wrapper {
     grid-area: 6 / 1 / 6 / 9;
    margin: 0 !important;
    justify-self: end;
}

#section-2 .video-wrapper img, #section-4 .video-wrapper img, #section-3 .video-wrapper img, #section-5 .video-wrapper img {
  width: 100%;
}

#section-2 hr, #section-4 hr {
  grid-column: 1 / 9;
  grid-row: 7;
}
}

/* Layout mobile */
@media (max-width: 599px) {
/* section 1 */
#section-1 .offerta-page-title {
    grid-column: 1 / 5;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

#section-1 hr {
  grid-column: 1 / 5;
}

#section-1 .paragrafo-1 {
  grid-column: 1 / 5;
  padding-top: 2rem !important;
}

#section-1 .payoff-1 {
  grid-column: 2 / 5;
  padding-top: 2rem !important;
}

#section-1 .payoff-2 {
  grid-column: 1 / 5;
  margin-bottom: 5rem !important;
}

#section-1 .head-percorsi {
  grid-column: 1 / 4;
}

#section-1 .cit {
  grid-column: 1 / 5;
}

#section-1 .sub-head-percorsi {
  grid-column: 1 / 5;
}

 #section-1 .percorsi-cta {
  grid-column: 1 / 5;
  width: 100%;
  padding-bottom: 5rem !important;
}

/* section 2 - section 4 -- section 3 - section 5 */
#section-2 .category-head, #section-4 .category-head {
    grid-column: 1 / 5;
    grid-row: 2;
}
#section-3 .category-head, #section-5 .category-head {
  grid-column: 1 / 5;
  grid-row: 2;
}

    
#section-2 .icon-wrapper, #section-4 .icon-wrapper {
   grid-column: 3 / 5;
    width: 100%;
    position: relative;
    grid-row: 1;
    display: flex;
    justify-content: flex-end;
    margin: 2rem 0 1rem 0;
}

#section-3 .icon-wrapper, #section-5 .icon-wrapper {
    grid-column: 1 / 3;
    width: 100%;
    position: relative;
    grid-row: 1;
    display: flex;
    justify-content: flex-start;
    margin: 2rem 0 1rem 0;
}

#section-2 .icon-container.ipicon, #section-4 .icon-container.ipicon {
    position: relative;
    right: 0;
    display: block;
    margin: 0 !important;
}

 #section-3 .icon-container.ipicon, #section-5 .icon-container.ipicon {
     position: relative;
     right: 0;
     display: block;
     margin: 0 !important;        
}
    
#section-2 .category-p-1, #section-4 .category-p-1, #section-3 .category-p-1, #section-5 .category-p-1 {
  grid-column: 1 / 5;
    grid-row: 3;
}

#section-2 .category-p-2, #section-4 .category-p-2, #section-3 .category-p-2, #section-5 .category-p-2 {
  grid-column: 1 / 5;
    grid-row: 4;
}

#section-2 .category-cta, #section-4 .category-cta {
  grid-column: 1 / 5;
  width: 100%;
  margin-bottom: 5rem;
    grid-row: 5;
}

 #section-3 .category-cta, #section-5 .category-cta {
  grid-column: 1 / 5;
  width: 100%;
  margin-bottom: 5rem;
     grid-row: 5;
}

 #section-2 .video-wrapper, #section-4 .video-wrapper {
  grid-area: 6 / 1 / 6 / 5;
  /*margin: 0 !important;*/
}

#section-3 .video-wrapper, #section-5 .video-wrapper {
  grid-area: 6 / 1 / 6 / 5;
  /*margin: 0 !important;
    justify-self: end;*/
}

#section-2 hr, #section-4 hr {
  grid-column: 1 / 5;
  grid-row: 7;
  margin: 5rem 0 0 0;
}

#section-5.grid-container {
  margin-bottom: 5rem !important;
}
}