:root {
	--grey-light: #f1f1f1;
	--blu-cobalto: #1e213d;
	--white: #fff;
	/*--blu-dodger: #1e90ff;*/
	--blu-dodger: rgb(0, 170, 255);
	--black: #000;
	--gainsboro: #dedede;
	--soft-sage : #E0E1C1;
	--grey: #dedede;
	--green-light : #d4edda;
	--red-light : #FF0000;
	--orange-light : #fff3cd;
	--red: #FF0000;

  --a:#00aaff; /* brand start */
  --b:#00ffaa; /* brand end   */
  --bg:#0b1a23;
  --ink:#0b2030;
  --muted:#5f778a;
  --card:#ffffffee;
  --stroke:#d8e1e8;
}
/* pages_layout */
.pages_layout {
	display: flex;
	width: 100%;
	height: 100vh;
	overflow: hidden;
	flex-direction: row;
	background: var(--grey-light);
}
	.pages_layout .pannel_left {
		width: 150px;
		height: 100vh;
		background: var(--blu-cobalto);
	}
	.pages_layout .pannel_right {
		width: calc(100% - 150px);
		min-height: 100vh;
		background: transparent;
	    overflow-y: auto;
	    overflow-x: hidden;
	}

/* Menu principale */
.navigation {
	width: 100%;
	height: auto;
}
	.navigation li {
		display: block;
		font-family: "Lato", sans-serif;
		color: var(--white);
		font-size: 14px;
		text-align: center;
		padding-bottom: 10px;
	}
		.navigation li:not(:first-child) {
			cursor: pointer;
		}
		.navigation li i {
			display: block;
			height: 50px;
			line-height: 50px;
			text-align: center;
			color: var(--white);
			font-size: 25px;
		}
		.navigation li img {
			padding-top: 10px;
			width: 60%;
		}
	.navigation li:hover:not(:first-child) {
		background: var(--blu-dodger);
	}
	.navigation li.active {
		background: var(--blu-dodger);
	}

/* Header */
header {
	width: 100%;
	height: 70px;
	background: var(--white);
}
	header .c_pannel {
		margin-top: 15px;
		width: 100%;
		height: 40px;
	}
		header .c_pannel i {
			display: inline-block;
			width: 40px;
			line-height: 40px;
		  background:
		    conic-gradient(from 180deg at 100% 0%, rgba(0,170,255,.35), rgba(0,255,170,.35), rgba(255,255,255,0) 35%),
		    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.25));
			color: var(--black);
			text-align: center;
			border-radius: 40px;
			font-size: 20px;
		}
		header .c_pannel p {
			display: inline-block;
			font-family: "Lato", sans-serif;
			font-size: 16px;
			line-height: 40px;
		}

	header #nav_top {
		display: block;
		float: right;
		height: 40px;
		margin-top: 15px;
	}
		header #nav_top li {
			position: relative;
			display: inline-flex;
			height: 40px;
			line-height: 40px;
			min-width: 40px;
			text-align: center;
			cursor: pointer;
			background: var(--blu-dodger);
		  justify-content: center;
		  border-radius: 40px;
		  color: var(--white);
		}
			header #nav_top li#bg_t {
				background: transparent;
			}
		header #nav_top li:hover {
			border-radius: 40px 40px 0 0;
		}
		header #nav_top li #number_act {
			display: inline-block;
			height: 30px;
			padding-left: 5px;
		}
			header #nav_top li ul {
				display: none;
				position: absolute;
				z-index: 9;
				right: 0;
				top: 40px;
				background: var(--blu-dodger);
				min-width: 150px;
				width: max-content;
				padding-left: 10px;
				padding-right: 10px;
				text-align: center;
				border-radius: 20px 0 20px 20px;
				padding-top: 10px;
			}
			header #nav_top li ul li {
				display: block;
				color: var(--white);
				font-size: 15px;
				height: auto;
				line-height: 30px;
				padding-bottom: 10px;
				background: transparent;
			}
				header #nav_top li ul li i {
					display: block;
					font-size: 25px;
					color: var(--white);
				}
				header #nav_top li ul li:hover,
				header #nav_top li ul li.active,
				header #nav_top li ul li:hover i,
				header #nav_top li ul li i.active  {
					color: var(--white);
				}

			header #nav_top li:hover ul {
				display: block;
			}
		header #nav_top form.research {
			height: 30px;
		}
			header #nav_top form.research input {
				border: 1px solid var(--Gray);
				height: 30px;
				padding: 0;
				padding-left: 10px;
				background: transparent;
				outline: none;
				border-bottom: 1px solid var(--blu-cobalto);
				color: var(--black);
				min-width: 500px;
			}
		header #nav_top form.research .search-dropdown {
		    position: absolute;
		    background: var(--blu-cobalto);
		    width: 500px;
		    max-height: 250px;
		    overflow-y: auto;
		    z-index: 999;
		    color: var(--white);
			font-family: "Lato", sans-serif;
		    font-size: 12px;
		}
		header #nav_top form.research .search-dropdown div {
		    padding: 5px;
		    cursor: pointer;
		}
		header #nav_top form.research .search-dropdown div:hover {
		    background: var(--blu-cobalto);
		}

