@import url("./sfondi.css");

[hidden] {
  display: none !important;
}

.tm-header-overlay {
  z-index: 980;
}

.tm-header .uk-navbar-sticky {
  position: fixed;
  inset: 0 0 auto;
}

.tm-header .uk-navbar-container.uk-navbar-sticky {
  background: #0f192b;
}

.uk-navbar-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-mobile[open] {
  display: block;
  width: min(100%, 350px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: #fff;
}

.menu-mobile .uk-offcanvas-bar {
  right: 0;
  left: 0;
  width: 100%;
}

.menu-mobile::backdrop,
.impostazioni-privacy::backdrop {
  background: rgb(0 0 0 / 55%);
}

.impostazioni-privacy {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  box-sizing: border-box;
  border: 0;
  color: inherit;
}

.impostazioni-privacy .uk-modal-close-default,
.menu-mobile .uk-offcanvas-close {
  border: 0;
  background: transparent;
  cursor: pointer;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.tm-consent .uk-grid {
  row-gap: 10px;
}

.preferenze-privacy {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

[data-cartina] {
  height: 50vh;
  scroll-margin-block-start: 100px;
}

[data-mappa] .uk-card-overlay {
  background: rgb(255 255 255 / 90%);
}

[data-mappa] .js-consent-overlay.uk-position-center {
  width: max-content;
  max-width: calc(100% - 30px);
}

[data-mappa] .leaflet-popup-content {
  min-width: 160px;
}

.sedi summary {
  cursor: pointer;
}

.sedi .uk-grid {
  row-gap: 20px;
  margin-top: 15px;
}

#tm-main {
  scroll-margin-block-start: 100px;
}

.uk-notification:focus-within {
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
}

#page\#0,
#page\#1 {
  padding: 20px;
  border: 2px solid #c3a664;
}

a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

@media (max-width: 959px) {
  .tm-grid-expand.uk-grid {
    row-gap: 30px;
  }

  .uk-button {
    white-space: normal;
  }
}

/* Compensa l'altezza della testata sovrapposta all'immagine. */
.testata-pagina [data-sfondo] > .uk-panel::before {
  display: block;
  height: 100px;
  content: "";
}

.menu-mobile .uk-nav-default > li > a {
  color: #0f192b;
}

.menu-mobile .uk-nav-default > li.uk-active > a,
.menu-mobile .uk-nav-default > li > a:hover {
  color: #80652e;
}

.impostazioni-privacy .uk-grid {
  row-gap: 10px;
}
