/* =========================================================
   I.M.B. Studio Tecnico — BIO
   Identità: blu petrolio #1D3747 · oro #E6B051 · carta #F0EBE0
   Tipografia: Abril Fatface (marchio) · Inter (testo) · DM Mono (annotazioni tecniche)
   ========================================================= */

/* ---------- Font (self-hosted, nessuna chiamata a terzi) ---------- */
@font-face {
  font-family: "Abril Fatface";
  src: url("../fonts/abril-fatface-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/dm-mono-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --petrol: #1D3747;
  --petrol-deep: #142833;
  --petrol-ink: #0F1F28;
  --surface: rgba(240, 235, 224, 0.035);
  --surface-hover: rgba(240, 235, 224, 0.07);
  --gold: #E6B051;
  --gold-light: #F1C673;
  --gold-deep: #C8922A;
  --paper: #F0EBE0;
  --text: #F0EBE0;
  --muted: #A9B8C0;
  --faint: #97AAB4;
  --line: rgba(240, 235, 224, 0.12);
  --line-strong: rgba(240, 235, 224, 0.22);
  --line-gold: rgba(230, 176, 81, 0.38);

  --f-brand: "Abril Fatface", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r: 4px;            /* angoli netti, quasi architettonici */
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: 220ms;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--petrol-deep);
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--f-text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--petrol);
  /* griglia da tavola tecnica + vignettatura */
  background-image:
    radial-gradient(120% 70% at 50% 0%, rgba(230, 176, 81, 0.07), transparent 60%),
    radial-gradient(100% 100% at 50% 100%, rgba(15, 31, 40, 0.7), transparent 70%),
    linear-gradient(rgba(240, 235, 224, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 235, 224, 0.028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  background-attachment: fixed, fixed, scroll, scroll;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.mono { font-family: var(--f-mono); }

/* icone */
.ic, .ic-out, .ic-arrow {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic { width: 22px; height: 22px; }
.ic-out { width: 18px; height: 18px; color: var(--faint); transition: transform var(--t) var(--ease), color var(--t) var(--ease); }
.ic-arrow { width: 20px; height: 20px; transition: transform var(--t) var(--ease); }

/* focus accessibile e coerente */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--r);
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 14px; background: var(--gold); color: var(--petrol-ink);
  font-weight: 600; border-radius: var(--r);
}
.skip:focus { top: 12px; }

/* ---------- Layout ---------- */
.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
}
.identity { display: flex; flex-direction: column; gap: 22px; }
.actions { display: flex; flex-direction: column; gap: 34px; margin-top: 28px; }

