/* Reset CSS  */ 
/* #fff , #009fe3 , #252a75 , #000*/ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Font faces */
@font-face {
    font-family: 'title';
    src: url('fonts/title.ttf') format('truetype');
}

@font-face {
    font-family: 'testo';
    src: url('fonts/testo.ttf') format('truetype');
}

::selection {
    background-color: blue;
    color: white;
}

.swiper-container {
	display: none;
}
.swiper-slide {
	display: none;
}

.anim {
	transform: translateY(50px);
    opacity: 0; /* Inizialmente invisibile */
    transition: all 0.5s ease-out; /* Effetto di transizione */
}

.anim.visible {
	transform: translateY(0);
    opacity: 1;
}


/* General styles */
body {
    background-color: #fff;
    color: black;
    font-family: 'testo', Arial, sans-serif; 
    line-height: 1.6;
	animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

img {
	display: block;
}

a {
	text-decoration: none;
}

nav {
    display: flex; /* Utilizziamo flexbox per gestire l'allineamento */
	position: sticky;
    align-items: center; /* Centra verticalmente gli elementi */
    justify-content: flex-start; /* Allinea a sinistra il contenuto */
    background-color: rgba(255, 255, 255);
    padding: 20px;
    list-style-type: none;
	
}

nav ul {
    display: flex; 
    align-items: center;/
    justify-content: center;
    margin: 0;
    padding-left: 6em;
}

#logo {
	font-size: 1.1em;
	color: #252a75;	
	font-family: 'title', sans-serif;
}

nav img {
    vertical-align: middle; /* Assicura che l'immagine sia centrata verticalmente */
	height: 1.7em;
	padding-right: 0.4em;
	display: inline;
}

nav ul li {
    display: inline;
	font-size: 1em;
    margin: 0 10px;
}

nav a, footer a {
	color: #c2c2c2;
	transition: all 0.3s ease;
}

nav a:hover {
	color: #252a75;
	text-decoration: none;
}

button {
    font-family: 'title', sans-serif;
    color: white;
    font-weight: normal;
    padding: 0.5em 2em;
    border: 2px solid white;
    background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
    cursor: pointer;
    transition: all 0.3s ease;
	margin-right:10px;
	margin-left:10px;
}

button:hover {
	background: rgba(255, 255, 255, 0.3);
	box-shadow: 0 0 30px rgba(255, 255, 255, 0.55);
}

.hero {
	display: flex;
    flex-direction: column;
	align-items: center;
	justify-content: center;
    text-align: center;
    background-image: url('images/bg0.png');
    background-repeat: no-repeat;
	background-size: 100vw;
    height: 80vh;
	overflow: clip;
}

.button-container {
    display: flex; /* Dispone i bottoni in riga */
}

.hero h1 {
    font-family: 'title', sans-serif;
	color: white;
    font-size: 4.6em;
	text-align: center;
    margin-bottom: 20px;
	text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
	line-height: 1.2;
}

.hero h4 {
	color: white;
    font-size: 1.5em;
	font-weight: normal;
    padding-bottom: 2em;
}

.hero p,.hook p  {
	color: white;
}

.info {
	text-align: center;
}
 
.info h2 {
	font-family: 'title', sans-serif;
	font-size: 2.5em;
	color: #252a75;
	padding-top: 10vh;
	padding-bottom: 2vh;
}

.info #dark {
	color: #009fe3;
}

hr {
    width: 15vw;
	height: 3px;
    background-color: #252a75;
    border: none;
    margin: auto; 
	margin-top: 7vh;
}

.servizi {
	display: flex;
	padding-top: 10vh;
	padding-bottom: 5vh;
	padding-left: 100px;
	padding-right: 100px;
}

.servizio {
	display: flex;
	flex: 1;
	border-radius: 10px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
	flex-direction: column;
    justify-content: center;
    align-items: center;
	margin-left: 15px;
	margin-right: 15px;
	padding: 30px;
	cursor: default;
	transition: all 0.3s ease-in;
}

.servizio h3 {
	font-family: 'title', sans-serif;
	padding-top: 10px;
	padding-bottom: 5px;
	color: #252a75;
}

.servizio:hover {
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
	transform: translateY(-5px);
}

.servizio .ico {
    background-color: #f0f0f0;
    border-radius: 100%;
    width: 70px;
    height: 70px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.servizio svg {
    width: 50px; /* Nuova larghezza del SVG */
    height: 50px; /* Nuova altezza del SVG */
}

.portfolio {
	text-align: center;
	margin-bottom: 15vh;
}

.portfolio h2 {
	font-family: 'title', sans-serif;
	font-size: 2.5em;
	color: #252a75;
	padding-top: 7vh;
	padding-bottom: 2vh;
}

.mezzi {
    display: flex;
    padding-top: 10vh;
    padding-left: 100px;
    padding-right: 100px;
    padding-bottom: 10vh;
	justify-content: center;
	gap: 30px;
}

.mezzo {
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 30px;
	width: 35vw;
    height: 50vh;
    transition: all 0.2s ease-in;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

.mezzo:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(37, 42, 117, 0.2), rgba(37, 42, 117, 0.8));
    transition: all 0.3s ease-out;
    z-index: 1;
}

