/* VargarLabs: foglio di stile condiviso (v03). Token: 01_brand/tokens.css */

@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"), url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"), url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display VL"; src: url("../fonts/inter-display-600.woff2") format("woff2"), url("../fonts/inter-display-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --white: #FFFFFF; --ink: #111111; --night: #0E0E10; --night-2: #16161A; --ivory: #F5F3EF; --mist: #F5F5F3;
  --stone: #5F5D5A; --stone-night: #A19E98; --line: #E6E4E0; --line-strong: #CFCCC6; --line-night: #2A292E;
  --blue: #2F5BFF; --blue-ink: #1F45E6; --blue-soft: #8FA7FF; --blue-tint: #EEF2FF;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display VL", "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 64px);
  /* margini laterali che rispettano notch e Dynamic Island in orizzontale */
  --pad-l: max(var(--pad), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--pad), env(safe-area-inset-right, 0px));
  --max: 1280px;
  --r-sm: 10px; --r: 18px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --fast: 160ms; --base: 300ms;
  interpolate-size: allow-keywords;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Sfondo di base scuro: Safari su iPhone (iOS 26) colora la fascia in alto con questo colore. Le sezioni chiare stanno dentro main */
html { background: var(--night); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { display: block; background: var(--white); }
::selection { background: var(--blue); color: var(--white); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .on-dark :focus-visible { outline-color: var(--blue-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--pad); top: -100px; z-index: 100; background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.ph { border: 1px dashed currentColor; border-radius: 4px; padding: 0 .35em; font-size: .88em; background: rgba(17, 17, 17, .04); }
.dark .ph { background: rgba(245, 243, 239, .06); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--max) - 2 * var(--pad) + var(--pad-l) + var(--pad-r)); margin: 0 auto; padding: 0 var(--pad-r) 0 var(--pad-l); }
.section { padding: clamp(88px, 10vw, 144px) 0; }
.section-mist { background: var(--mist); }
.dark { background: var(--night); color: var(--ivory); }
.section-head { max-width: 780px; margin-bottom: clamp(44px, 5vw, 72px); }
.section-head .lead { margin-top: 20px; }
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); } }

/* ---------- Tipografia ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.dark .kicker { color: var(--blue-soft); }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.h1 { font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.03; letter-spacing: -0.038em; text-wrap: balance; }
.h2 { font-family: var(--display); font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; }
.lead { font-size: clamp(1.125rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--stone); max-width: 38em; margin: 0; }
.dark .lead, .dark .muted { color: var(--stone-night); }
.muted { color: var(--stone); }
.link { font-weight: 600; color: var(--blue); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size var(--base) var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1.5px; }
.dark .link { color: var(--blue-soft); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 1rem/1 var(--font); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), box-shadow var(--base) var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 30px -12px rgba(47, 91, 255, .7); }
.btn-primary:hover { background: var(--blue-ink); box-shadow: 0 16px 36px -12px rgba(47, 91, 255, .85); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { background: rgba(245, 243, 239, .06); color: var(--ivory); border-color: rgba(245, 243, 239, .22); }
.btn-ghost:hover { background: rgba(245, 243, 239, .12); border-color: rgba(245, 243, 239, .5); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Intestazione (trasparente sopra le aperture scure) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: color var(--base) var(--ease); background: transparent; border-bottom: 0; color: var(--ink); }
/* Scorrendo verso il basso i tasti si nascondono; tornando su, anche di poco, ricompaiono */
/* Il logo resta sempre; gli altri tasti si nascondono scorrendo in giù e ricompaiono tornando su */
.site-header { pointer-events: none; }
.site-header a, .site-header button, .site-header .lang { pointer-events: auto; }
.site-header .nav, .site-header .lang, .site-header .menu-btn { transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear 0s; }
.site-header.is-hidden .nav, .site-header.is-hidden .lang, .site-header.is-hidden .menu-btn { opacity: 0; transform: translateY(-14px); visibility: hidden; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s; }
/* Nessuna fascia di sfondo: i tasti restano sempre visibili e cambiano colore (chiaro o scuro) in base alla sezione che c'è dietro. Lo decide main.js */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.site-header.on-dark { color: var(--ivory); }
.site-header .tone-light, .site-header .nav > a.tone-light:not(.btn) { color: var(--ink); }
.site-header .tone-dark, .site-header .nav > a.tone-dark:not(.btn) { color: var(--ivory); }
.site-header .brand.tone-dark .logo-light, .site-header .brand.tone-light .logo-dark { display: block; }
.site-header .brand.tone-dark .logo-dark, .site-header .brand.tone-light .logo-light { display: none; }
/* Alone leggero del colore dello sfondo: tiene leggibili i tasti quando passano sopra testi e schede, senza una fascia visibile */
.site-header .tone-light:not(.btn) { text-shadow: 0 0 2px rgba(255, 255, 255, .95), 0 0 10px rgba(255, 255, 255, .9); }
.site-header .tone-dark:not(.btn) { text-shadow: 0 0 2px rgba(14, 14, 16, .9), 0 0 10px rgba(14, 14, 16, .85); }
/* Testi dei tasti più marcati, senza capsule */
.site-header .nav a:not(.btn) { opacity: .9; }
.site-header .nav a:not(.btn):hover, .site-header .nav a[aria-current="page"] { opacity: 1; }
.site-header .lang a { opacity: .66; }
.site-header .lang a[aria-current] { opacity: 1; }
.site-header .brand.tone-light img { filter: drop-shadow(0 0 3px rgba(255, 255, 255, .95)); }
.site-header .brand.tone-dark img { filter: drop-shadow(0 0 3px rgba(14, 14, 16, .9)); }
.site-header .menu-btn.tone-light .burger i { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9), 0 0 8px rgba(255, 255, 255, .8); }
.site-header .menu-btn.tone-dark .burger i { box-shadow: 0 0 0 1.5px rgba(14, 14, 16, .8), 0 0 8px rgba(14, 14, 16, .7); }
.site-header .brand, .site-header .nav > a:not(.btn), .site-header .lang, .site-header .menu-btn { transition: color var(--base) var(--ease), opacity .3s var(--ease), transform .35s var(--ease), background-color var(--fast) var(--ease), visibility 0s linear 0s; }
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.site-header .brand { margin-right: auto; }
@media (max-width: 999px) { .site-header .container { gap: 6px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.015em; }
.brand img { width: 30px; height: auto; }
.brand .logo-light { display: none; }
.on-dark .brand .logo-light, .mobile-nav .brand .logo-light { display: block; }
.on-dark .brand .logo-dark, .mobile-nav .brand .logo-dark { display: none; }
.nav { display: none; align-items: center; gap: clamp(18px, 2.2vw, 34px); font-size: .9375rem; }
.nav a:not(.btn) { position: relative; color: inherit; opacity: .72; text-decoration: none; transition: opacity var(--fast) var(--ease); padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--base) var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -12px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background-color var(--fast) var(--ease); }
@media (hover: hover) { .menu-btn:hover { background: rgba(127, 127, 127, .14); } }
.burger { position: relative; display: block; width: 24px; height: 16px; }
.burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--base) var(--ease), opacity var(--fast) var(--ease); }
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 7px; }
.burger i:nth-child(3) { top: 14px; }
.mobile-nav.open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); transition-delay: 60ms; }
.mobile-nav.open .burger i:nth-child(2) { opacity: 0; }
.mobile-nav.open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); transition-delay: 60ms; }
@media (min-width: 1000px) { .nav { display: flex; } .site-header .menu-btn { display: none; } }

