/* =========================================================
   A.R.L. Worklam — static site
   ========================================================= */

@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("../fonts/inter-tight.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
}

:root {
  --bg: #08080a;
  --bg-2: #0f0f12;
  --bg-3: #16161a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f7;
  --muted: #8e8e95;
  --dim: #5c5c63;
  --accent: #1ca34a;          /* verde del marchio ARL */
  --accent-soft: rgba(28, 163, 74, 0.14);

  --font: "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--accent); color: #000; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--text); color: #000; padding: 10px 16px; border-radius: 999px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.display {
  font-size: clamp(44px, 8vw, 124px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 250;
}
.h2 {
  font-size: clamp(36px, 5.6vw, 84px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 250;
}
.h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 350;
}
.lead {
  font-size: clamp(19px, 1.6vw, 24px);
  line-height: 1.45;
  color: var(--muted);
  letter-spacing: -0.01em;
}
/* ---------- Effetto acciaio: lettere "tagliate nella lamiera" ----------
   1. fascia di riflesso mobile (--sheen, aggiornata da JS con lo scroll)
   2. grana spazzolata orizzontale
   3. gradiente acciaio con orizzonte scuro, ripetuto a ogni riga (1lh)
   + bordo di taglio: filo di luce sopra, spessore e ombra sotto */
.metal {
  --sheen: 30%;
  --steel-base: linear-gradient(180deg,
    #ffffff 0%, #eef0f3 18%, #c3c8cf 40%, #6a7079 53%, #3f444b 56%,
    #8c929b 63%, #d4d8dd 76%, #a4a9b1 90%, #7b818a 100%);
  color: transparent;
  background-image:
    linear-gradient(105deg,
      transparent calc(var(--sheen) - 14%),
      rgba(255, 255, 255, 0.9) var(--sheen),
      transparent calc(var(--sheen) + 14%)),
    repeating-linear-gradient(180deg,
      rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 3px,
      rgba(0, 0, 0, 0.08) 3px 4px, transparent 4px 7px,
      rgba(255, 255, 255, 0.04) 7px 8px, transparent 8px 11px),
    var(--steel-base);
  background-size: 100% 100%, 100% 11px, 100% 1lh;
  background-repeat: no-repeat, repeat, repeat-y;
  /* il gradiente parte appena sopra le maiuscole: lettere e discendenti
     (g, p) restano dentro lo stesso giro, senza stacchi */
  background-position: 0 0, 0 0, 0 0.12em;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  filter:
    drop-shadow(0 -0.006em 0 rgba(255, 255, 255, 0.35))
    drop-shadow(0 0.012em 0 #3b3f45)
    drop-shadow(0 0.012em 0 #26292d)
    drop-shadow(0 0.012em 0 #151619)
    drop-shadow(0 0.12em 0.16em rgba(0, 0, 0, 0.55));
}
/* seconda riga dei titoli: acciaio brunito, più scuro */
.metal--dark {
  --steel-base: linear-gradient(180deg,
    #d9dde2 0%, #a9afb7 22%, #737a83 42%, #3a3f46 53%, #24272c 56%,
    #555b63 64%, #9399a1 78%, #6d727a 92%, #4d5259 100%);
}
/* l'acciaio viene dipinto solo dentro il box: un po' di spazio sotto
   per includere le discendenti (g, p), senza cambiare l'impaginazione */
.metal { padding-bottom: 0.16em; }
:is(h1, h2, h3).metal { margin-bottom: -0.16em; }
/* un titolo dentro un titolo metallico eredita già bordo e ombra */
.metal .metal { filter: none; }
.h2.metal, .display.metal, .hero__title .metal { font-weight: 300; }
.stat__value .metal { font-weight: 250; }

.accent { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: transform 0.5s var(--ease), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(8, 8, 10, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.nav__logo img, .nav__logo .logo { display: block; height: 24px; width: auto; overflow: visible; }
.nav__logo .logo { transform-origin: 0 0; }
.nav.is-open .nav__logo .logo { transform: none !important; }

/* Logo — firma laser: il raggio scrive A, R, L una dopo l'altra, il metallo si accende
   dietro al taglio, poi compare WORKLAM. Solo CSS: parte al caricamento. */
.logo--intro { --cut: 0.7s; --step: 0.34s; --start: 0.35s; }
/* --s = scala attuale del logo (impostata da main.js): il tratto resta sottile anche quando il logo è ingrandito */
.logo__trace { fill: none; stroke: #c8ffdc; stroke-width: calc(0.8px / var(--s, 1)); stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 calc(1px / var(--s, 1)) #4ee38a) drop-shadow(0 0 calc(3px / var(--s, 1)) rgba(28,163,74,.7)); }
.logo__trace > g {
  stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0;
  animation: logo-cut var(--cut) cubic-bezier(.65, 0, .35, 1) forwards,
             logo-off .5s ease-out forwards;
  animation-delay: calc(var(--start) + var(--i) * var(--step)),
                   calc(var(--start) + var(--i) * var(--step) + var(--cut) + .25s);
}
.logo__letter {
  opacity: 0;
  animation: logo-on .7s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--start) + var(--i) * var(--step) + var(--cut) - .15s);
}
.logo__word {
  opacity: 0; transform: translateY(3px); transform-box: fill-box;
  animation: logo-word .9s cubic-bezier(.22, 1, .36, 1) forwards;
  animation-delay: calc(var(--start) + 2 * var(--step) + var(--cut) + .1s);
}
@keyframes logo-cut { 0% { opacity: 1; stroke-dashoffset: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
@keyframes logo-off { from { opacity: 1; } to { opacity: 0; } }
@keyframes logo-on { to { opacity: 1; } }
@keyframes logo-word { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .logo__letter, .logo__word { opacity: 1; transform: none; animation: none; }
  .logo__trace { display: none; }
}
.nav__links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-size: 13px; color: var(--muted); letter-spacing: 0.01em;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }
.nav__cta {
  font-size: 13px; font-weight: 500;
  padding: 8px 16px; border-radius: 999px;
  background: var(--text); color: #000;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.nav__cta:hover { background: var(--accent); transform: translateY(-1px); }
.nav__toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav__toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--text);
  transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 23px; }
.nav.is-open .nav__toggle span:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 19.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 64px 0 auto 0; height: calc(100dvh - 64px);
    flex-direction: column; gap: 0; padding: 24px var(--gutter);
    background: rgba(8, 8, 10, 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
  }
  .nav__links a {
    display: block; padding: 14px 0; font-size: 28px; font-weight: 300;
    color: var(--text); letter-spacing: -0.02em; border-bottom: 1px solid var(--line);
  }
  .nav.is-open { background: rgba(8, 8, 10, 0.96); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 600px;
  overflow: hidden;
}
.hero__media {
  position: absolute; inset: 0; overflow: hidden;
  will-change: transform, border-radius;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(1.05) contrast(1.05) brightness(0.85);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,10,0.55) 0%, rgba(8,8,10,0.1) 35%, rgba(8,8,10,0.35) 65%, var(--bg) 100%),
    /* velo laterale: scurisce la zona del testo, le scintille a destra restano vive */
    linear-gradient(90deg, rgba(8,8,10,0.82) 0%, rgba(8,8,10,0.62) 35%, rgba(8,8,10,0.3) 55%, transparent 78%),
    radial-gradient(90% 70% at 10% 85%, rgba(8,8,10,0.85), transparent 70%);
}
.hero__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(48px, 10vh, 120px);
}
.hero__title { margin: 20px 0 24px; max-width: 12ch; }
/* segnaposto del logo grande: il logo vero sta nel menu e qui viene solo "proiettato" (vedi main.js) */
.hero__brand { display: none; }
.js .hero__brand { display: block; align-self: flex-start; height: clamp(46px, 6.2vw, 92px); aspect-ratio: 466 / 79; margin-bottom: clamp(8px, 2vh, 20px); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line + .line { margin-top: -0.16em; }
.hero__title .line > span { display: inline-block; padding: 0.02em 0.04em 0.18em 0; }
/* alone scuro attorno alle lettere: stacca l'acciaio dalle scintille senza un riquadro visibile */
.hero__title .metal {
  filter: drop-shadow(0 -0.006em 0 rgba(255,255,255,.35)) drop-shadow(0 .012em 0 #3b3f45) drop-shadow(0 .012em 0 #26292d)
          drop-shadow(0 .012em 0 #151619) drop-shadow(0 .12em .16em rgba(0,0,0,.55)) drop-shadow(0 0 .28em rgba(0,0,0,.55));
}
.hero__sub { max-width: 34ch; color: rgba(245,245,247,0.78); }
.hero__scroll {
  position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(48px, 10vh, 120px);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.hero__scroll i {
  width: 1px; height: 56px; background: linear-gradient(var(--text), transparent);
  animation: drip 2.2s var(--ease) infinite; transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 860px) { .hero__scroll { display: none; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 16vh, 200px) 0; }
.section__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 8vh, 96px); max-width: 900px; }

/* Statement — parole che si accendono allo scroll */
.statement { padding: clamp(120px, 22vh, 260px) 0; }
.statement__text {
  font-size: clamp(30px, 4.4vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 250;
  max-width: 24ch;
}
.statement__text .w { color: var(--text); }
.js .statement__text .w { color: #2a2a2f; transition: color 0.2s linear; }
.js .statement__text .w.is-lit { color: var(--text); }
.statement__text .w.hl.is-lit { color: var(--accent); }

/* Chi siamo — pillars */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.pillar {
  background: var(--bg); padding: clamp(28px, 3vw, 48px);
  display: flex; flex-direction: column; gap: 20px;
  position: relative; overflow: hidden;
  transition: background 0.5s var(--ease);
}
.pillar::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 80%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  opacity: 0; transition: opacity 0.6s var(--ease);
}
.pillar:hover { background: var(--bg-2); }
.pillar:hover::before { opacity: 1; }
.pillar__label { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.pillar__title { margin: -6px 0 0; }
.pillar p { color: var(--muted); position: relative; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar { min-height: 0; }
}

/* Servizi */
.services-intro { text-align: center; padding-top: clamp(96px, 16vh, 200px); }
.services-intro .section__head { margin-left: auto; margin-right: auto; justify-items: center; }

.service {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px);
  align-items: center; padding: clamp(64px, 12vh, 140px) 0;
}
.service:nth-child(even) .service__media { order: 2; }
.service__media {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3);
}
.service__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.service__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}
.service__tag {
  position: absolute; left: 20px; top: 20px; z-index: 2;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(8,8,10,0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
}
.service__body { display: grid; gap: 24px; }
.service__body p { color: var(--muted); max-width: 46ch; }
.specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 12px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.spec { background: var(--bg); padding: 20px 22px; }
.spec__value {
  font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.spec__value small { font-size: 0.5em; color: var(--muted); font-weight: 500; letter-spacing: 0; margin-left: 2px; }
.spec__label {
  margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}
@media (max-width: 900px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service__media { order: 0; }
  .service__media { aspect-ratio: 4 / 3; }
}

/* Numeri */
.numbers { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 2vw, 32px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.stat:first-child { border-left: 0; }
.stat__value {
  font-size: clamp(44px, 5.6vw, 92px); font-weight: 200; letter-spacing: -0.045em; line-height: 0.9;
  font-variant-numeric: tabular-nums;
}
.stat__value sup { font-size: 0.4em; vertical-align: top; position: relative; top: 0.25em; color: var(--accent); margin-left: 4px; }
.stat__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) {
  .numbers__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 32px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  display: flex; flex-direction: column; gap: 28px; min-height: 360px;
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.member:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.member__mono {
  width: 88px; height: 88px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 300; letter-spacing: -0.02em;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.18), transparent 55%),
    linear-gradient(160deg, #2a2b30, #111114);
  border: 1px solid var(--line-strong);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
}
.member__name { margin-top: auto; }
.member__role { color: var(--muted); margin-top: 8px; }
@media (max-width: 900px) {
  .team { grid-template-columns: 1fr; }
  .member { min-height: 0; flex-direction: row; align-items: center; }
  .member__mono { width: 64px; height: 64px; font-size: 22px; flex: none; }
  .member__name { margin-top: 0; }
}

/* Gallery — due nastri che scorrono da soli in direzioni opposte */
.gallery { padding: clamp(96px, 14vh, 160px) 0; }
.gallery__head { padding-bottom: 48px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 16px; }
.marquee__track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.gallery__item {
  flex: none; height: clamp(200px, 30vh, 340px); aspect-ratio: 3 / 2; margin: 0;
  border-radius: 18px; overflow: hidden; position: relative; background: var(--bg-3);
}
.gallery__item:nth-child(3n+2) { aspect-ratio: 4 / 5; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.6) brightness(0.8);
  transition: transform 1.4s var(--ease), filter 0.9s var(--ease);
}
.gallery__item button { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: zoom-in; }

/* Scansione laser: al passaggio una linea verde attraversa la foto e la colora */
.gallery__item::after {
  content: ""; position: absolute; left: -10%; right: -10%; top: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--accent) 20%, #b8ffd0 50%, var(--accent) 80%, transparent);
  box-shadow: 0 0 12px 2px rgba(28, 163, 74, 0.8), 0 0 40px 6px rgba(28, 163, 74, 0.35);
  opacity: 0; pointer-events: none;
}
.gallery__item:hover::after,
.gallery__item:focus-within::after { animation: laser-scan 0.9s var(--ease) forwards; }
.gallery__item:hover img,
.gallery__item:focus-within img { filter: none; transform: scale(1.05); }
@keyframes laser-scan {
  0%   { opacity: 0; top: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { opacity: 0; top: 100%; }
}

/* Senza animazioni: nastri scorrevoli a mano */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee::-webkit-scrollbar { display: none; }
  .gallery__item:hover::after { animation: none; }
}
@media (max-width: 860px) {
  .gallery__item { height: 200px; }
  .marquee + .marquee { margin-top: 10px; }
  .marquee__track { gap: 10px; }
}

/* Lightbox */
.lightbox {
  border: 0; padding: 0; margin: 0; max-width: none; max-height: none;
  width: 100vw; height: 100vh; height: 100dvh; background: rgba(0,0,0,0.92);
  color: var(--text);
}
.lightbox::backdrop { background: rgba(0,0,0,0.9); }
.lightbox[open] { display: grid; place-items: center; animation: fade 0.35s var(--ease); }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; object-fit: contain; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: grid; place-items: center; font-size: 22px;
  transition: background 0.25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__nav--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--muted); }
@keyframes fade { from { opacity: 0; } }

/* Testimonial */
.quote { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.quote__logo {
  width: clamp(120px, 14vw, 180px); aspect-ratio: 1; border-radius: 24px;
  background: #fff; display: grid; place-items: center; padding: 18%;
}
.quote__logo img { width: 100%; height: 100%; object-fit: contain; }
.quote blockquote { margin: 0; }
.quote__text {
  font-size: clamp(26px, 3.4vw, 46px); line-height: 1.2; letter-spacing: -0.025em; font-weight: 250;
}
.quote__text::before { content: "“"; color: var(--accent); }
.quote__text::after { content: "”"; color: var(--accent); }
.quote__cite { margin-top: 32px; display: block; font-style: normal; color: var(--muted); }
.quote__cite strong { color: var(--text); font-weight: 400; display: block; }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; } }

/* Contatti */
.contact {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(28,163,74,0.10), transparent 70%),
    var(--bg);
}
.contact__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__main { display: grid; justify-items: start; }
.contact__main .contact__title { margin: 20px 0 clamp(28px, 4vh, 44px); font-size: clamp(40px, 5.4vw, 88px); }
.contact__links { display: grid; gap: 6px; }
.contact__big {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: clamp(28px, 3.6vw, 52px); font-weight: 250; letter-spacing: -0.03em; line-height: 1.15;
  width: fit-content; position: relative;
}
.contact__big::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: right;
  transition: transform 0.6s var(--ease);
}
.contact__big:hover::after { transform: scaleX(1); transform-origin: left; }
.contact__big .arrow { font-size: 0.6em; color: var(--muted); transition: transform 0.5s var(--ease), color 0.3s; }
.contact__big:hover .arrow { transform: translate(4px, -4px); color: var(--accent); }
.contact__card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2);
}
.map {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg-3);
}
.map__pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 6px rgba(28,163,74,0.25), 0 0 30px var(--accent);
}
.map__pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--accent); animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: 0.9; } to { transform: scale(5); opacity: 0; } }
.map__road { position: absolute; background: rgba(255,255,255,0.07); }
.map__label {
  position: absolute; left: 50%; top: calc(50% + 22px); transform: translateX(-50%);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.contact__info { padding: 28px; display: grid; gap: 18px; }
.contact__info p { color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-size: 15px; font-weight: 500;
  background: var(--text); color: #000; width: fit-content;
  transition: background 0.3s, transform 0.4s var(--ease);
}
.btn:hover { background: var(--accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; gap: 48px; } }

/* Footer */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 40px; }
.footer__logo img { height: 30px; width: auto; }
.footer__legal {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px;
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em;
}
.footer__legal span { color: var(--dim); display: block; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; margin-bottom: 2px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; }
.footer a:hover { color: var(--text); }
.footer__social { display: flex; gap: 20px; }