/* Section */
section {
	margin-top: 15px;
	margin-left: 30px;
	width: calc(100% - 60px);
	min-height: 60px;
	background: var(--white);
  	box-shadow: 5px 5px 2px var(--gainsboro);
}

/* nav_list_section */
.nav_list_section {
	width: 100%;
	height: 60px;
	text-align: left;
}
	.nav_list_section li {
		display: inline-flex;
		height: 60px;
		min-width: 90px;
		padding: 0 10px 0 10px;
		text-align: center;
		align-content: center;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		cursor: pointer;
	}
		.nav_list_section li#right {float: right;}
		.nav_list_section li i {
			display: block;
			height: 30px;
			line-height: 30px;
		}
		.nav_list_section li p {
			display: block;
			height: 30px;
			line-height: 30px;
			font-family: "Lato", sans-serif;
			text-transform: uppercase;
		}
		.nav_list_section li:hover,
		.nav_list_section li.active {
			background: var(--blu-dodger);
			color: var(--white);
		} 

/* Tabella */
.list_table {
	width: 100%;
}
	.list_table tr {
		line-height: 40px;
		font-family: "Lato", sans-serif;
		text-align: center;
	}
		.list_table tr:first-child td {
			font-weight: bold;
		}
		.list_table tr:nth-child(odd) {
			background: var(--grey-light);
		}
	.list_table tr #color_tmp {
		padding: 20px;
		width: 30px;
		display: block;
		margin: 0 auto;
		border-radius: 10px;
	}
	.list_table tr .cog {
		position: relative;
	}
		.list_table tr .cog .pul_edit {
			display: block;
			margin: 0 auto;
			height: 30px;
			line-height: 30px;
			width: 50px;
			border-radius: 5px;
			background: var(--soft-sage);
			cursor:pointer;
		}
			.list_table tr .cog .pul_edit i.icon-cog {
				display: inline-block;
				width: 25px;
				text-align: center;
			}
			.list_table tr .cog .pul_edit i.icon-down-open-big {
				display: inline-block;
				width: 20px;
				text-align: center;
			}
		.list_table tr .cog .pul_edit_opn {
			display: none;
			position: absolute;
			top: 30px;
			right: calc(50% - 25px);
			z-index: 2;
			background: var(--white);
			width: auto;
			height: auto;
		}
			.list_table tr .cog .pul_edit_opn ul {
				padding: 10px;
				border: 1px solid var(--grey);
			}
				.list_table tr .cog .pul_edit_opn ul li {
					display: block;
					height: 30px;
					line-height: 30px;
					white-space: nowrap;
					text-align: left;
					font-family: "Lato", sans-serif;
					cursor:pointer;
				}
				.list_table tr .cog .pul_edit_opn ul li:hover {
					color: var(--blu-dodger);
				}

/* POPUP Messaggi */
.popup-msg {
	display: none;
	position: absolute;
	bottom: 25px;
	right: 25px;
	line-height: 50px;
	padding: 4px 30px 4px 30px;
	background: var(--grey-light);
	border-radius: 10px;
	font-family: "Lato", sans-serif;
	font-size: 14px;
}
	.popup-msg.success {background: var(--green-light);}
	.popup-msg.error {
		background: var(--red-light);
		color: var(--white);
	}
	.popup-msg.warning {background: var(--orange-light);}

