/* Reset & Basic Setup */
html, body, div, span, h1, h2, h3, p, a, img, strong, ul, li, article, footer, header, section, audio, video{
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

article, footer, header, section{
	display: block;
}

html{ box-sizing: border-box; }
*, *:before, *:after{ box-sizing: inherit; }

body{
	background: #fff;
	color: #242424;
	font-family: "Source Sans Pro", Helvetica, sans-serif;
	font-size: 16pt;
	font-weight: 400;
	line-height: 1.75em;
	-webkit-text-size-adjust: none;
}

body.is-preload *, body.is-preload *:before, body.is-preload *:after{
	animation: none !important;
	transition: none !important;
}

/* Manda a capo sui mobile */
.sub-text{
    display: block; /* Forza l'andata a capo automatica su qualsiasi schermo */
}

/* Typography & Basic Elements */
ul{ list-style: none; }

a{
	transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	border-bottom: dotted 1px;
	color: #49bf9d;
	text-decoration: none;
}
a:hover{
	border-bottom-color: transparent;
	color: #ffaa88 !important;
	text-decoration: none;
}

strong{ color: #787878; font-weight: 400; }

p{ margin: 0 0 2em 0; }

h1, h2, h3{
	color: #242424;
	font-weight: 400;
	line-height: 1em;
	margin: 0 0 1em 0;
}

h1{ font-size: 2em; line-height: 1.5em; }
h2{ font-size: 1.5em; line-height: 1.5em; }
h3{ font-size: 1.25em; line-height: 1.5em; }

/* Container */

/* Grid System (Row & Columns) */
.row{
	display: flex;
	flex-wrap: wrap;
	box-sizing: border-box;
	align-items: stretch;
	margin-top: 0;
	margin-left: -2.5em;
}
.row > *{ box-sizing: border-box; padding: 0 0 0 2.5em; }

/* Column Sizing */

.row > .col-4{ width: 33.33333%; }  
  
.row > .col-6{ width: 50%; }        

/* Gutters */

/* Responsive Grid Adjustments */

@media screen and (max-width: 1280px) {
	.row{ margin-left: -2em; }
	.row > *{ padding-left: 2em; }

}

@media screen and (max-width: 980px) {

	.row > .col-12-medium{ width: 100%; }      
}

@media screen and (max-width: 736px) {
	.row{ margin-left: -1.5em; }
	.row > *{ padding-left: 1.5em; }

}

@media screen and (max-width: 480px) {

	.row > .col-12-xsmall{ width: 100%; }      
}

/* Sections & Headers */

header p{
	color: #b2b2b2;
	position: relative;
	margin: 0 0 1.5em 0;
}

header.major h2{ font-size: 2em; }

/* Form Components */

/* Box, Icon, Image */

.icon{ position: relative; border-bottom: none; }
.icon:before{
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-family: "Font Awesome 5 Free";
	font-weight: 400;
	line-height: inherit;
}
.icon > .label{ display: none; }
.icon.solid:before{ font-weight: 900; }
.icon.brands:before{ font-family: "Font Awesome 5 Brands"; }

.image{ border-radius: 0.35em; border: 0; display: inline-block; position: relative; }
.image:before{
	transition: opacity 0.2s ease-in-out;
	background: url("images/overlay.png");
	border-radius: 0.35em;
	content: "";
	display: block;
	height: 100%;
	left: 0;
	opacity: 0.5;
	position: absolute;
	top: 0;
	width: 100%;
}
.image.thumb{ text-align: center; }
.image.thumb:after{
	transition: opacity 0.2s ease-in-out;
	border-radius: 0.35em;
	border: solid 3px rgba(255, 255, 255, 0.5);
	color: #fff;
	content: "View";
	display: inline-block;
	font-size: 0.8em;
	font-weight: 400;
	left: 50%;
	line-height: 2.25em;
	margin: -1.25em 0 0 -3em;
	opacity: 0;
	padding: 0 1.5em;
	position: absolute;
	top: 50%;
	white-space: nowrap;
}
.image.thumb:hover:after{ opacity: 1.0; }
.image.thumb:hover:before{
	background: url("images/overlay.png"), url("images/overlay.png");
	opacity: 1.0;
}
.image img{ border-radius: 0.35em; display: block; }

.image.fit img{ width: 100%; }
.image.fit{ display: block; margin: 0 0 2em 0; width: 100%; }
.image.avatar{ border-radius: 100%; }
.image.avatar:before{ display: none; }
.image.avatar img{ border-radius: 100%; width: 100%; }

/* Lists */

ul{ list-style: disc; margin: 0 0 2em 0; padding-left: 1em; }
ul li{ padding-left: 0.5em; }

ul.icons{ cursor: default; list-style: none; padding-left: 0; }
ul.icons li{ display: inline-block; padding: 0 1em 0 0; }
ul.icons li:last-child{ padding-right: 0; }
ul.icons li .icon:before{ font-size: 1.5em; }

ul.labeled-icons{ list-style: none; padding: 0; }
ul.labeled-icons li{ line-height: 1.75em; margin: 1.5em 0 0 0; padding-left: 2.25em; position: relative; }
ul.labeled-icons li:first-child{ margin-top: 0; }
ul.labeled-icons li a{ color: inherit; }
ul.labeled-icons li h3{ color: #b2b2b2; left: 0; position: absolute; text-align: center; top: 0; width: 1em; }

ul.actions{
	display: flex;
	cursor: default;
	list-style: none;
	margin-left: -1em;
	padding-left: 0;
}
ul.actions li{ padding: 0 0 0 1em; vertical-align: middle; }

@media screen and (max-width: 480px) {
	ul.actions:not(.fixed){ flex-direction: column; margin-left: 0; width: 100% !important; }
	ul.actions:not(.fixed) li{ flex-grow: 1; flex-shrink: 1; padding: 1em 0 0 0; text-align: center; width: 100%; }
	ul.actions:not(.fixed) li > *{ width: 100%; }
	ul.actions:not(.fixed) li:first-child{ padding-top: 0; }
	ul.actions:not(.fixed) li button, ul.actions:not(.fixed) li .button{ width: 100%; }
	
}

/* Tables */

/* Buttons */
.button{
	appearance: none;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
	background-color: transparent;
	border-radius: 0.35em;
	border: solid 3px #787878;
	color: #464646 !important;
	cursor: pointer;
	display: inline-block;
	font-weight: 400;
	height: calc(2.75em + 6px);
	line-height: 2.75em;
	min-width: 10em;
	padding: 0 1.5em;
	text-align: center;
	white-space: nowrap;
}
.button:hover{
	border-color: #49bf9d;
	color: #49bf9d !important;
}
.button:active{
	background-color: rgba(73, 191, 157, 0.1);
	border-color: #49bf9d;
	color: #49bf9d !important;
}

.button:disabled{
	background-color: #e7e7e7 !important;
	border-color: #e7e7e7 !important;
	color: #b2b2b2 !important;
	cursor: default;
}

/* Custom Components (Work Item, Header, Footer, Main) */
.work-item{ margin: 0 0 2em 0; }
.work-item .image{ margin: 0 0 1.5em 0; }
.work-item h3{ font-size: 1em; margin: 0 0 0.5em 0; }
.work-item p{ font-size: 0.8em; line-height: 1.5em; margin: 0; }

#header{
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	background-color: #1f1815;
	background-image: url("images/overlay.png"), url("../../images/bg.avif");
	background-position: top left, top left;
	background-repeat: repeat, no-repeat;
	background-size: auto, 150%;
	color: rgba(255, 255, 255, 0.5);
	height: 100%;
	left: 0;
	padding: 8em 4em;
	position: fixed;
	text-align: right;
	top: 0;
	width: 35%;
}
#header > *{ flex-shrink: 0; width: 100%; }
#header > .inner{ flex-grow: 1; margin: 0 0 2em 0; }
#header strong{ color: #ffffff; }
#header h1{ color: rgba(255, 255, 255, 0.8); font-size: 1.35em; line-height: 1.75em; margin: 0; }
#header .image.avatar{ margin: 0 0 1em 0; width: 12.00em; }

#footer .icons{ margin: 1em 0 0 0; }
#footer .icons a{ color: rgba(255, 255, 255, 0.4); }
#footer .copyright{ color: rgba(255, 255, 255, 0.8); font-size: 0.8em; list-style: none; margin: 1em 0 0 0; padding: 0; }
#footer .copyright li{ border-left: solid 1px rgba(255, 255, 255, 0.25); display: inline-block; line-height: 1em; margin-left: 0.75em; padding-left: 0.75em; }
#footer .copyright li:first-child{ border-left: 0; margin-left: 0; padding-left: 0; }
#footer .copyright li a{ color: inherit; }

#main{
	margin-left: 35%;
	max-width: 54em;
	padding: 0 4em 4em 4em;
	width: calc(100% - 35%);
}
#main > section{ border-top: solid 2px #efefef; margin: 1em 0 0 0; padding: 4em 0 0 0; }
#main > section:first-child{ border-top: 0; margin-top: 0; padding-top: 0; }

/* Poptrox Modal Plugin */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.poptrox-popup{
	box-sizing: content-box;
	-webkit-tap-highlight-color: transparent;
	background: #fff;
	border-radius: 0.35em;
	box-shadow: 0 0.1em 0.15em 0 rgba(0, 0, 0, 0.15);
	overflow: hidden;
	padding-bottom: 3em;
}
.poptrox-popup .loader{
	animation: spin 1s linear infinite;
	font-size: 1.5em;
	height: 1em;
	left: 50%;
	line-height: 1em;
	margin: -0.5em 0 0 -0.5em;
	position: absolute;
	top: 50%;
	width: 1em;
}
.poptrox-popup .loader:before{
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	content: "";
}
.poptrox-popup .caption{
	background: #fff;
	bottom: 0;
	cursor: default;
	font-size: 0.9em;
	height: 3em;
	left: 0;
	line-height: 2.8em;
	position: absolute;
	text-align: center;
	width: 100%;
	z-index: 1;
}
.poptrox-popup .nav-next, .poptrox-popup .nav-previous{
	transition: opacity 0.2s ease-in-out;
	-webkit-tap-highlight-color: transparent;
	background: rgba(0, 0, 0, 0.01);
	cursor: pointer;
	height: 100%;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 50%;
}
.poptrox-popup .nav-next:before, .poptrox-popup .nav-previous:before{
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	color: #fff;
	font-size: 2.5em;
	height: 1em;
	line-height: 1em;
	margin-top: -0.75em;
	position: absolute;
	text-align: center;
	top: 50%;
	width: 1.5em;
}
.poptrox-popup .nav-next{ right: 0; }
.poptrox-popup .nav-next:before{ content: ""; right: 0; }
.poptrox-popup .nav-previous{ left: 0; }
.poptrox-popup .nav-previous:before{ content: ""; left: 0; }

.poptrox-popup .closer{
	transition: opacity 0.2s ease-in-out;
	-webkit-tap-highlight-color: transparent;
	color: #fff;
	height: 4em;
	line-height: 4em;
	opacity: 0;
	position: absolute;
	right: 0;
	text-align: center;
	top: 0;
	width: 4em;
	z-index: 2;
}
.poptrox-popup .closer:before{
	box-sizing: content-box;
	border-radius: 100%;
	border: solid 3px rgba(255, 255, 255, 0.5);
	content: "";
	display: block;
	font-size: 1em;
	height: 1.75em;
	left: 50%;
	line-height: 1.75em;
	margin: -0.875em 0 0 -0.875em;
	position: absolute;
	top: 50%;
	width: 1.75em;
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
}
.poptrox-popup:hover .nav-next, .poptrox-popup:hover .nav-previous, .poptrox-popup:hover .closer{ opacity: 0.5; }
.poptrox-popup:hover .nav-next:hover, .poptrox-popup:hover .nav-previous:hover, .poptrox-popup:hover .closer:hover{ opacity: 1.0; }

/* Touch State */
body.is-touch .image.thumb:before{ opacity: 0.5 !important; }
body.is-touch .image.thumb:after{ display: none !important; }
body.is-touch #header{ background-attachment: scroll; background-size: auto, cover; }
body.is-touch .poptrox-popup .nav-next, body.is-touch .poptrox-popup .nav-previous, body.is-touch .poptrox-popup .closer{ opacity: 1.0 !important; }

/* Global Breakpoints */
@media screen and (max-width: 1800px) {
	body{ font-size: 12pt; }
}

@media screen and (max-width: 1280px) {
	#header{ padding: 6em 3em 3em 3em; width: 30%; }
	#header h1{ font-size: 1.25em; }
	#header h1 br{ display: none; }
	#header > .inner{ margin-bottom: 0; }

	#footer .copyright li{ border-left-width: 0; display: block; line-height: 2.25em; margin-left: 0; padding-left: 0; }

	#main{ margin-left: 30%; max-width: none; padding: 6em 3em 3em 3em; width: calc(100% - 30%); }
}

@media screen and (max-width: 980px) {
	h1 br, h2 br{ display: none; }
	ul.icons li .icon{ font-size: 1.25em; }

	#header{
		background-attachment: scroll;
		background-position: top left, center center;
		background-size: auto, cover;
		left: auto;
		padding: 6em 4em;
		position: relative;
		text-align: center;
		top: auto;
		width: 100%;
		display: block;
	}
	#header h1{ font-size: 1.75em; }
	#header h1 br{ display: inline; }

	#footer{
		background-attachment: scroll;
		background-color: #1f1815;
		background-image: url("images/overlay.png"), url("../../images/bg.jpg");
		background-position: top left, bottom center;
		background-repeat: repeat, no-repeat;
		background-size: auto, cover;
		padding: 4em 4em 6em 4em;
		position: relative;
		text-align: center;
		width: 100%;
	}
	#footer .icons, #footer .copyright{ margin: 0 0 1em 0; }
	#footer .copyright li{ border-left-width: 1px; display: inline-block; line-height: 1em; margin-left: 0.75em; padding-left: 0.75em; }

	#main{ margin: 0; padding: 6em 4em; width: 100%; }
}

