[class*="cal-cell"] {
    float: left;
    margin-left: 0;
    min-height: 1px;
  }
  .cal-row-fluid {
    width: 100%;
    *zoom: 1;
  }
  .cal-row-head .cal-cell1 { 
    background-color:#0066CC;
    color: #ffffff;
    text-transform: uppercase;
  }


  .cal-row-fluid:before,
  .cal-row-fluid:after {
    display: table;
    content: "";
    line-height: 0;
  }
  .cal-row-fluid:after {
    clear: both;
  }
  .cal-row-fluid [class*="cal-cell"] {
    display: block;
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    margin-left: 0%;
    *margin-left: -0.05213764337851929%;
  }
  .cal-row-fluid [class*="cal-cell"]:first-child {
    margin-left: 0;
  }
  .cal-row-fluid .controls-row [class*="cal-cell"] + [class*="cal-cell"] {
    margin-left: 0%;
  }
  .cal-row-fluid .cal-cell7 {
    width: 100%;
    *width: 99.94669509594883%;
  }
  .cal-row-fluid .cal-cell6 {
    width: 85.71428571428571%;
    *width: 85.66098081023453%;
  }
  .cal-row-fluid .cal-cell5 {
    width: 71.42857142857142%;
    *width: 71.37526652452024%;
  }
  .cal-row-fluid .cal-cell4 {
    width: 57.14285714285714%;
    *width: 57.089552238805965%;
  }
  .cal-row-fluid .cal-cell3 {
    width: 42.857142857142854%;
    *width: 42.80383795309168%;
  }
  .cal-row-fluid .cal-cell2 {
    width: 28.57142857142857%;
    *width: 28.518123667377395%;
  }
  .cal-row-fluid .cal-cell1 {
    width: 14.285714285714285%;
    *width: 14.232409381663112%;
  }
  .cal-week-box .cal-offset7,
  .cal-row-fluid .cal-offset7,
  .cal-row-fluid .cal-offset7:first-child {
    margin-left: 100%;
    *margin-left: 99.89339019189765%;
  }
  .cal-week-box .cal-offset6,
  .cal-row-fluid .cal-offset6,
  .cal-row-fluid .cal-offset6:first-child {
    margin-left: 85.71428571428571%;
    *margin-left: 85.60767590618336%;
  }
  .cal-week-box .cal-offset5,
  .cal-row-fluid .cal-offset5,
  .cal-row-fluid .cal-offset5:first-child {
    margin-left: 71.42857142857142%;
    *margin-left: 71.32196162046907%;
  }
  .cal-week-box .cal-offset4,
  .cal-row-fluid .cal-offset4,
  .cal-row-fluid .cal-offset4:first-child {
    margin-left: 57.14285714285714%;
    *margin-left: 57.03624733475479%;
  }
  .cal-week-box .cal-offset3,
  .cal-row-fluid .cal-offset3,
  .cal-row-fluid .cal-offset3:first-child {
    margin-left: 42.857142857142854%;
    *margin-left: 42.750533049040506%;
  }
  .cal-week-box .cal-offset2,
  .cal-row-fluid .cal-offset2,
  .cal-row-fluid .cal-offset2:first-child {
    margin-left: 28.57142857142857%;
    *margin-left: 28.46481876332622%;
  }
  .cal-week-box .cal-offset1,
  .cal-row-fluid .cal-offset1,
  .cal-row-fluid .cal-offset1:first-child {
    margin-left: 14.285714285714285%;
    *margin-left: 14.17910447761194%;
  }
  .cal-row-fluid .cal-cell1 {
    width: 14.285714285714285%;
    *width: 14.233576642335766%;
  }
  [class*="cal-cell"].hide,
  .cal-row-fluid [class*="cal-cell"].hide {
    display: none;
  }
  [class*="cal-cell"].pull-right,
  .cal-row-fluid [class*="cal-cell"].pull-right {
    float: right;
  }
  .cal-row-head [class*="cal-cell"]:first-child,
  .cal-row-head [class*="cal-cell"] {
    min-height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cal-events-num {
    margin-top: 20px;
  }
  .cal-month-day {
    position: relative;
    display: block;
    width: 100%;
  }
  #cal-week-box {
    position: absolute;
    width: 70px;
    left: -71px;
    top: -1px;
    padding: 8px 5px;
    cursor: pointer;
  }
  #cal-day-tick {
    position: absolute;
    right: 50%;
    bottom: -21px;
    padding: 0px 5px;
    cursor: pointer;
    z-index: 5;
    text-align: center;
    width: 26px;
    margin-right: -17px;
  }
  .cal-year-box #cal-day-tick {
    margin-right: -7px;
  }
  #cal-slide-box {
    position: relative;
  }
  #cal-slide-tick {
    position: absolute;
    width: 16px;
    margin-left: -7px;
    height: 9px;
    top: -1px;
    z-index: 1;
  }
  #cal-slide-tick.tick-month1 {
    left: 12.5%;
  }
  #cal-slide-tick.tick-month2 {
    left: 37.5%;
  }
  #cal-slide-tick.tick-month3 {
    left: 62.5%;
  }
  #cal-slide-tick.tick-month4 {
    left: 87.5%;
  }
  #cal-slide-tick.tick-day1 {
    left: 7.14285714285715%;
  }
  #cal-slide-tick.tick-day2 {
    left: 21.42857142857143%;
  }
  #cal-slide-tick.tick-day3 {
    left: 35.71428571428572%;
  }
  #cal-slide-tick.tick-day4 {
    left: 50%;
  }
  #cal-slide-tick.tick-day5 {
    left: 64.2857142857143%;
  }
  #cal-slide-tick.tick-day6 {
    left: 78.57142857142859%;
  }
  #cal-slide-tick.tick-day7 {
    left: 92.85714285714285%;
  }
  .events-list {
    position: absolute;
    bottom: 5px;
    left: 0;
    overflow: hidden;
    text-align: left;
  }
  #cal-slide-content ul.unstyled {
    margin-bottom: 0;
  }
  .cal-week-box {
    position: relative;
  }
  .cal-week-box [data-event-class] {
    white-space: nowrap;
    height: 30px;
    margin: 1px 1px;
    line-height: 30px;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-left: 10px;
  }
  .cal-week-box .cal-column {
    position: absolute;
    height: 100%;
    z-index: -1;
  }
  .cal-week-box .arrow-before,
  .cal-week-box .arrow-after {
    position: relative;
  }
  .cal-week-box .arrow-after:after {
    content: "";
    position: absolute;
    top: 0px;
    width: 0;
    height: 0;
    right: 0;
    border-top: 15px solid #ffffff;
    border-left: 8px solid;
    border-bottom: 15px solid #FFFFFF;
  }
  .cal-week-box .arrow-before:before {
    content: "";
    position: absolute;
    top: 0px;
    width: 0;
    height: 0;
    left: 1px;
    border-top: 15px solid transparent;
    border-left: 8px solid #FFFFFF;
    border-bottom: 15px solid transparent;
  }
  /* #cal-day-box {
    text-wrap: none;
  } */

  #cal-day-box .cal-day-hour-part {
    height: 30px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border-bottom: thin dashed #B9C1C9;
  }
  #cal-day-box .cal-day-hour .day-highlight {
    height: 30px;
  }
  #cal-day-box .cal-hours {
    font-weight: bolder;
  }
  #cal-day-box .cal-day-hour:nth-child(odd) {
    background-color: #fafafa;
  }
  #cal-day-box #cal-day-panel {
    position: relative;
    padding-left: 60px;
  }
  #cal-day-box #cal-day-panel-hour {
    position: absolute;
    width: 100%;
    margin-left: -60px;
  }
  #cal-day-box .day-event {
    position: relative;
    max-width: 200px;
    overflow: hidden;
  }
  #cal-day-box .day-highlight {
    line-height: 30px;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 1px solid #c3c3c3;
    margin: 1px 1px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #cal-day-box .day-highlight.dh-event-important {
    border: 1px solid #ad2121;
  }
  #cal-day-box .day-highlight.dh-event-warning {
    border: 1px solid #e3bc08;
  }
  #cal-day-box .day-highlight.dh-event-info {
    border: 1px solid #1e90ff;
  }
  #cal-day-box .day-highlight.dh-event-inverse {
    border: 1px solid #1b1b1b;
  }
  #cal-day-box .day-highlight.dh-event-success {
    border: 1px solid #006400;
  }
  #cal-day-box .day-highlight.dh-event-special {
    background-color: #ffe6ff;
    border: 1px solid #800080;
  }
  .event {
    display: inline-block;
    background-color: #c3c3c3;
    width: 15px;
    height: 15px;
    margin-right: 2px;
    margin-bottom: 2px;
    /* -webkit-box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.4);
    box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.4); */
    border-radius: 8px;
    /* border: 1px solid #ffffff; */
  }
  .event-block {
    display: block;
    background-color: #c3c3c3;
    width: 20px;
    height: 100%;
  }
  .event-skypeconf {
	background-color: #3126ff;}
  .event-presenza {
	background-color: #0bd9d2;}
  .event-gmeetconf {
	background-color: #f73e5a;}
  .event-teamsconf {
	background-color: #ff9900;}
  .event-zoom {
	background-color: #00cf86;}	
  .event-confvirtuale {
	background-color: #17324d;}
    .event-luogofisico {
        background-color: #b3beca;}
  .cal-event-list .event.pull-left {
    margin-top: 3px;
  }
  /* .event-important {
    background-color: #ad2121;
  }
  .event-info {
    background-color: #1e90ff;
  }
  .event-warning {
    background-color: #e3bc08;
  }
  .event-inverse {
    background-color: #1b1b1b;
  }
  .event-success {
    background-color: #006400;
  }
  .event-special {
    background-color: #800080;
  } */
  .day-highlight:hover,
  .day-highlight {
    background-color: #dddddd;
  }
  .day-highlight.dh-event-important:hover,
  .day-highlight.dh-event-important {
    background-color: #fae3e3;
  }
  .day-highlight.dh-event-warning:hover,
  .day-highlight.dh-event-warning {
    background-color: #fdf1ba;
  }
  .day-highlight.dh-event-info:hover,
  .day-highlight.dh-event-info {
    background-color: #d1e8ff;
  }
  .day-highlight.dh-event-inverse:hover,
  .day-highlight.dh-event-inverse {
    background-color: #c1c1c1;
  }
  .day-highlight.dh-event-success:hover,
  .day-highlight.dh-event-success {
    background-color: #caffca;
  }
  .day-highlight.dh-event-special:hover,
  .day-highlight.dh-event-special {
    background-color: #ffe6ff;
  }
  .cal-row-head [class*="cal-cell"]:first-child,
  .cal-row-head [class*="cal-cell"] {
    font-weight: bolder;
    text-align: center;
    border: 0px solid;
    border-right: 1px solid;
    padding: .5rem 0;
    font-size: .8rem;
  }
  .cal-row-head [class*="cal-cell"]:last-child {
    border-right: 0px solid!important;
  }
  .cal-row-head [class*="cal-cell"] small {
    font-weight: normal;
  }
  .cal-year-box .row-fluid:hover,
  .cal-row-fluid:hover {
    background-color: #fafafa;
  }
  .cal-month-day {
    height: 100px;
  }
  [class*="cal-cell"]:hover {
    /* background-color: #ededed; */
    -webkit-box-shadow:inset 0px 0px 0px 2px #0066CC;
    -moz-box-shadow:inset 0px 0px 0px 2px #0066CC;
    box-shadow:inset 0px 0px 0px 2px #0066CC;
  }
  .cal-year-box [class*="span"],
  .cal-month-box [class*="cal-cell"] {
    min-height: 100px;
    border-right: 1px solid #B9C1C9;
    position: relative;
  }
  .cal-year-box [class*="span"] {
    min-height: 60px;
  }
  .cal-year-box .row-fluid [class*="span"]:last-child,
  .cal-month-box .cal-row-fluid [class*="cal-cell"]:last-child {
    border-right: 0px;
  }
  .cal-year-box .row-fluid,
  .cal-month-box .cal-row-fluid {
    border-bottom: 1px solid #B9C1C9;
    margin-left: 0px;
    margin-right: 0px;
  }
  .cal-year-box .row-fluid:last-child,
  .cal-month-box .cal-row-fluid:last-child {
    border-bottom: 0px;
  }
  .cal-month-box,
  .cal-year-box,
  .cal-week-box {
    border-top: 1px solid #B9C1C9;
    border-bottom: 1px solid #B9C1C9;
    border-right: 1px solid #B9C1C9;
    border-left: 1px solid #B9C1C9;
    border-radius: 2px;
  }
  span[data-cal-date] {
    /* font-size: 1.2em; */
    font-weight: normal;
    /* opacity: 0.5; */
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    margin-top: 15px;
    margin-right: 15px;
  }
  span[data-cal-date]:hover {
    opacity: 1;
  }

  .cal-day-outmonth span[data-cal-date] {
    opacity: 0.4;
    cursor: default;
  }
  .cal-day-outmonth span{
    opacity: 0.4;
    cursor: default;
  }
  /* .cal-day-today {
    background-color: #e8fde7;
  } */
  .cal-day-today span[data-cal-date] {
    color: white;
    background: #0073E6;
    padding: 2px 10px;
    border-radius: 50%;
  }
  /* .cal-month-box .cal-day-today span[data-cal-date] {
    font-size: 1.9em;
  } */
  .cal-day-holiday span[data-cal-date] {
    color: #690669;
    font-weight: bold;
  }
  .cal-day-weekend span[data-cal-date] {
    color: #c7102c;
    font-weight: bold;
  }
  #cal-week-box {
    border: 1px solid #B9C1C9;
    border-right: 0px;
    border-radius: 5px 0 0 5px;
    background-color: #fafafa;
    text-align: right;
  }
  #cal-day-tick {
    /*border: 1px solid #B9C1C9;*/
    border-top: 0px solid;
    border-radius: 0 0 5px 5px;
    background-color: #ededed;
    text-align: center;
  }
  #cal-slide-box {
    border-top: 0px solid #8c8c8c;
  }
  #cal-slide-content {
    padding: 20px;
    color: #ffffff;
    background-image: url("../img/dark_wood.png");
    -webkit-box-shadow: inset 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
    box-shadow: inset 0px 0px 15px 0px rgba(0, 0, 0, 0.5);
  }
  #cal-slide-tick {
    background-image: url("../img/tick.png?2");
  }
  #cal-slide-content:hover {
    background-color: transparent;
  }
  #cal-slide-content a.event-item {
    color: #ffffff;
    font-weight: normal;
    line-height: 22px;
  }
  .events-list {
    max-height: 47px;
    padding-left: 5px;
  }
  .cal-column {
    border-left: 1px solid #B9C1C9;
  }
  a.cal-event-week {
    text-decoration: none;
    color: #151515;
  }
  .badge-important {
    background-color: #b94a48;
  }


