/* Template */
:root {
  --bgcolor-body: #f1f5fe;
  --color-text: #222;
  --color-primary: #2636AC; /* title, buttons, ... */
  --color-primary-hover: #1f35a3;
  --gradient-primary: linear-gradient(45deg, #00CCC6 0%, #2636AC 100%); /* title, buttons, ... */
  --gradient-primary-hover: linear-gradient(45deg, #02babc 0%, #1f35a3 100%); /* title, buttons, ... */
  --color-secondary: #00CCC6;
  --color-secondary-hover: #02babc;
  --color-link: #1186ba; /* Via di mezzo tra i 2 estremi del gradient */
  --color-link-hover: #00CCC6;
  --color-sidebar-link: #fff;
  --color-sidebar-linkactive: #b8eaf5;
  --bgcolor-sidebar: #2636AC;
  --gradient-sidebar: linear-gradient(90deg, #00CCC6FF 0%, #2636ACFF 100%);
  --gradient-sidebar-desktop: linear-gradient(180deg, #00CCC6FF 0%, #2636ACFF 100%);
  --color-btn: #fff;
  --boxshadow: 0px 1px 4px 0px rgba(0,0,0,.15);
  --boxshadow-hover: 0px 4px 8px 0px rgba(0,0,0,0.3);
  --border-radius: 0.5rem; /* bordi arrotondati x elementi vari e classe rounded */
  --color-holiday: rgb(220,53,69);/* colore per giorni festivi (es: domenica) nei buttons calendario */
  --color-holiday-selected: rgb(255, 183, 190);/* colore per giorni festivi se selezionati (es: domenica) nei buttons calendario */
}


/* Debug */
/* *{outline: 1px solid #f00;}*/


/* Reset + stili base */
html,body{
  background: var(--bgcolor-body);
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  color: var(--color-text);
  overflow-x: hidden;
}
a{
  color: var(--color-link);
}
a:hover{
  color: var(--color-link-hover);
}
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.3em;
}
.h1, h1 {
  font-size: calc(2rem + 1.5vw);
}
@media (min-width: 1200px) { /* >= xl */
  .h1, h1 {
    font-size: 3rem;
  }
}

/* Testi */
.text-primary{
  color: var(--color-primary) !important;
}

/* Buttons */
.btn{
  transition: all 0.1s linear;
}
.btn__ico{
  /* per allineameare elementi interni al btn come icone + span testo */
  display: flex;
  align-items: center;  
  justify-content: center;
}
.btn-primary{
  font-weight: bold;
  color: var(--color-btn);
  background-color: var(--color-primary);
  background-size: 100% 100%;
  background-position: 50% 50%;
  background-image: var(--gradient-primary);
  border: 0;
}
.btn-primary:hover, 
.btn-primary:focus,
.btn-primary:active{
  background-image: var(--gradient-primary-hover);
}
.btn-outline-primary{
  font-weight: bold;
  color: var(--color-primary);
  background: transparent;
  border: 0;
  /* Trick per bordo interno */
  -webkit-box-shadow:inset 0px 0px 0px 3px var(--color-primary);
  -moz-box-shadow:inset 0px 0px 0px 3px var(--color-primary);
  box-shadow:inset 0px 0px 0px 3px var(--color-primary);
}
.btn-outline-primary:hover, 
.btn-outline-primary:focus, 
.btn-outline-primary:active{
  color: var(--color-primary) !important;
  background-color: transparent !important;  
  -webkit-box-shadow:inset 0px 0px 0px 3px var(--color-primary-hover);
  -moz-box-shadow:inset 0px 0px 0px 3px var(--color-primary-hover);
  box-shadow:inset 0px 0px 0px 3px var(--color-primary-hover);
}
.btn-outline-secondary{
  font-weight: bold;
  color: var(--color-secondary);
  background: transparent;
  border: 0;
  /* Trick per bordo interno */
  -webkit-box-shadow:inset 0px 0px 0px 3px var(--color-secondary);
  -moz-box-shadow:inset 0px 0px 0px 3px var(--color-secondary);
  box-shadow:inset 0px 0px 0px 3px var(--color-secondary);
}
.btn-outline-secondary:hover, 
.btn-outline-secondary:focus, 
.btn-outline-secondary:active{
  color: var(--color-secondary) !important;
  background-color: transparent !important;  
  -webkit-box-shadow:inset 0px 0px 0px 3px var(--color-secondary-hover);
  -moz-box-shadow:inset 0px 0px 0px 3px var(--color-secondary-hover);
  box-shadow:inset 0px 0px 0px 3px var(--color-secondary-hover);
}
.btn-link{  
  color: var(--color-link);
}
.btn-link:hover{
  color: var(--color-link-hover);
}

/* Cards */
.card{
  border: 0;
  /* Se si vuole utilizzare la Card con img messa come bg da css inline */
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  border-radius: var(--border-radius);
}
.card-footer{
  border-top: 0;
  background: transparent;
  padding: 0 var(--bs-card-spacer-x) var(--bs-card-spacer-y) var(--bs-card-spacer-x);
}
/* Cards > Card personalizzata per pagina store principale */
.card__store{
  transition: all 0.2s ease-in-out;
  background-position: top -50px center;
  padding-top: calc(3rem + 8vw);
}
#cardBiglietti{
  background-image:url(../img/card-biglietti.jpg);
}
#cardAbbonamenti{
  background-image:url(../img/card-abbonamenti.jpg);
}
#cardMappa{
  background-image:url(../img/card-mappa.jpg);
}
#cardServizi{
  background-image:url(../img/card-servizi.jpg);
}
.card__store:hover{
  transform: scale(1.05);
  background-position: top 0px center;
}
.card__store.box__shadow:hover{
  box-shadow: var(--boxshadow-hover);
}

