:root {
  --green: #15803d; --green-dark: #166534; --green-soft: #dcfce7;
  --ink: #14211a; --muted: #5b6b61; --line: #e2e8e4; --bg: #f6f8f6; --card: #fff;
  --warn: #b45309; --warn-bg: #fef3c7; --err: #b91c1c; --err-bg: #fee2e2;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--green-dark); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--green-dark); }
nav { display: flex; gap: 14px; flex-wrap: wrap; margin-left: auto; align-items: center; }
nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
nav a:hover { color: var(--green); }
nav form { display: inline; }
main { padding: 28px 0 60px; min-height: 70vh; }
h1 { font-size: 1.7rem; margin: 0 0 14px; } h2 { font-size: 1.2rem; margin: 26px 0 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } .g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.btn, button { display: inline-block; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover, button:hover { background: var(--green-dark); }
.btn.ghost, button.ghost { background: transparent; color: var(--green-dark); border: 1px solid var(--green); }
.btn.danger, button.danger { background: var(--err); }
.btn.sm, button.sm { padding: 5px 12px; font-size: .9rem; }
.linkbtn { background: none; color: var(--ink); padding: 0; font-weight: 500; }
.linkbtn:hover { background: none; color: var(--green); }
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .92rem; }
input, select { width: 100%; padding: 10px 12px; border: 1px solid #cbd5cf; border-radius: 10px; font: inherit; background: #fff; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1 1 140px; }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.alert.ok { background: var(--green-soft); color: var(--green-dark); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.error { background: var(--err-bg); color: var(--err); }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .8rem; text-transform: uppercase; color: var(--muted); background: #fafcfb; }
.tablewrap { overflow-x: auto; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 600; background: #e5e7eb; }
.badge.confirmed, .badge.active, .badge.trial, .badge.gift { background: var(--green-soft); color: var(--green-dark); }
.badge.cancelled, .badge.rejected, .badge.expired { background: var(--err-bg); color: var(--err); }
.badge.pending { background: var(--warn-bg); color: var(--warn); }
.hero { padding: 54px 0 34px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 24px; }
.price { font-size: 2rem; font-weight: 800; } .price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { text-align: center; padding: 9px 4px; border-radius: 10px; font-weight: 600; font-size: .92rem; text-decoration: none; border: 1px solid var(--green); color: var(--green-dark); background: #fff; }
a.slot:hover { background: var(--green-soft); }
.slot.taken, .slot.past, .slot.closed { border-color: var(--line); color: #9ca3af; background: #f3f4f6; text-decoration: line-through; }
.datebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.datebar input { width: auto; }
.stat { font-size: 1.8rem; font-weight: 800; }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .9rem; text-align: center; }
.qr svg { max-width: 100%; height: auto; }
.prose { max-width: 820px; margin: 0 auto 16px; } .prose h2 { font-size: 1.1rem; margin-top: 22px; } .prose li { margin-bottom: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; }
.check input { width: auto; margin-top: 4px; }
@media print { header.top, footer, .noprint { display: none; } }

/* ===== Landing / grafica ===== */
:root { --deep: #052e1a; --lime: #bef264; }
header.top { backdrop-filter: saturate(1.4) blur(8px); background: rgba(255,255,255,.88); }
.btn.lg { padding: 14px 26px; font-size: 1.05rem; border-radius: 12px; }
.btn.light { background: #fff; color: var(--green-dark); } .btn.light:hover { background: var(--green-soft); }
.btn.outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); } .btn.outline-light:hover { background: rgba(255,255,255,.12); }
.bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero2 { background: radial-gradient(1200px 500px at 80% -10%, #16a34a55, transparent 60%), linear-gradient(160deg, var(--deep), #14532d 70%); color: #fff; padding: 64px 0 72px; margin-top: -28px; overflow: hidden; }
.hero2 .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero2 h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -.02em; }
.hero2 h1 em { font-style: normal; color: var(--lime); }
.hero2 p.lead { font-size: 1.18rem; color: #d1fae5; max-width: 520px; margin: 0 0 26px; }
.hero2 .pill { display: inline-block; background: rgba(190,242,100,.15); color: var(--lime); border: 1px solid rgba(190,242,100,.35); padding: 4px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: .9rem; color: #a7f3d0; }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art .phone { transform: rotate(3deg); }
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 8px; padding: 20px 16px; text-align: center; }
.strip b { display: block; font-size: 1.5rem; color: var(--green-dark); } .strip span { color: var(--muted); font-size: .9rem; }
section.block { padding: 60px 0 10px; }
.sec-title { text-align: center; margin-bottom: 34px; }
.sec-title h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 8px; letter-spacing: -.01em; } .sec-title p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.phones { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; align-items: flex-start; }
.phone-wrap { text-align: center; max-width: 270px; } .phone-wrap h3 { margin: 16px 0 4px; font-size: 1.05rem; } .phone-wrap p { margin: 0; color: var(--muted); font-size: .92rem; }
.phone { width: 252px; background: #fff; border: 9px solid #0f172a; border-radius: 36px; overflow: hidden; box-shadow: 0 24px 50px -18px rgba(5,46,26,.55); text-align: left; font-size: 13px; line-height: 1.4; color: var(--ink); position: relative; }
.phone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 70px; height: 16px; margin-left: -35px; background: #0f172a; border-radius: 99px; z-index: 2; }
.ph-bar { background: var(--green); color: #fff; padding: 30px 14px 12px; font-weight: 700; }
.ph-bar small { display: block; font-weight: 400; opacity: .85; font-size: 11px; }
.ph-body { padding: 12px 12px 16px; background: var(--bg); min-height: 360px; }
.ph-date { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-weight: 600; margin-bottom: 10px; }
.ph-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.ph-card b { display: block; } .ph-card .m { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.ph-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.ph-slots i { font-style: normal; text-align: center; padding: 6px 0; border-radius: 8px; font-weight: 600; font-size: 12px; border: 1px solid var(--green); color: var(--green-dark); }
.ph-slots i.x { border-color: var(--line); color: #9ca3af; background: #f3f4f6; text-decoration: line-through; }
.ph-slots i.sel { background: var(--green); color: #fff; }
.ph-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); } .ph-row:last-child { border: 0; }
.ph-row.tot { font-weight: 800; font-size: 15px; }
.ph-btn { background: #ffc439; color: #111; text-align: center; border-radius: 99px; padding: 10px; font-weight: 800; margin-top: 10px; }
.ph-btn.g { background: var(--green); color: #fff; }
.ph-ok { text-align: center; padding: 14px 6px 4px; } .ph-ok .tick { width: 46px; height: 46px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 26px; font-weight: 800; }
.ph-wallet { background: linear-gradient(135deg, var(--green), #15803d 60%, #0f766e); color: #fff; border-radius: 14px; padding: 12px; margin-bottom: 10px; } .ph-wallet small { opacity: .85; } .ph-wallet strong { display: block; font-size: 24px; }
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.feat .card { margin: 0; transition: transform .15s, box-shadow .15s; } .feat .card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(5,46,26,.35); }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 12px; }
.feat h3 { margin: 0 0 6px; font-size: 1.05rem; } .feat p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps-h { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 18px; counter-reset: s; }
.steps-h .st { position: relative; padding: 22px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.steps-h .st::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 18px; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps-h h3 { margin: 6px 0 4px; font-size: 1.05rem; } .steps-h p { margin: 0; color: var(--muted); font-size: .95rem; }
.plan { text-align: center; } .plan.hot { border: 2px solid var(--green); position: relative; }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 12px; border-radius: 99px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0; color: var(--muted); font-size: .95rem; text-align: left; } .plan li { padding: 4px 0 4px 24px; position: relative; } .plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; } details.faq summary { cursor: pointer; font-weight: 600; } details.faq p { margin: 10px 0 0; color: var(--muted); }
.cta-band { background: linear-gradient(160deg, var(--deep), #14532d); color: #fff; border-radius: 20px; padding: 44px 24px; text-align: center; margin: 50px 0 10px; } .cta-band h2 { margin: 0 0 8px; font-size: 1.8rem; } .cta-band p { color: #d1fae5; margin: 0 0 20px; }
ol.steps { padding-left: 20px; } ol.steps li { margin-bottom: 6px; }
@media (max-width: 820px) { .hero2 .wrap { grid-template-columns: 1fr; text-align: center; } .hero2 p.lead { margin-left: auto; margin-right: auto; } .hero-cta { justify-content: center; } .hero-art { margin-top: 10px; } nav { margin-left: 0; } }
body { overflow-x: hidden; }
.slot small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); line-height: 1.2; }
button.slot { font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; width: 100%; }
.slot.taken.wl { text-decoration: none; background: #fff; color: #6b7280; border-style: dashed; border-color: #cbd5cf; } .slot.taken.wl:hover { background: var(--green-soft); }
.dayc { display: inline-flex; align-items: center; gap: 4px; margin: 0 10px 6px 0; font-weight: 500; } .dayc input { width: auto; }

/* ===== Logo e sezione plus ===== */
.brand { display: flex; align-items: center; } .brand img { height: 44px; width: auto; display: block; }
header.top .wrap { min-height: 64px; }
.pill-g { display: inline-block; background: var(--green-soft); color: var(--green-dark); font-weight: 700; font-size: .8rem; padding: 4px 14px; border-radius: 99px; margin-bottom: 12px; letter-spacing: .04em; text-transform: uppercase; }
.plus { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.plus.rev .plus-text { order: 2; } .plus.rev .plus-art { order: 1; }
.plus-text h3 { font-size: 1.45rem; margin: 0 0 8px; letter-spacing: -.01em; line-height: 1.25; } .plus-text > p { color: var(--muted); margin: 0 0 12px; }
ul.tick { list-style: none; padding: 0; margin: 0; } ul.tick li { position: relative; padding: 7px 0 7px 30px; } ul.tick li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.plus-art { display: flex; justify-content: center; }
.pm { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; width: 100%; max-width: 360px; box-shadow: 0 24px 50px -22px rgba(5,46,26,.45); }
.pm > b { display: block; margin-bottom: 10px; }
.pm-opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.pm-opt .dot { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #cbd5cf; margin-top: 3px; }
.pm-opt b { display: block; font-size: .95rem; } .pm-opt small { color: var(--muted); }
.pm-opt.on { border: 2px solid var(--green); background: #f0fdf4; } .pm-opt.on .dot { border-color: var(--green); background: radial-gradient(circle, var(--green) 45%, transparent 50%); }
.pm-foot { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pm-btn { border: 1px solid var(--green); color: var(--green-dark); border-radius: 10px; padding: 3px 10px; font-size: .85rem; font-weight: 600; }
@media (max-width: 820px) { .plus { grid-template-columns: 1fr; gap: 24px; } .plus.rev .plus-text, .plus.rev .plus-art { order: initial; } .brand img { height: 38px; } }

/* logo: ritaglio dei margini bianchi dell'immagine */
.brand { height: 52px; overflow: hidden; }
.brand img { height: 92px; width: auto; margin: -20px 0 -20px -6px; max-width: none; }
@media (max-width: 820px) { .brand { height: 44px; } .brand img { height: 78px; margin: -17px 0 -17px -5px; } }

/* ===== Vetrina, QR, ricerca campi ===== */
.qrgrid { display: grid; grid-template-columns: 1fr 440px; gap: 28px; align-items: start; }
textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5cf; border-radius: 10px; font: inherit; background: #fff; resize: vertical; }
input[type=file] { padding: 8px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.vhead { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.vhead img { max-height: 72px; max-width: 200px; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 4px; }
.vcard { display: flex; gap: 14px; align-items: center; }
.vcard .vlogo { flex: none; width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); background: #fff; object-fit: contain; display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; }
.vcard .vlogo img { width: 100%; height: 100%; object-fit: contain; }
.vcard h3 { margin: 0 0 2px; font-size: 1.05rem; } .vcard p { margin: 0; color: var(--muted); font-size: .92rem; }
#scanwrap { position: relative; max-width: 460px; margin: 0 auto; border-radius: 16px; overflow: hidden; background: #0f172a; aspect-ratio: 1; }
#scanwrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
#scanwrap .frame { position: absolute; inset: 18%; border: 4px solid rgba(190,242,100,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
@media (max-width: 900px) { .qrgrid { grid-template-columns: 1fr; } }
@media print {
  body { background: #fff; } main { padding: 0; } main .wrap { max-width: none; padding: 0; }
  .qrgrid { display: block; } #poster { max-width: 100% !important; width: 100% !important; border: 0 !important; }
}

/* intestazione: fissa solo per i visitatori (i pannelli hanno molti link e occupano più righe) */
header.top { position: static; } header.top.sticky { position: sticky; top: 0; }
header.top nav { gap: 6px 14px; font-size: .95rem; }

/* =====================================================================
   WEBAPP / MOBILE  (ultima sezione: ha la precedenza sulle precedenti)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
a, button, summary, label, input, select, textarea { touch-action: manipulation; }

/* controlli comodi da toccare (iOS non fa zoom con testo da 16px) */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]), select { font-size: 16px; min-height: 46px; }
textarea { font-size: 16px; min-height: 96px; }
input[type=checkbox], input[type=radio] { width: 22px !important; height: 22px; min-height: 0; flex: none; accent-color: var(--green); }
.btn, button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.btn.sm, button.sm { min-height: 38px; }
button.linkbtn { min-height: 0; display: inline; }
.check { padding: 6px 0; }
.bar { display: flex; align-items: center; gap: 12px; }
.who, .mob-cta { display: none; }
.who { font-size: .9rem; color: var(--muted); margin-left: auto; font-weight: 600; }

/* barra in basso e menu «Altro» (visibili solo da telefono) */
.tabbar { display: none; }
.sheet { display: none; }
.a2hs { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 45; background: #0f1f17; color: #fff; border-radius: 14px; padding: 10px 12px; display: flex; gap: 8px; align-items: center; font-size: .88rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.a2hs[hidden] { display: none; }
.a2hs span { flex: 1; line-height: 1.3; }
.a2hs .ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.noscroll { overflow: hidden; }

@media (max-width: 820px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 14px; }
  header.top { padding-top: env(safe-area-inset-top); }
  header.top .wrap { min-height: 54px; flex-wrap: nowrap; gap: 8px; }
  header.top nav.desk { display: none; }
  .who { display: block; }
  .mob-cta { display: inline-flex; margin-left: auto; white-space: nowrap; }
  .brand { height: 44px; flex: none; }
  .brand img { height: 78px; margin: -17px 0 -17px -5px; }
  main { padding: 16px 0 24px; min-height: 0; }
  h1 { font-size: 1.45rem; margin-bottom: 10px; }
  h2 { font-size: 1.1rem; margin: 20px 0 8px; }
  .card { padding: 16px; border-radius: 16px; margin-bottom: 12px; }
  .alert { font-size: .95rem; }

  /* barra di navigazione in basso */
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a, .tabbar button { position: relative; flex: 1 1 0; min-width: 0; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; background: none; border: 0; border-radius: 0; color: #6b7a71; font-size: 11px; font-weight: 600; text-decoration: none; letter-spacing: .01em; }
  .tabbar button:hover { background: none; }
  .tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .tabbar .on { color: var(--green); }
  .tabbar .on svg { stroke-width: 2.4; }
  .tabbar .on::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 4px 4px; background: var(--green); }
  .tabbar .dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: #dc2626; color: #fff; font-size: 10px; font-style: normal; line-height: 17px; text-align: center; }

  /* foglio «Altro» */
  .sheet.open { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45); }
  .sheet .panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 22px 22px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; animation: up .18s ease-out; }
  .sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: #d1d5db; margin: 4px auto 10px; }
  .sheet-who { display: flex; flex-direction: column; padding: 4px 0 8px; }
  .sheet a { display: block; padding: 15px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
  @keyframes up { from { transform: translateY(40px); opacity: .5; } to { transform: none; opacity: 1; } }

  /* moduli: un campo per riga, pulsanti a tutta larghezza */
  .row { flex-direction: column; gap: 4px; }
  .row > * { flex: 1 1 auto !important; width: 100%; }
  .row.keep { flex-direction: row; gap: 8px; }
  .row.keep > * { width: auto; flex: 1 1 0 !important; min-width: 0; }
  form button:not(.sm):not(.linkbtn):not(.slot), form .btn:not(.sm) { width: 100%; }
  .datebar { gap: 8px; flex-wrap: nowrap; }
  .datebar input { flex: 1; min-width: 0; width: auto; }
  .share .btn, .share button { flex: 1 1 calc(50% - 8px); }

  /* tabelle -> schede */
  .tablewrap { overflow: visible; }
  table.rt { background: none; border-radius: 0; }
  table.rt tr.rt-head { display: none; }
  table.rt, table.rt tbody, table.rt tr, table.rt td { display: block; }
  table.rt tr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 10px; }
  table.rt td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; border: 0; border-bottom: 1px dashed var(--line); text-align: right; word-break: break-word; }
  table.rt td:last-child { border-bottom: 0; }
  table.rt td::before { content: attr(data-label); flex: none; max-width: 40%; text-align: left; color: var(--muted); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
  table.rt td:empty { display: none; }
  table.rt td > form, table.rt td > a.btn { margin-left: auto; }

  /* prenotazione */
  .slots { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .slot { padding: 12px 4px; font-size: 1rem; }
  .vhead { gap: 10px; }
  .stat { font-size: 1.5rem; }
  .price { font-size: 1.7rem; }

  /* landing */
  .hero2 { padding: 24px 0 36px; margin-top: -16px; }
  .hero2 .wrap { text-align: left; gap: 24px; }
  .hero2 h1 { font-size: 2rem; }
  .hero2 p.lead { font-size: 1.05rem; margin-left: 0; }
  .hero-cta { flex-direction: column; } .hero-cta .btn { width: 100%; }
  .hero-note { text-align: center; }
  .hero-art .phone { transform: none; }
  .phone { width: min(262px, 78vw); }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  section.block { padding-top: 40px; }
  .sec-title { margin-bottom: 22px; }
  .cta-band { border-radius: 18px; padding: 30px 18px; }
  .feat { grid-template-columns: 1fr; }
  .phones { gap: 34px; }

  footer { padding: 18px 0 6px; font-size: .8rem; }
}
@media (max-width: 380px) {
  .tabbar span { font-size: 10px; }
  .hero2 h1 { font-size: 1.75rem; }
}

/* app installata: niente footer legale (è nel menu «Altro») */
@media (display-mode: standalone) and (max-width: 820px) { footer { display: none; } }

/* contenuto delle celle-scheda */
@media (max-width: 820px) {
  table.rt td .cell { flex: 1; min-width: 0; text-align: right; }
  table.rt td .cell form { display: inline-block; margin: 2px 0 2px 4px; }
  table.rt td .cell .btn, table.rt td .cell button { width: auto; }
  table.rt td:empty, table.rt td:has(.cell:empty) { display: none; }
}
@media (max-width: 900px) { .qrgrid > div:last-child { order: -1; } }

/* logo compatto in intestazione su telefono */
@media (max-width: 820px) {
  .brand { height: 38px; }
  .brand img { height: 66px; margin: -14px 0 -14px -4px; }
  .mob-cta { font-size: .85rem; padding: 6px 12px; }
}
@media (max-width: 380px) {
  .brand img { height: 58px; margin: -12px 0 -12px -4px; }
  .who { font-size: .8rem; }
}