/* CSS modificato johnny*/

  .reader {
    height: 0;
    width: 0;
    position: absolute;
    overflow: hidden;
    top: -10000em;
  }
  
.paginazioneCalendario {
	position: relative;
	text-align: center;
	padding: 15px;
	overflow: hidden;
}

.paginazioneCalendario .page-header {
	margin: 0;
	border: none;
	padding: 0;
	float: left;}

.paginazioneCalendario .page-header h3 {
	margin: 0;}

.paginazioneCalendario .paginationHome {
	display: inline-block;
	color: #3f5b7f;
	float: none;
	text-transform: none
}

.wrap-calendar .cal-event-list h3 {
	text-align: center;
	background: #5C6F82;
	color: #fff;
	text-transform: uppercase;
	display: block;
	font-weight: 600;
	font-size: 1rem;
	padding: 0.8rem 2.2rem;
	letter-spacing: 1px;
	margin: 0 auto;
	/* border-radius: 0 0 5px 5px; */
	max-width: 30rem;
}

.wrap-calendar .paginazioneCalendario {
	text-align: center;
	text-transform: uppercase;
	color: #0066CC;
	font-weight: 600;
	position: relative;
	padding: .5rem;
	margin: 0 0.5rem .8rem;
	font-size: 1.8rem;
	word-spacing: 0.5px;
}
.wrap-calendar .paginazioneCalendario h3 { 
  color: #0066CC;
  font-size: 1.1rem;
  padding: 0.3rem 0;
}
.wrap-calendar .cal-arrow {
	background: none;
	position: absolute;
	border: none;
	width: 3.8rem;
	height: 2.5rem;
	-webkit-transition: all 0.2s ease-out;
	transition: all 0.2s ease-out;
}

