html, body {
	background: #222;
}

.app-name {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
	background: #222;
	color: #fff;
	font-size: 24px;
	padding: 40px 20px 10px 20px;
	border-radius: 20px;
	text-align: center;
}

.app-name h1 {
	margin: 0;
	font-size: 24px;
}

.app-name p {
	margin: 0;
	font-size: 14px;
	color: #999;
}

.full-height {
	height: calc(100vh - 60px);
	background: #222;
}

.box {
	color: #fff;
	font-size: 30px;
	text-align: center;
	border: 15px solid #f1f1f1;
	border-left-width: 0px;

	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;

	border-color: #222222;
}

.box:first-child {
	border-left-width: 15px;
}

.map-wrapper {
	border-radius: 20px;
    overflow: hidden;
    width: calc(100% + 30px);
    height: 100%;
}

.map {
	position: relative;
	border-radius: 20px;
	width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(0.8) brightness(1.5);
    transition: filter 0.5s ease-in-out;
}

.map,
.map > div,
.map iframe,
.map .gm-style {
	border-radius: 20px;
}

.map::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 20px;
	box-shadow: inset 0 0 0 3px #FF9000;
	pointer-events: none;
	opacity: 0;
	border-radius: 20px;
	transition: opacity 0.5s ease-in-out;
}

.box:hover .map {
	border-radius: 20px;
	filter: grayscale(0%) contrast(1.2) brightness(1.05);
}

.box:hover .map::after {
	opacity: 1;
	border-radius: 20px;
}

.box:hover > div > p > a {
	text-decoration: none;
	background-color: #FF9000 !important;
	border-color: #FF9000 !important;
	transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.box:hover > div > p > a:hover {
	background-color: #bd6b00 !important;
	border-color: #bd6b00 !important;
}

/* Overlay */
.overlay {
	position: absolute;
	/* top: calc(50% - 70px); */
	left: 15%;
	right: 15%;
	z-index: 10;
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(3px);
	padding: 45px;
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	transition: all 0.15s ease-in-out;
}

.box:hover .overlay {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
	/* box-shadow: rgba(0, 0, 0, 0.4) 5px 5px, rgba(0, 0, 0, 0.3) 10px 10px, rgba(0, 0, 0, 0.2) 15px 15px, rgba(0, 0, 0, 0.1) 20px 20px, rgba(0, 0, 0, 0.05) 25px 25px; */
	/* transform: translateY(-5px) scale(1.02) rotate(1deg); */
}

.overlay-title {
	font-size: 22px;
	font-weight: bold;
	color: #333;
}


/* LG: 4 affiancati */
@media (min-width: 1200px) {
	.box {
		height: calc(50vh - 8px);
		border-radius: 25px;
	}
	.map-wrapper {
		border-radius: 20px;
	}
}

@media (min-width: 1200px) {
	.box-full-h {
		height: 100vh;
	}
	.map-wrapper {
		border-radius: 20px;
	}
}

/* MD: 2 per riga, altezza 50% */
@media (min-width: 992px) and (max-width: 1199px) {
	.box {
		height: calc(50vh - 8px);
		border-left-width: 15px;
	}
	.box:nth-child(2n) {
		border-left-width: 0px;
		border-bottom-width: 0px;
	}
	.box:nth-child(2n-1), .box:last-child {
		border-bottom-width: 0px;
	}
	.overlay {
		left: 10%;
		right: 10%;
		padding: 20px;
	}
}

/* SM e XS: 1 per riga, altezza 33% */
@media (max-width: 991px) {
	.box {
		height: 40vh;
		border-width: 15px;
		border-bottom-width: 0px;
	}
	.box:last-child {
		border-bottom-width: 15px;
	}

	.overlay {
		left: 10%;
		right: 10%;
		padding: 20px;
	}

	.app-name {
		padding: 20px 15px 10px 15px;
		border-top-left-radius: 0px;
		border-top-right-radius: 0px;
	}
	.app-name h1 {
		font-size: 20px;
	}
	.app-name p {
		display: none;
	}
}

/* .b1 { background-color: #3498db; }
.b2 { background-color: #e74c3c; }
.b3 { background-color: #2ecc71; }
.b4 { background-color: #9b59b6; } */

/* .b1 { background-color: #f1f1f1; }
.b2 { background-color: #f1f1f1; }
.b3 { background-color: #f1f1f1; }
.b4 { background-color: #f1f1f1; } */

.b1 { background-color: none; }
.b2 { background-color: none; }
.b3 { background-color: none; }
.b4 { background-color: none; }