/* Icons (material icons rounded google) */
.page .material-symbols-rounded{ /* solo nel corpo per escludere quelle nella sidebar */
  line-height: 1.4em;
}
.page .material-symbols-rounded.icon__big{
  font-size: 2rem;
}

/* Forms */
/* Forms > mostra/nasconti pwd*/
button#toggle-password {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 90;
  width: 40px;
  height: 56px;
  background: none;
  border: 0;
}
button#toggle-password:active,
button#toggle-password:focus,
button#toggle-password:hover {
  cursor: pointer;
}
button#toggle-password:focus {
  outline: none !important;
}
.input-password {
  padding-right: calc(1.5em + 0.75rem);
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(1em + 0.375rem) calc(1em + 0.375rem);
}
.input-password[type=password]:valid {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z'/%3E%3Cpath d='M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709z'/%3E%3Cpath fill-rule='evenodd' d='M13.646 14.354l-12-12 .708-.708 12 12-.708.708z'/%3E%3C/svg%3E") !important;
}
.input-password[type=text]:valid {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.134 13.134 0 0 0 1.66 2.043C4.12 11.332 5.88 12.5 8 12.5c2.12 0 3.879-1.168 5.168-2.457A13.134 13.134 0 0 0 14.828 8a13.133 13.133 0 0 0-1.66-2.043C11.879 4.668 10.119 3.5 8 3.5c-2.12 0-3.879 1.168-5.168 2.457A13.133 13.133 0 0 0 1.172 8z'/%3E%3Cpath fill-rule='evenodd' d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E") !important;
}
/* Forms > label flottanti */
.form-floating>.form-control-plaintext~label, 
.form-floating>.form-control:focus~label, 
.form-floating>.form-control:not(:placeholder-shown)~label, 
.form-floating>.form-select~label {
  color: var(--color-primary);
  opacity: 1;
}
/* Forms > input group counter (es: contatore articoli nel carrello) */
.input-group.input__counter{
  flex-wrap: nowrap;
}
.input__counter>input[type=number]::-webkit-inner-spin-button,
.input__counter>input[type=number]::-webkit-outer-spin-button { 
  /* nasconde le frecce del input type number del browser */
  -webkit-appearance: none; 
  margin: 0;
}
.input__counter>input[type=number] {  
  /* nasconde le frecce del input type number di Firefox */
  -moz-appearance: textfield;
}
.input-group>input.form-control-plaintext {
  flex: 0 1 2rem; /* 2rem = larghezza input */
  font-size: 1.25rem;
  min-width: 2rem;
}
/* Forms > date nav (navigatore per data input date + elementi esterni all'input ad hoc per i singoli giorni' ) */
.date__nav{
  gap: 0.5rem;
}
.date__nav .btn{
  text-decoration: none;
  padding: 0;
  min-width: 3rem;
  position: relative;
  overflow: hidden;
}
.date__nav .btn[disabled]:before{ /* linea obliqua per giorni disabilitati */
  content: '';
  position: absolute;
  left: 50%;
  top: -15%;
  height: 130%;
  margin-left: -1px;
  width: 3px;
  transform: rotate(33deg);
  background: var(--color-text);
  opacity: 0.3;
}
.date__nav .btn.btn-link{
  background: #fff;
}
.date__nav .btn div:nth-child(1){
  font-size: 0.8em;
  text-transform: uppercase;
  color: var(--color-text);
}
.date__nav .btn div:nth-child(2){
  color: var(--color-text);
  font-size: 1.6em;
  line-height: 1em;
}
.date__nav .btn div:nth-child(3){
  font-size: 0.8em;
  text-transform: uppercase;
  color: var(--color-text);
}
.date__nav .btn div.festivo{ /* btn domenica */
  color: var(--color-holiday);
}
.date__nav .btn.btn-primary div:nth-child(1),
.date__nav .btn.btn-primary div:nth-child(2),
.date__nav .btn.btn-primary div:nth-child(3){ /* btn selezionato */
  color: var(--color-btn);
}
.date__nav .btn.btn-primary div.festivo{ /* btn selezionato domenica */
  color: var(--color-holiday-selected); /* colore diverso perchè su fondo scuro */
}
.date__nav input[type="date"]::-webkit-calendar-picker-indicator{ /* Chrome + webkit browser (no Firefox) rimuove icona calendario da input date */
  display:none;
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
  z-index: 10;
}


