/* =========================================================
   Helvetica Drinks GmbH — dark, cinematografico, mobile-first
   ========================================================= */

@font-face { font-family: "Instrument Serif"; src: url("assets/serif.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("assets/serif-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/inter-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/inter-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/inter-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1a1a1a;
  --cream: #f2ede3;
  --beige: #e9e1d1;
  --gold: #c8a25d;
  --gold-2: #e0c48c;
  --gold-dark: #8a6a31;
  --txt: rgba(242, 237, 227, .92);
  --dim: rgba(242, 237, 227, .58);
  --faint: rgba(242, 237, 227, .14);
  --line: rgba(242, 237, 227, .12);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--txt); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 4px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }
.skip-link { position: absolute; top: -60px; left: 12px; z-index: 200; padding: 10px 16px; background: var(--gold); color: var(--bg); }
.skip-link:focus { top: 12px; }

/* grana da pellicola */
.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%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");
}

/* ---------- Tipografia ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: .95; color: var(--cream); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold); }
h2 { font-size: clamp(46px, 8vw, 118px); }
.label { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.sec-head { margin-bottom: clamp(44px, 7vw, 100px); }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-note { color: var(--dim); max-width: 340px; font-size: 15px; }

/* ---------- Pulsanti ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn .arr { transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold::before { background: var(--cream); }
.btn-glass { color: var(--cream); border: 1px solid rgba(242,237,227,.35); background: rgba(10,10,10,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass::before { background: var(--cream); }
.btn-glass:hover { color: var(--bg); border-color: var(--cream); }
.btn-full { width: 100%; }
.btn-line { font-size: 14px; font-weight: 500; padding-bottom: 4px; border-bottom: 1px solid var(--gold); transition: color .3s; }
.btn-line:hover { color: var(--gold); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; padding: 22px 0; transition: padding .5s var(--ease), background .5s var(--ease); }
.header.scrolled { padding: 12px 0; background: rgba(10,10,10,.7); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.header-inner { display: flex; align-items: center; gap: 40px; }
.logo { margin-right: auto; position: relative; z-index: 3; }
.logo img { width: 210px; transition: width .5s var(--ease); }
.header.scrolled .logo img { width: 180px; }
.nav-desktop { display: flex; gap: 34px; }
.nav-desktop a { position: relative; font-size: 14px; color: var(--txt); }
.nav-desktop a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-desktop a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; position: relative; z-index: 3; align-items: center; gap: 12px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; border: 1px solid rgba(242,237,227,.3); background: rgba(10,10,10,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.menu-word { font-size: 13px; font-weight: 500; letter-spacing: .06em; }
.menu-lines { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); }
.menu-lines i { position: absolute; left: 9px; right: 9px; height: 1.5px; background: var(--bg); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-lines i:nth-child(1) { top: 12px; }
.menu-lines i:nth-child(2) { top: 17px; }
.menu-open .menu-lines i:nth-child(1) { top: 14.5px; transform: rotate(45deg); }
.menu-open .menu-lines i:nth-child(2) { top: 14.5px; transform: rotate(-45deg); }

/* ---------- Overlay menu ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--pad) calc(32px + env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .overlay { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open { overflow: hidden; }
.overlay-nav { display: flex; flex-direction: column; }
.overlay-nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(44px, 12vw, 96px); line-height: 1.05; color: var(--cream);
  opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}
.overlay-nav a span { font-family: var(--sans); font-size: 12px; color: var(--gold); letter-spacing: .1em; transform: translateY(-1.4em); }
.overlay-nav a:hover { color: var(--gold); }
.menu-open .overlay-nav a { opacity: 1; transform: none; }
.menu-open .overlay-nav a:nth-child(1) { transition-delay: .15s; }
.menu-open .overlay-nav a:nth-child(2) { transition-delay: .2s; }
.menu-open .overlay-nav a:nth-child(3) { transition-delay: .25s; }
.menu-open .overlay-nav a:nth-child(4) { transition-delay: .3s; }
.menu-open .overlay-nav a:nth-child(5) { transition-delay: .35s; }
.overlay-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.overlay-foot a { color: var(--gold); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; height: 100vh; height: 100svh; min-height: 600px; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); will-change: transform; animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,0) 28%, rgba(10,10,10,.25) 55%, rgba(10,10,10,.96) 100%),
    linear-gradient(90deg, rgba(10,10,10,.55), rgba(10,10,10,0) 60%);
}
.hero-content { padding-bottom: clamp(36px, 7vh, 80px); }
.hero-kicker { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 22px; }
.hero-title { font-size: clamp(58px, 11.5vw, 184px); line-height: .9; letter-spacing: -.035em; margin-bottom: clamp(28px, 4vh, 48px); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; transform: translateY(105%); transition: transform 1.4s var(--ease); }
.loaded .hero-title .line > span { transform: none; }
.loaded .hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px 60px; flex-wrap: wrap; }
.hero-text { max-width: 440px; color: var(--txt); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.reveal-up { opacity: 0; transform: translateY(20px); transition: opacity 1.2s var(--ease) .5s, transform 1.2s var(--ease) .5s; }
.loaded .reveal-up { opacity: 1; transform: none; }
.loaded .hero-bottom .reveal-up:nth-child(2) { transition-delay: .65s; }
.scroll-cue { position: absolute; right: var(--pad); top: 50%; width: 1px; height: 80px; background: var(--faint); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 30px; background: var(--gold); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-30px); } to { transform: translateY(80px); } }

/* ---------- Nastro ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(18px, 3vw, 34px) 0; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marq 36s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(44px, 7vw, 110px); line-height: 1; padding: 0 .35em; color: transparent; -webkit-text-stroke: 1px rgba(200,162,93,.7); white-space: nowrap; }
.marquee span:nth-of-type(even) { color: var(--cream); -webkit-text-stroke: 0; font-style: italic; }
.marquee b { color: var(--gold); font-size: clamp(14px, 1.6vw, 22px); font-weight: 400; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Chi siamo ---------- */
.about { padding: clamp(100px, 16vw, 220px) 0 clamp(90px, 12vw, 160px); }
.big-text { font-family: var(--serif); font-size: clamp(32px, 4.8vw, 74px); line-height: 1.08; letter-spacing: -.02em; max-width: 1240px; }
.big-text .w { color: rgba(242,237,227,.16); transition: color .5s ease; }
.big-text .w.on { color: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; margin-top: clamp(70px, 10vw, 140px); }
.about-photo { overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 2; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.8s var(--ease); }
.clip-reveal { clip-path: inset(14% 10% 14% 10% round 24px); transition: clip-path 1.6s var(--ease); }
.clip-reveal.in { clip-path: inset(0 0 0 0 round 4px); }
.clip-reveal.in img { transform: scale(1); }
.about-side { display: flex; flex-direction: column; }
.stat { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; padding: 24px 0; border-top: 1px solid var(--line); }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 5vw, 76px); line-height: .9; color: var(--gold); }
.stat span { color: var(--dim); font-size: 15px; }

