@charset "utf-8";

@font-face {
    font-family: 'Macho Modular';
    src: url('fonts/MachoModular_Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
	font-family: 'Macho Modular';
	src: url('fonts/MachoModular_Medium.woff2') format('woff2');
	font-weight: 500; /* Medium */
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Macho Modular';
	src: url('fonts/MachoModular_Bold.woff2') format('woff2');
	font-weight: 700; /* Bold */
	font-style: normal;
	font-display: swap;
}

/* Box sizing globale */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
  --ombra: 0 3px 2px rgba(0, 0, 0, 0.5);  
}

html, body {
	height: 100%; 
	background-color: black;	
}

body, input, button, .pulsante, p, th, td, tr, span, div {
	font-family: 'Macho Modular', sans-serif;
	font-weight: 500;
	text-decoration: none;
	text-align: center;
}

#titolo {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 50px;
	background-color: #B00020;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 40px;
	letter-spacing: 40px;
	font-weight: 700;	
	box-shadow: var(--ombra);
	z-index:9;
}

#login_form {
	background-color: white;
	position: relative;
	margin: 0 auto;
	margin-bottom: 20px;
	padding-bottom: 20px;
	top: 0px;
	left: 0px;
	width: 100%;
	display: none;
}

p {
	font-size: 32px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-weight: 700;	
}

#login_form p, input {
	font-size: 20px;	
}

input {
	border-radius: 10px;
	border: 1px black solid;	
}

.pulsante {
    height: 36px;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 1px rgba(255,255,255,.5);
    padding: 0px 8px;
    border: 1px solid gray;
    border-radius: 18px;
    background-color: rgba(170, 170, 170, 1); 
    transition: background-color 0.8s ease, color 0.3s ease, box-shadow 0.2s ease;
    box-shadow: var(--ombra);
}

.pulsante:hover {
    background-color: rgba(220, 220, 220, 1); 
    cursor: pointer;
}

.pulsante:active {
    box-shadow: none;
}

#logoid {
	margin: 0 auto;	
	padding-bottom: 20px;	
	max-width: 280px;
	min-width: 180px;
	height: auto;
	text-align: center;	
}

#logomon {
	position: absolute;
	right: 10px;
	bottom: 10px;
	max-width: 10%;
	min-width: 180px;
	height: auto;
	z-index:0;
}

#tenda {
	width: 100%;
	background-color: white;
	padding-top: 100px;
	padding-bottom: 100px;
	text-align: center;
	display: none;
	margin-bottom: 20px;
}

#tenda span {
	color: white;
	background-color: #B00020;
	display: inline-block;
	padding: 5px;
	text-align: center;
	margin-top: 30px;
	font-size: 24px;
	font-weight: 700;
}

#tenda p{
	font-size: 24px;
}

#tenda img {
	display: block;
	width: 128px;
	height: auto;
	margin: 0 auto;
}

.container {
	display: flex;
	flex-direction: row;
	height: 100vh;
	width: 100%;
	padding-top: 80px;
	background-color: #fff;
}

.pane.left {
	width: 40%;
	height: 100%;
	overflow-y: auto;
	padding: 20px;
	box-sizing: border-box;	
}

.pane.right {
	width: 60%;
	height: 100%;
	overflow-y: auto;
	padding: 20px;
	box-sizing: border-box;	
}

table {
	position: relative;
	width: 90%;
	max-width: 1200px;
	border-collapse: collapse;
	margin: 0 auto;
	margin-top: 50px;
	box-shadow: var(--ombra);
	table-layout: fixed;
	word-wrap: break-word;
	word-break: break-word;
	overflow-wrap: break-word;	
	z-index: 2;
}

.nessun-evento td{
	font-size: 20px;
}

table img{
	width: 28px;
	height: auto;	
}

th, td {    
    font-size: 16px;
	white-space: normal;
	border: 1px solid rgba(0, 150, 255, 1);	
	text-align: center;
	vertical-align: middle;	
}

td {
	padding: 8px;
}

th {
	background-color: rgba(0, 150, 255, 1);
	padding: 4px 0px 2px 0px;	
	color: white;	
	vertical-align: middle;	
}

tr {
	/*background-color: #eaecff;	*/
	background-color: #fff9e6;
}

.col-orario, .col-evento {
	width: 70px;
	white-space: nowrap;
	vertical-align: middle;	
}

.evento-in {
	/*verde*/
	background-color: rgba(90, 255, 109, 1); 
}

.evento-out {
	/*rosso*/
	background-color: rgba(255, 64, 64, 1);
	color: white;
}

.pane.right p{
	margin-top: 40px;
	font-size: 24px;
}

