/* template indirizzi light */
.page-template-wp-custom-template-ip-indirizzi-light-page {
  background-color: var(--wp--preset--color--custom-azzurro);
}
.page-template-wp-custom-template-ip-indirizzi-light-page #top-bar .top-bar-item a {
  color: var(--wp--preset--color--custom-blu);
  background-color: var(--wp--preset--color--custom-azzurro);
}

.page-template-wp-custom-template-ip-indirizzi-light-page #top-bar .top-bar-link-item:hover > .icon-container {
  opacity: 75%;
}

.page-template-wp-custom-template-ip-indirizzi-light-page #top-bar .top-bar-link-item:hover > .contact-txt-link {
  opacity: 75%;
}

.page-template-wp-custom-template-ip-indirizzi-light-page #desktop-nav-wrapper .desktop-nav-container,
.page-template-wp-custom-template-ip-indirizzi-light-page #desktop-nav [data-submenu-id="offerta-formativa"] .level-1,
.page-template-wp-custom-template-ip-indirizzi-light-page #desktop-nav [data-submenu-id="segreteria"] ul,
.page-template-wp-custom-template-ip-indirizzi-light-page #desktop-nav [data-submenu-id="non-solo-scuola"] ul,
.page-template-wp-custom-template-ip-indirizzi-light-page #desktop-nav li.level-2.sub ul.level-2.sub,
.page-template-wp-custom-template-ip-indirizzi-light-page #mobile-nav {
  box-shadow: 0 0 8px 4px rgba(16, 66, 87, 0.12);
}

.page-template-wp-custom-template-ip-indirizzi-light-page #top-bar .top-bar-item a:focus {
  box-shadow: 0 0 0 2px #104257;
}

/*--- 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 .indirizzi-page-title {
  grid-column: 1 / 11;
    grid-row: 1;
    margin: 4rem 0 3rem;
    hyphens: none;
}

.show-mobile {
  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 {
  text-align: center;
  font-size: clamp(3rem, 2.605rem + 1.974vw, 4.5rem);
  color: var(--wp--preset--color--custom-blu);
  background-color: var(--wp--preset--color--custom-giallo);
  border-radius: 5rem;
  width: clamp(6rem, 5.211rem + 3.947vw, 9rem);
  height: clamp(6rem, 5.211rem + 3.947vw, 9rem);
  line-height: clamp(6rem, 5.211rem + 3.947vw, 9rem);
  display: block;
  border: 1px solid 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: 3.75rem 0 2rem;
}

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

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

/* section 2 */
.section-2-container {
  padding-bottom: 8rem;
}

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

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

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

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

#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;
}

/* Applichiamo i bordi solo dove sono necessari */

/* 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);
}

/* Rimuoviamo 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);
}

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

/* Rimuoviamo 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 td:nth-child(1) {
  text-align: left;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
}

#section-2 .table-program th:nth-child(2),
#section-2 .table-program td:nth-child(2),
#section-2 .table-program th:nth-child(3),
#section-2 .table-program td:nth-child(3) {
  text-align: center;
}

#section-2 .table-program th {
  font-family: var(--wp--preset--font-family--aleo);
  font-size: var(--wp--preset--font-size--large);
  background-color: var(--wp--preset--color--custom-giallo);
  height: 5rem;
}

#section-2 .table-program tr {
  font-family: var(--wp--preset--font-family--dm-sans);
  font-size: var(--wp--preset--font-size--medium);
  height: 3rem;
}

#section-2 .table-program .cheched {
  background-color: var(--wp--preset--color--custom-azzurro);
}

#section-2 .table-program .uncheched {
  background-color: var(--wp--preset--color--base);
}

/* section 3 */
.section-3-container {
  padding: 3rem 0 7rem;
}

#section-3 .teacher-title {
  grid-column: 1 / 8;
  width: 100%;
  margin: 5rem 0 2rem;
  padding: 0;
}

#section-3 .teacher-p {
  grid-column: 1 / 8;
  width: 100%;
  margin: 1rem 0 5rem;
  padding: 0;
}

#section-3 .teacher-cta {
  grid-column: 1 / 8;
  width: 100%;
  margin-bottom: 1.5rem;
}

#section-3  .teacher-carousel {
  grid-column: 1 / 13;
  padding-top: 4rem;
}

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

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

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

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

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

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

#section-1 .payoff-1 {
  grid-column: 4 / 9;
  grid-row: 5;
  margin: 3rem 0 1rem;
}

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

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

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

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

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

/* section 3*/
.section-3-container {
  padding: 3rem 0;
}
    
#section-3 .teacher-title {
  grid-column: 1 / 9;
  margin: 2rem 0;
}

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

#section-3 .teacher-cta {
  grid-column: 1 / 8;
  margin-bottom: 1.5rem;
}

#section-3 .teacher-carousel {
  grid-column: 1 / 9;
  padding-top: 1rem;
}
}

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

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

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

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

#section-1 .payoff-1 {
  grid-column: 2 / 5;
  grid-row: 5;
  width: 100%;
  margin: 3rem 0 1rem;
}

#section-1 .payoff-2 {
  grid-column: 1 / 5;
  grid-row: 6;
  width: 100%;
  margin: 2rem 0;  
}

/* section 2 */
.section-2-container {
  padding-bottom: 5rem;
}

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

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

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

#section-2 .table-program {
  grid-column: 1 / 5;
  width: 100%;
}

/* section 3 */
.section-3-container {
  padding: 3rem 0;
}

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

#section-3 .teacher-p {
  grid-column: 1 / 5;
 margin: 1rem 0 2rem;
}

#section-3 .teacher-cta {
  grid-column: 1 / 5;
  margin-bottom: 1.5rem;
}

#section-3 .teacher-carousel {
  grid-column: 1 / 5;
  padding-top: 1rem;
}

}