/* =========================================================
   GUERRISI AGENCY — sito in stile startup
   ========================================================= */

/* Registrata: permette di animare il colore del tema quando cambia. */
@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #8dff5a;
}

:root {
  --bg: #050706;
  --bg-2: #090c0a;
  --surface: #0e130f;
  --surface-2: #151b16;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef2ec;
  --muted: #8f998f;
  --accent: #8dff5a;
  --accent-ink: #050706;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-y: clamp(96px, 12vw, 176px);
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.22, .8, .2, 1);

  transition: --accent .7s var(--ease);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
/* grana pellicola */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -80px; left: 16px;
  z-index: 400;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

.icon { width: 1em; height: 1em; flex: none; }
.accent { color: var(--accent); }
.mono {
  font-family: var(--f-mono);
  font-size: .75rem;
  font-weight: 450;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ---------- Tipografia ---------- */
.h2, .hero__title, .mock__caption strong, .work__name, .log__body h3, .plan__head h3,
.plan__price strong, .price-block strong, .summary__total, .lab__readouts strong,
.contact__title, .footer__claim, .footer__giant, .nav__logo, .nav__mark, .menu nav a {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.h2 { font-size: clamp(3.1rem, 7vw, 6.75rem); line-height: .86; }

.label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.label .mono {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.label__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--line-2);
  filter: grayscale(1) contrast(1.1);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 64px;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head__text { max-width: 27rem; color: var(--muted); font-size: 1.0625rem; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9375rem;
  white-space: nowrap;
  transition: translate .5s var(--ease), background-color .3s, color .3s, box-shadow .3s, border-color .3s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 12px 40px -14px var(--accent);
}
.btn--accent:hover {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), 0 16px 50px -12px var(--accent);
}
.btn--glass {
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { height: 42px; padding: 0 18px; font-size: .875rem; }
.btn--block { width: 100%; }

.live-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: live 2s infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

.tag {
  display: inline-grid;
  place-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: .8125rem;
}
.tag--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Progress + cursore ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 150; }
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; position: fixed; inset: 0; z-index: 300; pointer-events: none; transition: opacity .3s; }
  .cursor.is-hidden { opacity: 0; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; translate: -50% -50%; }
  .cursor__dot { width: 6px; height: 6px; background: var(--accent); }
  .cursor__ring {
    width: 38px; height: 38px;
    border: 1.5px solid color-mix(in srgb, var(--accent) 65%, transparent);
    transition: width .35s var(--ease), height .35s var(--ease), background-color .35s;
  }
  .cursor.is-hover .cursor__ring { width: 66px; height: 66px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .cursor.is-down .cursor__ring { width: 26px; height: 26px; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding-inline: 12px;
  pointer-events: none;
  transition: translate .5s var(--ease);
}
.nav.is-hidden { translate: 0 -140%; }
.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 980px);
  height: 60px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  background: rgba(10, 14, 11, .6);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .6);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-size: 1.5rem;
  line-height: 1;
}
.nav__logo em { font-style: italic; color: var(--accent); margin-left: 5px; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.25rem;
}
.nav__links { display: none; gap: 2px; margin-right: auto; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .875rem;
  color: var(--muted);
  transition: color .25s, background-color .25s;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, .08); }
.nav__cta { display: none; }
.nav__toggle {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 110px var(--gutter) 40px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(3rem, 14vw, 5rem);
  line-height: 1;
  opacity: 0;
  translate: 0 24px;
  transition: opacity .6s var(--ease), translate .6s var(--ease);
}
.menu.is-open nav a { opacity: 1; translate: 0 0; }
.menu.is-open nav a:nth-child(2) { transition-delay: .05s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .1s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .15s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .2s; }
.menu nav small { font-family: var(--f-mono); font-size: .75rem; font-weight: 400; letter-spacing: .06em; color: var(--accent); }
@media (min-width: 900px) { .menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 104px var(--gutter) clamp(20px, 3vw, 36px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 55% at 74% 40%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    radial-gradient(40% 45% at 8% 95%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%),
    linear-gradient(180deg, #0b100c 0%, var(--bg) 100%);
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 68% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 68% 40%, #000 15%, transparent 72%);
}
.hero__inner {
  width: 100%;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 0 auto;
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__stage { order: -1; }
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 72px); margin-top: auto; }
  .hero__stage { order: 0; }
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(5, 7, 6, .45);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: .875rem;
  transition: border-color .3s;
}
.chip-link:hover { border-color: var(--accent); }
.chip-link .mono { color: var(--accent); white-space: nowrap; }
.chip-link__sep { width: 1px; height: 14px; background: var(--line-2); }
.chip-link .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.chip-link:hover .icon { transform: translateX(3px); }