/* ---------- Marchio ---------- */
.brand { text-align: center; }
.place {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.logotype {
  margin: 0 0 10px;
  font-family: var(--f-brand);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}
.logotype__mark {
  display: block;
  font-size: clamp(3.1rem, 16vw, 4.2rem);
  letter-spacing: 0.3em;
  padding-left: 0.3em;           /* bilancia lo spazio dopo l'ultima lettera: centratura ottica */
}
/* oro "metallico": sfumatura verticale discreta, come una lamina */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .logotype__mark, .logotype__sub {
    background: linear-gradient(180deg, #F8DA97 0%, #E9B655 46%, #C8922A 78%, #E6B051 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .logotype { filter: drop-shadow(0 8px 26px rgba(230, 176, 81, 0.16)); }
}
.logotype__sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(0.8rem, 3.6vw, 0.95rem);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  text-transform: uppercase;
}
.place { display: inline-flex; align-items: center; gap: 10px; }
.place::before, .place::after {
  content: ""; width: 22px; height: 1px; background: var(--line-strong);
}

/* ---------- Tavola (presentazione) ---------- */
.sheet {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(240, 235, 224, 0.045), rgba(240, 235, 224, 0.015));
  border-radius: 2px;
  padding: 18px 18px 0;
}
.tick { position: absolute; width: 12px; height: 12px; border-color: var(--gold); border-style: solid; border-width: 0; }
.tick--tl { top: -1px; left: -1px; border-top-width: 1.5px; border-left-width: 1.5px; }
.tick--tr { top: -1px; right: -1px; border-top-width: 1.5px; border-right-width: 1.5px; }
.tick--bl { bottom: -1px; left: -1px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.tick--br { bottom: -1px; right: -1px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.sheet__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(118px, 40%, 210px);
  gap: 8px;
  align-items: end;
  margin-top: 4px;
}
.sheet__text { padding-bottom: 18px; min-width: 0; }
.sheet > .label { margin-bottom: 14px; }
.label {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.hello {
  margin-top: 0;
  font-family: var(--f-brand);
  font-weight: 400;
  font-size: clamp(1.75rem, 8vw, 2.15rem);
  line-height: 1.05;
  color: var(--paper);
}
.hello em { font-style: normal; color: var(--gold); }
.lead {
  margin-top: 12px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--muted);
}
.lead strong { color: var(--paper); font-weight: 600; }
.pro {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.45;
}
.pro span { color: var(--paper); font-weight: 500; font-size: 0.875rem; }

.sheet__figure { position: relative; align-self: end; }
.sheet__figure img {
  width: 122%;
  max-width: none;
  height: auto;
  margin: -34px 0 0 -14%;
  filter: drop-shadow(0 14px 18px rgba(8, 18, 24, 0.45));
}
/* quota verticale: richiamo al disegno tecnico */
.dim {
  position: absolute;
  top: 6%; bottom: 0; right: -10px;
  width: 1px;
  background: var(--line-gold);
}
.dim::before, .dim::after {
  content: ""; position: absolute; left: -4px; width: 9px; height: 1px; background: var(--gold);
}
.dim::before { top: 0; }
.dim::after { bottom: 0; }
.dim__label {
  position: absolute; top: 50%; left: 4px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: left center;
  font-size: 0.5625rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap;
  background: var(--petrol);
  padding: 0 4px;
  margin-left: -9px;
}

/* valutazione */
.rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -18px;
  padding: 14px 18px;
  min-height: 52px;
  border-top: 1px solid var(--line);
  transition: background-color var(--t) var(--ease);
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.rating__score { font-weight: 600; font-variant-numeric: tabular-nums; }
.rating__txt { font-size: 0.8125rem; color: var(--muted); flex: 1; min-width: 0; }
.rating .ic-out { margin-left: auto; }

/* cartiglio (title block del disegno) */
.cartiglio {
  display: grid;
  grid-template-columns: 0.9fr 1.45fr 0.9fr;
  margin: 0 -18px;
  border-top: 1px solid var(--line);
}
.cartiglio > div { padding: 11px 12px 13px; min-width: 0; }
.cartiglio.cartiglio--box { margin: 16px 0 0; border: 1px solid var(--line); }
.cartiglio > div + div { border-left: 1px solid var(--line); }
.cartiglio dt {
  font-size: 0.5625rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint);
}
.cartiglio dd {
  margin-top: 4px; font-size: 0.78rem; line-height: 1.3; color: var(--paper); font-weight: 500;
}

/* ---------- Sezioni ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title span { color: var(--gold); }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* contatti — elenco minimal, loghi ufficiali */
.rows { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 14px;
  min-height: 68px;
  padding: 10px 14px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(240, 235, 224, 0.05);
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.row__logo {
  flex: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
}
/* loghi scontornati, senza riquadro: dimensioni bilanciate otticamente */
.row__logo img { width: 36px; height: 36px; }
.row--wa .row__logo img { width: 42px; height: 42px; }
.row--mail .row__logo img { width: 38px; height: 38px; }
.row--ig .row__logo img { width: 36px; height: 36px; }
.row--fb .row__logo img { width: 38px; height: 38px; }
.row--tel .row__logo img { width: 32px; height: 32px; }
.row__logo--imb {
  font-family: var(--f-brand); font-size: 0.95rem; letter-spacing: 0.1em; padding-left: 0.1em;
  color: var(--gold);
}
.row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row__title { font-weight: 600; font-size: 1rem; line-height: 1.25; color: var(--paper); }
.row__sub { font-size: 0.8125rem; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.row__chev {
  flex: none; width: 18px; height: 18px;
  fill: none; stroke: var(--faint); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--t) var(--ease), stroke var(--t) var(--ease);
}

/* salva in rubrica */
.save {
  display: flex; align-items: center; gap: 14px;
  min-height: 62px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r);
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.save > .ic { color: var(--gold); }
.save__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.save__title { font-weight: 600; font-size: 0.95rem; }
.save__sub { font-size: 0.75rem; color: var(--muted); }
.save .ic-arrow { color: var(--faint); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* guida gratuita — elemento in evidenza, su "carta" */
.guide {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 18px;
  border-radius: var(--r);
  background:
    linear-gradient(rgba(29, 55, 71, 0.05) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(29, 55, 71, 0.05) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--paper);
  color: var(--petrol);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.7);
}
.guide::before {          /* filetto oro laterale */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold);
}
.guide__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide__kicker { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6B5320; font-weight: 500; }
.guide__badge {
  font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
  padding: 4px 8px; border: 1px solid var(--petrol); border-radius: 2px;
}
.guide__title {
  font-family: var(--f-brand);
  font-size: clamp(1.45rem, 6.6vw, 1.75rem);
  line-height: 1.1;
  color: var(--petrol-ink);
  max-width: 17ch;
}
.guide__text { font-size: 0.9rem; color: #3E5361; max-width: 38ch; }
.guide__cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 8px; padding-top: 14px;
  border-top: 1px solid rgba(29, 55, 71, 0.18);
  font-weight: 600; font-size: 0.95rem;
}
.guide__cta .ic-arrow { margin-left: auto; }
.guide:focus-visible { outline-color: var(--gold); }