@media screen and (max-width: 736px) {
	h1{ font-size: 1.5em; }
	h2{ font-size: 1.2em; }
	h3{ font-size: 1em; }

	header.major h2{ font-size: 1.35em; }
	ul.labeled-icons li{ padding-left: 2em; }
	ul.labeled-icons li h3{ line-height: 1.75em; }

	#header, #footer{ padding: 2.25em 1.5em; }
	#header h1{ font-size: 1.35em; }

	#main{ padding: 2.25em 1.5em 0.25em 1.5em; }
	#main > section{ margin: 2.25em 0 0 0; padding: 2.25em 0 0 0; }

	.poptrox-popup{ border-radius: 0; }
	.poptrox-popup .nav-next:before, .poptrox-popup .nav-previous:before{ margin-top: -1em; }
}

@media screen and (max-width: 480px) {
	#header{ padding: 4.5em 1.5em; }
	#header h1 br{ display: none; }
	#footer .copyright li{ border-left-width: 0; display: block; line-height: 2.25em; margin-left: 0; padding-left: 0; }
}



/* =========================================================
   WORLD CLOCK - CLOCK SECTION
   ========================================================= */

#Clock .status{
	margin: 0 0 1.5em 0;
	color: #666;
	font-size: 0.9em;
}

/* Contenitore principale */
#Clock .scroll-container{
	display: flex;
	align-items: center;
	gap: 0.75em;
	width: 100%;
	position: relative;
}

