/*--- grid ---*/
.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 {
		padding: 0 2rem;
        grid-template-columns: repeat(8, minmax(0, 1fr));
		grid-column-gap: 2rem;
    }
}

/* Layout mobile */
@media (max-width: 599px) {
    .grid-container {
		padding: 0 1rem;
        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 {
  padding-bottom: 8rem;
}

#section-1 .page-title {
  grid-column: 1 / 11;
    grid-row: 1;
    margin: 4rem 0 3rem;
    hyphens: none;
}

#section-1 .mobile-br {
  display: none;
}

#section-1 .icon-wrapper {
	grid-column: 11 / 13;
	grid-row: 1;
	align-self: end;
	margin-bottom: 3rem;
	text-align: right;
	width: 100%;
	display: flex;
	justify-content: flex-end;
}

#section-1 .icon-container.ipicon {
	font-size: 5rem;
  color: var(--wp--preset--color--custom-blu);
}

#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;
  margin: 4rem 0 1rem;
}

#section-1 .paragrafo-2 {
  grid-column: 1 / 8;
  grid-row: 4;
  margin: 0 0 1rem;
}

#section-1 .head-img-container {
  grid-column: 1 / 8;
  grid-row: 5;
  margin: 7rem 0 0;
}

#section-1 .head-cta-container {
  grid-column: 9 / 12;
  grid-row: 5;
  align-self: center;
  row-gap: 4rem;
}

/* section 2 */
#section-2 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#section-2 .table-title {
  grid-column: 1 / 13;
  width: 100%;
  margin: 3rem 0 2rem;
}

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

/*--- Tabella ---*/
#section-2 .table-program {
  grid-column: 1 / 13;
  width: 100%;
  margin: 7rem 0 3rem;
}

#section-2 .table-program .screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

/* Container della tabella con bordo esterno e angoli arrotondati */
#section-2 .table-program table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  border: 1px solid var(--wp--preset--color--custom-blu);
  overflow: hidden;
}

/* Stili base per tutte le celle */
#section-2 .table-program th,
#section-2 .table-program td {
  border: none;
}

/* Bordi delle celle dell'intestazione (th) */
#section-2 .table-program thead th {
  border-right: 1px solid var(--wp--preset--color--custom-blu);
  border-bottom: 1px solid var(--wp--preset--color--custom-blu);
}

/* Rimuove il bordo destro dell'ultima cella dell'intestazione */
#section-2 .table-program thead th:last-child {
  border-right: none;
}

/* Bordi del corpo della tabella (td) */
#section-2 .table-program tbody td {
  border-right: 1px solid var(--wp--preset--color--custom-blu);
  border-bottom: 1px solid var(--wp--preset--color--custom-blu);
}

/* Rimuove il bordo destro dell'ultima cella di ogni riga del corpo */
#section-2 .table-program tbody tr td:last-child {
  border-right: none;
}

/* Rimuove il bordo inferiore dell'ultima riga del corpo */
#section-2 .table-program tbody tr:last-child td {
  border-bottom: none;
}

#section-2 .table-program td:first-child {
  font-family: var(--wp--preset--font-family--dm-sans);
  font-size: var(--wp--preset--font-size--medium);
}

#section-2 .table-program th:nth-child(1), #section-2 .table-program th:nth-child(2) {
  font-family: var(--wp--preset--font-family--aleo);
  font-size: var(--wp--preset--font-size--custom-7);
  background-color: var(--wp--preset--color--custom-giallo);
  text-align: left;
  height: 8rem;
  padding: 0 0 0 2rem;
}

#section-2 .table-program td:nth-child(1), #section-2 .table-program td:nth-child(2) {
    font-family: var(--wp--preset--font-family--dm-sans);
    font-size: var(--wp--preset--font-size--medium);
    text-align: left;
	font-weight: 500;
	height: 4rem;
	padding: 0 0 0 2rem;
}

/* Media query */
/* Layout tablet */
@media (max-width: 1279px) and (min-width: 600px) {
#section-1 {
  padding-bottom: 5rem;
}

#section-1 .icon-wrapper {
	grid-column: 7 / 9;
	grid-row: 1;
	margin: 2rem 0 0;
}

#section-1 .page-title {
	grid-column: 1 / 9;
	grid-row: 2;
	margin: 2rem 0;
}

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

#section-1 .paragrafo-1, #section-1 .paragrafo-2 {
  grid-column: 1 / 7;
  margin: 2rem 0 1rem
}

#section-1 .paragrafo-1 {
  margin: 2rem 0 1rem
}

#section-1 .paragrafo-2 {
  margin: 0 0 2rem;
}
    
#section-1 .head-img-container {
  grid-column: 1 / 9;
  margin: 3rem 0;
}

#section-1 .head-cta-container {
    grid-column: 3 / 7;
    grid-row: 6;
    row-gap: 2rem;
  }

/* section 2 */
#section-2 .table-title {
  grid-column: 1 / 9;
  margin: 0 0 1rem;
}

#section-2 .table-p {
  grid-column: 1 / 7;
  margin: 1rem 0;
}

/* table */
#section-2 .table-program {
  grid-column: 1 / 9;
  margin: 4rem 0 0;
}

#section-2 .table-program th:nth-child(1), #section-2 .table-program th:nth-child(2) {
  padding: 0 1rem;
}

#section-2 .table-program td:nth-child(1), #section-2 .table-program td:nth-child(2) {
	padding: 0 1rem;
}
}

/* Layout mobile */
@media (max-width: 599px) {
/* section 1 */
#section-1 {
  padding-bottom: 5rem;
}

#section-1 .icon-wrapper {
  grid-column: 1 / 5;
  margin: 2rem 0 0;
  grid-row: 1;
}

#section-1 .page-title {
  grid-column: 1 / 5;
  margin: 2rem 0;
  grid-row: 2;
  hyphens: manual;
}

#section-1 .mobile-br {
  display: block;
}

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

#section-1 .paragrafo-1, #section-1 .paragrafo-2 {
  grid-column: 1 / 5;
}

#section-1 .paragrafo-1 {
  margin: 2rem 0 1rem;
  grid-row: 4;
}

#section-1 .paragrafo-2 {
  margin: 0 0 2rem;
  grid-row: 5;
}

#section-1 .head-img-container {
  grid-column: 1 / 5;
  grid-row: 6;
  margin: 3rem 0;
}

#section-1 .head-cta-container {
  grid-column: 1 / 5;
  grid-row: 7;
}

/* section 2 */
#section-2 .table-title {
    grid-column: 1 / 5;
    margin: 0 0 2rem;
}

#section-2 .table-p {
  grid-column: 1 / 5;
}

#section-2 .table-program {
  grid-column: 1 / 5;
  margin: 4rem 0 0;
}

#section-2 .table-program th:nth-child(1), #section-2 .table-program th:nth-child(2) {
  padding: 0 0.5rem;
}

#section-2 .table-program td:nth-child(1), #section-2 .table-program td:nth-child(2) {
  padding: 0.5rem;
}
    
}

footer.wp-block-template-part {
  background-color: var(--wp--preset--color--custom-base);
}