/* ItaGlia (parodia di WMIE) — lo stile distillato da america.gov (settembre 2026):
   card grigio perla con angoli da 40px, titolo serif enorme e stretto, sans neo-grotesk,
   blu navy quasi nero per il testo e blu istituzionale per i bottoni pieni. */

/* Font in locale, licenza OFL (fonts/LICENZE.txt). Il testo usa il font di sistema Apple (SF)
   su Mac e iPhone; altrove Inter Tight, così Windows e Android non finiscono su Segoe o Roboto. */
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/instrument-serif-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(fonts/inter-tight.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Doto'; src: url(fonts/doto-900.woff2) format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --ink: #000c1f;
  --ink-2: rgba(0, 12, 31, 0.65);
  --ink-3: rgba(0, 12, 31, 0.42);
  --navy: #002664;
  --card: #f1f1f0;
  --line: #d6d6d6;
  --bubble: #f1f2f4;
  --link: #1a4fb4;
  --red: #c8102e;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Inter Tight', Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #fff;
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── barretta in alto ─────────────────────────────────────────── */
.disclaimer[role='button'] { cursor: pointer; }
.disclaimer {
  height: 40px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12.5px; color: #4a4f57; letter-spacing: 0.005em;
  transition: opacity 0.35s, transform 0.45s var(--ease);
}
.disclaimer b { font-weight: 600; color: var(--ink); }
.badge {
  font: 700 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--red); padding: 4px 7px 3px; border-radius: 4px; margin-right: 4px;
}
.disclaimer .sep { color: #9aa0a8; }
.legal { max-width: 820px; margin: 90px auto 0; padding: 0 32px; text-align: center; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.legal b { color: var(--ink); font-weight: 600; }
.chat-note { position: absolute; left: 0; right: 0; bottom: 8px; margin: 0; text-align: center; font-size: 12px; color: var(--ink-3); }
.disclaimer .info { width: 14px; height: 14px; fill: none; stroke: #4a4f57; stroke-width: 1.2; stroke-linecap: round; margin-left: 3px; }

/* ── header ───────────────────────────────────────────────────── */
.site {
  position: fixed; z-index: 20; left: 0; right: 0; top: 78px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 78px; height: 44px;
  transition: top 0.5s var(--ease), padding 0.5s var(--ease);
}
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 400 27px/1 var(--serif); letter-spacing: -0.01em; }
.flag { display: flex; width: 31px; height: 19px; overflow: hidden; border-radius: 1.5px; box-shadow: 0 0 0 0.5px rgba(0,0,0,.12); }
.flag i { flex: 1; }
.flag i:nth-child(1) { background: #009246; }
.flag i:nth-child(2) { background: #fff; }
.flag i:nth-child(3) { background: #ce2b37; }
.menu {
  height: 44px; padding: 0 20px; border: 0; border-radius: 40px;
  background: var(--navy); color: #fff; font: 500 15.5px/1 var(--sans); cursor: pointer;
}

/* ── home ─────────────────────────────────────────────────────── */
.home {
  position: relative; margin: 0 32px; border-radius: 40px;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(50% 60% at 85% 70%, rgba(228,228,226,.9), transparent 70%),
    var(--card);
  padding-bottom: 120px;
  transition: opacity 0.4s, transform 0.5s var(--ease);
}
.hero { padding-top: 146px; text-align: center; }
.hero h1 {
  margin: 0; font: 400 112px/1 var(--serif); letter-spacing: -0.025em; color: var(--ink);
}
.hero .sub { text-wrap: balance; margin: 28px 0 0; font: 400 24px/1.3 var(--sans); color: var(--ink-2); letter-spacing: -0.01em; }

.stage { position: relative; width: 674px; margin: 48px auto 0; }

/* il campo, uguale nei due stati */
.ask {
  position: relative; display: flex; align-items: center; gap: 4px;
  background: #fff; border-radius: 999px;
}
.ask input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  font: 400 21px/1 var(--sans); color: var(--ink); padding: 0 0 0 40px;
}
.ask .ph {
  position: absolute; left: 40px; right: 170px; top: 50%; transform: translateY(-50%);
  font: 400 21px/1.2 var(--sans); color: rgba(0,12,31,.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  transition: opacity 0.25s;
}
.ask.has-text .ph { opacity: 0 !important; }
.ask .ph.out { opacity: 0; }
.ask .tools { display: flex; gap: 20px; margin-right: 18px; }
.ask .tools svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ask .send {
  flex: none; width: 48px; height: 48px; margin-right: 22px; border: 0; border-radius: 50%;
  background: var(--navy); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 14px -6px rgba(0,38,100,.55);
}
.ask .send svg { width: 21px; height: 21px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ask-hero {
  position: absolute; z-index: 3; top: 15px; left: 15px; right: 15px; height: 96px;
  border: 1.5px solid rgba(0,12,31,.22);
  box-shadow: 0 18px 40px -22px rgba(0,12,31,.35);
}

/* la "foto": un eliminacode */
.scene {
  position: relative; margin: 0; height: 470px; border-radius: 40px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,12,31,.45), 0 0 0 1px rgba(0,0,0,.04);
}
.wall {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0 63%, rgba(0,0,0,.08) 63% 63.4%, transparent 63.4%),
    linear-gradient(180deg, #d5e7f4 0 63%, #ece6da 63%), /* parete azzurra, bancone chiaro */
    #ddd;
}
.wall::after { /* luce al neon */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(70% 55% at 50% 0%, rgba(255,255,255,.7), transparent 70%),
              radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,.12), transparent 60%);
}
.display {
  position: absolute; left: 52px; top: 150px; width: 360px; padding: 15px 8px 12px;
  background: linear-gradient(180deg, #1b1b1d, #0b0b0c); border-radius: 12px;
  box-shadow: 0 22px 34px -14px rgba(0,0,0,.6), inset 0 0 0 2px #2a2a2c;
  display: grid; grid-template-columns: 1.7fr 1fr;
}
.display::before, .display::after { /* staffe al soffitto */
  content: ''; position: absolute; top: -160px; width: 4px; height: 160px;
  background: linear-gradient(90deg, #8d8d8d, #d6d6d6 45%, #7a7a7a);
}
.display::before { left: 60px; }
.display::after { right: 60px; }
.display .col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.display .col + .col { border-left: 1px solid #2c2c2e; }
.display .lbl { font: 600 10.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #8e8e8e; }
.led {
  font: 900 84px/1 'Doto', ui-monospace, monospace; color: #ff3b2f; letter-spacing: .04em;
  text-shadow: 0 0 6px rgba(255,59,47,.85), 0 0 22px rgba(255,59,47,.45);
  animation: led 3.2s steps(1) infinite;
}
@keyframes led { 0%, 92% { opacity: 1 } 94% { opacity: .55 } 96% { opacity: 1 } }

/* il biglietto: carta termica col bordo strappato */
.paper { position: absolute; right: 60px; top: 136px; width: 170px; transform: rotate(5deg); filter: drop-shadow(0 16px 16px rgba(0,0,0,.28)) drop-shadow(0 2px 2px rgba(0,0,0,.12)); }
.ticket {
  --z: 7px;
  display: flex; flex-direction: column; gap: 5px; padding: 14px 14px calc(14px + var(--z));
  background: linear-gradient(180deg, #fffefa, #f3efe4); color: #1d1d1f;
  font: 500 10px/1.25 ui-monospace, 'SF Mono', Menlo, monospace;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--z)) no-repeat,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--z)) var(--z) repeat-x;
}
.ticket .t-head { text-align: center; text-transform: uppercase; letter-spacing: .12em; font-size: 8.5px; color: #555; padding-bottom: 6px; border-bottom: 1px dashed #c9c4b6; }
.ticket .t-lbl { text-align: center; text-transform: uppercase; letter-spacing: .1em; font-size: 8.5px; color: #777; margin-top: 2px; }
.ticket b { text-align: center; font: 800 46px/1 var(--sans); letter-spacing: -.03em; margin-bottom: 4px; }
.ticket .t-row { display: flex; justify-content: space-between; }
.ticket .t-bar { height: 26px; margin-top: 6px; background: repeating-linear-gradient(90deg, #222 0 2px, #0000 2px 3px, #222 3px 4px, #0000 4px 7px, #222 7px 10px, #0000 10px 12px); }
.ticket .t-foot { text-align: center; font-size: 8.5px; color: #777; }


.manifesto { max-width: 900px; margin: 140px auto 0; text-align: center; }
.manifesto p { margin: 0; font: 400 70px/1.02 var(--serif); letter-spacing: -0.02em; }
.manifesto em { font-style: normal; color: var(--navy); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1080px; margin: 110px auto 0; padding: 0 40px; }
.facts div { background: #fff; border-radius: 32px; padding: 36px 32px; }
.facts h2 { margin: 0 0 12px; font: 400 40px/1.02 var(--serif); letter-spacing: -0.015em; }
.facts p { margin: 0; color: var(--ink-2); text-wrap: balance; }

/* ── chat ─────────────────────────────────────────────────────── */
.chat { position: fixed; inset: 0; z-index: 10; background: #fff; opacity: 0; visibility: hidden; transition: opacity 0.45s, visibility 0s 0.45s; }
body.in-chat .chat { opacity: 1; visibility: visible; transition: opacity 0.45s; }
body.in-chat .home { opacity: 0; transform: translateY(-24px) scale(.985); }
body.in-chat .disclaimer { opacity: 0; }
body.in-chat .site { top: 23px; padding: 0 41px; }

.thread {
  position: absolute; left: 0; right: 0; top: 92px; bottom: 138px;
  overflow-y: auto; scrollbar-width: none;
  padding: 30px calc(50% - 325px) 40px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 36px), transparent);
}
.thread::-webkit-scrollbar { display: none; }

.turn-q { display: flex; justify-content: flex-end; margin: 0 0 26px; }
.turn-q span {
  max-width: 78%; background: var(--bubble); border-radius: 28px; padding: 15px 22px;
  font-size: 17px; line-height: 1.35;
  animation: rise 0.45s var(--ease) both;
}
.turn-a { margin: 0 0 46px; font-size: 17px; line-height: 1.6; }
.turn-a > * { margin: 0 0 14px; }
.turn-a p strong { font-weight: 600; }
.turn-a h4 { font-size: 17px; font-weight: 600; margin-top: 22px; }
.w { animation: word 0.32s ease-out both; }
@keyframes word { from { opacity: 0; filter: blur(2px) } to { opacity: 1; filter: none } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.pop { animation: rise 0.45s var(--ease) both; }

/* indicatore "sta timbrando" */
.thinking { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 16px; }
.thinking .seal {
  width: 26px; height: 26px; border-radius: 50%; border: 2px dashed rgba(0,38,100,.55);
  display: grid; place-items: center; font: 600 10px/1 var(--serif); color: var(--navy);
  animation: spin 2.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg) } }
.thinking .lbl {
  background: linear-gradient(90deg, var(--ink-3) 0 40%, var(--ink) 50%, var(--ink-3) 60% 100%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0 } to { background-position: 0 0 } }

/* card appuntamento */
.appt {
  border: 1px solid var(--line); border-radius: 26px; padding: 22px 24px 20px; background: #fff;
  box-shadow: 0 18px 40px -28px rgba(0,12,31,.35);
}
.appt .top { display: flex; align-items: center; gap: 16px; }
.appt .cal {
  flex: none; width: 58px; height: 62px; border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--line); text-align: center;
}
.appt .cal i { display: block; background: var(--red); color: #fff; font: 700 11px/20px var(--sans); font-style: normal; letter-spacing: .08em; }
.appt .cal b { display: block; font: 400 30px/40px var(--serif); }
.appt .when { font: 400 29px/1.05 var(--serif); letter-spacing: -0.005em; }
.appt .when small { display: block; font: 400 14.5px/1.4 var(--sans); color: var(--ink-2); letter-spacing: 0; margin-top: 4px; }
.appt ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid #ececec; display: grid; gap: 6px; font-size: 15px; }
.appt li::before { content: '☐'; margin-right: 10px; color: var(--ink-3); }
.appt .foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.appt .foot span { font-size: 13.5px; color: var(--ink-2); }
.btn { height: 42px; padding: 0 20px; border-radius: 40px; border: 0; background: var(--navy); color: #fff; font: 500 15px/1 var(--sans); }

/* rimbalzo */
.chain { display: grid; gap: 0; padding-left: 4px; }
.hop { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.hop .rail { position: relative; height: 100%; }
.hop .rail::before { content: ''; position: absolute; left: 12px; top: 6px; bottom: -6px; width: 2px; background: repeating-linear-gradient(180deg, #c5ccd8 0 4px, transparent 4px 8px); }
.hop:last-child .rail::before { display: none; }
.hop .rail::after { content: ''; position: absolute; left: 6px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.hop.back .rail::after { background: var(--red); border-color: var(--red); }
.hop .body { padding-bottom: 14px; }
.hop a { color: var(--link); font-weight: 600; text-decoration: underline dotted; text-underline-offset: 3px; }
.hop.back a { color: var(--red); }
.hop p { margin: 2px 0 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }

/* eliminacode in chat */
.ticket-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  border-radius: 22px; background: #111; color: #fff;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.6);
}
.ticket-row > div { padding: 16px 22px 14px; }
.ticket-row > div + div { border-left: 1px dashed #333; }
.ticket-row small { display: block; font: 600 10.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #8d8d8d; }
.ticket-row .num { display: block; font: 900 52px/1.05 'Doto', ui-monospace, monospace; letter-spacing: .04em; margin-top: 6px; }
.ticket-row .mine .num { color: #fff; }
.ticket-row .serving .num { color: #ff3b2f; text-shadow: 0 0 6px rgba(255,59,47,.8), 0 0 20px rgba(255,59,47,.4); }
.ticket-row .wait { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px dashed #333; padding: 10px 22px; font-size: 14px; color: #bbb; }
.ticket-row .wait b { color: #fff; font-weight: 600; }
.flip { display: inline-block; animation: flip 0.5s var(--ease) both; }
@keyframes flip { from { transform: translateY(-60%); opacity: 0 } to { transform: none; opacity: 1 } }

/* avanzamento pratica */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.track div { border-top: 4px solid #e3e5ea; padding-top: 10px; font-size: 14px; }
.track .done { border-color: var(--navy); }
.track .now { border-color: #f0a400; }
.track b { display: block; font-size: 15.5px; }
.track span { color: var(--ink-2); }

/* percorso */
.path { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; }
.path span { background: var(--bubble); border-radius: 999px; padding: 6px 12px; }
.path span:last-child { background: #fff3f3; color: var(--red); font-weight: 600; }
.path i { color: var(--ink-3); font-style: normal; }

.src { font-size: 14px; color: var(--ink-2); display: flex; gap: 14px; flex-wrap: wrap; }
.src a { color: var(--link); text-decoration: underline dotted; text-underline-offset: 3px; }

/* campo in basso nella chat */
.ask-dock {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 674px; height: 82px; border: 2px solid #1d1d1f; bottom: 34px;
  box-shadow: 0 16px 36px -20px rgba(0,12,31,.4);
}
.ask-dock input, .ask-dock .ph { font-size: 17px; }
.ask-dock input { padding-left: 32px; }
.ask-dock .ph { left: 32px; }
.ask-dock .send { width: 38px; height: 38px; margin-right: 22px; }
.ask-dock .send svg { width: 18px; height: 18px; }
.ask-dock .tools { gap: 16px; margin-right: 14px; }
.ask-dock .tools svg { width: 20px; height: 20px; }

/* ── pausa pranzo: barra con conto alla rovescia, poi il popup ── */
.closing {
  position: fixed; z-index: 15; top: 84px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px;
  background: #fff; border: 1.5px solid rgba(0,12,31,.14); border-radius: 999px;
  box-shadow: 0 14px 30px -18px rgba(0,12,31,.45);
  font: 500 14.5px/1.2 var(--sans); color: var(--ink); white-space: nowrap;
  animation: drop .5s var(--ease) both;
}
@keyframes drop { from { opacity: 0; transform: translate(-50%, -12px) } to { opacity: 1; transform: translateX(-50%) } }
.closing svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.led-chip {
  padding: 7px 11px 6px; border-radius: 999px; background: #111; color: #ff3b2f;
  font: 900 17px/1 'Doto', ui-monospace, monospace; letter-spacing: .06em;
  text-shadow: 0 0 6px rgba(255,59,47,.8), 0 0 16px rgba(255,59,47,.35);
}
.thread { transition: top .5s var(--ease); }
body.closing-on .thread { top: 140px; }

.alert-layer { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; pointer-events: none; }
body.alerting .alert-layer { pointer-events: auto; background: rgba(0,12,31,.32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade .35s ease-out both; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
/* stesso linguaggio della home: card perla, serif stretto, tabellone LED */
.modal {
  width: 460px; padding: 34px 32px 26px; border-radius: 36px; text-align: center;
  background: radial-gradient(60% 50% at 20% 20%, rgba(255,255,255,.8), transparent 70%), var(--card);
  box-shadow: 0 40px 80px -30px rgba(0,12,31,.55), 0 0 0 1px rgba(0,12,31,.06);
  animation: pop .42s var(--ease) .08s both;
}
@keyframes sheet { from { transform: translateY(100%) } to { transform: none } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96) } to { opacity: 1; transform: none } }
.al-led {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px; margin-bottom: 20px;
  padding: 10px 20px 8px; border-radius: 12px; background: #111; box-shadow: 0 14px 30px -16px rgba(0,0,0,.6);
}
.al-led span { font: 600 9.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #8e8e8e; }
.al-led b { font: 900 40px/1 'Doto', ui-monospace, monospace; color: #ff3b2f; text-shadow: 0 0 6px rgba(255,59,47,.8), 0 0 20px rgba(255,59,47,.4); }
.modal h3 { margin: 0 0 10px; font: 400 38px/1 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.modal p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.al-btns { display: flex; gap: 10px; margin-top: 24px; }
.al-btns .btn { flex: 1; height: 48px; font-size: 15.5px; }
.btn.ghost { background: rgba(0,12,31,.06); color: var(--ink-3); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; line-height: 1; }
.btn.ghost small { font-size: 10.5px; }

/* "Salta la fila" */
.skip {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 420px; margin-top: 4px;
  padding: 11px 11px 11px 24px; border: 0; border-radius: 999px; cursor: pointer; text-align: left;
  background: var(--navy); color: #fff; font: inherit; box-shadow: 0 12px 26px -14px rgba(0,38,100,.8);
}
.skip b { display: block; font: 600 16.5px/1.25 var(--sans); }
.skip small { display: block; font-size: 13px; line-height: 1.3; opacity: .72; }
.skip .sk-go { flex: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.skip .sk-go svg { width: 18px; height: 18px; fill: #fff; }
.skip:disabled { opacity: .5; cursor: default; animation: none; }

/* ── visita guidata: dove premere lo dice il bottone che pulsa ─────── */
.ask.nudge .send, .btn.nudge { animation: nudge 1.6s var(--ease) infinite; }
.skip.nudge { animation: nudge-wide 1.6s var(--ease) infinite; }
.ask.nudge .send svg, .skip.nudge .sk-go svg { animation: poke 1.6s var(--ease) infinite; }
@keyframes nudge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,38,100,.55), 0 0 0 0 rgba(0,38,100,.25) }
  14% { transform: scale(1.1) }
  30% { transform: scale(1) }
  80%, 100% { transform: scale(1); box-shadow: 0 0 0 14px rgba(0,38,100,0), 0 0 0 30px rgba(0,38,100,0) }
}
@keyframes nudge-wide {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0,38,100,.5), 0 0 0 0 rgba(0,38,100,.22) }
  14% { transform: scale(1.025) }
  30% { transform: scale(1) }
  80%, 100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(0,38,100,0), 0 0 0 26px rgba(0,38,100,0) }
}
@keyframes poke { 0%, 30%, 100% { transform: none } 14% { transform: translateX(3px) } }

/* ── la chiusura: popup sopra la demo, stessa grafica ──────────────── */
body.revealed { overflow: hidden; }
.reveal {
  position: fixed; inset: 0; z-index: 90; display: none; overflow-y: auto; padding: 32px;
  background: rgba(0,12,31,.34); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.reveal.on { display: flex; animation: fade .35s ease-out both; }
.rv-card {
  position: relative; margin: auto; width: 100%; max-width: 1040px; padding: 64px 56px 40px; border-radius: 40px; text-align: center;
  background:
    radial-gradient(60% 50% at 18% 18%, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(50% 60% at 85% 82%, rgba(228,228,226,.9), transparent 70%),
    var(--card);
  box-shadow: 0 50px 100px -40px rgba(0,12,31,.6), 0 0 0 1px rgba(0,12,31,.06);
  animation: pop .5s var(--ease) both;
}
.rv-card > * { animation: rise .6s var(--ease) both; }
.rv-card > :nth-child(3) { animation-delay: .06s; }
.rv-card > :nth-child(4) { animation-delay: .12s; }
.rv-card > :nth-child(5) { animation-delay: .18s; }
.rv-card > :nth-child(n+6) { animation-delay: .26s; }
.rv-close {
  position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px rgba(0,12,31,.08); animation: none;
}
.rv-close svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.rv-close:hover { background: var(--bubble); }
.rv-tag { margin: 0 0 22px; }
.rv-tag .badge { font-size: 11px; padding: 5px 9px 4px; }
.reveal h2 { margin: 0 auto; max-width: 900px; font: 400 clamp(52px, 8vw, 96px)/.96 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.rv-lead { margin: 22px auto 0; max-width: 640px; font: 400 20px/1.4 var(--sans); color: var(--ink-2); text-wrap: pretty; }
/* il caffè: chi è a Cagliari viene in ufficio, gli altri fissano una call */
.rv-office { display: grid; grid-template-columns: 0.92fr 1.15fr; gap: 10px; margin: 56px 0 0; padding: 10px; border-radius: 32px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); text-align: left; }
.rv-office .pic { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: 24px; }
.coffee { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 22px 24px 22px 18px; }
.coffee .kick { margin: 0 0 8px; font-size: 14.5px; color: #8d8d97; }
.coffee h3 { margin: 0; font: 400 44px/1 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }
.coffee p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.45; color: #c9c9d1; text-wrap: pretty; }
.coffee .cups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.coffee .btn { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; height: 52px; padding: 0 20px; font-size: 15px; text-decoration: none; white-space: nowrap; }
.coffee .rv-coffee { background: #fff; color: #111317; }
.rv-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; text-align: left; }
.rv-points div { background: #fff; border-radius: 28px; }
.rv-points div { padding: 26px 24px; }
.rv-points h3, .rv-trust h4 { margin: 0 0 6px; font: 400 29px/1.05 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.rv-points p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
/* le garanzie: una riga sottovoce, come una cosa scontata */
.rv-trust { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 22px; font-size: 13.5px; color: var(--ink-3); }
.rv-trust .grp { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.rv-trust .grp b { margin-right: -4px; font-weight: 400; }
.rv-trust .grp b::after { content: ':'; }
.rv-trust i { font-style: normal; cursor: help; }
.rv-trust i.on { color: var(--ink-2); }
.rv-trust i.next { opacity: .8; }
.rv-legal { max-width: 760px; margin: 36px auto 0; font-size: 12.5px; line-height: 1.55; color: rgba(255,255,255,.45); }

/* chi c'è dietro: l'unica fascia scura, a filo della card; i lavori stanno su wmie.it */
.rv-us { margin: 72px -56px -40px; padding: 76px 56px 40px; border-radius: 0 0 40px 40px; background: #111317; color: #fff; }
.us-kick { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 20px; font: 600 14px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #a9a9b3; }
.us-kick img { height: 16px; width: auto; }
.us-kick span { width: 1px; height: 16px; background: rgba(255,255,255,.2); }
.rv-us h4 { margin: 0 auto; max-width: 820px; font: 400 clamp(38px, 5.6vw, 60px)/1.02 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.rv-us h4 em { color: rgba(255,255,255,.6); }
.us-sub { margin: 22px auto 0; max-width: 640px; font-size: 19px; line-height: 1.6; color: #c9c9d1; text-wrap: pretty; }
/* il rimando ai lavori su wmie.it: secondario rispetto al caffè, quindi vetro e non bianco */
.rv-work { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; height: 52px; padding: 0 24px; font-size: 16px; text-decoration: none; background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.rv-work:hover { background: rgba(255,255,255,.16); }
/* in fondo: condividi e la mail da copiare */
.rv-end { margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); display: grid; justify-items: center; gap: 14px; }
.rv-share { margin: 14px 0 0; text-align: center; font-size: 15px; color: #a9a9b3; }
.rv-mail { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; margin: 0; font-size: 14.5px; color: #a9a9b3; }
.rv-mail .box { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 16px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.rv-mail a { color: #fff; font-size: 16px; font-weight: 500; text-decoration: none; }
.rv-mail a:hover { text-decoration: underline; text-underline-offset: 4px; }
.rv-copy { height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; color: #111317; font: 600 13px/1 var(--sans); cursor: pointer; }
.rv-copy.done { background: #2fbf71; color: #fff; }
.rv-share a { color: #fff; text-decoration: underline dotted; text-underline-offset: 4px; }

/* dopo la chiusura del popup: il bottoncino fisso per riaprirlo */
.rv-pin {
  position: fixed; z-index: 30; right: 24px; bottom: 24px; display: none; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); font: 500 14.5px/1 var(--sans);
  box-shadow: 0 16px 34px -16px rgba(0,12,31,.45), 0 0 0 1px rgba(0,12,31,.08);
}
.rv-pin.on { display: inline-flex; animation: rise .45s var(--ease) both; }
.rv-pin i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(200,16,46,.14); }
.rv-pin:hover { color: var(--navy); }
@media (max-width: 1180px) { body.in-chat .rv-pin { bottom: 132px; } }

/* il menu: tre voci finte, l'ultima porta alla lista d'attesa */
.menu-panel {
  position: absolute; top: 54px; right: 78px; min-width: 270px; padding: 8px; display: grid;
  background: #fff; border-radius: 24px; box-shadow: 0 30px 60px -24px rgba(0,12,31,.45), 0 0 0 1px rgba(0,12,31,.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
}
.menu-panel.on { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .3s var(--ease); }
body.in-chat .menu-panel { right: 41px; }
.mi { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 12px 14px; font-size: 15.5px; }
.mi b { font-weight: 500; }
.mi small { font-size: 13px; color: var(--ink-3); }
.mi.real { margin-top: 4px; border: 0; border-top: 1px solid #eee; background: none; cursor: pointer; text-align: left; font: 400 13.5px/1.2 var(--sans); color: var(--ink-3); }
.mi.real:hover { color: var(--navy); }

/* ── easter egg ───────────────────────────────────────────────── */
/* le voci finte del menu rispondono */
.mi[role='button'] { cursor: pointer; border-radius: 14px; }
.mi[role='button']:hover { background: var(--bubble); }

/* il "no" senza parole: scuote la testa */
.nope { animation: nope .45s var(--ease); }
@keyframes nope { 0%, 100% { transform: none } 18% { transform: translateX(-7px) } 38% { transform: translateX(6px) } 58% { transform: translateX(-4px) } 78% { transform: translateX(2px) } }

/* il biglietto e il tabellone della home si cliccano */
.scene .paper, .scene .display { cursor: pointer; }
.scene .paper { transition: transform .3s var(--ease); }
.scene .paper:hover { transform: rotate(3deg) translateY(-4px); }
.scene .paper.print { animation: print .5s var(--ease); }
.scene .paper.nope { animation: nope-paper .45s var(--ease); }
@keyframes nope-paper { 0%, 100% { transform: rotate(5deg) } 18% { transform: rotate(5deg) translateX(-7px) } 38% { transform: rotate(5deg) translateX(6px) } 58% { transform: rotate(5deg) translateX(-4px) } 78% { transform: rotate(5deg) translateX(2px) } }
@keyframes print { from { transform: rotate(5deg) translateY(-30px); opacity: .15 } to { transform: rotate(5deg) } }

/* "Prenota": il posto se l'è preso qualcun altro */
.appt .btn:disabled { background: rgba(0,12,31,.07); color: var(--ink-3); }
.appt .btn.nope:disabled { background: rgba(200,16,46,.1); color: var(--red); }
.appt.gone .foot span { color: var(--red); }
.appt.gone .top { opacity: .5; }
.appt.gone .cal b { text-decoration: line-through 2px var(--red); }

/* il Mod. 27-bis in triplice copia (in chat e nel popup) */
.f27 { max-width: 460px; overflow-x: clip; }
.f27 .stack { position: relative; margin-bottom: 40px; }
.sheet {
  border-radius: 4px; background: #fffefa; color: #2a2a2a;
  font: 400 12.5px/1.4 ui-monospace, 'SF Mono', Menlo, monospace;
  box-shadow: 0 14px 30px -18px rgba(0,12,31,.45), 0 0 0 1px rgba(0,12,31,.09);
}
.sheet.back { position: absolute; }
.sheet.b1 { left: 7px; right: 7px; top: 14px; bottom: -14px; background: #fff3b8; }
.sheet.b2 { left: 14px; right: 14px; top: 28px; bottom: -28px; background: #ffd6de; }
.sheet .copy { position: absolute; right: 12px; bottom: 1px; font: 600 8.5px/12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(0,12,31,.5); }
.sheet.front { position: relative; padding: 18px 20px 26px; }
.f-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid #222; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.f-head b { font-weight: 700; }
.sheet h5 { margin: 0 0 14px; font: 400 22px/1.08 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.fl { display: flex; align-items: flex-end; gap: 8px; margin: 0 0 9px; }
.fl > i { flex: 1; min-width: 40px; height: 1em; border-bottom: 1px dotted #777; }
.fl.cf { flex-direction: column; align-items: flex-start; gap: 5px; }
.boxes { display: flex; }
.boxes i { width: 15px; height: 18px; border: 1px solid #8a8a8a; border-left: 0; }
.boxes i:first-child { border-left: 1px solid #8a8a8a; }
.asks { margin: 14px 0 6px; text-align: center; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.sheet li::before { content: '☐'; margin-right: 8px; }
.sheet li.on::before { content: '☒'; }
.f-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-top: 16px; }
.bollo { flex: none; display: grid; place-items: center; width: 76px; height: 88px; padding: 4px; border: 1.5px dashed #999; text-align: center; font-size: 9.5px; line-height: 1.25; color: #777; }
.sign { flex: 1; max-width: 190px; padding-top: 6px; border-top: 1px solid #555; text-align: center; font-size: 10.5px; color: #666; }
.stamp {
  position: absolute; right: 22px; bottom: 56px; display: grid; justify-items: center; padding: 8px 14px 7px;
  border: 3px double var(--red); border-radius: 8px; color: var(--red); mix-blend-mode: multiply;
  transform: rotate(-12deg); animation: stamp .35s cubic-bezier(.2, 1.4, .4, 1) both;
}
.stamp b { font: 900 30px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.stamp small { margin-top: 3px; font: 600 10px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2) } 60% { opacity: 1 } to { opacity: .92; transform: rotate(-12deg) scale(1) } }
.f-go { display: block; width: 100%; max-width: 320px; height: 46px; margin: 0 auto; cursor: pointer; }
.f-go:disabled { cursor: default; opacity: .85; }

/* il popup del modulo (Konami code, Menu → Modulistica) */
.egg-layer {
  position: fixed; inset: 0; z-index: 95; display: flex; overflow-y: auto; padding: 24px 16px;
  background: rgba(0,12,31,.34); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  animation: fade .3s ease-out both;
}
.egg-card {
  position: relative; margin: auto; width: 100%; max-width: 500px; padding: 64px 20px 24px; border-radius: 32px;
  background: radial-gradient(60% 50% at 20% 20%, rgba(255,255,255,.8), transparent 70%), var(--card);
  box-shadow: 0 40px 80px -30px rgba(0,12,31,.55), 0 0 0 1px rgba(0,12,31,.06);
  animation: pop .42s var(--ease) both;
}
.egg-card .f27 { margin: 0 auto; }
.egg-x {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px rgba(0,12,31,.08);
}
.egg-x svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.egg-x:hover { background: var(--bubble); }

@media (max-width: 640px) {
  .sheet.front { padding: 16px 14px 24px; }
  .sheet h5 { font-size: 20px; }
  .stamp { right: 14px; }
  .stamp b { font-size: 26px; }
  .egg-card { padding: 60px 14px 20px; border-radius: 28px; }
}

/* ── telefono ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .disclaimer { height: auto; min-height: 34px; padding: 8px 16px; font-size: 11px; line-height: 1.3; text-align: center; flex-wrap: wrap; gap: 3px; }
  .disclaimer .info { width: 12px; height: 12px; }

  .site { top: 66px; padding: 0 28px; height: 38px; } /* dentro il fondo panna, non attaccata ai bordi */
  .logo { font-size: 21px; gap: 8px; }
  .flag { width: 26px; height: 16px; }
  .menu { height: 38px; padding: 0 16px; font-size: 14px; }

  .home { margin: 0 10px; border-radius: 30px; padding-bottom: 72px; }
  .hero { padding-top: 116px; }
  .hero h1 { font-size: clamp(58px, 17vw, 76px); letter-spacing: -0.02em; }
  .hero .sub { margin-top: 16px; padding: 0 28px; font-size: 17px; line-height: 1.35; }

  .stage { width: auto; margin: 34px 12px 0; }
  .ask-hero { top: 10px; left: 10px; right: 10px; height: 66px; }
  .ask input, .ask .ph { font-size: 16px; }
  .ask input { padding-left: 22px; }
  .ask .ph { left: 22px; right: 96px; }
  .ask .tools { margin-right: 10px; }
  .ask .tools svg:first-child { display: none; }
  .ask .tools svg { width: 20px; height: 20px; }
  .ask .send { width: 42px; height: 42px; margin-right: 12px; }
  .ask .send svg { width: 18px; height: 18px; }

  .scene { height: 360px; border-radius: 28px; }
  .display { left: 14px; top: 104px; width: 200px; padding: 10px 4px 8px; border-radius: 10px; }
  .display::before { left: 34px; } .display::after { right: 34px; }
  .display .lbl { font-size: 7.5px; letter-spacing: .16em; }
  .led { font-size: 46px; }
  .paper { right: 14px; top: 92px; width: 112px; }
  .ticket { --z: 5px; padding: 9px 9px calc(9px + var(--z)); gap: 3px; font-size: 6.8px; }
  .ticket .t-head, .ticket .t-lbl, .ticket .t-foot { font-size: 6px; }
  .ticket b { font-size: 30px; }
  .ticket .t-bar { height: 17px; margin-top: 3px; }

  .manifesto { margin-top: 84px; padding: 0 22px; }
  .manifesto p { font-size: 38px; }
  .facts { grid-template-columns: 1fr; gap: 14px; margin-top: 56px; padding: 0 16px; }
  .facts div { padding: 26px 24px; border-radius: 24px; }
  .facts h2 { font-size: 28px; }
  .facts h2 br { display: none; }

  body.in-chat .site { top: 16px; padding: 0 18px; }
  .thread { top: 70px; bottom: 108px; padding: 22px 18px 30px; }
  .turn-q span { max-width: 86%; font-size: 16px; padding: 12px 18px; border-radius: 24px; }
  .turn-a { font-size: 16px; line-height: 1.55; margin-bottom: 34px; }
  .turn-a h4 { font-size: 16px; }
  .thinking { font-size: 15px; }

  .appt { padding: 16px 16px 14px; border-radius: 22px; }
  .appt .top { gap: 12px; align-items: flex-start; }
  .appt .cal { width: 48px; height: 52px; border-radius: 12px; }
  .appt .cal i { font-size: 10px; line-height: 17px; }
  .appt .cal b { font-size: 23px; line-height: 34px; }
  .appt .when { font-size: 20px; }
  .appt .when small { font-size: 13px; }
  .appt ul { font-size: 14px; margin-top: 12px; padding-top: 12px; }
  .appt .foot { flex-wrap: wrap; }
  .appt .foot span { font-size: 12.5px; }
  .btn { height: 38px; font-size: 14px; }

  .hop p { font-size: 14.5px; }
  .ticket-row > div { padding: 12px 16px 10px; }
  .ticket-row small { font-size: 9px; letter-spacing: .16em; }
  .ticket-row .num { font-size: 38px; }
  .ticket-row .wait { padding: 9px 16px; font-size: 13px; }
  .track { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }

  .ask-dock { width: calc(100% - 24px); height: 62px; bottom: 30px; }
  .chat-note { bottom: 9px; font-size: 10.5px; padding: 0 12px; }
  .legal { margin-top: 56px; padding: 0 22px; font-size: 12.5px; }
  .disclaimer .badge { font-size: 9.5px; }
  .ask-dock input { padding-left: 22px; }
  .ask-dock .ph { left: 22px; }
  .ask-dock .send { width: 38px; height: 38px; margin-right: 12px; }

  .appt .when .dot { display: none; }
  .appt .when .t { display: block; }
  .modal { width: calc(100% - 28px); padding: 26px 20px 20px; border-radius: 28px; }
  .al-led { margin-bottom: 16px; }
  .al-led b { font-size: 34px; }
  .modal h3 { font-size: 28px; }
  .modal p { font-size: 14.5px; }
  .al-btns { margin-top: 20px; }
  .al-btns .btn { height: 46px; font-size: 14.5px; }
  .closing { top: 62px; gap: 8px; padding: 5px 5px 5px 12px; font-size: 13px; }
  .closing svg { width: 16px; height: 16px; }
  .led-chip { font-size: 15px; padding: 6px 9px 5px; }
  body.closing-on .thread { top: 112px; }
  .skip { padding-left: 20px; }
  .skip b { font-size: 15.5px; }
  .skip small { font-size: 12px; }
  .rv-lead { font-size: 17px; margin-top: 16px; }
  /* da telefono la chiusura è uno sheet attaccato sotto, da tirare giù per chiudere */
  .reveal { padding: 36px 0 0; }
  .rv-card { margin: auto 0 0; padding: 40px 20px 0; border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px -30px rgba(0,12,31,.5); animation: sheet .5s var(--ease) backwards; }
  .rv-card::before { content: ''; position: absolute; top: 9px; left: 50%; width: 38px; height: 5px; border-radius: 3px; background: rgba(0,12,31,.16); transform: translateX(-50%); }
  .rv-close { position: sticky; z-index: 2; top: 12px; margin: -28px -6px -10px auto; width: 38px; height: 38px; box-shadow: 0 4px 14px -4px rgba(0,12,31,.3), 0 0 0 1px rgba(0,12,31,.06); }
  .rv-close svg { width: 16px; height: 16px; }
  .rv-tag { margin-bottom: 16px; }
  /* il caffè: la foto e il testo, senza la card bianca intorno */
  .rv-office { grid-template-columns: 1fr; gap: 0; margin-top: 44px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .rv-end { margin-top: 44px; padding-top: 32px; }
  .rv-office .pic { min-height: 0; height: 210px; border-radius: 22px; }
  .coffee { padding: 18px 2px 0; }
  .coffee h3 { font-size: 36px; }
  .coffee p { font-size: 15px; }
  .coffee .cups { width: 100%; margin-top: 12px; }
  .coffee .btn { flex: 1; justify-content: center; height: 52px; }
  /* i servizi come un elenco, non tre scatole */
  .rv-points { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .rv-points div { padding: 18px 2px; border-radius: 0; background: none; border-top: 1px solid rgba(0,12,31,.1); }
  .rv-points div:last-child { border-bottom: 1px solid rgba(0,12,31,.1); }
  .rv-us { margin: 44px -20px 0; padding: 52px 14px calc(28px + env(safe-area-inset-bottom)); border-radius: 0; }
  .us-kick { font-size: 12px; }
  .us-sub { font-size: 16.5px; padding: 0 6px; }
  .rv-work { display: flex; justify-content: center; margin-top: 24px; }
  .rv-points h3 { font-size: 26px; }
  .rv-trust { margin-top: 18px; gap: 6px 16px; }

  .rv-pin { left: 0; right: 0; width: max-content; margin: 0 auto; bottom: 16px; height: 42px; font-size: 13.5px; }
  body.in-chat .rv-pin { bottom: 104px; }
  .menu-panel { top: 46px; right: 26px; }
  body.in-chat .menu-panel { right: 18px; }
}

/* ── ?demo=phone: barra di stato, isola, tondino del tocco ─────── */
body.demo-phone, body.demo-phone * { cursor: none !important; }
.status-bar {
  position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 46px; padding: 0 28px 0 34px;
  display: flex; align-items: center; justify-content: space-between;
  font: 600 15.5px/1 var(--sans); color: var(--ink); letter-spacing: -0.01em; pointer-events: none;
}
.status-bar .island { position: absolute; left: 50%; top: 11px; width: 112px; height: 32px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.status-bar .icons { display: flex; align-items: center; gap: 6px; }
.status-bar svg { height: 11px; width: auto; fill: var(--ink); }
.status-bar .battery { position: relative; width: 24px; height: 12px; border: 1.4px solid rgba(0,12,31,.45); border-radius: 4px; padding: 1.5px; }
.status-bar .battery::after { content: ''; position: absolute; right: -4px; top: 3.5px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: rgba(0,12,31,.45); }
.status-bar .battery i { display: block; height: 100%; width: 22%; border-radius: 2px; background: var(--red); }
.home-indicator { position: fixed; z-index: 60; left: 50%; bottom: 7px; width: 132px; height: 5px; border-radius: 3px; background: #000; transform: translateX(-50%); pointer-events: none; }

body.demo-phone .disclaimer { margin-top: 46px; }
body.demo-phone .site { top: 98px; }
body.demo-phone.in-chat .site { top: 56px; }
body.demo-phone .thread { top: 108px; bottom: 120px; }
body.demo-phone .closing { top: 102px; }
body.demo-phone.closing-on .thread { top: 152px; }
body.demo-phone .ask-dock { bottom: 42px; }
body.demo-phone .chat-note { bottom: 22px; }

/* il tondino di Chrome DevTools in modalità mobile */
.touch {
  position: fixed; z-index: 80; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .2s;
  background: rgba(118,118,128,.34); border: 1.5px solid rgba(255,255,255,.8);
  box-shadow: 0 1px 8px rgba(0,0,0,.22);
}
.touch.on { opacity: 1; }
.touch::after { content: ''; position: absolute; inset: -1.5px; border-radius: 50%; background: rgba(60,60,67,0); transition: background .12s, transform .12s; }
.touch.down::after { background: rgba(60,60,67,.38); transform: scale(.8); }
.tap-ring { position: fixed; z-index: 79; left: 0; top: 0; width: 36px; height: 36px; margin: -18px 0 0 -18px; pointer-events: none; }
.tap-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(118,118,128,.55); animation: ring .5s ease-out both; }
@keyframes ring { from { transform: scale(1); opacity: 1 } to { transform: scale(2.2); opacity: 0 } }