.mezzo:hover:before {
    top: 45%;
}

.mezzo h3 {
	font-family: 'title', sans-serif;
	font-size: 2em;
	color: white;
    margin: 0;
    margin-bottom: 10px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.mezzo p {
	font-size: 0.8em;
	color: white;
    margin: 0;
    max-width: 60%;
    text-align: left;
    position: relative;
    z-index: 2;
}

.mezzo:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.portfolio #dark {
	color: #009fe3;
}

.button-57 {
	position: relative;
	overflow: hidden;
	border: 1px solid #15173b;
	font-size: 0.85em;
	color: #15173b;
	display: inline-block;
    padding: 1em 4em;
	text-decoration: none;
	text-align:center;	
	cursor: pointer;
	background: #fff;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	margin-right:10px;
	margin-left:10px;
}

.button-57 span:first-child {
	position: relative;
	transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
	z-index: 10;
}

.button-57 span:last-child {
	color: #fff;
	display: block;
	position: absolute;
	transition: all 500ms cubic-bezier(0.48, 0, 0.12, 1);
	z-index: 100;
	opacity: 0;
	left: 50%;
	transform: translateY(225%) translateX(-50%);
}

.button-57:after {
	content: "";
	position: absolute;
	bottom: -50%;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #15173b;
	transform-origin: bottom center;
	transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
	transform: skewY(9.3deg) scaleY(0);
	z-index: 50;
}

.button-57:hover:after {
	transform-origin: bottom center;
	transform: skewY(9.3deg) scaleY(2);
}

.button-57:hover span:last-child {
	transform: translateX(-50%) translateY(-100%);
	opacity: 1;
	transition: all 900ms cubic-bezier(0.48, 0, 0.12, 1);
}


footer {
	
    text-align: center;
    padding: 4em;
    color: white;
	background-color: #15173b;
}

.footer-img {
	margin-top: 1em;
	margin-bottom: 1em;
	display: flex;
	justify-content: center;
}

.footer-img img {
	margin-left: 0.5em;
	margin-right: 0.5em;
	height: 2em;
	width: 2em;
	opacity: 0.5;
	transition: all 0.3s ease;
}

.footer-img img:hover {
	opacity: 1;
}

footer a {
	color: gray;
}

footer a:hover {
	color: white;
	text-decoration: none;
}

@media (max-width: 768px) {
	nav ul {
		 padding-left: 0;
	}
	nav ul li {
		font-size: 0.7em;
	}
	p {
		font-size: 4vw;
	}
	button {
		font-size: 3.4vw;
		margin-left: 5px;
		margin-right: 5px;
	}
	.hero {
		height: 60vh;
		background-size: cover;
	}
	.hero h1, .info h2, .portfolio h2{
		font-size: 10vw;		
	}
	.hero h4 {
		font-size: 5vw;
		padding-left: 7vw;
		padding-right: 7vw;
	}
	hr {
		margin-top: 3vh;
	}
	.servizi {
		overflow: hidden;
		padding-top: 6vh;
		padding-bottom: 3vh;
	}
	.servizio p {
		font-size: 3.5vw;
	}
	.mezzi {
		flex-direction: column;
		align-items: center;
		padding-top: 6vh;
		padding-bottom: 6vh;
	}
	.mezzo {
		width: 80vw;
		height: 30vh;
		overflow: clip;
	}
	.mezzo p {
		display: none;
	}
	footer a {
		font-size: 3vw;
	}
}

.about {
	color: white;
	background: rgba(0, 0, 0, 0.2) url('images/bg0.png');
	background-blend-mode: darken;
    text-align: center;
    max-width: 100vw;
    margin: 0 auto;
    padding: 4vw;
	background-repeat: no-repeat;
	background-size: 100vw;
	height:80vh;
}

.about h2 {
    font-family: 'title', Arial, sans-serif;
    font-size: 3vw;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
	padding-top: 2vw;
}

.aboutmap {
	align-items: right;
}

#mappa {
	height: auto;
	margin-right: 2.5vw;
	border: 3px solid #f1f3f4;
	outline: 2px solid #fff; /* Aggiunge un bordo esterno */
    outline-offset: 5px;
	border-radius: 1vw;
	background-color: #f1f3f4;
}

.infos {
	display: flex;
    flex-direction: column;
	border-left: 2px solid white;
	padding-left: 2vw;
}

