@font-face {
  font-family: "Unica";
  src: url("Unica.woff2");
}

div {
  letter-spacing: 0.015rem;
}

body, html {
  margin:0;
  font-family: Unica;
  height: 100%;
  position: fixed;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

body::-webkit-scrollbar {
  display: none;
}

h1 {
  font-size: 1rem;
  display: inline-block;
}

h2 {
  font-size: 1rem;
  display: inline-block;
  margin-left: 1rem;
}

#map {
  width: 100vw;
  height: 100vh;
  padding: 1rem;
  box-sizing: border-box;
  border-radius: 1rem;
  mix-blend-mode: screen;
}

#fondo {
  position: fixed;
  top: 0;
  z-index: -2;
  height: 100vh;
  width: 100vw;
  background-color: rgb(0,180,0);
}

.leaflet-tile {
  filter: grayscale(100%) brightness(1.1);
}

.filters {
  border-radius: 0.8rem;
  font-size: 1rem;
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: 15vw;
  padding: 0.5rem;
  background: rgba(255,255,255,0.7);
  z-index: 1001;
}

button {
  font-family: Unica;
  letter-spacing: 0.015rem;
}

.filters button {
  font-size: 1rem;
  left: 0;
  display: block;
  cursor: pointer;
  background: none;
  border: 0;
  color: rgb(255,0,255);
  transition: all 0.1s ease;
}

.filters button:hover {
  color: black;
}

.filters button.active {
  background: red;
  color: #fff;
}

#panel {
  padding-top: 1rem;
  color: rgb(255, 0, 255);
  border-radius: 1rem;

  position: fixed;
  right: 1rem;
  width: 25%;
  max-height: calc(86vh - 2.5rem);

  bottom: 2rem;

  background: rgba(255,255,255,0.7);
  overflow-y: auto;
  z-index: 1000;

  transform: translateY(-120vh);
  transition: none;

  margin-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 2rem;
  box-sizing: border-box;

  /* ✔️ QUESTI VANNO TENUTI */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

#panel::-webkit-scrollbar {
  display: none;
}

#panel.open {
  animation: dropIn 0.3s forwards;
}

#panel.closing {
  animation: slideDown 0.3s ease-in-out forwards;
}

@keyframes dropIn {
  0% { transform: translateY(-120vh); }
  60% { transform: translateY(2rem); }
  100% { transform: translateY(0); }
}

@keyframes slideDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(140vh); }
}

#panel-content img {
  border-radius: 0.8rem;
}

.table {
  font-size: 1rem;
  display:grid;
  grid-template-columns: auto auto;
  row-gap:5px;
  column-gap:10px;
}





.leaflet-pane,
.leaflet-overlay-pane,
.leaflet-marker-pane {
  isolation: isolate;
}

.leaflet-left {
  opacity: 0;
}

.leaflet-bottom {
  opacity: 0;
}















.leaflet-marker-icon.leaflet-interactive {
  mix-blend-mode: exclusion;
}


.tree-marker .circle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;

  background: white;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: Unica;
  font-size: 0.7rem;
  color: black;

  transition: transform 0.2s ease;

  stroke: rgb(0,0,0) !important;
  animation: stroke 2s infinite;
  animation-timing-function: ease-in-out;

  transform-origin: center;
  transform-box: fill-box;
  transition: transform 0.2s ease;
}

.tree-marker .circle:hover {
  transform: scale(1.2);
}


@keyframes stroke {
  0% {
  scale: 1;
  }
  20% {
  scale: 1;
  }
  30% {
  scale: 1.1;
  }
  50% {
  scale: 1.1;
  }
  60% {
  scale: 1;
  }
  100% {
  scale: 1;
  }
}















.group-img {
  width: 100%;
  margin-top: -0.1rem;
  border-radius: 0.8rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.group-header {
  cursor: pointer;
}

.group-item {
  padding-bottom: 1rem;
  border-top: solid 1px;
}

.accordion {
  padding-top: 1rem;
}










.panel-close {
  position: sticky;
  top: 1rem;
  margin-left: auto;
  margin-top: -0.8rem;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  z-index: 10;
}

/* linea verticale */
.panel-close::before,
.panel-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1rem;
  background: black;
  transform-origin: center;
}

/* una verticale */
.panel-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

/* l'altra orizzontale */
.panel-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}













#testata {
  padding-left: 1rem;
  padding-left: 1rem;
  position: fixed;
  z-index: 100000000000000000;
  pointer-events: none;
  width: 100vw;
  mix-blend-mode: darken;
  width: calc(100vw - 2rem)
}

#testata img {
  display: block;
  position: relative;
  height: auto;
  width: 100%;
}

.logo {
  mix-blend-mode: multiply;
  margin-bottom: -2rem;
}



.fascia {
    z-index: 10000000000000000;
    position: fixed;
    background: rgba(255, 235, 0, 1);
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    top: 0;
    left: 1rem;
    width: calc(100vw - 2rem);
    height: 14vh;
    mix-blend-mode: multiply;
}

.fascia_sotto {
    background: rgba(255, 235, 0, 1);
    z-index: 10000000000000000;
    position: fixed;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    bottom: 0;
    left: 1rem;
    width: calc(100vw - 3rem);
    height: auto;
    mix-blend-mode: multiply;
    color: rgb(255, 0, 255);
    padding-left: 1rem;
}

.fascia_sotto p {
font-size: 1.5rem;
    line-height: 1.6rem;
    width: 90%;
    margin-top: 1rem;
    margin-bottom: 1rem;
}














@media (max-width: 1000px) {
  #panel {
    width: 80vw; /* 10vw margine dx e sx */
    max-height: calc(100% - 10vw);
    left: 10vw;
    bottom: 10vw;
  }

  #panel .close {
    right: 10px;
    top: 10px;
  }
  
  .fascia_sotto p {
	font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

}