* {
	box-sizing:border-box;
	margin: 0;
	padding: 0;
}


/* //////// CARATTERI //////// */

@font-face {
	font-family: 'DM Sans';
	src: url('DMSans-VariableFont_opsz,wght.ttf') format('truetype'),;
	unicode-range: U+000-5FF; /* Latin glyphs */
	font-display: block;
	text-rendering: optimizeLegibility;
}
* {
	font-family: 'DM Sans', sans-serif;
	text-rendering: optimizeLegibility;
}
body {
	font-weight: 400;
}
main {font-size: 1rem;}
h1 { font-size: 4rem; font-weight: 900; text-align: center;}
h2 { font-size: 2rem; font-weight: 800; }
p { letter-spacing: 0.4px; line-height: 1.4;}
a:link, a:visited, a:hover, a:active { text-decoration: none; }
h3, 
.bold, .tabs {
	font-weight: 600;
}


/* //////// IMPOSTAZIONI BASE //////// */

#av_toolbar_iframe, #av_toolbar_regdiv {display: none;}

#container {
	margin: auto;
	margin-top: 10px;
	margin-bottom: 10px;
}
#container p { margin-bottom: 15px; }
main {z-index: 1;}
.menu {display: none;}


/* //////// HEADER //////// */

.logo {padding-left: 65px;}
header {
	position: fixed;
	width: 100%;
	top: 0;
	z-index: 2;
	-webkit-backdrop-filter: blur(5px);
	-moz-backdrop-filter: blur(5px);
	-ms-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);	
	transition: 0.5s ease;
} 


/* //////// MENU MOBILE //////// */

