/* Quadra Agency — stile ispirato al design system Apple, adattato a un pubblico 40+ (testi più grandi, contrasto alto) */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --deep: #474747;
  --hair: #d6d6d6;
  --canvas: #f5f5f7;
  --paper: #ffffff;
  --wash: #e8e8ed;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --green: #1f9d4a;
  --green-bg: #e3f6e9;
  --orange: #b65c00;
  --orange-bg: #fff1dc;
  --red: #d70015;
  --red-bg: #ffe5e7;
  --blue-bg: #e6f0fd;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-card: 28px;
  --radius-sm: 14px;
  --max: 1200px;
  --gutter: 24px;
  --nav-h: 68px;
  --section: clamp(84px, 11vw, 136px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "tnum" 0;
}
@media (max-width: 640px) { body { font-size: 18px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.section { padding: var(--section) 0; }
.band { background: var(--canvas); }
.center { text-align: center; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 980px; border: 0;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer;
  text-decoration: none !important; transition: background .2s, transform .2s var(--ease), color .2s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.arrow-link { font-size: 18px; font-weight: 500; color: var(--link); display: inline-flex; align-items: center; gap: 6px; }
.arrow-link::after { content: "›"; font-size: 1.3em; line-height: 1; transform: translateY(-1px); transition: transform .2s var(--ease); }
.arrow-link:hover::after { transform: translate(3px, -1px); }

/* Barra di navigazione. La sfocatura sta su ::before: un backdrop-filter sulla barra
   renderebbe la barra il contenitore dei figli position:fixed e romperebbe il menu mobile. */
.nav { position: sticky; top: 0; z-index: 100; height: var(--nav-h); }
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); z-index: -1; }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 16px; font-weight: 500; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.dd { position: relative; }
.dd-btn { background: none; border: 0; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--ink); padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dd-menu { position: absolute; top: calc(100% + 10px); left: -18px; min-width: 260px; list-style: none; margin: 0; padding: 10px; background: var(--paper); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s var(--ease), visibility 0s linear .2s; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dd-menu a { display: block; padding: 11px 14px; border-radius: 12px; font-size: 16px; font-weight: 500; color: var(--ink); }
.dd-menu a:hover { background: var(--canvas); text-decoration: none; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s var(--ease), visibility 0s; }
.dd.open .dd-btn::after { transform: translateY(1px) rotate(225deg); }
.lang { display: inline-flex; gap: 2px; font-size: 15px; font-weight: 600; }
.lang a, .lang span { padding: 6px 8px; border-radius: 8px; color: var(--muted); }
.lang [aria-current="true"] { color: var(--ink); background: var(--wash); }
.burger { display: none; width: 48px; height: 48px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.menu {
  position: fixed; left: 0; right: 0; top: var(--nav-h); height: calc(100dvh - var(--nav-h));
  background: var(--paper); z-index: 99; padding: 28px var(--gutter) 40px; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.menu.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a { display: block; padding: 14px 0; font-size: 26px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--wash); letter-spacing: -0.02em; }
.menu .btn { width: 100%; margin-top: 28px; }
.menu .lang { margin-top: 22px; }
body.menu-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav-links, .nav-right .lang, .nav-right .btn { display: none; }
  .burger { display: block; }
  .nav-logo img { height: 38px; }
}

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 21px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/18px no-repeat; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 760px; }

/* Form */
.form-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: var(--paper); border-radius: var(--radius-card); padding: clamp(26px, 3.4vw, 44px); }
.progress { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: var(--muted); font-weight: 500; margin-bottom: 22px; }
.progress .bar { flex: 1; height: 6px; margin-left: 16px; background: var(--wash); border-radius: 6px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; width: 50%; background: var(--blue); border-radius: 6px; transition: width .4s var(--ease); }
.form-step[hidden] { display: none; }
.q { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 20px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 480px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 18px; border-radius: 16px; background: var(--canvas); font-size: 18px; font-weight: 500; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .2s, background .2s; }
.choice span svg { width: 24px; height: 24px; color: var(--blue); flex: none; }
.choice input:checked + span { background: var(--blue-bg); box-shadow: inset 0 0 0 2px var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--hair);
  background: var(--paper); font: inherit; font-size: 18px; color: var(--ink); transition: border-color .2s;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,113,227,.18); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.err { display: none; color: var(--red); font-size: 15px; margin-top: 6px; }