.hero__title {
  margin: 24px 0 22px;
  /* la riga più lunga ("il tuo business.") occupa ~6.8em: così sta sempre su una riga */
  font-size: clamp(2.5rem, calc((100vw - 2 * var(--gutter)) / 7.1), 5.4rem);
  line-height: .86;
}
@media (min-width: 1000px) { .hero__title { font-size: clamp(4rem, 6vw, 6.6rem); } }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { translate: 0 108%; animation: rise 1.1s var(--ease) .15s forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .25s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: .35s; }
@keyframes rise { to { translate: 0 0; } }

.hero__lead {
  max-width: 31rem;
  margin-bottom: 30px;
  color: rgba(238, 242, 236, .8);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.js .hero-in { opacity: 0; animation: fade-up .9s var(--ease) var(--d, 0s) forwards; }
@keyframes fade-up { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }

/* mockup dei lavori */
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 12;
  justify-self: center;
  perspective: 1400px;
}
.mock {
  position: absolute;
  overflow: hidden;
  background: #0d120e;
  transition: transform .9s var(--ease);
}
.mock--browser {
  inset: 0 0 9% 7%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, .9),
    0 0 90px -20px color-mix(in srgb, var(--accent) 38%, transparent);
  transform: rotateY(calc(-11deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg)));
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #111712;
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.mock__url {
  flex: 1;
  max-width: 320px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 24px;
  padding: 0 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
  font-size: .6875rem;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
}
.mock__lock { flex: none; width: 8px; height: 7px; margin-top: 2px; border-radius: 2px; background: var(--accent); }
.mock__screen { position: relative; flex: 1; overflow: hidden; background: #0a0d0b; }
.mock__screen img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.08;
  transition: opacity 1s var(--ease), scale 6s linear;
}
.mock__screen img.is-active { opacity: 1; scale: 1; }
.mock__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  /* a sinistra lascia spazio al telefono che si sovrappone */
  padding: 70px 22px 20px 25%;
  background: linear-gradient(0deg, rgba(5, 7, 6, .92), transparent);
}
.mock__caption .mono { color: var(--accent); }
.mock__caption strong { font-size: clamp(1.5rem, 2.8vw, 2.5rem); line-height: .9; }
.mock--phone {
  left: 0; bottom: 0;
  width: 27%;
  aspect-ratio: 9 / 19;
  border-radius: 26px;
  border: 5px solid #1c231d;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .95), 0 0 0 1px var(--line-2);
  transform: rotateY(calc(-11deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg))) translateZ(70px);
}
.mock--phone .mock__screen { position: absolute; inset: 0; }
.mock__notch {
  position: absolute;
  top: 6px; left: 50%;
  z-index: 2;
  width: 38%; height: 11px;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
}
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(10, 14, 11, .72);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: .8125rem;
  white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.float-chip--a { top: 5%; right: -1%; }
.float-chip--b { bottom: 36%; right: -3%; color: var(--accent); animation-delay: -3s; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 600px) {
  .float-chip { font-size: .75rem; padding: 6px 11px; }
  .float-chip--a { right: 0; }
  .float-chip--b { display: none; }
  .mock__caption { padding: 40px 14px 12px 27%; }
  .mock__caption strong { font-size: 1.25rem; }
  .mock__bar { height: 30px; }
}

.hero__specs {
  width: 100%;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  border-top: 1px solid var(--line-2);
}
.hero__specs li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 0;
  font-size: .9375rem;
  color: rgba(238, 242, 236, .8);
  border-bottom: 1px solid var(--line);
}
.hero__specs .mono { color: var(--accent); }
.hero__specs strong { color: var(--text); font-weight: 600; margin-right: -6px; }
@media (min-width: 720px) {
  .hero__specs { grid-template-columns: repeat(3, 1fr); }
  .hero__specs li { border-bottom: 0; }
  .hero__specs li + li { padding-left: 20px; border-left: 1px solid var(--line); }
}

