/* Correzioni puramente tecniche per viewport stretti o bassi.
   Non modifica il layout alle dimensioni desktop/tablet previste dal design. */

.bh-responsive-grid > * {
  min-width: 0;
}

.bh-modal-backdrop {
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bh-modal-panel {
  box-sizing: border-box;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.bh-carousel-btn::after {
  content: "";
  position: absolute;
  inset: -4px;
}

.bh-field {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.bh-clink,
.bh-contact-row {
  overflow-wrap: anywhere;
}

@media (max-width: 400px) {
  .bh-responsive-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .bh-modal-backdrop {
    padding: 16px !important;
  }

  .bh-modal-panel {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-height: 600px) {
  .bh-mobile {
    justify-content: flex-start !important;
    padding: 72px 24px 28px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
