/* 3S ARCH — Animazioni leggere, locali e accessibili (versione 1).
   Solo CSS e JavaScript sul server dello studio: nessun cookie o servizio esterno. */

/* Home: ingresso della fotografia, titolo e invito alla navigazione. */
.hero{overflow:hidden}
.hero::before{transform-origin:center center;animation:arch-hero-photo 2.4s cubic-bezier(.18,.65,.25,1) both}
@keyframes arch-hero-photo{from{transform:scale(1.075)}to{transform:scale(1)}}
@keyframes arch-hero-copy{from{opacity:0;transform:translateY(17px)}to{opacity:1;transform:translateY(0)}}
.hero .hero-content .eyebrow{animation:arch-hero-copy .7s ease-out .12s both}
.hero .hero-content h1{animation:arch-hero-copy .85s ease-out .23s both}
.hero .hero-content .intro{animation:arch-hero-copy .8s ease-out .43s both}
.hero .hero-content .cta{animation:arch-hero-copy .8s ease-out .60s both}

/* Entrata allo scorrimento: viene attivata da motion.js SOLO con JS e
   IntersectionObserver disponibili. Senza JS il contenuto resta sempre visibile. */
html.arch-motion-enabled .arch-reveal{
  opacity:0;
  transform:translate3d(0,22px,0);
  transition:opacity .72s cubic-bezier(.19,.62,.27,1),
             transform .72s cubic-bezier(.19,.62,.27,1);
  transition-delay:var(--arch-delay,0ms);
}
html.arch-motion-enabled .arch-reveal.arch-visible{
  opacity:1;
  transform:translate3d(0,0,0);
}

/* Micro-interazioni per immagini e cards: nessun salto del layout. */
.project .picture,.project-card .picture{position:relative;overflow:hidden}
.project .picture::after,.project-card .picture::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to top,rgba(16,25,27,.21),transparent 56%);
  opacity:0;transition:opacity .5s ease;
}
.project .picture img,.project-card .picture img{
  transition:transform .65s cubic-bezier(.2,.7,.2,1);
}
.project:hover .picture img,.project:focus-visible .picture img,
.project-card:hover .picture img,.project-card:focus-visible .picture img{
  transform:scale(1.055);
}
.project:hover .picture::after,.project:focus-visible .picture::after,
.project-card:hover .picture::after,.project-card:focus-visible .picture::after{opacity:1}
.project h3,.project-card h3{transition:color .25s ease}
.project:hover h3,.project-card:hover h3{color:#d82e35}

/* Gallery: sottolinea l'azione d'ingrandimento senza interferire con lightbox. */
.gallery-grid figure{overflow:hidden}
.gallery-grid img{transition:transform .55s cubic-bezier(.2,.7,.2,1),filter .4s ease}
.gallery-grid a:hover img,.gallery-grid a:focus-visible img{transform:scale(1.027);filter:brightness(.94)}

/* Link, pulsanti e filtri: segnali discreti e coerenti con il colore dello studio. */
.cta span{display:inline-block;transition:transform .3s ease}
.cta:hover span,.cta:focus-visible span{transform:translateX(6px)}
.btn-link,.action,.filter,.service-card,.service{transition:background-color .25s ease,border-color .25s ease,color .25s ease}
.btn-link:hover,.btn-link:focus-visible{background:rgba(225,55,55,.07);border-color:#e13737}
.filter:hover:not(.active),.filter:focus-visible:not(.active){border-color:#e13737;color:#c22d32;background:#fffafa}
.service-card:hover h3,.service-card:focus-visible h3,.service:hover h3{color:#d82e35}
.service-card h3,.service h3{transition:color .25s ease}

/* Accessibilità: niente movimenti non richiesti se l'utente li disattiva. */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto !important}
  .hero::before,.hero .hero-content .eyebrow,.hero .hero-content h1,
  .hero .hero-content .intro,.hero .hero-content .cta{animation:none !important}
  html.arch-motion-enabled .arch-reveal{opacity:1 !important;transform:none !important;transition:none !important}
  .project .picture img,.project-card .picture img,.gallery-grid img,
  .project .picture::after,.project-card .picture::after,
  .cta span,.project h3,.project-card h3,.service-card h3,.service h3,
  .btn-link,.action,.filter,.service-card,.service{transition:none !important}
  .project:hover .picture img,.project-card:hover .picture img,
  .gallery-grid a:hover img{transform:none !important;filter:none !important}
}
@media print{
  html.arch-motion-enabled .arch-reveal{opacity:1 !important;transform:none !important;transition:none !important}
  .hero::before,.hero .hero-content *{animation:none !important}
}
