.logo-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.logo-item {
  flex: 0 0 10%;
  max-width: 20%;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.logo-item:hover{
  transform: scale(2);
}


@media (max-width: 767px) {
  .logo-item {
      flex: 0 0 50%;
      max-width: 100%;
  }
}

/*DOWNLOAD*/

.downloadItem {
  flex: 1 1 300px; /* Flex-grow, flex-shrink, flex-basis */
  max-width: calc(33.333% - 20px); /* Massimo tre elementi per riga */
  min-width: 250px; /* Larghezza minima per evitare elementi troppo stretti */
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease;
}

.downloadItem:hover {
  transform: scale(1.1);
}


@media (max-width: 992px) {
  .downloadItem {
      flex: 1 1 calc(50% - 20px);
      max-width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .downloadItem {
      flex: 1 1 100%;
      max-width: 100%;
  }
}

/*Footer item*/
.footerItem {
  flex: 1 1 400px;
  max-width: 100%; /* Cambiato per occupare l'intera larghezza */
  min-width: 250px;
  padding: 15px;
  text-align: center;
}

.email-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px; /* Spazio tra le email */
}

.email-container span {
  white-space: nowrap; /* Mantiene l'email su una singola riga */
}

@media (max-width: 768px) {
  .email-container {
      flex-direction: column;
  }
}

/* Global Styles */

html,
body {
  height: 100%;
  width: 100%;
}

.vert-text {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}
.pText {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
}

.vert-text h1 {
  padding: 0;
  margin: 0;
  font-size: 4.5em;
  font-weight: 700;
  color:#ffffff
}

.vert-text h2 {
  padding: 0;
  margin: 0;
  font-size: 4.5em;
  font-weight: 400;
  color:#ffffff
}

.vert-text h3 {
  color:#ffffff
}

/* Side Menu */

#sidebar-wrapper {
  margin-right: -250px;
  right: 0;
  width: 250px;
  background: #000;
  position: fixed;
  height: 100%;
  overflow-y: auto;
  z-index: 1000;
  -webkit-transition: all 0.4s ease 0s;
  -moz-transition: all 0.4s ease 0s;
  -ms-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

.sidebar-nav {
  position: absolute;
  top: 0;
  width: 250px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-nav li {
  line-height: 40px;
  text-indent: 20px;
}

.sidebar-nav li a {
  color: #999999;
  display: block;
  text-decoration: none;
}

.sidebar-nav li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}

.sidebar-nav li a:active,
.sidebar-nav li a:focus {
  text-decoration: none;
}

.sidebar-nav > .sidebar-brand {
  height: 55px;
  line-height: 55px;
  font-size: 18px;
}

.sidebar-nav > .sidebar-brand a {
  color: #999999;
}

.sidebar-nav > .sidebar-brand a:hover {
  color: #fff;
  background: none;
}

#menu-toggle {
  top: 0;
  right: 0;
  position: fixed;
  z-index: 50;
}

#sidebar-wrapper.active {
  right: 250px;
  width: 250px;
  -webkit-transition: all 0.4s ease 0s;
  -moz-transition: all 0.4s ease 0s;
  -ms-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  transition: all 0.4s ease 0s;
}

.toggle {
  margin: 5px 5px 0 0;
}

/* Full Page Image Header Area */

.header {
  display: table;
  height: 100%;
  width: 100%;
  position: relative;
  background: url(../img/i\ \(7\).jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.70); /* Overlay grigio scuro */
  transition: background-color 0.4s ease; /* Transizione fluida */
}

/* Effetto hover */
.header:hover::before {
  background-color: rgba(0, 0, 0, 0.5); /* Overlay grigio più chiaro al passaggio del mouse */
}

/* Assicurati che il contenuto del header sia sopra l'overlay */
.header > * {
  position: relative;
  z-index: 1;
}

/*HEADER CHI SIAMO*/
.headerAbout {
  display: table;
  height: 100%;
  width: 100%;
  position: relative;
  background: url(../img/i\ \(6\).jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.headerAbout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.70); /* Overlay grigio scuro */
  transition: background-color 0.4s ease; /* Transizione fluida */
}

/* Effetto hover */
.headerAbout:hover::before {
  background-color: rgba(0, 0, 0, 0.5); /* Overlay grigio più chiaro al passaggio del mouse */
}

/* Assicurati che il contenuto del header sia sopra l'overlay */
.headerAbout > * {
  position: relative;
  z-index: 1;
}

/*HEADER DOWNLOAD*/
.headerDownload {
  display: table;
  height: 100%;
  width: 100%;
  position: relative;
  background: url(../img/i\ \(4\).jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.headerDownload::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.70); /* Overlay grigio scuro */
  transition: background-color 0.4s ease; /* Transizione fluida */
}

/* Effetto hover */
.headerDownload:hover::before {
  background-color: rgba(0, 0, 0, 0.5); /* Overlay grigio più chiaro al passaggio del mouse */
}

