/* =========================================================
   GIULIO SALOTTI — Photo · Video · Design
   Stile: monocromatico, tipografia enorme, griglia editoriale
   ========================================================= */

:root {
  --bg: #0b0b0b;
  --fg: #f3f1ec;
  --muted: #8d8b85;
  --line: rgba(243, 241, 236, .14);
  --light-bg: #f3f1ec;
  --light-fg: #0b0b0b;
  --light-muted: #6b6963;
  --light-line: rgba(11, 11, 11, .14);
  --gutter: clamp(16px, 3.2vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--fg); color: var(--bg); }

/* ---------- Typography ---------- */
.display {
  font-family: var(--f-display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .9;
}
.h-xxl { font-size: clamp(56px, 13vw, 230px); }
.h-xl  { font-size: clamp(44px, 8.4vw, 150px); }
.h-l   { font-size: clamp(34px, 5.2vw, 88px); }
.h-m   { font-size: clamp(26px, 3vw, 48px); }
.lead  { font-size: clamp(22px, 2.4vw, 38px); line-height: 1.2; font-weight: 400; letter-spacing: -.01em; }
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.muted { color: var(--muted); }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 14vw, 200px); position: relative; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.theme-light { background: var(--light-bg); color: var(--light-fg); --muted: var(--light-muted); --line: var(--light-line); }
.rule { border-top: 1px solid var(--line); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference; color: #fff;
  transition: transform .5s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand > svg { width: 64px; height: auto; fill: currentColor; }
.brand-name { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; }
.nav { display: flex; gap: 34px; font-size: 15px; }
.nav a { position: relative; padding-block: 4px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header-tools { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 6px; font-size: 13px; letter-spacing: .08em; }
.lang button { opacity: .45; transition: opacity .3s; }
.lang button.is-active { opacity: 1; }
.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle > span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-toggle > span:nth-child(1) { top: 17px; }
.menu-toggle > span:nth-child(2) { top: 25px; }
body.menu-open .menu-toggle > span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.menu-open .menu-toggle > span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Mobile menu overlay */
.menu-overlay {
  position: fixed; inset: 0; z-index: 40; background: var(--fg); color: var(--bg);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 120px var(--gutter) 40px;
}
body.menu-open .menu-overlay { clip-path: inset(0 0 0 0); }
.menu-overlay a { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 12vw, 90px); line-height: 1; display: block; padding-block: 6px; }
.menu-overlay .menu-foot { margin-top: 40px; display: flex; justify-content: space-between; font-size: 14px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  transition: clip-path 1s var(--ease) .2s; clip-path: inset(0 0 0 0);
}
.preloader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader svg { width: 140px; fill: var(--fg); }
.preloader .pl-count { position: absolute; bottom: var(--gutter); right: var(--gutter); font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(40px, 8vw, 120px); line-height: 1; }

/* ---------- Custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  width: 12px; height: 12px; border-radius: 50%; background: #fff; mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0); transition: width .35s var(--ease-out), height .35s var(--ease-out);
  display: grid; place-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #000; font-weight: 600;
}
.cursor.is-view { width: 96px; height: 96px; }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.is-view span { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Placeholder media ---------- */
.ph {
  position: relative; overflow: hidden; background: #1a1a1a; width: 100%;
  aspect-ratio: var(--ar, 16/9); border-radius: var(--radius);
}
.ph::before { /* gradient tone */
  content: ""; position: absolute; inset: -10%;
  background: var(--tone, linear-gradient(135deg, #2a2a2a, #111));
  transition: transform 1.2s var(--ease-out);
}
.ph::after { /* grain */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ph-label {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tone-sea    { --tone: radial-gradient(120% 90% at 20% 10%, #5c7f93 0%, #1d3442 45%, #0a1218 100%); }
.tone-dusk   { --tone: radial-gradient(120% 90% at 80% 20%, #c08a5b 0%, #5a3a2c 40%, #120c0a 100%); }
.tone-steel  { --tone: linear-gradient(160deg, #7c8086 0%, #34373b 50%, #0d0e0f 100%); }
.tone-moss   { --tone: radial-gradient(110% 90% at 30% 70%, #6f7a55 0%, #2c3222 45%, #0c0e09 100%); }
.tone-fire   { --tone: radial-gradient(100% 80% at 60% 80%, #d0603a 0%, #5d1e14 45%, #120605 100%); }
.tone-mono   { --tone: radial-gradient(120% 100% at 50% 0%, #9a9894 0%, #3a3936 45%, #0b0b0b 100%); }
.tone-night  { --tone: radial-gradient(120% 100% at 70% 30%, #3b4a7a 0%, #161b30 50%, #06070c 100%); }
.tone-sand   { --tone: linear-gradient(170deg, #d8c7a6 0%, #8a7656 45%, #2a2318 100%); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 120px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media .ph { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.55) 100%); z-index: 1; }
.hero > *:not(.hero-media) { position: relative; z-index: 2; }
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
body.is-loaded .hero-title .line > span { transform: none; }
body.is-loaded .hero-title .line:nth-child(2) > span { transition-delay: .08s; }
body.is-loaded .hero-title .line:nth-child(3) > span { transition-delay: .16s; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 40px; font-size: 14px; }
.hero-foot p { max-width: 380px; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1/1; opacity: 0; transform: translateY(40%); transition: opacity .6s, transform .8s var(--ease-out); }
.rotator > span.is-on { opacity: 1; transform: none; }
.scroll-cue { display: flex; align-items: center; gap: 12px; }
.scroll-cue i { width: 1px; height: 46px; background: currentColor; transform-origin: top; animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Rotating badge */
.badge { width: clamp(110px, 12vw, 170px); aspect-ratio: 1; position: relative; flex-shrink: 0; }
.badge .ring { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.badge .ring text { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: 11.5px; letter-spacing: .26em; fill: currentColor; }
.badge .mono { position: absolute; inset: 30%; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Statement ---------- */
.statement .lead { grid-column: 4 / span 8; }
.statement .eyebrow { grid-column: 1 / span 3; }
.statement .lead .w { opacity: .18; transition: opacity .4s; }
.statement .lead .w.is-lit { opacity: 1; }

/* ---------- Work grid ---------- */
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vw, 90px); flex-wrap: wrap; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(40px, 6vw, 100px) var(--gutter); }
.card { display: block; grid-column: span 6; }
.card:nth-child(4n+1) { grid-column: 1 / span 7; }
.card:nth-child(4n+2) { grid-column: 9 / span 4; margin-top: 24vw; }
.card:nth-child(4n+3) { grid-column: 2 / span 5; }
.card:nth-child(4n+4) { grid-column: 7 / span 6; margin-top: 10vw; }
.work-grid.is-uniform .card { grid-column: span 4 !important; margin-top: 0 !important; }
.card .ph { --ar: 4/5; }
.card:nth-child(4n+1) .ph, .card:nth-child(4n+4) .ph { --ar: 16/11; }
.card:hover .ph::before { transform: scale(1.06); }
.card-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.card-title { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.05; }
.card-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.card-tag { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.card.is-filtered { display: none; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 14px; transition: background .3s, color .3s; }
.filters button.is-active, .filters button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.theme-light .filters button.is-active, .theme-light .filters button:hover { background: var(--light-fg); color: var(--light-bg); }

/* ---------- Buttons / links ---------- */
.btn-line { display: inline-flex; align-items: center; gap: 14px; font-size: 16px; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.btn-line svg { width: 18px; transition: transform .5s var(--ease-out); }
.btn-line:hover svg { transform: translateX(6px); }
.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 30px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 500;
  transition: transform .4s var(--ease-out);
}
.btn-pill:hover { transform: scale(1.04); }
.theme-light .btn-pill { background: var(--light-fg); color: var(--light-bg); }

/* ---------- Services ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 80px 1fr 1fr 40px; gap: var(--gutter); align-items: center;
  padding-block: clamp(26px, 3.5vw, 50px); border-bottom: 1px solid var(--line); position: relative;
}
.svc-n { font-size: 14px; color: var(--muted); }
.svc-t { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5vw, 80px); line-height: .95; transition: transform .6s var(--ease-out); }
.svc-d { color: var(--muted); max-width: 440px; }
.svc-a svg { width: 32px; transition: transform .5s var(--ease-out); }
.svc:hover .svc-t { transform: translateX(16px); }
.svc:hover .svc-a svg { transform: rotate(-45deg); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 28px; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.5vw, 70px); padding-inline: 32px; white-space: nowrap; display: flex; align-items: center; gap: 64px; }
.marquee-track span::after { content: "✦"; font-size: .4em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Big CTA ---------- */
.cta { text-align: left; }
.cta a.display { display: inline-block; transition: opacity .3s; }
.cta a.display:hover { opacity: .6; }
.cta .arrow-big { display: inline-block; width: .7em; vertical-align: -.02em; margin-left: .15em; transition: transform .6s var(--ease-out); }
.cta a:hover .arrow-big { transform: rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(60px, 8vw, 120px) var(--gutter) 30px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); }
.foot-grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 16px; }
.foot-grid li { list-style: none; padding-block: 3px; }
.foot-grid a:hover { opacity: .6; }
.foot-logo { width: min(260px, 60%); filter: invert(1); mix-blend-mode: screen; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: clamp(50px, 7vw, 100px); font-size: 13px; color: var(--muted); }
.foot-word { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 15.6vw; line-height: .8; letter-spacing: -.03em; margin-top: 40px; white-space: nowrap; overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(150px, 20vw, 260px) var(--gutter) clamp(50px, 6vw, 90px); }
.page-hero .display { margin-top: 24px; }
.page-hero .intro { max-width: 640px; margin-top: 36px; color: var(--muted); font-size: clamp(17px, 1.4vw, 21px); }

/* ---------- Case study ---------- */
.case-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding-block: 40px; border-block: 1px solid var(--line); }
.case-info dt { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.gallery .g-full { grid-column: 1 / -1; }
.gallery .g-half { grid-column: span 6; }
.gallery .g-left { grid-column: 1 / span 7; }
.gallery .g-right { grid-column: 9 / span 4; align-self: end; }
.next-project { display: block; padding-block: clamp(80px, 12vw, 180px); text-align: center; border-top: 1px solid var(--line); }
.next-project .display { transition: letter-spacing .8s var(--ease-out); }
.next-project:hover .display { letter-spacing: .02em; }

/* ---------- About ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
.stat { border-top: 1px solid var(--line); padding-top: 20px; }
.stat b { display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; font-size: clamp(48px, 6vw, 100px); line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
.clients { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); aspect-ratio: 16/9; display: grid; place-items: center; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: clamp(13px, 1.3vw, 18px); text-align: center; padding: 10px; transition: background .4s, color .4s; }
.clients div:hover { background: var(--fg); color: var(--bg); }
.theme-light .clients div:hover { background: var(--light-fg); color: var(--light-bg); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); counter-reset: step; }
.process li { list-style: none; border-top: 1px solid var(--line); padding-top: 22px; }
.process li::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.process h3 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 22px; margin-bottom: 10px; }
.process p { color: var(--muted); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-mail { font-size: clamp(30px, 6.4vw, 110px); word-break: break-word; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 30px var(--gutter); }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: inherit;
  font: inherit; font-size: 20px; padding: 10px 0 14px; outline: none; border-radius: 0; transition: border-color .3s;
}
.field select option { color: #000; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: currentColor; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 15px; transition: background .3s, color .3s; }
.chips input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-media .ph { clip-path: inset(12% 6% 12% 6%); transition: clip-path 1.4s var(--ease-out); }
.reveal-media.is-in .ph { clip-path: inset(0 0 0 0); }

/* ---------- Page transition ---------- */
.page-wipe { position: fixed; inset: 0; z-index: 95; background: var(--fg); pointer-events: none; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease); }
.page-wipe.is-on { clip-path: inset(0 0 0 0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav, .header-tools .lang { display: none; }
  .menu-toggle { display: block; }
  .statement .lead, .statement .eyebrow { grid-column: 1 / -1; }
  .card, .card:nth-child(n), .work-grid.is-uniform .card { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .svc { grid-template-columns: 40px 1fr 32px; }
  .svc-d { grid-column: 2 / 3; grid-row: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .case-info, .stats, .process { grid-template-columns: 1fr 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
  .gallery > * { grid-column: 1 / -1 !important; }
  .form { grid-template-columns: 1fr; }
  .hero-foot .badge { display: none; }
}
@media (max-width: 560px) {
  .case-info, .stats, .process { grid-template-columns: 1fr; }
  .brand-name { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   RICERCA A DOMANDA
   ========================================================= */
.ask-open { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; border: 1px solid currentColor; border-radius: 999px; padding: 8px 14px; }
.ask-open svg { width: 16px; }
.ask {
  position: fixed; inset: 0; z-index: 80; background: var(--bg); color: var(--fg);
  overflow-y: auto; opacity: 0; transition: opacity .5s var(--ease-out);
}
.ask.is-open { opacity: 1; }
.ask-inner { max-width: 1200px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) var(--gutter) 80px; }
.ask-top { display: flex; justify-content: space-between; align-items: center; }
.ask-close { font-size: 14px; opacity: .7; }
.ask-close:hover { opacity: 1; }
.ask-form, .ask-home-form { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--fg); margin-top: clamp(40px, 8vh, 90px); }
.ask-input, .ask-home-form input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: inherit;
  font-family: var(--f-body); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 52px); letter-spacing: -.02em; padding: 10px 0 18px;
}
.ask-input::placeholder, .ask-home-form input::placeholder { color: var(--muted); opacity: .6; }
.ask-go, .ask-home-form button { width: clamp(40px, 4vw, 60px); flex-shrink: 0; transition: transform .4s var(--ease-out); }
.ask-go:hover, .ask-home-form button:hover { transform: translateX(6px); }
.ask-hint { font-size: 13px; margin-top: 14px; }
.ask-suggest { display: flex; gap: 16px; align-items: baseline; margin-top: 28px; flex-wrap: wrap; font-size: 14px; }
.ask-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ask-chips button { border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.ask-chips button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.theme-light .ask-chips button:hover { background: var(--light-fg); color: var(--light-bg); border-color: var(--light-fg); }
.ask-results { margin-top: clamp(40px, 6vw, 80px); opacity: 0; transform: translateY(20px); }
.ask-results.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); }
.ask-answer { max-width: 900px; }
.ask-answer .lead { margin-top: 18px; }
.ask-extra { margin-top: 18px; font-size: 18px; max-width: 760px; }
.ask-block { margin-top: 56px; }
.ask-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 20px; }
.ask-proj { display: flex; flex-direction: column; gap: 4px; }
.ask-proj .ph { --ar: 4/3; margin-bottom: 12px; }
.ask-proj:hover .ph::before { transform: scale(1.06); }
.ask-proj b { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 18px; }
.ask-proj span { font-size: 14px; }
.ask-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 56px; }
.ask-actions .btn-pill svg { width: 18px; }
body.ask-lock { overflow: hidden; }
.ask-home .ask-home-form { border-color: currentColor; margin-top: 30px; }
.ask-home .ask-chips { margin-top: 26px; }
@media (max-width: 960px) {
  .ask-open span { display: none; }
  .ask-open { padding: 10px; border: 0; }
  .ask-projects { grid-template-columns: 1fr; }
}

/* =========================================================
   DOCK — barra fissa in basso con ricerca e mini menu
   ========================================================= */
.dock {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  transform: translate(-50%, 140%); width: min(860px, calc(100% - 24px));
  transition: transform .9s var(--ease-out) .3s;
}
body.is-loaded .dock { transform: translate(-50%, 0); }
body.ask-lock .dock { transform: translate(-50%, 160%); transition-delay: 0s; }
.dock-bar, .dock-panel {
  background: rgba(22, 22, 22, .78); color: var(--fg);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(243, 241, 236, .12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.dock-bar { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; }
.dock-home { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--fg); }
.dock-home svg { width: 30px; fill: var(--bg); }
.dock-links { display: flex; gap: 2px; }
.dock-links a { padding: 12px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; transition: background .3s; }
.dock-links a:hover { background: rgba(243, 241, 236, .1); }
.dock-links a[aria-current="page"] { background: rgba(243, 241, 236, .14); }
.dock-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px; border-radius: 999px; background: rgba(243, 241, 236, .08);
  transition: background .3s;
}
.dock-search:focus-within { background: rgba(243, 241, 236, .16); }
.dock-search-ico svg { width: 18px; opacity: .7; }
.dock-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: inherit; font: inherit; font-size: 14px; }
.dock-search input::placeholder { color: rgba(243, 241, 236, .55); }
.dock-search kbd { font-family: inherit; font-size: 11px; opacity: .5; border: 1px solid rgba(243, 241, 236, .3); border-radius: 6px; padding: 2px 6px; }
.dock-menu.menu-toggle { display: block !important; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; position: relative; transition: background .3s; }
.dock-menu:hover { background: rgba(243, 241, 236, .1); }
.dock-menu > span { left: 14px; right: 14px; height: 1.5px; }
.dock-menu > span:nth-child(1) { top: 19px; }
.dock-menu > span:nth-child(2) { top: 26px; }
body.menu-open .dock-menu > span:nth-child(1), body.menu-open .dock-menu > span:nth-child(2) { top: 22.5px; }

.dock-panel {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px);
  border-radius: 28px; padding: 28px 28px 22px;
  opacity: 0; transform: translateY(16px) scale(.98); transform-origin: bottom center; pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
}
body.menu-open .dock-panel { opacity: 1; transform: none; pointer-events: auto; }
.dock-panel-links a {
  display: block; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.05; padding-block: 4px; transition: opacity .3s, transform .5s var(--ease-out);
}
.dock-panel-links:hover a { opacity: .35; }
.dock-panel-links a:hover { opacity: 1; transform: translateX(10px); }
.dock-panel-links a[aria-current="page"]::after { content: " •"; font-size: .5em; vertical-align: middle; }
.dock-panel-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(243, 241, 236, .12); font-size: 14px; }
.dock-social { display: flex; gap: 16px; flex-wrap: wrap; }
.dock-social a, .dock-meta a { opacity: .7; }
.dock-social a:hover, .dock-meta a:hover { opacity: 1; }
.dock-meta { display: flex; gap: 20px; align-items: center; }
.dock-panel .lang { display: flex !important; }

/* spazio per non coprire il fondo pagina */
.site-footer { padding-bottom: 110px; }
.menu-overlay { display: none; }

@media (max-width: 960px) {
  .dock { bottom: 12px; }
  .dock-links, .dock-search kbd { display: none; }
}

/* =========================================================
   v3 — logo circolare in alto + barra compatta stile AKQA
   ========================================================= */
.brand > .logo-circle { width: clamp(72px, 7vw, 100px); height: auto; fill: currentColor; overflow: visible; }
.brand .logo-circle text { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 30px; letter-spacing: .5em; }
.brand .lc-ring { transform-origin: 100px 100px; transition: transform 1.4s var(--ease-out); }
.brand:hover .lc-ring { transform: rotate(360deg); }
.site-header { padding-block: 18px; }

/* Barra compatta */
.dock { width: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.dock-bar { gap: 4px; padding: 4px; box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.dock-home { width: 36px; height: 36px; }
.dock-home svg { width: 22px; }
.dock-search { flex: 0 0 auto; width: 200px; height: 36px; padding: 0 12px; gap: 8px; transition: width .5s var(--ease-out), background .3s; }
.dock-search:focus-within { width: 280px; }
.dock-search-ico svg { width: 15px; }
.dock-search input { font-size: 13px; }
.dock-search kbd, .dock-links { display: none; }
.dock-menu.menu-toggle {
  width: auto; height: 36px; border-radius: 999px; padding: 0 14px 0 16px;
  display: inline-flex !important; align-items: center; gap: 10px; font-size: 13px; background: var(--fg); color: var(--bg);
}
.dock-menu:hover { background: var(--fg); opacity: .9; }
.dock-menu b { font-weight: 500; }
.dock-menu i { position: relative; width: 14px; height: 10px; display: block; }
.dock-menu i span { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.dock-menu i span:nth-child(1) { top: 2px; }
.dock-menu i span:nth-child(2) { top: 7px; }
body.menu-open .dock-menu i span:nth-child(1) { top: 4.5px; transform: rotate(45deg); }
body.menu-open .dock-menu i span:nth-child(2) { top: 4.5px; transform: rotate(-45deg); }

.dock-panel { left: 50%; right: auto; width: min(380px, calc(100vw - 24px)); translate: -50% 0; border-radius: 22px; padding: 22px 22px 18px; }
.dock-panel-links a { font-size: 30px; padding-block: 2px; }
.dock-panel-foot { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 18px; padding-top: 14px; font-size: 13px; }
.dock-meta { width: 100%; justify-content: space-between; }

@media (max-width: 560px) {
  .dock-search { width: 150px; }
  .dock-search:focus-within { width: 190px; }
  .dock-menu b { display: none; }
  .dock-menu.menu-toggle { padding: 0; width: 36px; justify-content: center; }
}

/* =========================================================
   v4 — logo originale, dock abbinato, cambi di luce
   ========================================================= */
.brand > .logo-img { width: clamp(64px, 6.4vw, 92px); height: auto; transition: transform 1.2s var(--ease-out); }
.brand:hover > .logo-img { transform: rotate(-12deg) scale(1.04); }
.foot-logo { filter: none; mix-blend-mode: normal; }

/* Dock: logo circolare nello stesso tono della barra */
.dock-home { width: 40px; height: 40px; background: rgba(243, 241, 236, .08); padding: 3px; }
.dock-home img { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.dock-home:hover img { animation-duration: 4s; }
.dock-menu.menu-toggle { height: 40px; background: rgba(243, 241, 236, .08); color: #f3f1ec; }
.dock-menu.menu-toggle:hover { background: rgba(243, 241, 236, .16); opacity: 1; }
.dock-search { height: 40px; }


/* v5 — logo fermo, menu solo icona, hero che sfuma nella sezione successiva */
.dock-home img, .dock-home:hover img { animation: none; }
.dock-menu.menu-toggle { width: 40px; padding: 0; justify-content: center; gap: 0; }
.dock-menu i { width: 16px; }
.hero-media { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
.hero-media::after { background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.25) 100%); }

/* =========================================================
   v7 — sezioni a colori fissi (sempre leggibili) + barra stile AKQA
   ========================================================= */
.dock-home { display: none; }

/* Ogni sezione porta il proprio colore: niente dipende dallo scroll */
[data-mood] { background: var(--bg); color: var(--fg); }
[data-mood="ink"]   { --bg: #0b0b0b; --fg: #f3f1ec; --muted: #8d8b85; --line: rgba(243,241,236,.14); }
[data-mood="bone"]  { --bg: #f3f1ec; --fg: #0b0b0b; --muted: #6b6963; --line: rgba(11,11,11,.14); }
[data-mood="sea"]   { --bg: #0c2230; --fg: #eef2f1; --muted: #8fa5af; --line: rgba(238,242,241,.16); }
[data-mood="sand"]  { --bg: #d9ccb2; --fg: #17140f; --muted: #685d49; --line: rgba(23,20,15,.18); }
[data-mood="ember"] { --bg: #26100b; --fg: #f6ece4; --muted: #b39283; --line: rgba(246,236,228,.16); }
.hero[data-mood] { background: var(--bg); }
.theme-light { background: var(--bg); }
.statement .lead .w { opacity: .3; }

/* Header: logo bianco che si inverte da solo sulle sezioni chiare */
.site-header { mix-blend-mode: difference; color: #fff; }

/* Barra in basso stile AKQA: pillola nera piena, essenziale */
.dock { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.dock-bar {
  background: #0b0b0b; color: #f3f1ec; border: 1px solid rgba(243,241,236,.16);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.25); padding: 4px 4px 4px 6px; gap: 2px;
}
.dock-search { background: transparent; box-shadow: none; width: 230px; height: 40px; padding: 0 12px 0 14px; border-radius: 999px; }
.dock-search:focus-within { background: rgba(243,241,236,.08); width: 300px; }
.dock-search input { font-size: 14px; color: #f3f1ec; }
.dock-search input::placeholder { color: rgba(243,241,236,.55); opacity: 1; }
.dock-search-ico svg { width: 16px; opacity: .8; }
.dock-menu.menu-toggle { width: 40px; height: 40px; padding: 0; border-radius: 50%; background: #f3f1ec; color: #0b0b0b; box-shadow: none; }
.dock-menu.menu-toggle:hover { background: #fff; }
.dock-panel {
  background: #0b0b0b; color: #f3f1ec; border: 1px solid rgba(243,241,236,.16);
  -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 40px rgba(0,0,0,.3);
}
.dock-panel-foot { border-top-color: rgba(243,241,236,.14); }
@media (max-width: 560px) { .dock-search { width: 170px; } .dock-search:focus-within { width: 200px; } }

/* =========================================================
   v8 — Scene di scroll "alla Apple" (attive solo con .fx-on)
   ========================================================= */
.ltr { display: inline-block; will-change: transform; }
[data-letters] { display: inline-block; overflow: hidden; padding-block: .06em .1em; vertical-align: bottom; }

/* Hero */
.fx-on .scene-hero { height: 165vh; position: relative; }
.fx-on .scene-hero .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
.fx-on .hero-media { -webkit-mask-image: none; mask-image: none; will-change: clip-path; }
.fx-on .hero-media, .fx-on .hero-media .ph, .fx-on .hero-title .line { will-change: transform, clip-path, filter; transition: none; }
.fx-on .hero-title .line { overflow: visible; }
.fx-on .scene-hero .hero { transition: none; }
.fx-on .hero-title { transform-origin: left bottom; }

/* Chi sono */
.scene-statement { padding-block: clamp(80px, 14vw, 200px); }
.fx-on .scene-statement { height: 230vh; padding-block: 0; position: relative; }
.fx-on .scene-statement .scene-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.fx-on .scene-statement .scene-stage > .grid-12 { width: 100%; }
.fx-on .statement .lead { font-size: clamp(26px, 3.4vw, 54px); line-height: 1.15; }
.fx-on .statement .lead .w { transition: none; will-change: opacity, filter; }

/* Showreel */
.scene-reel { position: relative; }
.reel-stage { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.fx-on .scene-reel { height: 320vh; }
.fx-on .reel-stage { position: sticky; top: 0; }
.reel-big {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0;
  font-size: 14.5vw; white-space: nowrap; line-height: .8; letter-spacing: -.04em; will-change: transform, opacity;
}
.reel-media { position: absolute; inset: 0; z-index: 1; will-change: clip-path; }
.reel-media .ph { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 0; will-change: transform; }
.reel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.55)); pointer-events: none; }
.reel-caption { position: absolute; left: 0; right: 0; bottom: 14vh; z-index: 2; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.reel-caption .btn-pill { background: #f3f1ec; color: #0b0b0b; }
.fx-on .reel-caption { opacity: 0; }

/* Lavori: parallax interno all'immagine */
.fx-on .card .ph::before { transform: translate3d(0, var(--py, 0px), 0) scale(var(--zs, 1.1)); transition: none; }
.fx-on .reveal-media .ph::before, .fx-on .gallery .ph::before { transform: scale(var(--zs, 1.06)); transition: none; }
.fx-on .card { will-change: translate; }
.fx-on .svc { will-change: translate, opacity; }

/* Clienti: inclinazione legata alla velocità */
.marquee { transition: transform .3s ease-out; }

/* v9 — nuovi colori per Clienti e "Parliamone" */
[data-mood="mist"]  { --bg: #dfe6ea; --fg: #0b1820; --muted: #5d6d76; --line: rgba(11,24,32,.16); }
[data-mood="ocean"] { --bg: #123a50; --fg: #f1f5f6; --muted: #9fb7c3; --line: rgba(241,245,246,.18); }

/* =========================================================
   v10 — pagina Contatti ordinata
   ========================================================= */
.contact-hero { padding-bottom: clamp(60px, 8vw, 110px); }
.mail-row { display: flex; align-items: center; gap: 18px 24px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 60px); padding-top: 28px; border-top: 1px solid var(--line); }
.contact-mail {
  font-family: var(--f-body); font-weight: 400; letter-spacing: -.03em; text-transform: none;
  font-size: clamp(26px, 5.2vw, 76px); line-height: 1.05; overflow-wrap: anywhere; min-width: 0;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .6s var(--ease-out);
}
.contact-mail:hover { background-size: 100% 2px; }
.copy-btn { border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-size: 14px; transition: background .3s, color .3s; }
.copy-btn:hover, .copy-btn.is-done { background: var(--fg); color: var(--bg); }

.contact-body { padding-block: clamp(70px, 9vw, 130px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-body .form { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.field-label { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.field input, .field textarea, .field select { font-size: 18px; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer; }
.select-wrap::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.field textarea { min-height: 140px; }
.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-note { font-size: 14px; }

.contact-info { display: flex; flex-direction: column; gap: 0; position: sticky; top: 110px; }
.info-block { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 26px; border-top: 1px solid var(--line); }
.info-block:last-child { border-bottom: 1px solid var(--line); }
.info-main { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; font-weight: 500; overflow-wrap: anywhere; }
a.info-main:hover { opacity: .6; }
.info-block .btn-line { margin-top: 6px; font-size: 15px; }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}
@media (max-width: 560px) {
  .contact-body .form { grid-template-columns: 1fr; }
}
.field .chips label { position: relative; display: inline-block; margin: 0; font-size: 15px; letter-spacing: 0; text-transform: none; color: inherit; }
.chips { gap: 10px 8px; }

/* v11 — Team Androma Studio */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin-top: clamp(50px, 7vw, 100px); }
.member h3 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(17px, 1.5vw, 22px); margin-top: 18px; line-height: 1.1; }
.member p { font-size: 15px; margin-top: 6px; }
.net-box { position: relative; aspect-ratio: 4/5; max-width: 100%; border: 1px dashed var(--line); border-radius: var(--radius); display: grid; place-items: center; color: var(--fg); }
.net-box svg { width: 70%; height: auto; }
.net-plus { position: absolute; right: 16px; top: 10px; font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1; }
@media (max-width: 960px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-logo { margin-top: 26px; }
.team-logo img { width: clamp(220px, 28vw, 420px); height: auto; }
@media (max-width: 960px) {
  .grid-12 > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .team-logo img { width: min(300px, 75vw); }
}

/* v12 — Clienti: muro di loghi + elenco per settore */
.clients { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.clients .client { aspect-ratio: 3/2; padding: 14px; }
.clients .client span { font-size: clamp(12px, 1.05vw, 16px); line-height: 1.15; }
.clients .client img { max-width: 70%; max-height: 46%; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .85; transition: filter .4s, opacity .4s; }
.clients .client:hover img { filter: none; opacity: 1; }
.client-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); margin-top: 28px; }
.cgroup h3 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .02em; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.cgroup ul { list-style: none; display: grid; gap: 6px; }
.cgroup li { color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .client-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-groups { grid-template-columns: 1fr; }
}
/* logo in alto sempre bianco */
.site-header { mix-blend-mode: normal; color: #fff; }
.brand > .logo-img, body[data-mood] .brand > .logo-img { filter: none !important; }
.site-header .lang { color: #fff; }

.studio-title { font-size: clamp(40px, 11vw, 200px); overflow-wrap: anywhere; }
/* menu abbinato alla barra */
.dock-menu.menu-toggle { background: rgba(243,241,236,.08); color: #f3f1ec; box-shadow: inset 0 0 0 1px rgba(243,241,236,.12); }
.dock-menu.menu-toggle:hover, body.menu-open .dock-menu.menu-toggle { background: rgba(243,241,236,.16); }
.studio-title { font-size: 7.4vw; white-space: nowrap; overflow-wrap: normal; }

/* v13 — Cortometraggi in evidenza */
[data-mood="cinema"] { --bg: #000; --fg: #f3f1ec; --muted: #8f8b84; --line: rgba(243,241,236,.14); }
.film-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(50px, 6vw, 90px) var(--gutter); margin-top: clamp(40px, 6vw, 80px); }
.film-still { --ar: 2.39/1; }
.film-feature { grid-column: 1 / -1; position: relative; }
.film-feature .film-still { --ar: 2.39/1; }
.film-over { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 2.39/1; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; padding: clamp(18px, 3vw, 44px); pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); color: #fff; }
.film-over .eyebrow { color: rgba(255,255,255,.75); }
.film-over h3 { font-size: clamp(30px, 6vw, 96px); line-height: .9; }
.film-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); margin-top: 28px; align-items: start; }
.film-body .lead { font-size: clamp(19px, 1.8vw, 28px); }
.film-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-block: 18px; }
.film-body .film-meta { margin-top: 0; }
.film-meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.film-meta dd { margin-top: 4px; font-size: 15px; }
.film-title { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(20px, 2vw, 30px); margin: 20px 0 8px; }
.film p.muted { font-size: 15px; max-width: 60ch; }
@media (max-width: 760px) {
  .film-list, .film-body { grid-template-columns: 1fr; }
}
.film-feature .ph-label { top: 14px; bottom: auto; }


/* =========================================================
   v14 — Ottimizzazione iPhone / touch
   ========================================================= */
html { -webkit-tap-highlight-color: transparent; }
body { overscroll-behavior-y: none; }
a, button, input, select, textarea, label { touch-action: manipulation; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Notch e barra home */
.site-header { padding-top: calc(18px + env(safe-area-inset-top, 0px)); padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.dock { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
.ask-inner { padding-top: calc(clamp(24px, 4vw, 56px) + env(safe-area-inset-top, 0px)); padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
.ask { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* Campi a 16px: iOS non fa più lo zoom quando li tocchi */
.dock-search input, .field input, .field textarea, .field select, .ask-input, .ask-home-form input { font-size: max(16px, 1em); }

@media (hover: none), (pointer: coarse) {
  /* niente effetti hover che restano "bloccati" dopo il tocco */
  .svc:hover .svc-t, .svc:hover .svc-a svg, .btn-pill:hover, .brand:hover > .logo-img, .btn-line:hover svg, .cta a:hover .arrow-big { transform: none; }
  .dock-panel-links:hover a { opacity: 1; }
  .dock-panel-links a:hover { transform: none; }
  .next-project:hover .display { letter-spacing: -.02em; }
  .clients div:hover, .theme-light .clients div:hover { background: transparent; color: inherit; }
  .filters button:not(.is-active):hover, .ask-chips button:hover { background: transparent; color: inherit; border-color: var(--line); }
  .cta a.display:hover, .foot-grid a:hover, a.info-main:hover { opacity: 1; }
  /* stato premuto al posto dell'hover */
  .btn-pill:active, .dock-menu:active, .copy-btn:active, .filters button:active, .ask-chips button:active { transform: scale(.96); }
  .svc:active .svc-t { opacity: .6; }
  .card:active .ph { opacity: .85; }
}

@media (max-width: 560px) {
  /* bersagli di tocco da almeno 44px */
  .dock-bar { padding: 4px 4px 4px 6px; }
  .dock-search { height: 44px; width: min(64vw, 240px); }
  .dock-search:focus-within { width: min(68vw, 260px); }
  .dock-menu.menu-toggle { width: 44px; height: 44px; }
  .header-tools .lang { display: flex !important; font-size: 13px; }
  .header-tools .lang button { min-width: 32px; min-height: 44px; }
  .dock-panel { width: calc(100vw - 24px); }
  .dock-panel-links a { font-size: 34px; padding-block: 6px; }
  .dock-panel-foot { font-size: 14px; }
  .dock-social a, .dock-meta a { padding-block: 6px; }
  .filters button, .ask-chips button, .chips span, .copy-btn { min-height: 44px; display: inline-flex; align-items: center; }
  /* tipografia più compatta su schermo stretto */
  .page-hero { padding-top: calc(130px + env(safe-area-inset-top, 0px)); }
  .page-hero .intro { font-size: 17px; }
  .section { padding-block: 80px; }
  .hero { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-foot .scroll-cue { display: none; }
  .fx-on .statement .lead { font-size: 25px; }
  .reel-big { font-size: 22vw; }
  .reel-caption { bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .work-head { margin-bottom: 36px; }
  .work-grid { row-gap: 56px; }
  .marquee-track span { gap: 40px; padding-inline: 20px; }
  .foot-grid { gap: 36px 20px; }
  .film-over h3 { font-size: 30px; }
  .contact-mail { font-size: 26px; }
  .cgroup li { font-size: 15px; }
}
.svc-list, .work-grid, .film-list { overflow-x: clip; }
html, body { overflow-x: clip; }
@media (max-width: 560px) { .header-tools .lang button { display: inline-flex; align-items: center; justify-content: center; } }
@media (max-width: 560px) { .lang button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; } }
.lang { align-items: center; }
@media (max-width: 960px) { .work-head .filters:has([data-view]) { display: none; } }

/* =========================================================
   v15 — Blog
   ========================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 5vw, 70px) var(--gutter); }
.post-grid-full .post-big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); align-items: end; }
.post-grid-full .post-big .ph { grid-row: span 4; }
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-big { gap: 14px; }
.post-card .ph { margin-bottom: 8px; }
.post-card:hover .ph::before { transform: scale(1.05); }
.post-meta { display: flex; gap: 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-meta span + span::before { content: "·"; margin-right: 14px; }
.post-title { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(19px, 1.7vw, 26px); line-height: 1.05; text-wrap: balance; }
.post-big .post-title { font-size: clamp(28px, 3.4vw, 54px); }
.post-card p.muted { font-size: 15px; max-width: 55ch; }

.article { padding-top: calc(clamp(130px, 16vw, 200px) + env(safe-area-inset-top, 0px)); padding-bottom: clamp(60px, 8vw, 120px); }
.article-head { max-width: 980px; }
.article-title { margin-top: 18px; text-wrap: balance; }
.article-excerpt { margin-top: 26px; max-width: 760px; color: var(--muted); }
.article-cover { margin-top: clamp(40px, 6vw, 80px); }
.prose { max-width: 70ch; margin: clamp(40px, 6vw, 80px) auto 0; font-size: 19px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; margin-top: 1.8em; }
.prose h3 { font-size: 22px; font-weight: 600; margin-top: 1.5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { width: 100%; height: auto; border-radius: var(--radius); margin-block: 1.4em; }
.prose blockquote { border-left: 2px solid currentColor; padding-left: 20px; font-size: 1.15em; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose code { font-size: .9em; background: rgba(243,241,236,.08); padding: 2px 6px; border-radius: 4px; }
.article .next-project { margin-top: clamp(60px, 8vw, 120px); }
.back-link svg { transform: rotate(180deg); }
.back-link:hover svg { transform: rotate(180deg) translateX(6px); }
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid-full .post-big { grid-template-columns: 1fr; }
  .post-grid-full .post-big .ph { grid-row: auto; }
}
@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
}

/* v16 — slogan "Le immagini che contano": titolo leggermente più compatto per stare in una riga anche su iPhone */
.hero-title.h-xxl { font-size: clamp(38px, 11.4vw, 206px); }

/* =========================================================
   v17 — MIRINO in home (stesso stile della pagina di manutenzione)
   ========================================================= */
.hero { --vf-top: 140px; --vf-bottom: 104px; --vf-side: max(calc(var(--gutter) / 2), 10px); --vf-line: rgba(243,241,236,.9); --rec: #ff4b33; --af: #9be38a; }
.vf-hud { position: absolute; z-index: 2; inset: var(--vf-top) var(--vf-side) var(--vf-bottom); pointer-events: none; color: rgba(243,241,236,.62); transform-origin: center; will-change: opacity, transform; }
.hero > .vf-hud, .hero > .vf-af { position: absolute; }
/* angoli dell'inquadratura: partono dal centro e si aprono */
.vf-c { position: absolute; width: 34px; height: 34px; border: 0 solid var(--vf-line); transition: transform 1.4s .35s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
.vf-c1 { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; transform: translate(26vw, 24vh); }
.vf-c2 { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; transform: translate(-26vw, 24vh); }
.vf-c3 { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; transform: translate(26vw, -24vh); }
.vf-c4 { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; transform: translate(-26vw, -24vh); }
body.is-loaded .vf-c { transform: none; }
/* griglia dei terzi */
.vf-thirds { position: absolute; inset: 0; opacity: 0; transition: opacity 2s 1.1s; }
body.is-loaded .vf-thirds { opacity: 1; }
.vf-thirds i { position: absolute; background: rgba(243,241,236,.07); }
.vf-thirds i:nth-child(1) { left: 33.333%; top: 0; bottom: 0; width: 1px; }
.vf-thirds i:nth-child(2) { left: 66.666%; top: 0; bottom: 0; width: 1px; }
.vf-thirds i:nth-child(3) { top: 33.333%; left: 0; right: 0; height: 1px; }
.vf-thirds i:nth-child(4) { top: 66.666%; left: 0; right: 0; height: 1px; }
/* scritte del mirino */
.vf-tag { position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px 18px; font: 600 11px/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity 1s 1.3s; }
body.is-loaded .vf-tag { opacity: 1; }
.vf-tl { top: 0; left: 0; } .vf-tr { top: 0; right: 0; } .vf-br { bottom: 0; right: 0; }
.vf-rec { display: inline-flex; align-items: center; gap: 8px; color: #f3f1ec; }
.vf-rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 12px var(--rec); animation: vfBlink 1.2s steps(2, jump-none) infinite; }
.vf-tc { color: #f3f1ec; font-size: 12px; letter-spacing: .12em; }
.vf-batt { display: inline-flex; gap: 3px; }
.vf-batt b { width: 4px; height: 9px; border-radius: 1px; background: currentColor; }
.vf-batt b:last-child { animation: vfBlink 2.4s steps(2, jump-none) infinite; }
@keyframes vfBlink { 50% { opacity: .15; } }
/* le specifiche in basso a destra lasciano posto all'indicatore "Scorri" */
.vf-specs { transform: translateY(-64px); }
/* trattino rosso prima del sopratitolo, come nella pagina di manutenzione */
.hero .vf-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.hero .vf-eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--rec); flex-shrink: 0; }
/* titolo che entra "a fuoco" */
.hero-title { filter: blur(16px); transition: filter 2s .25s var(--ease-out, cubic-bezier(.16,1,.3,1)); }
body.is-loaded .hero-title { filter: blur(0); }
/* grana pellicola sull'apertura */
.hero-media::before { content: ""; position: absolute; inset: -50%; z-index: 2; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: vfGrain 1s steps(6) infinite; }
@keyframes vfGrain { 0%{transform:translate(0,0)} 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-5%)} 60%{transform:translate(-6%,-2%)} 80%{transform:translate(5%,4%)} 100%{transform:translate(0,0)} }
/* quadratino di messa a fuoco (solo mouse) */
.vf-af { left: 0; top: 0; z-index: 3; width: 64px; height: 48px; margin: -24px 0 0 -32px; border: 1.5px solid #f3f1ec; pointer-events: none; opacity: 0;
  transition: opacity .4s, border-color .25s, width .3s, height .3s, margin .3s; }
.vf-af.on { opacity: .75; }
.vf-af.locked { border-color: var(--af); width: 54px; height: 40px; margin: -20px 0 0 -27px; }
@media (hover: none), (pointer: coarse) { .vf-af { display: none; } }
@media (max-width: 760px) {
  .hero { --vf-top: 108px; --vf-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .vf-c { width: 22px; height: 22px; }
  .vf-tag { padding: 10px 12px; gap: 10px; font-size: 10px; letter-spacing: .12em; }
  .vf-tc { font-size: 11px; }
  .vf-specs, .vf-opt { display: none; }
  .vf-thirds { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-c, body.is-loaded .vf-c { transform: none; transition: none; }
  .hero-title, body.is-loaded .hero-title { filter: none; transition: none; }
  .vf-rec i, .vf-batt b, .hero-media::before { animation: none; }
}
