/* RESPONSIVE TABLET */
@media only screen and (max-width: 820px) {
  section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .two_columns {
    max-width: 100%;
    flex-direction: column;
    padding: 0 15px;
    margin-left: 0;
  }

  .column_left {
    width: 100%;
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0;
  }

  .column_right {
    max-width: 0;
    display: none;
  }

  .imu_cnt {
    max-width: 100%;
    flex-direction: column;
  }

  .imu_cnt_tablet_mobile {
    width: 100%;
  }

  .imu_cnt_tablet_mobile:first-of-type {
    padding-bottom: 20px;
  }

  .imu_item {
    margin-left: 0;
    margin-right: 0;
  }

  .imu_prov {
    margin-right: 15px;
  }

  .imu_imu {
    margin-left: 15px;
  }

  .imu_valore {
    margin-right: 15px;
  }

  .affitti_multipli {
    margin-left: 15px;
  }

  .calcolatore_columns {
    flex-direction: column;
  }

  .calcolatore_col {
    width: 100%;
  }

  .calcolatore_col:last-of-type {
    margin-left: 0;
    margin-top: 20px;
  }

  .box_crediti {
    width: 100%;
  }

  .box_crediti h5 {
    padding: 2vh 10px;
  }

  #footer_div {
    padding: 30px 10px;
  }

  .no_mobile {
    display: none;
  }
}

/* RESPONSIVE MOBILE */

@media only screen and (max-width: 480px) {
  .header_title {
    bottom: 7%;
  }

  h1 {
    max-width: 100%;
    font-size: 36px;
    line-height: 44px;
  }

  .subtitle {
    max-width: 100%;
    font-size: 20px;
    line-height: normal;
    padding: 20px 15px 0;
  }

  .two_columns {
    overflow: hidden;
  }

  .intro_legenda {
    max-width: 100%;
  }

  .intro_legenda_titolo {
    text-align: center;
  }

  .intro_legenda_grafici {
    flex-direction: column;
  }

  .intro_legenda_item {
    width: 100%;
  }

  .intro_legenda_item div {
    text-align: center;
    font-size: 18px;
    line-height: 26px;
  }

  .intro_legenda_item:first-of-type {
    padding-right: 0;
    border-right: none;
  }

  .intro_legenda_item:last-of-type {
    padding-top: 20px;
    padding-left: 0;
  }

  .imu_cnt_tablet_mobile {
    width: 100%;
    flex-direction: column;
  }

  .imu_item {
    width: 100%;
  }

  .imu_prov {
    margin-right: 0;
  }

  .imu_imu {
    margin-left: 0;
    margin-top: 20px;
  }

  .imu_valore {
    margin-right: 0;
  }

  .affitti_multipli {
    margin-top: 20px;
    margin-left: 0;
  }

  .calcolatore_box_row {
    flex-direction: column;
  }

  .calcolatore_box {
    width: 100%;
  }

  .calcolatore_box:first-of-type {
    margin-right: 0;
  }

  .calcolatore_box:last-of-type {
    margin-left: 0;
  }

  .calcolatore_box_row .calcolatore_box:last-of-type {
    margin-top: 20px;
  }

  .div_20,
  .div_vuoto {
    display: none;
  }

  .submit_btn {
    width: 100%;
  }

  #ris_costi_breve_21,
  #ris_costi_breve_26,
  #ris_incasso_breve_21,
  #ris_incasso_breve_26 {
    margin-top: 20px;
  }

  .risultati_titolo {
    font-size: 24px;
  }

  .risultati_columns {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .ris_cnt_shadow {
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0px 4px 2px 0px rgba(0, 0, 0, 0.1);
  }

  .ris_costi_grafico_num_voce_cnt,
  .ris_incasso_grafico_num_voce_cnt {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
  }

  .ris_costi_row_num_voce_cnt,
  .ris_incasso_row_num_voce_cnt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }

  .ris_costi_grafico,
  .ris_incasso_grafico {
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .ris_costi_row_num_voce,
  .ris_incasso_row_num_voce {
    display: flex;
    flex-direction: row;
  }

  .ris_costi_row_num_voce:nth-child(2) {
    padding: 10px 0;
  }

  .ris_costi_row_num {
    color: #0f0f0f;
    text-align: right;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .ris_incasso_row_num {
    color: #6f6f6f;
    text-align: right;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }

  .ris_costi_row_voce,
  .ris_incasso_row_voce {
    padding-left: 10px;
    text-align: left;
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
  }

  .voce_rosa {
    color: #ffbdbd;
    font-weight: 600;
  }

  .voce_verde {
    color: #49a078;
    font-weight: 600;
    font-size: 24px;
  }

  .ris_delimiter {
    padding: 5px 0;
  }

  .ris_costi_accordion_item_header,
  .ris_incasso_accordion_item_header {
    padding: 0 0 20px 0;
  }

  .ris_costi_accordion_item_header span,
  .ris_incasso_accordion_item_header span {
    color: rgba(0, 0, 0, 0.6) !important;
    text-align: center;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    padding: 0 !important;
  }

  .ris_costi_accordion_item_header:hover::before,
  .ris_incasso_accordion_item_header:hover::before {
    opacity: 0;
  }

  .ris_costi_accordion_item_header::after,
  .ris_incasso_accordion_item_header::after {
    top: 0px;
    right: 72px;
  }

  .ris_costi_dettaglio_row,
  .ris_incasso_dettaglio_row {
    display: flex;
    flex-direction: row;
    padding: 5px 0;
  }

  .ris_costi_dettaglio_legenda,
  .ris_incasso_dettaglio_legenda {
    color: rgba(0, 0, 0, 0.6);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: left;
  }

  .ris_costi_dettaglio_lungo,
  .ris_costi_dettaglio_breve_21,
  .ris_costi_dettaglio_breve_26,
  .ris_incasso_dettaglio_lungo,
  .ris_incasso_dettaglio_breve_21,
  .ris_incasso_dettaglio_breve_26 {
    color: rgba(15, 15, 15, 0.35);
    text-align: right;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .torna_calcolo_submit_btn img {
    right: 74px;
  }

  #backtop {
    left: initial;
    right: 4px !important;
  }
}

/* RESPOSIVE DESKTOP */

@media only screen and (min-width: 821px) {
  .no_desktop {
    display: none;
  }
}

@media only screen and (min-width: 821px) and (max-width: 1540px) {
  .calcolatore_cnt_fixed_height {
    height: 224px;
  }

  .ris_col_titolo {
    font-size: 16px;
  }
}

@media only screen and (max-width: 980px) {
  .col_display_none {
    display: none;
  }
}

@media only screen and (min-width: 981px) {}