/* GLAM TOURING V161 - resa piu visiva usando SOLO immagini gia presenti - NO HOME */
:root{
  --gt161-ink:#14231f;
  --gt161-muted:#61716b;
  --gt161-line:rgba(20,35,31,.12);
  --gt161-paper:#fffdfa;
  --gt161-soft:#f7f5ef;
  --gt161-glow:rgba(255,255,255,.72);
  --gt161-shadow:0 24px 62px rgba(20,35,31,.11);
}

/* Rimuove eventuali note tecniche lasciate nelle patch precedenti */
.gt-v160-media-note{display:none!important}

/* Immagini ESISTENTI piu grandi, pulite e sempre dentro le card */
.v15-hero-media,
.inner-hero-card,
.v19-visual,
.v16-visual,
.v28-hero,
.v28-article-hero,
.advanced-panel,
.gt-photo-card,
.gto-photo-card,
.gt-zone-card,
.gt-area-card,
.v64-photo-card,
.showcase-card,
.property-card{
  overflow:hidden!important;
}

.v15-hero-media img,
.inner-hero-card img,
.v19-visual img,
.v16-visual img,
.v28-hero>img,
.v28-article-hero>img,
.advanced-panel>img,
.gt-photo-card img,
.gto-photo-card img,
.gt-zone-card img,
.gt-area-card img,
.v64-photo-card img,
.showcase-card img,
.property-card img{
  width:100%!important;
  height:100%!important;
  min-height:260px!important;
  aspect-ratio:16/10!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  transform:translateZ(0);
}

/* Card foto piu professionali */
.inner-hero-card,
.v15-hero-media,
.v19-visual,
.v16-visual,
.gt-photo-card,
.gto-photo-card,
.gt-zone-card,
.gt-area-card,
.v64-photo-card{
  border-radius:28px!important;
  box-shadow:var(--gt161-shadow)!important;
  border:1px solid rgba(255,255,255,.72)!important;
  background:var(--gt161-paper)!important;
}

/* Overlay solo per leggere meglio testi dentro foto, non aggiunge nuove immagini */
.v64-photo-card,
.gt-photo-card,
.gto-photo-card,
.gt-zone-card,
.gt-area-card{
  position:relative!important;
  min-height:320px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-end!important;
  transition:transform .22s ease, box-shadow .22s ease, filter .22s ease!important;
}
.v64-photo-card:hover,
.gt-photo-card:hover,
.gto-photo-card:hover,
.gt-zone-card:hover,
.gt-area-card:hover{
  transform:translateY(-5px)!important;
  box-shadow:0 30px 78px rgba(20,35,31,.16)!important;
}
.v64-photo-card:after,
.gt-photo-card:after,
.gto-photo-card:after,
.gt-zone-card:after,
.gt-area-card:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:55%;
  background:linear-gradient(180deg,rgba(20,35,31,0),rgba(20,35,31,.55));
  pointer-events:none;
  z-index:1;
}
.v64-photo-card>div,
.gt-photo-card>div,
.gto-photo-card>div,
.gt-zone-card>div,
.gt-area-card>div{
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  padding:20px!important;
  color:#fff!important;
  margin-top:auto!important;
}
.v64-photo-card strong,
.gt-photo-card strong,
.gto-photo-card strong,
.gt-zone-card strong,
.gt-area-card strong{
  color:#fff!important;
  line-height:1.18!important;
  text-shadow:0 2px 14px rgba(0,0,0,.3)!important;
}
.v64-eyebrow,
.gt-photo-card span,
.gto-photo-card span,
.gt-zone-card span,
.gt-area-card span{
  color:rgba(255,255,255,.86)!important;
}

