/* FONT ------------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Reddit+Sans:ital,wght@0,200..900;1,200..900&display=swap');

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: local('Material Icons'),
  local('MaterialIcons-Regular');
}


.material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	display: inline-block;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	-moz-osx-font-smoothing: grayscale;
	font-feature-settings: 'liga';
}

/* VARIABILI CSS ------------------------------------------------------- */
:root{
	--main: #0C2D45;
	--main-hover: #1F4C6A;
	--secondary: #19756A;
	--secondary-soft: #2D9386;
	--bg: white;
	--text:#222222;
}

/* GLOBALI ------------------------------------------------------------- */
*{
	box-sizing: border-box;
}
body{
	min-height: 100vh;
	min-height: -webkit-fill-available;
}
.hide{
	display: none;
}
.hide-m{
	display: none;
}
html{
	font-size: 15px;
	color: var(--text);
	font-family: "Reddit Sans", sans-serif;
	scroll-behavior: smooth;
	scroll-padding-top: 100px;
}
p {
	line-height: 1.5;
}
a{
	color: var(--main);
	text-decoration: none;
}
a:hover{
	transition: .3s;
}
.shadow{
	box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.14);
}
.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--main);
	color: white;
	font-size: 1rem;
	font-weight: bold;
	border-radius: 4px;
	padding: 1rem;
	cursor: pointer;
	text-decoration: none;
	transition: .3s;
	max-width: 300px;
	margin: auto;
	text-align: center;
}
.btn:hover{
	background-color: var(--main-hover);
}
.img-contain {
	object-fit: contain;
	object-position: center;
	width: 100%;
	height: 100%;
}
.img-cover {
	object-fit: cover;
	object-position: center;
	width: 100%;
	height: 100%;
}

/* MARGINI, MISURE, BACKGROUND  ------------------------------------------------------- */
.mg-10{
	margin: 10px;
}
.pd-10{
	padding: 10px;
}
.pd-20{
	padding: 20px;
}
.pd-vw{
	padding: 20px calc(20px + 3.5vw);
}
.w-100{
	width: 100%;
	max-width: 100%;
}
.txt-center{
	text-align: center;
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}
.txt-white{
	color: white;
}
.bd4{
	border-radius: 4px;
}
.bg-white {
	background-color: white;
}
.bg-gray{
	background-color: #f3f3f3;
}
.bg-main {
	background: radial-gradient(circle at top left, #0093d8 0%, #222222 100%);

}

/* CONTENITORI ------------------------------------------------------- */
.container{
	margin: auto;
	max-width: 1200px;
	width: 100%;
	padding: calc(40px + 3vw) calc(10px + 3vw);
}
.container-100 {
	max-width: 100%;
}
.parallax{
	 min-height: calc(500px - 1vw);
	 background-attachment: fixed;
	 background-position: bottom;
	 background-repeat: no-repeat;
	 background-size: cover;
	 position: relative;
	 color: white;
}
.parallax .titolo{
	font-size: calc(1.8rem + .5vw);
	font-weight: bold;
	margin-bottom: 1rem;
}
.parallax .descrizione{
	font-size: 1.2rem;
	max-width: 800px;
	margin: 0 auto 1rem auto;
}
.overlay{
	background-color: rgba(0, 0, 0, .5);
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	position: absolute;
}

/* FLEXBOX -------------------------------------------------------------------------*/
.flex{
	display: flex;
}
.flex.row{
	flex-flow: row;
}
.flex.column{
	flex-flow: column;
}
.flex.align-center{
	align-items: center;
}
.flex.align-start {
	align-items: start;
}
.flex.self-start{
	align-self: flex-start;
}
.flex.justify-center{
	justify-content: center;
}
.flex.justify-space{
	justify-content: space-between;
}
.flex.justify-evenly{
	justify-content: space-evenly;
}
.flex.grow{
	flex-grow: 1;
}
.flex.wrap{
	flex-wrap: wrap;
}
.flex.g10{
	gap:10px;
}
.flex.g20{
	gap:20px;
}
.flex.g-vw{
	gap: calc(20px + 3vw);
}


/* =========================================================== DESKTOP ================================================== */

/* TOP & FOOTER */
header{
	background-color: transparent;
	transition: 1s;
	position: fixed;
	z-index: 1;
	padding: 10px 3vw;
}
header .logo{
	height: 3.2vw;
	max-height: 70px;
	width: auto;
	max-width: 440px;
}
nav ul {
	list-style: none;
	column-gap: 3vw;
}
nav .nav-link {
	color: white;
	font-weight: bold;
	font-size: .95rem;
}
nav .nav-link:hover, header.scroll>nav a:hover{
	text-decoration: underline;
}
.nav-button{
	color: white;
}
.nav-button i{
	font-size: 2.5rem;
	cursor: pointer;
}
.close-nav-button{
	position: absolute;
	top: 20px;
	right: 3vw;
	color: white;
	cursor: pointer;
}
.close-nav-button i{
	font-size: 2.5rem;
}
header.scroll {
	background-color: white;
	transition: 1s;
	box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.14);
}
header.scroll > nav .nav-link, header.scroll>nav .nav-button {
	color: var(--secondary);
}
.dropdown {
	position: relative;
	display: inline-block;
}
.dropdown-content {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	min-width: 250px;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1;
	background-color: white;
	margin-top: 10px;
}
.dropdown-content a {
	color: black;
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	transition: .3s;
}
.dropdown-content a:hover{
	background-color: var(--main);
	color: white!important;
}
.dropdown:hover .dropdown-content {
	visibility: visible;
	opacity: 1;
}
footer{
	background-color: var(--secondary);
	color: white;
}
.gap-footer{
	gap: 3rem 2rem;
	max-width: 1800px;
	margin: auto;
}
.box-footer{
	flex: 1 1 300px;
}
.titolo-footer{
	font-size: 1.3rem;
	margin-bottom: 2rem;
	font-weight: bold;
}
footer p{
	margin: 0;
	margin-bottom: 1.2rem;
}
footer p a{
	color: white;
	margin-left: 5px;
}
footer i{
	margin-right: 10px;
}
footer ul{
	list-style: none;
	padding: 0;
	gap: 20px;
}
footer ul li{
	list-style: none;
}
footer ul li a{
	color: white;
}
footer ul li a:hover {
	text-decoration: underline;
}
footer:not(.titolo-footer){
	font-size: 1rem;
}
.footer-icons img{
	width: 35px;
	height: 35px;
	transition: .3s;
	filter: invert(1);
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(4801%) hue-rotate(13deg) brightness(90%) contrast(106%);
}
.footer-icons img:hover{
	transition: .3s;
}