/* Delete */
.delete_action {
	display: none;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 4;
	padding-bottom: 10px;

	width: 400px; /* puoi anche metterlo in max-width o lasciare fisso */
	background: var(--white);
	border-radius: 10px;
	text-align: center;
}
	.delete_action span {
		display: block;
		width: 100%;
		line-height: 50px;
		text-align: center;
		font-family: "Lato", sans-serif;
		font-weight: bold;
		font-size: 20px;
		background: var(--red);
		color: var(--white);
		border-radius: 5px 5px 0 0;
	}
	.delete_action p {
		display: block;
		width: 100%;
		height: 50px;
		line-height: 50px;
		text-align: center;
		font-family: "Lato", sans-serif;
		font-size: 15px;
	}
	.delete_action button {
		font-family: "Lato", sans-serif;
	} 

/* Form Data */
.form_data {

}
	.form_data h3 {
		width: 100%;
		height: 60px;
		line-height: 60px;
		margin: 0;
		padding: 0;
		font-family: "Lato", sans-serif;
	}
	.form_data strong,
	.form_data p {
		display: inline-block;
		line-height: 50px;
		font-family: "Lato", sans-serif;
	}
		.form_data p.diary-text {
			line-height: 30px;
		}
	.form_data .pul_edit {
		display: block;
		margin: 0;
		height: 30px;
		line-height: 30px;
		width: 100px;
		border-radius: 5px;
		background: var(--soft-sage);
		cursor:pointer;
		font-family: "Lato", sans-serif;
		text-align: center;
	}
		.form_data .pul_edit i.icon-cog {
			display: inline-block;
			width: 25px;
			text-align: center;
		}
		.form_data .pul_edit i.icon-down-open-big {
			display: inline-block;
			width: 20px;
			text-align: center;
		}
	/* Form */
	.form_data textarea,
	.form_data input,
	.form_data select.select-main {
		width: 100%;
		min-height: 120px;
		border: 1px solid var(--grey-light);
		outline: none;
		border-radius: 5px;
		font-family: "Lato", sans-serif;
		margin-bottom: 10px;
	}
		.form_data input,
		.form_data select.select-main {
			min-height: 40px;
			line-height: 40px;
			outline: none;
		}
		.form_data .d-none {
			display: none;
		}
		.form_data button {
			display: inline-block;
			margin-bottom: 10px;
			outline: none;
		}
		.form_data .is-invalid {
		  border-color: var(--red-light);
		  background: #f8d7da;
		}

	/* Proggress bar */
	.form_data .bar-line {
	  height: 10px;
	  background: #eee;
	  margin-top: 10px;
	  margin-bottom: 10px;
	  border-radius: 4px;
	  overflow: hidden;
	}
		.form_data .proggress-bar {
		  height: 100%;
		  width: 0%;
		  background: #28a745;
		  transition: width 0.3s ease;
		}

/* Pagination */
.pagination {
	width: 100%;
	height: 40px;
	text-align: right;
	padding-right: 10px;
}
	.pagination span {
  		font-family: "Lato", sans-serif;
	}
	.pagination a {
		display: inline-block;
  		font-family: "Lato", sans-serif;
		width: auto;
		height: 40px;
		line-height: 40px;
		padding-left: 5px;
		padding-right: 5px;
		text-decoration: none;
		color: var(--black);
	}
		.pagination a:hover,
		.pagination span.current {
			color: var(--blu-dodger);
		}

/* Calendar */
.app {
	margin-top: 15px;
}
.fc-toolbar {
  	background: var(--white);
  	padding: 10px;
}
.toolbar {
    display:flex;
    gap:16px;
    align-items:center;
    margin-bottom:12px;
    flex-wrap:wrap;
  	background: var(--white);
  	justify-content: center;
  	font-family: "Lato", sans-serif;
}
	.toolbar h3 i {
		cursor: pointer;
	}