.hero__tag { display: none; }
@media (min-width: 1200px) {
  .hero__tag {
    position: absolute;
    right: calc(var(--gutter) / 2 - 6px);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    writing-mode: vertical-rl;
    color: rgba(238, 242, 236, .6);
  }
  .hero__tag-line { width: 1px; height: 80px; background: var(--line-2); }
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 28px;
  margin: 0;
  padding: 0 28px 0 0;
  list-style: none;
}
.ticker li {
  font-family: var(--f-mono);
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
}
.ticker .spark, .log__item--major .log__ver::before {
  width: 9px; height: 9px;
  background: var(--accent);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Chi sono ---------- */
.statement { padding-bottom: clamp(72px, 8vw, 120px); }
.statement__text {
  max-width: 21em;
  font-size: clamp(1.75rem, 3.7vw, 3.4rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.028em;
}
.js .statement__text.is-armed .w { opacity: .15; transition: opacity .35s ease; }
.js .statement__text.is-armed .w.is-on { opacity: 1; }
.statement__text .w--hl { color: var(--accent); }
.statement__meta {
  display: grid;
  margin: clamp(48px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.statement__meta li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.statement__meta .mono { color: var(--accent); }
@media (min-width: 860px) {
  .statement__meta { grid-template-columns: repeat(4, 1fr); }
  .statement__meta li { flex-direction: column; gap: 8px; padding: 20px 20px 0 0; border-bottom: 0; }
  .statement__meta li + li { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* ---------- Servizi + Design Lab ---------- */
.services { border-top: 1px solid var(--line); }
.services__grid { display: grid; gap: 56px; align-items: start; }
.services__lead { max-width: 32rem; margin: 28px 0 40px; color: var(--muted); font-size: 1.125rem; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.steps .mono { padding-top: 5px; color: var(--accent); }
.steps strong { display: block; margin-bottom: 4px; font-size: 1.125rem; font-weight: 600; }
.steps p { color: var(--muted); }
@media (min-width: 1000px) {
  .services__grid { grid-template-columns: 1fr 1.05fr; gap: clamp(56px, 7vw, 120px); }
  .lab { position: sticky; top: 104px; }
}

.lab, .checklist, .summary {
  padding: 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.lab__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 16px;
  color: var(--muted);
}
.lab__head > .mono:first-child { display: inline-flex; align-items: center; gap: 10px; }
.lab__state { color: var(--accent); white-space: nowrap; }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.segmented button {
  height: 40px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .3s, color .3s;
}
.segmented button:hover { color: var(--text); }
.segmented button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }

.lab__stage {
  position: relative;
  height: calc(250px * var(--k, 1) + 36px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 60%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%),
    #070a08;
}
.lab__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
/* tela a misura fissa, scalata via JS: le container query lavorano sulle misure reali */
.lab__canvas {
  position: absolute;
  left: 50%; top: 50%;
  width: 540px;
  height: 250px;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  transform: scale(var(--k, 1));
}
.device {
  width: 540px;
  height: 250px;
  overflow: hidden;
  container-type: inline-size;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #0b0f0c;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transition: width .7s var(--ease), border-radius .7s var(--ease);
}
.device[data-device-frame="tablet"] { width: 330px; border-radius: 18px; }
.device[data-device-frame="mobile"] { width: 170px; border-radius: 24px; border-width: 4px; border-color: #1c231d; }
.site { display: grid; align-content: start; gap: 12px; height: 100%; padding: 12px; }
.site__nav { display: flex; align-items: center; gap: 8px; height: 16px; }
.site__logo { width: 38px; height: 8px; border-radius: 3px; background: var(--text); opacity: .85; }
.site__links { display: flex; gap: 6px; margin-left: auto; }
.site__links i { width: 26px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.site__btn { width: 44px; height: 14px; border-radius: 999px; background: var(--accent); }
.site__burger {
  display: none;
  width: 14px; height: 10px;
  margin-left: auto;
  background: linear-gradient(rgba(255, 255, 255, .6) 2px, transparent 2px) 0 0 / 100% 4px;
}
.site__hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 12px; }
.site__copy { display: grid; gap: 7px; }
.site__copy b { display: block; height: 13px; border-radius: 4px; background: rgba(255, 255, 255, .85); }
.site__copy b.short { width: 62%; background: var(--accent); }
.site__cta { width: 60px; height: 15px; margin-top: 4px; border-radius: 999px; background: var(--accent); }
.site__img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=500&q=70") center / cover;
}
.site__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.site__cards i { height: 44px; border-radius: 8px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
@container (max-width: 380px) {
  .site__hero { grid-template-columns: 1fr; }
  .site__img { order: -1; aspect-ratio: 16 / 7; }
  .site__cards { grid-template-columns: repeat(2, 1fr); }
  .site__cards i { height: 30px; }
}
@container (max-width: 200px) {
  .site { gap: 9px; padding: 9px; }
  .site__links, .site__btn { display: none; }
  .site__burger { display: block; }
  .site__img { aspect-ratio: 4 / 3; }
  .site__copy b { height: 10px; }
  .site__cards { grid-template-columns: 1fr; }
  .site__cards i { height: 22px; }
}

.lab__readouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding: 18px 6px 16px;
}
.lab__readouts > div { display: flex; flex-direction: column; gap: 6px; }
.lab__readouts .mono { color: var(--muted); }
.lab__readouts strong { font-size: clamp(1.75rem, 7vw, 2.4rem); line-height: .9; font-variant-numeric: tabular-nums; }
.lab__colors {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 6px 4px;
  border-top: 1px solid var(--line);
}
.lab__colors > .mono { color: var(--muted); }
.lab__colors > .mono span { color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  position: relative;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
  transition: scale .3s var(--ease);
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--c);
  opacity: 0;
  scale: .8;
  transition: opacity .3s, scale .3s var(--ease);
}
.swatch:hover { scale: 1.08; }
.swatch[aria-checked="true"]::after { opacity: 1; scale: 1; }

/* ---------- Lavori ---------- */
.work { background: var(--bg-2); border-block: 1px solid var(--line); }
.work__grid { display: grid; gap: 16px; }
@media (min-width: 1100px) { .work__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.work__stage {
  position: relative;
  isolation: isolate;
  min-height: clamp(440px, 60vw, 640px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #0b0f0c;
}
.work__media { position: absolute; inset: 0; z-index: -1; }
.work__media img:not(.work__logo) {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.06;
  transition: opacity .9s var(--ease), scale 1.6s var(--ease);
}
.work__media img.is-active { opacity: 1; scale: 1; }
.work__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 6, .6) 0%, transparent 28%, transparent 42%, rgba(5, 7, 6, .94) 100%);
}
.work__logo {
  position: absolute;
  top: 64px; left: 22px;
  z-index: 1;
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  transition: opacity .5s;
}
.work__logo[hidden] { display: block; opacity: 0; }
.work__logo--contain { width: 96px; border-radius: 16px; object-fit: contain; padding: 6px; background: #120b07; }
.work__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  color: rgba(238, 242, 236, .85);
}
.work__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}
.work__name { max-width: 11em; font-size: clamp(2.3rem, 4.6vw, 4.5rem); line-height: .88; }

.panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.panel__kicker { color: var(--muted); }
.parts { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.parts button {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  width: 100%;
  padding: 14px 6px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s;
}
.parts button:hover { background: rgba(255, 255, 255, .03); }
.parts .mono { padding-top: 3px; color: var(--muted); }
.parts strong { display: block; font-size: 1rem; font-weight: 600; }
.parts em { display: block; margin-top: 2px; font-style: normal; color: var(--muted); font-size: .6875rem; }
.parts small {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
  transition: max-height .45s var(--ease), opacity .3s, margin .3s;
}
.parts button[aria-pressed="true"] small { max-height: 110px; margin-top: 8px; opacity: 1; }
.parts button[aria-pressed="true"] > .mono,
.parts button[aria-pressed="true"] em { color: var(--accent); }

/* ---------- Perché noi (lista stile release notes) ---------- */
.log { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.log__item {
  display: grid;
  gap: 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s;
}
.log__item:hover { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .03), transparent); }
.log__ver { display: flex; align-items: center; gap: 12px; }
.log__item--major .log__ver::before { content: ""; }
.log__body h3 { margin-bottom: 6px; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: .95; }
.log__body p { max-width: 36rem; color: var(--muted); }
.log__item--major h3 { color: var(--accent); }
.log__type { color: var(--muted); }
.log__item--major .log__type { color: var(--accent); }
@media (min-width: 860px) {
  .log__item { grid-template-columns: 120px minmax(0, 1fr) 170px; align-items: center; gap: 32px; padding: 26px 10px; }
  .log__type { justify-self: end; text-align: right; }
}

/* ---------- HACCP ---------- */
.haccp { background: var(--bg-2); border-block: 1px solid var(--line); }
.haccp__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .haccp__grid { grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 120px); } }
.haccp__lead { max-width: 34rem; margin: 28px 0 32px; color: var(--muted); font-size: 1.125rem; }
.price-block {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 26px;
  margin-bottom: 32px;
  padding: 20px 26px;
  border-radius: 20px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}
.price-block .mono { display: block; margin-bottom: 6px; color: var(--muted); }
.price-block strong { font-size: clamp(3rem, 5vw, 4.25rem); line-height: .9; color: var(--accent); }
.price-block__sep { width: 1px; height: 56px; background: var(--line-2); }
.price-block p { color: rgba(238, 242, 236, .8); font-size: .9375rem; line-height: 1.5; }
.haccp .btn.reveal { display: inline-flex; }
.checklist__list { display: grid; gap: 4px; margin: 0; padding: 4px; list-style: none; }
.checklist__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 12px;
  font-size: .975rem;
  color: var(--text);
  background: rgba(255, 255, 255, .03);
  transition: color .4s, background-color .4s;
}
.checklist__box {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transition: background-color .35s, border-color .35s;
}
.checklist__box .icon { width: 15px; height: 15px; transition: opacity .3s, scale .35s var(--ease); }
.js .checklist__list li:not(.is-done) { color: rgba(238, 242, 236, .5); background: transparent; }
.js .checklist__list li:not(.is-done) .checklist__box { background: transparent; border-color: var(--line-2); }
.js .checklist__list li:not(.is-done) .icon { opacity: 0; scale: .4; }

