/* -- General custom -- */
a{
	color:#005c5c;
	text-decoration:none
}
a:hover{
	color:#004040;
	text-decoration:underline
}
span, div{
    font-size: 1.125rem;
    line-height: 1.75rem;
}
.cursor-pointer{
	cursor:pointer
}  
h2 {
  font-size: 2.1rem;
  font-weight: 600;
  color: #005c5c;
}

.gallery-crop img {
	width:600px;
	height:300px;
	object-fit:cover
}
.tratteggiato {
  border: none;                 
  border-top: 2px dotted #ccc; 
  margin: 20px 0;   
}

.bg-lightevidence {
	background-color:#f2f7f7
}
.color-evidence {
  color: #005c5c!important;
}
/* -- Header -- */  

.logo__squared {
  border: 1px solid #fff;
  border-radius: 100%;
  background-color: #fff;
  text-align: center;
  vertical-align: middle;
  display: inline-block;
  width: 80px;
  height: 80px;
  line-height: 80px;
  overflow: hidden;
}
@media screen and (max-width: 992px) {
	.logo__squared {
	  width: 50px;
	  height: 50px;
	  line-height: 50px;

	}
}


/* Stili per il contenitore */
#map-container {
	position: relative;
	width: 100%;
	max-width: 800px; /* Puoi impostare una larghezza massima desiderata */
	margin: 0 auto; /* Centra il contenitore orizzontalmente */
}

#map-container svg {
	display: block; /* Elimina spazi indesiderati */
	width: 100%;
	height: auto;
}

.legend-container {
	margin-top:0em;
	padding:1em;
	display: flex;
	justify-content: space-around;
	align-items: center;	
}

@media (max-width: 992px) {
	.legend-container {
		flex-direction: column;
		align-items: flex-start;
	}
}
		
.legend-item {
	display: flex;
	align-items: center;
	margin-bottom:0.5em;	
}
.legend-item span {
	font-size:0.85em;
}

.legend-icon {
	width: 20px;
	height: 20px;
	margin-right: 8px;
	border-radius: 5%;
}
.ordattiva {
	background-color: #38803F4d;
	border:1px solid #0000004d;
}

.ordattesa {
	background-color: #38803F1a;
	border:1px solid #0000001a;
}
		
		
/* Stile per il tooltip */
.tooltip {
	position: absolute;
	background-color: #555;
	color: #fff;
	padding: 5px 8px;
	border-radius: 6px;
	text-align: center;
	white-space: nowrap;
	z-index: 10;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.1s;
	font-size: 14px;
}

.tooltip.show {
	visibility: visible;
	opacity: 1;
}
.status_default {
	fill: #999999;
}
.status_default-txt{
	color: #999999;
}
.status_red {
	fill: #d32f2f;
}
.status_red-txt{
	color: #d32f2f;
}
.status_green {
	fill: #38803F;
}
.status_green-txt{
	color: #38803F;
}
.status_orange {
	fill: #f57c00;
}
.status_orange-txt{
	color: #f57c00;
}
.comune {
	cursor: pointer;
	stroke: black;
	stroke-width: 1;
	opacity: 0.3;
	transition: opacity 0.2s;
}
.nottz {
	opacity: 0.1;
}

.comune:hover {
	opacity: 1;
}

/* -- title Area -- */
.main-container-top {
  padding: 30px;
  background-color: #005c5c0D;
}