/* Riga dei fusi orari */
#Clock .scroll-row{
	display: flex;
	flex-wrap: nowrap;
	gap: 1em;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	scrollbar-width: thin;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.25em 0.1em 1em;
}

/* Scrollbar Chrome / Edge / Safari */
#Clock .scroll-row::-webkit-scrollbar{
	height: 6px;
}

#Clock .scroll-row::-webkit-scrollbar-thumb{
	background: #787878;
	border-radius: 3px;
}

#Clock .scroll-row::-webkit-scrollbar-track{
	background: #eee;
}

/* =========================================================
   BOX FUSI ORARI
   ========================================================= */

/* Box fusi orari */
#Clock .card{
	flex: 0 0 150px;
	padding: 1em 0.75em;
	border: 1px solid #242424;
	border-radius: 0.35em;
	background: #fff;
	color: #242424;
	text-align: center;

	/* Ombra più morbida */
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* Scritta superiore: CET, UTC, Londër, ecc. */
#Clock .city{
	font-size: 0.9em;
	color: #242424;
	font-weight: 400;
	line-height: 1.3em;
	margin-bottom: 0.35em;
}

/* Ora */
#Clock .time{
	font-size: 1.5em;
	font-weight: 600;
	line-height: 1.2em;
	color: #242424;
}