/* servizi — tabella tecnica */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.services li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 12px;
  min-height: 64px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.code {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--f-brand);
  font-size: 0.95rem;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: 2px;
}
.svc { display: flex; flex-direction: column; min-width: 0; font-weight: 500; font-size: 0.9rem; line-height: 1.25; }
.svc small {
  font-size: 0.75rem; line-height: 1.3;
  color: var(--faint); margin-top: 2px; font-weight: 400;
}
.duo.duo--links { margin-top: 0; gap: 0; border: 1px solid var(--line); border-top: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-inline {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 54px; padding: 12px 14px;
  font-size: 0.875rem; font-weight: 500;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.link-inline + .link-inline { border-left: 1px solid var(--line); }
.link-inline--gold { color: var(--gold); }
.link-inline--gold .ic-out { color: var(--gold); }

/* lista link */
.list { border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a {
  display: flex; align-items: center; gap: 14px;
  min-height: 64px;
  padding: 12px 6px;
  transition: background-color var(--t) var(--ease), padding var(--t) var(--ease);
}
.list .ic { color: var(--gold); }
.list__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list__title { font-weight: 500; font-size: 0.98rem; }
.list__sub { font-size: 0.78rem; color: var(--muted); overflow-wrap: anywhere; }

/* footer */
.footer {
  margin-top: 6px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.footer__mark {
  font-family: var(--f-brand); color: var(--gold);
  font-size: 0.8rem; letter-spacing: 0.32em; text-transform: uppercase;
}
.footer__mark span { font-size: 1.1rem; letter-spacing: 0.28em; margin-right: 0.2em; }
.footer__claim { font-size: 0.875rem; color: var(--muted); }
.footer__addr, .footer__copy { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }

/* ritardi d'ingresso (classi al posto di style inline: compatibile con la CSP) */
.d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; } .d5 { --d: 5; } .d6 { --d: 6; }

/* stato in alto */
.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
  padding: 5px 11px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 31, 40, 0.35);
  font-family: var(--f-mono);
  font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.status__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 176, 81, 0.18);
}

/* intestazione tavola + coordinate reali dello studio */
.sheet__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet > .sheet__head .label { margin: 0; }
.coords { font-size: 0.5625rem; letter-spacing: 0.12em; color: var(--faint); white-space: nowrap; }
@media (max-width: 419px) { .sheet__head .coords { display: none; } }

/* disegno tecnico dietro Geo */
.sheet__figure::before {
  content: ""; position: absolute; left: 50%; top: 42%;
  width: 120%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(230, 176, 81, 0.16), transparent 70%);
  pointer-events: none;
}
.blueprint {
  position: absolute; left: -8%; right: -8%; bottom: 0;
  width: 116%; height: auto; max-width: none;
  overflow: visible;
  fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.blueprint path, .blueprint circle { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.bp-soft { opacity: 0.16; stroke-width: 0.75; }
.bp-main { opacity: 0.42; stroke-width: 1; }
.bp-dim  { opacity: 0.5;  stroke-width: 0.75; }
.sheet__figure picture { position: relative; z-index: 1; display: block; }

/* salva + condividi */
.save-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 10px; }
.save-row .save { margin-top: 0; }
.share {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 76px; min-height: 62px; padding: 8px 10px;
  font: inherit; font-size: 0.6875rem; font-weight: 500; color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.share[hidden] { display: none; }
.share .ic { color: var(--gold); }

/* barra contatti rapidi */
.dock {
  position: fixed; z-index: 20;
  left: 50%; bottom: max(12px, env(safe-area-inset-bottom));
  width: min(440px, calc(100% - 2 * var(--gutter)));
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(17, 34, 44, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, calc(100% + 24px));
  opacity: 0; visibility: hidden;
  transition: transform 420ms var(--ease), opacity 300ms var(--ease), visibility 0s linear 420ms;
}
.dock.is-on {
  transform: translate(-50%, 0); opacity: 1; visibility: visible;
  transition: transform 420ms var(--ease), opacity 300ms var(--ease), visibility 0s;
}
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 10px;
  border-radius: 5px;
  font-size: 0.8125rem; font-weight: 600;
  transition: background-color var(--t) var(--ease);
}
.dock__btn .ic { width: 20px; height: 20px; color: var(--paper); }
.dock__btn--wa { background: rgba(240, 235, 224, 0.08); border: 1px solid var(--line-strong); }
.dock__logo { flex: none; width: 22px; height: 22px; }
.dock__btn .ic { color: var(--gold); }
.dock__btn:active { background: var(--surface-hover); }
.js .page { padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 84px)); }