/* Utility */
.box__shadow{
  -webkit-box-shadow: var(--boxshadow);
  box-shadow: var(--boxshadow);
}
.title__gradient{
  display: inline-block;
  background-image: var(--gradient-primary);
  -webkit-background-clip: text; /* For Chrome, Safari */
  background-clip: text; /* For other browsers */
  color: transparent;
}
.rounded{
  border-radius: var(--border-radius);
}

/* Sidebar */
.sidebar{
  font-size: .8rem;
  color: var(--color-primary);
  padding: 0; /*padding: .5rem 1rem;*/
  background-color: var(--bgcolor-sidebar);
  background-size: 100% 100%;
  background-position: 0px 0px;
  background-image: var(--gradient-sidebar);
}
.sidebar > .d-flex{
  padding: .5rem;
}
.sidebar__logo{
  margin-right: .5rem;
}
.sidebar__logo img{
  object-fit: contain;
  height: 60px;
}
.sidebar__link{
  color: var(--color-sidebar-link);
  padding: 0 0.5rem;
  white-space: nowrap;
}
.sidebar__link__icon{
  display: block;
  font-size: 2.5rem;  
  transition: all .2s;
}
.sidebar__link__title{
  display: block;
}
.sidebar__link__badge{
  position: absolute;
  z-index: 1;
  font-size: .7rem;
}
.sidebar__link:focus, 
.sidebar__link:hover {
  color: var(--color-sidebar-linkactive);
}
.sidebar__link:focus .sidebar__link__icon, 
.sidebar__link:hover .sidebar__link__icon{
  transform: scale(1.2);
}
.sidebar__link.nav-link.active {
  color: var(--color-sidebar-linkactive);
  background: transparent;
}

@media (min-width: 768px) { /* >= md */
  .sidebar{
    width: 92px;
    padding: 0; /*padding: 1rem 1rem;*/
    background-size: 100% 100%;
    background-position: 0px 0px;
    background-image: var(--gradient-sidebar-desktop);
  }
  .sidebar > .d-flex{
    height: 100svh;
    padding: 1rem;
  }
  .sidebar__logo{
    margin-right: 0;
    margin-bottom: 0.5rem; /*margin-bottom: 40px;*/
  }
  .sidebar ul > .nav-item{
    width: 100%;
  }
  .sidebar__link{
    padding: 0.5rem 0;
  }
}


/* Dropdown */
.dropdown-menu{
  border: 0;
  -webkit-box-shadow: var(--boxshadow);
  box-shadow: var(--boxshadow);
}


/* Page */
.page{
  min-height: calc(100svh - 76px); /* 76px height sidebar horizontal */
  margin-top: 76px; /* 76px height sidebar horizontal */
}
.page__vertical__centered{
  margin: auto 0;
}
@media (min-width: 768px) { /* >= md */
  .page{
    min-height: 100svh; /* 100% with sidebar vertical */
    margin-top:0;
    margin-left: 92px; /* 92px width sidebar vertical*/
  }
}