/* Hero interne con foto piu equilibrata */
.v28-hero,
.v28-article-hero{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(320px,.82fr)!important;
  gap:clamp(22px,3vw,42px)!important;
  align-items:center!important;
  border-radius:34px!important;
  background:linear-gradient(135deg,#fff 0%,#faf8f2 100%)!important;
  border:1px solid var(--gt161-line)!important;
  box-shadow:0 22px 60px rgba(20,35,31,.08)!important;
  padding:clamp(22px,3vw,42px)!important;
}
.v28-hero>img,
.v28-article-hero>img{
  border-radius:28px!important;
  min-height:360px!important;
  max-height:520px!important;
  box-shadow:var(--gt161-shadow)!important;
}

/* Layout testo + immagine: immagine meno piccola, card piu piena */
.advanced-panel{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(320px,.9fr)!important;
  gap:clamp(22px,3vw,38px)!important;
  align-items:stretch!important;
  border-radius:32px!important;
  background:linear-gradient(135deg,#fff 0%,#fbfaf7 100%)!important;
  box-shadow:0 22px 58px rgba(20,35,31,.075)!important;
}
.advanced-panel>img{
  min-height:340px!important;
  border-radius:26px!important;
}

/* Visual laterali */
.v19-visual,
.v16-visual,
.v15-hero-media,
.inner-hero-card{
  min-height:360px!important;
  position:relative!important;
}
.v19-visual img,
.v16-visual img,
.v15-hero-media img,
.inner-hero-card img{
  min-height:360px!important;
}
.v19-visual-card,
.v16-photo-card,
.v15-media-badge,
.inner-hero-card strong{
  position:absolute!important;
  left:18px!important;
  right:18px!important;
  bottom:18px!important;
  border-radius:20px!important;
  padding:16px 18px!important;
  background:rgba(255,255,255,.86)!important;
  backdrop-filter:blur(10px)!important;
  -webkit-backdrop-filter:blur(10px)!important;
  color:var(--gt161-ink)!important;
  box-shadow:0 14px 36px rgba(20,35,31,.13)!important;
}
.v19-visual-card strong,
.v16-photo-card strong,
.v15-media-badge strong,
.inner-hero-card strong{
  color:var(--gt161-ink)!important;
}
.v19-visual-card span,
.v16-photo-card span,
.v15-media-badge span{
  color:var(--gt161-muted)!important;
}

/* Griglie piu fotografiche, senza nuove foto */
.v64-photo-grid,
.gt-photo-grid,
.gto-photo-grid,
.gt-zone-grid,
.zone-grid,
.cards-grid,
.showcase-grid{
  align-items:stretch!important;
  gap:clamp(16px,2.4vw,26px)!important;
}
.v64-photo-card.large,
.gt-photo-card.large,
.gto-photo-card.large{
  min-height:420px!important;
}
.v64-photo-card.large img,
.gt-photo-card.large img,
.gto-photo-card.large img{
  min-height:420px!important;
}

/* Immagini logo escluse dai ridimensionamenti */
.gt-header-logo-original,
.gt-footer-logo-original,
.gt-footer-logo-v103,
img[src*="logo"],
img[src*="favicon"],
img[src*="GLAM"]{
  min-height:0!important;
  height:auto!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  box-shadow:none!important;
}

/* Piccolo movimento professionale, non invadente */
@media (prefers-reduced-motion:no-preference){
  .v15-hero-media img,
  .inner-hero-card img,
  .v19-visual img,
  .v16-visual img,
  .v64-photo-card img,
  .gt-photo-card img,
  .gto-photo-card img,
  .gt-zone-card img{
    transition:transform .45s ease, filter .45s ease!important;
  }
  .v15-hero-media:hover img,
  .inner-hero-card:hover img,
  .v19-visual:hover img,
  .v16-visual:hover img,
  .v64-photo-card:hover img,
  .gt-photo-card:hover img,
  .gto-photo-card:hover img,
  .gt-zone-card:hover img{
    transform:scale(1.035)!important;
    filter:saturate(1.04) contrast(1.02)!important;
  }
}

@media(max-width:980px){
  .v28-hero,
  .v28-article-hero,
  .advanced-panel{
    grid-template-columns:1fr!important;
  }
  .v28-hero>img,
  .v28-article-hero>img,
  .advanced-panel>img,
  .v19-visual,
  .v16-visual,
  .v15-hero-media,
  .inner-hero-card,
  .v19-visual img,
  .v16-visual img,
  .v15-hero-media img,
  .inner-hero-card img{
    min-height:300px!important;
  }
  .v64-photo-card,
  .gt-photo-card,
  .gto-photo-card,
  .gt-zone-card,
  .gt-area-card{min-height:300px!important}
}
@media(max-width:620px){
  .v28-hero,
  .v28-article-hero{border-radius:24px!important;padding:18px!important}
  .advanced-panel{border-radius:24px!important;padding:18px!important}
  .v28-hero>img,
  .v28-article-hero>img,
  .advanced-panel>img,
  .v19-visual,
  .v16-visual,
  .v15-hero-media,
  .inner-hero-card,
  .v19-visual img,
  .v16-visual img,
  .v15-hero-media img,
  .inner-hero-card img{
    min-height:235px!important;
  }
  .v64-photo-card,
  .gt-photo-card,
  .gto-photo-card,
  .gt-zone-card,
  .gt-area-card{min-height:245px!important;border-radius:22px!important}
  .v64-photo-card img,
  .gt-photo-card img,
  .gto-photo-card img,
  .gt-zone-card img,
  .gt-area-card img{min-height:245px!important;aspect-ratio:4/3!important}
  .v19-visual-card,
  .v16-photo-card,
  .v15-media-badge,
  .inner-hero-card strong{left:12px!important;right:12px!important;bottom:12px!important;padding:13px 14px!important;border-radius:16px!important}
}
