


/*@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500&display=swap");
*/

/* Importazione del font locale */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.woff2') format('woff2'),
         url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.woff2') format('woff2'),
         url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* Applicare il font a tutto il sito */
* {
    font-family: "Poppins", sans-serif;
}



html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100dvh;
  cursor: default;
  overflow: none;
}

.navbar-toggler {
  border: none !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
  outline: none !important;
  box-shadow: none !important;
}

.dropdown-menu {
  border: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0 !important;
  padding: 0 !important;
}

@media screen and (max-width: 1200px) {
  .dropdown-menu {
    box-shadow: none !important;
  }
}

.dropdown-item[href="areaVerde.html"]:focus,
.dropdown-item[href="areaVerde.html"]:active {
  background: rgba(51, 133, 62, 0.3) !important;
  color: black !important;
}

.dropdown-item[href="areaBlu.html"]:focus,
.dropdown-item[href="areaBlu.html"]:active {
  background: rgba(51, 103, 133, 0.3) !important;
  color: black !important;
}

.navbar.fixed {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
}

.goog-te-gadget-simple {
  display: none !important;
}

.menu-traslate-header a {
  cursor: pointer;
}

button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  transition: all ease 500ms;
}

@media screen and (max-width: 576px) {
  .container-hero {
    margin-top: -100px !important;
  }
}

@media screen and (min-width: 577px) {
  .container-hero {
    margin-top: -80px !important;
  }
}

@media screen and (min-width: 992px) {
  .container-hero {
    margin-top: auto !important;
  }
}



.btn-success {
  background-color: #337385 !important;
  border-color: #337385 !important;
}

.txt {
  margin-bottom: 30px;
  text-align: justify;
}

.zone-blu {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  margin: -20px -20px auto -20px !important;
  background: rgba(51, 103, 133, 0.3) !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border: none !important;
}

.zone-verdi {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  margin: -20px -20px auto -20px !important;
  background: rgba(51, 133, 62, 0.3) !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border: none !important;
}

.titoliPagine {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  margin: -20px -20px auto -20px !important;
  background: #33738528 !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border: none !important;
}

.titoliHome {
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -20px -12px auto -12px !important;
  background: rgba(51, 115, 133, 0.2) !important;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border: none !important;
}

.card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none !important;
  border-radius: 16px !important;
}
.card-body {
  flex-grow: 1;
}

.card.dark {
  background-color: #282d32;
}

.hr {
  width: 50%;
  margin: 50px auto;
}

.footer-images {
  padding: 20px 0;
}
.footer-images .logo {
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-images img {
  max-width: 100px;
  transition: transform 0.3s;
}
.footer-images img:hover {
  transform: scale(1.1);
}

button img {
  width: 100px;
  margin-right: 10px;
  border-radius: 12px;
}

.accordion-collapse img {
  margin: 0 auto;
  display: block;
}

main {
  padding-top: 96px;
}

.caption {
  position: absolute;
  margin-top: -25px;
}

.sub {
  font-style: italic;
}

#carouselId {
  width: min-content;
}

.flags-container {
  margin-left: 50px;
}

@media screen and (max-width: 1200px) {
  .flags-container {
    margin-top: 20px;
    margin-left: 0;
  }
}

.container-comport {
  position: relative;
  display: inline-block;
  width: 550px;
  height: 100%;
  cursor: pointer;
  width: 600px;
}

.expand-button {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
}

.expand-button img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  height: auto;
}

.description {
  display: none;
  background-color: #579779;
  color: white;
  padding: 10px;
  margin-top: 10px;
  border-radius: 5px;
}

.imgLogo {
  z-index: -1 !important;
}

.footer-case {
  position: fixed;
  bottom: 0;
  z-index: -1;
  margin: 0;
}

.footer-case img {
  width: 100%;
  opacity: 30%;
}

.but-img {
  cursor: pointer;
  margin-bottom: 10px;
}

/* Stili per la finestra modale */
.modal {
  display: none; /* Nascosta di default */
  position: fixed; /* Rimane fissa sullo schermo */
  z-index: 1; /* Sopra agli altri contenuti */
  left: 0;
  top: 0;
  overflow: auto; /* Permette lo scroll */
  background-color: rgba(0, 0, 0, 0.5); /* Sfondo semi-trasparente */
  border: none;
  justify-content: center;
}

.comp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -25px -24px 20px -24px !important;
  background: #5d9b7b5a;
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
  border: none !important;
  padding: 20px;
}

.comp-header:first-child {
  font-size: 30px;
  color: #253c30;
  font-weight: 500;
}

/* Contenuto della finestra modale */
.m-content {
  margin-top: 3%;
  border-radius: 18px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  height: fit-content;
}

/* Stile per il pulsante di chiusura */
.close {
  width: fit-content;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 300ms;
}

.close:hover,
.close:focus {
  color: #d20000;
  text-decoration: none;
  cursor: pointer;
  transform: rotate(360deg);
}

.glass {
  /* From https://css.glass */
  padding: 20px;
  background: rgba(255, 255, 255, 0.71) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(11.1px) !important;
  -webkit-backdrop-filter: blur(11.1px) !important;
}

.home-glass {
  /* From https://css.glass */
  background: rgba(255, 255, 255, 0.5) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  padding: 20px;
}

.accordion-glass {
  /* From https://css.glass */
  padding: 20px;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(11.1px) !important;
  -webkit-backdrop-filter: blur(11.1px) !important;
}

.accordion {
  background-color: transparent !important;
}

.accordion-item {
  background-color: transparent !important;
  border: none !important;
}

#firstAccordionItem {
  border-top-left-radius: 16px !important;
  border-top-right-radius: 16px !important;
}

#lastAccordionItem {
  border-bottom-left-radius: 16px !important;
  border-bottom-right-radius: 16px !important;
}

