/* PaRlo Film — stile principale */
:root {
  --bg: #0c0c0d;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --line: #2a2a2e;
  --text: #ecebe7;
  --muted: #9c9a94;
  --red: #e32d27;
  --red-dark: #b91f27;
  --display: 'Josefin Sans', 'Century Gothic', 'Futura', sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 46px; height: 36px; flex: none; }
.logo-word {
  font: 400 21px/1 var(--display);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding-top: 4px;
  white-space: nowrap;
}
.logo-word span { color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { background: rgba(12,12,13,.92); backdrop-filter: blur(10px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; gap: 34px; }
.nav a {
  font: 400 14px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; color: var(--muted); padding: 8px 0; transition: color .2s;
}
.nav a:hover, .nav a.active { color: var(--text); }
.nav a.cta { color: var(--text); }
/* linea rossa che scorre sotto la sezione in cui ti trovi */
.nav { position: relative; }
.nav-ind {
  position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--red);
  opacity: 0; pointer-events: none;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), width .5s cubic-bezier(.2,.7,.2,1), opacity .3s;
}
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 820px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(12,12,13,.98); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav a { padding: 16px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a.cta { border-bottom: 1px solid var(--line); }
  .nav a.active { color: var(--red); }
  .nav-ind { display: none; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: 140px 0 clamp(48px, 9vh, 96px); isolation: isolate; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; transform: scale(1.04); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translateX(-2%); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,12,13,.55) 0%, rgba(12,12,13,0) 30%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12,12,13,.75) 35%, rgba(12,12,13,.15) 75%),
    linear-gradient(90deg, rgba(12,12,13,.85) 0%, rgba(12,12,13,0) 70%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 400 13px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--red); }
.hero h1 {
  font: 300 clamp(44px, 8.4vw, 112px)/.98 var(--display);
  letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 26px; max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); color: #cfcdc7; max-width: 46ch; margin: 0 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-now {
  position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 96px);
  text-align: right; font-size: 14px; color: var(--muted); max-width: 260px;
}
.hero-now strong { display: block; font: 400 15px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text); margin-top: 4px; }
@media (max-width: 960px) { .hero-now { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  font: 600 13px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 18px 26px 16px; border: 1px solid var(--red); background: var(--red); color: #fff;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.ghost { background: transparent; border-color: rgba(236,235,231,.35); color: var(--text); }
.btn.ghost:hover { border-color: var(--text); }
.btn .play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-top: -2px; }

/* ---------- Sezioni ---------- */
section { padding: clamp(72px, 11vw, 140px) 0; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head h2, .h2 {
  font: 300 clamp(34px, 5vw, 64px)/1 var(--display); text-transform: uppercase; letter-spacing: -.005em; margin: 0;
}
.sec-head p { color: var(--muted); max-width: 42ch; margin: 0; }

/* ---------- Filtri ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  font: 400 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; padding: 12px 16px 10px;
  transition: color .2s, border-color .2s, background .2s;
}
.filters button:hover { color: var(--text); border-color: #55555b; }
.filters button[aria-pressed="true"] { color: #fff; background: var(--red); border-color: var(--red); }

/* ---------- Griglia lavori ---------- */
.works { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.work { grid-column: span 4; }
.work.big { grid-column: span 6; }
@media (max-width: 1000px) { .work, .work.big { grid-column: span 6; } }
@media (max-width: 620px) { .work, .work.big { grid-column: 1 / -1; } }
.work[hidden] { display: none; }

.work button {
  display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.thumb { position: relative; aspect-ratio: 2.2 / 1; overflow: hidden; background: var(--bg-3); }
.work.big .thumb { aspect-ratio: 16 / 8; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.9); }
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.45), transparent 55%); opacity: .8; transition: opacity .3s; }
.thumb .play-badge {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(227,45,39,.92); display: grid; place-items: center;
  transform: scale(.8); opacity: 0; transition: transform .3s, opacity .3s;
}
.thumb .play-badge::before { content: ""; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 5px; }
.work button:hover .thumb img, .work button:focus-visible .thumb img { transform: scale(1.05); filter: saturate(1.05); }
.work button:hover .play-badge, .work button:focus-visible .play-badge { transform: scale(1); opacity: 1; }
@media (hover: none) { .thumb .play-badge { opacity: 1; transform: scale(.75); } }