.hamburger {
	position: fixed;
	cursor: pointer;
	padding: 25px 20px;
}
.sidebar {
	position: fixed;
	z-index: 3;
	top: 0;
	left: 0;
	height: 100%;
	width: 255px;
	background: #141414;
	overflow: hidden;
	-webkit-transform: translate3d(-260px, 0, 0);
	transform: translate3d(-260px, 0, 0);
	transition-property: transform;
  }
  
  .sidebar, .sidebar a { color: #abb4bd; }
  .nav { margin-top: 65px; }
  
  .nav-link {
	display: block;
	padding: 12px 20px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
  }
  
  .nav-link:hover { background-color: #333944; }
  
  



/* //////// LATO DESTRO //////// */

.destra {
	width: 20em;
	height: 100%;
	position: absolute;
	right: 0;
	top: 0;
	border: solid;
	margin: auto;
	vertical-align: middle;
}


/* //////// GRAFICA E COLORI //////// */

#container a:link, #container a:visited {color: gray; text-decoration: none;}
header {
	background-color: rgba(241, 241, 241, 70%);
}
h1, h2, h3, h4, .bold, .tabs { color: #212529; }
h1, h2, h3, h4 {
	margin-bottom: 10px;
}
footer { 
	color: white;
	background-color: #1d2127;
}
.note {
	color: whitesmoke;
	font-size: 12px;
}
.note a {margin: 0 5px;}
/*.contenitore .content img { border: solid 1px #003664; }*/
.column img.schedule,
.infcarousel-wrap img { box-shadow:  6px 6px 15px #aea5db70, -6px -6px 15px #ededed; }
.column img.schedule:hover,
.infcarousel-wrap img:hover {box-shadow: none; transition: 0.1s;}


/* COLORE PRIMARIO */
.tabs > .active { color: #690010;}



.welcome {
	color: transparent;
	background-size: cover;
	background-clip: text;
	background-image: linear-gradient( #fcc58b, #f98409);
}



/* //////// DARK MODE //////// */

body { transition: background-color 0.3s, color 0.3s; }
.dark-mode {
	h2, h3, h4, .bold { color: #f5f5f5; }
	background-color: #0d1021;
}
.dark-mode body { background-color: #16191c; }
.dark-mode p { color: #f1f1f1; }
.dark-mode header {
	background: rgb(27 32 44 / 70%);
}
.dark-mode #container a:link,
.dark-mode #container a:visited { color: gray; }

.dark-mode .btn:hover { background: #4f4f55 !important; }
.dark-mode .column img,
.dark-mode .infcarousel-wrap img { box-shadow:  6px 6px 15px #aea5db18, -6px -6px 15px #ededed41; }

.dark-mode .accordion { color: #eee; }
.dark-mode .active,
.dark-mode .accordion:hover { color: #ccc; }
.dark-mode .panel { color: white; }
.dark-mode .tabs {color: #eee;}
.white { display: inherit; }
.black { display: none; }
.dark-mode .white { display: none; }
.dark-mode .black { display: inherit; }
.darkmode a.minibtn {
	box-shadow: none;
	fill: white;
}
.darkmode .welcome { color: transparent; background-image: linear-gradient( #ffbd77, #ffe4c7) !important;}
.darkmode span.hamburger { 	filter: invert(100%) sepia(100%) saturate(100%) brightness(119%) contrast(119%) !important }




/* //////// LINK //////// */

nav a,
.footer-columns ul a {
	text-decoration: none;
}
.note a:hover,
.footer-columns ul a:hover {
	opacity: 50%;
}



/* //////// GRAFICA E COLORI TITOLI PAGINE //////// */

.titolo {
	background-color: black;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	background-position: center;
}
.titolo h1 {
	color: white;
	padding: 5rem 0 5rem 15%;
	text-align: left;
	text-shadow: 1px 1px 20px black;
	background-color: hsla(0, 0%, 100%, 0.2);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);

}


/* //////// GRAFICA E COLORI PULSANTI GRANDI //////// */

a .btn {
	margin: 10px;
}
.btn, .btn:hover, .btv:active {
	outline: none;
	transition: 0.2s;
}
.btn {
	border-radius: 5px;
 	padding: 12px 14px;
	margin: 5px 0 5px 0;
 	cursor: pointer;
	color: #f1f1f1 !important;
	background-color: rgba(214, 2, 36) !important;
	background-color: color-mix(in srgb, #d60224 0%, #5169a9 100%);
}
.btn:link {	background: linear-gradient(to right, #d60224 0%,#5169a9 100%);}
.btn:hover {
	background: #27272a !important;
}
.btn.active { background-color: #666; color: white; } 
.icon {
	filter: invert(100%) sepia(100%) saturate(100%) brightness(119%) contrast(119%);
	color: white;
	margin-bottom: -8px;
	padding-right: 5px;
}


/* //////// GRAFICA E COLORI PULSANTI PICCOLI  //////// */

a.minibtn {
	box-shadow: none;
	font-weight: 600;
	width: auto !important;
	color: #2E31A6 !important;
	margin-bottom: 8px;
}
a.minibtn img {
	margin-bottom: -8px;
}
a.minibtn:hover img { 
	margin-left: 10px; 
	transition: 0.2s;
}




/* //////// GRAFICA E COLORI CAROUSEL //////// */

.carousel { padding: 10px 0 20px 0; }
.carousel-cell {
	width: 100%;
	max-width: 1200px;
	margin-right: 20px;
	opacity: 25%;
	counter-increment: carousel-cell;
	border-radius: 10px !important;
}
.carousel-cell.is-selected { opacity: 100%;}
.carousel-cell img { width: 100%; border-radius: 10px; }
.flickity-page-dots { bottom: -22px; }
.flickity-page-dots .dot {
	height: 4px;
	width: 40px;
	margin: 0;
	border-radius: 0;
  }


/* //////// GRAFICA E COLORI AVVISI //////// */

.avviso {
	background-color: rgba(255, 166, 0, 0.5);
	padding: 15px 20px;
}
.avviso p {margin-bottom: 0 !important;}


/* //////// GRIGLIA EVENTI //////// */

.eventi {
	padding: 25px;
	text-align: center;
}
.eventi img {max-width: 100%;}




.card {
	background:
		linear-gradient(transparent, #000000D1),
		url(background.jpg) center / cover;
}


/* //////// TABS per ATTIVITA' //////// */

/*#myBtnContainer {
	overflow-x: scroll;
}*/
.tabs {
	background: 0;
	border: none;
	padding: 10px 15px 10px 15px;
	opacity: 50%;
}
.tabs .active {
	opacity: 100%;
	border-bottom: solid 2px grey;
}
.rowa { border-top: solid 1px rgba(128, 128, 128, 0.4); padding-top: 25px; }


/* //////// GRIGLIA per ATTIVITA' //////// */

/*.rowa { overflow: hidden; }*/
.column {
    float: left;
    display: none; /* Hide columns by default */
    margin: auto;
}
.column p { font-size: 0.9rem; }
.show { display: block; }
.column img.schedule {
	margin-bottom: 15px;
	border-radius: 10px;
	width: 100%;
	max-width: 18rem;
	transition: 0.1s;
	object-fit: cover;
}
.content {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	margin-right: 40px;
	margin-bottom: 50px;
}


/* //////// INFINITE CAROUSEL //////// */

.infcarousel {
	overflow: hidden;
	width: 100%;
}
.infcarousel-wrap {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 250px;
	justify-items: stretch;
	animation: slide 15s linear infinite;
	padding: 15px 0 15px 0;
}
.infcarousel-wrap img {
	width: 200px;
	height: 200px;
	border-radius: 15px;
	object-fit: cover;
}
@keyframes slide {
	to {
		translate: calc(-4 * 250px);
	}
}



/* //////// FOOTER NEW //////// */

:root {
    --primary: #2E31A6;
    --text-color: white;
    --white: white;
    --text-gray: #FEFEFE;
    --text-heading-gray: #D0D0F7;
    --background: #EDF0F9;
    --border: #aabfff;
}

/*? footer containers */
.footer-new {
    background-color: var(--primary);
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
}
.footer-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 16px;
}
.footer-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex-grow: 4;
    gap: 50px 20px;
}
.footer-columns {
    display: flex;
    flex-wrap: wrap;
	padding: 24px 8px;
	border-bottom: 1px solid var( --border);
}
.footer-columns section, .footer-columns .footer-logo {
    display: flex;
    flex-direction: column;
    flex: 1 0 160px;
    max-width: 200px;
}
.footer-columns ul {
    display: flex;
    gap: 12px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    flex-direction: column;
    font-weight: 600;
}
.footer-columns ul a { color: var(--text-color); }
/*? Footer bottom */
.footer-bottom {
    display: flex;
    align-items: end;
    gap: 16px;
    padding: 14px 0px;
    flex-wrap: wrap;
    justify-content: space-between;
    color: var(--text-color);
}
.footer-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* //////// FORM PER I CONTATTI //////// */

#container .social {
	width: 350px;
	margin: auto;
}
#container .social p {text-align: left;}
#container .social img {
	width: 40px;
	margin-right: 2px;
	vertical-align: middle;
}
.messaggio iframe {
	border: none;
	width: 350px;
	height: 455px;
}





/* //////// ACCORDION / INDICE PER GLI ARGOMENTI //////// */

.active, .accordion:hover {
	opacity: 100%;
	border-bottom: solid 2px grey;
}
.panel { /* Style the accordion panel. Note: hidden by default */
    /*background-color: white;*/
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}
.panel p {padding: 15px 5px;}


/* //////// CSS MOBILE + TABLET //////// */

@media (max-width:1023px){

	#container {padding: 10px 4%;}
	#container .social {
		/*border-bottom: solid 1px gray;*/
		margin-bottom: 40px;
		padding-bottom: 20px;
	}
	.titolo h1 { padding: 5rem 0 5rem 5%; }
	
	/* HOME */
	.home-inizio {position: inline; align-items: center;}
	.home-sm {max-width: 25em; margin: auto;}
	.home-md {display: none;}
	.home {width: 100%;}

}


/* //////// CSS MOBILE //////// */

@media (max-width:639px){

	main {margin-top: 80px;}
	.logo img {
		width: 195px; 
	}

	/* CARATTERI */
	h1 {font-size: 2.5rem;}
	.footer-columns {display: none;}
	
	/* FOOTER */
	.footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        text-align: center;
    }

}


/* //////// CSS TABLET //////// */

@media (min-width: 640px) and (max-width:1023px){

	main {margin-top: 90px;}
	.logo img {width: 225px;}
	.column { /* GRIGLIA per ATTIVITA' */
    	width: 50%;
    	height: 475px;
  	}

}


/* //////// CSS DESKTOP //////// */

@media (min-width: 1024px) {

	.logo img {
		width: 250px;
		margin-bottom: -4px;
	}
	main {margin-top: 95px;}







	#container {
		max-width: 1280px;
		padding: 10px 40px;
	}
	#container .social {float: left; width: 45%;}
	#container .messaggio {float: right; width: 45%;}
	.eventi {
		float: left;
		width: 25%;
		overflow: hidden;
	}
	.column { /* GRIGLIA per ATTIVITA' */
		width: 33.33%;
		min-height: 440px;
		height: 550px;
	}

	.switch {
		right: 20px;
	}


	.messaggio iframe {width: 100%;}

	/* HOME */

	.home-inizio {display: flex; align-items: center;}
	.home-sm {display: none;}
	.home-md {width: 40em; padding-left: 10px;}

}