/* Immagini */
.img__thumb{
  max-width: 100px;
}


/* Product offcanvas */
.product__offcanvas{
  background: var(--bgcolor-body)
}
.product__offcanvas .offcanvas-header{
  padding-bottom: 0;
}
.product__offcanvas__title{
  margin-bottom: 0;
}
.product__offcanvas__img:has(img) {
  max-width: 30%;
  margin-right: 1rem;
}


/* Modal */
.modal-content{
  background: var(--bgcolor-body);
}
/* Modal con tab (es Login / Registration) */
.modal__tabbed .modal-dialog{
  --bs-modal-width: 350px;
}
.modal__tabbed .modal-header{
  padding-left: 0;
  padding-top: 0;
  padding-bottom: 0;
  background: rgba(0,0,0,0.1);
  border: 0;
}
.modal__tabbed .modal-footer{
  border: 0;
}
.modal__tabbed .modal-header .nav{
  width: 100%;
}
.modal__tabbed .nav-tabs{
  font-size: 1.3rem;
  border: 0;
}
.modal__tabbed .nav-tabs .nav-link{
  color: var(--color-text);
  opacity: 0.5;
  border: 0;
}
.modal__tabbed .nav-tabs .nav-item.show .nav-link, 
.modal__tabbed .nav-tabs .nav-link.active{
  font-weight: bold;
  color: var(--color-primary);
  opacity: 1;
  background-color: var(--bgcolor-body);
}


/* Map Controls */
.custom-controls{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  row-gap: 10px;
  position: absolute;
  z-index: 999;
  /*top: 0;
  left: 0;*/
  margin: 10px;
}
.custom-controls a{
  text-decoration: none;
}
.custom-controls > a div{
  border-radius: 50%;  
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  height: auto;
  width: 45px;
  /*padding: 8px;*/
  color: var(--color-btn);
  background: var(--color-primary);
  background-size: 100% 100%;
  background-position: 0px 0px;
  background-image: var(--gradient-primary);
  -webkit-box-shadow: 0px 0px 10px 0px rgba(255,255,255,0.5);
  box-shadow: 0px 0px 10px 0px rgba(255,255,255,0.5);
  transition-duration: 0.2s;
}
.custom-controls > a div:hover {
  transform: scale(1.2);
}
#full-page{ /* nasconde button fullscreen */
  display: none !important;
}
/* Map */
.map{
  width: 100%;
  height: 70svh;
  overflow: hidden;
  border: none;
  background: #aaa;
  -webkit-box-shadow: var(--boxshadow);
  box-shadow: var(--boxshadow);
  border-radius: var(--border-radius);
  background-size: cover;
  background-position: center center;
}
.markerfree,
.markerbooked,
.markerwaiting{
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: arial, sans-serif;
  font-weight: bold;
  font-size: 14px; /* 16px; */
  line-height: 30px;
  text-decoration: none;
  vertical-align: middle;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  outline: 2px solid #fff; /* better use outline than border (border affect the size of the element causing a misplacement) */
  transition-duration: 0.2s;
  transition-property: transform; /* Important, to animate just scaling on mouse hover; otherwise, apply the animation to all movements when markers are panned and zoomed.  */
  /* Commentata l'ombra perchè con molti overlays faceva laggare il pan e zoom su cell */
  /*-webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.7);
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.7);*/ 
}
.markerfree{
  color: #fff;
  background: #1BC900;
}
.markerbooked,
.markerwaiting{
  color: rgba(255,255,255,0.6);
  background: #aaa;
  cursor: not-allowed;
}
.markerfree:hover, .markerfree:focus{
  transform: scale(1.2);
  color: #fff;
}
.markerbooked:hover, .markerbooked:focus,
.markerwaiting:hover, .markerbooked:focus{
  color: rgba(255,255,255,0.6);
}
/* Messaggio chisura */
.mapclosed{
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: rgba(225, 225, 225, 0.7); /* Sfondo trasparente */
  backdrop-filter: blur(5px); /* Effetto blur */
}