/* Assicurati che il contenuto del header sia sopra l'overlay */
.headerDownload > * {
  position: relative;
  z-index: 1;
}


/*HEADER ASSOCIAZIONI*/
.headerAssociazioni {
  display: table;
  height: 100%;
  width: 100%;
  position: relative;
  background: url(../img/i\ \(9\).jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.headerAssociazioni::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.70); /* Overlay grigio scuro */
  transition: background-color 0.4s ease; /* Transizione fluida */
}

/* Effetto hover */
.headerAssociazioni:hover::before {
  background-color: rgba(0, 0, 0, 0.5); /* Overlay grigio più chiaro al passaggio del mouse */
}

/* Assicurati che il contenuto del header sia sopra l'overlay */
.headerAssociazioni > * {
  position: relative;
  z-index: 1;
}

/* Intro */

.intro {
  padding: 50px 0;
}

/* Services */

.services {
  background: #7fbbda;
  padding: 50px 0;
  color: #ffffff;
}

.service-item {
  margin-bottom: 15px;
}

i.service-icon {
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: inline-block;
  font-size: 56px;
  width: 140px;
  height: 140px;
  line-height: 136px;
  vertical-align: middle; 
  text-align: center;
}

i.service-icon-mini {
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: inline-block;
  font-size: 36px;
  width: 100px;
  height: 100px;
  line-height: 94px;
  vertical-align: middle; 
  text-align: center;
}

/* Callout callout_chi_siamo */

.callout {
  height: 100%;
  width: 100%;
  position: relative;
  color: #ffffff;
  display: table;
  height: 400px;
  width: 100%;
  background: url(../img/i\ \(12\).jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Overlay grigio scuro */
  transition: background-color 0.4s ease; /* Transizione fluida */
}

/* Effetto hover */
.callout:hover::before {
  background-color: rgba(0, 0, 0, 0.6); /* Overlay grigio più chiaro al passaggio del mouse */
}

.callout_chi_siamo {
  height: 100%;
  width: 100%;
  position: relative;
  color: #ffffff;
  display: table;
  height: 400px;
  width: 100%;
  background: url(../img/i\ \(11\).jpg) no-repeat center center fixed; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.callout_chi_siamo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* Overlay grigio scuro */
  transition: background-color 0.4s ease; /* Transizione fluida */
}

/* Effetto hover */
.callout_chi_siamo:hover::before {
  background-color: rgba(0, 0, 0, 0.6); /* Overlay grigio più chiaro al passaggio del mouse */
}

/* Assicurati che il contenuto del header sia sopra l'overlay */
.callout > * {
  position: relative;
  z-index: 1;
}

.callout_chi_siamo > * {
  position: relative;
  z-index: 1;
}

/* Portfolio */

.portfolio {
  padding: 50px 0;
}

.portfolio-item {
  margin-bottom: 25px;
}

.img-portfolio {
  margin: 0 auto;
}


/* Call to Action */

.call-to-action {
  color: #ffffff;
  background: #0a5175;
  padding: 50px 0;
}

.call-to-action .btn {
  margin: 10px;
}

/* Map */

.lastImage {
  height: 500px;
  background: url(../img/i\ \(1\).jpg) no-repeat center center; 
  background-size: cover;
}

/* Footer */

footer {
  padding: 100px 0;
}

.top-scroll {
  margin-top: 50px;
}

.top-scroll a {
  text-decoration: none;
  color: inherit;
}

i.scroll {
  color: #333333;
}

i.scroll:hover {
  color: #0a5175;
}
/* Responsive */

@media (max-width: 768px) {
	
  .header {
	background: url(../img/i\ \(7\)\ mobile.jpg) no-repeat center center scroll; 
  background-size: cover;
  
  }

  .callout {
	background: url(../img/callout.jpg) no-repeat center center scroll; 
  }

  .callout_chi_siamo {
    background: url(../img/callout.jpg) no-repeat center center scroll; 
    }

  .map {
	height: 75%;
  }

  .vert-text h1 {
    padding-top: 0;
    padding-bottom: 30px !important;
    font-size: 3.6em;
    font-weight: 600;
    color:#ffffff
  }

  .vert-text h2 {
    color:#ffffff;
    font-size: 3em;
    font-weight: 500;
  }
  
  .vert-text h3 {
    color:#ffffff;
    font-size: 1.6em;
    font-weight: 500;
  }

}

/*FLIP CARD e LIGHTBOX*/

.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* Stili per il flip card */
.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  border-radius: 15px;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  border-radius: 15px;
}
.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
}
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}
.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Stili per il lightbox */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.flip-card {
  background-color: transparent;
  width: 300px;
  height: 200px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: pointer;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flip-card-back {
  background-color: #2980b9;
  color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 30px;
  cursor: pointer;
  user-select: none;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .flip-card-inner {
      transition: transform 0.6s;
  }
  .flip-card.flipped .flip-card-inner {
      transform: rotateY(180deg);
  }
}