/* ─────────────────────────────────────────────────────────────
   Bottega Digitale · stili. Mobile-first: si parte da 375px.
   Concetto: "disegno tecnico di bottega" — carta, quote, crocini,
   distinta di lavorazione, targhetta. Valori solo da tokens.css.
   ───────────────────────────────────────────────────────────── */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  padding-top: 64px;
  padding-bottom: 84px;
  background-color: var(--paper);
  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%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.065'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { padding-bottom: 0; padding-top: 72px; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
button { font: inherit; color: inherit; }
mark { background: linear-gradient(transparent 58%, rgba(242, 169, 0, 0.38) 58%); color: inherit; padding: 0 2px; }
:focus-visible { outline: 2.5px solid var(--terra); outline-offset: 3px; border-radius: var(--r-1); }
::selection { background: var(--terra); color: var(--paper); }

.skip {
  position: fixed; top: var(--s-2); left: var(--s-2); z-index: 100;
  padding: var(--s-2) var(--s-4); background: var(--ink); color: var(--paper);
  transform: translateY(-200%); transition: transform var(--t-fast) var(--ease-out);
}
.skip:focus { transform: none; }

.wrap { position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
.hide-mobile { display: none !important; }
@media (min-width: 900px) { .hide-mobile { display: flex !important; } }

.todo {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--amber); color: var(--ink); padding: 0 var(--s-1); border-radius: var(--r-1);
}

/* ── Linguaggio "disegno tecnico" ─────────────────────────── */
/* Griglia da carta millimetrata, sfumata ai bordi */
.blueprint { position: relative; isolation: isolate; }
.blueprint::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-soft) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 85%);
}
.blueprint--dark::before { --grid: rgba(244, 236, 221, 0.09); --grid-soft: rgba(244, 236, 221, 0.04); }

/* Crocini di taglio agli angoli */
.crop { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.crop::before, .crop::after { content: ''; position: absolute; background: var(--ink-3); }
.crop::before { width: 100%; height: 1px; top: 50%; }
.crop::after { height: 100%; width: 1px; left: 50%; }
.crop--tl { top: 16px; left: 16px; }
.crop--tr { top: 16px; right: 16px; }

/* Quote (linee di misura) */
.dim { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-3); font-size: 0.6875rem; letter-spacing: 0.06em; text-transform: uppercase; }
.dim i { flex: 1; height: 1px; background: currentColor; position: relative; }
.dim i:first-child::before, .dim i:last-child::after { content: ''; position: absolute; top: -4px; width: 1px; height: 9px; background: currentColor; }
.dim i:first-child::before { left: 0; }
.dim i:last-child::after { right: 0; }
.dim b { font-weight: 500; white-space: nowrap; }
.dim--v { position: absolute; flex-direction: column; width: 20px; }
.dim--v i { width: 1px; height: auto; flex: 1; }
.dim--v i:first-child::before, .dim--v i:last-child::after { width: 9px; height: 1px; left: -4px; top: auto; }
.dim--v i:first-child::before { top: 0; }
.dim--v i:last-child::after { bottom: 0; right: auto; }
.dim--v b { writing-mode: vertical-rl; transform: rotate(180deg); }

/* ── Tipografia ───────────────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-variation-settings: 'SOFT' 50, 'opsz' 96;
  font-weight: 560;
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
}
.display em { font-style: italic; font-weight: 400; color: var(--terra); }
.h2 { font-size: var(--fs-h2); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: var(--lh-snug); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.prose { max-width: var(--measure); font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); }
.prose strong { color: var(--ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  margin-bottom: var(--s-5);
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3);
}
.eyebrow span {
  display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px;
  border: 1px solid currentColor; border-radius: var(--r-1); letter-spacing: 0; color: var(--ink);
}
.eyebrow--light, .eyebrow--light span { color: var(--on-dark-2); border-color: rgba(244, 236, 221, 0.4); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); flex: none; }
.dot--live { background: var(--signal); }
@media (prefers-reduced-motion: no-preference) {
  .dot--live { animation: live 2.4s var(--ease-state) infinite; }
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(43, 214, 123, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(43, 214, 123, 0); }
}

.link {
  color: var(--terra-deep); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  transition: color var(--t-fast) var(--ease-state);
}
.link:hover { color: var(--ink); }

/* ── Pulsanti ─────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--paper-3); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-5);
  border: var(--b-ink); border-radius: var(--r-2);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: var(--fs-body); font-weight: 650; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--sh-stamp);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-state);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--sh-stamp-hover); }
.btn:active { transform: translate(1px, 1px) scale(0.98); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { --btn-bg: var(--terra); --btn-fg: var(--paper-3); }
.btn--primary:hover { --btn-bg: var(--terra-deep); }
.btn--secondary:hover { --btn-bg: #fff; }
.btn--ghost { --btn-bg: transparent; box-shadow: none; border-color: transparent; }
.btn--ghost:hover { box-shadow: none; transform: none; border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: var(--s-2) var(--s-4); font-size: var(--fs-sm); box-shadow: 2px 2px 0 var(--ink); }
.btn--sm:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn--lg { min-height: 56px; padding: var(--s-4) var(--s-6); font-size: 1.0625rem; }
.btn--block { width: 100%; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--arrow { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .ico--arrow { transform: translateX(3px); }

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  height: 64px;
  background: rgba(244, 236, 221, 0.86);
  -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-state), background-color var(--t-base) var(--ease-state);
}
@media (min-width: 768px) { .header { height: 72px; } }
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(244, 236, 221, 0.95); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.wordmark { display: flex; align-items: center; gap: var(--s-2); text-decoration: none; transform-origin: left center; transition: transform var(--t-slow) var(--ease-out); }
.header.is-scrolled .wordmark { transform: scale(0.94); }
.wordmark__mark svg { width: 30px; height: 30px; }
.wordmark__name { font-family: var(--font-display); font-weight: 620; font-size: 1.2rem; letter-spacing: -0.02em; font-variation-settings: 'SOFT' 100; }
.wordmark__by { display: none; font-size: var(--fs-xs); color: var(--ink-3); padding-left: var(--s-2); border-left: var(--b-hair); }
@media (min-width: 1100px) { .wordmark__by { display: inline; } }
.header__nav { gap: var(--s-5); font-size: var(--fs-sm); font-weight: 550; }
.header__nav a { text-decoration: none; color: var(--ink-2); position: relative; padding-block: var(--s-2); }
.header__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--terra); transform: scaleX(0); transform-origin: left; transition: transform var(--t-base) var(--ease-out); }
.header__nav a:hover { color: var(--ink); }
.header__nav a:hover::after, .header__nav a[aria-current="true"]::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: var(--s-2); }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--terra); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ── Sezioni ──────────────────────────────────────────────── */
.section { padding-block: var(--section); position: relative; }
.section--tint { background: var(--paper-2); border-block: var(--b-hair); }
.section--dark { background: var(--green); color: var(--on-dark); }
.section--dark .display em { color: var(--amber); }
.section__head { margin-bottom: var(--s-7); max-width: 780px; }
.section__head .h2 + .lead { margin-top: var(--s-5); }
.section__cta { margin-top: var(--s-7); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding-block: var(--s-6) var(--s-8); overflow: hidden; }
.hero__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) {
  .hero { padding-block: var(--s-8) var(--s-9); }
  .hero__grid { grid-template-columns: 1.15fr 1fr; gap: var(--s-7); }
}
.hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-5); font-size: var(--fs-xs); color: var(--ink-3); }
.status { display: inline-flex; align-items: center; gap: var(--s-2); padding: 4px 10px; border: 1px solid var(--ink); border-radius: var(--r-pill); color: var(--ink); background: var(--paper-3); font-weight: 600; }
.hero__title { font-size: var(--fs-h1); margin-bottom: var(--s-5); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: block; }
.hero__title .line:last-child > span { color: var(--terra); font-style: italic; font-weight: 420; }
.hero__title[data-variant="b"] .line:last-child { font-size: 0.68em; margin-top: 0.2em; }
.hero__lead { margin-bottom: var(--s-6); max-width: 46ch; }
.hero__lead strong { color: var(--ink); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-6); }
.hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 560px) { .hero__actions .btn { flex: 0 0 auto; } }