.mobile-nav { position: fixed; inset: 0; z-index: 60; background: var(--night); color: var(--ivory); display: flex; flex-direction: column; padding: env(safe-area-inset-top, 0px) var(--pad-r) calc(32px + env(safe-area-inset-bottom, 0px)) var(--pad-l); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; transition: opacity var(--base) var(--ease), visibility 0s linear var(--base); }
.mobile-nav.open { opacity: 1; visibility: visible; transition: opacity var(--base) var(--ease); }
.mobile-nav-top { flex: 0 0 auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-nav ul { margin-top: 32px; }
.mobile-nav li { opacity: 0; transform: translateY(14px); transition: opacity var(--base) var(--ease), transform var(--base) var(--ease); }
.mobile-nav.open li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 80ms); }
.mobile-nav li a { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line-night); font: 600 1.75rem/1.15 var(--display); letter-spacing: -0.025em; text-decoration: none; }
.mobile-nav li a::after { content: ""; width: 10px; height: 10px; border-top: 2px solid var(--stone-night); border-right: 2px solid var(--stone-night); transform: rotate(45deg); margin-right: 4px; }
.mobile-nav li a[aria-current="page"] { color: var(--blue-soft); }
.mobile-nav .btn { margin-top: 32px; width: 100%; }
.mobile-nav .mail { margin-top: auto; display: grid; gap: 6px; color: var(--stone-night); font-size: .9375rem; }
.mobile-nav .mail a { text-decoration: none; }

/* ---------- Apertura scura (home) ---------- */
.hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(40px, 6vw, 88px)) 0 0; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(38% 34% at 72% 36%, rgba(47, 91, 255, .38), transparent 70%),
  radial-gradient(30% 30% at 20% 80%, rgba(47, 91, 255, .16), transparent 70%);
  filter: blur(20px); animation: drift 18s ease-in-out infinite alternate; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(245, 243, 239, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 243, 239, .055) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(70% 60% at 60% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 60% at 60% 40%, #000 30%, transparent 80%); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-6%, 4%, 0) scale(1.08); } }
.hero-grid { display: grid; gap: 56px; align-items: center; padding-bottom: clamp(64px, 8vw, 112px); }
@media (min-width: 1080px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 5vw, 80px); } }
.hero-title { font-family: var(--display); font-size: clamp(2.9rem, 6vw, 5.4rem); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.hero .lead { margin-top: 28px; }
.hero .actions { margin-top: 40px; }
.checks { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .9375rem; color: var(--stone-night); }
.checks li { display: inline-flex; align-items: center; gap: 10px; }
.checks svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--blue-soft); }

/* Titolo che entra parola per parola */
.js .hero-title:not(.is-split) { opacity: 0; }
.mock { perspective: 1400px; }
.js .hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.js .hero-title .w > span { display: inline-block; transform: translateY(110%); animation: rise .95s var(--ease-out) forwards; animation-delay: calc(var(--w) * 55ms + 150ms); }
@keyframes rise { to { transform: translateY(0); } }
.js .hero-in { opacity: 0; transform: translateY(16px); animation: fadeup .9s var(--ease-out) forwards; animation-delay: calc(var(--d) * 120ms + 700ms); }
@keyframes fadeup { to { opacity: 1; transform: none; } }

