/* ============================================================
   CENTRAL COLOR · style.css
   design system "camera oscura": buio, luce rossa di sicurezza,
   carta fotografica, grana pellicola, divisori a striscia film
   ============================================================ */

:root {
  --ink: #0c0a09;
  --ink-2: #151110;
  --ink-3: #1e1916;
  --paper: #f2ecdf;
  --paper-2: #e8dfc9;
  --red: #ff4232;
  --red-deep: #d92e20;
  --red-soft: rgba(255, 66, 50, .14);
  --cyan: #2ec7e6;
  --mag: #e8459c;
  --yel: #f2c341;
  --amber: #e8a54b;
  --text: #efe8da;
  --muted: rgba(239, 232, 218, .62);
  --dark-text: #1c1512;
  --dark-muted: rgba(28, 21, 18, .64);
  --hairline: rgba(239, 232, 218, .14);
  --hairline-dark: rgba(28, 21, 18, .16);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Archivo', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --head-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #140907; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 4000;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--dark-text);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[role="slider"]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

.wrap { width: min(1220px, 92vw); margin: 0 auto; }

/* ---------- grana pellicola ---------- */
body::after {
  content: '';
  position: fixed;
  inset: -100px;
  z-index: 2000;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .55s steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-38px, 22px); }
  50% { transform: translate(24px, -30px); }
  75% { transform: translate(-16px, -14px); }
  100% { transform: translate(30px, 26px); }
}