/* Targhetta da macchinario, con viti */
.plate {
  position: relative; display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin: 0; padding: var(--s-3) var(--s-6);
  background: var(--paper-3); border: var(--b-ink); border-radius: var(--r-2);
  box-shadow: inset 0 0 0 3px var(--paper-3), inset 0 0 0 4px var(--line);
  background-image:
    radial-gradient(circle at 10px 10px, var(--ink-3) 1.6px, transparent 2.2px),
    radial-gradient(circle at calc(100% - 10px) 10px, var(--ink-3) 1.6px, transparent 2.2px),
    radial-gradient(circle at 10px calc(100% - 10px), var(--ink-3) 1.6px, transparent 2.2px),
    radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--ink-3) 1.6px, transparent 2.2px);
}
.plate > div { padding: 0 var(--s-4); border-left: 1px dashed var(--line); }
.plate > div:first-child { border-left: 0; padding-left: 0; }
.plate > div:last-child { padding-right: 0; }
.plate dt { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-3); }
.plate dd { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 700; white-space: nowrap; }
.plate dd small { font-weight: 500; color: var(--ink-2); }
@media (max-width: 420px) { .plate { padding-inline: var(--s-5); } .plate > div { padding: 0 var(--s-3); } .plate dd { font-size: 0.8125rem; } }

/* Composizione hero */
.hero__visual { position: relative; height: 650px; width: 100%; max-width: 420px; margin-inline: auto; }
@media (min-width: 1000px) { .hero__visual { height: 660px; max-width: 500px; } }
.hero__visual .dim--v { right: 0; top: 168px; bottom: 30px; }

/* Insegna: legno verde, tenda a righe, nome che si accende */
.sign { position: absolute; top: 0; left: 0; right: 28px; z-index: 1; }
.sign__hooks { display: flex; justify-content: space-between; padding-inline: 16%; height: 24px; }
.sign__hooks i { width: 1.5px; background: var(--ink); position: relative; }
.sign__hooks i::before { content: ''; position: absolute; top: -4px; left: -3px; width: 7px; height: 7px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); }
.sign__board {
  position: relative; display: grid; justify-items: center; gap: 4px;
  padding: 26px var(--s-4) var(--s-4);
  background: var(--green); color: var(--on-dark);
  border: 1.5px solid var(--ink); border-radius: var(--r-2);
  outline: 1px solid rgba(244, 236, 221, 0.35); outline-offset: -7px;
  box-shadow: var(--sh-stamp); overflow: hidden;
}
.sign__awning { position: absolute; inset: 0 0 auto; height: 12px; background: repeating-linear-gradient(90deg, var(--terra) 0 16px, var(--paper) 16px 32px); border-bottom: 1.5px solid var(--ink); }
.sign__kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.sign__kicker .dot { width: 6px; height: 6px; }
.sign__name { font-family: var(--font-display); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); line-height: 1.05; font-weight: 450; color: #FFF4DF; text-shadow: 0 0 10px rgba(242, 169, 0, 0.55), 0 0 2px rgba(242, 169, 0, 0.8); }
.sign__sub { font-size: 0.65rem; letter-spacing: 0.08em; color: var(--on-dark-2); padding-top: 4px; border-top: 1px solid rgba(244, 236, 221, 0.3); }

/* Cartellino del prezzo appeso */
.pricetag { position: absolute; left: 6%; top: 140px; transform-origin: 47px 0; z-index: 3; }
.pricetag__string { display: block; width: 1.5px; height: 36px; margin-left: 47px; background: var(--ink); }
.pricetag__body {
  position: relative; display: grid; gap: 2px; width: 96px; padding: 20px var(--s-2) var(--s-3);
  background: var(--paper-3); border: var(--b-ink); text-align: center; box-shadow: var(--sh-soft);
  clip-path: polygon(18% 0, 82% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
}
.pricetag__hole { position: absolute; top: 7px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border: 1.5px solid var(--ink); border-radius: 50%; }
.pricetag__amount { font-family: var(--font-display); font-size: 1.65rem; font-weight: 650; line-height: 1; letter-spacing: -0.03em; color: var(--terra); }
.pricetag__note { font-size: 9.5px; color: var(--ink-2); }

/* Telefono */
.phone {
  position: relative; width: 240px; aspect-ratio: 240 / 480;
  padding: 9px; border-radius: 36px;
  background: var(--ink); box-shadow: var(--sh-float);
}
.phone::before { content: ''; position: absolute; right: -3px; top: 110px; width: 3px; height: 54px; border-radius: 0 2px 2px 0; background: var(--ink); }
.phone__screen { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: var(--paper-3); display: flex; flex-direction: column; }
.phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 18px 6px; font-size: 10px; font-weight: 700; flex: none; }
.phone__notch { width: 64px; height: 18px; border-radius: 10px; background: var(--ink); }
.phone--build { position: absolute; left: 50%; top: 150px; margin-left: -110px; }
@media (min-width: 1000px) { .phone--build { width: 250px; left: auto; right: 44px; margin: 0; } }

/* Mini-sito dentro il telefono */
.site { display: flex; flex-direction: column; gap: 10px; padding: 4px 14px 14px; flex: 1; }
.site__top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.site__brand { font-family: var(--font-display); font-size: 0.95rem; font-weight: 650; letter-spacing: -0.01em; }
.site__menu { display: grid; gap: 3px; }
.site__menu i { width: 14px; height: 1.5px; background: var(--ink); }
.site__hero { position: relative; height: 96px; border-radius: var(--r-3); background: var(--paper-2); border: var(--b-hair); display: grid; place-items: center; }
.site__hero .lineart { width: 64%; }
.site__hero .lineart--sm { width: 56px; height: 56px; }
.tag { position: absolute; top: 6px; left: 6px; font-size: 9px; padding: 2px 6px; border-radius: var(--r-1); background: var(--ink); color: var(--paper); text-transform: uppercase; letter-spacing: 0.08em; }
.site__title { margin: 0; font-family: var(--font-display); font-size: 1.05rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.site__cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: var(--r-2); background: var(--terra); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 2px 2px 0 var(--ink); }
.site__cta svg, .site__hours svg, .site__pin svg, .pill svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.site__hours { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: var(--b-hair); border-radius: var(--r-2); font-size: 11px; color: var(--ink-2); }
.site__hours b { color: #17703F; }
.site__map { position: relative; height: 64px; border-radius: var(--r-2); border: var(--b-hair); background: var(--paper-2); overflow: hidden; }
.site__map > svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 6; }
.site__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-size: 10.5px; font-weight: 700; }
.site__list { list-style: none; display: grid; gap: 6px; font-size: 11px; color: var(--ink-2); }
.site__list li { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
.site__list li::after { content: '›'; color: var(--ink-3); }

.lineart { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lineart--sm path:last-child { stroke: var(--terra); }

/* Marcatori numerati (quote del disegno) */
[data-mark]::after {
  content: attr(data-mark); position: absolute; right: -8px; top: -8px;
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber); color: var(--ink); border: 1.5px solid var(--ink);
  font: 700 10px/1 var(--font-mono);
}

/* Strato schizzo: wireframe tratteggiato che si dissolve */
.sketch { position: absolute; inset: 38px 14px 14px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; opacity: 0; }
.sketch i { display: block; height: var(--h); width: var(--w, 100%); border: 1.5px dashed var(--ink-3); border-radius: var(--r-2); background: var(--paper-3); }

/* Note tecniche con linea di richiamo */
.notes { list-style: none; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; pointer-events: none; font-size: 11px; }
.note { position: absolute; display: flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--ink); border-radius: var(--r-1); background: var(--paper-3); white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.note__n { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); border: 1px solid var(--ink); font-weight: 700; font-size: 9.5px; }
.note::after { content: ''; position: absolute; top: 50%; height: 1px; background: var(--ink); width: var(--lead, 40px); left: 100%; transform-origin: left; }
.note { left: 0; }
.note--1 { top: 380px; --lead: 52px; }
.note--2 { top: 430px; --lead: 70px; }
.note--3 { top: 504px; --lead: 104px; }
@media (max-width: 999px) {
  .notes { position: static; display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: 660px; }
  .note { position: static; box-shadow: none; }
  .note::after { display: none; }
}


