.contenitore-calendario {
  max-width: 395px;
  height: 520px;
  position: relative;
  background: #ededed;
  box-shadow: 0px 0px 15px 5px rgb(0 0 0 / 42%);

  /*  Transizioni */
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
}

#pulsante-seleziona-utenti {
  color: white;
  background: transparent;
  border: solid 1px white;
  border-radius: 0px;
}

/*  Events display */
.events-container {
  overflow-y: scroll;
  height: 100%;
  width: 50%;
  float: right;
  margin: 0px auto;
  display: inline-block;
  padding: 0px;
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
  padding: 0;

  /*  Transizioni */
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
}

@media (max-width: 767.98px) {
  .events-container {
    width: 100%;
    height: auto;
  }
}

.events-container:after {
  clear: both;
}

.event-card {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 10px;
  padding-right: 10px;
  max-width: 100%;
  display: block;
  border-radius: 4px;
  background: #fff;
  border: none !important;
  margin: 10px;
}

@media (max-width: 991.98px) {
  .event-card {
    margin: 10px;
  }
}

@media (max-width: 767.98px) {
  .event-card {
    margin: 0;
    background: #e6e6e6;
  }
}

.descrizione-evento,
.titolo-evento {
  display: block;
  font-size: 1rem;
}

.titolo-evento {
  font-size: 1rem;
  font-weight: bold;
}

/*  Calendar wrapper */
.calendar-container {
  position: relative;
  margin: 0 auto;
  height: 100%;
  width: 100%;
  background: #fff;
  font: 13px Helvetica, Arial, san-serif;
  display: inline-block;
  padding: 20px;
  float: left;

  /*  Transizioni */
  transition: all 0.3s ease-in-out;
  -webkit-transition: all 0.3s ease-in-out;
}

@media (max-width: 991.98px) {
  .calendar-container {
    padding: 0;
  }
}

@media (max-width: 767.98px) {
  .calendar-container {
    padding: 0;
    width: 100% !important;
  }
}

.calendar-container:after {
  clear: both;
}

.calendar {
  width: 100%;
  padding: 0;
}

/* Calendar Header */
.year-header {
  background: #fff;
  height: 40px;
  text-align: center;
  position: relative;
  color: #fff;
  border-top-left-radius: 3px;
  margin-top: 20px;
}

.year-header span {
  display: inline-block;
  font-size: 20px;
  line-height: 40px;
  color: #000;
}

.left-button,
.right-button {
  cursor: pointer;
  width: 28px;
  text-align: center;
  position: absolute;
  color: #cccccc !important;
  -webkit-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  font-size: 14px !important;
}

@media (prefers-reduced-motion: reduce) {

  .left-button,
  .right-button {
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }
}

.left-button:hover,
.right-button:hover {
  color: #7e0cf5 !important;
}

.left-button {
  left: 0;
}

.right-button {
  right: 0;
  top: 0;
}

/* Buttons */
.button {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  font-size: 1rem;
  border-radius: 25px;
  padding: 0.65rem 1.9rem;
  -webkit-transition: .2s ease all;
  -o-transition: .2s ease all;
  transition: .2s ease all;
  color: white;
  border: none;
  background: #7e0cf5;
}

.button.button-white {
  background: #fff;
  color: #000;
}

.button:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
  outline: none;
}

#cancel-button {
  background: #7e0cf5;
}

#add-button {
  display: block;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

#add-button:hover,
#ok-button:hover,
#cancel-button:hover {
  -webkit-transform: scale(1.03);
  -ms-transform: scale(1.03);
  transform: scale(1.03);
}

#add-button:active,
#ok-button:active,
#cancel-button:active {
  -webkit-transform: translateY(3px) scale(0.97);
  -ms-transform: translateY(3px) scale(0.97);
  transform: translateY(3px) scale(0.97);
}

/* Days/months tables */
.days-table,
.dates-table,
.months-table {
  border-collapse: separate;
  text-align: center;
}

.day {
  height: 26px;
  width: 26px;
  padding: 0 10px;
  line-height: 26px;
  border: 2px solid transparent;
  text-transform: uppercase;
  font-size: 10px;
  color: #000;
}

.month {
  cursor: default;
  height: 26px;
  width: 26px;
  padding: 0 2px;
  padding-top: 10px;
  line-height: 26px;
  text-transform: uppercase;
  font-size: 11px;
  color: #cccccc;
  -webkit-transition: all 250ms;
  -o-transition: all 250ms;
  transition: all 250ms;
}

@media (max-width: 991.98px) {
  .month {
    font-size: 8px;
  }
}

@media (max-width: 767.98px) {
  .month {
    font-size: 10.5px;
  }
}

.active-month {
  font-weight: 700;
  color: #000;
}

.month:hover {
  color: #7e0cf5;
}

/*  Dates table */
.table-date {
  cursor: default;
  color: #2b2b2b;
  height: 26px;
  width: 26px;
  font-size: 15px;
  padding: 10px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid transparent;
  -webkit-transition: all 250ms;
  -o-transition: all 250ms;
  transition: all 250ms;
  position: relative;
}

.table-date:not(.nil):hover {
  border-color: #7e0cf5;
}

.event-date {
  border-color: #7e0cf5;
}

.event-date:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: '';
  background: #00B4D8;
}

.active-date {
  background: #8338EC;
  color: #fff;
}

.event-date.active-date {
  background: #7e0cf5;
}

/* input dialog */
.dialog {
  z-index: 5;
  background: #000;
  position: absolute;
  width: 50%;
  height: 520px;
  top: 0;
  right: 0;
  display: none;
}

@media (max-width: 767.98px) {
  .dialog {
    width: 100%;
  }
}

#calendario .dialog-header {
  margin: 20px;
  color: #fff;
  text-align: center;
  font-size: 28px;
}

#calendario .form-container {
  margin-top: 10%;
}

#calendario .form-label {
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
}

#calendario #calendario .input {
  border: none;
  background: none;
  border-bottom: 1px rgba(255, 255, 255, 0.2) solid;
  display: block;
  margin-bottom: 50px;
  width: 300px;
  height: 30px;
  text-align: center;
  -webkit-transition: border-color 250ms;
  -o-transition: border-color 250ms;
  transition: border-color 250ms;
  color: #fff;
}

#calendario textarea.input {
  border: none;
  background: none;
  border-bottom: 1px rgba(255, 255, 255, 0.2) solid;
  display: block;
  margin-bottom: 50px;
  width: 300px;
  min-height: 100px;
  max-height: 130px;
  text-align: center;
  -webkit-transition: border-color 250ms;
  -o-transition: border-color 250ms;
  transition: border-color 250ms;
  color: #fff;
}

#calendario .input:focus {
  outline: none;
  border-color: #fff;
}

#calendario .error-input {
  border-color: #7e0cf5 !important;
}