/* ---------- Prezzi ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s;
}
.plan:hover { border-color: var(--line-2); }
.plan--featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, var(--surface-2)), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--accent) 65%, transparent);
}
.plan--featured:hover { border-color: var(--accent); }
.plan__badge {
  position: absolute;
  top: -13px; left: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
}
.plan__badge .icon { width: 12px; height: 12px; }
.plan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan__head h3 { font-size: 2.25rem; line-height: .9; }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.plan__price strong { font-size: clamp(2.7rem, 4vw, 3.6rem); line-height: .9; color: var(--accent); }
.plan__price s { color: var(--muted); font-size: .9375rem; }
.plan__desc { color: var(--muted); }
.plan__list {
  display: grid;
  flex: 1;
  align-content: start;
  gap: 10px;
  margin: 0;
  padding: 18px 0 6px;
  list-style: none;
  border-top: 1px solid var(--line);
}
.plan__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.plan__list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.pricing__note { margin-top: 28px; text-align: center; color: var(--muted); }
.pricing__note a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* ---------- Preventivo ---------- */
.quote { background: var(--bg-2); border-block: 1px solid var(--line); }
.quote__grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1100px) {
  .quote__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .summary { position: sticky; top: 100px; }
}
.quote__steps { display: grid; gap: 16px; }
.qstep {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.qstep legend {
  float: left;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.qstep legend .mono {
  display: inline-grid;
  place-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  color: var(--accent);
}
.qstep legend small { color: var(--muted); font-weight: 400; font-size: .875rem; }
.qopts, .qchips { clear: both; }
.qopts { display: grid; gap: 10px; }
@media (min-width: 640px) { .qopts--2, .qopts--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1300px) { .qopts--3 { grid-template-columns: repeat(3, 1fr); } }
.qopt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 44px 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .02);
  text-align: left;
  transition: border-color .25s, background-color .25s;
}
.qopt:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.qopt strong { font-weight: 600; }
.qopt span { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.qopt em { margin-top: 6px; font-style: normal; color: var(--accent); }
.qopt::after {
  content: "";
  position: absolute;
  top: 16px; right: 16px;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  transition: background-color .25s, border-color .25s;
}
.qopt--sm::after { border-radius: 5px; }
.qopt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.qopt[aria-pressed="true"]::after {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='%23050706' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.qchips { display: flex; flex-wrap: wrap; gap: 10px; }
.qchip {
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-weight: 600;
  font-size: .9375rem;
  transition: background-color .25s, border-color .25s, color .25s;
}
.qchip:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.qchip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.summary { position: relative; isolation: isolate; overflow: hidden; }
.summary__glow {
  position: absolute;
  top: -35%; right: -30%;
  z-index: -1;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 24%, transparent), transparent);
  filter: blur(20px);
}
.summary__total {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 6px 18px;
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: .85;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.summary__cur { font-size: .45em; margin-top: .12em; }
.summary__rows { margin: 0; border-top: 1px solid var(--line); }
.summary__rows div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line);
}
.summary__rows dt { color: var(--muted); padding-top: 2px; }
.summary__rows dd { max-width: 65%; margin: 0; text-align: right; font-weight: 500; }
.summary__note { padding: 12px 6px 18px; color: var(--muted); font-size: .8125rem; }
.summary__form { display: grid; gap: 12px; padding: 0 6px 6px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8125rem; font-weight: 600; color: rgba(238, 242, 236, .85); }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(5, 7, 6, .6);
  color: var(--text);
  font: inherit;
  font-size: .9375rem;
  resize: vertical;
  transition: border-color .25s, box-shadow .25s;
}
.field input::placeholder, .field textarea::placeholder { color: #6d766e; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field [aria-invalid="true"] { border-color: #ff8080; }
.summary__msg { min-height: 1.4em; font-size: .875rem; }
.summary__msg.is-error { color: #ff8080; }
.summary__msg.is-success { color: var(--accent); }

/* ---------- Recensioni ---------- */
.reviews__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); } }
.review {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .3s;
}
.review:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.review__stars { display: flex; gap: 4px; color: var(--accent); }
.review__stars .icon { width: 16px; height: 16px; }
.review blockquote { flex: 1; font-size: 1.0625rem; line-height: 1.55; color: rgba(238, 242, 236, .88); }
.review figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.review__avatar {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 1fr 1.4fr; gap: 80px; } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: rotate .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.faq__icon .icon { width: 18px; height: 18px; }
.faq details[open] .faq__icon { rotate: 45deg; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.faq details p { max-width: 40rem; padding: 0 64px 26px 0; color: var(--muted); }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: hidden;
    transition: height .45s var(--ease), content-visibility .45s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Contatti ---------- */
.contact__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(40px, 6vw, 88px) clamp(20px, 5vw, 72px);
  border-radius: 36px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  text-align: center;
}
.contact__card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 70%);
}
.contact__glow {
  position: absolute;
  inset: -45%;
  z-index: -2;
  opacity: .55;
  filter: blur(70px);
  background: conic-gradient(from 0deg,
    transparent 0 18%,
    color-mix(in srgb, var(--accent) 45%, transparent) 28%,
    transparent 42% 66%,
    color-mix(in srgb, var(--accent) 30%, transparent) 78%,
    transparent 90%);
  animation: spin 16s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.contact__card .label { justify-content: center; }
.contact__title { margin-bottom: 22px; font-size: clamp(2.8rem, 7vw, 6.5rem); line-height: .86; }
.contact__text { max-width: 34rem; margin-bottom: 34px; color: var(--muted); font-size: 1.0625rem; }
.contact__tiles { display: grid; gap: 10px; width: 100%; max-width: 780px; margin-bottom: 28px; }
@media (min-width: 720px) { .contact__tiles { grid-template-columns: 1fr 1fr; } }
.tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  text-align: left;
  transition: border-color .3s, background-color .3s;
}
.tile:hover { border-color: var(--accent); background: rgba(255, 255, 255, .06); }
.tile__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.tile__icon .icon { width: 20px; height: 20px; }
.tile .mono { display: block; margin-bottom: 2px; color: var(--muted); }
.tile strong { font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
.tile__arrow { margin-left: auto; width: 18px; height: 18px; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.tile:hover .tile__arrow { transform: translate(2px, -2px); color: var(--accent); }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.contact__sign { margin-top: 28px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { overflow: hidden; padding: clamp(72px, 9vw, 120px) 0 32px; border-top: 1px solid var(--line); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.footer__claim { font-size: clamp(2.5rem, 5vw, 4rem); font-style: italic; line-height: .9; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__links a { color: var(--muted); transition: color .2s; }
.footer__links a:hover { color: var(--accent); }
.footer__giant {
  margin: clamp(40px, 6vw, 72px) 0 24px;
  font-size: min(22vw, 300px);
  line-height: .78;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-2);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 38%, transparent), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-user-select: none;
  user-select: none;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
}
.footer__legal p { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Caso studio: Callà (regia a scene guidata dallo scroll) ---------- */
.cs {
  --accent: #ff6a1f;
  --accent-ink: #1a0b03;
  --fire-2: #ffb347;
  --ink: #fff4ea;
  --bar: max(44px, 7svh);
  position: relative;
  height: 440vh;
  background: #070403;
  border-block: 1px solid var(--line);
}
.cs__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    radial-gradient(90% 60% at 50% 115%, rgba(255, 90, 20, .45), transparent 70%),
    #070403;
}
.cs__sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, .7) 100%);
}
.cs__fire {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}
.cs__photo { position: absolute; inset: 0; z-index: -2; }
.cs__photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  mix-blend-mode: screen;
  filter: saturate(1.15) contrast(1.05);
  transition: opacity 1.4s var(--ease);
}
.cs[data-scene="1"] .cs__photo .is-s1 { opacity: .2; }
.cs[data-scene="4"] .cs__photo .is-s4 { opacity: .3; }