/* -- home page -- */
.hero-section {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
/* -- card list -- */
.card:not(.card-iniziative):not(.card-eventi) { 
  cursor: pointer; 
}
.card-img-hover img {
  transition: opacity 0.3s ease;
}
.card:not(.card-iniziative):hover .card-img-hover img {
  opacity: 0.8;
}

.card:not(.card-iniziative):not(.card-attivita):hover .card-body {
  background-color: #005c5c0D; 
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.card-title a{
  color: #005c5c
}
.card::after {
  margin-top: 8px;
}
.card .card-body h5.card-title, .card .card-body .card-title.h5 {
  font-size: 1.4rem;
}

h2.intro {
  font-size: 1.5rem;
  line-height: 1.9rem;
  color:#005c5c
}



.img-wrapperList {
  overflow: hidden;
}

.img-wrapperList img {
  transition: transform 0.5s ease;
}

.blocco-hover:hover .img-wrapperList img {
  transform: scale(1.1);
}

.blocco-hover:hover h2 {
  text-decoration:underline
}


.blocco-hover {
  transition: background-color 0.4s ease;
  padding: 15px;

}


.blocco-hover:hover .col-txt {
  background-color: #005c5c0D;
}
/* -- ASSOCIAZIONI -- */
.card-ass  {
  border:1px solid #005c5c0D
}
.card-ass img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}
.card-ass  {
  width: 100%;
}
@media screen and (min-width: 768px) {
	.card-ass  {
		width: 18rem;
	}
}
.card-ass::after {
  margin-top: 0px!important;
}
.bg-lightg{
	background-color:#faf9fc
}
.ass-contatti .icon {
  width: 26px;
  height: 26px;
}



/* -- COSA FARE -- */
.cf-bg-zoom {
    transition: transform 0.5s ease;
    background-size: cover;
    background-position: center;
  }

  .cf-link-block:hover .cf-bg-zoom {
    transform: scale(1.1);
  }

  .cf-link-block {
    display: block;
    position: relative;
    color: white;
    text-decoration: none;
    height: 550px;
    border-radius: 0.25rem;
    overflow: hidden;
  }

  .cf-link-block .cf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    border-radius: 0.25rem;
  }

  .cf-link-block .cf-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    padding: 0 10px;
	width: 80%;
  }
  .cf-link-block:hover .cf-content h5 {
    text-decoration: underline;
    color: white; /* Assicura che rimanga bianco */
  }
 /* Contenitore badge in alto a destra */
  .cf-badges {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    display: flex;
    gap: 5px; 
  } 


.tease {
    cursor: pointer;
    -webkit-transition: opacity .4s ease, -webkit-box-shadow .4s ease;
    transition: opacity .4s ease, -webkit-box-shadow .4s ease;
    transition: box-shadow .4s ease, opacity .4s ease;
    transition: box-shadow .4s ease, opacity .4s ease, -webkit-box-shadow .4s ease
}

.tease a {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid rgba(233, 236, 239, .8)
}

@media (max-width: 991.98px) {
    .tease:nth-of-type(even) {
        margin-top: inherit
    }
}

.tease .featured-image {
    display: block;
    position: relative;
    height: 14.3rem;
    width: 100%;
    background-color: #e9ecef;
    background-size: cover;
    background-position: 50%;
    background-repeat: no-repeat;
    -webkit-transition: background-position .4s ease;
    transition: background-position .4s ease
}

.tease .featured-image span {
    position: absolute;
    right: .8rem;
    bottom: .8rem;
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    line-height: .8;
    z-index: 1;
    -webkit-transition: -webkit-transform .4s ease;
    transition: -webkit-transform .4s ease;
    transition: transform .4s ease;
    transition: transform .4s ease, -webkit-transform .4s ease
}

.tease .featured-image span:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.8rem;
    height: 1.8rem;
    -webkit-transform: translate(-50%, -52%);
    transform: translate(-50%, -52%);
    background-color: rgba(255, 255, 255, .2);
    border-radius: 50%;
    opacity: 0;
    z-index: 1;
    -webkit-transition: opacity .4s ease;
    transition: opacity .4s ease
}

.tease .featured-image:after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(0, 0, 0, .1);
    z-index: 0;
    -webkit-transition: height .4s ease;
    transition: height .4s ease
}

.tease .content {
    background-color: #fff;
    padding: 2.25rem 1.75rem;
    pointer-events: none
}