.invalid > .err, .invalid .err { display: block; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--canvas); font-weight: 500; font-size: 17px; cursor: pointer; margin: 0; }
.radios input { width: 20px; height: 20px; accent-color: var(--blue); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--deep); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.form-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; flex-wrap: wrap; }
.form-actions .btn-primary { flex: 1; min-width: 220px; }
.back { background: none; border: 0; color: var(--link); font-size: 17px; font-weight: 500; cursor: pointer; padding: 10px 0; }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--blue-bg); border-radius: 14px; padding: 12px 16px; margin-bottom: 22px; font-size: 17px; }
.chosen strong { font-weight: 600; }
.form-error { display: none; background: var(--red-bg); color: var(--red); border-radius: 12px; padding: 12px 16px; margin-top: 16px; font-size: 16px; }
.form-error.show { display: block; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.reassure { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.reassure li { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.reassure svg { width: 24px; height: 24px; color: var(--green); flex: none; }

/* Altri servizi (strip nelle pagine servizio) */
.others { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.others a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 980px; background: var(--paper); color: var(--ink); font-weight: 500; font-size: 17px; }
.others a:hover { text-decoration: none; background: var(--wash); }

/* Pagine semplici */
.page { padding: clamp(56px, 8vw, 104px) 0 var(--section); }
.prose h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--deep); }
.prose ul { padding-left: 22px; }
.thanks { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.thanks .tick { width: 88px; height: 88px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 32px; }
.thanks .tick svg { width: 44px; height: 44px; }

/* Footer */
.footer { background: var(--canvas); border-top: 1px solid var(--hair); padding: 64px 0 40px; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer img { height: 40px; width: auto; margin-bottom: 16px; mix-blend-mode: multiply; }
.footer h4 { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a, .footer .linklike { color: var(--deep); font-size: 15px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.linklike:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--hair); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Banner cookie */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 760px; margin: 0 auto; background: var(--paper); border-radius: 22px; padding: 22px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06); display: none; gap: 18px; align-items: center; }
.consent.show { display: flex; }
.consent p { margin: 0; font-size: 16px; color: var(--deep); line-height: 1.45; }
.consent .actions { display: flex; gap: 10px; flex: none; }
.consent .btn { min-height: 46px; padding: 0 22px; font-size: 16px; }
@media (max-width: 680px) { .consent { flex-direction: column; align-items: stretch; } .consent .actions .btn { flex: 1; } }

/* barra CTA fissa su telefono */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; transform: translateY(140%); transition: transform .35s var(--ease); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 12px 30px -8px rgba(0,113,227,.55); }
  body { padding-bottom: 0; }
}

