/* ----------------------------------------------------------------
	Custom CSS

	Add all your Custom Styled CSS here for New Styles or
	Overwriting Default Theme Styles for Better Handling Updates
-----------------------------------------------------------------*/
.social-icon.si-small {
  --cnvs-socialicon-size: 2.5rem;
  --cnvs-socialicon-fontsize: 0.875rem;
}
.is-expanded-menu #header.transparent-header {
  --cnvs-header-bg: #fff;
}
.menu-link {
  color: #212529;
  font-weight: bold;
}
/* Container principale */
.portfolio.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
}

/* Ogni item */
.portfolio-item {
  flex: 1 1 calc(33.333% - 20px); /* 3 colonne su desktop */
  max-width: 100%;
  box-sizing: border-box;
}

/* Struttura interna */
.grid-inner {
  overflow: hidden;
  border-radius: 8px;
}

/* Immagine */
.portfolio-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: transform 0.4s ease;
  margin: 5px; 
  background-color: #fff;
}

/* Effetto hover */
.portfolio-image img:hover {
  transform: scale(1.05);
}
.swiper,
.swiper-wrapper,
.swiper-slide {
  height: 100vh;
}

.swiper-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center center !important;
}

.slider-caption-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 5;
  width: 100%;
  padding: 0 15px;
}


/* Responsive tablet */
/*@media (max-width: 991px) {
  .portfolio-item {
    flex: 1 1 calc(50% - 20px); /* 2 colonne 
    max-width: calc(50% - 20px);
  }
}*/

@media (max-width: 575px) {
  .social_mobile_menu {
    display: none;
  }
  .portfolio-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .portfolio-image img {
    height: 220px;
  }
}
