/* =========================================================
   HOME MAP V6D — fix definitivo pulsanti mobile "Dove siamo"
   Questo file è caricato dentro la libreria public-home subito dopo public-home.css,
   così sovrascrive la regola mobile precedente che metteva i pulsanti uno sotto l'altro.
   ========================================================= */

@media (max-width: 760px) {
  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(84px, 0.65fr) !important;
    grid-auto-flow: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 10px !important;
    margin-top: 4px !important;
    overflow: visible !important;
  }

  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > .caritas-map-panel__button,
  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > a.caritas-map-panel__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 10px !important;
    margin: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
  }

  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > .caritas-map-panel__button--primary {
    grid-column: 1 !important;
  }

  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > .caritas-map-panel__button--secondary {
    grid-column: 2 !important;
  }
}

@media (max-width: 390px) {
  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions {
    grid-template-columns: minmax(0, 1.12fr) minmax(76px, 0.62fr) !important;
    gap: 8px !important;
  }

  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > .caritas-map-panel__button,
  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > a.caritas-map-panel__button {
    height: 40px !important;
    min-height: 40px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 0.76rem !important;
  }
}

@media (max-width: 345px) {
  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions {
    grid-template-columns: minmax(0, 1fr) minmax(68px, 0.58fr) !important;
    gap: 7px !important;
  }

  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > .caritas-map-panel__button,
  html body.path-frontpage .caritas-public-home .caritas-map-panel .caritas-map-panel__actions > a.caritas-map-panel__button {
    font-size: 0.7rem !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}