/* barre da cinema + interfaccia di regia */
.cs__letterbox span {
  position: absolute;
  left: 0; right: 0;
  z-index: 5;
  height: 0;
  background: #000;
  transition: height .9s var(--ease);
}
.cs__letterbox span:first-child { top: 0; }
.cs__letterbox span:last-child { bottom: 0; }
.cs.is-rolling .cs__letterbox span { height: var(--bar); }
.cs__hud, .cs__progress {
  position: absolute;
  left: 0; right: 0;
  z-index: 6;
  height: var(--bar);
  padding-inline: var(--gutter);
  opacity: 0;
  transition: opacity .6s var(--ease) .2s;
}
.cs.is-rolling .cs__hud, .cs.is-rolling .cs__progress { opacity: 1; }
.cs__hud {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 240, 230, .72);
}
.cs__hud > .mono:first-child { display: inline-flex; align-items: center; gap: 10px; }
.cs__hud-scene { color: var(--accent); }
.cs__hud-tc { font-variant-numeric: tabular-nums; }
.cs__progress {
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 8px;
}
.cs__progress i {
  position: relative;
  height: 2px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, .14);
}
.cs__progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(var(--f, 0));
}

/* scene */
.cs__scene {
  position: absolute;
  z-index: 3;
  opacity: 0;
  translate: 0 36px;
  pointer-events: none;
  transition: opacity .8s var(--ease), translate .9s var(--ease);
}
.cs[data-scene="1"] .cs__scene--1,
.cs[data-scene="2"] .cs__scene--2,
.cs[data-scene="3"] .cs__scene--3,
.cs[data-scene="4"] .cs__scene--4 { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .15s; }
.cs__scene--1 {
  inset: var(--bar) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gutter) 90px;
  text-align: center;
}
.cs__scene--1 .label { justify-content: center; }
.cs__kicker { margin-bottom: 6px; color: var(--fire-2); letter-spacing: .32em; }
.cs__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(7rem, 30vw, 24rem);
  line-height: .8;
  letter-spacing: -.01em;
  color: transparent;
  background: linear-gradient(0deg, #ff3d00 0%, #ff7a1f 30%, #ffc46b 58%, #fff3dc 82%, #ffc46b 100%) 0 0 / 100% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: url(#cs-haze) drop-shadow(0 0 50px rgba(255, 100, 20, .35));
  animation: flame 2.6s ease-in-out infinite alternate;
}
@keyframes flame { to { background-position: 0 100%; } }
.cs__sub { max-width: 32rem; margin-top: 18px; color: rgba(255, 240, 230, .8); font-size: clamp(1rem, 1.4vw, 1.2rem); }
.cs__scene--2, .cs__scene--3, .cs__scene--4 {
  left: var(--gutter);
  top: calc(var(--bar) + 6svh);
  width: min(36rem, 40vw);
}
.cs__head {
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 62%;
  text-transform: uppercase;
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
  line-height: .86;
}
.fire {
  color: transparent;
  background: linear-gradient(90deg, #ff5a1f, #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
}
.cs__text { max-width: 30rem; margin-top: 20px; color: rgba(255, 240, 230, .75); font-size: 1.0625rem; }
.cs__features { display: grid; margin: 22px 0 0; padding: 0; list-style: none; }
.cs__features li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  column-gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  opacity: .3;
  transition: opacity .45s var(--ease);
}
.cs__features li.is-on { opacity: 1; }
.cs__features .mono { color: var(--accent); }
.cs__features strong { font-weight: 600; }
.cs__features em { grid-column: 2; font-style: normal; font-size: .875rem; color: rgba(255, 240, 230, .6); }
.cs__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 26px; }
.cs__tags span { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 240, 230, .85); }