/* ---------- Servizi: card impilate ---------- */
.services { padding: clamp(90px, 12vw, 160px) 0 clamp(60px, 8vw, 120px); background: var(--bg); }
.stack { display: grid; gap: clamp(24px, 4vw, 48px); padding-bottom: 6vh; }
.stack-card {
  position: sticky; top: calc(100px + var(--i) * 26px);
  display: grid; grid-template-columns: 1fr 1fr; min-height: min(78vh, 640px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: 0 -30px 60px -30px rgba(0,0,0,.9);
}
.sc-img { position: relative; overflow: hidden; }
.sc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.stack-card:hover .sc-img img { transform: scale(1.05); }
.sc-body { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 4vw, 60px); }
.sc-num { font-family: var(--serif); font-size: clamp(90px, 12vw, 180px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(200,162,93,.55); margin-bottom: auto; }
.sc-body h3 { font-size: clamp(42px, 5vw, 72px); margin: 30px 0 16px; }
.sc-body p { color: var(--dim); max-width: 440px; margin-bottom: 26px; }
.sc-body li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 14px; }
.sc-body li::before { content: "—"; color: var(--gold); }

/* ---------- Prodotti: pannelli ---------- */
.products { padding: clamp(90px, 12vw, 160px) 0; }
.panels { display: flex; gap: 10px; height: min(70vh, 620px); }
.panel {
  position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 18px; text-align: left; isolation: isolate;
  transition: flex 1s var(--ease);
}
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center / cover no-repeat var(--bg-3);
  filter: grayscale(.85) brightness(.45); transform: scale(1.08); transition: filter 1s var(--ease), transform 1.4s var(--ease);
}
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,10,0) 40%, rgba(10,10,10,.9)); }
.panel.is-open { flex: 5; }
.panel.is-open::before { filter: none; transform: scale(1); }
.p-num { position: absolute; top: 22px; left: 22px; font-size: 12px; letter-spacing: .1em; color: var(--gold); }
.p-name {
  position: absolute; left: 22px; bottom: 26px; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--cream);
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; transition: font-size .8s var(--ease);
}
.p-desc { position: absolute; left: 30px; right: 30px; bottom: 30px; max-width: 380px; color: var(--txt); font-size: 15px; opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .8s var(--ease); }
.panel.is-open .p-name { writing-mode: horizontal-tb; transform: none; left: 30px; bottom: 80px; font-size: clamp(52px, 6vw, 96px); }
.panel.is-open .p-desc { opacity: 1; transform: none; transition-delay: .35s; }
.panel.is-open .p-desc::after { content: "  Richiedi info →"; color: var(--gold); font-weight: 500; }

