/* ============================================================
   Color Meeting 2026 — stile pagine invitato e admin
   ============================================================ */

:root {
    --c-bg-deep: #0d1b2a;
    --c-text: #14213d;
    --c-text-mute: #5a6680;
    --c-card: #ffffff;
    --c-card-soft: #f7f8fb;
    --c-border: #e3e7ef;
    --c-accent: #2a9d8f;
    --c-accent-2: #e76f51;
    --c-warn: #e9b949;
    --c-ok: #2a9d8f;
    --c-ko: #d44a4a;
    --c-info: #4a7dd4;
    --c-shadow: 0 10px 30px rgba(13, 27, 42, .15);
    --c-shadow-lg: 0 20px 60px rgba(13, 27, 42, .25);
    --r-md: 14px;
    --r-lg: 22px;
    --gap: 18px;
    --maxw: 720px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--c-text);
    background: var(--c-bg-deep);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Sfondo low-poly multicolore ---------- */
.bg-poly {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 20% 0%, #2a9d8f 0%, transparent 35%),
        radial-gradient(ellipse at 80% 10%, #e9c46a 0%, transparent 40%),
        radial-gradient(ellipse at 90% 60%, #e76f51 0%, transparent 45%),
        radial-gradient(ellipse at 10% 90%, #6a4c93 0%, transparent 45%),
        radial-gradient(ellipse at 50% 50%, #4a7dd4 0%, transparent 55%),
        linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
    background-attachment: fixed;
    position: relative;
}
.bg-poly::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url("/assets/img/poly-bg.svg");
    background-size: cover;
    background-position: center;
    opacity: .55;
    mix-blend-mode: screen;
    z-index: 0;
}

/* ---------- Pagina invitato ---------- */
.page-invito {
    position: relative;
    z-index: 1;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 18px 60px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    flex-wrap: wrap;
}
.brand-img {
    height: 56px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.25));
}
@media (max-width: 480px) {
    .brand-img { height: 44px; }
}
.brand-collab {
    font-size: 13px;
    opacity: .9;
}
.brand-collab strong {
    color: #fff;
    font-weight: 700;
}

.hero {
    text-align: center;
    padding: 30px 0 24px;
    color: #fff;
}
.title-mega {
    font-size: clamp(48px, 12vw, 92px);
    line-height: 1.1;
    margin: 18px 0 12px;
    padding-bottom: .12em;
    font-weight: 900;
    letter-spacing: -.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,.35);
    color: #fff;
}
.title-mega span {
    display: inline-block;
    font-style: italic;
    font-weight: 900;
    padding: 0 .04em .15em;
    color: #ffffff;
    text-shadow: none;
}
.title-xl {
    font-size: clamp(28px, 6vw, 42px);
    margin: 0 0 14px;
    color: #fff;
    font-weight: 800;
}
.kicker {
    font-size: 16px;
    opacity: .92;
    margin: 0 auto;
    max-width: 460px;
}

.card {
    background: var(--c-card);
    border-radius: var(--r-lg);
    box-shadow: var(--c-shadow);
    padding: 22px 22px;
    margin: 18px 0;
}
.card.greeting .hello {
    font-size: 22px;
    margin: 0 0 4px;
    font-weight: 600;
}
.card.greeting .lead {
    margin: 0;
    color: var(--c-text-mute);
    font-size: 16px;
}

.h-section {
    font-size: 18px;
    margin: 0 0 14px;
    font-weight: 800;
    color: var(--c-text);
    letter-spacing: .01em;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.info-grid .span-2 { grid-column: span 2; }
.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--c-text-mute);
    margin-bottom: 2px;
}
.info-value {
    font-weight: 600;
    color: var(--c-text);
}
.muted { color: var(--c-text-mute); }
.small { font-size: 13px; }

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px) {
    .benefit-grid { grid-template-columns: repeat(4, 1fr); }
}
.benefit {
    text-align: center;
    padding: 12px 6px;
    background: var(--c-card-soft);
    border-radius: var(--r-md);
}
.benefit-ico {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    color: var(--c-accent);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(42, 157, 143, .25);
}
.benefit-ico svg { width: 24px; height: 24px; }
.benefit-title {
    font-weight: 800;
    margin-bottom: 2px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .04em;
}
.benefit-text {
    font-size: 12px;
    color: var(--c-text-mute);
    line-height: 1.35;
}