/* striscia di foto (scena 4) */
.cs__strip {
  position: absolute;
  left: 46vw;
  top: 50%;
  z-index: 2;
  display: flex;
  gap: 16px;
  width: max-content;
  opacity: 0;
  translate: 0 -50%;
  transform: translateX(calc(var(--s4, 0) * -38%));
  transition: opacity .9s var(--ease), transform .6s var(--ease);
}
.cs[data-scene="4"] .cs__strip { opacity: 1; }
.cs__strip figure {
  width: clamp(150px, 16vw, 250px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .85);
}
.cs__strip figure:nth-child(even) { translate: 0 44px; }
.cs__strip img { width: 100%; height: 100%; object-fit: cover; }

/* dispositivi */
.cs__devices {
  position: absolute;
  right: max(var(--gutter), 4vw);
  top: 50%;
  z-index: 2;
  width: min(760px, 52vw);
  aspect-ratio: 16 / 10.5;
  translate: 0 -46%;
  perspective: 1600px;
  pointer-events: none;
}
.cs__browser {
  position: absolute;
  inset: 0 13% 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #120b07;
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .95), 0 0 120px -30px rgba(255, 100, 20, .55);
  transform-origin: 50% 100%;
  transform: translateY(70%) rotateX(55deg) scale(.8);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease);
}
.cs__browser .mock__bar { background: #1a110b; border-color: rgba(255, 255, 255, .08); }
.cs__phone {
  position: absolute;
  right: 0;
  bottom: -7%;
  width: 26%;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 28px;
  border: 5px solid #261b14;
  background: #000;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: translateY(90%) rotate(8deg);
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity .8s var(--ease);
}
.cs__phone video { width: 100%; height: 100%; object-fit: cover; }
.cs[data-scene="2"] .cs__browser { transform: rotateY(calc(-18deg + var(--s2, 0) * 10deg)) rotateX(6deg); opacity: 1; }
.cs[data-scene="2"] .cs__phone { transform: translateY(calc((1 - var(--s2, 0)) * 14%)) rotate(-3deg); opacity: 1; }
.cs[data-scene="3"] .cs__browser { transform: rotateY(12deg) rotateX(4deg) translateX(4%) scale(.92); opacity: .95; }
.cs[data-scene="3"] .cs__phone { transform: translate(-150%, -8%) rotate(4deg); opacity: 1; }
.cs[data-scene="4"] .cs__browser { transform: translateX(45%) rotateY(-32deg) scale(.8); opacity: 0; }
.cs[data-scene="4"] .cs__phone { transform: translateX(80%) rotate(12deg); opacity: 0; }

/* il sito di Callà, ricostruito in miniatura */
.cs__site { position: relative; flex: 1; overflow: hidden; }
.cs__site-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs__site::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 12, 8, .9) 0%, rgba(25, 15, 9, .6) 50%, rgba(20, 12, 7, .25) 100%),
    linear-gradient(to bottom, transparent 55%, rgba(23, 19, 15, .9) 100%);
}
.cs__site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  font-size: .625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 240, 230, .8);
}
.cs__site-nav img { width: auto; height: 22px; margin-right: auto; mix-blend-mode: screen; }
.cs__site-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 7% 7%;
}
.cs__site-kicker { font-size: .5625rem; letter-spacing: .3em; text-transform: uppercase; color: #c5a059; }
.cs__site-logo { width: 44%; max-width: 280px; mix-blend-mode: screen; }
.cs__site-hero strong { font: italic 300 clamp(.95rem, 1.7vw, 1.5rem) / 1.2 Georgia, "Times New Roman", serif; color: #f3e9dc; }
.cs__site-btns { display: flex; gap: 8px; margin-top: 6px; }
.cs__site-btns i {
  padding: 7px 11px;
  border: 1px solid rgba(197, 160, 89, .6);
  font-style: normal;
  font-size: .5625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f3e9dc;
}
.cs__site-btns i:first-child { background: #c5a059; border-color: #c5a059; color: #120b07; }

/* sceneggiatura */
.cs__script {
  position: absolute;
  left: var(--gutter);
  bottom: calc(var(--bar) + 18px);
  z-index: 4;
  width: min(34rem, calc(100% - 2 * var(--gutter)));
  padding: 12px 16px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(0, 0, 0, .6), transparent);
  opacity: 0;
  transition: opacity .6s var(--ease) .3s;
}
.cs.is-rolling .cs__script { opacity: 1; }
.cs__script-head { margin-bottom: 6px; color: var(--accent); }
.cs__script-text { min-height: 3.2em; font-family: var(--f-mono); font-size: .8125rem; line-height: 1.6; color: rgba(255, 240, 230, .88); }
.cs__caret {
  display: inline-block;
  width: .55em; height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-height: 820px) {
  .cs__features em { display: none; }
  .cs__head { font-size: clamp(2.4rem, 4.6vw, 4.4rem); }
}
@media (max-width: 899px) {
  .cs { height: 460vh; }
  .cs__hud-tc { display: none; }
  .cs__hud .mono { font-size: .625rem; white-space: nowrap; }
  .cs__title { font-size: 33vw; }
  .cs__devices { left: 50%; right: auto; top: 34%; width: 88vw; translate: -50% -50%; }
  .cs__scene--2, .cs__scene--3, .cs__scene--4 {
    top: auto;
    right: var(--gutter);
    bottom: calc(var(--bar) + 132px);
    width: auto;
  }
  .cs__head { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .cs__text { font-size: .9375rem; margin-top: 12px; }
  .cs__features { margin-top: 12px; }
  .cs__features li { padding: 6px 0; }
  .cs__features em { display: none; }
  .cs[data-scene="3"] .cs__browser { opacity: .18; }
  .cs[data-scene="3"] .cs__phone { opacity: .25; }
  .cs__strip { left: 4vw; top: 16%; translate: 0 0; }
  .cs__strip figure { width: 30vw; }
  .cs__strip figure:nth-child(even) { translate: 0 16px; }
  .cs__tags { margin: 14px 0 16px; }
  .cs__script { bottom: calc(var(--bar) + 10px); padding: 8px 12px; }
  .cs__script-text { font-size: .75rem; min-height: 4.8em; }
}

/* Le griglie a una colonna non devono allargarsi oltre lo schermo per via di un contenuto largo */
.hero__inner, .services__grid, .work__grid, .haccp__grid, .plans, .quote__grid, .reviews__grid, .faq__grid {
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .services__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .haccp__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 960px) { .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } }
@media (min-width: 980px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .work__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .quote__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: reveal 1s var(--ease) var(--d, 0s) both; }
@keyframes reveal { from { opacity: 0; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal, .js .hero-in { opacity: 1; }
}