.tease .content h4 {
    font-size: 1.2rem;
    letter-spacing: .1em
}

@media (min-width: 992px) {
    .tease .content h4 {
        max-width: 90%
    }
}

.tease .content p {
    font-size: .9rem;
    font-weight: 300;
    text-align: left !important
}

.tease:hover .featured-image {
    background-position: 50% 100%
}

.tease:hover .featured-image span {
    -webkit-transform: rotate(90deg);
    transform: rotate(90deg)
}

.tease:hover .featured-image span:after {
    opacity: 1
}

.tease:hover .featured-image:after {
    height: 100%
}

/* -- PERSONAGGI -- */
.ps-allegati{
	background-color:#f1f1f1
}
.page-list #list-p article a {
  color: inherit;
  text-decoration:none;
}
/*.page-list #list-p article  {
  border-bottom: 1px solid rgba(0,0,0,.1);
}*/

.page-list #list-p article:last-child,
.page-list #list-p article:only-child {
  border-bottom: none;
}
.page-list #list-p .content{color: #343a40;}
.page-list #list-p a:hover {
  color: #0056b3;
  text-decoration:underline;
}



#list-p .image-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
}

@media screen and (min-width: 992px) {
  #list-p article:hover .image-wrapper::after {
	  width: 98%;
	}
}

#list-p .image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: rgba(0, 0, 0, 0.05);
  transition: width 0.5s ease;
  z-index: 1;
  pointer-events: none;
}


#list-p article:hover  {
 background-color:#f8f9fa;
}
#list-p article  {
 cursor:pointer
}
#list-p  h4:hover {
 text-decoration:underline
}

  
/* -- Footer -- */    
footer h4 a:hover {
  text-decoration: underline;
}
.it-footer-main .link-list-wrapper ul li a {
  padding: 0;
  font-size: 1.125rem;
  line-height: 2rem;
  color: #fff;
}



/* -- COMUNITA' --  */
.successo-block {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px;
	background-color: #f8f9fa;
	border-radius: 8px;
	height: 100%; 
}
.successo-block img {
	width: 100%;
	max-height: 200px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 15px;
}
/* -- HP  --  */
.point-of-interest .poi {
  position: relative;
  color: #fff;
  width: 100%;
  min-height: 400px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: .25rem #fff solid;
  overflow: hidden;
  cursor: pointer;
}	
.point-of-interest .poi::after {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, .45)), to(rgba(0, 0, 0, .15)));
  background-image: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .15));
  z-index: 0;
}	

.point-of-interest .poi h3, .point-of-interest .poi p {
  z-index: 1;
}

.poi {
    position: relative;
    overflow: hidden;
    height: 100%;
    height: 400px;
}

.poi-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    background-size: cover;
    background-position: center center;
    
    transition: transform 0.6s ease-out; 
}

.poi-content {
    position: relative;
    z-index: 2;
}

.poi-content h3 {
    display: inline-block; 
    border-bottom: 2px solid transparent; 
    transition: border-bottom 0.3s ease-in-out;
}

.poi-wrapper:hover .poi-background {
    transform: scale(1.1);
}

.poi-wrapper:hover .poi-content h3 {
    border-bottom: 1px solid #ffffff;
}


/* -- COOKIES CONSENT -- */
#cookieConsent h2 {font-size:1.5em;line-height:1.3em;}
#cookieConsent h5 {font-size:1em;line-height:1.2em;margin-bottom: 5px;}
#cookieConsent p {font-size:0.85em;line-height:1.5em;margin-bottom: 20px;}
#cookieConsent .btn {font-size:0.85em;}
#cookieConsent .modal-dialog {
	max-width: 500px;
}
#cookieConsent .btn-block {
  display: block;
  width: 100%;
}
#cookieConsent .form-check-input {
	display: block!important;
	opacity: 1!important;
}