.programma {
    list-style: none;
    padding: 0;
    margin: 0;
}
.programma li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-border);
}
.programma li:last-child { border-bottom: 0; }
.programma .ora {
    color: var(--c-accent);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    min-width: 90px;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.alert {
    padding: 14px 16px;
    border-radius: var(--r-md);
    margin: 14px 0;
    font-weight: 500;
}
.alert-success {
    background: #e3f7f2;
    color: #1c6e63;
    border: 1px solid #b3e3d8;
}

/* ---------- Ricevuta post-submit ---------- */
.ricevuta {
    text-align: center;
    padding: 36px 26px 32px;
    margin: 24px 0;
    position: relative;
    overflow: hidden;
}
.ricevuta::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
}
.ricevuta.esito-ok::before    { background: linear-gradient(90deg, #2a9d8f, #4a7dd4); }
.ricevuta.esito-forse::before { background: linear-gradient(90deg, #e9c46a, #f4a261); }
.ricevuta.esito-no::before    { background: linear-gradient(90deg, #d44a4a, #e76f51); }

.ricevuta-ico {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 12px 32px rgba(13, 27, 42, .2);
}
.esito-ok    .ricevuta-ico { background: linear-gradient(135deg, #2a9d8f, #1c6e63); }
.esito-forse .ricevuta-ico { background: linear-gradient(135deg, #e9c46a, #d4a847); }
.esito-no    .ricevuta-ico { background: linear-gradient(135deg, #d44a4a, #9b2424); }
.ricevuta-ico svg { width: 52px; height: 52px; }

.ricevuta-titolo {
    font-size: clamp(28px, 6vw, 38px);
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -.01em;
    color: var(--c-text);
}
.ricevuta-sub {
    font-size: 17px;
    color: var(--c-text-mute);
    margin: 0 auto 22px;
    max-width: 520px;
    line-height: 1.5;
}

.ricevuta-riassunto {
    list-style: none;
    padding: 0;
    margin: 0 auto 26px;
    max-width: 480px;
    text-align: left;
    background: var(--c-card-soft);
    border-radius: var(--r-md);
    padding: 16px 18px;
}
.ricevuta-riassunto li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border);
    font-size: 15px;
}
.ricevuta-riassunto li:last-child { border-bottom: 0; }
.ricevuta-riassunto .rr-ico {
    font-size: 20px;
    line-height: 1.2;
    flex-shrink: 0;
}

.btn-modifica {
    display: inline-block;
    width: auto !important;
    padding: 14px 32px !important;
    margin-top: 0 !important;
    text-decoration: none;
    background: var(--c-text);
    box-shadow: 0 6px 20px rgba(13, 27, 42, .25);
}
.btn-modifica:hover {
    text-decoration: none;
    background: var(--c-text);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(13, 27, 42, .35);
}

.ricevuta-time {
    margin: 14px 0 0;
}

.annulla-mod {
    text-align: center;
    margin-top: 14px;
}
.annulla-mod a { color: var(--c-text-mute); }

/* ---------- Form ---------- */
.form-card {}
.field {
    margin: 16px 0;
}
.field > label,
fieldset.field > legend {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}
fieldset.field {
    border: 0;
    padding: 0;
    margin: 16px 0;
}
input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    background: var(--c-card-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    transition: border-color .15s, box-shadow .15s;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(42, 157, 143, .18);
}
textarea { resize: vertical; min-height: 70px; }

.radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--c-card-soft);
    border: 1px solid var(--c-border);
    cursor: pointer;
    user-select: none;
    transition: background .15s, border-color .15s, transform .1s;
    font-weight: 500;
}
.pill input { accent-color: var(--c-accent); }
.pill:hover { background: #eef0f5; }
.pill-on {
    background: var(--c-accent);
    color: #fff;
    border-color: var(--c-accent);
}
.pill-on:hover { background: var(--c-accent); }
.pill-on input { accent-color: #fff; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.checkbox-row input { accent-color: var(--c-accent); width: 18px; height: 18px; }

.hint-acc {
    background: #f7f8fb;
    border: 1px dashed var(--c-border);
    padding: 12px 14px;
    border-radius: var(--r-md);
    margin: 0 0 10px;
}

/* ---------- Bonus 300 Punti Farfalla ---------- */
.punti-farfalla {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    padding: 22px 24px;
    border-radius: var(--r-lg);
    overflow: hidden;
    animation: pfPop .55s cubic-bezier(.34, 1.56, .64, 1);
    transition: background .5s, box-shadow .5s, color .5s;
}
.punti-farfalla::before {
    content: "";
    position: absolute;
    top: -40px; left: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(255,255,255,.45), transparent 70%);
    pointer-events: none;
    transition: opacity .5s;
}
.punti-farfalla::after {
    content: "";
    position: absolute;
    bottom: -30px; right: -30px;
    width: 110px; height: 110px;
    background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%);
    pointer-events: none;
    transition: opacity .5s;
}

@keyframes pfPop {
    0%   { transform: scale(.92); opacity: 0; }
    60%  { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); }
}

.pf-icon {
    width: 78px;
    height: 70px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25));
    animation: pfFly 2.4s ease-in-out infinite;
    transition: color .5s, filter .5s, transform .5s;
}
.pf-icon img { width: 100%; height: 100%; display: block; }
@keyframes pfFly {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50%      { transform: translateY(-5px) rotate(3deg); }
}

.pf-body { flex: 1; min-width: 0; }

.pf-num {
    font-size: clamp(38px, 8.5vw, 54px);
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -.02em;
    transition: color .4s, text-shadow .4s;
}
.pf-sign {
    font-size: .55em;
    font-weight: 900;
    vertical-align: 16%;
    margin-right: 3px;
}
.pf-sign::before { content: "+"; }

.pf-label {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 2px;
    color: #5a3500;
    transition: color .4s;
}

.pf-msg {
    display: none;
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.45;
    color: #5a3500;
}
.pf-msg-detail {
    margin-top: 4px;
    font-size: 13px;
    opacity: .85;
}
.pf-wow {
    display: inline-block;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: #8a4f00;
    margin-right: 6px;
}

/* ---- Barra di progresso ---- */
.pf-bar { margin-top: 12px; }
.pf-bar-track {
    height: 12px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,.08) inset;
}
.pf-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width .8s cubic-bezier(.34, 1.56, .64, 1), background .5s;
    background: linear-gradient(90deg, #f4d03f, #e9c46a);
}
.pf-bar-text {
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    margin-top: 4px;
    color: #6b4500;
    letter-spacing: .02em;
    transition: color .4s;
}
.pf-bar-text::after { content: "0 / 300 punti"; }

/* ============================================================
   STATI dinamici del banner
   ============================================================ */

/* OFF (default / forse / no) — 0 punti, barra a 0% */
.pf-state-default,
.pf-state-maybe,
.pf-state-no {
    background: linear-gradient(135deg, #f3f5f9 0%, #e3e7ef 100%);
    box-shadow: 0 4px 12px rgba(13, 27, 42, .12), 0 2px 0 rgba(255,255,255,.5) inset;
    color: #5a6680;
}
.pf-state-default .pf-num,
.pf-state-maybe   .pf-num,
.pf-state-no      .pf-num {
    color: #b9bfc9;
    text-shadow: 0 1px 0 rgba(0,0,0,.06);
}
.pf-state-default .pf-icon,
.pf-state-maybe   .pf-icon,
.pf-state-no      .pf-icon {
    color: #b9bfc9;
    filter: grayscale(.4) opacity(.7);
}
.pf-state-default .pf-label,
.pf-state-maybe   .pf-label,
.pf-state-no      .pf-label {
    color: #8a93a3;
}
.pf-state-default::before, .pf-state-default::after,
.pf-state-maybe::before,   .pf-state-maybe::after,
.pf-state-no::before,      .pf-state-no::after {
    opacity: 0;
}

.pf-state-default .pf-msg-default { display: block; }
.pf-state-maybe   .pf-msg-maybe   { display: block; }
.pf-state-no      .pf-msg-no      { display: block; }

.pf-state-default .pf-bar-text::after,
.pf-state-maybe   .pf-bar-text::after,
.pf-state-no      .pf-bar-text::after {
    content: "0 punti farfalla";
}

/* NO: aggiungiamo segno "−", numero rosso, e shake */
.pf-state-no .pf-num {
    color: #d44a4a;
    text-shadow: 0 2px 0 rgba(0,0,0,.1);
}
.pf-state-no .pf-sign::before { content: "−"; }
.pf-state-no { animation: pfShake .55s ease-in-out; }

@keyframes pfShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(4px); }
}

/* ON (Sì) — 300 punti vinti, barra al 20% */
.pf-state-yes {
    background: linear-gradient(135deg, #f4d03f 0%, #f1b22e 35%, #e9c46a 70%, #f4a261 100%);
    box-shadow:
        0 14px 36px rgba(241, 178, 46, .55),
        0 2px 0 rgba(255, 255, 255, .4) inset,
        0 -3px 0 rgba(0, 0, 0, .06) inset;
    color: #4a2e00;
    animation: pfPop .55s cubic-bezier(.34, 1.56, .64, 1), pfBounce .4s ease-out;
}
.pf-state-yes .pf-num {
    color: #fff;
    text-shadow:
        0 1px 0 #c98a00,
        0 2px 0 #c98a00,
        0 3px 0 #b07700,
        0 4px 0 #966600,
        0 6px 18px rgba(0, 0, 0, .35);
}
.pf-state-yes .pf-icon { color: #fff; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .25)); }
.pf-state-yes .pf-label { color: #5a3500; }
.pf-state-yes .pf-bar-fill {
    width: 20%;
    background: linear-gradient(90deg, #2a9d8f 0%, #f4d03f 100%);
}
.pf-state-yes .pf-msg-yes { display: block; }
.pf-state-yes .pf-bar-text::after { content: "300 punti farfalla 🎉"; color: #1c6e63; }

@keyframes pfBounce {
    0%   { transform: scale(.96); }
    60%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

@keyframes pfShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-5px); }
    80%      { transform: translateX(4px); }
}

/* Versione compatta nella ricevuta */
.pf-ricevuta {
    max-width: 480px;
    margin: 0 auto 22px;
    padding: 16px 22px;
    text-align: left;
}
.pf-ricevuta .pf-num { font-size: clamp(34px, 7vw, 46px); }
.pf-ricevuta .pf-label { font-size: 14px; }
.pf-ricevuta .pf-msg { display: none; }
.pf-ricevuta .pf-icon { width: 60px; height: 56px; }

@media (max-width: 480px) {
    .punti-farfalla { padding: 16px 16px; gap: 12px; }
    .pf-icon { width: 60px; height: 54px; }
    .pf-msg { font-size: 13px; }
}

.ospiti-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ospite-row {
    display: grid;
    grid-template-columns: 92px 1fr 1fr;
    gap: 10px;
    align-items: center;
}
.ospite-num {
    background: var(--c-card-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 12px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-mute);
}
@media (max-width: 520px) {
    .ospite-row {
        grid-template-columns: 1fr 1fr;
    }
    .ospite-num {
        grid-column: 1 / -1;
        background: transparent;
        border: 0;
        padding: 4px 0 0;
        text-align: left;
        font-size: 13px;
        color: var(--c-accent);
    }
}

.btn-primary {
    display: inline-block;
    padding: 14px 24px;
    background: var(--c-accent);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform .1s, box-shadow .15s;
    box-shadow: 0 6px 20px rgba(42, 157, 143, .35);
    width: 100%;
    margin-top: 14px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(42, 157, 143, .45); }
.btn-primary:active { transform: translateY(0); }

.btn-danger {
    background: var(--c-ko);
    color: #fff;
    border: 0;
    padding: 12px 20px;
    border-radius: var(--r-md);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.foot {
    text-align: center;
    color: rgba(255,255,255,.85);
    margin-top: 30px;
    font-size: 14px;
}
.foot-tag {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
}
.foot-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.foot-row a {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}
.foot-row a:hover { text-decoration: underline; }

/* ---------- Pagine generiche centrate ---------- */
.card-center {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 60px auto;
    padding: 30px 26px;
    background: var(--c-card);
    border-radius: var(--r-lg);
    box-shadow: var(--c-shadow-lg);
    text-align: center;
}
.card-center .brand-row {
    justify-content: center;
    background: linear-gradient(135deg, #2a9d8f, #1b263b);
    padding: 14px 24px;
    border-radius: 999px;
    width: fit-content;
    margin: 0 auto 18px;
}
.card-center .brand-img { height: 40px; }
.prose { text-align: left; }

/* ============================================================
   ADMIN
   ============================================================ */

body.admin {
    background: #f3f5f9;
    color: var(--c-text);
}

.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    background: #fff;
    border-bottom: 1px solid var(--c-border);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-title { font-size: 14px; }
.admin-title .back { margin-right: 14px; }
.admin-tools { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-flash {
    background: #fff7d6;
    border-bottom: 1px solid #f0e0a0;
    padding: 10px 22px;
    font-size: 14px;
}

.admin-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px;
}

.btn-sm, .btn-tiny {
    display: inline-block;
    padding: 7px 14px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 13px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: opacity .15s;
}
.btn-tiny { padding: 5px 10px; font-size: 12px; }
.btn-sm:hover, .btn-tiny:hover { opacity: .9; text-decoration: none; }
.btn-ghost {
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-border);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.kpi {
    background: #fff;
    border-radius: var(--r-md);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.kpi-big { grid-column: span 2; background: linear-gradient(135deg, #2a9d8f 0%, #4a7dd4 100%); color: #fff; }
.kpi-num { font-size: 30px; font-weight: 800; line-height: 1; }
.kpi-lbl { font-size: 12px; color: var(--c-text-mute); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; }
.kpi-big .kpi-lbl { color: rgba(255,255,255,.85); }
.kpi-ok { color: var(--c-ok); }
.kpi-ko { color: var(--c-ko); }
.kpi-warn { color: var(--c-warn); }

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.filter-bar input[type=text] { flex: 1 1 240px; max-width: 380px; padding: 9px 12px; border-radius: 999px; }
.filter-bar select { width: auto; padding: 9px 12px; border-radius: 999px; }

.table-list {
    width: 100%;
    background: #fff;
    border-radius: var(--r-md);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    font-size: 14px;
}
.table-list th, .table-list td {
    padding: 12px 12px;
    border-bottom: 1px solid var(--c-border);
    text-align: left;
    vertical-align: top;
    font-size: 14px;
    line-height: 1.4;
}

.cell-list {
    margin-top: 4px;
    font-size: 13px;
}
.cell-list-item {
    padding: 1px 0;
    color: var(--c-text);
}

.cell-pill {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    max-width: 280px;
    word-break: break-word;
    white-space: normal;
}
.cell-pill-warn { background: #fdf1d4; color: #6b4500; border: 1px solid #f0d889; }
.cell-pill-info { background: #e6f0ff; color: #1d3d80; border: 1px solid #b9d2ff; font-weight: 600; }

.cell-note {
    max-width: 280px;
}
.cell-note-block {
    background: var(--c-card-soft);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-accent);
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}
.cell-note-block:last-child { margin-bottom: 0; }
.cell-note-admin { border-left-color: #e9b949; background: #fff9e3; }
.cell-note-block .muted { display: block; margin-bottom: 2px; font-weight: 600; }
.table-list th {
    background: var(--c-card-soft);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--c-text-mute);
}
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.b-ok   { background: #d8f3ee; color: #1c6e63; }
.b-ko   { background: #fadcdc; color: #9b2424; }
.b-warn { background: #fdf1d4; color: #8a6d12; }
.b-mute { background: #eceff5; color: #6b7280; }

/* dialog modali */
.dlg {
    border: 0;
    padding: 0;
    border-radius: var(--r-lg);
    box-shadow: var(--c-shadow-lg);
    max-width: 540px;
    width: 92vw;
    background: #fff;
}
.dlg::backdrop { background: rgba(13, 27, 42, .55); backdrop-filter: blur(2px); }
.dlg-body { padding: 24px 26px; }
.dlg-body h2 { margin-top: 0; font-size: 20px; }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-2 .span-2 { grid-column: span 2; }
@media (max-width: 520px) { .grid-2 { grid-template-columns: 1fr; } .grid-2 .span-2 { grid-column: span 1; } }

.dl-info {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 6px 14px;
    margin: 0;
}
.dl-info dt { color: var(--c-text-mute); font-size: 13px; }
.dl-info dd { margin: 0; font-weight: 500; }
@media (max-width: 520px) { .dl-info { grid-template-columns: 1fr; } .dl-info dt { font-weight: 700; } }

.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.mt-1 { margin-top: 10px; }

#wa-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; width: 100%; }

.log {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow: auto;
}
.log li {
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.card.danger {
    border: 2px solid #f4c7c7;
    background: #fff8f8;
}
.card.danger h2 { color: var(--c-ko); }

.ospiti-admin {
    margin: 0;
    padding-left: 22px;
    font-weight: 500;
}
.ospiti-admin li { padding: 2px 0; }

/* ============================================================
   ADMIN — Lista clienti come card multi-riga
   ============================================================ */
.client-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}
.client-card {
    background: #fff;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .15s;
}
.client-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.cc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}
.cc-id { flex: 1; min-width: 200px; }
.cc-azienda { font-size: 15px; font-weight: 800; color: var(--c-text); line-height: 1.3; }
.cc-nome { font-size: 13px; color: var(--c-text-mute); margin-top: 3px; }
.cc-stato { display: flex; align-items: center; flex-direction: column; gap: 3px; flex-shrink: 0; }
.cc-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.cc-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: var(--c-text);
    border-top: 1px solid var(--c-border);
    padding-top: 10px;
}
.cc-info { white-space: nowrap; }
.cc-info-mute { color: var(--c-text-mute); font-size: 12px; }
.cc-info-wa { color: #1c6e63; font-weight: 600; }
.cc-order-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    flex-wrap: wrap;
    border-top: 1px solid var(--c-border);
    padding-top: 10px;
    font-size: 13px;
}
.cc-prodotti { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cc-prod-tag {
    background: #e8f7f5;
    border: 1px solid #b3e3d8;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    color: #1c6e63;
}
.cc-stats { display: flex; gap: 16px; font-size: 13px; align-items: center; flex-shrink: 0; }
.cc-privacy-row {
    display: flex;
    border-top: 1px solid var(--c-border);
    padding-top: 8px;
    font-size: 12px;
}
.cc-privacy-ok { color: #1c6e63; }
.cc-privacy-no { color: #9b2424; }
.cc-notes-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-top: 1px solid var(--c-border);
    padding-top: 10px;
}
.cc-note {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
}
.cc-note-cli { background: #f0faf9; border-left: 3px solid var(--c-accent); }
.cc-note-int { background: #fff9e3; border-left: 3px solid #e9b949; }
@media (max-width: 640px) {
    .cc-header { flex-direction: column; }
    .cc-actions { width: 100%; }
    .cc-order-row { flex-direction: column; align-items: stretch; }
    .cc-stats { justify-content: space-between; }
}

/* ============================================================
   PROMO SIKKENS & HERBOL — stili aggiuntivi
   ============================================================ */

/* ---------- Flash bonus banner ---------- */
.flash-banner {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, #e76f51 0%, #f4a261 60%, #e9c46a 100%);
    padding: 14px 20px;
    color: #fff;
    text-align: center;
    animation: flashPulse 2.8s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(231,111,81,.5);
}
.flash-banner.flash-active {
    background: linear-gradient(135deg, #c0392b 0%, #e76f51 50%, #f4a261 100%);
    box-shadow: 0 4px 28px rgba(192,57,43,.65);
    animation: flashPulse 1.4s ease-in-out infinite;
}
@keyframes flashPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .82; }
}
.flash-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.flash-ico { font-size: 22px; }
.flash-body { font-size: 15px; text-align: center; }
.flash-titolo {
    display: block;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .09em;
    text-shadow: 0 1px 3px rgba(0,0,0,.25);
    margin-bottom: 3px;
}
.flash-testo { font-size: 14px; line-height: 1.45; }
.flash-countdown {
    font-size: 22px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    margin-top: 4px;
    background: rgba(0,0,0,.2);
    padding: 4px 14px;
    border-radius: 999px;
}

/* ---------- Countdown ---------- */
.countdown-wrap {
    display: inline-block;
    margin: 22px auto 0;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--r-lg);
    padding: 14px 22px;
    backdrop-filter: blur(6px);
    /* larghezza fissa: non cambia al variare delle cifre */
    min-width: 320px;
    width: 320px;
}
.countdown-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    opacity: .75;
    margin-bottom: 8px;
    color: #fff;
}
.countdown-digits {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    justify-content: center;
}
.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
    flex-shrink: 0;
}
.cd-unit span {
    font-size: 42px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: #fff;
    line-height: 1;
    width: 56px;
    text-align: center;
    display: block;
}
.cd-unit small {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
    color: #fff;
    margin-top: 4px;
}
.cd-sep {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 900;
    color: rgba(255,255,255,.5);
    margin-top: 2px;
    line-height: 1;
}

/* ---------- Hero tagline ---------- */
.hero-tagline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 14px;
    margin-top: 18px;
    padding: 12px 18px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}
.ht-item {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.ht-dot {
    color: rgba(255,255,255,.45);
    font-size: 20px;
    font-weight: 300;
}
@media (max-width: 560px) {
    .ht-dot { display: none; }
    .hero-tagline { border-radius: var(--r-lg); gap: 10px 14px; }
    .ht-item { font-size: 16px; white-space: normal; text-align: center; }
}

/* ---------- Summary grid: 5 colonne ---------- */
@media (min-width: 500px) {
    .os-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Schede prodotto ---------- */
.product-card {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 14px;
    align-items: start;
    background: var(--c-card-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
    padding: 14px;
    margin-bottom: 12px;
    transition: box-shadow .15s, border-color .15s;
}
.product-card:has(.qty-select:not([value="0"])),
.product-card.has-qty {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 2px rgba(42,157,143,.15);
}
@media (max-width: 540px) {
    .product-card {
        grid-template-columns: 72px 1fr;
        grid-template-rows: auto auto;
    }
    .product-qty-wrap { grid-column: 1 / -1; }
}
.product-img-wrap {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    flex-shrink: 0;
}
@media (max-width: 540px) {
    .product-img-wrap { width: 72px; height: 72px; }
}
.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.product-name {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 2px;
}
.product-format { margin-bottom: 8px; }
.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.price-old {
    font-size: 14px;
    color: var(--c-text-mute);
    text-decoration: line-through;
}
.price-promo {
    font-size: 20px;
    font-weight: 900;
    color: var(--c-accent);
}
.price-promo small { font-size: 13px; font-weight: 500; opacity: .75; }
.saving-badge {
    display: inline-block;
    background: #d44a4a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}
.product-bancale-price {
    font-size: 13px;
    color: var(--c-text-mute);
    margin-top: 2px;
}
.saving-inline {
    color: var(--c-ok);
    font-weight: 600;
    margin-left: 6px;
}
.product-qty-wrap { align-self: center; min-width: 180px; }
.qty-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--c-text-mute);
    margin-bottom: 6px;
}
.qty-select {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--r-md);
    border: 2px solid var(--c-border);
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}
.qty-select:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(42,157,143,.18);
    outline: none;
}

/* ---------- Riepilogo live ordine ---------- */
.ordine-summary {
    background: linear-gradient(135deg, #1b263b 0%, #0d1b2a 100%);
    color: #fff;
    border-radius: var(--r-lg);
    padding: 20px 20px;
    margin: 20px 0 16px;
}
.ordine-summary.os-empty { opacity: .45; }
.os-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 500px) {
    .os-grid { grid-template-columns: repeat(4, 1fr); }
}
.os-item { text-align: center; }
.os-num {
    font-size: clamp(22px, 5vw, 30px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 4px;
}
.os-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .7;
}
.os-gold .os-num { color: #f4d03f; }
.os-ticket .os-num { color: #a8d8ea; }
.os-save .os-num { color: #57e09b; }
.os-spesa .os-num { color: #f4a261; }
/* Totale spesa centrato sotto la grid */
.os-totale-spesa {
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.15);
    font-size: 15px;
    color: rgba(255,255,255,.8);
}
.os-totale-spesa strong { color: #f4a261; font-size: 18px; font-weight: 900; }

.os-warn {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(231,111,81,.25);
    border: 1px solid rgba(231,111,81,.5);
    border-radius: var(--r-md);
    font-size: 13px;
    color: #f4c7c7;
}

/* ---------- Punti farfalla: override dinamico ---------- */
.pf-bar-text { font-size: 12px; font-weight: 700; text-align: right; margin-top: 4px; color: #6b4500; letter-spacing: .02em; }

/* ---------- Benefici strip ---------- */
.benefit-strip {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
    padding: 16px;
    background: var(--c-card-soft);
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
}
.bs-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
}
.bs-ico { font-size: 22px; flex-shrink: 0; width: 28px; text-align: center; }

/* ---------- Alert warn ---------- */
.alert-warn {
    background: #fff9e3;
    border: 1px solid #f0d889;
    color: #6b4500;
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* ---------- Non interessato button ---------- */
.non-interessato-wrap {
    text-align: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--c-border);
}
.btn-decline {
    background: transparent;
    border: 0;
    color: var(--c-text-mute);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 6px;
}
.btn-decline:hover { color: var(--c-ko); }

/* ---------- Ricevuta ordine ---------- */
.ricevuta-ordine {
    max-width: 480px;
    margin: 18px auto;
    background: var(--c-card-soft);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--c-border);
    text-align: left;
}
.ro-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--c-border);
    font-size: 14px;
    align-items: center;
}
.ro-row:last-child { border-bottom: 0; }
.ro-name { font-weight: 600; }
.ro-qty { color: var(--c-text-mute); font-size: 13px; }
.ro-price { font-weight: 700; color: var(--c-accent); white-space: nowrap; }
.ro-totale {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    font-weight: 800;
    font-size: 15px;
    background: var(--c-card-soft);
    border-top: 2px solid var(--c-border);
}
.ricevuta-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 16px auto;
    max-width: 480px;
}
.rb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
}
.rb-gold {
    background: linear-gradient(135deg, #f4d03f, #f1b22e);
    color: #4a2e00;
}
.rb-ticket {
    background: linear-gradient(135deg, #a8d8ea, #4a7dd4);
    color: #0d1b2a;
}
.rb-ico { width: 28px; height: 28px; }
.rb-ico-txt { font-size: 24px; }
/* Annulla ::after hardcoded della barra pf (sostituito da JS) */
.pf-bar-text::after { content: "" !important; }
.pf-state-yes .pf-bar-text::after { content: "" !important; }

/* ---------- Risparmio per bancale (prodotto card) ---------- */
.product-saving-row {
    font-size: 13px;
    margin-top: 4px;
    color: var(--c-text-mute);
}
.saving-green { color: var(--c-ok); font-weight: 700; }

/* ---------- Card pagamento rate ---------- */
.pagamento-card {
    background: linear-gradient(135deg, #0d1b2a 0%, #1b2d42 100%);
    border: 1px solid rgba(74,125,212,.4);
    border-radius: var(--r-lg);
    padding: 20px 20px;
    margin: 14px 0;
    color: #fff;
}
.pg-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.pg-ico { font-size: 26px; flex-shrink: 0; }
.pg-title { font-size: 16px; font-weight: 800; display: block; }
.pg-sub { opacity: .75; margin-top: 2px; }
.pg-rate {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}
@media (max-width: 480px) {
    .pg-rate { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pg-sep { display: none; }
}
.pg-rata {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-md);
    padding: 12px 10px;
    text-align: center;
}
.pg-sep {
    text-align: center;
    color: rgba(255,255,255,.35);
    font-size: 18px;
    font-weight: 700;
}
.pg-mese {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .85;
    margin-bottom: 4px;
}
.pg-data {
    font-size: 11px;
    opacity: .55;
    margin-bottom: 6px;
}
.pg-importo {
    font-size: 18px;
    font-weight: 900;
    color: #f4d03f;
    font-variant-numeric: tabular-nums;
}
/* Toggle 4 rate / 10 rate */
.pg-modes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
@media (max-width: 540px) {
    .pg-modes { grid-template-columns: 1fr; }
}
.pg-mode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: all .15s;
}
.pg-mode-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
.pg-mode-btn input[type="radio"] {
    accent-color: #f4d03f;
    width: 18px; height: 18px;
    flex-shrink: 0;
}
.pg-mode-btn.pg-mode-active {
    background: rgba(244, 208, 63, 0.18);
    border-color: #f4d03f;
}
.pg-mode-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pg-mode-text strong { font-size: 14px; color: #fff; }
.pg-mode-sub { font-size: 12px; color: rgba(255,255,255,0.6); }
.pg-mode-active .pg-mode-sub { color: rgba(255,255,255,0.85); }

/* Box 10 rate finanziamento */
.pg-fin-box {
    text-align: center;
    padding: 16px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--r-md);
    border: 1px solid rgba(244,208,63,0.3);
    margin-bottom: 12px;
}
.pg-fin-big { margin-bottom: 12px; }
.pg-fin-amount {
    font-size: 38px;
    font-weight: 900;
    color: #f4d03f;
    line-height: 1;
    margin: 4px 0;
    font-variant-numeric: tabular-nums;
}
.pg-fin-period { font-size: 13px; opacity: .85; }
.pg-fin-months {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.pg-fin-months span {
    background: rgba(255,255,255,0.08);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}
.pg-fin-note {
    font-size: 12px;
    line-height: 1.5;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.pg-fin-bcc {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    font-style: italic;
}

.pg-empty {
    text-align: center;
    padding: 10px 0 4px;
    opacity: .6;
}
.pg-totale {
    text-align: center;
    font-size: 13px;
    opacity: .75;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.pg-totale strong { color: #fff; }

/* ---------- Card omaggio BOX Collezione ---------- */
.omaggio-card {
    background: linear-gradient(135deg, #2a2418 0%, #3a3020 100%);
    border: 1px solid rgba(244,208,63,0.25);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin: 14px 0;
    color: rgba(255,255,255,0.75);
    transition: background .45s ease, border-color .45s ease, color .45s ease, box-shadow .45s ease;
}
.omaggio-card.active {
    background: linear-gradient(135deg, #f4d03f 0%, #f1b22e 50%, #e76f51 100%);
    border-color: rgba(255,255,255,0.4);
    color: #4a2e00;
    box-shadow: 0 8px 32px rgba(241,178,46,0.5), 0 2px 0 rgba(255,255,255,0.3) inset;
    animation: ocPop 0.6s cubic-bezier(.34, 1.56, .64, 1);
}
.oc-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.oc-check {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 900;
    color: rgba(255,255,255,0.4);
    transition: all .35s ease;
}
.omaggio-card.active .oc-check {
    background: rgba(255,255,255,0.4);
    color: #4a2e00;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.18);
}
.oc-check .oc-check-full { display: none; }
.oc-check .oc-check-empty { display: block; }
.omaggio-card.active .oc-check-full { display: block; animation: ocCheckIn 0.4s ease-out; }
.omaggio-card.active .oc-check-empty { display: none; }
.oc-body { flex: 1; min-width: 0; }
.oc-title { font-size: 15px; font-weight: 800; display: block; }
.omaggio-card.active .oc-title { color: #4a2e00; }
.oc-sub { opacity: .65; margin-top: 2px; font-size: 13px; }
.omaggio-card.active .oc-sub { opacity: 1; color: #5a3500; font-weight: 600; }
.oc-status {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    flex-shrink: 0;
}
.omaggio-card.active .oc-status {
    background: rgba(255,255,255,0.4);
    color: #4a2e00;
}
@keyframes ocPop {
    0%   { transform: scale(.94); }
    55%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}
@keyframes ocCheckIn {
    0%   { transform: scale(0) rotate(-90deg); opacity: 0; }
    60%  { transform: scale(1.3) rotate(0); opacity: 1; }
    100% { transform: scale(1) rotate(0); }
}
@media (max-width: 480px) {
    .oc-status { font-size: 10px; padding: 5px 9px; }
}

/* ---------- Card biglietti estrazione ---------- */
.biglietti-card {
    background: linear-gradient(135deg, #1a1042 0%, #2d1b6e 100%);
    border: 1px solid rgba(168,216,234,.35);
    border-radius: var(--r-lg);
    padding: 18px 20px;
    margin: 14px 0;
    color: #fff;
}
.bi-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.bi-ico { font-size: 26px; flex-shrink: 0; }
.bi-title { font-size: 15px; font-weight: 800; display: block; }
.bi-sub { opacity: .7; margin-top: 2px; }
.bi-count-wrap {
    margin-left: auto;
    text-align: center;
    background: rgba(255,255,255,.1);
    border-radius: var(--r-md);
    padding: 8px 14px;
    min-width: 70px;
    flex-shrink: 0;
}
.bi-num {
    font-size: 28px;
    font-weight: 900;
    color: #a8d8ea;
    line-height: 1;
    display: block;
}
.bi-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .7;
}
.bi-scale {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
.bi-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-md);
    padding: 8px 10px;
    min-width: 48px;
    transition: background .2s, border-color .2s;
}
.bi-step-active {
    background: rgba(168,216,234,.2);
    border-color: rgba(168,216,234,.5);
}
.bi-step-more { opacity: .55; }
.bi-step-num { font-size: 16px; font-weight: 900; color: #a8d8ea; }
.bi-step-more .bi-step-num { color: #fff; }
.bi-step-lbl { font-size: 11px; opacity: .65; margin-top: 2px; }
.bi-arrow { color: rgba(255,255,255,.3); font-size: 14px; flex-shrink: 0; }

/* ---------- Rimozione campo "Bancale: €..." ---------- */
.product-bancale-price { display: none; }

/* ---------- Consenso privacy (GDPR) ---------- */
.consenso-wrap {
    margin: 18px 0 0;
    padding: 14px 16px;
    background: #f7f8fb;
    border: 1px solid var(--c-border);
    border-radius: var(--r-md);
}
.consenso-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: var(--c-text);
}
.consenso-row input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--c-accent);
    cursor: pointer;
}
.consenso-row a { color: var(--c-accent); text-decoration: underline; }
.consenso-row strong { color: var(--c-text); }
.consenso-row-sm { font-size: 12px; margin-top: 10px; color: var(--c-text-mute); }

/* ---------- Bottone ADERISCO — protagonista ---------- */
.btn-aderisco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 18px;
    padding: 18px 28px;
    background: linear-gradient(135deg, #2a9d8f 0%, #1c6e63 100%);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(42,157,143,.5), 0 2px 0 rgba(255,255,255,.15) inset;
    transition: transform .12s, box-shadow .15s, opacity .15s;
}
.btn-aderisco:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(42,157,143,.6); }
.btn-aderisco:active { transform: translateY(0); }
.btn-aderisco[disabled] { opacity: .4; pointer-events: none; }
.btn-farfalla {
    width: 38px;
    height: 34px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
    animation: pfFly 2s ease-in-out infinite;
}

/* ---------- Separatore "oppure" ---------- */
.sondaggio-wrap {
    margin-top: 10px;
    text-align: center;
}
.sondaggio-wrap::before {
    content: "— oppure —";
    display: block;
    font-size: 13px;
    color: var(--c-text-mute);
    margin-bottom: 10px;
    letter-spacing: .06em;
}

/* ---------- Sondaggio "non interessato" — in secondo piano ---------- */
.sq-header {
    margin-bottom: 10px;
}
.sq-title { margin: 0 0 2px; font-size: 14px; font-weight: 700; color: var(--c-text-mute); }
.sq-sub { margin: 0; color: var(--c-text-mute); font-size: 13px; }
.sq-sub strong { color: var(--c-accent); }
.sq-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}
.sq-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--c-border);
    background: var(--c-card-soft);
    cursor: pointer;
    font-size: 13px;
    color: var(--c-text-mute);
    transition: border-color .15s, background .15s;
}
.sq-option:hover { border-color: var(--c-accent); background: #f0faf9; color: var(--c-text); }
.sq-option input[type="radio"] { accent-color: var(--c-accent); width: 14px; height: 14px; flex-shrink: 0; }
.sq-option.sq-selected { border-color: var(--c-accent); background: #e8f7f5; color: var(--c-text); }
.btn-sondaggio-sm {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 28px;
    background: #fff;
    color: var(--c-text);
    border: 1px solid #bcc3d0;
    border-radius: 999px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.10);
    transition: border-color .15s, color .15s, box-shadow .15s;
}
.btn-sondaggio-sm:hover { border-color: var(--c-accent); color: var(--c-accent); box-shadow: 0 3px 10px rgba(42,157,143,.2); }

.ricevuta-regalo {
    max-width: 480px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #fff9e3, #fdf1d4);
    border: 1px solid #f0d889;
    border-radius: var(--r-md);
    font-size: 14px;
    color: #6b4500;
    text-align: left;
}
