/* Il centro e Prima visita: moduli nativi ripresi dalle pagine esistenti. */
:is(.page-id-303, .page-id-307) .container-wrap {
  background: #efe9dd;
  padding-top: 0 !important;
}
:is(.page-id-303, .page-id-307) .container.main-content > .row {
  padding-bottom: 0;
}
.mi-section > .row_col_wrap_12 {
  max-width: 1200px;
  margin-inline: auto !important;
}
.mi-text {
  margin-bottom: 24px !important;
}
.mi-text :is(h1, h2, h3) {
  margin: 0;
  padding: 0;
}
.mi-text p:last-child {
  padding-bottom: 0;
}
.mi-text :is(ul, ol) {
  margin: 18px 0 18px 1.2em;
}
.mi-text li + li {
  margin-top: 8px;
}
.mi-subheading {
  margin-bottom: 16px !important;
}
.mi-hero .mi-text {
  text-align: center;
}
.mi-hero .mi-text:last-child {
  margin-bottom: 0 !important;
}
.mi-button {
  margin: 8px 12px 0 0 !important;
}
.mi-photo {
  display: block;
  width: 100%;
  height: auto;
}
.mi-col .img-with-aniamtion-wrap {
  margin-bottom: 24px !important;
}
.mi-centred {
  text-align: center;
}
.mi-centred .mi-text {
  max-width: 850px;
  margin-inline: auto;
}
.mi-step {
  padding-block: 24px;
  border-bottom: 1px solid #d6dfe3;
}
.mi-step:last-child {
  border-bottom: 0;
}
.mi-step .mi-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 !important;
  border-radius: 50%;
  background: #ffdb73;
}
.mi-step .mi-number p {
  margin: 0;
  padding: 0;
}
.mi-step .mi-body {
  margin-bottom: 0 !important;
}
@media (max-width: 999px) {
  /* La curva appartiene allo sfondo: sulla colonna taglierebbe il testo. */
  .mi-hero > .row_col_wrap_12 > .wpb_column,
  .mi-hero > .row_col_wrap_12 > .wpb_column > .vc_column-inner {
    border-radius: 0 !important;
    overflow: visible !important;
  }
  .mi-hero :is(.row-bg-wrap, .row-bg, .row-bg-layer) {
    border-bottom-left-radius: 80px !important;
    border-bottom-right-radius: 80px !important;
  }
  .mi-step > .row_col_wrap_12_inner {
    display: block;
  }
  .mi-step .mi-col {
    margin: 0 !important;
    padding-inline: 0 !important;
    width: 100% !important;
  }
  .mi-step .mi-step-number {
    margin-bottom: 20px !important;
  }
  .mi-step .mi-number {
    width: 54px;
    height: 54px;
  }
}

/* Stessi reset testuali di Il dottore; nessuna nuova scala tipografica. */
:is(.page-id-303,.page-id-307) .mi-text :is(h3, li) {
  font-family: inherit;
  font-size: inherit !important;
  line-height: inherit;
  font-weight: 400;
  color: inherit;
  letter-spacing: inherit;
  text-transform: none;
}
.mi-hero-subtitle p {
  text-transform: uppercase;
  font-weight: 700;
}
/* Titoli e numeri della sequenza già usata in Homepage. */
.mi-step-title {
  font-weight: 700;
  text-transform: uppercase;
  color: #619bb3 !important;
}
.mi-step .mi-step-title h3 {
  text-transform: inherit;
}
/* Le dimensioni effettive del titolo sotto 1440 px riprendono Il dottore. */
@media (max-width: 1439px) {
  .mi-hero-title { font-size: 42px !important; }
}
@media (max-width: 767px) {
  .mi-hero-title { font-size: 34px !important; }
}
