body {
	overflow-x: hidden;
	font-family: 'Lato', sans-serif;
	color: #505962
}

.navbar {
	background: rgba(0, 0, 0, 0.6);
}

.navbar-brand img {
	height: 2rem;
}

.navbar-brand {
	font-size: 1rem;
}

a:visited {
	color: white !important;
}

.video-background {
	position: relative;
	width: 100%;
	min-height: 100vh;
	background-color: rgba(0, 0, 0, 0.2);
}

.cards {
	margin-top: 2rem;
}

.footer {
	background-color: black;
	min-height: 20rem;
	font-family: 'Lato', sans-serif;
	font-size: 0.8rem;
	font-weight: 400;
	text-decoration: none;
	font-color: #FFFFFF;
	margin-top: 5em;
}

.caption {
	font-family: "Chelsea Market", sans-serif;
	position: absolute;
	top: 16%;
	width: 100%;
	color: white;
}

.caption h1 {
	font-size: 3rem;
	font-weight: 700;
	letter-spacing: .2rem;
	text-shadow: .1rem .1rem .8rem black;
	padding-bottom: 1rem;
}

.caption h2 {
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: .1rem;
	text-shadow: .1rem .1rem .8rem black;
	padding-bottom: 1rem;
}

.caption h3 {
	font-size: 2rem;
	text-shadow: .1rem .1rem .5rem black;
	padding-bottom: 1.6rem;
}

.btn-lg {
	border-width: medium;
	border-radius: 0;
	font-size: 1.1rem;
	padding: .6rem 1.3rem;
}

@media(max-width: 768px) {
	.caption h1 {
		font-size: 1.4rem;
		letter-spacing: .15rem;
		padding-bottom: .5rem;
	}
	.caption h3 {
		font-size: 1.1rem;
		padding-bottom: 1.2rem;
	}
	.btn-lg {
		font-size: 1rem;
		padding: .5rem 1rem;
	}
}

.col-md-8 {
	margin: 2rem auto 8rem;
	padding-top: 2rem;
}

.col-md-8 h1 {
	font-size: 2.4rem;
}

.btn-secondary {
	border-width: medium;
	border-radius: 0;
	padding: .6rem 1.2rem;
	font-size: 1.2rem;
	text-transform: uppercase;
	margin: 1rem;
	border-color: #1EBBA3;
	background-color: #1EBBA3;
	color: white;
}

.btn-secondary:hover, .btn-secondary:focus {
	border-color: #189582;
	background-color: #189582;
	color: white;
}

.site-font {
	font-family: "Chelsea Market", sans-serif;
}

.gallery-link a,a:visited {
	color: rgb(90,90,90);
	text-decoration: none;
}

.gallery-link>a:hover {
	background-color: rgb(90,90,90);
	color: rgb(255,255,255);
	text-decoration: none;
}

.gallery-link .active {
	background-color: rgb(90,90,90);
	color: rgb(255,255,255);
}

.center-block {
	float: none;
}



        /* STILI DELL'OVERLAY (Inizialmente nascosto) */
        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.9); /* Sfondo scuro semi-trasparente */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none; /* Impedisce click quando è nascosto */
            transition: opacity 0.3s ease;
        }

        /* Classe per mostrare l'overlay tramite JS */
        .overlay.active {
            opacity: 1;
            pointer-events: auto;
        }

        /* L'immagine all'interno dell'overlay */
        .overlay-img {
            max-width: 90%;
            max-height: 90%;
            object-fit: contain;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
            transform: scale(0.9);
            transition: transform 0.3s ease;
        }

        /* Effetto zoom leggero all'apertura */
        .overlay.active .overlay-img {
            transform: scale(1);
        }

        /* Pulsante di chiusura (X) */
        .close-btn {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
            transition: color 0.2s;
        }

        .close-btn:hover {
            color: #bbb;
        }