/* Timbro → QR (elemento ricorrente) */
.stamp { position: relative; width: 112px; height: 112px; color: var(--terra); }
.stamp__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp__ring text { font-family: var(--font-mono); font-size: 8.2px; letter-spacing: 0.1em; fill: currentColor; text-transform: uppercase; }
.stamp__mono, .stamp__qr { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity var(--t-slow) var(--ease-state), transform var(--t-slow) var(--ease-out); }
.stamp__mono { font-family: var(--font-display); font-style: italic; font-size: 1.9rem; font-weight: 600; }
.stamp__qr { opacity: 0; }
.stamp__qr .qr { width: 44px; height: 44px; color: var(--ink); }
.stamp.is-qr .stamp__mono { opacity: 0; transform: scale(0.6); }
.stamp.is-qr .stamp__qr { opacity: 1; }
.stamp--hero { position: absolute; left: 0; bottom: 20px; transform: rotate(-12deg); z-index: 2; }
@media (max-width: 999px) { .stamp--hero { bottom: auto; top: 470px; left: -6px; width: 92px; height: 92px; } }
.stamp--price { margin-top: var(--s-6); transform: rotate(-8deg); display: none; }
@media (min-width: 900px) { .stamp--price { display: block; } }

/* ── Problema ─────────────────────────────────────────────── */
.problem { border-top: var(--b-hair); }
.problem__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 1000px) { .problem__grid { grid-template-columns: 7fr 5fr; gap: var(--s-9); } }
.problem .h2 { margin-bottom: var(--s-6); }
.results { margin: 0; padding: var(--s-4); background: var(--paper-3); border: var(--b-ink); border-radius: var(--r-3); box-shadow: var(--sh-float); display: grid; gap: var(--s-2); max-width: 420px; width: 100%; justify-self: center; transform: rotate(1.5deg); }
.results__search { display: flex; align-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-3); border: var(--b-hair); border-radius: var(--r-pill); font-size: var(--fs-xs); color: var(--ink-2); background: #fff; margin-bottom: var(--s-2); }
.results__search svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.results__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3); border: var(--b-hair); border-radius: var(--r-2); background: #fff; }
.results__row b { display: block; font-size: var(--fs-sm); }
.results__row span:not(.pill):not(.results__q) { font-size: 0.75rem; color: var(--ink-3); }
.results__row--you { border: 1.5px dashed var(--terra); background: transparent; }
.results__row--you b { color: var(--terra-deep); }
.results__q { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px dashed var(--terra); border-radius: 50%; color: var(--terra-deep); font-weight: 700; }
.results__cap { font-size: 0.6875rem; color: var(--ink-3); text-align: right; text-transform: uppercase; letter-spacing: 0.08em; margin-top: var(--s-1); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-pill); font-size: 11px; font-weight: 650; background: #fff; }
.pill--fill { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ── Distinta di lavorazione ──────────────────────────────── */
.order { background: var(--paper-3); border: var(--b-ink); border-radius: var(--r-2); box-shadow: 6px 6px 0 var(--ink); overflow: hidden; }
.order__head, .order__foot {
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); justify-content: space-between;
  padding: var(--s-3) var(--s-5); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2);
}
.order__head { background: var(--ink); color: var(--on-dark-2); }
.order__head b { color: var(--paper); font-weight: 600; }
.order__total { color: var(--amber); font-weight: 700; }
.order__foot { border-top: var(--b-ink); background: var(--paper); }
.order__foot b { color: var(--ink); }
.order__rows { list-style: none; }
.order__row {
  display: grid; grid-template-columns: 52px 1fr; gap: var(--s-2) var(--s-4); align-items: start;
  padding: var(--s-5); border-top: 1px dashed var(--line);
  transition: background-color var(--t-base) var(--ease-state);
}
.order__row:first-child { border-top: 0; }
.order__row:hover { background: var(--paper); }
.order__row h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: var(--lh-snug); margin-bottom: var(--s-1); }
.order__row p { color: var(--ink-2); max-width: 60ch; }
.order__code { font-size: var(--fs-xs); font-weight: 700; padding: 4px 0; color: var(--ink-3); transition: color var(--t-base) var(--ease-state); }
.order__row:hover .order__code { color: var(--terra); }
.order__ok { grid-column: 2; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }
.order__ok svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; }
@media (min-width: 760px) {
  .order__row { grid-template-columns: 72px 1fr 120px; padding: var(--s-5) var(--s-6); align-items: center; }
  .order__ok { grid-column: auto; justify-self: end; padding: 6px 10px; border: 1.5px solid var(--green); border-radius: var(--r-1); }
  .order__head, .order__foot { padding-inline: var(--s-6); }
}