/* ---------- Per chi (chiaro) ---------- */
.clients { background: var(--beige); color: #1b1b1b; padding: clamp(90px, 12vw, 160px) 0; border-radius: 28px 28px 0 0; }
.clients h2 { color: #111; }
.clients h2 em { color: var(--gold-dark); }
.clients .label { color: var(--gold-dark); }
.client-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(0,0,0,.15); }
.client { padding: 34px 34px 10px 0; }
.client + .client { padding-left: 34px; border-left: 1px solid rgba(0,0,0,.15); }
.client span { display: block; font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: var(--gold-dark); margin-bottom: 26px; }
.client h3 { color: #111; font-size: clamp(30px, 3vw, 42px); margin-bottom: 14px; line-height: 1; }
.client p { color: rgba(0,0,0,.62); font-size: 15.5px; }

/* ---------- Metodo ---------- */
.method { background: var(--beige); padding: 0 0 clamp(90px, 12vw, 160px); color: #1b1b1b; }
.method .label { color: var(--gold-dark); }
.method h2 { color: #111; font-size: clamp(46px, 6vw, 96px); }
.method h2 em { color: var(--gold-dark); }
.method .sec-note { color: rgba(0,0,0,.6); margin-top: 24px; }
.method-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; padding-top: clamp(80px, 10vw, 140px); border-top: 1px solid rgba(0,0,0,.15); }
.method-head { position: sticky; top: 120px; }
.step { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 34px 0; border-top: 1px solid rgba(0,0,0,.15); }
.step:last-child { border-bottom: 1px solid rgba(0,0,0,.15); }
.st-n { font-family: var(--serif); font-size: 58px; line-height: .9; color: var(--gold-dark); }
.step h3 { color: #111; font-size: clamp(30px, 3vw, 40px); line-height: 1; margin-bottom: 10px; }
.step p { color: rgba(0,0,0,.62); }

/* ---------- Valori ---------- */
.values { padding: clamp(90px, 12vw, 150px) 0; }
.values .sec-head { margin-bottom: clamp(40px, 5vw, 70px); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); }
.value { position: relative; padding-top: 30px; }
.value::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--line); }
.value::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .2s; }
.value.in::after { transform: scaleX(1); }
.value h3 { font-size: clamp(30px, 2.6vw, 38px); line-height: 1; margin-bottom: 14px; }
.value p { color: var(--dim); font-size: 15px; }

/* ---------- Contatti ---------- */
.contact { padding: clamp(90px, 12vw, 150px) 0; border-top: 1px solid var(--line); }
.contact-title { font-size: clamp(110px, 24vw, 380px); line-height: .8; letter-spacing: -.05em; margin-bottom: clamp(50px, 7vw, 100px); }
.contact-title em { color: var(--gold); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact-info > p:first-child { font-size: clamp(18px, 1.6vw, 22px); color: var(--txt); max-width: 460px; margin-bottom: 34px; }
.mail-big { display: inline-flex; gap: 10px; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 50px); line-height: 1.1; color: var(--cream); border-bottom: 1px solid var(--gold); padding-bottom: 6px; transition: color .3s; word-break: break-all; }
.mail-big span { color: var(--gold); transition: transform .5s var(--ease); }
.mail-big:hover { color: var(--gold); }
.mail-big:hover span { transform: translate(4px, -4px); }
.addr { margin-top: 34px; color: var(--dim); font-size: 15px; }

.form { display: grid; gap: 8px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--cream); background: transparent;
  border: 0; border-bottom: 1px solid rgba(242,237,227,.25); border-radius: 0;
  padding: 28px 0 12px; -webkit-appearance: none; appearance: none; transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field label { position: absolute; left: 0; top: 28px; color: var(--dim); font-size: 17px; pointer-events: none; transform-origin: left top; transition: transform .4s var(--ease), color .4s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.72); color: var(--gold); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 24px 0 10px; }