#live .live-count {
	font-size: 2rem;
	font-weight: bold;
	margin-bottom: 1em;
}

#live ul {
	list-style: none;
	padding-left: 0;	
}

#live li {
	max-width: 600px;
	margin: 0 auto;
}

#live ul li {
	display: flex;
	box-sizing: border-box;
    height: 40px; 
	border: 2px solid rgba(31, 151, 65, 1);
	border-radius: 20px;	
	justify-content: space-between; /* sinistra/destra */
	align-items: center; 	
	margin-bottom: 0.75em;
	padding: 8px;
	background-color: #fff9e6;
	box-shadow: var(--ombra);
}

ul img {
	width: 20px;
	height: auto;
}

.left-part {
	display: flex;
	align-items: center;  /* centra pallino e testo */
	gap: 5px;              /* spazio tra pallino e testo */
}

.bullet-point {
	background-color: rgba(90, 255, 109, 1);
	width: 10px;
	height: 10px;
	border: 2px solid rgba(31, 151, 65, 1);
	border-radius: 50%; 
}

.date {
	white-space: nowrap; /* evita che vada a capo */	
}

.evidenzia{
	color: red;
}

h1 {
	font-size: 32px;
	margin-bottom: 60px;
}

#contatori {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 250px;
	height: 36px;
    font-size: 16px;
    margin: 0 auto 50px auto;
    border-radius: 18px;
    border: 1px solid black;
    background-color: #fff9e6;
	box-shadow: var(--ombra);
    padding: 5px 10px;
}

#contatori img {
    width: 20px;
    height: auto;
}

#contatori span {    
    padding: 2px 6px;
    line-height: 20px;
}

#contatori span:first-of-type {
	margin-right: 30px;
}

#direzione {
    height: 190px;
    display: block;
    justify-content: center;
    align-items: center;
}

#login input {
	margin-bottom: 20px;
	background-color: #fff9e6;	
}

#direzione img{
	max-width: 280px;
}

#direzione img[src$="denied.svg"] {
    margin: 0px 0px 10px 0px;
	max-width: 150px;
}

#err-msg{
	font-size: 16px;
	text-align: center;	
	color: red;
	padding: 0px;
	margin: 0px auto;
}

.form-storico {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 15px;
	justify-content: center;
	margin: 0;
}

.form-storico input[type="date"] {
	min-width: 180px;
	flex-shrink: 0;
	height: 36px;
	border-radius: 18px;
	background-color: #fff9e6;
	box-shadow: var(--ombra);
	padding: 0px 10px 0px 10px;
}

.form-storico button {
	flex-shrink: 0;	
}

#riga-eventi-wrapper {
	margin: 0 auto;
	width: 90%;
	max-width: 1200px;
	position: relative;	
	display: flex;
	justify-content: center;
	align-items: center;
}

#riga-eventi-centrata {
	display: flex;
	align-items: center;
	gap: 10px;
}

#riga-eventi-centrata p {
	margin: 0;
}

#riga-eventi-download {
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
}

#riga-frecce {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: 10px;
}
#riga-frecce svg{
	position: relative;
    top: 2px;
}

.download-inline {
	position: relative;
	width: 36px;
	height: auto;
	cursor: pointer;
	background-color: rgba(0, 150, 255, 1);
	border-radius: 6px;
	box-shadow: var(--ombra);		
    transition:
        background-color 0.8s ease, 
        color 0.3s ease,
        box-shadow 0.2s ease;
}

.download-inline:hover {		
	background-color: rgba(0, 200, 255, 1);
}

.download-inline:active {
	box-shadow: none;
	filter: brightness(1.5);
}

.download-inline.nascosto {
	visibility: hidden;
}

.download-inline line, .download-inline polyline, .download-inline path {
	stroke: black;
}

.download-inline text {	
	font-weight: 700;
	font-size: 34px;
	stroke: black;          /* colore del bordo */
	stroke-width: 2px;      /* spessore del bordo */
	paint-order: stroke;
	fill: white;
}

#user-id, #user-pw, #nome, #cognome {
    margin: 0 auto;
    max-width: 280px;
    position: relative;	
}

input[name="username"],
input[name="password"],
input[name="nome"],
input[name="cognome"] {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
}

.toggle-password{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: auto;
    height: auto;    
}

.toggle-password:hover {
    color: #333;
}

#topo{
	height: 200px;	
	display: block;
}

#topo img{
	width: 30%;
	max-width: 100px;
	margin: 30px 0px;	
}