/* ── Prova sul tuo mestiere ───────────────────────────────── */
.tabs { display: flex; gap: var(--s-1); padding: var(--s-1); margin-bottom: var(--s-6); border: var(--b-ink); border-radius: var(--r-3); background: var(--paper-3); overflow-x: auto; scrollbar-width: none; width: max-content; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 44px; padding: 0 var(--s-4); border: 0; border-radius: var(--r-2); background: transparent; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2);
  transition: background-color var(--t-base) var(--ease-state), color var(--t-base) var(--ease-state);
}
.tab:hover { color: var(--ink); background: var(--paper-2); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.trypanels { position: relative; }
.trypanel { display: grid; gap: var(--s-6); align-items: center; justify-items: center; padding: var(--s-6) var(--s-4); border: var(--b-hair); border-radius: var(--r-3); background: var(--paper-2); }
.trypanel[hidden] { display: none; }
.trypanel:focus-visible { outline-offset: 4px; }
@media (min-width: 860px) { .trypanel { grid-template-columns: auto 1fr; gap: var(--s-9); padding: var(--s-7) var(--s-8); justify-items: start; } }
.phone--sm { width: 228px; }
.trypanel__copy .h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: var(--s-5); }
.ticks { list-style: none; display: grid; gap: var(--s-4); max-width: 46ch; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); line-height: 1.5; }
.ticks li b { color: var(--ink); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper-3); }
.ticks li::after { content: ''; position: absolute; left: 8px; top: 5px; width: 5px; height: 10px; border: solid var(--terra); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.other { margin-top: var(--s-6); font-size: var(--fs-lead); color: var(--ink-2); }

/* ── Come funziona ────────────────────────────────────────── */
.steps { position: relative; }
.steps__list { list-style: none; display: grid; gap: var(--s-6); position: relative; }
.steps__list::before { content: ''; position: absolute; left: 23px; top: 40px; bottom: 40px; width: 2px; background-image: linear-gradient(var(--line) 50%, transparent 50%); background-size: 2px 8px; }
.steps__line { display: none; }
.step { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: var(--s-4); }
.step > * { grid-column: 2; }
.step__num {
  grid-column: 1; grid-row: 1 / span 4; position: relative; z-index: 1;
  display: grid; place-items: center; width: 48px; height: 48px;
  border: var(--b-ink); border-radius: 50%; background: var(--paper-3);
  font-size: var(--fs-sm); font-weight: 700;
  transition: background-color var(--t-slow) var(--ease-state), color var(--t-slow) var(--ease-state);
}
.step.is-visible .step__num { background: var(--ink); color: var(--paper); }
.step.is-visible .step__num--live { background: var(--green); }
.step__when { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--terra-deep); font-weight: 600; margin-top: 2px; }
.step__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.015em; line-height: var(--lh-snug); margin: var(--s-1) 0 var(--s-2); }
.step p { color: var(--ink-2); max-width: 40ch; margin-bottom: var(--s-3); }
.chip-s { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; font-size: var(--fs-xs); border: var(--b-hair); border-radius: var(--r-1); color: var(--ink-2); background: var(--paper); }
.chip-s--live { color: var(--paper); background: var(--green); border-color: var(--green); }
.steps .dim--h { margin-top: var(--s-6); }
@media (min-width: 960px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
  .steps__list::before { display: none; }
  .steps__line { display: block; position: absolute; left: 0; right: 0; top: 52px; width: 100%; height: 2px; overflow: visible; }
  .steps__line line { stroke: var(--terra); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: var(--draw, 0); vector-effect: non-scaling-stroke; }
  .steps::before { content: ''; position: absolute; left: 0; right: 0; top: 52px; height: 2px; background-image: linear-gradient(90deg, var(--line) 50%, transparent 50%); background-size: 8px 2px; }
  .step { display: flex; flex-direction: column; }
  .step__when { order: -2; margin: 0 0 var(--s-3); }
  .step__num { order: -1; margin-bottom: var(--s-4); }
}

/* ── Prezzo ───────────────────────────────────────────────── */
.price__grid { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .price__grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); } }
.price .h2 { margin-bottom: var(--s-5); }
.tag-card {
  position: relative; padding: var(--s-8) var(--s-5) var(--s-6);
  background: var(--paper-3); border: var(--b-ink); border-radius: var(--r-2);
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 480px; width: 100%; justify-self: center;
}
@media (min-width: 560px) { .tag-card { padding-inline: var(--s-7); } }
.tag-card__awning { position: absolute; inset: 0 0 auto; height: 18px; background: repeating-linear-gradient(90deg, var(--terra) 0 22px, var(--paper-3) 22px 44px); border-bottom: var(--b-ink); }
.tag-card__hole { position: absolute; top: 34px; right: 28px; width: 14px; height: 14px; border: var(--b-ink); border-radius: 50%; background: var(--paper-2); }
.tag-card__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: var(--s-2); }
.tag-card__price { display: flex; align-items: flex-start; font-family: var(--font-display); font-size: clamp(4.5rem, 3rem + 7vw, 7rem); font-weight: 650; line-height: 0.9; letter-spacing: -0.05em; margin-bottom: var(--s-2); font-variation-settings: 'SOFT' 100, 'opsz' 144; }
.tag-card__cur { font-size: 0.45em; margin-top: 0.12em; margin-right: 0.04em; color: var(--terra); }
.tag-card__vat { align-self: flex-end; margin-left: var(--s-3); margin-bottom: 0.4em; font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0; font-weight: 600; color: var(--ink-2); }
.tag-card__once { font-family: var(--font-display); font-style: italic; font-size: var(--fs-h3); color: var(--terra); margin-bottom: var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px dashed var(--line); }
.checklist { list-style: none; display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.checklist li { position: relative; padding-left: 30px; color: var(--ink-2); line-height: 1.45; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: var(--r-1); background: var(--paper); }
.checklist li::after { content: ''; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid var(--terra); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tag-card__fine { margin-top: var(--s-4); font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }
.tag-card__fine strong { color: var(--ink); }

/* ── Cosa non facciamo ────────────────────────────────────── */
.nots { list-style: none; display: grid; border-top: 1px solid rgba(244, 236, 221, 0.25); }
@media (min-width: 900px) { .nots { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); } }
.not { display: grid; grid-template-columns: 52px 1fr; gap: var(--s-4); padding: var(--s-6) 0; border-bottom: 1px solid rgba(244, 236, 221, 0.25); }
.not__x { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--amber); border-radius: 50%; color: var(--amber); font-size: 0.8rem; font-weight: 700; transform: rotate(-10deg); outline: 1px dashed rgba(242, 169, 0, 0.5); outline-offset: 3px; }
.not__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 560; line-height: var(--lh-snug); letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.not p { color: var(--on-dark-2); }

/* ── Chi siamo ────────────────────────────────────────────── */
.about { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 5fr 7fr; gap: var(--s-9); } }
.card-business {
  position: relative; display: grid; gap: var(--s-2); align-content: center; justify-items: start;
  aspect-ratio: 85 / 55; max-width: 420px; width: 100%; padding: var(--s-6);
  background: var(--paper-3); border: var(--b-ink); border-radius: var(--r-2);
  box-shadow: var(--sh-float); transform: rotate(-2.5deg);
}
.card-business::after { content: ''; position: absolute; inset: 8px; border: var(--b-hair); border-radius: var(--r-1); pointer-events: none; }
.card-business__corner { position: absolute; top: var(--s-4); right: var(--s-5); font-size: var(--fs-xs); color: var(--terra); }
.card-business__name { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 600; letter-spacing: -0.02em; }
.card-business__rule { width: 48px; height: 2px; background: var(--terra); margin-block: var(--s-2); }
.card-business__line { font-size: var(--fs-xs); color: var(--ink-2); }
.about .h2 { margin-bottom: var(--s-5); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq__grid { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) {
  .faq__grid { grid-template-columns: 5fr 7fr; gap: var(--s-9); align-items: start; }
  .faq__grid .section__head { position: sticky; top: 120px; margin-bottom: 0; }
}
.faq { border-top: var(--b-ink); }
.faq__item { border-bottom: var(--b-hair); }
.faq__item summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: var(--s-5) var(--s-8) var(--s-5) 0;
  font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 560; line-height: var(--lh-snug); letter-spacing: -0.01em;
  transition: color var(--t-fast) var(--ease-state);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--terra-deep); }
.faq__item summary::after {
  content: ''; position: absolute; right: 4px; top: 50%; width: 32px; height: 32px; margin-top: -16px;
  border: var(--b-ink); border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat;
  transition: transform var(--t-slow) var(--ease-out), background-color var(--t-fast) var(--ease-state);
}
.faq__item[open] summary::after { transform: rotate(135deg); background-color: var(--amber); }
.faq__a { display: grid; grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--ink-2); max-width: var(--measure); padding-right: var(--s-6); }
.faq__a > div > p:last-of-type { padding-bottom: var(--s-5); margin-bottom: 0; }