/* avviso breve */
.toast {
  position: fixed; z-index: 30; left: 50%; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px);
  transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: 4px;
  background: var(--paper); color: var(--petrol-ink);
  font-size: 0.8125rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast:empty { display: none; }

/* ---------- Stati interattivi ---------- */
@media (hover: hover) and (pointer: fine) {
  .guide:hover .ic-arrow { transform: translateX(4px); }
  .save:hover { border-color: var(--line-gold); background: var(--surface-hover); }
  .row:hover { background: rgba(240, 235, 224, 0.09); border-color: var(--line-strong); }
  .row:hover .row__chev { transform: translateX(3px); stroke: var(--paper); }
  .share:hover { border-color: var(--line-gold); background: var(--surface-hover); }
  .dock__btn:hover { background: var(--surface-hover); }
  .save:hover .ic-arrow { transform: translateY(2px); color: var(--gold); }
  .guide:hover { transform: translateY(-2px); box-shadow: 0 24px 40px -24px rgba(0,0,0,.8); }
  .rating:hover, .link-inline:hover { background: var(--surface-hover); }
  .list a:hover { background: var(--surface); padding-left: 12px; padding-right: 10px; }
  a:hover .ic-out { color: var(--gold); transform: translate(2px, -2px); }
}
.row:active, .guide:active, .save:active, .share:active { transform: scale(0.985); }
.row:active, .save:active { background: var(--surface-hover); }
.list a:active, .rating:active, .link-inline:active { background: var(--surface-hover); }

/* ---------- Animazione d'ingresso discreta ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 700ms var(--ease) both;
    animation-delay: calc(var(--d, 0) * 70ms + 60ms);
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
  .blueprint path, .blueprint circle { animation: draw 1600ms var(--ease) both; }
  .bp-soft path, .bp-soft circle { animation-delay: 250ms; animation-duration: 2000ms; }
  .bp-main path { animation-delay: 450ms; }
  .bp-main path:nth-child(3) { animation-delay: 750ms; }
  .bp-main path:nth-child(4) { animation-delay: 900ms; }
  .bp-dim path { animation-delay: 1100ms; animation-duration: 900ms; }
  @keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .status__dot { animation: breathe 2.8s ease-in-out infinite; }
  @keyframes breathe { 50% { box-shadow: 0 0 0 6px rgba(230, 176, 81, 0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- Schermi molto piccoli (iPhone SE 1ª gen., 320px) ---------- */
@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .sheet { padding-left: 14px; padding-right: 14px; }
  .coords { display: none; }
  .dock__btn { font-size: 0.75rem; gap: 6px; padding: 0 6px; }
  .rating { margin-left: -14px; margin-right: -14px; }
  .rating { padding-left: 14px; padding-right: 14px; }
  .rating__txt { font-size: 0.75rem; }
  .cartiglio { grid-template-columns: 1fr 1fr; }
  .cartiglio > div:nth-child(2) { order: 3; grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .duo.duo--links { grid-template-columns: minmax(0, 1fr); }
  .link-inline + .link-inline { border-left: 0; border-top: 1px solid var(--line); }
  .services li { padding: 12px 10px; gap: 10px; }
  .code { width: 30px; height: 30px; font-size: 0.85rem; }
}

/* ---------- Tablet ---------- */
@media (min-width: 600px) {
  .page { max-width: 560px; padding-top: max(48px, env(safe-area-inset-top)); }
  .sheet { padding: 28px 26px 0; }
  .rating { margin-left: -26px; margin-right: -26px; }
  .rating { padding-left: 26px; padding-right: 26px; }
  .cartiglio > div { padding-left: 16px; padding-right: 16px; }
  .sheet__body { grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; }
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Desktop: due colonne, identità fissa a sinistra ---------- */
@media (min-width: 980px) {
  .page {
    max-width: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
    padding: 64px 40px 56px;
  }
  .identity { gap: 30px; }
  .brand { text-align: left; }
  .logotype__mark { font-size: 5.2rem; padding-left: 0; }
  .logotype__sub { padding-left: 0; font-size: 1rem; }
  .place::before { display: none; }
  .actions { margin-top: 8px; gap: 40px; }
  .sheet__body { grid-template-columns: minmax(0, 1fr) 210px; }
  .hello { font-size: 2.4rem; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 980px) {
  .dock { display: none; }
  .js .page { padding-bottom: 56px; }
}
@media (min-width: 980px) and (min-height: 860px) {
  .identity { position: sticky; top: 40px; }
}
@media (min-width: 1200px) {
  .services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Stampa ---------- */
@media print {
  body { background: #fff; color: #000; }
  .reveal { animation: none; }
}