.meta { display: flex; justify-content: space-between; gap: 16px; padding: 16px 2px 6px; border-bottom: 1px solid var(--line); }
.meta h3 { font: 400 18px/1.25 var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 0; padding-top: 3px; }
.work.big .meta h3 { font-size: 22px; }
.meta .cat { font-size: 13px; color: var(--muted); white-space: nowrap; }
.meta .cat b { color: var(--red); font-weight: 500; }
.works-more { margin-top: 40px; color: var(--muted); font-size: 15px; }
.works-more a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 4px; }

/* ---------- Manifesto / numeri ---------- */
.manifesto { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.manifesto .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .manifesto .wrap { grid-template-columns: 1fr; } }
.quote {
  font: 300 clamp(28px, 3.6vw, 46px)/1.15 var(--display); margin: 0; text-transform: none; letter-spacing: -.005em;
}
.quote em { font-style: normal; color: var(--red); }
.manifesto-text p { color: #c9c7c1; margin: 0 0 18px; }
.manifesto-text .sign { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.manifesto-text .sign svg { width: 40px; height: 31px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--bg-2); padding: 28px 24px; }
.stat strong { display: block; font: 300 clamp(40px, 5vw, 60px)/1 var(--display); color: var(--text); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Servizi ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--bg); padding: clamp(28px, 3vw, 44px); }
.service .num { font: 400 13px/1 var(--display); letter-spacing: .2em; color: var(--red); }
.service h3 { font: 400 26px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 14px; }
.service p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 12px; }
.service li::before { content: ""; width: 10px; height: 1px; background: var(--red); margin-top: 12px; flex: none; }