#session {
	position: fixed;
	right: 0;
	padding: 10px 10px 10px 10px;
	align-items: center;
	gap: 10px; 
	background: rgba(255, 255, 255, 0.8);
	border-radius: 0px 0px 0px 20px;
	box-shadow: var(--ombra);
	display: flex;
	z-index: 10;
	backdrop-filter: blur(2px);
	border: none;
	border-bottom: 2px solid rgba(255, 255, 255, 0.5);
	border-left: 2px solid rgba(255, 255, 255, 0.5);
	text-shadow: 2px 2px 2px rgba(255,255,255,.75);
}

#session img {
	width: 40px;
	height: auto;
}

#session-label {
	position: absolute;
	color: #3e2f2f;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;    
    pointer-events: none;       
    background-color: rgba(90, 255, 109, 1);
	border: 1px #b1abab solid;
	border-top: 0px;
	border-radius: 7px 7px 0px 0px;	
	height: 14px;
    width: 120px;
	box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.5) inset;
}

#logout img:hover{
	cursor: pointer;	
	filter: brightness(1.25);
}

#messaggio-logout{
	padding: 250px 50px 250px 50px;
	font-size: 32px;
	font-weight: 700;
	background-color: #fff9e6;
	color: black;
	display: none;
}

#messaggio-logout span{
	margin-top: 20px;
	display:block;
}

#messaggio-logout img{
	max-width: 200px;
}

@media (max-width: 1280px) {
	.date {
		font-size: 14px;
		white-space: normal;    
		width: 100px;           /* restringe il box così il testo deve spezzarsi */       
	}
	.col-evento {
		width: 42px;		
	}	
	
	.col-orario {
		width: 56px;
	}

	#titolo {
		letter-spacing: 10px;
	}		
}	

@media (max-width: 920px) {	
	.container {		
		flex-direction: column;
		height: auto;
		width: 100%;
		padding: 0px;
		padding-top: 20px;
		overflow-x: hidden;	
		position: relative; 
		z-index: 1;      
	}	
	
	#logomon {
		z-index: 0;
	}
	
	#contatori {
		margin: 0 auto 20px auto;		
	}
	
	#live ul li {
		box-shadow: none;
		border-left: 0px;
		border-right: 0px;
		border-radius: 0px;		
	}
	
	#live li {
		max-width: none;		
	}	
	
	#session{
		margin-top: 32px;
		width: 100%;
		border-radius: 0px;
		border: none;
		border-bottom: 2px solid rgba(255, 255, 255, 0.5);	
	}
	
	#logout {
		margin-left: auto;
	}
	
	.pane.left,
	.pane.right {
		width: 100%;
		max-width: 100%;
		height: auto;
		box-sizing: border-box;
		padding: 0px;			
	}
	
	.pane.left{
		padding: 100px 0px 50px 0px;
	}
	
	.pane.right p{
		font-size: 18px;		
	}

	#titolo {
		font-size: 28px;
		height: 32px;		
	}		
	
	h1{
		font-size: 24px;
		margin-bottom: 20px;
	}
	
	#riga-eventi-download{
		transform: none;			
		padding: 0px;			
		right: 0px;
		top: 67%;
	}	
	
	#riga-eventi-wrapper {
		flex-direction: column;
		align-items: center;
	}
	
	#riga-eventi-centrata {
		flex-direction: column;
		align-items: center;
		width: 100%;
	}
	
	#riga-frecce {		
		gap: 20px;
		margin: 0 auto;
		margin-top: 10px;		
		width: 100%;
		display: flex;
		justify-content: center;		
	}
	
	table{
		box-shadow: none;	
		width: 100%;
		margin-top: 20px;
	}	

	.form-storico {
		justify-content: center;
		width: 100%;
		margin-bottom: 10px;
	}	

	.form-scorri {
		max-width: 120px;
		font-size: 20px;
	}	
}

@media (max-width: 360px) {	
	#session, #titolo, h1, .pulsante, input, #contatori, ul, li, th, td, p, .pane.right p {
		font-size: 14px;
	}
	
	#session img {
		width: 32px;		
	}	
	
	table img{
		width: 24px;
	}
	
	#contatori {		
		width: 200px;
		border-radius: 16px;				
	}
	
	.form-storico input[type="date"] {
		min-width: 130px;	
		height: 32px;		
	}
	
	#contatori img, ul img {
		width: 16px;
		height: auto;
	}

	#contatori span:first-of-type {
		margin-right: 10px;
	}
	
	.pulsante{
		height: 28px;
		border-radius: 14px;
	}
	
	.download-inline {		
		width: 32px;			
	}
	
	#riga-eventi-download{
		bottom: 0px;
	}	
}