.info-item {
    display: flex;
    align-items: center;
    margin-top:10px;
    margin-bottom:10px;
}

.icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}
.text {
	text-align: left;
	padding-left: 1vw;
}

@media (max-width: 768px) {
	.about {
		padding-top: 10vh;
		height: auto;
		background-size: cover;
	}
	.about h2 {
		padding-top: 2vw;
		font-size: 12vw;
		line-height: 1.2;
		padding-bottom: 5vw;
	}
	.content {
		display: flex;
		flex-direction: column;
	}
	#mappa {
		height: auto;
		margin-right: 0;
		margin-bottom: 8vw;
		border-radius: 6vw;
	}
	.infos {
		border-left: 0;
		border-top: 2px solid white;
		padding-left: 0;
		padding-top: 5vw;
		padding-bottom: 13vw;
	}
}

/* PAGINA NOLEGGIO */

.hero2 {
    display: flex;
    align-items: center;  /* Centro verticale */
    justify-content: flex-end;  /* Testo a destra */
    height: 80vh;  /* Altezza della sezione, puoi cambiarla come necessario */
    background: url('images/bg2.png') no-repeat left center;  /* Immagine di sfondo */
    background-size: cover;  /* Copre l'intera area della sezione */
}

.hero2 h2 {
	font-family: 'title';
}

.hero2 p {
	font-family: 'testo';
}

.text-container {
    max-width: 35%;  /* Limite del 50% della larghezza */
    text-align: left;  /* Allinea il testo a sinistra all'interno del contenitore */
    color: white;
	margin-right: 8%;
}

.text-container h2 {
	text-shadow: 2px 2px #000;
    font-size: 2.1em;  /* Dimensione del font del titolo */
    margin-bottom: 10px;
}

.text-container p {
	text-shadow: 2px 2px #000;
    font-size: 1.05em;  /* Dimensione del font del paragrafo */
    margin-bottom: 20px;
}

.button2-container {
	margin-left: -10px;
}

.portfolio {
    padding-top: 50px;
    text-align: center;
    color: black;
	position: relative;
}

.portfolio h2 {
    font-family: 'title', Arial, sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.progetto {
    display: inline-block;
    margin: 0 20px;
    text-align: left;
}

.progetto p {
	margin-bottom: 3vw;
}

.progetto img {
    width: 300px;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 10px;
    transition: transform 0.3s; /* Aggiunge una transizione per un effetto di zoom più fluido */
    outline: 2px solid #252a75; /* Aggiunge un bordo esterno */
    outline-offset: 5px; /* Distanza del bordo esterno dall'immagine */
}

.progetto img:hover {
    transform: scale(1.07); /* Scala l'immagine del 10% dal centro */
}

.progetto img:active {
    transform: scale(0.96); /* Scala l'immagine del 10% dal centro */
}


@media (max-width: 768px) {
    .hero2 {
		background: rgba(0, 0, 0, 0.1) url('images/bg2-mobile.png') no-repeat center center;
		background-blend-mode: darken;
        justify-content: center;
		height: 60vh;
    }
	.text-container {
		max-width: 90%;  /* Limite del 50% della larghezza */
		text-align: center;  /* Allinea il testo a sinistra all'interno del contenitore */
		margin-right: 0;
	}
	.text-container h2 {
		font-size: 1.6em;
		margin-bottom: 1em;
	}
	.text-container p {
		margin-bottom: 2em;
	}

    .button-container {
        justify-content: flex-start;
    }
	.progetto img {
		width: 75vw;
		height: 50vw;
	}
	.progetto p {
		margin-bottom: 10vw;
	}
}



/* LAVORI PAGE */

.lavors{
    padding-top: 50px;
    text-align: center;
    color: black;
	position: relative;
}

.lavors h2 {
    font-family: 'title', Arial, sans-serif;
	color: #252a75;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.lavoro {
    display: inline-block;
    margin: 0 20px;
    text-align: left;
}

.lavoro p {
	margin-bottom: 3vw;
}

.lavoro img {
    width: 300px;
    height: 200px;
    border-radius: 15px;
    margin-bottom: 10px;
    transition: transform 0.3s; /* Aggiunge una transizione per un effetto di zoom più fluido */
    outline: 2px solid #252a75; /* Aggiunge un bordo esterno */
    outline-offset: 5px; /* Distanza del bordo esterno dall'immagine */
}

.lavoro img:hover {
    transform: scale(1.07); /* Scala l'immagine del 10% dal centro */
}

.lavoro img:active {
    transform: scale(0.96); /* Scala l'immagine del 10% dal centro */
}

@media (max-width: 768px) {
	.lavoro img {
		width: 75vw;
		height: 50vw;
	}
	.lavoro p {
		margin-bottom: 10vw;
	}
}