/* ---------- Contatti ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }
.contact-intro p { color: #c9c7c1; max-width: 42ch; }
.contact-list { list-style: none; padding: 0; margin: 36px 0 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.contact-list li span { color: var(--muted); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--red); }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 560px) { form { grid-template-columns: 1fr; } }
label { font: 400 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 0;
  font: 400 16px/1.4 var(--body); padding: 14px 14px; transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font: 400 14px/1.5 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--red); -webkit-appearance: checkbox; appearance: auto; }
.check a { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-note { font-size: 14px; color: var(--muted); }
.notice { grid-column: 1 / -1; padding: 16px 18px; border-left: 2px solid var(--red); background: var(--bg-3); font-size: 15px; }
.notice.ok { border-color: #3fae6a; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line);
  color: var(--muted); transition: color .2s, border-color .2s;
}
.social a:hover { color: var(--text); border-color: var(--red); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer .bottom a { color: var(--muted); text-decoration: none; }
.site-footer .bottom a:hover { color: var(--text); }
.site-footer .bottom nav { display: flex; gap: 22px; }

/* ---------- Player (lightbox) ---------- */
dialog.player {
  width: min(1200px, 94vw); max-width: none; padding: 0; border: 0; background: #000; color: var(--text);
  overflow: visible;
}
dialog.player::backdrop { background: rgba(5,5,6,.92); backdrop-filter: blur(4px); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0 0; background: transparent; }
.player-title { font: 400 16px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.player-close {
  background: none; border: 1px solid rgba(236,235,231,.3); cursor: pointer; padding: 10px 14px 8px;
  font: 400 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase;
}
.player-close:hover { border-color: var(--red); }

/* ---------- Pagine interne ---------- */
.page { padding: 150px 0 90px; }
.page .wrap { max-width: 820px; }
.page h1 { font: 300 clamp(36px, 6vw, 64px)/1 var(--display); text-transform: uppercase; margin: 0 0 32px; }
.page h2 { font: 400 22px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; margin: 44px 0 12px; }
.page p, .page li { color: #c9c7c1; }
.page a { color: var(--text); text-decoration-color: var(--red); text-underline-offset: 3px; }

/* ---------- Animazioni ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 700px) {
  .hero { align-items: flex-end; }
  .hero-bg img { object-position: 58% 25%; animation: none; transform: none; }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(12,12,13,.6) 0%, rgba(12,12,13,0) 22%),
      linear-gradient(0deg, var(--bg) 0%, rgba(12,12,13,.85) 42%, rgba(12,12,13,0) 80%);
  }
}

/* Lavori: prima mostra solo i più recenti */
.works.collapsed .work.extra { display: none; }
.works-toggle { display: flex; justify-content: center; margin-top: 36px; }
.works-toggle[hidden] { display: none; }

/* =====================================================================
   ESPERIENZA DI SCORRIMENTO (apertura a pellicola, nastro, servizi)
   Senza JavaScript o con "riduci movimento" il sito resta statico.
   ===================================================================== */
:root { --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; --red-glow: #f0463d; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- Apertura ---- */
.film { position: relative; height: 100svh; background: #000; }
.js:not(.rm) .film { height: 620svh; }
.scena { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.frames, .frame { position: absolute; inset: 0; margin: 0; }
.frame { opacity: 0; }
.frame.is-last { opacity: 1; }
.js:not(.rm) .frame.is-last { opacity: 0; }
.js:not(.rm) .frame:first-child { opacity: 1; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--z, 1)); will-change: transform; }
.frames::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 70% 40%, rgba(0,0,0,0) 0%, rgba(0,0,0,.55) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 40%);
}
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.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 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-2%,4%)} 80%{transform:translate(5%,2%)} 100%{transform:translate(0,0)} }
.bar { position: absolute; left: 0; right: 0; height: var(--bar, 0px); background: #000; z-index: 2; }
.bar.top { top: 0; } .bar.bot { bottom: 0; }

.frasi { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: none; }
.js:not(.rm) .frasi { display: block; }
.frase {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  font: 400 clamp(46px, 7.6vw, 124px)/.95 var(--serif); color: #f4efe6; letter-spacing: -.01em;
  text-shadow: 0 2px 40px rgba(0,0,0,.5);
}
.frase .riga, .finale .riga { display: block; }
.frase em { font-style: italic; color: var(--red-glow); }
.js:not(.rm) .frase .riga { opacity: 0; will-change: transform, opacity; }

.finale { position: absolute; inset: 0; z-index: 4; display: flex; align-items: flex-end; padding-bottom: clamp(84px, 13vh, 130px); }
.finale .wrap { width: 100%; }
.finale h1 { font: 300 clamp(44px, 8.4vw, 112px)/.98 var(--display); letter-spacing: -.01em; text-transform: uppercase; margin: 0 0 26px; }
.finale h1 em { font-style: normal; color: var(--red); }
.js:not(.rm) .finale [data-f] { opacity: 0; }
.js:not(.rm) .finale { pointer-events: none; }
.js:not(.rm) .finale.live { pointer-events: auto; }

.slate {
  position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font: 400 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: rgba(236,235,231,.7);
}
.tc b { font-weight: 400; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.credit { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 8px 0; cursor: pointer; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: right; }
.credit .play { width: 0; height: 0; border-left: 7px solid var(--red); border-top: 5px solid transparent; border-bottom: 5px solid transparent; flex: none; }
.credit:hover { color: #fff; }
.scroll-hint { position: absolute; z-index: 5; left: 50%; bottom: 64px; transform: translateX(-50%); margin: 0; display: none; flex-direction: column; align-items: center; gap: 10px; font: 400 11px/1 var(--display); letter-spacing: .3em; text-transform: uppercase; color: rgba(236,235,231,.8); }
.js:not(.rm) .scroll-hint { display: flex; }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--red), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.film-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.08); }
.film-progress span { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }
@media (max-width: 700px) {
  .slate .tc { display: none; }
  .slate { justify-content: flex-end; }
  .credit { font-size: 10px; letter-spacing: .14em; }
  .frase { font-size: clamp(44px, 13vw, 64px); }
}

/* ---- Nastro che scorre ---- */
.nastro { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.nastro-in {
  display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; will-change: transform;
  font: italic 400 clamp(56px, 10vw, 168px)/1.1 var(--serif); color: transparent;
  -webkit-text-stroke: 1px rgba(236,235,231,.35);
}
.nastro-in i { width: .14em; height: .14em; border-radius: 50%; background: var(--red); flex: none; }

/* ---- Chi siamo: parole che si accendono ---- */
.quote { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.6vw, 64px); line-height: 1.06; }
.quote em { font-style: italic; }
.js:not(.rm) [data-words] .w { opacity: .16; transition: opacity .35s ease; }
.js:not(.rm) [data-words] .w.on { opacity: 1; }