/* Nastro dei settori */
.marquee { border-top: 1px solid var(--line-night); overflow: hidden; padding: 22px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: 36px; padding-right: 36px; font: 600 clamp(1.15rem, 1.8vw, 1.5rem)/1 var(--display); letter-spacing: -0.02em; color: rgba(245, 243, 239, .62); white-space: nowrap; }
.marquee li { display: inline-flex; align-items: center; gap: 36px; }
.marquee li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Esempio di sito a rotazione */
.mock { position: relative; }
.mock-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(245, 243, 239, .06); border: 1px solid var(--line-night); margin-bottom: 20px; }
.mock-tabs button { border: 0; background: transparent; color: var(--stone-night); font: 600 .875rem var(--font); padding: 9px 14px; border-radius: 9px; cursor: pointer; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.mock-tabs button:hover { color: var(--ivory); }
.mock-tabs button[aria-pressed="true"] { background: var(--ivory); color: var(--night); }
.mock-stage { position: relative; padding: 0 0 44px; transform-style: preserve-3d; transition: transform .5s var(--ease-out); will-change: transform; }
.mock-caption { margin: 14px 0 0; font-size: .8125rem; color: var(--stone-night); }
.browser { position: relative; border-radius: 14px; background: var(--white); overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(245, 243, 239, .1); }
.browser-bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #F1F1EF; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-url { margin-left: 12px; flex: 1; max-width: 240px; height: 22px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); font: 11px/20px var(--font); color: var(--stone); padding: 0 10px; overflow: hidden; white-space: nowrap; }
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; transform: translateY(10px) scale(.985); transition: opacity .6s var(--ease), transform .7s var(--ease-out); pointer-events: none; }
.slide.is-active { opacity: 1; transform: none; }
.slide picture { display: block; }
.site-shot { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 605; object-fit: cover; object-position: top center; background: var(--bg); }
.phone { position: absolute; right: -14px; bottom: -18px; width: 212px; border: 7px solid #0A0A0C; border-radius: 30px; background: var(--white); overflow: hidden; box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(245, 243, 239, .12); transform: translateZ(40px); }
.phone-notch { height: 20px; display: grid; place-items: center; background: var(--white); }
.phone-notch i { width: 52px; height: 5px; border-radius: 3px; background: #0A0A0C; }
.phone-shot { display: block; width: 100%; height: auto; aspect-ratio: 480 / 563; object-fit: cover; object-position: top center; background: var(--bg); }
.js .mock-in { opacity: 0; transform: translateY(40px); animation: fadeup 1.2s var(--ease-out) .5s forwards; }
.js .phone-in { opacity: 0; animation: phonein 1.1s var(--ease-out) 1.05s forwards; }
@keyframes phonein { from { opacity: 0; translate: 40px 30px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 640px) {
  .mock-stage { padding: 0; }
  .browser { display: none; }
  .phone { position: relative; right: auto; bottom: auto; width: 250px; margin: 0 auto; transform: none; }
  .mock-tabs { display: flex; justify-content: center; width: max-content; margin-left: auto; margin-right: auto; }
  .mock-caption { text-align: center; }
}

/* ---------- Rivelazione allo scorrimento ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .tile[data-reveal].in:hover, .js .sector[data-reveal].in:hover, .js .work[data-reveal].in:hover, .js .member[data-reveal].in:hover { transition-delay: 0ms; }

/* ---------- Griglia a riquadri (servizi) ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) and (max-width: 1099px) { .bento { grid-template-columns: 1fr 1fr; } .t-google, .t-info, .t-price { grid-column: span 2; } }
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-template-areas: "g g p s" "g g p d" "i i r r"; }
  .t-google { grid-area: g; } .t-phone { grid-area: p; } .t-speed { grid-area: s; } .t-design { grid-area: d; } .t-info { grid-area: i; } .t-price { grid-area: r; }
}
.tile { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform var(--base) var(--ease), border-color var(--base) var(--ease), box-shadow var(--base) var(--ease), opacity .9s var(--ease-out); }
.tile:hover { transform: translateY(-4px); border-color: #C9D3FF; box-shadow: 0 24px 48px -28px rgba(47, 91, 255, .45); }
.tile p { margin: 0; color: var(--stone); font-size: 1rem; }
.tile-visual { margin-top: auto; padding-top: 22px; }
.tile-dark { background: var(--night); color: var(--ivory); border-color: var(--night); }
.tile-dark p { color: var(--stone-night); }
.tile-dark:hover { border-color: var(--blue); }

/* Ricerca Google illustrativa */
.serp { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 16px; box-shadow: 0 20px 40px -30px rgba(17, 17, 17, .3); }
.serp-bar { display: flex; align-items: center; gap: 10px; height: 46px; border-radius: 999px; border: 1px solid var(--line); padding: 0 18px; font-size: 1rem; }
.serp-bar svg { width: 18px; height: 18px; color: var(--stone); flex: 0 0 auto; }
.caret { width: 1.5px; height: 20px; background: var(--blue); animation: blink 1s steps(1) infinite; margin-left: -6px; }
@keyframes blink { 50% { opacity: 0; } }
.serp-results { margin-top: 16px; display: grid; gap: 10px; min-height: 196px; }
.serp-res { border-radius: 10px; padding: 12px 14px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.serp.done .serp-res { opacity: 1; transform: none; }
.serp.done .serp-res:nth-child(2) { transition-delay: .12s; }
.serp.done .serp-res:nth-child(3) { transition-delay: .24s; }
.serp-top { background: var(--blue-tint); box-shadow: inset 3px 0 0 var(--blue); }
.serp-site { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--stone); }
.serp-site i { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); }
.serp-title { margin-top: 4px; font-size: 1.0625rem; font-weight: 600; color: var(--blue-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.serp-snip { margin-top: 2px; font-size: .875rem; color: var(--stone); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serp-sk span { display: block; height: 9px; border-radius: 5px; background: #EDEDEA; margin-top: 8px; }
.serp-sk span:first-child { width: 30%; margin-top: 0; } .serp-sk span:nth-child(2) { width: 62%; } .serp-sk span:nth-child(3) { width: 84%; }
.serp-cap { margin: 12px 0 0; font-size: .8125rem; color: var(--stone); }

/* Telefono che scorre */
.mini-phone { width: 170px; height: 300px; margin: 0 auto; border: 6px solid var(--ink); border-radius: 28px; overflow: hidden; background: #F7F1E8; position: relative; }
.mini-screen { padding: 14px 12px; font-size: 10px; color: #2B1A14; animation: autoscroll 12s var(--ease) infinite; }
@keyframes autoscroll { 0%, 12% { transform: translateY(0); } 45%, 57% { transform: translateY(-42%); } 90%, 100% { transform: translateY(0); } }
.mini-screen .ms-name { font: 600 15px/1.1 var(--display); letter-spacing: -0.02em; }
.mini-screen .ms-hero { height: 90px; border-radius: 8px; background: #7A1F1F; margin: 10px 0; display: grid; place-items: center; color: #F7F1E8; }
.mini-screen .ms-hero svg { width: 46px; }
.mini-screen .ms-h { font-weight: 600; margin: 10px 0 4px; }
.mini-screen li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.mini-screen .ms-map { height: 70px; border-radius: 8px; margin-top: 10px; background: repeating-linear-gradient(45deg, #E8DFD2 0 8px, #EFE7DB 8px 16px); position: relative; }
.mini-screen .ms-map::after { content: ""; position: absolute; left: 50%; top: 40%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: #7A1F1F; transform: translate(-50%, -50%) rotate(-45deg); }
.mini-screen .ms-btn { margin-top: 10px; text-align: center; padding: 8px; border-radius: 6px; background: #7A1F1F; color: #F7F1E8; font-weight: 600; }

/* Velocità reale */
.tile .speed-value { margin-top: auto; font: 600 clamp(3rem, 5vw, 4.25rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--ivory); }
.tile .speed-value small { font-size: .36em; letter-spacing: 0; margin-left: .2em; color: var(--stone-night); }
.speed-bar { height: 6px; border-radius: 3px; background: var(--line-night); margin-top: 16px; overflow: hidden; }
.speed-bar span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width 1.4s var(--ease-out); }
.tile .speed-note { margin-top: 10px; font-size: .8125rem; color: var(--stone-night); }

/* Design su misura: palette che cambiano */
.swatches { display: flex; gap: 10px; align-items: center; }
.swatches i { width: 38px; height: 38px; border-radius: 50%; animation: palette 9s infinite; border: 1px solid rgba(0, 0, 0, .08); }
.swatches i:nth-child(1) { --a: #7A1F1F; --b: #1F3D5C; --c: #2F4A3A; }
.swatches i:nth-child(2) { --a: #F7F1E8; --b: #EEF2F6; --c: #EEF1EA; }
.swatches i:nth-child(3) { --a: #C9A86A; --b: #D9A3A3; --c: #B9C48A; }
@keyframes palette { 0%, 28% { background: var(--a); } 34%, 61% { background: var(--b); } 67%, 95% { background: var(--c); } 100% { background: var(--a); } }
.swatches b { margin-left: 8px; font: 600 2rem/1 var(--display); letter-spacing: -0.03em; }

/* Informazioni che contano */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .9375rem; background: var(--white); transition: border-color .5s var(--ease), background-color .5s var(--ease); transition-delay: calc(var(--d) * 140ms + 300ms); }
.pills .ok { width: 18px; height: 18px; border-radius: 50%; background: var(--line); color: var(--white); display: grid; place-items: center; transition: background-color .5s var(--ease); transition-delay: inherit; }
.pills .ok svg { width: 12px; height: 12px; }
.tile.in .pills li { border-color: #C9D3FF; background: var(--blue-tint); }
.tile.in .pills .ok { background: var(--blue); }

/* Tempi e prezzo */
.flow { display: flex; align-items: center; flex-wrap: nowrap; }
.flow span { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .875rem; background: var(--white); transition: border-color .4s, color .4s; }
.flow i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; min-width: 14px; }
.flow i::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.tile.in .flow i:nth-of-type(1)::after { transform: scaleX(1); transition-delay: .4s; }
.tile.in .flow i:nth-of-type(2)::after { transform: scaleX(1); transition-delay: 1.1s; }
.tile.in .flow span:last-child { border-color: var(--blue); color: var(--blue); transition-delay: 1.8s; }
@media (max-width: 480px) { .flow span { font-size: .75rem; padding: 7px 10px; } }

/* ---------- Settori ---------- */
.sectors { display: grid; gap: 16px; }
@media (min-width: 680px) { .sectors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .sectors { grid-template-columns: repeat(3, 1fr); } }
.sector { border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; background: var(--white); transition: border-color var(--base) var(--ease), transform var(--base) var(--ease), opacity .9s var(--ease-out); }
.sector:hover { border-color: var(--blue); transform: translateY(-3px); }
.sector .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; transition: background-color var(--base) var(--ease), color var(--base) var(--ease), transform var(--base) var(--ease); }
.sector:hover .ico { background: var(--blue); color: var(--white); transform: rotate(-6deg); }
.sector .ico svg { width: 24px; height: 24px; }
.sector p { margin: 6px 0 0; color: var(--stone); font-size: .9375rem; }
.sectors-note { margin-top: 28px; color: var(--stone); }

/* ---------- Lavori ---------- */
.works-grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .works-grid { grid-template-columns: repeat(3, 1fr); } }
.work { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform var(--base) var(--ease), box-shadow var(--base) var(--ease), opacity .9s var(--ease-out); }
.work:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(17, 17, 17, .45); }
.work-shot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); border-bottom: 1px solid var(--line); }
.work-page { position: absolute; inset: 0 0 auto; height: 220%; background: var(--bg); transition: transform 2.6s var(--ease); }
.work:hover .work-page, .work:focus-within .work-page { transform: translateY(-52%); }
.work-body { padding: 22px 24px 26px; }
.work { position: relative; }
.work-view { display: inline-block; margin-top: 14px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; font-size: .9375rem; color: var(--blue); cursor: pointer; }
.work-view::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.work-view:focus-visible { outline: none; }
.work-view:focus-visible::after { outline: 2px solid var(--blue); outline-offset: 3px; }
.work:hover .work-view { text-decoration: underline; text-underline-offset: .2em; }
html.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--night); color: var(--ivory); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer::backdrop { background: rgba(14, 14, 16, .92); }
.viewer-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.viewer-title { margin: 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; }
.viewer-note { margin: 2px 0 0; font-size: .8125rem; color: var(--stone-night); }
.viewer-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: inherit; cursor: pointer; transition: background-color var(--base) var(--ease); }
.viewer-close:hover { background: rgba(255, 255, 255, .1); }
.viewer-close:focus-visible, .viewer-body:focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 2px; }
.viewer-body { position: relative; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }
.viewer-curtain { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.viewer.vc-on .viewer-curtain { pointer-events: auto; }
.viewer.vc-on .curtain-panel { transform: none; }
.viewer.vc-on .curtain-mark { opacity: 1; transform: none; transition-delay: .4s; }
.viewer.vc-on .curtain-mark i { width: 56px; transition-delay: .5s; }
.viewer.vc-pre { background: transparent; }
.viewer.vc-pre::backdrop { background: transparent; }
.viewer.vc-pre .viewer-bar, .viewer.vc-pre .viewer-body { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .viewer .curtain-panel, .viewer .curtain-mark, .viewer .curtain-mark i { transition: none !important; } }
.viewer-body img { position: relative; display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto; pointer-events: none; user-select: none; -webkit-user-select: none; }
.work-page img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-tag { display: inline-block; font-size: .8125rem; font-weight: 600; color: var(--blue); background: var(--blue-tint); border-radius: 999px; padding: 4px 10px; margin-bottom: 14px; }
.work-body p { margin: 8px 0 0; font-size: .9375rem; color: var(--stone); }
.works-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; padding: 26px 30px; border-radius: var(--r); background: var(--night); color: var(--ivory); }
.works-foot p { margin: 0; color: var(--stone-night); max-width: 40em; }
.works-foot strong { color: var(--ivory); font-weight: 600; }

/* ---------- Metodo ---------- */
.steps { display: grid; gap: 32px; position: relative; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps::before, .steps::after { content: ""; position: absolute; top: 23px; left: 24px; height: 2px; }
  .steps::before { right: 24px; background: var(--line); }
  .steps::after { width: calc(var(--p, 0) * (100% - 48px)); background: var(--blue); }
}
.step { position: relative; }
.step-n { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); display: grid; place-items: center; font: 600 1rem/1 var(--font); font-variant-numeric: tabular-nums; position: relative; z-index: 1; margin-bottom: 22px; transition: background-color .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.step.on .step-n { background: var(--blue); border-color: var(--blue); color: var(--white); transform: scale(1.06); }
.step p { margin: 10px 0 0; color: var(--stone); font-size: .9375rem; }

/* ---------- Perché noi ---------- */
.why-statement { font: 600 clamp(1.9rem, 3.4vw, 3rem)/1.08 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.why-statement span { color: var(--stone); }
.reasons { display: grid; gap: 14px; }
.reasons li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); }
.reasons .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--white); display: grid; place-items: center; }
.reasons .ico svg { width: 22px; height: 22px; }
.reasons p { margin: 6px 0 0; color: var(--stone); font-size: 1rem; }

/* ---------- Domande ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; transition: color var(--fast) var(--ease); }
.faq summary:hover h3 { color: var(--blue); }
.faq summary::after { content: ""; flex: 0 0 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background:
  linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: transform var(--base) var(--ease), background-color var(--base) var(--ease), color var(--base) var(--ease), border-color var(--base) var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--blue); border-color: var(--blue); color: var(--white); }
.faq details::details-content { height: 0; overflow: clip; transition: height var(--base) var(--ease), content-visibility var(--base) allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq .answer { padding: 0 56px 24px 0; max-width: 46em; color: var(--stone); }
.faq .answer p:last-child { margin: 0; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group-title { font-size: .9375rem; color: var(--blue); font-weight: 600; margin-bottom: 14px; }
.faq-aside { display: grid; gap: 28px; align-content: start; }
@media (min-width: 960px) { .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.faq-nav p { font-size: .875rem; color: var(--stone); margin: 0 0 10px; }
.faq-nav ul { display: grid; gap: 4px; }
.faq-nav a { display: block; padding: 9px 12px; margin-left: -12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.faq-nav a:hover { background: var(--blue-tint); color: var(--blue); }
.help { border-radius: var(--r); padding: 26px; background: var(--night); color: var(--ivory); }
.help p { margin: 6px 0 18px; color: var(--stone-night); font-size: .9375rem; }

/* ---------- Contatti ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; left: -300px; bottom: -500px; background: radial-gradient(closest-side, rgba(47, 91, 255, .22), transparent); pointer-events: none; }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: clamp(48px, 6vw, 96px); } }
.contact-grid .lead { margin-top: 20px; }
.direct { margin: 36px 0 0; display: grid; gap: 18px; }
.direct div { display: grid; gap: 2px; }
.direct dt { font-size: .875rem; color: var(--stone-night); }
.direct dd { margin: 0; font-size: 1.0625rem; }
.direct a { text-decoration: none; }
.direct a:hover { color: var(--blue-soft); }
.contact-wolf { width: min(260px, 60%); margin-top: 48px; color: var(--ivory); }
.form-card { background: var(--night-2); border: 1px solid var(--line-night); border-radius: 22px; padding: clamp(24px, 3.5vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.form { display: grid; gap: 22px; }
.two { display: grid; gap: 22px; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; color: var(--ivory); font-weight: 600; }
.field label span { color: var(--stone-night); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #3A3940; border-radius: var(--r-sm); background: var(--night); color: var(--ivory); font: 400 1rem/1.4 var(--font); padding: 14px; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ivory) 50%), linear-gradient(135deg, var(--ivory) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { color: var(--ink); background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #77756F; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #55545B; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 255, .25); }
.field [aria-invalid="true"] { border-color: #FF8A80; }
.err { margin: 0; font-size: .875rem; color: #FFB3AB; }
.err:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; cursor: pointer; font-size: .9375rem; color: var(--stone-night); }
.consent input { flex: 0 0 auto; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.consent a { color: var(--ivory); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.form-status { margin: 0; font-size: .9375rem; }
.form-status.ok { color: var(--ivory); }
.form-status.ko { color: #FFB3AB; }

/* ---------- Lupo che si disegna ---------- */
.wolf { overflow: visible; }
.wolf .strokes path { fill: currentColor; fill-opacity: 0; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; }
.no-js .wolf .strokes path { fill-opacity: 1; stroke-dashoffset: 0; }
.wolf.draw .strokes path { animation: draw .75s var(--ease) forwards, fillin .45s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms), calc(var(--i) * 70ms + 650ms); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }

/* ---------- Pagine interne ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + clamp(32px, 5vw, 72px)) 0 clamp(64px, 8vw, 112px); }
.page-hero::before { content: ""; position: absolute; z-index: -1; inset: -30% -10% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(47, 91, 255, .25), transparent); pointer-events: none; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--stone-night); margin-bottom: 28px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ivory); }
.page-hero .lead { margin-top: 24px; }
.page-hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero-grid { grid-template-columns: 1.3fr 1fr; } }
.page-hero .h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); letter-spacing: -0.045em; }
.prose { max-width: 40em; color: var(--stone); }
.prose p:last-child { margin-bottom: 0; }
.wolf-wrap { max-width: 360px; width: 70%; margin-left: auto; color: var(--ivory); }
@media (min-width: 960px) { .wolf-wrap { width: 100%; } }

/* Team */
.team { display: grid; gap: 20px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { border: 1px solid var(--line); border-radius: var(--r); padding: 28px; background: var(--white); transition: transform var(--base) var(--ease), border-color var(--base) var(--ease), opacity .9s var(--ease-out); }
.member:hover { transform: translateY(-4px); border-color: var(--blue); }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--night); color: var(--ivory); display: grid; place-items: center; font: 600 1.375rem/1 var(--display); letter-spacing: -0.02em; margin-bottom: 22px; }
.member .role { margin: 6px 0 0; color: var(--stone); font-size: .9375rem; }
.member .member-in { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; min-height: 32px; font-size: .9375rem; }
.member .member-in svg { flex: none; }

/* Valori */
.values { display: grid; gap: 16px; }
@media (min-width: 760px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { padding: 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
.values .n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); margin-bottom: 16px; }
.values .n svg { width: 20px; height: 20px; }
.values p { margin: 8px 0 0; color: var(--stone); font-size: 1rem; }

/* Invito finale */
.cta-band { position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 9vw, 128px) 0; }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 800px; height: 800px; right: -200px; top: -300px; background: radial-gradient(closest-side, rgba(47, 91, 255, .28), transparent); }
.cta-band .container { display: grid; gap: 32px; align-items: end; }
@media (min-width: 960px) { .cta-band .container { grid-template-columns: 1fr auto; } }
.cta-band .lead { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--ivory); padding: clamp(64px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-night); overflow: hidden; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 32px; } }
.footer-logo { width: 96px; }
.footer-claim { margin: 22px 0 0; color: var(--stone-night); max-width: 22em; font-size: .9375rem; }
.footer-h { font-size: .875rem; color: var(--stone-night); font-weight: 400; margin: 0 0 14px; }
.footer-list { display: grid; gap: 10px; font-size: .9375rem; }
.footer-list a { text-decoration: none; transition: color var(--fast) var(--ease); }
.footer-list a:hover { color: var(--blue-soft); }
.footer-word { margin: clamp(48px, 6vw, 80px) 0 0; font: 600 clamp(4rem, 17.5vw, 15.5rem)/.8 var(--display); letter-spacing: -0.06em; color: rgba(245, 243, 239, .07); white-space: nowrap; user-select: none; }
.footer-bottom { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-night); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: .8125rem; color: var(--stone-night); }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--ivory); }
.footer-legal { display: inline-flex; flex-wrap: wrap; gap: 0 24px; }
/* Aree di clic di almeno 24 px anche su computer (WCAG 2.5.8), senza cambiare l'impaginazione */
.footer-list a, .footer-legal a, .breadcrumb a { display: inline-block; padding: 6px 0; margin: -6px 0; }
.page-hero .actions { margin-top: 28px; }