/* ── CTA finale + form ────────────────────────────────────── */
.final__grid { display: grid; gap: var(--s-7); }
@media (min-width: 900px) { .final__grid { grid-template-columns: 1fr 1fr; gap: var(--s-9); align-items: start; } }
.final__title { margin-bottom: var(--s-5); }
.assure { list-style: none; display: grid; gap: var(--s-2); margin-top: var(--s-6); font-size: var(--fs-sm); }
.assure li { display: flex; align-items: center; gap: var(--s-2); }
.assure svg { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2.4; }
.final__alt { margin-top: var(--s-6); color: var(--ink-2); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }

.form, .form-done {
  padding: var(--s-6) var(--s-5);
  background: var(--paper-3); border: var(--b-ink); border-radius: var(--r-2);
  box-shadow: 6px 6px 0 var(--ink);
}
@media (min-width: 560px) { .form, .form-done { padding: var(--s-7) var(--s-6); } }
.form { display: grid; gap: var(--s-4); }
.form__head { display: flex; justify-content: space-between; gap: var(--s-3); margin: calc(-1 * var(--s-2)) 0 var(--s-2); padding-bottom: var(--s-3); border-bottom: 1px dashed var(--line); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.field { position: relative; margin: 0; border: 0; padding: 0; min-width: 0; }
.field__input {
  display: block; width: 100%; height: 60px;
  padding: 24px var(--s-4) 8px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--ink-3); border-radius: var(--r-2);
  appearance: none; -webkit-appearance: none;
  transition: border-color var(--t-fast) var(--ease-state), box-shadow var(--t-fast) var(--ease-state), background-color var(--t-fast) var(--ease-state);
}
.field__input:hover { border-color: var(--ink); }
.field__input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.field__label {
  position: absolute; left: var(--s-4); top: 19px;
  font-size: 1.0625rem; color: var(--ink-3); pointer-events: none;
  transform-origin: left top;
  transition: transform var(--t-base) var(--ease-out), color var(--t-fast) var(--ease-state);
}
.field__input:focus + .field__label,
input.field__input:not(:placeholder-shown) + .field__label,
.field--select .field__input:valid + .field__label {
  transform: translateY(-11px) scale(0.76); color: var(--ink-2); font-weight: 600;
}
.field__chev { position: absolute; right: var(--s-4); top: 18px; width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; pointer-events: none; }
.field__error { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--error); font-weight: 600; }
.field__error:empty { display: none; }
.field.is-invalid .field__input { border-color: var(--error); background: #FFF6F2; }
.field.is-valid .field__input { border-color: var(--green-2); }

.chips__legend { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); margin-bottom: var(--s-2); padding: 0; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-opt span {
  display: grid; place-items: center; gap: 2px; min-height: 60px; padding: var(--s-2);
  text-align: center; line-height: 1.2;
  background: var(--paper); border: 1.5px solid var(--ink-3); border-radius: var(--r-2);
  transition: background-color var(--t-fast) var(--ease-state), color var(--t-fast) var(--ease-state), border-color var(--t-fast) var(--ease-state), transform var(--t-fast) var(--ease-out);
}
.chip-opt b { font-size: var(--fs-body); }
.chip-opt small { font-size: 0.75rem; color: var(--ink-3); }
.chip-opt:hover span { border-color: var(--ink); }
.chip-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-opt input:checked + span small { color: var(--on-dark-2); }
.chip-opt input:focus-visible + span { outline: 2.5px solid var(--terra); outline-offset: 2px; }
.chip-opt input:active + span { transform: scale(0.98); }
.field--chips.is-invalid .chip-opt span { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: var(--s-3); align-items: start; font-size: var(--fs-sm); color: var(--ink-2); cursor: pointer; line-height: 1.45; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.check__box { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: var(--r-1); background: var(--paper); transition: background-color var(--t-fast) var(--ease-state); }
.check__box svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--t-slow) var(--ease-out); }
.check input:checked + .check__box { background: var(--terra); border-color: var(--terra); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2.5px solid var(--terra); outline-offset: 2px; }
.field--check.is-invalid .check__box { border-color: var(--error); }

.form__submit { margin-top: var(--s-2); }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(251, 247, 239, 0.4); border-top-color: var(--paper-3); border-radius: 50%; }
.form.is-sending .spinner { display: inline-block; animation: spin 0.8s linear infinite; }
.form.is-sending .form__submit { pointer-events: none; opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--error); }
.form__status:empty { display: none; }

.form-done { text-align: center; display: grid; justify-items: center; gap: var(--s-3); }
.form-done:focus { outline: none; }
.form-done[hidden] { display: none; }
.form-done__check { width: 72px; height: 72px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--s-2); }
.form-done__check circle { stroke-dasharray: 151; stroke-dashoffset: 151; }
.form-done__check path { stroke: var(--terra); stroke-width: 3.5; stroke-dasharray: 36; stroke-dashoffset: 36; }
.form-done.is-shown .form-done__check circle { animation: draw 600ms var(--ease-out) forwards; }
.form-done.is-shown .form-done__check path { animation: draw 380ms 420ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-done__title { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
.form-done p { color: var(--ink-2); max-width: 36ch; }
.form-done__fine { font-size: var(--fs-xs); color: var(--ink-3) !important; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--on-dark-2); padding: var(--s-8) 0 var(--s-6); font-size: var(--fs-sm); }
.footer a { color: var(--on-dark); }
.footer .todo { color: var(--ink); }
.footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.2fr 1.5fr 1fr; } }
.footer__brand { font-family: var(--font-display); font-size: 1.5rem; color: var(--on-dark); margin-bottom: var(--s-1); font-weight: 600; }
.footer__data { display: grid; gap: var(--s-1); font-style: normal; }
.footer__links { display: grid; gap: var(--s-2); justify-items: start; align-content: start; }
.footer__links a, .footer__btn { text-underline-offset: 3px; min-height: 32px; display: inline-flex; align-items: center; }
.footer__btn { background: none; border: 0; padding: 0; color: var(--on-dark); text-decoration: underline; cursor: pointer; font-size: inherit; }
.footer__copy { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(244, 236, 221, 0.15); font-size: var(--fs-xs); }

/* ── Barra fissa mobile ───────────────────────────────────── */
.mobilebar {
  position: fixed; inset: auto 0 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s-2);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: rgba(244, 236, 221, 0.96); border-top: var(--b-ink);
  transition: transform var(--t-slow) var(--ease-out);
}
.mobilebar .btn { min-height: 52px; box-shadow: 2px 2px 0 var(--ink); }
.mobilebar.is-hidden { transform: translateY(110%); }
@media (min-width: 768px) { .mobilebar { display: none; } }

/* ── Consenso cookie ──────────────────────────────────────── */
.consent {
  position: fixed; z-index: var(--z-consent);
  inset: auto var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom));
  max-width: 440px; padding: var(--s-5);
  background: var(--paper-3); border: var(--b-ink); border-radius: var(--r-2); box-shadow: 5px 5px 0 var(--ink);
}
@media (min-width: 768px) { .consent { inset: auto auto var(--s-5) var(--s-5); } }
.consent[hidden] { display: none; }
.consent__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin-bottom: var(--s-2); }
.consent__text { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: var(--s-4); }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }

/* ── Pagine legali ────────────────────────────────────────── */
.legal { padding-block: var(--s-8) var(--s-9); }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: var(--fs-h2); margin-bottom: var(--s-5); }
.legal h2 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; margin: var(--s-7) 0 var(--s-3); }
.legal p, .legal li { color: var(--ink-2); max-width: var(--measure); }
.legal ul { padding-left: var(--s-5); margin-bottom: var(--s-4); }
.legal .notice { padding: var(--s-4) var(--s-5); border: 1.5px dashed var(--terra); border-radius: var(--r-2); background: var(--paper-3); color: var(--ink); margin-bottom: var(--s-6); }
.legal table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.legal th, .legal td { text-align: left; padding: var(--s-2) var(--s-3); border-bottom: var(--b-hair); vertical-align: top; }

/* ─────────────────────────────────────────────────────────────
   MOVIMENTO · solo transform/opacity. Il movimento spiega:
   lo schizzo diventa sito, le note si agganciano, il timbro
   diventa QR. Con reduced-motion: stato finale, statico.
   ───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal */
  .js [data-reveal] {
    opacity: 0; transform: translateY(var(--reveal-distance));
    transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * var(--stagger));
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .card-business[data-reveal] { transform: translateY(var(--reveal-distance)) rotate(-5deg); }
  .js .card-business[data-reveal].is-visible { transform: rotate(-2.5deg); }

  /* Hero: copy */
  .hero__eyebrow, .hero__lead, .hero__actions, .plate { animation: rise 600ms var(--ease-out) both; }
  .hero__lead { animation-delay: 200ms; }
  .hero__actions { animation-delay: 280ms; }
  .plate { animation-delay: 360ms; }
  @media (min-width: 768px) {
    .hero__title .line > span { animation: line-up 760ms var(--ease-out) both; }
    .hero__title .line:nth-child(2) > span { animation-delay: 80ms; }
    .hero__title .line:nth-child(3) > span { animation-delay: 160ms; }
  }

  /* Hero: il telefono entra, lo schizzo diventa sito */
  .phone--build { animation: phone-in 700ms 100ms var(--ease-out) both; }
  .phone--build .sketch { animation: sketch-out 520ms 620ms var(--ease-state) both; }
  .phone--build .site > * { animation: build 420ms var(--ease-out) both; }
  .phone--build .site > :nth-child(1) { animation-delay: 560ms; }
  .phone--build .site > :nth-child(2) { animation-delay: 640ms; }
  .phone--build .site > :nth-child(3) { animation-delay: 720ms; }
  .phone--build .site > :nth-child(4) { animation-delay: 800ms; }
  .phone--build .site > :nth-child(5) { animation-delay: 880ms; }
  .phone--build .site > :nth-child(6) { animation-delay: 960ms; }
  .phone--build [data-mark]::after { animation: pop 320ms var(--ease-out) both; animation-delay: 1150ms; }
  .note { animation: rise 420ms var(--ease-out) both; }
  .note--1 { animation-delay: 1150ms; } .note--2 { animation-delay: 1230ms; } .note--3 { animation-delay: 1310ms; }
  .note::after { animation: lead-in 360ms var(--ease-out) both; animation-delay: inherit; }
  .hero__visual .dim--v { animation: fade 500ms 900ms var(--ease-state) both; }
  .stamp--hero { animation: stamp 420ms 1300ms cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .sign { animation: rise 600ms 60ms var(--ease-out) both; }
  .sign__name { animation: neon 900ms 500ms steps(1, end) both; }
  .pricetag { animation: swing 1100ms 700ms var(--ease-out) both; }

  /* Chiamata: il pulsante "respira" ogni tanto, come un invito */
  .phone--build .site__cta { animation: build 420ms 800ms var(--ease-out) both, tap 4s 3s var(--ease-state) infinite; }

  /* Cambio mestiere */
  .trypanel.is-entering .phone { animation: swap-phone 420ms var(--ease-out) both; }
  .trypanel.is-entering .trypanel__copy { animation: rise 420ms 60ms var(--ease-out) both; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(48px); } }