/* ---- Servizi: sezione ferma ---- */
.servizi-img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--bg-3); display: none; }
.servizi-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .8s ease, transform 1.6s cubic-bezier(.2,.7,.2,1); }
.servizi-img img.on { opacity: 1; transform: scale(1); }
.servizi-dots { display: none; gap: 10px; margin-top: 28px; }
.servizi-dots span { width: 28px; height: 2px; background: var(--line); transition: background .3s; }
.servizi-dots span.on { background: var(--red); }

.js:not(.rm) .servizi { height: 330svh; padding: 0; }
.js:not(.rm) .servizi-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.js:not(.rm) .servizi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.js:not(.rm) .servizi-img { display: block; }
.js:not(.rm) .servizi-dots { display: flex; }
.js:not(.rm) .servizi .services { display: block; position: relative; background: none; border: 0; min-height: 360px; }
.js:not(.rm) .servizi .service { position: absolute; inset: 0; padding: 0; background: none; opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.js:not(.rm) .servizi .service.on { opacity: 1; transform: none; pointer-events: auto; }
.js:not(.rm) .servizi .service h3 { font: 400 clamp(40px, 5vw, 72px)/1 var(--serif); text-transform: none; letter-spacing: -.01em; margin: 14px 0 16px; }
.js:not(.rm) .servizi .sec-head { margin-bottom: 36px; }
@media (max-width: 860px) {
  .js:not(.rm) .servizi-pin { align-items: flex-start; padding-top: 92px; }
  .js:not(.rm) .servizi-grid { grid-template-columns: 1fr; gap: 22px; }
  .js:not(.rm) .servizi-img { order: -1; aspect-ratio: auto; height: 28svh; }
  .js:not(.rm) .servizi .sec-head { margin-bottom: 18px; }
  .js:not(.rm) .servizi .sec-head p { display: none; }
  .js:not(.rm) .servizi .sec-head h2 { font-size: 34px; }
  .js:not(.rm) .servizi .service p { font-size: 15px; margin-bottom: 12px; }
  .js:not(.rm) .servizi .service li { padding: 8px 0; font-size: 14px; }
  .js:not(.rm) .servizi .services { min-height: 330px; }
  .js:not(.rm) .servizi-dots { margin-top: 8px; }
}

/* ---- Lavori: leggera parallasse nelle miniature ---- */
.js:not(.rm) .thumb img { transform: translateY(var(--py, 0px)) scale(var(--s, 1.12)); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; }
.js:not(.rm) .work button:hover .thumb img, .js:not(.rm) .work button:focus-visible .thumb img { transform: translateY(var(--py, 0px)) scale(1.18); }
.reveal { transition-duration: 1.1s; }
.work.reveal { transform: translateY(60px); }
.work.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) { .grain, .scroll-hint i { animation: none; } }

/* ---- Logo: trattino centrato sull'altezza delle maiuscole (cap height Josefin = .73em) ---- */
.logo-word .dash { display: inline-block; position: relative; width: .44em; height: .73em; margin: 0 .06em 0 0; vertical-align: baseline; }
.logo-word .dash::before { content: ""; position: absolute; left: 0; right: 0; bottom: .33em; height: .07em; background: var(--red); }

/* ---- Servizi: immagini orizzontali, non tagliate ---- */
.servizi-img { aspect-ratio: 16 / 9; background: #000; }
.servizi-img img { object-fit: contain; }
.js:not(.rm) .servizi-grid { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 860px) {
  .js:not(.rm) .servizi-img { aspect-ratio: 16 / 9; height: auto; }
}

/* ---- SEO: testo leggibile da Google e lettori di schermo, invisibile a video ---- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---- Asterisco origami: logo e nastro (sostituisce trattino e pallini) ---- */
.logo-word .ast { display: inline-block; width: .64em; height: .64em; margin: 0 .16em 0 .1em; vertical-align: .045em; }
.nastro-in {
  font: 600 clamp(44px, 7.6vw, 128px)/1.1 var(--display); font-style: normal;
  text-transform: uppercase; letter-spacing: .05em; gap: .55em;
  -webkit-text-stroke: 1px rgba(236,235,231,.32);
}
.nastro-in img { width: .62em; height: .62em; flex: none; margin-top: -.24em; }