/* Scritta inferiore: Europe/Rome, UTC, ecc. */
#Clock .tz{
	font-size: 0.7em;
	color: #0022ff;
	font-weight: 400;
	line-height: 1.3em;
	margin-top: 0.35em;
	white-space: nowrap;
}


/* =========================================================
   FRECCE LATERALI
   ========================================================= */

#Clock .arrow{
	flex: 0 0 auto;
	width: 2.2em;
	height: 2.2em;
	line-height: 2em;

	border: 0;
	border-radius: 50%;

	background: #888888;
	color: #222;

	text-align: center;
	cursor: pointer;
	user-select: none;

	transition:
		background-color 0.2s ease-in-out,
		color 0.2s ease-in-out,
		transform 0.1s ease-in-out;
}

/* Hover */
#Clock .arrow:hover{
	background: #0f0;
	color: #222222;
}

/* Click / pressione */
#Clock .arrow:active{
	background: #f00;
	color: #fff;
	transform: scale(0.94);
}

/* Focus da tastiera - accessibilità */
#Clock .arrow:focus-visible{
	outline: 3px solid #49bf9d;
	outline-offset: 2px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media screen and (max-width: 736px){

	#Clock .scroll-container{
		gap: 0.5em;
	}

	#Clock .scroll-row{
		gap: 0.75em;
		padding-bottom: 0.75em;
	}

	#Clock .card{
		flex-basis: 135px;
		padding: 0.85em 0.5em;
	}

	#Clock .time{
		font-size: 1.35em;
	}

	#Clock .arrow{
		width: 2em;
		height: 2em;
		line-height: 1.8em;
	}
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media screen and (max-width: 480px){

	#Clock .scroll-container{
		gap: 0.4em;
	}

	#Clock .scroll-row{
		gap: 0.6em;
	}

	#Clock .card{
		flex-basis: 130px;
		border-width: 3px;
	}

	#Clock .city{
		font-size: 0.85em;
	}

	#Clock .time{
		font-size: 1.3em;
	}

	#Clock .tz{
		font-size: 0.65em;
	}

	#Clock .arrow{
		width: 1.9em;
		height: 1.9em;
		line-height: 1.7em;
	}
}