/* ================= LOADER ================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.loader-aperture {
  width: 76px;
  height: 76px;
  color: var(--red);
  animation: aperture-spin 6s linear infinite;
}
@keyframes aperture-spin { to { transform: rotate(360deg); } }
.loader-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 4.6vw, 44px);
  letter-spacing: .12em;
  display: flex;
  overflow: hidden;
}
.loader-word span { display: inline-block; }
.loader-bar {
  width: min(300px, 60vw);
  height: 3px;
  background: rgba(239, 232, 218, .15);
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}
.loader-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .34em;
  color: var(--muted);
}

/* ================= HEADER ================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3.4vw, 44px);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(12, 10, 9, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
#site-header.hidden { transform: translateY(-102%); }

.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 12px; }
.brand-aperture { width: 34px; height: 34px; color: var(--red); flex: none; transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.brand:hover .brand-aperture { transform: rotate(120deg); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: .1em;
}
.brand-word em { font-style: normal; color: var(--red); }

.main-nav { display: flex; gap: clamp(14px, 2.2vw, 30px); }
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-right { display: flex; align-items: center; gap: 14px; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  padding: 7px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(12, 10, 9, .5);
  white-space: nowrap;
}
.status-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7d7d7d;
  flex: none;
}
.status-pill.open .dot { background: #45d97a; box-shadow: 0 0 10px rgba(69, 217, 122, .8); }
.status-pill.closed .dot { background: var(--red); box-shadow: 0 0 10px rgba(255, 66, 50, .8); }
.status-pill-lg { background: transparent; border-color: var(--hairline-dark); color: var(--dark-text); }

.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1101;
}
.burger-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform .35s, opacity .25s;
}
body.menu-open .burger-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .burger-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .burger-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile menu ---------- */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(12, 10, 9, .97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 8vw 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
body.menu-open #mobile-menu { opacity: 1; visibility: visible; }
.menu-close {
  position: absolute;
  top: 18px; right: 22px;
  font-size: 34px;
  color: var(--muted);
  padding: 8px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 8vw, 42px);
  padding: 8px 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
}
.mobile-nav a em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 13px;
  color: var(--red);
}
.mobile-foot { margin-top: 46px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.mobile-tel { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ================= BOTTONI ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: none;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background .25s, color .25s, border-color .25s, box-shadow .25s;
  will-change: transform;
}
.btn-sm { padding: 11px 20px; font-size: 12.5px; }
.btn-red { background: var(--red); color: #160b09; box-shadow: 0 8px 30px rgba(255, 66, 50, .35); }
.btn-red:hover { background: #ff5a4c; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255, 66, 50, .45); }
.btn-ghost { border-color: var(--hairline); color: var(--text); background: rgba(12, 10, 9, .35); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-ink { background: var(--dark-text); color: var(--paper); }
.btn-ink:hover { background: #000; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.btn-ink-ghost { border-color: var(--hairline-dark); color: var(--dark-text); }
.btn-ink-ghost:hover { border-color: var(--dark-text); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }

/* ================= HERO ================= */
#hero { position: relative; background: var(--ink); }
.hero-pin {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#develop-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(58% 46% at 50% 68%, rgba(255, 66, 50, .34), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(217, 46, 32, .22), transparent 72%);
  transition: opacity .1s linear;
}
.hero-lightleak {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 62%, rgba(255, 154, 60, .12) 78%, rgba(255, 190, 90, .2) 100%),
    linear-gradient(250deg, transparent 74%, rgba(46, 199, 230, .07) 100%);
  mix-blend-mode: screen;
}
.hero-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
.hero-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 13.5vw, 208px);
  line-height: .92;
  letter-spacing: .02em;
}
.hero-line-1 { color: rgba(239, 232, 218, .14); }
.hero-line-2 {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 66, 50, .75);
  text-shadow: 4px 0 0 rgba(46, 199, 230, .25), -4px 0 0 rgba(232, 69, 156, .25);
}

.hero-copy {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 780px;
  padding: 0 5vw;
  margin-top: 12vh;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: clamp(10.5px, 1.3vw, 13px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
}
.hero-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: .01em;
  margin-bottom: 34px;
  text-shadow: 0 10px 60px rgba(12, 10, 9, .9);
}
.hero-h .hl {
  color: var(--red);
  position: relative;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stages {
  position: absolute;
  left: clamp(18px, 3.4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-stages li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  opacity: .45;
  transition: opacity .4s, color .4s, transform .4s;
}
.hero-stages li b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--red);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 3px 7px;
  transition: background .4s, color .4s, border-color .4s;
}
.hero-stages li.active {
  opacity: 1;
  color: var(--text);
  transform: translateX(6px);
}
.hero-stages li.active b { background: var(--red); color: #160b09; border-color: var(--red); }

.hero-side {
  position: absolute;
  right: clamp(14px, 2.6vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
}
.hero-side span {
  display: inline-block;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .42em;
  color: var(--muted);
  animation: side-scroll 9s linear infinite;
}
@keyframes side-scroll {
  0%, 12% { transform: translateY(0); }
  50% { transform: translateY(-4%); }
  88%, 100% { transform: translateY(0); }
}

.hero-badge {
  position: absolute;
  right: clamp(22px, 4.4vw, 64px);
  bottom: clamp(84px, 12vh, 120px);
  z-index: 4;
  width: 108px;
  height: 108px;
}
.hero-badge > svg { width: 100%; height: 100%; animation: aperture-spin 14s linear infinite; }
.hero-badge text {
  font-family: var(--font-mono);
  font-size: 10.4px;
  letter-spacing: .22em;
  fill: var(--text);
}
.badge-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-aperture { width: 38px; height: 38px; color: var(--red); }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-line i {
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--red);
  animation: scroll-drip 1.8s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scroll-drip {
  0% { top: -40%; }
  60%, 100% { top: 110%; }
}

.hero-progress {
  position: absolute;
  left: clamp(18px, 3.4vw, 48px);
  bottom: clamp(84px, 12vh, 120px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.progress-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
}
.progress-track {
  width: 2px;
  height: 76px;
  background: var(--hairline);
  position: relative;
}
.progress-track i {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 0%;
  background: var(--red);
}
.progress-cap {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* ================= TICKER ================= */
.ticker-wrap {
  background: var(--ink-2);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.ticker { display: flex; }
.ticker-track {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 16px 17px;
  white-space: nowrap;
  animation: ticker 26s linear infinite;
  will-change: transform;
}
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}
.ticker-track i { color: var(--red); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ================= SEZIONI COMUNI ================= */
section { position: relative; }
.section-paper {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, .5), transparent 60%),
    var(--paper);
  color: var(--dark-text);
}
.section-dark { background: var(--ink); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--red-deep); }
.eyebrow-center { text-align: center; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: .01em;
  margin-bottom: 26px;
}
.display-dark { color: var(--dark-text); }
.display-center { text-align: center; }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--text);
}
.outline-dark {
  color: transparent;
  -webkit-text-stroke: 1.6px var(--dark-text);
}
.red-dot { color: var(--red); }

.lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 18px;
}
.lead strong { color: var(--text); }
.lead-dark { color: var(--dark-muted); }
.lead-dark strong { color: var(--dark-text); }
.lead-center { margin-left: auto; margin-right: auto; text-align: center; }