.fc-view-harness.fc-view-harness-passive {background: var(--white);}
.calendar-filters {
    display:flex;
    flex-wrap:wrap;
    background: var(--white);
	justify-content: center;
}
.fc .fc-col-header-cell-cushion {
    text-decoration: none;
    color: var(--black);
}
.chip {
	display:inline-flex; align-items:center; gap:8px; padding:6px 10px; border-radius:999px;
	border:1px solid #e4e4e7; background:#fafafa; cursor:pointer; user-select:none;
}
.chip input[type="radio"], 
.chip input[type="checkbox"] {display: none;}
.chip {transition: border-color .2s, background .2s;}
.chip input[type="checkbox"]:checked + span.dot,
.chip input[type="checkbox"]:checked + span.dot + span {
	font-family: "Lato", sans-serif;
}
.chip:has(input:checked) {
	background: var(--blu-cobalto);
	color: var(--white);
}
.dot { 
    width:10px; 
    height:10px; 
    border-radius:999px; 
    display:inline-block; 
}
.fc .fc-daygrid-day-top { 
    flex-direction: row; 
    align-items: center; 
	padding: 4px 6px; 
}
.day-num {
    font-weight: 600; 
    padding: 2px 6px; 
	border-radius: 8px;
}
.fc-day-sat .day-num, .fc-day-sun .day-num { opacity:.8; }

	/* Pop up Calendar */
	.block_bg_background {
		display: none;
		width: 100%;
		height: 100%;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 3;
	}
	.popup_calendar {
		display: none;
		position: fixed;
		left: 50%;
		top: 50%;
		transform: translate(-50%, -50%);
		z-index: 4;
		padding-bottom: 10px;
		border: 2px solid var(--grey-light);
		width: 500px;
		height: 500px;
		background: var(--white);
		text-align: center;
		overflow-y: auto;
		overflow-x: hidden;
		scroll-behavior: auto;
		overflow-anchor: none;
	}
		.popup_calendar span {
			display: block;
  			font-family: "Lato", sans-serif;
  			text-align: center;
  			height: 35px;
  			line-height: 35px;
		}
		.popup_calendar input#ev-title,
		.popup_calendar input#ev-assegnation,
		.popup_calendar input#ev-assegnation-display,
		.popup_calendar input#ev-calendar,
		.popup_calendar input#ev-ric-finoa,
		.popup_calendar input#ev-indirizzo,
		.popup_calendar input#ev-link,
		.popup_calendar select#ev-calendar,
		.popup_calendar select#ev-ricorrenza-ui, 
		.popup_calendar textarea#ev-description,
		.popup_calendar input#cl-name {
			margin: 0 auto;
			display: block;
			width: 80%;
			outline: none;
			border: 1px solid var(--grey-light);
			font-family: "Lato", sans-serif;
			border-radius: 5px;
			margin-bottom: 10px;
			min-height: 40px;
			line-height: 40px;
		}
		.popup_calendar input#ev-start,
		.popup_calendar input#ev-end,
		.popup_calendar input#cl-color,
		.popup_calendar input#cl-color-picker {
			margin: 0 auto;
			display: inline-block;
			width: 37%;
			outline: none;
			border: 1px solid var(--grey-light);
			font-family: "Lato", sans-serif;
			border-radius: 5px;
			margin-bottom: 10px;
			min-height: 40px;
			line-height: 40px;
		}

/* Login */
body#login.cf-split{
  margin:0;
  min-height:100vh;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background: var(--bg);
  display:grid;
  place-items: stretch;
}
.cf-shell{
  display:grid;
  grid-template-columns: minmax(340px, 48%) 1fr;
  min-height:100vh;
}
.cf-brand{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-rows: 1fr auto;
  background: radial-gradient(1200px 1200px at 0% 100%, rgba(0,255,170,.18) 0%, transparent 60%),
              radial-gradient(1000px 1000px at 100% 0%, rgba(0,170,255,.20) 0%, transparent 60%),
              linear-gradient(135deg, #051018, #0e2230);
  color:#e7f7ff;
}
.cf-brand .cf-mesh{
  position:absolute; inset: -20% -10%;
  filter: blur(40px) saturate(130%);
  background:
    radial-gradient(40% 35% at 25% 40%, rgba(0,170,255,.85) 0%, transparent 60%),
    radial-gradient(45% 40% at 70% 60%, rgba(0,255,170,.85) 0%, transparent 60%);
  animation: meshMove 18s ease-in-out infinite alternate;
}
@keyframes meshMove{
  0%   { transform: translate3d(-2%, -2%, 0) scale(1); }
  50%  { transform: translate3d(3%, 1%, 0)  scale(1.05); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1); }
}

