/* GLAM V298 · GALLERY A CARD + SEZIONI CHIARE */

/* ---------------------------------------------------------
   GALLERY: vere card, immagine sopra e testo sotto
   --------------------------------------------------------- */
.gt297-gallery{
  background:#f7f2e8 !important;
}

.gt297-gallery-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-auto-rows:auto !important;
  align-items:stretch !important;
  gap:18px !important;
}

.gt297-gallery-item,
.gt297-gallery-item.is-wide,
.gt297-gallery-item.is-tall{
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  grid-column:span 1 !important;
  grid-row:span 1 !important;
  min-height:330px !important;
  height:auto !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid rgba(23,38,29,.10) !important;
  border-radius:21px !important;
  background:#fff !important;
  text-align:left !important;
  box-shadow:0 15px 38px rgba(23,38,29,.08) !important;
  transition:transform .22s ease,box-shadow .22s ease !important;
}

.gt297-gallery-item:hover{
  transform:translateY(-4px) !important;
  box-shadow:0 23px 50px rgba(23,38,29,.14) !important;
}

.gt297-gallery-item::after{
  content:none !important;
  display:none !important;
}

.gt297-gallery-item img{
  position:relative !important;
  width:100% !important;
  height:235px !important;
  flex:0 0 235px !important;
  object-fit:cover !important;
  border-radius:0 !important;
  transform:none !important;
}

.gt297-gallery-item:hover img{
  transform:none !important;
  filter:saturate(1.04) !important;
}

.gt297-gallery-caption{
  position:static !important;
  display:flex !important;
  flex:1 1 auto !important;
  flex-direction:column !important;
  justify-content:center !important;
  inset:auto !important;
  min-height:95px !important;
  padding:18px 19px 20px !important;
  background:#fff !important;
  color:#17261d !important;
  text-align:left !important;
}

.gt297-gallery-caption small{
  display:block !important;
  margin:0 0 8px !important;
  color:#b98942 !important;
  -webkit-text-fill-color:#b98942 !important;
  font-size:.62rem !important;
  font-weight:950 !important;
  letter-spacing:.13em !important;
  text-transform:uppercase !important;
}

.gt297-gallery-caption strong{
  display:block !important;
  color:#214530 !important;
  -webkit-text-fill-color:#214530 !important;
  font-size:1.03rem !important;
  line-height:1.2 !important;
}

.gt297-gallery-toolbar button{
  border-radius:12px !important;
  background:#fff !important;
  color:#214530 !important;
  -webkit-text-fill-color:#214530 !important;
  border:1px solid rgba(33,69,48,.14) !important;
  box-shadow:none !important;
}

.gt297-gallery-toolbar button.is-active{
  background:#f1e4ce !important;
  color:#214530 !important;
  -webkit-text-fill-color:#214530 !important;
  border-color:#d6b57d !important;
}

/* ---------------------------------------------------------
   VIA I BANNER VERDI: sezioni chiare e leggibili
   --------------------------------------------------------- */
.gt297-pizzica{
  background:#fff !important;
  color:#17261d !important;
  border-top:1px solid rgba(33,69,48,.08);
  border-bottom:1px solid rgba(33,69,48,.08);
}

.gt297-pizzica .gt297-kicker{
  color:#b98942 !important;
  -webkit-text-fill-color:#b98942 !important;
}

.gt297-pizzica-copy h2{
  color:#17261d !important;
  -webkit-text-fill-color:#17261d !important;
}

.gt297-pizzica-copy p{
  color:#56635a !important;
  -webkit-text-fill-color:#56635a !important;
}

.gt297-pizzica-copy a{
  background:#f7f1e5 !important;
  color:#214530 !important;
  -webkit-text-fill-color:#214530 !important;
  border:1px solid rgba(33,69,48,.14) !important;
  box-shadow:none !important;
}

.gt297-final{
  background:linear-gradient(135deg,#fff9ee 0%,#ffffff 58%,#edf4ed 100%) !important;
  color:#17261d !important;
  border-top:1px solid rgba(33,69,48,.08);
}

.gt297-final .gt297-kicker{
  color:#b98942 !important;
  -webkit-text-fill-color:#b98942 !important;
}

.gt297-final h2{
  color:#17261d !important;
  -webkit-text-fill-color:#17261d !important;
}

.gt297-final p{
  color:#58655c !important;
  -webkit-text-fill-color:#58655c !important;
}

.gt297-final-actions a,
.gt297-final-actions a.alt{
  background:#fff !important;
  color:#214530 !important;
  -webkit-text-fill-color:#214530 !important;
  border:1px solid rgba(33,69,48,.16) !important;
  box-shadow:0 10px 28px rgba(23,38,29,.07) !important;
}

.gt297-final-actions a:first-child{
  background:#f1e4ce !important;
  border-color:#d6b57d !important;
}

/* Elimina eventuali forzature cromatiche precedenti */
.gt297-pizzica *,
.gt297-final *{
  -webkit-text-fill-color:currentColor;
}

@media(max-width:980px){
  .gt297-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:680px){
  .gt297-gallery-grid{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .gt297-gallery-item,
  .gt297-gallery-item.is-wide,
  .gt297-gallery-item.is-tall{
    min-height:0 !important;
  }

  .gt297-gallery-item img{
    height:245px !important;
    flex-basis:245px !important;
  }

  .gt297-gallery-caption{
    min-height:88px !important;
    padding:16px 17px 18px !important;
  }

  .gt297-final-actions{
    width:100%;
  }

  .gt297-final-actions a{
    width:100%;
    box-sizing:border-box;
  }
}