.pillars { list-style: none; margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.pillars li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--dark-text);
}
.pillars li b {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  color: var(--red-deep);
  border: 1px solid var(--hairline-dark);
  border-radius: 4px;
  padding: 3px 7px;
}

.check-list { list-style: none; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 15.5px;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
.check-list-dark li { color: var(--dark-muted); }
.check-list-dark li::before { color: var(--red-deep); }

/* ---------- divisori a striscia di pellicola ---------- */
.film-divider {
  position: relative;
  height: 52px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.film-divider::before,
.film-divider::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--paper) 0 16px, transparent 16px 34px);
  background-size: 34px 100%;
  opacity: .92;
}
.film-divider::before { top: 6px; }
.film-divider::after { bottom: 6px; }
.film-edge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .4em;
  color: var(--amber);
  white-space: nowrap;
  overflow: hidden;
  max-width: 94vw;
}

/* ---------- crocini di registro ---------- */
.reg-marks { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.rm {
  position: absolute;
  width: 22px; height: 22px;
  border: 0 solid rgba(28, 21, 18, .4);
}
.rm.tl { top: 76px; left: 22px; border-top-width: 2px; border-left-width: 2px; }
.rm.tr { top: 76px; right: 22px; border-top-width: 2px; border-right-width: 2px; }
.rm.bl { bottom: 76px; left: 22px; border-bottom-width: 2px; border-left-width: 2px; }
.rm.br { bottom: 76px; right: 22px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- sticker ---------- */
.sticker {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--red);
  color: #160b09;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 4px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
}
.sticker-tr { top: 18px; right: 18px; }

.tilt-card { transform-style: preserve-3d; will-change: transform; }

/* ================= LABORATORIO ================= */
#laboratorio { padding: 0 0 0; }
.lab-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(60px, 9vh, 110px) 0;
}
.lab-photo {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(28, 21, 18, .35);
  border: 6px solid #fff;
}
.lab-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ================= STATS ================= */
.section-stats { border-bottom: 1px solid var(--hairline); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding: clamp(44px, 7vh, 70px) 0;
}
.stat { text-align: center; position: relative; padding: 0 10px; }
.stat + .stat::before {
  content: '';
  position: absolute;
  left: -13px; top: 12%;
  height: 76%;
  width: 1px;
  background: var(--hairline);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 56px);
  color: var(--red);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-word { text-transform: lowercase; }
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ================= SERVIZI ================= */
.section-servizi { padding: clamp(70px, 11vh, 130px) 0; }
.servizi-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: clamp(36px, 6vh, 60px);
}
.servizi-note {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: right;
  padding-bottom: 8px;
}
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.svc-card {
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), border-color .35s, box-shadow .35s;
}
.svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 66, 50, .55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 66, 50, .25);
}
.svc-img { overflow: hidden; aspect-ratio: 3 / 2; }
.svc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.22, 1, .36, 1), filter .5s;
  filter: saturate(.92);
}
.svc-card:hover .svc-img img { transform: scale(1.07); filter: saturate(1.08); }
.svc-body { padding: 22px 22px 26px; }
.svc-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--red);
  display: block;
  margin-bottom: 10px;
}
.svc-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  margin-bottom: 10px;
  letter-spacing: .02em;
}
.svc-body p { font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ================= RESTAURO ================= */
.section-restauro { }
.restauro-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  padding: clamp(60px, 9vh, 110px) 0;
}
.ba-zone { position: relative; }
.ba-slider {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 10px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 30px 80px rgba(28, 21, 18, .35);
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba-after-wrap .ba-img { width: 100%; height: 100%; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 22px rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ba-handle::after {
  content: '';
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .4);
}
.ba-handle i {
  position: relative;
  z-index: 2;
  font-style: normal;
  font-weight: 700;
  color: var(--dark-text);
  font-size: 16px;
}
.ba-handle i:first-child { margin-right: 4px; }
.ba-handle i:last-child { margin-left: 4px; }
.ba-tag {
  position: absolute;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .24em;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(12, 10, 9, .72);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.ba-tag-before { right: 14px; }
.ba-tag-after { left: 14px; background: var(--red); color: #160b09; }
.ba-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--dark-muted);
  text-align: center;
}

/* ================= FORMATI ================= */
.section-formati { padding: clamp(70px, 11vh, 130px) 0; border-top: 1px solid var(--hairline); }
.formati-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.format-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 24px; }
.fmt-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--muted);
  transition: all .3s;
}
.fmt-btn:hover { border-color: var(--text); color: var(--text); }
.fmt-btn:active { transform: translateY(1px) scale(.98); }
.fmt-btn.is-active {
  background: var(--red);
  border-color: var(--red);
  color: #160b09;
  font-weight: 500;
}
.support-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.support-chips li {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 7px 14px;
  border-radius: 6px;
  background: var(--ink-3);
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.formati-stage { }
.fmt-wall {
  position: relative;
  height: clamp(300px, 44vw, 430px);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background:
    linear-gradient(rgba(239, 232, 218, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 232, 218, .045) 1px, transparent 1px),
    var(--ink-2);
  background-size: 34px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fmt-frame {
  position: relative;
  background: #fff;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 200px;
  transition: width .55s cubic-bezier(.22, 1, .36, 1), height .55s cubic-bezier(.22, 1, .36, 1);
}
.fmt-frame::before {
  content: '';
  position: absolute;
  inset: 10px;
  background:
    radial-gradient(80% 60% at 50% 30%, rgba(46, 199, 230, .28), transparent 70%),
    radial-gradient(70% 60% at 50% 90%, rgba(255, 66, 50, .3), transparent 70%),
    linear-gradient(160deg, #2a2320, #0f0c0a);
}
.fmt-dim {
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--text);
  background: rgba(12, 10, 9, .66);
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.fmt-floor {
  position: absolute;
  left: 10%; right: 10%;
  bottom: 26px;
  height: 1px;
  background: var(--hairline);
}
.fmt-caption {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--muted);
  text-align: center;
}

/* ================= FOTOLAB ================= */
.section-fotolab { }
.fotolab-head { padding-top: clamp(60px, 9vh, 110px); max-width: 780px; margin: 0 auto; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 6vh, 64px);
}
.steps li {
  border-top: 2px solid var(--hairline-dark);
  padding-top: 20px;
  position: relative;
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--red-deep);
  letter-spacing: .2em;
  display: block;
  margin-bottom: 12px;
}
.steps h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--dark-text);
}
.steps p { font-size: 14.5px; color: var(--dark-muted); line-height: 1.65; }
.fotolab-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  padding: clamp(40px, 7vh, 70px) 0 clamp(60px, 9vh, 100px);
}