/* POPUP ALERT */
.popup-alert {
	position: fixed;
	align-items: center;
	justify-content: center;
	background-color: rgba(34, 34, 34, 0.5);
	width: 100%;
	height: 100%;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 999;
	-webkit-animation: fade-in .5s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	animation: fade-in .5s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
}

.popup-alert.show {
	display: flex;
}

.popup-alert .contenitore_popup {
	background-color: white;
	width: 100%;
	max-width: 500px;
	height: auto;
	padding: 40px;
	box-sizing: border-box;
	border-radius: 5px;
	-webkit-box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.23);
	-moz-box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.23);
	box-shadow: 0px 6px 10px 5px rgba(0, 0, 0, 0.23);
	position: relative;
}

.popup-alert .contenitore_popup.foto {
	width: auto;
	max-width: calc(100vw - 20px);
	height: auto;
	overflow: hidden;
	padding: 1px;
}

.popup-alert .contenitore_popup.foto img {
	width: 100%;
	height: auto;
	max-height: calc(100vh - 40px);
	object-fit: contain;
	border-radius: 5px;
}

.popup-alert .contenitore_popup .titolo {
	font-size: 1.5rem;
	text-align: center;
	margin-bottom: 20px;
	font-weight: bold;
	color: red;
}

.popup-alert .contenitore_popup .testo {
	font-size: 15px;
	text-align: center;
	line-height: 25px;
	font-weight: 500;
}

.popup-alert .contenitore_popup .tasti {
	margin-top: 20px;
	gap: 20px;
}

.popup-alert .contenitore_popup .tasti .tasto_azione {
	padding: 10px 20px;
	width: 200px;
}

.popup-alert .contenitore_popup .tasti .tasto_azione.annulla {
	background-color: var(--secondary-soft);
	color: var(--secondary);
}

.popup-alert .contenitore_popup .tasti .tasto_azione.annulla:hover {
	background-color: var(--secondary);
	color: white;
}

.popup-alert .close {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: 2px;
	top: 2px;
	padding: 4px;
	border-radius: 0 4px 0 4px;
	background-color: var(--main);
	color: white;
	cursor: pointer;
	transition: .3s;
}

.popup-alert .close:hover {
	background-color: red;
	transition: .3s;
}

.popup-alert .loader {
	width: 100%;
	height: 130px;
}

.popup-alert .loader img {
	object-fit: cover;
	width: 100%;
	height: 100%;
}

/* POPUP ALERT */
.whatsapp_mobile {
	position: fixed;
	width: 40px;
	height: 40px;
	bottom: 20px;
	left: 20px;
	z-index: 999;
}

