#calcolatore,
#risultatoRavvedimentoOperoso,
#guida,
#faq {
  scroll-margin-top: 90px;
}

#calcolatore .form-label {
  color: #1f2937;
}

#risultatoRavvedimentoOperoso .card {
  border-radius: 1rem;
}

#risultatoRavvedimentoOperoso .table,
#guida .table {
  --bs-table-bg: #fff;
}

#messaggiValidazione .alert {
  margin-bottom: 0;
}

.f24-preview {
  --f24-azzurro: #9ed9e8;
  --f24-fondo: #d9f0f6;
  --f24-bordo: #b9dfe8;
  border: 1px solid var(--f24-bordo);
  border-radius: .75rem;
  background: var(--f24-fondo);
  overflow: hidden;
  box-shadow: 0 .35rem 1rem rgba(19, 74, 91, .10);
}

.f24-preview__title {
  padding: .65rem 1rem;
  background: var(--f24-azzurro);
  color: #06394a;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.f24-preview__table {
  margin: 0;
  border-collapse: separate;
  border-spacing: .4rem .35rem;
}

.f24-preview__table th {
  border: 0;
  background: transparent;
  color: #173b47;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  vertical-align: bottom;
}

.f24-preview__table td {
  border: 1px solid #d9e8ed;
  background: #fff;
  color: #111827;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: center;
  vertical-align: middle;
}

.f24-preview__table .f24-importo {
  text-align: right;
}

.f24-preview__totale {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.25rem;
  padding: .4rem 1rem 1rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.f24-preview__totale strong {
  min-width: 10rem;
  padding: .55rem .75rem;
  border: 2px solid #77bfce;
  border-radius: .35rem;
  background: #fff;
  color: #0b596b;
  text-align: right;
}

.f24-preview__actions {
  padding: .85rem 1rem;
  border-top: 1px solid var(--f24-bordo);
  background: rgba(255,255,255,.56);
}

.modal-xl .table td,
.modal-xl .table th {
  vertical-align: middle;
}

@media (max-width: 575.98px) {
  #calcolatore .card-body,
  #guida .card-body,
  #faq .card-body {
    padding: 1rem;
  }

  #risultatoRavvedimentoOperoso .table {
    font-size: .92rem;
  }

  .f24-preview__table {
    min-width: 650px;
  }
}

@media print {
  nav,
  .navbar,
  .adsense-laterale,
  .btn,
  #casoClassicoModal,
  #faq,
  #guida {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  main {
    padding: 0 !important;
  }

  .card,
  .shadow-sm {
    border: 1px solid #ddd !important;
    box-shadow: none !important;
  }

  #risultatoRavvedimentoOperoso {
    display: block !important;
  }
}
