/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/

#map {
	width: 100%;
	max-width: 1200px;
	height: 800px; /* La mappa occupa l'intera finestra */
	border: none; /* Nessun bordo intorno alla mappa */
	margin: 50px auto;
}
.leaflet-marker-icon {
	cursor: pointer; /* Cambia il cursore in una manina */
	opacity: 0; /* Invisibile */
}

.leaflet-popup-content {
	width: 500px !important;
	max-width: calc(100vw - 200px);
	margin: 30px 15px;
}

.leaflet-popup-content .popup-row{
	display: flex;
	align-items: start;
	gap: 10px;
	padding-bottom: 10px;
}
@media(max-width: 767px) {
	.leaflet-popup-content .popup-row{
		flex-direction: column;
		align-items: center;
	}
	.leaflet-popup-content .popup-row > p{
		width: 100%;
	}
}
.leaflet-popup-content .popup-row > p{
	max-height: 200px;
	overflow-y: scroll;
	margin: 0;
	font-size: 15px;
}
.leaflet-popup-content img{
	max-width: 150px;
	height: auto;
}
.leaflet-popup-content .age-p{
	display: flex;
	align-items: center;
	margin: 0 0 10px;
}
.leaflet-popup-content h1{
	font-size: 20px;
	margin-bottom: 0;
}
#mappa .leaflet-container a.leaflet-popup-close-button {
	top: 30px;
	right: 15px;
	font-size: 30px;
  }
  .leaflet-popup-content audio{
	width: 100%;
}
.leaflet-container .img-div {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
}
.leaflet-container .img-div small {
	font-size: 9px;
	color: #888;
	text-align: center;
}


:root, .dark, .not-dark, #header {
	/**--cnvs-footer-bg: #012233;**/
	--cnvs-footer-bg: #012233;
	--cnvs-header-transparent-border-color: transparent;
	--cnvs-header-height: 80px;
	--cnvs-themecolor: #b77e6b;

	--color-1600: #f6f7d5;
	--color-1700: #e1e1c9;
	--color-1800: #f7d9d7;
	--color-1900: #f5e4f7;
	--border-1600: #eef180;
	--border-1700: #a4a652;
	--border-1800: #f38e86;
	--border-1900: #edabf3;
}
#header-wrap {
	border-bottom-color: rgba(var(--cnvs-contrast-rgb), 0.1)!important;
	padding: 5px 0;
	z-index: 1000;
}

@media(min-width: 500px) {
        #header-wrap #logo a {
        width: unset; 
        margin-left: 50px; 
        margin-right: 20px;
    }
    #header-wrap #logo .logo-regione {
        width: 60px; height: auto; margin-right: 10px;
    }
}
@media(max-width: 499px) {
    #logo .logo-default, #logo .logo-dark {
        height: 60px !important;
        width: auto;
    }
    #header-wrap #logo a {
        width: unset; 
        margin-left: 0; 
        margin-right: 10px;
    }
    #header-wrap #logo .logo-regione {
        width: 35px; height: auto; margin-right: 10px;
    }
    
    #header-wrap #logo .testo-regione {
        font-size: 12px; 
        
    }
}
.footer-logo {
	max-width: 160px;
}

.widget_links li {
	gap: 5px;
}
.widget_links li::before {
    display:none !important;
}
.widget_links li i {
	width: 20px;
}
.widget_links li a {
	padding: 0;
}
#copyrights {
	padding: 1rem 0;
}
.heading-block::after {
	display: none;
  }


.leaflet-attribution-flag, .leaflet-control-attribution {
	display: none !important;
}

.secolo-square {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 5px;
	background-color: #eee;
	border: 2px solid #bbb;
}
.secolo-square.square-1600 { background-color: var(--color-1600); border-color: var(--border-1600) }
.secolo-square.square-1700 { background-color: var(--color-1700); border-color: var(--border-1700) }
.secolo-square.square-1800 { background-color: var(--color-1800); border-color: var(--border-1800) }
.secolo-square.square-1900 { background-color: var(--color-1900); border-color: var(--border-1900) }
#legend li {
	display: flex;
	align-items: center;
}
#legend ul {
	list-style-type: none;
}
#legend {
	max-width: 1200px;
  	margin: 0 auto;
}

@media(max-width: 767px) {
	#mappa {
		padding-left: 50px;
		padding-right: 50px;
	}
}

@media(min-width: 768px) {
	#legend, #legend ul {
		display: flex;
		gap: 20px;
	}
}



/* The Modal (background) */
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 1000; /* Sit on top */
	padding-top: 50px; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgb(0,0,0); /* Fallback color */
	background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
	align-items: center;
	justify-content: center;
	flex-direction: column;
  }
  
  /* Modal Content (Image) */
  .modal-image {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(100% - 50px);
	max-height: calc(100% - 50px);
  }
  /* Add Animation - Zoom in the Modal */
.modal-image {
	animation-name: zoom;
	animation-duration: 0.6s;
  }
  .modal-text {
	color: #fff;
	margin-top: 10px;
  }
  
  @keyframes zoom {
	from {transform:scale(0)}
	to {transform:scale(1)}
  }
  
  /* The Close Button */
  .close {
	position: absolute;
	top: 15px;
	right: 35px;
	color: #f1f1f1;
	font-size: 40px;
	font-weight: bold;
	transition: 0.3s;
  }
  
  .close:hover,
  .close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
  }
  