@keyframes sketch-out { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes build { from { opacity: 0; transform: translateY(8px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes lead-in { from { transform: scaleX(0); } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-12deg) scale(1.5); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }
@keyframes tap { 0%, 86%, 100% { transform: scale(1); } 90% { transform: scale(0.95); } 94% { transform: scale(1.02); } }
@keyframes neon { 0% { opacity: 0.25; text-shadow: none; } 12% { opacity: 1; } 18% { opacity: 0.3; } 30% { opacity: 1; } 36% { opacity: 0.5; text-shadow: none; } 48%, 100% { opacity: 1; } }
@keyframes swing {
  0% { opacity: 0; transform: translateY(-16px) rotate(-16deg); }
  30% { opacity: 1; transform: rotate(9deg); }
  55% { transform: rotate(-4deg); }
  78% { transform: rotate(1.5deg); }
  100% { transform: rotate(0); }
}
@keyframes swap-phone { from { opacity: 0; transform: translateY(16px) rotate(-2deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .stamp__qr { opacity: 1; }
  .stamp__mono { opacity: 0; }
}

/* Ritocchi step: etichette compatte, quota solo sul tratto materiale → online */
.chip-s { align-self: flex-start; }
@media (min-width: 960px) { .steps .dim--h { margin-left: calc(50% + var(--s-3)); } }

/* Hero su telefono: telefono più piccolo e spostato, cartellino libero a sinistra */
@media (max-width: 999px) {
  .phone--build { width: 220px; margin-left: -88px; }
  .hero__visual { height: 610px; }
  .notes { margin-top: 618px; }
  .pricetag { left: 0; }
  .pricetag__body { width: 84px; }
  .pricetag__amount { font-size: 1.45rem; }
  .pricetag__string { margin-left: 41px; }
  .stamp--hero { top: auto; bottom: -6px; left: -4px; width: 84px; height: 84px; }
}

/* Tab mestieri su telefono: griglia 2×2, tutti visibili senza scorrere */
@media (max-width: 559px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   3D · la bottega diventa un diorama. Profondità con la proprietà
   `translate` (si somma alle animazioni su `transform`), tilt con
   variabili --rx/--ry impostate da JS. Solo transform/opacity.
   ───────────────────────────────────────────────────────────── */
.hero__visual { perspective: 1400px; perspective-origin: 50% 35%; }
.scene {
  position: relative; height: 100%;
  transform-style: preserve-3d;
  --base-ry: -4deg;
  transform:
    rotateX(calc(var(--rx, 0deg) + var(--sx, 0) * 12deg))
    rotateY(calc(var(--ry, 0deg) + var(--base-ry)));
  transition: transform 700ms var(--ease-out);
}
@media (min-width: 1000px) { .scene { --base-ry: -9deg; } }

/* Piani di profondità del diorama */
.scene .dim--v { translate: 0 0 -60px; }
.scene .sign { translate: 0 0 40px; }
.scene .notes { translate: 0 0 70px; }
.scene .pricetag { translate: 0 0 100px; }
.scene .stamp--hero { translate: 0 0 130px; }

/* Spessore del telefono: retro scuro dietro allo schermo */
.phone { transform-style: preserve-3d; }
.phone::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #0c0b0a; transform: translateZ(-14px); }
.phone--build::after { box-shadow: 0 40px 60px -20px rgba(29, 27, 24, 0.5); }

/* Riflesso di luce sulle card inclinabili */
.results { position: relative; }
.card-business { --base: rotate(-2.5deg); }
.results { --base: rotate(1.5deg); }
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.6), transparent 55%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity var(--t-slow) var(--ease-state);
}
.is-tilting .glare { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  /* Telefono hero: entra ribaltandosi in avanti */
  .phone--build { animation: phone-3d 900ms 100ms var(--ease-out) both; }

  /* Distinta: le righe si sfogliano come fogli di un blocco */
  .js .order__row[data-reveal] { transform: perspective(900px) rotateX(-80deg); transform-origin: 50% 0; transition-duration: 700ms; }
  .js .order__row[data-reveal].is-visible { transform: none; }

  /* Step: il numero gira come una moneta quando arriva */
  .step.is-visible .step__num { animation: coin 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 140ms + 150ms); }

  /* Patti chiari: i "NO" si stampano */
  .not.is-visible .not__x { animation: stamp-no 520ms cubic-bezier(0.3, 1.4, 0.5, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }

  /* Prezzo e form: arrivano ruotando nello spazio */
  .js .tag-card[data-reveal] { transform: perspective(1100px) rotateY(-28deg) translateY(14px); transition-duration: 800ms; }
  .js .form-wrap[data-reveal] { transform: perspective(1100px) rotateX(22deg) translateY(24px); transform-origin: 50% 100%; transition-duration: 800ms; }
  .js .card-business[data-reveal] { transform: perspective(900px) rotateY(70deg) rotate(-5deg); transition-duration: 900ms; }
  .js .tag-card[data-reveal].is-visible, .js .form-wrap[data-reveal].is-visible { transform: none; }
  .js .card-business[data-reveal].is-visible { transform: rotate(-2.5deg); }

  /* Cambio mestiere: il telefono ruota in scena */
  .trypanel.is-entering .phone { animation: swap-3d 650ms var(--ease-out) both; }
}

/* Tilt al passaggio del mouse (solo mouse, mai su touch) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js [data-tilt].is-visible {
    transform: perspective(900px) var(--base, translateZ(0)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 320ms var(--ease-out), opacity 560ms var(--ease-out);
    transition-delay: 0s;
  }
}

@keyframes phone-3d {
  from { opacity: 0; transform: translateY(70px) rotateX(38deg) translateZ(-120px); }
}
@keyframes coin {
  from { transform: perspective(400px) rotateY(-540deg); }
  to { transform: perspective(400px) rotateY(0); }
}
@keyframes stamp-no {
  from { opacity: 0; transform: rotate(-35deg) scale(2.2); }
  to { opacity: 1; transform: rotate(-10deg) scale(1); }
}
@keyframes swap-3d {
  from { opacity: 0; transform: perspective(1000px) rotateY(-50deg) translateZ(-90px); }
}

@media (prefers-reduced-motion: reduce) {
  .scene { transform: none; }
}

/* Telefono: le note stanno sotto il diorama, posizionate (niente margini che collassano nella scena 3D) */
@media (max-width: 999px) {
  .hero__visual { height: 700px; }
  .notes { position: absolute; top: 622px; left: 0; right: 0; bottom: auto; margin: 0; }
}
@media (max-width: 999px) { .scene .pricetag { left: 10px; translate: 0 0 60px; } }

/* ─────────────────────────────────────────────────────────────
   VITA CONTINUA · dopo l'ingresso gli oggetti non si fermano:
   pendoli, galleggiamento, una chiamata simulata in loop.
   Movimenti piccoli e lenti, come oggetti veri appesi in bottega.
   ───────────────────────────────────────────────────────────── */
@property --idle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* Dito e foglio "chiamata in corso" (stato statico: nascosti) */
.finger {
  position: absolute; left: 62%; top: 50%; margin-top: -17px; z-index: 5; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(29, 27, 24, 0.22); border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(29, 27, 24, 0.25); opacity: 0; pointer-events: none;
}
.callsheet {
  position: absolute; left: 10px; right: 10px; top: 40px; z-index: 6;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 14px; background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  font-size: 11px; line-height: 1.2; opacity: 0; transform: translateY(-120%);
}
.callsheet b { display: block; font-size: 12px; }
.callsheet small { color: var(--on-dark-2); }
.callsheet__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: var(--ink); flex: none; }
.callsheet__ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.site__cta::before { content: ''; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--terra); opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Il diorama ondeggia piano anche senza mouse */
  .scene {
    transform:
      rotateX(calc(var(--rx, 0deg) + var(--sx, 0) * 12deg))
      rotateY(calc(var(--ry, 0deg) + var(--base-ry) + var(--idle)));
    animation: idle-sway 9s ease-in-out infinite alternate;
  }

  /* Insegna: pendolo lento sui ganci */
  .sign { transform-origin: 50% 0; animation: rise 600ms 60ms var(--ease-out) both, sway 5.5s 900ms ease-in-out infinite alternate; }
  .sign__name { animation: neon 900ms 500ms steps(1, end) both, flicker 7s 3s steps(1, end) infinite; }

  /* Cartellino: dondola come appeso a un filo */
  .pricetag { animation: swing 1100ms 700ms var(--ease-out) both, dangle 3.4s 1.8s ease-in-out infinite alternate; }

  /* Telefono: galleggia */
  .phone--build { animation: phone-3d 900ms 100ms var(--ease-out) both, float 5s 1.2s ease-in-out infinite alternate; }
  .trypanel .phone { animation: float 5s ease-in-out infinite alternate; }
  .trypanel.is-entering .phone { animation: swap-3d 650ms var(--ease-out) both, float 5s 650ms ease-in-out infinite alternate; }

  /* Note tecniche: respirano, sfasate */
  .note { animation: rise 420ms var(--ease-out) both, bob 3.6s ease-in-out infinite alternate; }
  .note--1 { animation-delay: 1150ms, 1.6s; } .note--2 { animation-delay: 1230ms, 2.1s; } .note--3 { animation-delay: 1310ms, 2.6s; }

  /* Timbro: l'anello gira lento */
  .stamp__ring { animation: spin 26s linear infinite; }

  /* Mappa: la puntina rimbalza ogni tanto */
  .site__pin { animation: pin 3.2s 2s ease-in-out infinite; }

  /* Chiamata simulata in loop (7s): tocco → onda → "Sto chiamando…" */
  .phone--build .finger { animation: finger 7s 2.6s ease-in-out infinite; }
  .phone--build .site__cta::before { animation: ripple 7s 2.6s ease-out infinite; }
  .phone--build .callsheet { animation: callsheet 7s 2.6s var(--ease-out) infinite; }
  .phone--build .site__cta { animation: build 420ms 800ms var(--ease-out) both, press 7s 2.6s ease-in-out infinite; }
  .trypanel .site__cta::before { animation: ripple 4.5s 1s ease-out infinite; }

  /* Risultati: la tua riga "manca" e lampeggia il punto di domanda */
  .results__q { animation: spin 14s linear infinite; }

  /* Biglietto da visita e marchio: piccoli segni di vita */
  .wordmark__mark rect:last-child { animation: blink 1.6s steps(1, end) infinite; }
  .chip-s--live, .status { animation: none; }
}

@keyframes idle-sway { from { --idle: -3.5deg; } to { --idle: 3.5deg; } }
@keyframes sway { from { transform: rotate(-1.1deg); } to { transform: rotate(1.1deg); } }
@keyframes dangle { from { transform: rotate(-6deg); } to { transform: rotate(5deg); } }
@keyframes float { from { transform: translateY(-5px) rotate(-0.6deg); } to { transform: translateY(7px) rotate(0.6deg); } }
@keyframes bob { from { transform: translateY(-2px); } to { transform: translateY(3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pin { 0%, 70%, 100% { transform: translate(-50%, -50%); } 78% { transform: translate(-50%, -80%); } 86% { transform: translate(-50%, -46%); } 92% { transform: translate(-50%, -56%); } }
@keyframes flicker { 0%, 90%, 100% { opacity: 1; } 91% { opacity: 0.35; } 92% { opacity: 1; } 94% { opacity: 0.5; } 95% { opacity: 1; } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.15; } }
@keyframes finger {
  0% { opacity: 0; transform: translate(40px, 60px) scale(1.2); }
  10% { opacity: 1; transform: translate(0, 0) scale(1.2); }
  14% { transform: translate(0, 0) scale(0.85); }
  18% { transform: translate(0, 0) scale(1.1); }
  26% { opacity: 0; transform: translate(30px, 50px) scale(1.2); }
  100% { opacity: 0; transform: translate(30px, 50px) scale(1.2); }
}
@keyframes ripple { 0%, 13% { opacity: 0; transform: scale(1); } 14% { opacity: 1; transform: scale(1); } 30% { opacity: 0; transform: scale(1.25, 1.6); } 100% { opacity: 0; } }
@keyframes press { 0%, 13%, 19%, 100% { transform: scale(1); } 15% { transform: scale(0.95); } }
@keyframes callsheet {
  0%, 18% { opacity: 0; transform: translateY(-120%); }
  24% { opacity: 1; transform: translateY(0); }
  62% { opacity: 1; transform: translateY(0); }
  70%, 100% { opacity: 0; transform: translateY(-120%); }
}

/* ─────────────────────────────────────────────────────────────
   LA BOTTEGA · facciata verde con tenda a righe: emblema del brand.
   Sta dietro al telefono nel diorama dell'hero.
   ───────────────────────────────────────────────────────────── */
.shop { position: absolute; top: 0; left: 0; width: calc(100% - 28px); height: auto; overflow: visible; filter: drop-shadow(5px 5px 0 rgba(29, 27, 24, 0.9)); }
.scene .shop { translate: 0 0 -30px; }
.shop__kicker { font: 600 10px var(--font-mono); letter-spacing: 0.16em; fill: var(--amber); }
.shop__name { font: italic 450 34px var(--font-display); fill: #FFF4DF; filter: drop-shadow(0 0 5px rgba(242, 169, 0, 0.75)); }
.shop__open { font: 700 11px var(--font-mono); letter-spacing: 0.1em; fill: var(--terra); }
.shop__doorsign { transform-box: fill-box; transform-origin: 50% 0; }
.shop__awning { transform-box: fill-box; transform-origin: 50% 0; }

/* Il cartellino ora pende dalla tenda */
.pricetag { top: 92px; }
@media (max-width: 999px) { .pricetag { top: 60px; } }

/* Emblema nel footer */
.footer__brand { display: flex; align-items: center; gap: var(--s-3); }
.emblem { width: 40px; height: 38px; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .shop { animation: rise 700ms 60ms var(--ease-out) both; }
  .shop__name { animation: neon 900ms 500ms steps(1, end) both, flicker 7s 3s steps(1, end) infinite; }
  .shop__doorsign { animation: sway-sign 3s 1.2s ease-in-out infinite alternate; }
  .shop__awning { animation: breeze 4.5s 1s ease-in-out infinite alternate; }
  .shop__glow { animation: glow 5s ease-in-out infinite alternate; }
}
@keyframes sway-sign { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
@keyframes breeze { from { transform: scaleY(1); } to { transform: scaleY(1.035); } }
@keyframes glow { from { opacity: 0.85; } to { opacity: 1; } }

/* Illustrazione della bottega dentro il mini-sito */
.site__hero--img { overflow: hidden; padding: 0; }
.site__hero--img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

/* ─────────────────────────────────────────────────────────────
   MINI-SITI PER MESTIERE · ognuno con la sua impaginazione
   ───────────────────────────────────────────────────────────── */
.phone--sm .site { padding: 0; gap: 0; }
.site__img { position: relative; aspect-ratio: 720 / 542; flex: none; overflow: hidden; border-bottom: 1.5px solid var(--ink); }
.site__img img { width: 100%; height: 100%; object-fit: cover; }
.site__pad { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.site__meta { font-size: 10.5px; color: var(--ink-3); margin-top: -4px; }
.site__label { margin: 2px 0 -2px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); }
.phone--sm .site__cta { height: 36px; font-size: 11.5px; margin-top: 2px; }

/* Illustrazione grande della bottega accanto al telefono */
.trypanel__art {
  position: relative; margin: 0 0 var(--s-6); max-width: 460px;
  border: var(--b-ink); border-radius: var(--r-2); overflow: hidden; background: var(--paper-3);
  box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1.2deg);
}
.trypanel__art img { width: 100%; height: auto; }
.trypanel__art figcaption { position: absolute; top: 10px; left: 10px; padding: 2px 8px; background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; border-radius: var(--r-1); }
@media (min-width: 860px) { .phone--sm { width: 250px; } }
@media (max-width: 859px) { .trypanel__art { display: none; } }

/* Ristorante: menu con puntini */
.menu { padding: 8px 10px; border: 1.5px solid var(--ink); border-radius: var(--r-2); background: #fff; }
.menu__h { margin: 0 0 4px; font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--terra); font-weight: 700; }
.menu p { display: flex; align-items: baseline; gap: 4px; margin: 0; font-size: 10.5px; line-height: 1.7; }
.menu i { flex: 1; border-bottom: 1px dotted var(--ink-3); transform: translateY(-3px); }
.menu b { font: 600 9px var(--font-mono); color: var(--green); }

/* Idraulico: banner urgenza in cima */
.alert { display: grid; gap: 6px; padding: 10px 12px; background: var(--terra); color: #fff; }
.alert b { font-family: var(--font-display); font-size: 15px; line-height: 1.1; }
.alert .site__cta { background: #fff; color: var(--terra-deep); height: 34px; }
.site--idra .site__img { aspect-ratio: 720 / 400; }
.zones { display: flex; flex-wrap: wrap; gap: 4px; }
.zones span { padding: 3px 7px; border-radius: var(--r-pill); background: var(--green); color: var(--paper); font-size: 9.5px; font-weight: 600; }
.zones--soft span { background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.svc { list-style: none; display: grid; gap: 4px; font-size: 10.5px; color: var(--ink-2); }
.svc li::before { content: '→ '; color: var(--terra); font-weight: 700; }

/* Elettricista: testata verde e griglia servizi */
.elet__head { display: grid; gap: 4px; padding: 10px 12px; background: var(--green); color: var(--paper); }
.elet__head .site__meta { color: var(--amber); margin: 0; }
.site--elet .site__img { aspect-ratio: 720 / 420; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tiles span { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border: 1.5px solid var(--ink); border-radius: var(--r-2); background: #fff; font-size: 10px; font-weight: 650; box-shadow: 2px 2px 0 var(--ink); }
.tiles svg { width: 18px; height: 18px; fill: none; stroke: var(--terra); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Parrucchiere: orari della settimana */
.week { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: var(--r-2); font-size: 10px; }
.week span { color: var(--ink-3); }
.week b { text-align: right; font-weight: 600; }