.wrap-calendar .cal-arrow.arrow-right {
	right: 20%;
	background: url(../../img/icons/ico-arrow-right.png) no-repeat center center;
	background-size: 20% auto;
}

.wrap-calendar .cal-arrow.arrow-left {
	left: 20%;
	background: url(../../img/icons/ico-arrow-left.png) no-repeat center center;
	background-size: 20% auto;
}
@media(max-width:768px){
  .wrap-calendar .cal-arrow.arrow-right {
    right: 0%;
  }
  .wrap-calendar .cal-arrow.arrow-left {
    left: 0%;
  }
}
.wrap-calendar .box-legenda {
	margin: 2rem 0 0 0;
}

.wrap-calendar .box-legenda li {
	overflow: hidden;
	/* text-transform: uppercase; */
	color: #2f3c49;
	display: inline-block;
	/* font-size: 1rem; */
	/* letter-spacing: 0.5px; */
	margin: 0.2rem 1rem 0.2rem 0;
	line-height: 1.6;
}

.wrap-calendar .box-legenda li a {
	/* width: 1rem;
	height: 1rem; */
	border-radius: 2rem;
	float: left;
	margin: 0.5rem 0.5rem 0 0;
}
.cal-month-day-noLink, .cal-month-day {
    text-align: center;
    padding-top: .3rem;
}

/* da eliminare dopo aver aggiornato main.css su opencms*/
.eventiCalendario .card-calendar.camef-eventi {
  height: 70%!important;
  max-height: 70px!important;
  width: 70px!important;
  padding: 5px 0!important;
}
.eventiCalendario .card-calendar.camef-eventi .card-day { 
  padding-top: 25%!important;
}

@media(max-width:768px){
  .events-list {
      bottom: 0;
      max-height:fit-content;
  }
  .event {
    width:8px;
    height: 8px;
    margin-right:auto;
  }
  .cal-row-head [class*="cal-cell"]:first-child, .cal-row-head [class*="cal-cell"] {
    padding: 0.5rem;
  }
  .cal-month-day-noLink, .cal-month-day {
    font-size: .8rem;
  }
}