.whatsapp_mobile img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	-webkit-filter: drop-shadow(0px 3px 2px #333333);
	filter: drop-shadow(0px 3px 2px #333333);
}

.scroll-btn {
    position: fixed;
    bottom: 20px;
    left: 50%; /* Posiziona al centro orizzontalmente */
    transform: translateX(-50%); /* Centra il pulsante */
    background-color: #3636b5; /* Colore viola */
    color: #fff;
    font-size: 1.2rem; /* Testo leggermente più grande */
    font-weight: bold;
    padding: 14px 32px; /* Spaziatura interna */
    border: none;
    border-radius: 28px; /* Angoli arrotondati */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Ombra */
    cursor: pointer;
    display: none; /* Nascondi inizialmente */
    z-index: 1000;
    opacity: 0; /* Inizia invisibile */
    transition: all 0.5s ease; /* Transizione per visibilità e posizione */
}

.scroll-btn.show {
    display: block; /* Mostra il pulsante */
    opacity: 1; /* Rendi visibile */
    transform: translateX(-50%) translateY(-10px); /* Leggero movimento verso l'alto */
}

.scroll-btn:hover {
    background-color: #2a2a8a; /* Colore viola più scuro */
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); /* Ombra più intensa */
    transform: translateX(-50%) translateY(-12px); /* Movimento verso l'alto al passaggio del mouse */
}

/* ======================================================== TABLET LANDSCAPE ================================================== */
@media only screen and (min-width: 768px) and (max-width: 1450px) {
	.hide-m {
		display: block;
	}

	header ul {
		flex-flow: column;
		align-items: flex-start !important;
		background-color: var(--main);
		position: absolute;
		padding: 40px;
		padding-top: 80px;
		width: 500px;
		height: 100vh;
		top: -15px;
		right: -500px;
		overflow: hidden;
		gap: 30px 10px;
		transition: .5s;
		overflow-y: scroll;
	}

	header ul.open {
		right: 0;
	}

	header ul li {
		width: 100%;
	}

	header ul nav {
		width: 100%;
	}

	header .nav-link {
		display: flex;
		font-size: 1rem;
		width: 100%;
		padding-bottom: 5px;
		border-bottom: 1px solid #083053;
	}

	header.scroll>nav .nav-link {
		color: white;
	}

	.dropdown {
		width: 100%;
	}

	.dropdown .dropdown-content {
		visibility: visible;
		opacity: 1;
		position: relative;
		background-color: #001c36;
	}

	.dropdown .dropdown-content.shadow {
		box-shadow: none;
	}

	.dropdown-content a {
		color: white;
	}
}

.grid-loghi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: auto;
    grid-gap: 10px;
    padding: 20px;
    max-width: 1600px;
    margin: auto;
    margin-top: 40px;
}
.grid-loghi .item {
    border-radius: 4px;
    box-shadow: 0 0 4.85px .15px rgba(0, 0, 0, .09);
    padding: 20px;
    height: 150px;
}

/* =========================================================== TABLET PORTRAIT AND MOBILE ====================================== */
@media only screen and (max-width: 1019px) {
	.hide-m {
		display: block;
	}
	header ul {
		flex-flow: column;
		align-items: flex-start !important;
		background-color: var(--main);
		position: absolute;
		padding: 40px;
		padding-top: 80px;
		width: 100vw;
		height: 100vh;
		top: -15px;
		right: -100vw;
		overflow: hidden;
		gap: 30px 10px;
		transition: .5s;
		overflow-y: scroll;
	}
	header ul.open {
		right: 0;
	}
	header ul li {
		width: 100%;
	}
	header ul nav {
		width: 100%;
	}
	header .nav-link {
		display: flex;
		font-size: 1.5rem;
		width: 100%;
		padding-bottom: 5px;
		border-bottom: 1px solid var(--secondary);
	}
	header.scroll>nav .nav-link {
		color: white;
	}
	.dropdown {
		width: 100%;
	}
	.dropdown .dropdown-content {
		visibility: visible;
		opacity: 1;
		position: relative;
		background-color: #001c36;
	}
	.dropdown .dropdown-content.shadow {
		box-shadow: none;
	}
	.dropdown-content a {
		color: white;
	}
}

/* =========================================================== MOBILE ONLY ================================================== */
@media only screen and (max-width: 767px) {
	header .logo{
		height: 35px;
	}
	.box-footer:not(.box-footer:last-of-type) {
		border-bottom: 1px solid var(--main);
		padding-bottom: 2rem;
	}
	.grid-loghi {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}
