.w3-theme-l5 {color:#000 !important; background-color:#fcf3f1 !important}
.w3-theme-l4 {color:#000 !important; background-color:#f6d8d0 !important}
.w3-theme-l3 {color:#000 !important; background-color:#ecb2a1 !important}
.w3-theme-l2 {color:#fff !important; background-color:#e38b72 !important}
.w3-theme-l1 {color:#fff !important; background-color:#da6444 !important}
.w3-theme-d1 {color:#fff !important; background-color:#ac4022 !important}
.w3-theme-d2 {color:#fff !important; background-color:#99391e !important}
.w3-theme-d3 {color:#fff !important; background-color:#86321b !important}
.w3-theme-d4 {color:#fff !important; background-color:#732b17 !important}
.w3-theme-d5 {color:#fff !important; background-color:#602413 !important}

.w3-theme-l5a {color:#283039 !important; background-color:#e7eaee !important}
.w3-theme-l4a {color:#283039 !important; background-color:#dbe0e6 !important}

.w3-theme-light {color:#000 !important; background-color:#fcf3f1 !important}
.w3-theme-dark {color:#fff !important; background-color:#602413 !important}
.w3-theme-action {color:#fff !important; background-color:#602413 !important}

.w3-theme {color:#fff !important; background-color:#be4626 !important}
.w3-text-theme {color:#be4626 !important}
.w3-border-theme {border-color:#be4626 !important}

.w3-hover-theme:hover {color:#fff !important; background-color:#be4626 !important}
.w3-hover-text-theme:hover {color:#be4626 !important}
.w3-hover-border-theme:hover {border-color:#be4626 !important}

.w3-bar .w3-bar-item2 {font-family:"Libertinus Sans",Arial,sans-serif; padding:12px 16px; float:left; width:auto; border:none; display:block; outline:0}

a.navbar {
  text-decoration: none;
  font-size:1.3rem!important;
  letter-spacing: 0.04rem;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease-in-out;
}
a.navbar:before {
  content: '';
  display: block;
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transform: scaleX(0);
  transition: transform .3s ease-in-out;
}
a.navbar:hover {
 background-position: 0;
}

a.navbar:hover::before {
  transform: scaleX(0.5);
}

a.navbar2 {
  text-decoration: none;
  font-size: clamp(1.16rem,1.6vw,1.25rem)!important;
  letter-spacing: 0.04rem;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease-in-out;
}
a.navbar2:before {
  content: '';
  display: block;
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #be4626;
  transform: scaleX(0);
  transition: transform .3s ease-in-out;
}
a.navbar2:hover {
 background-position: 0;
}

a.navbar2:hover::before {
  transform: scaleX(0.5);
}

w3-padding-nav {
  margin-top:50px;
}

#sicdat {font-size:clamp(0.9rem,1.3vw,1rem)!important;color:#FFF!important;background-color:#8E7C73!important}
#sicdat .w3-hover-sicdat:hover{color:#fff!important;background-color:#A4958E!important}

#sicdat-sand {font-size:clamp(0.9rem,1.3vw,1rem)!important;color:#FFF!important;background-color:#8E7C73!important;}
#sicdat-sand .w3-hover-sicdat:hover{color:#fff!important;background-color:#A4958E!important}
#sicdat-tot-sand {margin-top:-112px;transition: margin-top 2s;z-index:20;}
#sicdat-tot-sand:hover {margin-top:0;}

#eventi p{text-align: left;line-height: 1.4;}
#eventi strong{color: #BE4626;}
#eventi a{border-bottom: solid 0 #BE4626;padding-bottom: 1px;transition: border-bottom 0.2s ease-out;}
#eventi a:hover{border-bottom: solid 1px #BE4626;padding-bottom: 1px;color: #BE4626;}
#eventi .desc{font-size:clamp(0.9rem, 1vw, 1.1rem);}
#eventi hr{border-top:2px dotted #ECB2A1;margin:0 16px;}

#event-box{position: sticky;top: 120px;}
@media (max-width:768px) {#event-box {position: static;}}
#event-box p{text-align: left; font-size: clamp(0.95rem, 1.4vw, 1.1rem);}
#event-box span{display: inline-block;width: 28px;}
#event-box .type{display: inline-block;margin-top: 16px;padding:4px 8px;background:#fff;color:#BE4626;letter-spacing: 1px;font-weight: 600;}
#event-box a{border-bottom: 0;font-weight: bold;}
#event-box a:hover{border-bottom: solid 1px;color:#FFF;padding-bottom: 1px;}
#event-box hr{border-top:2px dotted #FFF;}

#avvisi {margin:16px;padding:28px;text-align: center;color:#283039 !important; background-color:#FFE5BE !important;border:solid 4px #EA961C;font-size: clamp(1.1rem, 1.7vw, 1.4rem);}

.w3-modal-img{z-index:3;display:none;justify-content:center;align-items:center;position:fixed;left:0;top:0;height:100vh;width:100%;overflow:auto;background-color:rgba(0,0,0,0.8)}
.w3-modal-content-img{margin:auto;background-color:#fff;position:relative;padding:0;outline:0;width:600px}
@media (max-width:600px){.w3-modal-content-img{margin:0 10px;width:auto!important}}
@media (max-width:768px){.w3-modal-content-img{width:500px;}}
@media (min-width:993px){.w3-modal-content-img{width:880px;}.w3-hide-large{display:none!important}.w3-sidebar.w3-collapse{display:block!important}}

.w3-modal-content-img2{margin:auto;background-color:#fff;position:relative;padding:0;outline:0;width:600px}
@media (max-width:600px){.w3-modal-content-img2{margin:0 10px;width:auto!important}}
@media (max-width:768px){.w3-modal-content-img2{width:500px;}}
@media (min-width:993px){.w3-modal-content-img2{width:1200px;}.w3-hide-large{display:none!important}.w3-sidebar.w3-collapse{display:block!important}}

.modale {text-decoration:none;font-weight:bold;border-bottom:0;padding-bottom:0;cursor: pointer;}
.modale:hover{border-bottom:solid 1px;padding-bottom: 1px;}

.collapsible {
  cursor: pointer;
  padding: 8px 16px;
  width: 100%;
  border: none;
  outline: none;
}

.active, .collapsible:hover {
  color:#fff !important; background-color:#BE4626 !important;
}

.collapsible:after {
  content: '\276F';
  font-weight: bold;
  float: right;
  margin-left: 5px;
  transform: rotate(90deg);
  transition: transform 0.3s ease-out;
}

.active:after {
  transform: rotate(-90deg);
}

.content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}
.content .w3-button{padding:0 24px;}
.content .w3-button:hover {color:#0f3052!important;background-color:#eaf3fb!important}