.chips legend { font-size: 13px; color: var(--dim); padding-bottom: 10px; float: left; width: 100%; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(242,237,227,.25); font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.chips input:checked + span { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.chips input:focus-visible + span { outline: 1.5px solid var(--gold); outline-offset: 3px; }
.form .btn { margin-top: 22px; }
.form-error { color: #e3826b; font-size: 14px; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--dim); text-align: center; margin-top: 6px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 100px) 0 calc(24px + env(safe-area-inset-bottom)); color: var(--dim); font-size: 15px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid img { width: 190px; }
.footer h4 { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-grid a { display: block; padding: 2px 0; transition: color .3s; }
.footer-grid a:hover { color: var(--cream); }
.footer-word { font-family: var(--serif); font-size: clamp(64px, 15.5vw, 250px); line-height: .85; letter-spacing: -.04em; color: var(--cream); white-space: nowrap; margin: clamp(60px, 9vw, 120px) 0 clamp(20px, 3vw, 40px); }
.footer-word em { color: var(--gold); }
.footer-bottom { display: flex; gap: 14px 30px; flex-wrap: wrap; justify-content: space-between; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-bottom a:hover { color: var(--gold); }

/* ---------- Comparsa ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.client-list .reveal:nth-child(2), .steps .reveal:nth-child(2), .values-grid .reveal:nth-child(2), .about-side .reveal:nth-child(2) { transition-delay: .1s; }
.client-list .reveal:nth-child(3), .steps .reveal:nth-child(3), .values-grid .reveal:nth-child(3), .about-side .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4), .values-grid .reveal:nth-child(4) { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .reveal-up { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .clip-reveal { clip-path: none; }
}

/* =========================================================
   Tablet
   ========================================================= */
@media (max-width: 1100px) {
  .nav-desktop { gap: 22px; }
  .values-grid { grid-template-columns: 1fr 1fr; row-gap: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 820px) {
  html { scroll-padding-top: 70px; }
  .header { padding: 14px 0; }
  .header.scrolled { padding: 10px 0; }
  .logo img, .header.scrolled .logo img { width: 158px; }
  .nav-desktop, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .grain { opacity: .05; }

  /* Hero */
  .hero-media::after {
    background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.05) 25%, rgba(10,10,10,.35) 50%, rgba(10,10,10,.97) 88%);
  }
  .hero-kicker { font-size: 11px; letter-spacing: .16em; margin-bottom: 16px; }
  .hero-title { font-size: clamp(50px, 14.6vw, 76px); line-height: .92; }
  .hero-bottom { flex-direction: column; align-items: stretch; gap: 26px; }
  .hero-text { font-size: 15.5px; color: var(--dim); }
  .hero-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
  .hero-actions .btn { padding: 0 18px; min-height: 54px; }
  .scroll-cue { display: none; }

  /* Chi siamo */
  .about { padding-top: 90px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 4 / 5; }
  .stat { grid-template-columns: 76px 1fr; padding: 20px 0; }
  .stat strong { font-size: 52px; }

  /* Servizi */
  .stack { gap: 18px; padding-bottom: 2vh; }
  .stack-card { top: calc(80px + var(--i) * 14px); grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
  .sc-img { aspect-ratio: 16 / 9; }
  .sc-body { padding: 24px 22px 18px; position: relative; }
  .sc-num { position: absolute; top: -66px; right: 18px; font-size: 96px; -webkit-text-stroke: 1px rgba(200,162,93,.9); }
  .sc-body h3 { margin: 0 0 10px; font-size: 44px; }
  .sc-body p { font-size: 15px; margin-bottom: 14px; }
  .sc-body li { padding: 10px 0; font-size: 14.5px; }

  /* Prodotti */
  .panels { flex-direction: column; height: auto; gap: 8px; }
  .panel { flex: none; height: 82px; border-radius: 14px; transition: height .9s var(--ease); }
  .panel.is-open { flex: none; height: 400px; }
  .p-num { top: 50%; transform: translateY(-50%); left: auto; right: 20px; }
  .panel.is-open .p-num { top: 20px; transform: none; }
  .p-name, .panel.is-open .p-name { writing-mode: horizontal-tb; transform: none; }
  .p-name { left: 20px; bottom: 50%; transform: translateY(50%); font-size: 32px; }
  .panel.is-open .p-name { left: 20px; bottom: 92px; font-size: 54px; transform: none; }
  .p-desc { left: 20px; right: 20px; bottom: 22px; font-size: 14.5px; }
  .panel::before { filter: grayscale(.6) brightness(.5); }

  /* Per chi + metodo */
  .clients { border-radius: 22px 22px 0 0; }
  .client-list { grid-template-columns: 1fr; }
  .client, .client + .client { padding: 28px 0; border-left: 0; border-bottom: 1px solid rgba(0,0,0,.15); }
  .client span { font-size: 48px; margin-bottom: 14px; }
  .method-grid { grid-template-columns: 1fr; gap: 30px; }
  .method-head { position: static; }
  .step { grid-template-columns: 58px 1fr; gap: 12px; padding: 26px 0; }
  .st-n { font-size: 42px; }

  .values-grid { grid-template-columns: 1fr; row-gap: 38px; }

  /* Contatti */
  .contact-grid { grid-template-columns: 1fr; }
  .mail-big { font-size: 30px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-word { font-size: 17.5vw; }
}