.cf-brand-content{
  z-index:1;
  align-self:center;
  justify-self:center;
  text-align:center;
  padding: 40px 20px;
}
.cf-logo{
  height:200px;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.25));
  margin-bottom:14px;
}
.cf-foot{
  z-index:1;
  padding: 16px 24px;
  font-size:12px;
  color:#b9d2de;
  opacity:.9;
}
.cf-foot a {
	z-index: 1;
  font-size: 12px;
  color: #b9d2de;
  opacity: .9;
}
.cf-form-pane{
  display:grid;
  place-items:center;
  padding: clamp(20px, 4vw, 48px);
  background:
    radial-gradient(800px 800px at 80% 0%, rgba(0,170,255,.08) 0%, transparent 60%),
    radial-gradient(900px 900px at 10% 80%, rgba(0,255,170,.08) 0%, transparent 60%),
    linear-gradient(180deg, #f7fbff, #edf5ff);
}
.login-container.cf-card{
  width:100%;
  max-width: 460px;
  padding: 2px;
  border-radius: 22px;
  background:
    conic-gradient(from 180deg at 85% 0%, rgba(0,170,255,.35), rgba(0,255,170,.35), rgba(255,255,255,0) 35%),
    linear-gradient(135deg, rgba(255,255,255,.45), rgba(255,255,255,.25));
  position:relative;
  clip-path: polygon(0 0, 86% 0, 100% 14%, 100% 100%, 0 100%); /* angolo tagliato */
}
.login-box{
  background: var(--card);
  border-radius: 20px;
  padding: 42px 34px 32px;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.cf-form-title{
  margin:0 0 4px;
  font-weight:900;
  font-size:24px;
  color:#0e2a39;
}
.cf-form-sub{
  margin:0 0 18px;
  color:var(--muted);
  font-size:13px;
}
.login-error{
  background:#fff3f3;
  color:#b00000;
  border:1px solid #ffd6d6;
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
  margin-bottom:16px;
}
.login-form .input-group{ margin-bottom:16px; }
.login-form label{
  display:block; font-size:13px; color:var(--muted); margin:0 0 6px;
}
.login-form input{
  width:100%; height:48px; padding:12px 14px;
  border:1px solid var(--stroke);
  border-radius:12px; font-size:15px; background:#fff; outline:none;
  transition:border-color .2s ease, box-shadow .2s ease, transform .02s;
}
.login-form input:hover{ border-color:#cbd9e2; }
.login-form input:focus{
  border-color:var(--a);
  box-shadow:0 0 0 4px rgba(0,170,255,.18);
}
.input-with-toggle{ position:relative; }
.input-with-toggle input{ padding-right:44px; }
.pw-toggle{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  border:0; background:transparent; padding:6px; cursor:pointer;
  border-radius:10px; font-size:18px; line-height:0;
  color:#6a7f90;
}
.pw-toggle.on{ color:#0aa; }
.btn-login{
  width:100%; height:48px; border:0; border-radius:14px;
  font-weight:900; letter-spacing:.2px; font-size:16px; color:#fff; cursor:pointer;
  background:linear-gradient(90deg, var(--a), var(--b));
  box-shadow: 0 14px 30px rgba(0,170,255,.28);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-login:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0,170,255,.34);
  filter: saturate(1.05);
}
.btn-login:active{ transform: translateY(0); }
.info-text{
  text-align:center; color:var(--muted); font-size:12.5px; margin-top:14px;
}

/* Footer */
.footer_push {
	min-height: calc(100vh - 60px);
}
.footer {
	margin-top: 10px;
	background: var(--white);
}
	.footer .size_cloud {
		display: block;
		width: 100%;
		height: 15px;
		background: var(--grey);
		border-radius: 10px;
		margin-top: 10px;
	}
		.footer .size_cloud #bar_prog {
			display: block;
			width: 0;
			height: 15px;
			background: var(--red);
			border-radius: 10px;
			text-align: center;
			font-size: 10px;
			color: var(--white);
		}
	.footer small {	
		display: block;
		font-family: "Lato", sans-serif;
		text-align: left;
		font-size: 10px;
		margin-bottom: 10px;
	}
		.footer small a {
			color: var(--red);
		}
	.footer p {
  	z-index:1;
	  padding: 16px 24px;
	  font-size:12px;
	  color: var(--blu-dodger);
	  opacity:.9;
    text-align: right;
	}