/* ---------- Privacy ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin: 44px 0 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--stone); }
.legal ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.legal a { color: var(--blue); }
.note { border: 1px dashed var(--ink); border-radius: var(--r-sm); padding: 14px 18px; font-size: .9375rem; color: var(--ink); background: var(--mist); margin: 0 0 8px; }

/* ---------- Progetti dimostrativi: suggerimento giusto per mouse o dito ---------- */
.hint-touch { display: none; }
.work.play .work-page { transform: translateY(-52%); transition-duration: 5s; }
@media (hover: none) and (min-width: 760px) { .hint-hover { display: none; } }

/* ---------- Telefono: versione compatta ---------- */
.rail-dots { display: none; }
@media (max-width: 759px) {
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .lead { margin-top: 14px; }

  /* Apertura */
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-grid { gap: 40px; padding-bottom: 48px; }
  .hero .lead { margin-top: 20px; }
  .hero .actions { margin-top: 28px; }

  /* Servizi e lavori: schede che si scorrono di lato */
  [data-rail] { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad-r) 0 var(--pad-l); margin: 0 calc(var(--pad-r) * -1) 0 calc(var(--pad-l) * -1); padding: 6px var(--pad-r) 10px var(--pad-l); scrollbar-width: none; overscroll-behavior-x: contain; }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > * { flex: 0 0 min(84%, 360px); scroll-snap-align: start; }
  [data-rail]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
  .js [data-rail] > [data-reveal] { opacity: 1; transform: none; }
  .tile { padding: 24px; }
  .tile-visual { padding-top: 18px; }
  .serp { padding: 12px; }
  .serp-bar { height: 40px; padding: 0 14px; gap: 8px; font-size: .875rem; }
  .serp-results { margin-top: 12px; min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .serp-top { min-height: 124px; }
  .serp-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .serp-snip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .serp-sk { display: none; }
  .mini-phone { width: 150px; height: 230px; }
  .rail-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .rail-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-strong); transition: width var(--base) var(--ease), background-color var(--base) var(--ease); }
  .rail-dots i.on { width: 22px; background: var(--blue); }
  .hint-hover { display: none; }
  .hint-touch { display: inline; }
  .works-foot { margin-top: 28px; padding: 22px; }

  /* Settori: griglia a due colonne */
  .sectors { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sector { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .sector .ico { width: 40px; height: 40px; border-radius: 12px; }
  .sector .ico svg { width: 20px; height: 20px; }
  .sector .h3 { font-size: 1rem; line-height: 1.25; }
  .sectors-note { margin-top: 20px; }

  /* Metodo: passi in colonna, numero a sinistra */
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding-bottom: 22px; }
  .step:last-child { padding-bottom: 0; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
  .step-n { width: 40px; height: 40px; margin: 0; grid-row: span 2; font-size: .9375rem; }
  .step .h3 { padding-top: 9px; }
  .step p { margin-top: 4px; }

  /* Perché noi */
  .reasons li { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px; }
  .reasons .ico { width: 40px; height: 40px; border-radius: 10px; }
  .reasons .ico svg { width: 20px; height: 20px; }

  /* Contatti */
  .contact-grid { gap: 36px; }
  .direct { margin-top: 28px; }
  .contact-wolf { width: 140px; margin-top: 28px; }

  /* Footer */
  .site-footer { padding-top: 56px; }
  .footer-grid { gap: 28px; }
  .footer-logo { width: 72px; }
  .footer-sectors { display: none; }
  .footer-list { display: flex; flex-wrap: wrap; gap: 10px 22px; }
  .footer-word { margin-top: 36px; }
}

/* ---------- Schermi stretti (320–400 px) e testo ingrandito dalle impostazioni del telefono ---------- */
.hero-grid > * { min-width: 0; }
.hero-title, .h1, .h2 { overflow-wrap: break-word; }
.direct dd, .footer-list a, .mobile-nav .mail a { overflow-wrap: anywhere; }
@media (max-width: 400px) {
  .hero-title { font-size: min(2.9rem, 13.2vw); }
  .mock-tabs { max-width: 100%; }
  .mock-tabs button { padding: 8px 10px; font-size: min(.875rem, 3.8vw); }
}

/* ---------- Telefoni piccoli: settori senza descrizione ---------- */
@media (max-width: 559px) { .sector p { display: none; } }
@media (min-width: 560px) and (max-width: 759px) { .sector p { font-size: .875rem; } }

/* ---------- Schermi bassi (telefono in orizzontale): menu più compatto ---------- */
@media (max-height: 520px) {
  .mobile-nav { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav-top { height: 60px; }
  .mobile-nav ul { margin-top: 4px; }
  .mobile-nav li a { padding: 9px 0; font-size: 1.3125rem; }
  .mobile-nav .btn { margin-top: 16px; min-height: 48px; }
  .mobile-nav .mail { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 20px; }
}

/* ---------- Touch (iPhone, Android, pieghevoli) ---------- */
a, button, summary, label, input, select, textarea { -webkit-tap-highlight-color: transparent; }
@media (pointer: coarse) {
  /* aree di tocco di almeno 44 px */
  .footer-list { gap: 0 22px; }
  .footer-list a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb a { display: inline-block; padding: 12px 0; margin: -12px 0; }
  .consent input { width: 24px; height: 24px; margin-top: 0; }
  .site-header .brand { min-height: 44px; }
  .mock-tabs button { min-height: 44px; }
  .direct dd a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (hover: none) {
  /* niente effetti "passaggio del mouse" che restano attivi dopo un tocco */
  .btn:hover, .tile:hover, .sector:hover, .member:hover, .work:hover { transform: none; }
  .btn-primary:hover { background: var(--blue); box-shadow: 0 10px 30px -12px rgba(47, 91, 255, .7); }
  .tile:hover { border-color: var(--line); box-shadow: none; }
  .tile-dark:hover { border-color: var(--night); }
  .sector:hover, .member:hover { border-color: var(--line); }
  .sector:hover .ico { background: var(--blue-tint); color: var(--blue); transform: none; }
  .work:hover { box-shadow: none; }
  .work:hover:not(.play) .work-page { transform: none; }
  .btn:active { transform: scale(.98); }
}

/* ---------- Selettore lingua IT / EN ---------- */
.lang { display: inline-flex; align-items: center; font: 600 .8125rem/1 var(--font); letter-spacing: .04em; }
.lang a { display: inline-grid; place-items: center; min-width: 30px; min-height: 44px; text-decoration: none; opacity: .5; transition: opacity var(--fast) var(--ease); }
.lang a[aria-current] { opacity: 1; }
.lang span { opacity: .3; padding: 0 1px; }
@media (hover: hover) { .lang a:hover { opacity: 1; } }

/* ---------- Tenda tra le pagine ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; overflow: hidden; }
.curtain-panel { position: absolute; inset: 0; background: linear-gradient(180deg, #0A0A0C 0%, #121216 100%); transform: translateY(-101%); transition: transform .6s cubic-bezier(.76, 0, .24, 1); will-change: transform; }
.curtain-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); }
.curtain-mark { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--ivory); opacity: 0; transform: scale(.94); transition: opacity .25s var(--ease), transform .5s var(--ease-out); }
.curtain-mark img { width: 68px; height: auto; }
.curtain-mark span { font: 600 1.75rem/1 var(--display); letter-spacing: -0.03em; }
.curtain-mark i { display: block; width: 0; height: 2px; border-radius: 2px; background: var(--blue); transition: width .5s var(--ease-out); }
.is-leaving .curtain, .curtain-closed .curtain { pointer-events: auto; }
.is-leaving .curtain-panel, .curtain-closed .curtain-panel { transform: none; }
.is-leaving .curtain-mark, .curtain-closed .curtain-mark { opacity: 1; transform: none; }
.is-leaving .curtain-mark { transition-delay: .4s; }
.is-leaving .curtain-mark i, .curtain-closed .curtain-mark i { width: 56px; }
.is-leaving .curtain-mark i { transition-delay: .5s; }
.curtain-closed .curtain-panel, .curtain-closed .curtain-mark, .curtain-closed .curtain-mark i { transition: none; }
.curtain-opening .curtain-panel { transition-delay: .15s; }
@media print { .curtain { display: none; } }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wolf .strokes path { fill-opacity: 1; stroke-dashoffset: 0; }
  .marquee-track, .mini-screen, .hero-bg::before { animation: none !important; }
  .curtain { display: none; }
}

/* ---------- Schermi grandi: il sito cresce un po', così non resta piccolo al centro ---------- */
@media (min-width: 1800px) { html { font-size: 106.25%; } :root { --max: 1440px; --header-h: 84px; } .phone { width: 236px; } }
@media (min-width: 2200px) { html { font-size: 118.75%; } :root { --max: 1640px; --header-h: 92px; } .phone { width: 262px; } }