/* Footer */
.footer{
  text-align: center;
  font-size: .85em;
  padding-top: 1rem;
}
@media (min-width: 768px) { /* >= md */
  .footer__copyright{
    text-align: left;
  }
  .footer__nav{
    text-align: center;
  }
  .footer__bysiteland{
    text-align: right;
  }
}
/* Footer > logo Summergest */
.footer .summergest__link{
  text-decoration: none;
  white-space: nowrap;
}
.footer .summergest__simbolo{
  display: inline-block;
  width: 31px;
  height: 30px;
  fill: rgba(0,0,0,.2);
}
.footer .summergest__testo{
  display: inline-block;
  width: 117px;
  height: 30px;
  fill: rgba(0,0,0,.2);
}
.footer .summergest__link:hover .summergest__simbolo{
  fill: var(--color-primary);
}
.footer .summergest__link:hover .summergest__testo{
  fill: var(--color-primary);
}


/* 404 */
.error-404{
  font-weight: bold;
  color: var(--color-secondary);
  font-size: 20vw;
  line-height: 1em;
}
.error-404 span{
  display: inline-block;
}
.error-404 span:nth-child(1){
  -webkit-animation:errFirst .6s ease-in-out infinite;
  -moz-animation:errFirst .6s ease-in-out infinite;
  -o-animation:errFirst .6s ease-in-out infinite;
  -ms-animation:errFirst .6s ease-in-out infinite;
  animation:errFirst .6s ease-in-out infinite;
}
.error-404 span:nth-child(2){
  -webkit-animation:errSecond .6s ease-in-out infinite;
  -moz-animation:errSecond .6s ease-in-out infinite;
  -o-animation:errSecond .6s ease-in-out infinite;
  -ms-animation:errSecond .6s ease-in-out infinite;
  animation:errSecond .6s ease-in-out infinite;
}
.error-404 span:nth-child(3){
  -webkit-animation:errFirst .6s .4s ease-in-out infinite;
  -moz-animation:errFirst .6s .4s ease-in-out infinite;
  -o-animation:errFirst .6s .4s ease-in-out infinite;
  -ms-animation:errFirst .6s .4s ease-in-out infinite;
  animation:errFirst .6s .4s ease-in-out infinite;
}
/* Primo span */
@keyframes errFirst{
  0%,100% {transform:rotate(0deg) scaleX(1.00) scaleY(1.00);}
  50% {transform:rotate(3deg) scaleX(1.20) scaleY(1.20);}
}
@-moz-keyframes errFirst{
  0%,100% {-moz-transform:rotate(0deg) scaleX(1.00) scaleY(1.00);}
  50% {-moz-transform:rotate(3deg) scaleX(1.20) scaleY(1.20);}
}
@-webkit-keyframes errFirst{    
  0%,100% {-webkit-transform:rotate(0deg) scaleX(1.00) scaleY(1.00);}
  50% {-webkit-transform:rotate(3deg) scaleX(1.20) scaleY(1.20);}
}
@-o-keyframes errFirst{    
  0%,100% {-o-transform:rotate(0deg) scaleX(1.00) scaleY(1.00);}
  50% {-o-transform:rotate(3deg) scaleX(1.20) scaleY(1.20);}
}
@-ms-keyframes errFirst{    
  0%,100% {-ms-transform:rotate(0deg) scaleX(1.00) scaleY(1.00);}
  50% {-ms-transform:rotate(3deg) scaleX(1.20) scaleY(1.20);}
}
/* Secondo span */
@keyframes errSecond{
  0%,100% {transform:rotate(-4deg) scaleX(1.30) scaleY(1.30);}
  50% {transform:rotate(0deg) scaleX(1.0) scaleY(1.0);}
}
@-moz-keyframes errSecond{
  0%,100% {-moz-transform:rotate(-4deg) scaleX(1.30) scaleY(1.30);}
  50% {-moz-transform:rotate(0deg) scaleX(1.0) scaleY(1.0);}
}
@-webkit-keyframes errSecond{    
  0%,100% {-webkit-transform:rotate(-4deg) scaleX(1.30) scaleY(1.30);}
  50% {-webkit-transform:rotate(0deg) scaleX(1.0) scaleY(1.0);}
}
@-o-keyframes errSecond{    
  0%,100% {-o-transform:rotate(-4deg) scaleX(1.30) scaleY(1.30);}
  50% {-o-transform:rotate(0deg) scaleX(1.0) scaleY(1.0);}
}
@-ms-keyframes errSecond{    
  0%,100% {-ms-transform:rotate(-4deg) scaleX(1.30) scaleY(1.30);}
  50% {-ms-transform:rotate(0deg) scaleX(1.0) scaleY(1.0);}
}