.header-section-2 {
  position: relative;
  z-index: 150;
}



/* Logo switch on sticky */
#header-sticky .logo-sticky {
  display: none;
}
#header-sticky.sticky .logo-default {
  display: none;
}
#header-sticky.sticky .logo-sticky {
  display: inline-block;
}

.service-card.style1 .shape1 {
  position: absolute;
  top: 20px;
  left: 2px;
  z-index: 1;
  transition: opacity 0.4s, visibility 0.4s;
  -webkit-transition: opacity 0.4s, visibility 0.4s;
}
.service-card.style1 .shape2 {
  position: absolute;
  top: 20px;
  left: 2px;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  -webkit-transition: opacity 0.4s, visibility 0.4s;
}
@media (min-width: 1025px) {
  .service-card.style1 .shape1,
  .service-card.style1 .shape2 {
    left: calc(50% - 185px);
  }

}

/* 22.Intro */
.intro-wrapper.style1 {
  position: relative;
  padding: 290px 0;
  z-index: 9;
}


.intro-wrapper.style1 .shape {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
@media (max-width: 1899px) {
  .intro-wrapper.style1 .shape {
    display: none;
  }
}


.intro-wrapper.style1 .gt-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  animation: none !important;
  transform: none !important;
  filter: none;
  opacity: 1;
  background-color: #1a1a1a;
  background-image: url('../images/bg/hero_pecorella.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.intro-wrapper.style1 .gt-hero-bg::before {
  display: block;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}
.intro-wrapper.style1 .gt-hero-bg::after {
  display: none;
  content: none;
  background: transparent;
}
@media (max-width: 991px) {
  .intro-wrapper.style1 {
    padding: 100px 0 80px;
  }
}

.intro-content-wrapper.style1 {
  position: relative;
  z-index: 9;
}


.intro-wrapper.style1 .intro-content-wrapper {
   
    align-items: baseline !important;
    
}

/* Fix for off-format photos in lavori and cava */
.project-card.style4 .project-thumb img,
.gallery-card.style3 .gallery-thumb img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

/* Fix immagini pagine dettaglio (pavimenti, bagni, ecc.) */
.project-details-wrapper .project-details-items .details-image img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  object-position: center;
}

/* === Works grid (bagni/pavimenti/cucine/scale/rivestimenti) === */
.works-grid {
  column-count: 3;
  column-gap: 14px;
}
.works-grid .works-item {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 4px;
  background: #f1f1f1;
  cursor: pointer;
}
.works-grid .works-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .6s ease;
}
/* Sfalsato: aspect-ratio variabile in base alla posizione (effetto masonry come galleria).
   Ciclo di 7 (numero primo): evita che sezioni con foto multiple di 5 (es. bagni con 15)
   allineino le colonne facendo sparire l'effetto masonry. */
.works-grid .works-item:nth-child(7n+1) img { aspect-ratio: 3 / 4; }
.works-grid .works-item:nth-child(7n+2) img { aspect-ratio: 4 / 3; }
.works-grid .works-item:nth-child(7n+3) img { aspect-ratio: 3 / 2; }
.works-grid .works-item:nth-child(7n+4) img { aspect-ratio: 1 / 1; }
.works-grid .works-item:nth-child(7n+5) img { aspect-ratio: 4 / 5; }
.works-grid .works-item:nth-child(7n+6) img { aspect-ratio: 5 / 4; }
.works-grid .works-item:nth-child(7n+7) img { aspect-ratio: 2 / 3; }
.works-grid .works-item:hover img { transform: scale(1.04); }
.works-grid .works-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43, 30, 22, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .4s ease;
}
.works-grid .works-item:hover .works-overlay { background: rgba(43, 30, 22, .45); }
.works-grid .works-icon {
  opacity: 0;
  transform: scale(.7);
  transition: opacity .4s ease, transform .4s ease;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2B1E16;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}
.works-grid .works-item:hover .works-icon { opacity: 1; transform: scale(1); }
@media (max-width: 1199px) { .works-grid { column-count: 3; } }
@media (max-width: 991px)  { .works-grid { column-count: 2; } }
@media (max-width: 575px)  { .works-grid { column-count: 1; } }

/* Modale lavoro (foto + testo) */
.work-modal {
  position: relative;
  background: #fff;
  max-width: 960px;
  margin: 40px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
}
.work-modal .work-modal-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
}
.work-modal .work-modal-body {
  padding: 28px 36px 34px;
}
.work-modal .work-modal-body h3 {
  margin: 0 0 14px;
  font-size: 22px;
  color: #2B1E16;
}
.work-modal .work-modal-body p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: #555;
}
@media (max-width: 600px) {
  .work-modal .work-modal-body { padding: 20px; }
  .work-modal .work-modal-body h3 { font-size: 19px; }
  .work-modal .work-modal-body p { font-size: 15px; }
}