/* ================= RECENSIONI ================= */
.section-reviews { padding: clamp(70px, 11vh, 130px) 0; }
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 26px;
  margin-bottom: clamp(30px, 5vh, 50px);
}
.g-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--ink-2);
}
.g-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #4285f4;
  font-weight: 700;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
}
.g-info { display: flex; flex-direction: column; line-height: 1.3; }
.g-info strong { font-size: 13.5px; }
.g-stars { color: #fbbc04; font-size: 12.5px; letter-spacing: 2px; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.proof-card {
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.proof-google { grid-column: span 5; }
.proof-history { grid-column: span 3; }
.proof-fuji { grid-column: span 4; }
.proof-mark {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.proof-mark-google { color: #fbbc04; }
.proof-mark-word {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: .08em;
}
.proof-card p { color: var(--muted); font-size: 15px; line-height: 1.75; flex: 1; }
.proof-link,
.proof-source {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text);
}
.proof-link { border-bottom: 1px solid var(--hairline); transition: color .25s, border-color .25s; }
.proof-link:hover { color: var(--red); border-color: var(--red); }
.proof-source { color: var(--muted); }
.proof-cta {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-2));
  border-color: rgba(255, 66, 50, .4);
}
.proof-cta p { color: var(--text); flex: 0; margin-top: 4px; }
.proof-kicker { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
/* ================= CONTATTI ================= */
.section-contatti { }
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  padding: clamp(60px, 9vh, 110px) 0;
}
.address {
  font-style: normal;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 26px;
}
.address-dark { color: var(--dark-text); }
.hours-card {
  background: var(--paper-2);
  border: 1px solid var(--hairline-dark);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 26px;
}
.hours-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
  color: var(--dark-text);
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left;
  padding: 9px 0;
  font-size: 14.5px;
  border-bottom: 1px solid var(--hairline-dark);
  color: var(--dark-muted);
  font-weight: 500;
}
.hours-table th { color: var(--dark-text); font-weight: 600; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: none; }
.hours-table tr.today th, .hours-table tr.today td { color: var(--red-deep); font-weight: 700; }
.hours-hint { margin-top: 14px; }
.contatti-tel { display: flex; gap: 12px; flex-wrap: wrap; }
.map-zone { position: sticky; top: calc(var(--head-h) + 20px); }
.map-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 30px 80px rgba(28, 21, 18, .35);
}
.map-frame iframe {
  width: 100%;
  height: clamp(360px, 52vh, 500px);
  border: 0;
  display: block;
  filter: saturate(.92);
}
.map-pin-tag {
  position: absolute;
  left: 14px; bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  background: var(--ink);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

/* ================= FOOTER ================= */
footer {
  background: var(--ink);
  border-top: 1px solid var(--hairline);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  padding: clamp(46px, 7vh, 80px) 0;
}
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 340px; }
.brand-lg { display: inline-flex; }
.brand-lg .brand-aperture { width: 40px; height: 40px; }
.brand-lg .brand-word { font-size: 20px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.footer-col a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 14.5px;
  color: var(--muted);
  padding: 5px 0;
  transition: color .25s, transform .25s;
}
.footer-col a:hover { color: var(--text); transform: translateX(4px); }
.footer-bottom { border-top: 1px solid var(--hairline); }
.footer-bottom-in {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.footer-made a { min-height: 44px; display: inline-flex; align-items: center; color: var(--red); }
.footer-made a:hover { text-decoration: underline; }

/* ================= REVEAL BASE (no-js safe) ================= */
html.no-anim [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ================= 404 ================= */
.not-found-page { min-height: 100dvh; overflow: hidden; }
.not-found-main {
  width: min(720px, 88vw);
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}
.not-found-main .display { margin: 0; }
.not-found-copy { max-width: 48ch; color: var(--muted); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1360px) {
  #site-header { padding: 0 20px; }
  #site-header .status-pill { display: none; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 12px; }
  .brand-word { font-size: 15px; }
}

@media (max-width: 1080px) {
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .proof-google, .proof-history { grid-column: span 6; }
  .proof-fuji { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .main-nav { display: none; }
  .burger-toggle { display: flex; }
  .header-right .btn { display: none; }
  .lab-grid, .restauro-grid, .formati-grid, .contatti-grid { grid-template-columns: minmax(0, 1fr); }
  .lab-grid > *, .restauro-grid > *, .formati-grid > *, .contatti-grid > * { min-width: 0; }
  .servizi-head { flex-direction: column; align-items: flex-start; }
  .servizi-head > * { width: 100%; min-width: 0; }
  .servizi-note { text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 20px; }
  .stat { min-width: 0; }
  .stat + .stat::before { display: none; }
  .hero-stages { display: none; }
  .hero-side { display: none; }
  .map-zone { position: static; }
  .reviews-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .status-pill { display: none; }
  .hero-copy { margin-top: 16vh; padding: 0 7vw; }
  .hero-cta .btn { padding: 14px 22px; font-size: 13px; }
  .hero-badge { width: 84px; height: 84px; right: 18px; bottom: 96px; }
  .hero-progress { left: 18px; bottom: 96px; }
  .progress-track { height: 54px; }
  .servizi-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .display { font-size: clamp(32px, 8.6vw, 42px); letter-spacing: 0; }
  .proof-google, .proof-history, .proof-fuji, .proof-cta { grid-column: 1 / -1; }
  .proof-cta { flex-direction: column; align-items: flex-start; }
  .proof-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid > * { min-width: 0; }
  .brand-lg .brand-word { font-size: 18px; letter-spacing: .07em; }
  .film-edge { font-size: 8.5px; letter-spacing: .3em; }
  .rm.tl, .rm.tr { top: 64px; }
  .rm.bl, .rm.br { bottom: 64px; }
  .contatti-tel .btn { flex: 1 1 auto; }
  .not-found-main { align-items: stretch; }
  .not-found-main .brand-chip { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  .ticker-track { animation-duration: 60s; }
  .loader-aperture, .hero-badge svg { animation: none; }
  html { scroll-behavior: auto; }
}


/* ============================================================
   OVERRIDE v2 · logo reale, foto reali, tipografia ariosa
   ============================================================ */

/* ---------- tipografia più ariosa ---------- */
.display { line-height: 1.14; margin-bottom: 30px; }
.hero-h { line-height: 1.14; }
.hero-line { line-height: 1.04; }
.lead { line-height: 1.75; }
.svc-body h3 { line-height: 1.3; }
.steps h3 { line-height: 1.3; }
.mobile-nav a { line-height: 1.18; }
.proof-card p { line-height: 1.75; }
.footer-brand p { line-height: 1.7; }

/* ---------- logo reale (chip) ---------- */
.brand-chip {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .4);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.brand:hover .brand-chip { transform: rotate(-6deg) scale(1.06); }
.brand-chip-lg { width: 46px; height: 46px; border-radius: 11px; }
.loader-logo {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 18px 60px rgba(255, 66, 50, .28), 0 6px 24px rgba(0, 0, 0, .5);
}

/* ---------- collage laboratorio: oggi + archivio ---------- */
.lab-collage {
  position: relative;
  padding-bottom: 56px;
  padding-left: 0;
}
.lab-photo-arch {
  position: absolute;
  left: -34px;
  bottom: 0;
  width: 46%;
  border: 5px solid #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(28, 21, 18, .4);
  transform: rotate(-4deg);
  z-index: 2;
}
.lab-photo-arch img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sticker-arch {
  left: 12px;
  bottom: 12px;
  top: auto;
  right: auto;
  background: var(--ink);
  color: var(--text);
  transform: rotate(2deg);
}

/* ---------- foto negozio sotto la mappa ---------- */
.negozio-photo {
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 24px 60px rgba(28, 21, 18, .3);
  position: relative;
}
.negozio-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.negozio-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  background: rgba(12, 10, 9, .78);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}

@media (max-width: 920px) {
  .lab-collage { padding-bottom: 40px; }
  .lab-photo-arch { left: -10px; }
  .map-zone { position: static; }
}

@media (max-width: 640px) {
  .lab-photo-arch { width: 52%; left: -8px; }
  .loader-logo { width: 78px; height: 78px; border-radius: 16px; }
}

/* ---------- badge recensioni ---------- */
.g-stars em {
  font-style: normal;
  color: var(--muted);
  letter-spacing: .04em;
  font-size: 11.5px;
  margin-left: 6px;
}

/* ================= PREPARAZIONE FILE FOTO ================= */
.upl-zone { margin-top: 56px; }

.upl-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 38px 24px 34px;
  border: 2px dashed var(--hairline-dark);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.upl-drop:hover,
.upl-drop:focus-visible,
.upl-drop.is-drag {
  border-color: var(--red);
  background: var(--red-soft);
  transform: translateY(-2px);
  outline: none;
}
.upl-drop-ico {
  font-size: 34px;
  line-height: 1;
  color: var(--red);
  margin-bottom: 4px;
}
.upl-drop strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.upl-drop small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--dark-muted);
}

.upl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 720px) {
  .upl-grid { grid-template-columns: repeat(2, 1fr); }
}
.upl-card {
  background: #fff;
  border: 4px solid #fff;
  border-radius: 6px;
  box-shadow: 0 10px 26px rgba(20, 16, 12, 0.12);
  overflow: hidden;
}
.upl-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(1) sepia(0.4) contrast(0.9);
  transition: filter 0.9s ease;
}
.upl-card.is-done img { filter: none; }
.upl-card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 7px 4px 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--dark-muted);
}
.upl-status {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--dark-muted);
}
.upl-status.is-work { color: #b8860b; }
.upl-status.is-ok { color: #1e7d3f; }

.upl-summary {
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--hairline-dark);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.upl-summary.is-visible { display: flex; }
@media (max-width: 640px) {
  .upl-summary { flex-direction: column; align-items: flex-start; }
}
