/* =========================================================
   REDHAWK — area personale, carrello, staff, admin
   (usa i colori e i font definiti in style.css)
   ========================================================= */
:root { --ok: #3fcf5c; --warn: #ffa31a; --card-bg: #262524; }
[hidden] { display: none !important; }

/* ---------- Layout pagine app ---------- */
.app-page { min-height: 100vh; min-height: 100dvh; }
.apptop {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  background: rgba(28, 27, 26, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.apptop .nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .02em; text-transform: uppercase; }
.apptop .nav__brand b { color: var(--red-hot); font-weight: 400; }
.apptop .nav__brand small { font-family: var(--f-game); font-size: .7rem; letter-spacing: .18em; color: var(--muted); margin-left: 6px; }
.apptop__right { display: flex; align-items: center; gap: 6px; }
.apptop__link { padding: .55em 1em; border-radius: 999px; font-family: var(--f-game); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid transparent; }
.apptop__link:hover { color: #fff; border-color: var(--line-2); }
@media (max-width: 520px) {
  #who, .apptop .nav__brand small { display: none; }
  .apptop .nav__brand { font-size: 1.3rem; }
  .apptop .nav__brand img { width: 34px; height: 34px; }
}
.appmain { width: min(1180px, 100% - 32px); margin: 0 auto; padding: clamp(24px, 5vw, 56px) 0 80px; }
.loading { text-align: center; color: var(--muted); padding: 80px 0; font-family: var(--f-game); letter-spacing: .15em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--f-game); letter-spacing: .12em; }

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; }
.form[hidden] { display: none; }
.form__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.form__sub { margin: 14px 0 0; font-family: var(--f-game); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form__text { margin: 0; color: var(--muted); }
.form__err { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(224, 20, 15, .12); border: 1px solid rgba(224, 20, 15, .4); color: #ffc2bd; font-size: .92rem; }
.form__err:empty, .form__err[hidden] { display: none; }
.field { display: grid; gap: 6px; }
.field > span { font-family: var(--f-game); font-weight: 600; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field em { text-transform: none; letter-spacing: 0; font-style: normal; opacity: .7; }
.field__hint { color: var(--muted); font-size: .8rem; }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--text); font: 500 1rem var(--f-body); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: #2f2d2c; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--red-hot); background: rgba(255, 255, 255, .07); }
.field input:disabled { opacity: .55; }
.pw { position: relative; display: block; }
.pw input { padding-right: 48px; }
.pw__eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 8px; opacity: .6; }
.pw__eye:hover { opacity: 1; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: #ddd6d0; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red-hot); }
.check a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.check em { color: var(--muted); font-style: normal; }
.linkbtn { justify-self: center; padding: 8px; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: #fff; }
.linkbtn--danger { color: #ff8a82; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn--sm { padding: .55em 1em; font-size: .8rem; }

/* segment control */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); margin-bottom: 18px; }
.seg[hidden] { display: none; }
.seg__btn { padding: .7em 1em; border-radius: 999px; font-family: var(--f-game); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: .2s; }
.seg__btn.is-on { background: var(--red); color: #fff; box-shadow: 0 6px 20px -8px var(--red-glow); }

/* ---------- Accesso ---------- */
.auth { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 70px); align-items: center; min-height: calc(100vh - 200px); }
.auth[hidden] { display: none; }
.auth__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .9; text-transform: uppercase; }
.auth__lead { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 18px 0 26px; }
.auth__demo .stamps { max-width: 420px; transform: rotate(-3deg); }
.auth__box { padding: clamp(20px, 4vw, 34px); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); }
.social { display: grid; gap: 10px; justify-items: center; margin-bottom: 6px; }
.social[hidden] { display: none; }
.social__google { min-height: 44px; }
.social__apple { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 300px; max-width: 100%; height: 44px; border-radius: 999px; background: #fff; color: #000; font-weight: 600; }
.social__apple svg { width: 18px; height: 18px; fill: currentColor; }
.social__or { width: 100%; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 8px 0 4px; }
.social__or::before, .social__or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__demo { display: none; }
  .auth__lead { margin-bottom: 0; }
}

/* ---------- Timbri ---------- */
.stamps { --per: 10; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 2vw, 14px); }
.stamp { position: relative; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.22); background: rgba(255,255,255,.035); }
.stamp__n { font-family: var(--f-game); font-weight: 700; font-size: clamp(.8rem, 2.4vw, 1rem); color: rgba(255,255,255,.4); }
.stamp.gift { border-color: rgba(255,255,255,.75); border-style: solid; }
.stamp.gift .stamp__n { font-size: clamp(1rem, 3vw, 1.4rem); color: #fff; }
.stamp.on { border: 2px solid #ff5a4f; background: radial-gradient(circle at 35% 30%, #ff3a2f, var(--red) 70%); box-shadow: 0 6px 20px -6px var(--red-glow), inset 0 -4px 10px rgba(0,0,0,.25); }
.stamp.on .stamp__n { display: none; }
.stamp__ink { width: 70%; height: 70%; object-fit: contain; transform: rotate(-12deg); filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.stamp.on:nth-child(even) .stamp__ink { transform: rotate(9deg); }
.stamp.fresh { animation: stampIn .7s var(--ease-out) both; animation-delay: calc(var(--i) * 140ms); }
@keyframes stampIn {
  0% { transform: scale(2.2) rotate(-25deg); opacity: 0; }
  55% { transform: scale(.88) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

/* ---------- Card (pass) ---------- */
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.dash__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: .95; text-transform: uppercase; }
.dash__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 44px); align-items: start; }
.dash__side { display: grid; gap: 16px; }
@media (max-width: 920px) { .dash__grid { grid-template-columns: 1fr; } }
.bell { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; flex: none; }
.bell svg { width: 22px; height: 22px; fill: currentColor; }
.bell i { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--red-hot); box-shadow: 0 0 0 3px var(--bg); }

.pass-wrap { position: sticky; top: 90px; }
@media (max-width: 920px) { .pass-wrap { position: static; } }
.pass { perspective: 1400px; cursor: pointer; outline: none; }
.pass__inner { position: relative; display: grid; transition: transform .8s var(--ease-out); transform-style: preserve-3d; }
.pass.flipped .pass__inner { transform: rotateY(180deg); }
.pass__face {
  grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; overflow: hidden; position: relative;
  padding: clamp(18px, 4vw, 28px); display: flex; flex-direction: column; gap: clamp(16px, 3vw, 22px);
  background: radial-gradient(120% 90% at 100% 0%, rgba(224,20,15,.35), transparent 55%), linear-gradient(150deg, #34312f, #1f1e1d 70%);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
}
.pass__front::before { content: "RH"; position: absolute; right: -10px; bottom: -40px; font-family: var(--f-display); font-size: 13rem; line-height: 1; color: rgba(255,255,255,.04); pointer-events: none; }
.pass__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.08) 48%, transparent 60%); transform: translateX(-100%); animation: sheen 6s 1s infinite; pointer-events: none; }
@keyframes sheen { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.pass.focus-visible, .pass:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 6px; border-radius: 26px; }
.pass__top { display: flex; align-items: center; gap: 12px; }
.pass__top b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; line-height: 1; letter-spacing: .02em; }
.pass__top small { font-family: var(--f-game); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pass__chip { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--red); font-family: var(--f-game); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; animation: pulse 2s infinite; }
.pass__bottom { display: flex; justify-content: space-between; gap: 12px; }
.pass__bottom small { display: block; font-family: var(--f-game); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pass__bottom b { font-size: 1.05rem; font-weight: 600; }
.pass__bottom .r { text-align: right; }
.pass__back { position: absolute; inset: 0; transform: rotateY(180deg); align-items: center; justify-content: center; text-align: center; background: #fff; color: #282726; gap: 8px; padding: 16px; }
.pass__back canvas { height: min(68%, 300px); width: auto; aspect-ratio: 1; }
.pass__back p { margin: 0; font-size: 1.15rem; font-weight: 700; }
.pass__back small { color: #6b6460; }
.pass.has-reward .pass__front { border-color: rgba(255,255,255,.45); box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 40px 80px -30px rgba(224,20,15,.6); }
.pass__hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 12px 0 0; }
.pass__progress { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px; margin: 14px 0 0; font-size: 1.05rem; text-align: center; }
.pass__progress b { font-family: var(--f-game); font-size: 1.2rem; }
.pass__progress span { color: var(--muted); }
.pass__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.wallet { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 12px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); text-align: left; }
.wallet svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.wallet span { display: grid; line-height: 1.1; font-weight: 600; font-size: .95rem; }
.wallet small { font-size: .66rem; font-weight: 400; opacity: .8; }
.wallet:disabled { opacity: .45; cursor: not-allowed; }
.wallet[hidden] { display: none; }
.wallets--one { grid-template-columns: 1fr; }
.wallets[hidden] { display: none; }
.home-steps { list-style: none; margin: 12px 0 0; padding: 14px; display: grid; gap: 10px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.home-steps[hidden] { display: none; }
.home-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.35; }
.home-steps li > span { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--red, #AA0505); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.home-steps svg { width: 16px; height: 16px; fill: currentColor; vertical-align: -3px; }
.wallets__note { color: var(--muted); font-size: .82rem; text-align: center; margin: 10px 0 0; }

/* pannelli */
.panel { padding: 20px; border-radius: 18px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.panel p { margin: .6em 0; color: #ddd6d0; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel__title { margin: 0 0 6px; font-family: var(--f-game); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; }
details.panel > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details.panel > summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); }
details.panel[open] > summary::after { content: "−"; }
details.panel .form { margin-top: 14px; }
#rewardPanel { background: linear-gradient(135deg, var(--red), #6d0303); border-color: #ff5a4f; }
#rewardPanel p { color: #fff; }
#rewardPanel .btn--red { background: #fff; color: var(--red); --b: #fff; }
.howto { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 8px; color: #ddd6d0; }
.howto li::marker { color: var(--red-hot); font-family: var(--f-game); font-weight: 700; }
.danger { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }

/* timeline */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; max-height: 420px; overflow: auto; }
.tl { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.tl:last-child { border-bottom: 0; }
.tl__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-game); font-weight: 700; font-size: .9rem; background: rgba(255,255,255,.06); }
.tl.plus .tl__ic { background: rgba(224,20,15,.18); color: #ff8a82; }
.tl.redeem .tl__ic { background: #fff; }
.tl__txt { display: grid; min-width: 0; }
.tl__txt b { font-weight: 600; }
.tl__txt small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl time { color: var(--muted); font-size: .78rem; text-align: right; }
.tl.unread .tl__txt b::after { content: " •"; color: var(--red-hot); }

/* bottom sheet */
.sheet { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.7); backdrop-filter: blur(6px); }
.sheet__panel { position: relative; width: min(560px, 100% - 24px); max-height: 85vh; overflow: auto; padding: 26px 22px; border-radius: 22px; background: #262524; border: 1px solid var(--line-2); animation: sheetIn .4s var(--ease-out); }
@keyframes sheetIn { from { transform: translateY(30px); opacity: 0; } }
@media (max-width: 640px) {
  .sheet { place-items: end center; }
  .sheet__panel { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* QR a schermo intero */
.qrfull { position: fixed; inset: 0; z-index: 300; background: #fff; color: #282726; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.qrfull[hidden] { display: none; }
.qrfull canvas { width: min(86vw, 62vh, 460px); height: auto; aspect-ratio: 1; }
.qrfull p { margin: 0; font-size: 1.5rem; font-weight: 700; }
.qrfull small { color: #6b6460; }
.qrfull .modal__close { position: fixed; top: max(14px, env(safe-area-inset-top)); color: #fff; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 400; display: grid; gap: 8px; width: min(440px, 100% - 24px); pointer-events: none; }
.toast { padding: 13px 16px; border-radius: 14px; background: #f4f1ee; color: #1c1b1a; font-weight: 600; box-shadow: 0 16px 40px -10px rgba(0,0,0,.6); opacity: 0; transform: translateY(14px); transition: .35s var(--ease-out); }
.toast.in { opacity: 1; transform: none; }
.toast--err { background: var(--red-hot); color: #fff; }

/* =========================================================
   SITO: account in nav, carrello, opzioni nel modal, fedeltà
   ========================================================= */
.nav__icons { display: flex; align-items: center; gap: 6px; }
.nav__icon { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); transition: background .2s, border-color .2s; }
.nav__icon:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.nav__icon svg { width: 20px; height: 20px; fill: currentColor; }
.nav__icon .ini { font-family: var(--f-game); font-weight: 700; font-size: .95rem; }
.nav__icon.is-in { background: var(--red); border-color: var(--red); }
@media (max-width: 1100px) { .nav__icons { margin-left: auto; } .nav__icons + .nav__cta { margin-left: 0; } }
@media (max-width: 480px) {
  .nav { gap: 6px !important; }
  .nav__icons { gap: 6px; }
  .nav__icon, .nav__cta, .nav__burger { width: 40px !important; height: 40px !important; }
  .nav__burger span { left: 11px; right: 11px; }
  .nav__brand { gap: 6px !important; }
  .nav__brand img { width: 34px; height: 34px; }
}
@media (max-width: 370px) { .nav__brand > span { display: none; } }
.nav__badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #fff; color: var(--red); font: 700 .72rem/20px var(--f-game); text-align: center; }
.nav__badge[hidden] { display: none; }
.nav__badge.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* opzioni d'acquisto nel modal prodotto */
.buy { display: grid; gap: 10px; margin: 6px 0 14px; }
.buy__label { font-family: var(--f-game); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.buy__opts { display: grid; gap: 8px; }
.bopt { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); cursor: pointer; transition: border-color .2s, background .2s; }
.bopt input { accent-color: var(--red-hot); width: 18px; height: 18px; margin: 0; }
.bopt b { font-family: var(--f-game); }
.bopt small { display: block; color: var(--muted); font-size: .8rem; }
.bopt:has(input:checked) { border-color: var(--red-hot); background: rgba(224,20,15,.1); }
.bopt.stamp-hint > span > b::after { content: " +1 timbro"; font-size: .7rem; color: #ff8a82; margin-left: 6px; letter-spacing: .04em; white-space: nowrap; }
.buy__sub { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px dashed var(--line-2); }
.buy__sub[hidden] { display: none; }
.buy__sub .field select { min-height: 42px; padding-top: 8px; padding-bottom: 8px; }
.buy__ups { display: flex; flex-wrap: wrap; gap: 6px; }
.upchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .85rem; cursor: pointer; }
.upchip input { accent-color: var(--red-hot); margin: 0; }
.upchip:has(input:checked) { border-color: var(--red-hot); background: rgba(224,20,15,.12); }
.soldout-note { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.06); color: #ffc2bd; font-weight: 600; }
.card.is-soldout .card__media img { filter: grayscale(1) brightness(.6); }
.badge--out { background: #fff !important; color: var(--red) !important; }

/* carrello */
.cart { position: fixed; inset: 0; z-index: 160; }
.cart[hidden] { display: none; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(10,10,10,.6); backdrop-filter: blur(4px); animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.cart__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(460px, 100%); display: flex; flex-direction: column;
  background: #232221; border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -20px rgba(0,0,0,.7); animation: cartIn .45s var(--ease-out);
}
@keyframes cartIn { from { transform: translateX(100%); } }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart__head h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2rem; text-transform: uppercase; line-height: 1; }
.cart__head .modal__close { position: static; }
.cart__body { flex: 1; overflow: auto; padding: 14px 20px 20px; display: grid; align-content: start; gap: 14px; }
.cart__foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #1f1e1d; display: grid; gap: 10px; }
.cart__empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.cart__empty b { display: block; font-size: 3rem; margin-bottom: 8px; }
.citems { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.citem { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.citem__name { font-weight: 600; }
.citem__name .tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(224,20,15,.18); color: #ff8a82; font: 700 .64rem var(--f-game); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.citem__det { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; margin-top: -2px; }
.citem__price { font-family: var(--f-game); font-weight: 700; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; }
.qty button:hover { background: rgba(255,255,255,.08); }
.qty span { min-width: 22px; text-align: center; font-family: var(--f-game); font-weight: 700; }
.citem__row { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.loyal { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(224,20,15,.22), rgba(224,20,15,.06)); border: 1px solid rgba(224,20,15,.45); }
.loyal__ic { font-size: 1.6rem; }
.loyal p { margin: 0; font-size: .92rem; }
.loyal a, .loyal button.linkish { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.loyal--reward { background: linear-gradient(135deg, #fff, #f1ebe6); color: #1c1b1a; border-color: #fff; }
.loyal--reward .check { color: #1c1b1a; }
.totals { display: grid; gap: 4px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .grand { color: #fff; font-family: var(--f-game); font-weight: 700; font-size: 1.3rem; padding-top: 6px; }
.totals .disc { color: #9ff0ad; }
.copts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.copts .bopt { grid-template-columns: 20px 1fr; }
.cart__steps { display: grid; gap: 12px; }
.cart__alt { text-align: center; color: var(--muted); font-size: .82rem; }
.cart__alt button { color: #fff; text-decoration: underline; }
.done { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 20px 0; }
.done__code { font-family: var(--f-display); font-size: 3.4rem; line-height: 1; letter-spacing: .04em; }
.done .stamps { width: 100%; max-width: 330px; }
.fab-cart { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; display: none; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: var(--red); color: #fff; font-family: var(--f-game); font-weight: 700; letter-spacing: .06em; box-shadow: 0 14px 40px -10px var(--red-glow); }
.fab-cart.show { display: inline-flex; animation: fadeIn .3s; }
.fab-cart svg { width: 20px; height: 20px; fill: currentColor; }
.preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #ffa31a; color: #1c1b1a; font-weight: 700; }
.preview-bar button { padding: 6px 14px; border-radius: 999px; background: #1c1b1a; color: #fff; }

/* sezione fedeltà nella home */
.loyalty__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.loyalty__card { position: relative; padding: clamp(20px, 4vw, 30px); border-radius: 26px; background: radial-gradient(120% 90% at 100% 0%, rgba(224,20,15,.35), transparent 55%), linear-gradient(150deg, #34312f, #1f1e1d 70%); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: rotate(-2deg); }
.loyalty__card .pass__top { margin-bottom: 20px; }
.loyalty__perks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.loyalty__perks li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; }
.loyalty__perks i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(224,20,15,.15); font-style: normal; font-size: 1.3rem; }
.loyalty__perks b { display: block; }
.loyalty__perks span { color: var(--muted); font-size: .92rem; }
.loyalty__ctas { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .loyalty__wrap { grid-template-columns: 1fr; } .loyalty__card { transform: none; } }
.oopt--site { --bc: var(--red-hot); width: 100%; text-align: left; font: inherit; color: inherit; }
.oopt--site .oopt__ic { color: #fff; }
.order__grid .oopt--site { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(170,5,5,.55), rgba(170,5,5,.12) 60%), var(--bg-2); border-color: rgba(224,20,15,.5); }
@media (min-width: 1021px) {
  .order__grid .oopt--site { flex-direction: row; align-items: center; justify-content: flex-start; }
  .order__grid .oopt--site .oopt__ic { margin-bottom: 0; }
  .order__grid .oopt--site .oopt__name { margin-top: 0; }
  .order__grid .oopt--site .oopt__cta { position: static; margin-left: auto; }
}
.summary__btns { display: grid; gap: 10px; }
@media (max-width: 900px) {
  .summary__btns { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary__btns .btn { padding-inline: .6em; }
  .hide-sm { display: none; }
}
.dcard li .dadd { order: 3; align-self: center; }
.dadd { margin-left: 10px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 700; line-height: 1; flex: none; transition: background .2s, border-color .2s; }
.dadd:hover { background: var(--red); border-color: var(--red); }
.modal .summary__alt { margin-top: 6px; }

/* =========================================================
   STAFF e ADMIN
   ========================================================= */
.center-box { width: min(440px, 100%); margin: clamp(20px, 6vh, 70px) auto; padding: clamp(22px, 5vw, 34px); border-radius: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line-2); }
.center-box .form__title { margin-bottom: 6px; }
.otp { letter-spacing: .5em; text-align: center; font-family: var(--f-game) !important; font-size: 1.6rem !important; }
.mfa-qr { display: grid; justify-items: center; gap: 8px; padding: 14px; background: #fff; border-radius: 16px; color: #282726; }
.mfa-qr canvas { width: 220px; height: 220px; }
.mfa-qr code { font-size: .8rem; word-break: break-all; text-align: center; }

/* scanner */
.scan { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
.scan__video { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid var(--line-2); }
.scan__video video { width: 100%; height: 100%; object-fit: cover; }
.scan__frame { position: absolute; inset: 16%; border-radius: 22px; box-shadow: 0 0 0 999px rgba(0,0,0,.45); }
.scan__frame::before, .scan__frame::after { content: ""; position: absolute; inset: -3px; border: 4px solid var(--red-hot); border-radius: 24px; clip-path: polygon(0 0, 28% 0, 28% 4px, 4px 4px, 4px 28%, 0 28%, 0 72%, 4px 72%, 4px calc(100% - 4px), 28% calc(100% - 4px), 28% 100%, 72% 100%, 72% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 72%, 100% 72%, 100% 28%, calc(100% - 4px) 28%, calc(100% - 4px) 4px, 72% 4px, 72% 0, 100% 0, 100% 100%, 0 100%); }
.scan__line { position: absolute; left: 18%; right: 18%; height: 2px; top: 20%; background: linear-gradient(90deg, transparent, var(--red-hot), transparent); box-shadow: 0 0 12px var(--red-hot); animation: scanline 2.2s ease-in-out infinite alternate; }
@keyframes scanline { to { top: 80%; } }
.scan__idle { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; color: var(--muted); }
.scan__idle svg { width: 64px; height: 64px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.scan__manual { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.scan__manual .input { text-transform: uppercase; font-family: var(--f-game); letter-spacing: .12em; }
.cust { display: grid; gap: 16px; }
.cust__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cust__name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1; text-transform: uppercase; }
.stepper { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 10px; }
.stepper button { height: 64px; border-radius: 16px; border: 1px solid var(--line-2); font-size: 2rem; background: rgba(255,255,255,.04); }
.stepper button:active { background: var(--red); }
.stepper output { text-align: center; font-family: var(--f-display); font-size: 3.6rem; line-height: 1; }
.stepper small { display: block; font-family: var(--f-game); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.result { text-align: center; padding: 24px; border-radius: 20px; background: rgba(63,207,92,.12); border: 1px solid rgba(63,207,92,.5); }
.result b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; text-transform: uppercase; }
.reward-box { padding: 16px; border-radius: 16px; background: #fff; color: #1c1b1a; display: grid; gap: 10px; text-align: center; }
.reward-box b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; text-transform: uppercase; }
.reward-box .btn--red { width: 100%; }

/* admin */
.adm { display: grid; grid-template-columns: 230px 1fr; gap: 24px; width: min(1360px, 100% - 32px); margin: 0 auto; padding: 24px 0 90px; }
.adm__nav { position: sticky; top: 84px; align-self: start; display: grid; gap: 4px; }
.adm__nav button { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; text-align: left; font-family: var(--f-game); font-weight: 600; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.adm__nav button:hover { color: #fff; background: rgba(255,255,255,.04); }
.adm__nav button.is-on { background: var(--red); color: #fff; }
.adm__nav .n { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #fff; color: var(--red); font-size: .74rem; text-align: center; }
.adm__main { min-width: 0; }
.adm__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.adm__h h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); text-transform: uppercase; line-height: 1; }
.adm__tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; padding-top: 0; }
  .adm__nav { position: sticky; top: 64px; z-index: 40; display: flex; overflow-x: auto; gap: 6px; margin: 0 -16px; padding: 10px 16px; background: rgba(28,27,26,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .adm__nav button { flex: none; padding: 9px 12px; font-size: .78rem; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 16px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.kpi small { display: block; font-family: var(--f-game); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.4rem; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: .82rem; }
.kpi--red { background: linear-gradient(135deg, var(--red), #6d0303); border-color: #ff5a4f; }
.kpi--red small, .kpi--red span { color: rgba(255,255,255,.8); }
.chart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding: 10px 0 0; }
.chart i { flex: 1; min-width: 4px; border-radius: 4px 4px 0 0; background: var(--red-hot); opacity: .85; position: relative; }
.chart i:hover { opacity: 1; }
.chart i:hover::after { content: attr(data-t); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; padding: 4px 8px; border-radius: 6px; background: #fff; color: #1c1b1a; font-size: .72rem; white-space: nowrap; }
.chart__axis { display: flex; justify-content: space-between; color: var(--muted); font-size: .72rem; margin-top: 6px; }
.tbl-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th { position: sticky; top: 0; text-align: left; padding: 11px 12px; font-family: var(--f-game); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #252423; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255,255,255,.03); }
.tbl .num { text-align: right; font-family: var(--f-game); font-weight: 700; white-space: nowrap; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 700 .68rem var(--f-game); letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.08); white-space: nowrap; }
.pill--red { background: rgba(224,20,15,.2); color: #ff8a82; }
.pill--ok { background: rgba(63,207,92,.18); color: #9ff0ad; }
.pill--warn { background: rgba(255,163,26,.18); color: #ffd08a; }
.pill--white { background: #fff; color: var(--red); }
.mini-stamps { display: inline-flex; gap: 3px; vertical-align: middle; }
.mini-stamps i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.15); }
.mini-stamps i.on { background: var(--red-hot); }

/* editor menu */
.pubbar { position: sticky; top: 64px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: 14px; background: #2b2928; border: 1px solid var(--line-2); box-shadow: 0 12px 30px -16px rgba(0,0,0,.8); }
.pubbar.dirty { border-color: var(--warn); }
.pubbar__st { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.pubbar__st i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.pubbar.dirty .pubbar__st i { background: var(--warn); animation: pulse 2s infinite; }
.subtabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.subtabs button { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-game); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.subtabs button.is-on { background: #fff; color: #1c1b1a; border-color: #fff; }
.mcat { margin-bottom: 22px; }
.mcat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mcat__head h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mrow { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line); }
.mrow.is-hidden { opacity: .5; }
.mrow__img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #3a3836; }
.mrow__txt { min-width: 0; }
.mrow__txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow__txt small { color: var(--muted); }
.mrow__act { display: flex; gap: 4px; align-items: center; }
.ib { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 1rem; }
.ib:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.ib.on { background: rgba(224,20,15,.2); border-color: var(--red-hot); }
.ib:disabled { opacity: .3; pointer-events: none; }
@media (max-width: 600px) {
  .mrow { grid-template-columns: 48px 1fr; }
  .mrow__img { width: 48px; height: 48px; }
  .mrow__act { grid-column: 1 / -1; justify-content: flex-end; }
}
.editor { display: grid; gap: 14px; }
.editor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .editor__grid { grid-template-columns: 1fr; } }
.photo { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; }
.photo img { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; background: #3a3836; }
.photo__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.alls-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.alls-pick label { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: .86rem; cursor: pointer; }
.alls-pick label:has(input:checked) { border-color: var(--red-hot); background: rgba(224,20,15,.1); }
.alls-pick input { accent-color: var(--red-hot); margin: 0; }
.alls-pick b { font-family: var(--f-game); }
.rows { display: grid; gap: 6px; }
.rowedit { display: grid; grid-template-columns: 1fr 110px auto; gap: 6px; }
.rowedit .input { min-height: 42px; padding: 8px 12px; }
.toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.toggle input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: rgba(255,255,255,.15); position: relative; transition: .2s; cursor: pointer; margin: 0; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked { background: var(--red-hot); }
.toggle input:checked::after { left: 23px; }
.order-card { padding: 14px; border-radius: 16px; background: rgba(255,255,255,.035); border: 1px solid var(--line); display: grid; gap: 10px; }
.order-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.order-card__head b { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; }
.order-card ul { margin: 0; padding-left: 1.1em; color: #ddd6d0; }
.order-card ul small { color: var(--muted); }
.order-card__acts { display: flex; flex-wrap: wrap; gap: 6px; }
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; border: 1px dashed var(--line-2); border-radius: 16px; }

/* campo data: icona calendario visibile sul tema scuro */
input[type="date"]{color-scheme:dark}


/* vecchia card (staff) */
.old-box { background: #2f2d2b; color: #fff; border: 1px dashed rgba(255,255,255,.35); text-align: left; }
.old-box b { font-size: 1.35rem; }
.old-box__row { display: flex; gap: 8px; }
.old-box__row .input { flex: 1; min-width: 0; font-size: 1.2rem; text-align: center; }
.old-box__row .btn { width: auto; flex: 0 0 auto; }
#newRef { text-align: left; }
#newRef b { font-size: 1.35rem; }

/* invita un amico (area cliente) */
.ref-banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(170,5,5,.18); border: 1px solid rgba(255,90,79,.45); margin-bottom: 14px; font-size: .95rem; }
.ref-banner i { font-style: normal; font-size: 1.6rem; }
.ref-link { display: flex; gap: 8px; margin: 10px 0; }
.ref-link .input { flex: 1; min-width: 0; font-size: .85rem; }
.ref-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ref-stats { display: flex; gap: 18px; margin-top: 12px; }
.ref-stats div { display: grid; }
.ref-stats div[hidden] { display: none; }
.ref-steps { margin: 4px 0 14px; }
.ref-stats b { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; line-height: 1; color: #ff5a4f; }
.ref-stats small { color: var(--muted, #a9a29c); font-size: .8rem; }
.old-panel { border-color: rgba(255,255,255,.35); border-style: dashed; }
.ref-actions:has(#refShare[hidden]) { grid-template-columns: 1fr; }
.old-box span b { font-family: inherit; font-size: inherit; text-transform: none; font-weight: 700; }

/* finestra di benvenuto (area cliente) */
.wsheet__panel { display: grid; gap: 18px; padding: 30px 24px 24px; text-align: center; background: radial-gradient(120% 60% at 50% 0%, rgba(170,5,5,.35), transparent 70%), #262524; }
.wsheet__head { display: grid; justify-items: center; gap: 8px; }
.wsheet__head img { border-radius: 16px; box-shadow: 0 10px 30px -10px var(--red-glow); }
.wsheet__head .eyebrow { margin: 0; }
.wsheet__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3rem); line-height: .95; text-transform: uppercase; }
.wsheet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }
.wsheet__list li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.wsheet__list li i { font-style: normal; font-size: 1.5rem; flex: 0 0 auto; }
.wsheet__list li span { line-height: 1.35; }
.wsheet__old { display: grid; gap: 14px; justify-items: center; padding: 18px 16px; border-radius: 18px; background: #fff; color: #1c1b1a; text-align: left; }
.wsheet__oldtitle { font-family: var(--f-display); font-weight: 400; font-size: 1.45rem; line-height: 1.05; text-transform: uppercase; text-align: center; }
.wsheet__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.wsheet__steps li { display: flex; gap: 12px; align-items: center; }
.wsheet__steps li > span { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; }
.wsheet__steps div { display: grid; }
.wsheet__steps small { color: #6b6460; }
.wsheet__old .btn--ghost { color: #1c1b1a; border-color: rgba(0,0,0,.25); }

/* pausa consegne (pannello admin) */
.dlv { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; padding: 14px 16px; margin: 0 0 16px; border-radius: 16px; background: rgba(63,207,92,.08); border: 1px solid rgba(63,207,92,.35); }
.dlv__txt { display: grid; gap: 3px; flex: 1 1 320px; }
.dlv__txt b { font-size: 1.05rem; }
.dlv__txt small { color: var(--muted, #a9a29c); line-height: 1.4; }
.dlv__btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dlv--paused { background: rgba(255,163,26,.12); border-color: rgba(255,163,26,.6); }
.dlv--paused .dlv__txt b { color: var(--warn); }
.dlv--off { background: rgba(255,255,255,.04); border-color: var(--line); }

/* avviso consegna sospesa (carrello) */
.dlv-note { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(255,163,26,.12); border: 1px solid rgba(255,163,26,.55); }
.dlv-note b { color: var(--warn); font-size: 1.02rem; }
.dlv-note p { margin: 0; line-height: 1.45; font-size: .93rem; }
.dlv-note__apps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dlv-note__apps a { text-align: center; }
.bopt.is-off { opacity: .45; pointer-events: none; }
.bopt.is-off small { color: var(--warn); }
#wStamps { width: 100%; max-width: 330px; margin: 0 auto; }

/* =========================================================
   NOTE LEGALI, CONSENSI E BANNER COOKIE
   ========================================================= */
.legal { max-width: 820px; }
.legal h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.4rem); text-transform: uppercase; line-height: 1; margin: 10px 0 8px; }
.lg-meta { color: var(--muted); font-size: .9rem; margin: 0 0 18px; }
.lg-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.lg-nav a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #ddd6d0; font-size: .85rem; text-decoration: none; }
.lg-nav a[aria-current] { background: var(--red); border-color: var(--red); color: #fff; }
.lg-body h2 { font-family: var(--f-game); font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; margin: 30px 0 8px; scroll-margin-top: 80px; }
.lg-body h3 { font-family: var(--f-cond); font-size: 1.2rem; text-transform: uppercase; margin: 22px 0 8px; }
.lg-body p, .lg-body li { color: #ddd6d0; line-height: 1.65; }
.lg-body ul, .lg-body ol { padding-left: 1.2em; }
.lg-body a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.lg-note { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,163,26,.10); border: 1px solid rgba(255,163,26,.45); color: #ffd08a; line-height: 1.55; }
mark.ph { background: #ffd23f; color: #1c1b1a; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.lg-tbl { overflow-x: auto; margin: 8px 0 16px; border: 1px solid var(--line); border-radius: 12px; }
.lg-tbl table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lg-tbl th, .lg-tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lg-tbl th { font-family: var(--f-game); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lg-tbl td small { display: block; color: var(--muted); margin-top: 2px; }
.lg-tbl tr:target td { background: rgba(224,20,15,.18); }
.lg-chip { display: inline-block; margin: 2px 2px 2px 0; padding: 2px 8px; border-radius: 999px; background: rgba(224,20,15,.16); border: 1px solid rgba(224,20,15,.4); font-size: .82rem; white-space: nowrap; }
.lg-all { columns: 2; column-gap: 28px; }
.lg-index { list-style: none; padding: 0; display: grid; gap: 10px; }
.lg-index a { display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); text-decoration: none; color: #fff; }
.lg-index small { color: var(--muted); }
@media (max-width: 560px) { .lg-all { columns: 1; } }

/* footer con dati del titolare (tutte le pagine) */
.legalfoot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 16px calc(28px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: .85rem; display: grid; gap: 8px; }
.legalfoot p { margin: 0; }
.legalfoot__links, .footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.legalfoot__links a, .legalfoot__links button, .footer__legal a, .footer__legal button { color: #cfc8c2; font: inherit; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; cursor: pointer; }
.legalfoot__links a:hover, .legalfoot__links button:hover, .footer__legal a:hover, .footer__legal button:hover { color: #fff; }
.footer .footer__legal a, .footer .footer__legal button { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 400; }
.footer__company { color: #cfc8c2 !important; font-family: var(--f-body) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; font-size: .9rem; }
.legalfoot__small .footer__heart { color: #e0140f; }

/* banner cookie: Accetta e Rifiuta identici */
.cc { position: fixed; z-index: 9999; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  max-height: calc(100vh - 28px); overflow: auto; padding: 20px 20px 14px; border-radius: 18px; background: #262524; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); color: #f4f1ee; }
.cc[hidden] { display: none; }
.cc__title { margin: 0 34px 8px 0; font-family: var(--f-game); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; }
.cc__text { margin: 0 0 14px; font-size: .92rem; line-height: 1.55; color: #ddd6d0; }
.cc__text a { color: #fff; text-decoration: underline; }
.cc__x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.cc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc__btns--save { grid-template-columns: 1fr; margin-top: 10px; }
.cc__btns[hidden] { display: none; }
.cc__btn { padding: 13px 16px; border-radius: 12px; border: 1px solid #fff; background: #fff; color: #1c1b1a; font-family: var(--f-game); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.cc__btn:hover { background: #e9e5e1; }
.cc__btn:focus-visible, .cc__x:focus-visible, .cc__more:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 2px; }
.cc__more { display: block; margin: 10px auto 0; background: none; border: 0; color: #cfc8c2; text-decoration: underline; font-size: .88rem; cursor: pointer; padding: 6px; }
.cc__more[hidden] { display: none; }
.cc__cats { display: grid; gap: 8px; margin: 0 0 14px; }
.cc__cats[hidden] { display: none; }
.cc__cat { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.cc__cat input { width: 20px; height: 20px; accent-color: var(--red-hot); margin: 2px 0 0; }
.cc__cat small { display: block; color: var(--muted); font-size: .84rem; }
.cc-ph { display: grid; align-content: center; justify-items: center; gap: 8px; min-height: 240px; height: 100%; padding: 20px; text-align: center; border-radius: inherit; background: repeating-linear-gradient(135deg, #22211f 0 12px, #262524 12px 24px); color: #ddd6d0; font-size: .92rem; }
.cc-ph p { margin: 0; max-width: 40ch; }

/* consensi nei moduli e nell'area personale */
.consents { display: grid; gap: 10px; }
.consents__note { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.consents__note a { color: #fff; text-decoration: underline; }
.consents__sep { margin: 4px 0 0; font-family: var(--f-game); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.mycons { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: .88rem; }
.mycons li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.mycons small { color: var(--muted); }
.lsheet .sheet__panel { width: min(520px, 100% - 24px); }
.lsheet__list { list-style: none; padding: 0; margin: 10px 0 16px; display: grid; gap: 8px; }
.lsheet__list li { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); }
.lsheet__list a { color: #fff; text-decoration: underline; }
.cart__legal { margin: 4px 0 0; }

/* pannello admin: editor note legali */
.lg-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lg-doc { text-align: left; display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: #fff; cursor: pointer; }
.lg-doc:hover { border-color: #fff; }
.lg-doc small { color: var(--muted); }
.lg-doc .pill { justify-self: start; }
.lg-edit textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.5; min-height: 360px; }
.lg-help { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.lg-help code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; color: #fff; }
.lg-preview { margin-top: 14px; padding: 16px; border-radius: 14px; border: 1px dashed var(--line-2); max-height: 60vh; overflow: auto; }
.modal__alllink { display: inline-block; margin-top: 8px; font-size: .88rem; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.allergens__note a { color: #fff; text-decoration: underline; }
