/* =========================================================
   BITERS V2 / WOW REVIEW
   A premium motion + interaction layer. Structure preserved.
   ========================================================= */
:root {
  --wow-gold: #d2b87a;
  --wow-blue: #08294e;
  --wow-ink: #04182f;
  --wow-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
html {
  scroll-padding-top: 96px;
}
body {
  isolation: isolate;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* navigation: same layout, more premium when scrolling */
.nav {
  padding-top: 0;
  transition:
    padding 0.35s var(--wow-ease),
    background 0.35s,
    box-shadow 0.35s;
}
.nav .navin {
  transition:
    height 0.35s var(--wow-ease),
    background 0.35s,
    border-color 0.35s,
    box-shadow 0.35s,
    padding 0.35s,
    border-radius 0.35s;
}
.nav.scrolled {
  background: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  padding-top: 8px;
}
.nav.scrolled .navin {
  height: 68px;
  padding-inline: 18px;
  border: 1px solid rgba(8, 41, 78, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 12px 30px rgba(4, 24, 47, 0.085),
    0 3px 10px rgba(4, 24, 47, 0.035);
  backdrop-filter: blur(22px) saturate(1.22);
  -webkit-backdrop-filter: blur(22px) saturate(1.22);
}
.brand {
  transition:
    transform 0.35s var(--wow-ease),
    filter 0.35s;
}
.brand:hover {
  transform: translateY(-1px) scale(1.015);
  filter: drop-shadow(0 10px 18px rgba(8, 41, 78, 0.08));
}
.menu a {
  transition:
    color 0.25s,
    transform 0.25s;
}
.menu a:hover {
  transform: translateY(-1px);
}

/* buttons: restrained light sweep */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.3) 43%,
    transparent 64%
  );
  transform: translateX(-125%);
  transition: transform 0.7s var(--wow-ease);
}
.btn:hover:before {
  transform: translateX(125%);
}
.btn-gold {
  box-shadow:
    0 14px 34px rgba(166, 142, 93, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-gold:hover {
  box-shadow: 0 20px 44px rgba(166, 142, 93, 0.3);
}

/* tiny brand signal on kickers */
.kicker:before {
  box-shadow: 0 0 0 rgba(166, 142, 93, 0);
  transition:
    width 0.45s var(--wow-ease),
    box-shadow 0.45s;
}
.reveal.visible .kicker:before,
.reveal.in .kicker:before,
.kicker:hover:before {
  width: 42px;
  box-shadow: 0 0 18px rgba(166, 142, 93, 0.25);
}

/* interactive card illumination — no layout changes */
.wowSurface {
  position: relative;
}
.wowGlow {
  position: absolute;
  inset: -1px;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    280px circle at var(--gx, 50%) var(--gy, 50%),
    rgba(210, 184, 122, 0.18),
    rgba(210, 184, 122, 0.05) 28%,
    transparent 68%
  );
  mix-blend-mode: screen;
  transition: opacity 0.28s ease;
}
.wowSurface:hover > .wowGlow {
  opacity: 1;
}

/* route transition: only during local navigation */
.wowRoute {
  position: fixed;
  inset: 0;
  z-index: 30000;
  pointer-events: none;
  background: linear-gradient(135deg, #04182f, #08294e 68%, #0c355f);
  transform: translateY(102%);
  transition: transform 0.48s var(--wow-ease);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.wowRoute:before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(210, 184, 122, 0.32) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 72%);
  opacity: 0.45;
}
.wowRoute.show {
  transform: translateY(0);
}
.wowRouteInner {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 20px;
}
.wowRouteInner img {
  width: 190px;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.wowRouteLine {
  width: 168px;
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}
.wowRouteLine i {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  transform: translateX(-110%);
  animation: wowRouteLoad 0.8s var(--wow-ease) infinite;
}
@keyframes wowRouteLoad {
  to {
    transform: translateX(270%);
  }
}

/* major dark surfaces get a controlled depth */
.case,
.featureCase,
.manifestoBox,
.joinBox,
.finalBox,
.editorialBox,
.contactStrip,
.aiLab,
.origin {
  --wow-sheen-x: 70%;
}
.case:before,
.featureCase:before {
  transition:
    opacity 0.45s ease,
    filter 0.45s ease;
}
.case:hover,
.featureCase:hover {
  filter: saturate(1.045);
}

/* footer */
footer {
  position: relative;
  overflow: hidden;
}
footer:before {
  content: '';
  position: absolute;
  right: -160px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(210, 184, 122, 0.09), transparent 67%);
  pointer-events: none;
}
.footGrid,
.footBottom {
  position: relative;
  z-index: 1;
}
/* Link delle colonne del footer uno per riga su tutte le pagine: home.css, services.css,
   projects.css e project-detail.css non mettevano display: block e li affiancavano. Nei footer
   che li separano già con <br> l'a capo non serve più. */
.footCol > a {
  display: block;
}
.footCol > a + br {
  display: none;
}

/* page ambient progress */
.scroll-progress {
  height: 3px !important;
  box-shadow: 0 0 24px rgba(210, 184, 122, 0.55) !important;
}

/* mobile / touch: keep the visual identity, remove expensive interaction */
@media (max-width: 1050px) {
  .nav.scrolled {
    padding-top: 5px;
  }
  .nav.scrolled .navin {
    height: 64px;
    border-radius: 22px;
    padding-inline: 14px;
  }
}
@media (max-width: 720px) {
  .nav.scrolled {
    padding-top: 4px;
  }
  .nav.scrolled .navin {
    height: 62px;
    border-radius: 18px;
  }
  .wowGlow {
    display: none;
  }
  .btn:before {
    display: none;
  }
}
@media (hover: none), (pointer: coarse) {
  .wowGlow {
    display: none;
  }
  .brand:hover,
  .menu a:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wowRoute {
    display: none !important;
  }
  .btn:before {
    display: none;
  }
}
