/* Area cliente: mobile-first, elegante (molto bianco, tipografia raffinata) */
:root { --brand: #000; --serif: 'Cormorant Garamond', Georgia, serif; --sans: 'Inter', system-ui, -apple-system, sans-serif; }
[x-cloak] { display: none !important; }
body.cliente { font-family: var(--sans); background: #fff; color: #1c1c1c; min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
body.con-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.testata { display: flex; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); z-index: 10; }
.testata .logo { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; letter-spacing: .04em; color: #111; text-decoration: none; }
.contenuto { max-width: 560px; margin: 0 auto; padding: 1.25rem; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; }
h1 { font-size: 2rem; } h2 { font-size: 1.6rem; }
.text-brand { color: var(--brand); }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; border-radius: 999px; padding: .7rem 1.4rem; font-weight: 500; }
.btn-brand:hover, .btn-brand:focus { color: #fff; filter: brightness(1.2); }
.btn-outline-brand { border: 1px solid var(--brand); color: var(--brand); border-radius: 999px; padding: .6rem 1.3rem; }
.form-control, .form-select { border-radius: .6rem; padding: .7rem .85rem; border-color: #ddd; }
.form-label { font-weight: 500; font-size: .9rem; }
:focus-visible { outline: 3px solid #0d6efd !important; outline-offset: 2px; }
.piede { text-align: center; font-size: .8rem; color: #888; padding: 2rem 1rem 3rem; }
.piede a { color: #666; }

/* La card disegnata come una tessera */
.tessera { position: relative; border-radius: 18px; padding: 1.25rem 1.25rem 1rem; color: #fff; background: #1c1c1c; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.18); aspect-ratio: auto; }
.tessera::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 80% at 100% 0%, rgba(255,255,255,.18), transparent 60%); pointer-events: none; }
.tessera .marchio { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .06em; }
.tessera .livello { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; padding: .25rem .6rem; border: 1px solid rgba(255,255,255,.6); border-radius: 999px; }
.tessera .nome { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin-top: .4rem; }
.tessera .codice { font-size: .8rem; letter-spacing: .15em; opacity: .85; }
.tessera .qr { background: #fff; border-radius: 12px; padding: 8px; margin: 1rem auto .5rem; max-width: 260px; }
.tessera .qr img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.tessera .saldo { font-size: 2rem; font-weight: 600; line-height: 1; }
.tessera .saldo small { font-size: .8rem; font-weight: 400; opacity: .85; }

.barra { margin: 1rem 0; }
.barra .progress { height: 8px; border-radius: 99px; background: #f0f0f0; }
.barra .progress-bar { background: var(--brand); }
.barra .testo { font-size: .88rem; color: #555; margin-bottom: .35rem; }

.voce { display: flex; align-items: center; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid #f2f2f2; }
.voce:last-child { border-bottom: 0; }
.buono { border: 1px dashed #bbb; border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }
.buono .valore { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; }
.buono img { max-width: 180px; }
.badge-icona { width: 64px; height: 64px; }
.badge-bloccato { filter: grayscale(1); opacity: .35; }

.nav-basso { position: fixed; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid #eee; padding: .4rem 0 calc(.4rem + env(safe-area-inset-bottom)); z-index: 20; }
.nav-basso a { display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: #888; text-decoration: none; min-width: 56px; padding: .2rem; }
.nav-basso a i { font-size: 1.3rem; }
.nav-basso a.attivo { color: #111; font-weight: 600; }

.cookie-banner { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 50; background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: .75rem 1rem; font-size: .82rem; display: flex; gap: .75rem; align-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
body.con-nav .cookie-banner { bottom: calc(80px + env(safe-area-inset-bottom)); }
.pwa-prompt { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 45; background: #fff; border-radius: 14px; padding: 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
body.con-nav .pwa-prompt { bottom: calc(80px + env(safe-area-inset-bottom)); }
.nps-scala { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.nps-scala label { display: block; text-align: center; border: 1px solid #ddd; border-radius: 8px; padding: .55rem 0; cursor: pointer; font-weight: 600; }
.nps-scala input { position: absolute; opacity: 0; }
.nps-scala input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.nps-scala input:focus-visible + label { outline: 3px solid #0d6efd; }
@media (max-width: 400px) { .nps-scala { grid-template-columns: repeat(6, 1fr); } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.otp { font-size: 1.8rem; letter-spacing: .5em; text-align: center; }
