.weeks,
.days {
  padding-inline-start: 0;
}
.calendar-legend {
  list-style: none;
  padding: 0;
}
.calendar-legend-item {
  margin-bottom: 10px;
  display: inline-block;
  list-style: none;
}
.calendar-legend-item span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  margin-left: 10px;
}
.calendar-legend-item .dot-red {
  background-color: #ed3345;
  /* Colore del pallino per questa voce della legenda */
}
.calendar-legend-item .dot-green {
  background-color: #81ad2a;
  /* Colore del pallino per questa voce della legenda */
}
.calendar-legend-item .dot-blue {
  background-color: #154ef7;
  /* Colore del pallino per questa voce della legenda */
}
.calendar-legend-item .dot-yellow {
  background-color: #f5bb2b;
  /* Colore del pallino per questa voce della legenda */
}
.wrapper-header {
  display: flex;
  align-items: center;
  padding: 25px 10px 10px;
  justify-content: space-between;
}
header .icons {
  display: flex;
}
header .icons span {
  height: 38px;
  width: 38px;
  margin: 0 1px;
  cursor: pointer;
  color: #878787;
  text-align: center;
  line-height: 38px;
  font-size: 1.9rem;
  user-select: none;
  border-radius: 50%;
}
.icons span:last-child {
  margin-right: -10px;
}
header .icons span:hover {
  background: #f2f2f2;
}
header .current-date {
  font-size: 1.8em;
  font-weight: bold;
}
@media (min-width: 992px) {
  .calendar {
    padding-right: 10px;
  }
}
.calendar ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  text-align: center;
}
.calendar .days {
  margin-bottom: 20px;
}
.calendar li {
  color: #333;
  width: calc(100% / 7);
  font-size: 1.07rem;
}
.calendar .weeks li {
  font-size: 1.4em;
  font-weight: bold;
  cursor: default;
}
.calendar .days li {
  z-index: 1;
  cursor: pointer;
  position: relative;
  margin-top: 30px;
  font-size: 1.4em;
}
.days li.inactive {
  color: #aaa;
}
.days li::before {
  position: absolute;
  content: "";
  left: 50%;
  top: 50%;
  height: 40px;
  width: 40px;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.days li.green::before {
  background: #81ad2a;
}
.days li.yellow::before {
  background: #f5bb2b;
}
.days li.blue::before {
  background: #154ef7;
}
.days li.red::before {
  background: #ed3345;
}
.days li.green {
  color: #FFFFFF;
}
.days li.yellow {
  color: #FFFFFF;
}
.days li.blue {
  color: #FFFFFF;
}
.days li.red {
  color: #FFFFFF;
}
.days li:hover {
  color: black;
}
.days li:not(.active):hover::before {
  background: #f2f2f2;
}
.tooltip {
  pointer-events: none;
}