/* ---------- Stati iniziali delle animazioni (solo con JS attivo) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js .hero__title .line > span { transform: translateY(105%); }
.js .hero__fade { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js .hero__title .line > span, .js .hero__fade { opacity: 1 !important; transform: none !important; }
  .js .statement__text .w { color: var(--text); }
  .js .statement__text .w.hl { color: var(--accent); }
  .hero__scroll i, .map__pin::after { animation: none; }
}

/* ---------- Privacy page ---------- */
.legal { padding: 140px 0 120px; }
.legal .wrap { max-width: 820px; }
.legal h1 { margin: 20px 0 48px; }
.legal h2 { font-size: 28px; font-weight: 300; letter-spacing: -0.02em; margin: 64px 0 20px; }
.legal h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; margin: 40px 0 12px; }
.legal p, .legal li { color: #b9b9c0; }
.legal p + p { margin-top: 14px; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); }
.legal__updated { margin-top: 56px !important; font-size: 13px; color: var(--muted) !important; }
.legal ul, .legal ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 10px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.legal strong { color: var(--text); }

.statement__text em { font-style: normal; }


/* Ritocchi mobile */
.hero__content .eyebrow { color: rgba(245,245,247,0.82); text-shadow: 0 1px 12px rgba(0,0,0,0.6); }
@media (max-width: 600px) {
  .contact__big { font-size: clamp(22px, 6.4vw, 30px); overflow-wrap: anywhere; }
  .contact__big .arrow { display: none; }
  .hero__media::after {
    background: linear-gradient(180deg, rgba(8,8,10,0.5) 0%, rgba(8,8,10,0.2) 25%, rgba(8,8,10,0.7) 52%, rgba(8,8,10,0.85) 68%, var(--bg) 100%);
  }
}
.nav:not(.is-scrolled) .nav__links a { color: rgba(245,245,247,0.85); text-shadow: 0 1px 10px rgba(0,0,0,0.5); }
@media (max-width: 860px) { .nav:not(.is-scrolled) .nav__links a { color: var(--text); text-shadow: none; } }

/* Touch: niente hover, foto quasi a colori pieni */
@media (hover: none) {
  .gallery__item img { filter: grayscale(0.15) brightness(0.92); }
}
