/* ETIC v4.119 — Projects image/readability recovery
   Purpose: restore hero photography hidden by v4.116 and guarantee readable text on project bands/cards.
   No content or image asset is replaced. */

/* 1) HERO RECOVERY: v4.116 accidentally replaced the photographic pseudo-element with a gradient. */
.v4116-projects .hero.small{
  position:relative!important;
  overflow:hidden!important;
  isolation:isolate!important;
  background:#061a38!important;
}
.v4116-projects .hero.small::before{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  display:block!important;
  background-image:var(--hero)!important;
  background-repeat:no-repeat!important;
  background-size:cover!important;
  background-position:center center!important;
  opacity:1!important;
  filter:brightness(1.06) contrast(1.025) saturate(1.02)!important;
  transform:none!important;
}
.v4116-projects .hero.small::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  z-index:0!important;
  display:block!important;
  background:
    linear-gradient(0deg,rgba(3,19,43,.66) 0%,rgba(3,19,43,.24) 28%,rgba(3,19,43,0) 56%),
    linear-gradient(90deg,rgba(3,19,43,.20) 0%,rgba(3,19,43,.07) 34%,rgba(3,19,43,0) 58%)!important;
  pointer-events:none!important;
}
.v4116-projects .hero.small .content{
  position:relative!important;
  z-index:2!important;
  color:#fff!important;
}
.v4116-projects .hero.small .content h1,
.v4116-projects .hero.small .content p,
.v4116-projects .hero.small .content .kicker,
.v4116-projects .hero.small .content .eyebrow{
  color:#fff!important;
}
.v4116-projects .hero.small .content .kicker,
.v4116-projects .hero.small .content .eyebrow{color:#67ddff!important}
.v4116-projects .hero.small .content h1{text-shadow:0 2px 14px rgba(0,0,0,.64)!important}
.v4116-projects .hero.small .content p{text-shadow:0 2px 10px rgba(0,0,0,.68)!important}

/* Project-specific framing retained but with image visible. */
.project-senaf .hero.small::before{background-position:center 43%!important;filter:brightness(1.12) contrast(1.025) saturate(1.02)!important}
.project-salesiani .hero.small::before{background-position:center 45%!important}
.project-ordine-psicologi .hero.small::before{background-position:center 48%!important}
.project-confartigianato .hero.small::before{background-position:center 48%!important}
.project-fav .hero.small::before{background-position:center 45%!important}
.project-coesia .hero.small::before{background-position:center 48%!important}
.project-3f-filippi .hero.small::before{background-position:center 48%!important}
.project-bignami .hero.small::before{background-position:center 48%!important}
.project-evo .hero.small::before{background-position:center 48%!important}
.project-movimat .hero.small::before{background-position:center 48%!important}
.project-keynes .hero.small::before{background-position:center 45%!important}
.project-panzini .hero.small::before{background-position:center 45%!important}

/* 2) ALL REAL PROJECT PHOTOS: explicit visibility safeguard. */
.v4116-projects img,
.projects-index-polish img{
  opacity:1!important;
  visibility:visible!important;
}
.v4116-projects .gallery-slide img{
  display:block!important;
  width:100%!important;
  height:clamp(390px,58vw,720px)!important;
  object-fit:cover!important;
  object-position:center center!important;
  filter:none!important;
}

/* 3) READABILITY: dark glass cards on blue bands, white copy throughout. */
.v4116-projects .section.v450-band-electric .card,
.v4116-projects .section.v450-band-deep .card,
.v4116-projects .section.gray.v450-band-deep .card{
  background:rgba(4,31,58,.50)!important;
  color:#fff!important;
  border:1px solid rgba(116,221,255,.46)!important;
  box-shadow:0 14px 34px rgba(0,18,39,.16)!important;
  backdrop-filter:blur(3px)!important;
}
.v4116-projects .section.v450-band-electric .card h3,
.v4116-projects .section.v450-band-electric .card p,
.v4116-projects .section.v450-band-electric .card li,
.v4116-projects .section.v450-band-deep .card h3,
.v4116-projects .section.v450-band-deep .card p,
.v4116-projects .section.v450-band-deep .card li,
.v4116-projects .section.gray.v450-band-deep .card h3,
.v4116-projects .section.gray.v450-band-deep .card p,
.v4116-projects .section.gray.v450-band-deep .card li{
  color:#fff!important;
  opacity:1!important;
}
.v4116-projects .section.v450-band-electric .lead,
.v4116-projects .section.v450-band-deep .lead,
.v4116-projects .section.gray.v450-band-deep .lead,
.v4116-projects .section.v450-band-electric .callout,
.v4116-projects .section.v450-band-deep .callout,
.v4116-projects .section.gray.v450-band-deep .callout{
  color:#fff!important;
  opacity:1!important;
}
.v4116-projects .section .badge,
.v4116-projects .section .eyebrow{color:#72e2ff!important}

/* Gallery captions and controls remain readable over any photograph. */
.v4116-projects .gallery-slide figcaption{
  color:#fff!important;
  background:rgba(3,23,52,.78)!important;
  border:1px solid rgba(255,255,255,.16)!important;
  text-shadow:0 1px 3px rgba(0,0,0,.45)!important;
}
.v4116-projects .gallery-arrow{
  opacity:1!important;
  visibility:visible!important;
  z-index:6!important;
}
.v4116-projects .gallery-dots{position:relative!important;z-index:6!important}
.v4116-projects .gallery-dots button{background:rgba(255,255,255,.52)!important}
.v4116-projects .gallery-dots button.active{background:#fff!important}

/* Progetti index: cards/photos and copy always visible. */
.projects-index-polish .projectgrid .project img{
  display:block!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
}
.projects-index-polish .projectgrid .project .txt{z-index:3!important}
.projects-index-polish .projectgrid .project small,
.projects-index-polish .projectgrid .project h3,
.projects-index-polish .projectgrid .project span{opacity:1!important;visibility:visible!important}

@media(max-width:640px){
  .v4116-projects .hero.small::after{
    background:linear-gradient(0deg,rgba(3,19,43,.76) 0%,rgba(3,19,43,.30) 35%,rgba(3,19,43,0) 66%)!important;
  }
  .v4116-projects .gallery-slide img{height:360px!important}
}
