/* Trofeo Lodigiani V1.6.9 — Roman Slat Reveal
 * Architectural Slat Reveal adapted from ALMArreda V13.
 * Moves only a photographic CSS curtain in 8 alternating strips.
 * Video -> three genuine photos, preserving all original faces and pixels.
 * All other theme/photo choices, mobile-specific video and hero layout remain.
 */
.hero-v10 .v12-hero-photo .v168-slats{
  position:absolute;inset:0;z-index:4;visibility:hidden;pointer-events:none;
  overflow:hidden;isolation:isolate;
  --v168-last-frame:url('./media/hero-slat-last-d.webp');
}
.hero-v10 .v12-hero-photo .v168-slat{
  position:absolute;inset:0;display:block;
  background-image:var(--v169-curtain-image,var(--v168-last-frame));background-size:cover;
  background-position:var(--v169-curtain-position,60% 45%);background-repeat:no-repeat;
  transform:translate3d(0,0,0);backface-visibility:hidden;
  will-change:transform;
}
.hero-v10 .v12-hero-photo .v168-slats.v168-active{visibility:visible}
.hero-v10 .v12-hero-photo .v168-slats.v168-active .v168-slat{
  animation:v168-slat-out 890ms cubic-bezier(.76,0,.24,1) both;
  animation-delay:calc(var(--v168-i)*48ms);
}
.hero-v10 .v12-hero-photo .v168-slats.v168-complete{visibility:hidden}
@keyframes v168-slat-out{
  0%{transform:translate3d(0,0,0);filter:brightness(1)}
  14%{filter:brightness(1.035)}
  100%{transform:translate3d(0,var(--v168-dy),0);filter:brightness(1)}
}
.hero-v10 .v12-hero-photo .v168-slats::after{
  content:'';position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(103deg,transparent 0%,transparent 39%,
    color-mix(in srgb,var(--v12-accent) 50%,white) 49.8%,transparent 51.4%,transparent 100%);
  opacity:0;transform:translateX(-55%);
}
.hero-v10 .v12-hero-photo .v168-slats.v168-active::after{
  animation:v168-gold-light 790ms ease-out 170ms both;
}
@keyframes v168-gold-light{
  0%{opacity:0;transform:translateX(-58%)}
  35%{opacity:.22}
  100%{opacity:0;transform:translateX(64%)}
}
/* Optional replay. Uses native SVG icon so iOS never recolors it blue. */
.hero-v10 .v168-replay{
  position:absolute;right:20px;bottom:39px;z-index:9;
  display:inline-flex;align-items:center;gap:8px;
  min-height:35px;padding:6px 11px;cursor:pointer;
  border:1px solid color-mix(in srgb,var(--v12-accent) 63%,transparent);
  background:color-mix(in srgb,var(--v12-stage) 76%,transparent);
  color:var(--v12-accent);border-radius:30px;
  font:600 9px/1.2 var(--font-ui,system-ui);letter-spacing:.12em;
  text-transform:uppercase;-webkit-appearance:none;appearance:none;
  -webkit-tap-highlight-color:transparent;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  transition:background .2s,border-color .2s,color .2s,transform .2s;
}
.hero-v10 .v168-replay svg{width:15px;height:15px;flex:none}
.hero-v10 .v168-replay:hover,.hero-v10 .v168-replay:focus-visible{
  background:var(--v12-stage);border-color:var(--v12-accent);transform:translateY(-2px)
}
.hero-v10 .v168-replay:focus-visible{outline:2px solid var(--v12-accent);outline-offset:3px}
html:not([data-photo="video"]) .hero-v10 .v168-replay{display:none}
@media(max-width:760px){
 .hero-v10 .v12-hero-photo .v168-slats{--v168-last-frame:url('./media/hero-slat-last-m.webp')}
 .hero-v10 .v12-hero-photo .v168-slat{background-position:var(--v169-curtain-position,50% 40%)}
 .hero-v10 .v168-replay{bottom:auto;top:clamp(165px,43vw,285px);right:14px;
   padding:7px 10px;background:rgba(10,19,35,.70);color:#e9c48a;border-color:rgba(233,196,138,.65)}
 .hero-v10 .v168-replay span{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 .hero-v10 .v12-hero-photo .v168-slats{display:none!important}
 .hero-v10 .v168-replay{transition:none!important}
}

/* V169: photos are 1:1 copies of customer JPEGs (NO AI or face edits).
   Override previous photo-zoom animation so strips align with the untouched image. */
.hero-v10 .v12-hero-photo.v16-done .v16-hero-end{
  animation:none!important;transform:none!important;filter:none!important;
}
/* No excessive golden veil over faces. Gold only highlights panel edges. */
.hero-v10 .v12-hero-photo .v168-slats.v168-active::after{opacity:0}
@media (prefers-reduced-motion:reduce){
  .hero-v10 .v12-hero-photo.v16-done .v16-hero-end{transform:none!important}
}

/* V170 PHOTO ONLY — enforce original pixel fidelity and reveal edge styling. */
.hero-v10 .v12-hero-photo.v16-done .v16-hero-end{
  opacity:1!important;animation:none!important;transform:none!important;filter:none!important;
  background-image:url('./media/hero-originale-premiazione-verticale.jpeg');
}
.hero-v10 .v12-hero-photo .v168-slat{filter:none!important;}
.hero-v10 .v12-hero-photo .v168-slats.v168-active .v168-slat{
  animation-name:v170-slat-out!important;
  animation-duration:930ms!important;
  animation-timing-function:cubic-bezier(.76,0,.24,1)!important;
  animation-fill-mode:both!important;
  animation-delay:calc(var(--v168-i)*50ms)!important;
}
@keyframes v170-slat-out {
  from {transform:translate3d(0,0,0)}
  to {transform:translate3d(0,var(--v168-dy),0)}
}
/* Keep the gold strictly in thin panel edges, never over faces. */
.hero-v10 .v12-hero-photo .v168-slats.v168-active::after{
  content:'';animation:v168-gold-light 760ms ease-out 130ms both;
  opacity:.12;mix-blend-mode:screen;
}
.hero-v10 .v168-replay{display:inline-flex!important}
@media(max-width:760px){
  .hero-v10 .v168-replay{top:125px;bottom:auto;right:12px}
}
@media(prefers-reduced-motion:reduce){
  .hero-v10 .v12-hero-photo .v168-slats{display:none!important}
}
/* Photo fallback if JavaScript is delayed or disabled. */
html[data-photo="video"] .hero-v10 .v12-hero-photo{
  background-image:url('./media/hero-originale-premiazione-verticale.jpeg');
  background-position:50% 48%;
  background-size:cover;
}