#lastAccordionItem:not(.collapsed) {
  border-radius: 0 !important;
}

#carouselIdSeven {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
}

#carouselIdSeven img {
  border-radius: 16px !important;
}

#accordionExample {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  padding: 0 !important;
}

h2 {
  margin-bottom: 0 !important;
}

.h2 {
  margin-bottom: 0 !important;
}

@media screen and (max-width: 576px) {
  .imgSfondoHome {
    position: fixed;
    top: 0;
    height: 100vh;
    right: 0;
    z-index: -1;
  }

  .imgSfondoProgetto {
    position: fixed;
    top: 0;
    height: 100vh;
    left: 0;
    z-index: -1;
  }

  .imgSfondoComportamenti {
    position: fixed;
    top: 0;
    height: 100vh;
    right: 0;
    z-index: -1;
  }
}

.imgSfondoHome {
  position: fixed;
  top: 0;
  height: 100vh;
  right: 0;
  z-index: -1;
}

.imgSfondoProgetto {
  position: fixed;
  top: 0;
  height: 100vh;
  left: 0;
  z-index: -1;
}

.imgSfondoComportamenti {
  position: fixed;
  top: 0;
  height: 100vh;
  right: 0;
  z-index: -1;
}

.foglie {
  -drag: none;  
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.scrollBtn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: none;
  background-color: #337385;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.scrollBtn:hover {
  background-color: #4192a8 !important;
}

.more:hover {
  background-color: #4192a8 !important;
}

.map-container {
  height: 100%;
  margin-bottom: 50px;
}
.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

img.fullscreen {
  width: 100%;
  max-width: 500px;
  cursor: pointer;
}

.content-ex {
  max-height: 200px; /* Altezza massima prima del troncamento */
  overflow: hidden;
  position: relative;
  transition: max-height 0.5s ease-in-out; /* Aggiunta di transizione */
}

.content-ex.expanded {
  max-height: fit-content; /* Altezza massima quando espanso */
  /* Nota: assicurati che questa altezza sia sufficiente per il contenuto */
}

.read-more {
  display: block;
  text-align: center;
  margin-top: 10px;
  cursor: pointer;
  color: #4192a8;
}

img.fullscreen {
  width: 100%;
  max-width: 500px;
  cursor: pointer;
}
/* Stili per la modale */
.modal-panel {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  overflow: auto;
  align-items: center;
  justify-content: center;
}
.modal-content-panel {
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  display: block;
}
.close-panel {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 35px;
  font-weight: bold;
  cursor: pointer;
  transition: 300ms;
}
.close-panel:hover,
.close-panel:focus {
  color: #d20000;
  text-decoration: none;
  cursor: pointer;
  transform: rotate(360deg);
}

.modal-open {
  overflow: hidden !important; /* Disabilita lo scroll */
}

map {
  display: block;
}

/* @media only screen and (max-width: 1200px) {
  map {
    display: none;
  }
} */

area {
  outline-color: fuchsia;
}


/* ===== NUOVO LOADER LEGGERO ===== */

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Spinner semplice */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #337385; /* colore sito */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}







@media screen and (max-width: 484px) {
  .img-container {
    display: none;
  }
  #carouselIdFumetto {
    display: block !important;
  }
}

.img-container {
  position: relative;
  width: 35%;
}

.copertinaFumetto {
  display: block;
  width: 100%;
  height: auto;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: rgba(0, 0, 0, 0.3);
  user-select: none;
  --webkit-user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
}

.img-container:hover .overlay {
  opacity: 1;
  cursor: pointer;
}

.overlay-text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}


.fumettoContainer {
  margin-top: 20px;
  margin-bottom: 20px;
}

#carouselIdFumetto1 {
  width: 100%;
  height: calc(100vh - 40px);
  box-sizing: border-box;
}
#carouselIdFumetto1 .fumetto-inner {
  height: 100%;
}
#carouselIdFumetto1 .fumetto-item {
  height: 100%;
} 
#carouselIdFumetto1 .fumetto-item img {
  object-fit: cover; 
  height: 100%;
  width: auto !important;
}

.fumetto-item {
  transition: none !important;
}

/* Bottone download */
.download-button {
  --main-focus: #2d8cf0;
  --font-color: #dedede;
  --bg-color-sub: #236e83;
  --bg-color: #337385;
  --main-color: #dedede;
  position: relative;
  width: 150px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  border: 2px solid var(--main-color);
  box-shadow: 4px 4px var(--main-color);
  background-color: var(--bg-color);
  border-radius: 10px;
  overflow: hidden;
}

.download-button, .download-button__icon, .download-button__text {
  transition: all 0.3s;
}

.download-button .download-button__text {
  transform: translateX(21px);
  color: var(--font-color);
  font-weight: 600;
}

.download-button .download-button__icon {
  position: absolute;
  transform: translateX(109px);
  height: 100%;
  width: 39px;
  background-color: var(--bg-color-sub);
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-button .download-svg {
  width: 20px;
  fill: var(--main-color);
}

.download-button:hover {
  background: var(--bg-color);
}

.download-button:hover .download-button__text {
  color: transparent;
}

.download-button:hover .download-button__icon {
  width: 148px;
  transform: translateX(0);
}

.download-button:active {
  transform: translate(3px, 3px);
  box-shadow: 0px 0px var(--main-color);
}

.download {
  flex: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.eventText {
  width: 50%;
}

.eventImage {
  width: 50%;
}

.eventContainer {
  display: flex;
  flex-direction: row ;
}


/* ################################ Aggiunto ################################## */

#accessibilita {
       box-sizing: border-box;
    background: aliceblue;
    padding: 1% 1% 1% 1%;
    text-align: center;
}  