/* ===================== V3 — sfondi animati con le creatività ===================== */
:root { --night: #05060a; --night-2: #0d0f16; --tile-h: clamp(170px, 27vh, 300px); --bar-h: 56px; }
html { scroll-padding-top: calc(var(--nav-h) + var(--bar-h) + 16px); }
.nav::before { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
h1, h2, h3, h4 { margin: 0; color: inherit; }
.h2 { font-size: clamp(38px, 5.6vw, 76px); font-weight: 700; line-height: 1.04; letter-spacing: -0.035em; }
.h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; }
.h1x { font-size: clamp(46px, 6.6vw, 92px); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em; }
.lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.45; color: var(--muted); letter-spacing: -0.012em; margin: 18px 0 0; }
.section { padding: clamp(88px, 11vw, 150px) 0; }
.sec-head { margin-bottom: clamp(44px, 5.5vw, 72px); }
.sec-head .lead { max-width: 720px; margin-left: auto; margin-right: auto; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 19px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f0f0f3; transform: translateY(-1px); }
.btn-glass { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:hover { background: rgba(255,255,255,.22); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.kicker { display: inline-block; font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 22px; }
.kicker.blue { color: var(--blue); }
.cta-row { margin-top: clamp(40px, 5vw, 64px); }
.cta-note { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.dark { background: var(--night); color: #f5f5f7; }
.dark .lead { color: rgba(245,245,247,.62); }
.grad, .grad .w { background: linear-gradient(90deg, #2997ff, #8b7bff 55%, #c38bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dd-menu a { display: flex; align-items: center; gap: 12px; }
.dd-menu a svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ---------- HERO con muro di creatività ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h) - var(--bar-h)); background: var(--night); color: #fff; overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.wall { position: absolute; inset: -18% -25%; z-index: -2; display: flex; align-items: center; transform: rotateZ(-7deg) scale(1.02); transform-origin: 50% 50%; }
.wall-rows { display: flex; flex-direction: column; justify-content: center; gap: 18px; width: 100%; }
.wall-row { display: flex; gap: 18px; width: max-content; will-change: transform; transform: translateX(var(--mid, -30%)); }
.anim .wall-row { animation: wallSlide var(--dur, 40s) ease-in-out infinite alternate; }
.anim .wall-row[data-row="1"] { animation-direction: alternate-reverse; }
@keyframes wallSlide { from { transform: translateX(var(--from, -25%)); } to { transform: translateX(var(--to, -35%)); } }
.tile { flex: none; height: var(--tile-h); width: calc(var(--tile-h) * var(--w) / 400); margin: 0; border-radius: 20px; overflow: hidden; background: #151821; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.tile video, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 70% 60% at 50% 50%, rgba(5,6,10,.86) 0%, rgba(5,6,10,.7) 45%, rgba(5,6,10,.35) 100%),
  linear-gradient(180deg, rgba(5,6,10,.55) 0%, rgba(5,6,10,0) 25%, rgba(5,6,10,0) 70%, rgba(5,6,10,.9) 100%); }
.hero-copy { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: clamp(56px, 9vh, 110px); padding-bottom: clamp(90px, 13vh, 140px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 980px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-bottom: 26px; }
.hero-title { font-size: clamp(46px, 8.4vw, 124px); font-weight: 700; line-height: 1.0; letter-spacing: -0.045em; max-width: 14ch; text-wrap: balance; }
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; }
.hero-lead { max-width: 740px; font-size: clamp(19px, 2vw, 25px); line-height: 1.42; color: rgba(255,255,255,.78); margin: 26px 0 0; letter-spacing: -0.012em; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-note { font-size: 15px; color: rgba(255,255,255,.6); margin: 16px 0 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.scroll-cue svg { width: 22px; height: 22px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@media (max-width: 760px) {
  :root { --tile-h: 160px; }
  .wall { inset: -10% -60%; transform: rotateZ(-8deg); }
  .wall-rows, .wall-row { gap: 12px; }
  .tile { border-radius: 14px; }
  .hero-copy { padding-top: 48px; padding-bottom: 96px; }
  .hero-shade { background: radial-gradient(ellipse 90% 55% at 50% 48%, rgba(5,6,10,.82) 0%, rgba(5,6,10,.6) 55%, rgba(5,6,10,.3) 100%), linear-gradient(180deg, rgba(5,6,10,.4) 0%, rgba(5,6,10,0) 22%, rgba(5,6,10,0) 75%, rgba(5,6,10,.85) 100%); }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Barra servizi (sempre visibile sotto il menu) ---------- */
.svc-bar { position: sticky; top: var(--nav-h); z-index: 95; height: var(--bar-h); background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid rgba(0,0,0,.07); }
.svc-bar-in { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: center; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.svc-bar-in::-webkit-scrollbar { display: none; }
.svc-bar a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 980px; font-size: 15px; font-weight: 600; color: var(--deep); white-space: nowrap; transition: background .2s, color .2s; }
.svc-bar a svg { width: 18px; height: 18px; color: var(--blue); }
.svc-bar a:hover { background: var(--canvas); text-decoration: none; }
.svc-bar a[aria-current="true"] { background: var(--ink); color: #fff; }
.svc-bar a[aria-current="true"] svg { color: #fff; }
@media (max-width: 760px) {
  :root { --bar-h: 52px; }
  .svc-bar-in { justify-content: flex-start; padding: 0 12px; gap: 6px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .svc-bar a { height: 36px; padding: 0 14px; font-size: 14px; }
}
body.menu-open .svc-bar { visibility: hidden; }

/* ---------- Problema ---------- */
.statement { padding: clamp(110px, 15vw, 200px) 0; }
.st-text { font-size: clamp(32px, 5vw, 68px); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; margin: 0; max-width: 20ch; }
.st-text .w { color: #f5f5f7; }
.anim .st-text .w { opacity: .18; }
.st-punch { margin: 30px 0 0; font-size: clamp(32px, 5vw, 68px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; background: linear-gradient(90deg, #2997ff, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Dispositivi ---------- */
.phone { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: #e9e9ee; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 30px 60px -28px rgba(0,0,0,.35); }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-ad { aspect-ratio: 9 / 16; border-radius: 36px; border: 8px solid #111; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); background: #111; }
.browser { border-radius: 16px; overflow: hidden; background: #111318; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -26px rgba(0,0,0,.6); }
.browser-bar { display: flex; gap: 7px; padding: 10px 14px; background: #1a1d25; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sound { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; padding: 10px 16px; border-radius: 980px; font-size: 15px; font-weight: 600; color: #fff; background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); white-space: nowrap; }
.sound svg { width: 18px; height: 18px; }
.sound svg:nth-of-type(2) { display: none; }
.sound[aria-pressed="true"] svg:nth-of-type(1) { display: none; }
.sound[aria-pressed="true"] svg:nth-of-type(2) { display: block; }

/* ---------- Servizi (home) ---------- */
.svc { background: var(--canvas); padding: clamp(80px, 9vw, 120px) 0; overflow: hidden; }
.svc-head { margin-bottom: clamp(40px, 5vw, 60px); }
.svc-track { display: flex; gap: 24px; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); width: max-content; will-change: transform; }
.sc { flex: none; width: min(860px, 86vw); background: #fff; border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 0; }
.sc-media { background: linear-gradient(160deg, #eef2ff, #f6f0ff); padding: 32px; display: flex; align-items: center; justify-content: center; }
.sc-media .phone { max-width: 300px; }
.sc-siti .sc-media { background: linear-gradient(160deg, #0d0f16, #1b1f2b); }
.sc-siti .sc-media .browser { width: 100%; }
.sc-body { padding: clamp(28px, 3.2vw, 44px); display: flex; flex-direction: column; }
.sc-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--blue); }
.sc-tag svg { width: 20px; height: 20px; }
.sc h3 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; line-height: 1.1; letter-spacing: -0.028em; margin: 14px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-size: 18px; }
.ticks svg { width: 22px; height: 22px; color: var(--green); flex: none; }
.sc-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
@media (min-width: 1000px) and (min-height: 700px) {
  .svc { height: calc(100svh - var(--nav-h) - var(--bar-h)); padding: clamp(24px, 4vh, 48px) 0; display: flex; flex-direction: column; }
  .svc-head { margin-bottom: clamp(18px, 3vh, 32px); }
  .svc-head .h2 { font-size: clamp(36px, 5.2vh, 60px); }
  .svc-head .lead { margin-top: 8px; font-size: clamp(17px, 2.2vh, 21px); }
  .svc-viewport { flex: 1; min-height: 0; }
  .svc-track { height: 100%; }
  .sc { height: 100%; max-height: 620px; }
  .sc-media { padding: clamp(16px, 2.5vh, 28px); min-height: 0; }
  .sc-media .phone-ad { width: auto; height: 100%; max-height: 560px; aspect-ratio: 9 / 16; }
  .sc-media .browser { align-self: center; }
  .sc-body { overflow: hidden; padding: clamp(22px, 3.4vh, 40px) clamp(24px, 3vw, 40px); }
  .sc h3 { font-size: clamp(24px, 3.6vh, 36px); margin: 10px 0 clamp(12px, 2.2vh, 22px); }
  .ticks { gap: clamp(6px, 1.2vh, 12px); margin-bottom: clamp(14px, 2.6vh, 28px); }
  .ticks li { font-size: clamp(16px, 2.1vh, 18px); }
}
@media (max-width: 999px), (max-height: 699px) {
  .svc-track { flex-direction: column; width: auto; padding: 0 var(--gutter); }
  .sc { width: 100%; max-width: 860px; margin: 0 auto; }
}
@media (max-width: 760px) {
  .sc { grid-template-columns: 1fr; }
  .sc-media { padding: 24px 24px 0; }
  .sc-media .phone { max-width: 260px; }
}

/* ---------- Lavori (home) ---------- */
.work { padding: clamp(90px, 11vw, 150px) 0; overflow: hidden; }
.work-strip { margin: clamp(44px, 5vw, 70px) 0; overflow: hidden; }
.work-track { display: flex; gap: 24px; width: max-content; padding-left: 24px; }
.anim .work-track { animation: wallSlide var(--dur, 40s) ease-in-out infinite alternate; }
.work-item { width: clamp(300px, 34vw, 520px); flex: none; }

/* ---------- Numeri ---------- */
.nums-sec { padding: clamp(70px, 8vw, 110px) 0; border-bottom: 1px solid var(--wash); }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.num .n { display: block; font-size: clamp(48px, 6vw, 84px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.num .l { display: block; margin-top: 12px; color: var(--muted); font-size: 17px; }
@media (max-width: 760px) { .nums { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ---------- Passi ---------- */
.steps3 { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 6vw, 80px); }
.steps-line { position: absolute; left: 0; right: 0; top: 27px; height: 2px; background: linear-gradient(90deg, #2997ff, #a78bfa); transform-origin: left; }
.st { position: relative; }
.st-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: 22px; margin-bottom: 22px; box-shadow: 0 0 0 8px var(--canvas); }
.st h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.st p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } .steps-line { display: none; } }

/* ---------- Funzionalità ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: var(--canvas); border-radius: 26px; padding: 30px; }
.feat svg { width: 32px; height: 32px; color: var(--blue); margin-bottom: 18px; }
.feat h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.feat p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* ---------- Casi con video ---------- */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); max-width: 980px; margin: 0 auto; }
.cases-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1200px; }
.case { display: flex; flex-direction: column; align-items: center; text-align: center; }
.case .phone-ad { width: min(100%, 330px); }
.case-body { margin-top: 26px; max-width: 420px; }
.case h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.case p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .cases-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cases, .cases-3 { grid-template-columns: 1fr; } }

/* ---------- Galleria siti ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: clamp(44px, 5vw, 70px); }
.gal-item { margin: 0; }
.gal-item figcaption { margin-top: 14px; font-weight: 600; font-size: 18px; color: rgba(245,245,247,.85); }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }
.before { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(80px, 10vw, 130px); }
.before-media .phone { aspect-ratio: 9 / 10; max-width: 420px; background: #111; }
.before-copy .lead { margin-bottom: 30px; }
@media (max-width: 760px) { .before { grid-template-columns: 1fr; } }

/* ---------- Form, altri, FAQ ---------- */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
.sc-media .phone-ad { width: min(100%, 250px); border-width: 7px; border-radius: 32px; flex: none; }
.form-sec { background: var(--canvas); }
.others-sec { padding: 0 0 clamp(80px, 9vw, 120px); }
.others { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.others a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 980px; background: var(--canvas); color: var(--ink); font-weight: 500; font-size: 17px; }
.others a svg { width: 20px; height: 20px; color: var(--blue); }
.others a:hover { text-decoration: none; background: var(--wash); }
.band { background: var(--canvas); }
.band .st-n { box-shadow: 0 0 0 8px var(--canvas); }
.band .feat { background: #fff; }

/* ---------- Stati iniziali delle animazioni ---------- */
.anim .hero-title .w { opacity: 0; transform: translateY(40px); }
.anim [data-intro] { opacity: 0; transform: translateY(24px); }
.anim [data-reveal] { opacity: 0; transform: translateY(36px); }
.anim [data-reveal-group] > * { opacity: 0; transform: translateY(36px); }
.anim .st { opacity: 0; transform: translateY(30px); }
@media (prefers-reduced-motion: reduce) {
  .wall-row, .work-track, .scroll-cue svg { animation: none !important; }
}
