:root { color-scheme: light; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #183047; background: #f4f7fb; zoom: 80%; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 125vh; display: flex; flex-direction: column; }
html.prize-dialog-open, html.prize-dialog-open body { overflow: hidden; }
.site-shell { flex: 1; }
.site-main { width: min(100% - 2rem, 1080px); margin: 0 auto; padding: 3rem 0 4rem; }
.hero { margin-bottom: 2rem; }

/* Calendar landing: keep side holly/lights visible + content centered in a narrower column. */
html:has(body.page-calendar) {
    zoom: 1 !important;
    background: #0a2113;
    min-height: 100%;
    overflow-x: hidden;
}
body.page-calendar {
    min-height: 100dvh;
    overflow-x: hidden;
    color: #fffbe6;
    background-color: #0a2113;
    background-image: url("../img/altri/background-calendario-mobile.png");
    background-repeat: no-repeat;
    background-position: center top;
    /* 100% width keeps left/right flowers & lights in frame on phones */
    background-size: 100% auto;
    background-attachment: fixed;
}
body.page-calendar .site-shell {
    background: transparent;
    overflow-x: hidden;
    max-width: 100%;
}
body.page-calendar .site-main {
    /* Side gutters so decorations stay visible beside content */
    width: min(calc(100% - 3.5rem), 1080px);
    max-width: 100%;
    margin-inline: auto;
    padding-top: 1.25rem;
    padding-bottom: 3rem;
    box-sizing: border-box;
}
/* Account connesso: barre au-dessus du logo, fond transparent (calendario) */
body.page-calendar .calendar-account-bar {
    --contest-account-green: #122619;
    --contest-account-beige: #fae6a9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.1rem;
    width: 100%;
    margin: 0;
    padding: .75rem clamp(1rem, 4vw, 3.5rem) 1.1rem;
    border: 0;
    background: transparent;
    color: var(--contest-account-beige);
    z-index: 3;
}
body.page-calendar .calendar-account-bar .contest-account-identity {
    display: grid;
    gap: .12rem;
    min-width: 0;
    text-align: right;
}
body.page-calendar .calendar-account-bar .contest-account-status {
    color: var(--contest-account-beige);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.2;
}
body.page-calendar .calendar-account-bar .contest-account-email {
    overflow-wrap: anywhere;
    color: var(--contest-account-beige);
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1.2;
}
body.page-calendar .calendar-account-bar form {
    margin: 0;
    flex: none;
}
body.page-calendar .calendar-account-bar button {
    min-height: 40px;
    padding: .45rem 1.35rem;
    border: 2px solid var(--contest-account-beige);
    border-radius: 999px;
    background: var(--contest-account-beige);
    color: var(--contest-account-green);
    font: inherit;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
}
body.page-calendar .calendar-account-bar button:hover {
    background: #fff3c4;
    border-color: #fff3c4;
}
body.page-calendar .calendar-account-bar button:focus-visible {
    outline: 3px solid var(--contest-account-beige);
    outline-offset: 3px;
}
@media (max-width: 480px) {
    body.page-calendar .calendar-account-bar {
        gap: .7rem;
        padding-inline: .85rem;
    }
    body.page-calendar .calendar-account-bar .contest-account-email {
        font-size: .92rem;
    }
    body.page-calendar .calendar-account-bar button {
        min-height: 38px;
        padding-inline: 1.1rem;
    }
}
body.page-calendar .calendar-grid {
    width: 100%;
    max-width: 600px;
    margin-inline: auto;
    gap: .7rem;
}
body.page-calendar .calendar-test-dock {
    position: fixed;
    z-index: 40;
    left: .75rem;
    bottom: .75rem;
    width: min(calc(100vw - 1.5rem), 420px);
    max-width: 420px;
    pointer-events: none;
}
body.page-calendar .calendar-test-dock__peek,
body.page-calendar .calendar-test-dock__panel {
    pointer-events: auto;
}
body.page-calendar .calendar-test-dock__peek {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: .45rem .85rem;
    border: 1px solid rgba(250, 230, 169, .4);
    border-radius: 999px;
    background: rgba(15, 40, 24, .88);
    color: #fffbe6;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
    transition: opacity .2s ease, transform .2s ease;
}
body.page-calendar .calendar-test-dock__panel {
    margin-top: .45rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(.35rem);
    transition: max-height .28s ease, opacity .2s ease, transform .2s ease;
}
body.page-calendar .calendar-test-dock:hover .calendar-test-dock__panel,
body.page-calendar .calendar-test-dock:focus-within .calendar-test-dock__panel,
body.page-calendar .calendar-test-dock.is-open .calendar-test-dock__panel {
    max-height: 22rem;
    opacity: 1;
    transform: none;
}
body.page-calendar .calendar-test-dock.is-hidden {
    display: none;
}
body.page-calendar .calendar-test-controls {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: rgba(15, 40, 24, .92);
    border-color: rgba(250, 230, 169, .35);
    color: #fffbe6;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
body.page-calendar .calendar-test-controls__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
}
body.page-calendar .calendar-test-controls__head label {
    width: auto;
    flex: 1 1 auto;
}
body.page-calendar .calendar-test-dock__hide {
    flex: 0 0 auto;
    min-height: 32px;
    padding: .3rem .65rem;
    border: 1px solid rgba(250, 230, 169, .35);
    border-radius: 8px;
    background: transparent;
    color: #fffbe6;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
body.page-calendar .calendar-test-controls select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}
body.page-calendar .calendar-test-controls button[type="submit"] {
    flex: 0 0 auto;
    max-width: 100%;
}
.calendar-hero {
    display: grid;
    justify-items: center;
    gap: clamp(.4rem, 1.5vw, .7rem);
    margin: 0 auto .85rem;
    text-align: center;
    max-width: 100%;
}
.calendar-hero-logo {
    display: block;
    height: auto;
    max-width: 100%;
    width: min(78%, 320px);
}
.calendar-hero-testata {
    /* Mockup: titre doré #fae6a9, corps crème #fffbe6 */
    /* Même largeur utile que .calendar-grid (cases) */
    --hero-gold: #fae6a9;
    --hero-cream: #fffbe6;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    color: var(--hero-cream);
    text-align: center;
    line-height: 1.05;
}
.calendar-hero-testata p {
    margin: 0;
}
.calendar-hero-tagline {
    margin: 0 auto .35rem !important;
    max-width: 100%;
    color: var(--hero-gold);
    /* Mobile: même échelle que les prix en dessous */
    font-size: clamp(1.05rem, 3.6vw, 1.55rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: .01em;
    line-height: 1.15;
    text-shadow: 0 0 .45rem color-mix(in srgb, var(--hero-gold) 50%, transparent);
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}
/* Tablette+: un peu plus grand, une seule ligne si possible */
@media (min-width: 640px) {
    .calendar-hero-tagline {
        white-space: nowrap;
        font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    }
}
.calendar-hero-block {
    display: grid;
    gap: 0;
    margin: 0 0 .4rem;
}
.calendar-hero-block--finale {
    margin-bottom: 0;
}
.calendar-hero-lead {
    color: var(--hero-cream);
    font-size: clamp(.88rem, 2.4vw, 1.05rem);
    font-weight: 500;
    line-height: 1.15;
}
.calendar-hero-finale-label {
    margin-bottom: .05rem !important;
    color: var(--hero-cream);
    font-size: clamp(.92rem, 2.6vw, 1.12rem);
    font-weight: 700;
    line-height: 1.15;
}
.calendar-hero-prize {
    color: var(--hero-cream);
    font-size: clamp(1.05rem, 3.6vw, 1.55rem);
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.12;
    text-transform: uppercase;
}
body.page-calendar .calendar-test-controls label,
body.page-calendar .calendar-test-controls p {
    color: #fffbe6;
}
body.page-calendar .site-footer {
    border-top-color: rgba(250, 230, 169, .2);
    color: #d7e6d4;
    background: transparent;
}
/* iPhone SE / very narrow: denser side art + wider gutters */
@media (max-width: 430px) {
    body.page-calendar {
        background-image: url("../img/altri/background-calendario-mobile-se.png");
        background-size: 100% auto;
        background-position: center top;
    }
    body.page-calendar .site-main {
        width: min(calc(100% - 4rem), 1080px);
    }
    body.page-calendar .calendar-hero-logo { width: min(70%, 260px); }
    body.page-calendar .calendar-grid { gap: .55rem; }
}
@media (max-width: 480px) {
    body.page-calendar .site-main {
        width: min(calc(100% - 3.75rem), 1080px) !important;
        padding-top: 1rem;
        padding-bottom: 2.5rem;
    }
    body.page-calendar .calendar-grid {
        width: 100% !important;
        gap: .6rem;
    }
}
/* Tablet: cover works better for taller artboards */
@media (min-width: 768px) {
    body.page-calendar {
        background-image: url("../img/altri/background-calendario-tablet.png");
        background-size: cover;
        background-position: center center;
    }
    body.page-calendar .site-main {
        width: min(calc(100% - 4rem), 1080px);
    }
    .calendar-hero {
        margin-bottom: 1rem;
        gap: .65rem;
    }
    .calendar-hero-logo { width: min(70%, 480px); }
}
/* Laptop */
@media (min-width: 1024px) {
    body.page-calendar {
        background-image: url("../img/altri/background-calendario-laptop.png");
        background-size: cover;
    }
    body.page-calendar .site-main {
        width: min(calc(100% - 5rem), 1080px);
    }
    .calendar-hero-logo { width: min(52%, 520px); }
    .calendar-hero-tagline {
        font-size: clamp(1.5rem, 2vw, 1.95rem);
        margin-bottom: .4rem !important;
    }
    .calendar-hero-block {
        margin-bottom: .45rem;
    }
    .calendar-hero-prize {
        font-size: clamp(1.2rem, 1.7vw, 1.6rem);
    }
}
/* Desktop */
@media (min-width: 1280px) {
    body.page-calendar {
        background-image: url("../img/altri/background-calendario-desktop.png");
    }
}
/* Ultrawide */
@media (min-width: 1920px) {
    body.page-calendar {
        background-image: url("../img/altri/background-calendario-ultrawide.png");
    }
}
/* iOS: fixed backgrounds are unreliable */
@supports (-webkit-touch-callout: none) {
    body.page-calendar {
        background-attachment: scroll;
    }
}
.calendar-test-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; max-width: 600px; margin: 0 auto 1.5rem; padding: 1rem; border: 1px solid #8eb5c2; border-radius: 12px; background: #e9f7fb; }
.calendar-test-controls label { width: 100%; font-weight: 700; }
.calendar-test-controls select,
.calendar-test-controls button[type="submit"] { min-height: 44px; padding: .55rem .75rem; border-radius: 8px; font: inherit; }
.calendar-test-controls select { flex: 1 1 220px; border: 1px solid #7698a7; background: #fff; }
.calendar-test-controls button[type="submit"] { border: 0; background: #075d73; color: #fff; font-weight: 700; cursor: pointer; }
.calendar-test-controls p { width: 100%; margin: .25rem 0 0; font-size: .9rem; }
.calendar-test-controls :focus-visible { outline: 3px solid #075d73; outline-offset: 2px; }
.calendar-test-reveal {
    position: fixed;
    z-index: 40;
    left: .75rem;
    bottom: .75rem;
    min-height: 36px;
    padding: .4rem .75rem;
    border: 1px solid rgba(250, 230, 169, .4);
    border-radius: 999px;
    background: rgba(15, 40, 24, .88);
    color: #fffbe6;
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.calendar-test-reveal[hidden] {
    display: none !important;
}
.eyebrow { color: #0b6e8b; font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; margin: .5rem 0 1rem; }
h2 { margin-top: 0; }
p { line-height: 1.55; }
.calendar-grid { display: grid; width: min(100%, 600px); margin-inline: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.calendar-day { position: relative; aspect-ratio: 1 / 1; min-width: 0; padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid #d9e3ec; border-radius: 18px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 4px 18px rgba(24,48,71,.05); overflow: hidden; }
.calendar-day-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; }
.calendar-day.has-door-image { padding: 0; border-color: transparent; }
.day-number { font-size: 2.75rem; font-weight: 800; line-height: 1; }
.day-date { color: #53687b; }
.day-status { font-size: .82rem; font-weight: 700; }
.is-open { border-color: #087a98; background: #e9f7fb; }
.calendar-day.has-door-image.is-open { border-color: #087a98; }
.is-open .day-status { color: #075d73; }
.is-open:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(24,48,71,.13); }
.is-open:focus-visible, .back-link:focus-visible { outline: 3px solid #075d73; outline-offset: 3px; }
/* Caselle scadute: solo attenuate (nessun badge SCADUTO). */
.is-past {
    color: #677789;
    background: #f0f3f6;
    opacity: .42;
    filter: saturate(.85);
}
.calendar-day.has-door-image.is-past {
    background: transparent;
    box-shadow: none;
}
.calendar-day.is-past[href]:hover { border-color: #087a98; box-shadow: 0 8px 22px rgba(24,48,71,.12); }
.calendar-day.is-past[href]:focus-visible { outline: 3px solid #075d73; outline-offset: 3px; }
.is-locked { color: #677789; }
.empty-state, .prize-card { max-width: 720px; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid #d9e3ec; border-radius: 20px; background: #fff; }
.prize-card { position: relative; margin: 0 auto 31px; max-width: 420px; padding: 1.25rem 1.1rem 3.75rem; border: 0; border-radius: 28px; background: #f7f4df; box-shadow: 0 18px 48px rgba(24, 48, 71, .18); }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: #075d73; font-weight: 700; }
body.page-calendar .back-link { color: #f7f4df; }
body.page-calendar .back-link:focus-visible { outline-color: #f7f4df; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.prize-dialog-header-slot {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 4.5rem;
    margin: 0 3.25rem .95rem 0;
    padding-bottom: .15rem;
}
.prize-day-header {
    /* Même échelle qu’avant (Giorno header) */
    width: min(72%, 15.5rem);
    max-width: 100%;
    margin-left: 5px;
}
.prize-day-badge {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
    overflow: hidden;
}
.prize-day-badge-img {
    display: block;
    width: 100%;
    height: auto;
}
/*
 * Case verte (~0–61% de l’asset) : jour à gauche ;
 * dicembre/année centrés dans la zone droite (même axe vertical).
 */
.prize-day-fulldate {
    position: absolute;
    z-index: 2;
    left: 4%;
    right: 4%;
    top: 2%;
    height: 57%;
    margin: 0;
    padding: 0 .15rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -.03em;
    pointer-events: none;
    user-select: none;
}
.prize-day-fulldate-day {
    flex: 0 0 28%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: clamp(2.2rem, 8.2vw, 3.35rem);
    font-weight: 700;
    line-height: .78;
    text-align: center;
}
.prize-day-fulldate-meta {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: .12em;
    min-width: 0;
    padding-bottom: .15em; /* léger bas pour l’italique optique */
    font-size: clamp(1.05rem, 3.9vw, 1.45rem);
    font-weight: 700;
    line-height: .95;
    text-align: center;
    text-transform: lowercase;
}
.prize-day-fulldate-line {
    display: block;
    white-space: nowrap;
    text-align: center;
}
.prize-voucher { display: grid; gap: 1rem; color: #2f5e43; }
.prize-voucher-structured { display: grid; gap: 1rem; }
.prize-composite {
    /*
     * Bordo verde PNG ≈ 2.90%. Inset un filo più interno (3.15%)
     * per assorbire l’anti-alias e evitare il gradino crema/verde.
     */
    --prize-composite-green: #2e5d40;
    --prize-composite-inset: 3.15%;
    --prize-composite-green-w: calc(100% - 2 * var(--prize-composite-inset));
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 0;
    width: 100%;
    container-type: inline-size;
    container-name: prize-composite;
}
.prize-composite--buono5 {
    --prize-composite-green: #2f5b3f;
    /* sconto.png L≈3.25% R≈3.42% — inset interno comune */
    --prize-composite-inset: 3.45%;
}
.prize-composite-image {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
}
/*
 * Posizione EAN = subito sotto il testo PNG (peggio caso ~67.8% H, es. giorno2).
 * Mobile: margin-% è sulla LARGHEZZA → -(100-68.5)*1.629 ≈ -51.5%.
 * Buono5 (sconto.png): sotto le decorazioni busta (~65% H), ratio ~1.33 → ~-47%.
 */
.prize-composite-ean-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    box-sizing: border-box;
    /* stesso inset L/R del desktop (evita gradino da width% + margin auto) */
    width: auto;
    max-width: none;
    margin: -51.5% var(--prize-composite-inset) 0;
    padding: .4rem 1rem 1.05rem;
    background: var(--prize-composite-green);
    border-radius: 0 0 1.05rem 1.05rem;
    text-align: center;
    color: #fffbe6;
}
.prize-composite-barcode-plate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: min(100%, 17rem);
    margin-inline: auto;
    padding: .55rem .7rem .45rem;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}
.prize-composite-barcode {
    display: block;
    width: min(100%, 15.5rem);
    max-width: 100%;
    height: auto;
    min-height: 3.75rem;
    max-height: 5.5rem;
    object-fit: contain;
    image-rendering: auto;
}
.prize-composite-ean-digits {
    margin: .2rem 0 0;
    padding: 0;
    color: #111;
    font-size: clamp(.72rem, 2.6vw, .88rem);
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.prize-composite--buono5 .prize-composite-ean-panel {
    /* sconto.png : decorazioni finiscono ~63.5% H — partire sotto (ratio ~1.33) */
    margin-top: -43.5%;
    padding: .35rem .95rem .95rem;
    gap: .35rem;
}
.prize-composite--buono5 .prize-composite-barcode-plate {
    max-width: min(100%, 15rem);
    padding: .5rem .6rem .4rem;
}
.prize-composite--buono5 .prize-composite-barcode {
    width: min(100%, 13.5rem);
    min-height: 3.5rem;
    max-height: 5rem;
}
@media (max-width: 767px) {
    .prize-composite-ean-panel {
        margin-top: -51.5%;
        padding: .38rem 1rem 1rem;
        gap: .38rem;
    }
    .prize-composite-barcode {
        width: min(100%, 14.5rem);
        min-height: 3.6rem;
        max-height: 5.25rem;
    }
    .prize-composite--buono5 .prize-composite-ean-panel {
        margin-top: -43.5%;
    }
}
@media (max-width: 480px) {
    .prize-composite-ean-panel {
        margin-top: -51.5%;
        padding: .35rem .9rem .95rem;
        gap: .35rem;
    }
    .prize-composite-barcode-plate {
        padding: .45rem .55rem .38rem;
        max-width: min(100%, 15.5rem);
    }
    .prize-composite-barcode {
        width: min(100%, 14rem);
        min-height: 3.5rem;
        max-height: 5rem;
    }
    .prize-composite-ean-hint {
        font-size: clamp(.6rem, 2.8vw, .72rem);
        line-height: 1.35;
    }
    .prize-composite-legal,
    .prize-composite-legal-text {
        font-size: clamp(.55rem, 2.4vw, .68rem);
        line-height: 1.35;
    }
    .prize-composite-legal-kicker {
        font-size: clamp(.62rem, 2.8vw, .8rem);
        line-height: 1.2;
    }
    .prize-composite--buono5 .prize-composite-ean-panel {
        margin-top: -43.5%;
        padding: .32rem .85rem .9rem;
    }
    .prize-composite--buono5 .prize-composite-barcode {
        width: min(100%, 13rem);
        min-height: 3.4rem;
        max-height: 4.75rem;
    }
}
@media (max-width: 390px) {
    .prize-composite-ean-panel { margin-top: -51.5%; }
    .prize-composite--buono5 .prize-composite-ean-panel { margin-top: -43.5%; }
}
/* Desktop : sotto il testo (peggio caso ~68.5%) ; buono sotto decorazioni (~65%) */
@media (min-width: 768px) {
    .prize-composite-ean-panel {
        position: absolute;
        left: var(--prize-composite-inset);
        right: var(--prize-composite-inset);
        top: 68.5%;
        bottom: 1.6%;
        margin: 0;
        width: auto;
        max-width: none;
        justify-content: flex-start;
        padding: .35rem 1.1rem .95rem;
        gap: .4rem;
        border-radius: 0 0 1.15rem 1.15rem;
    }
    .prize-composite-barcode-plate {
        max-width: min(100%, 19rem);
        padding: .55rem .75rem .45rem;
    }
    .prize-composite-barcode {
        width: min(100%, 16.5rem);
        min-height: 4rem;
        max-height: 5.75rem;
    }
    .prize-composite--buono5 .prize-composite-ean-panel {
        /* annulla margin-% mobile (specificità > .ean-panel { margin:0 }) */
        top: 67%;
        bottom: 1.7%;
        margin: 0;
        padding: .3rem 1rem .9rem;
    }
}
@media (min-width: 1024px) {
    .prize-composite-ean-panel {
        top: 68.5%;
        bottom: 1.6%;
        padding: .38rem 1.25rem 1rem;
    }
    .prize-composite-barcode {
        width: min(100%, 17.5rem);
        min-height: 4.25rem;
        max-height: 6rem;
    }
    .prize-composite--buono5 .prize-composite-ean-panel {
        top: 67%;
        margin: 0;
    }
}
.prize-composite-ean-hint {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #fffbe6;
    font-size: clamp(.66rem, 2.4vw, .8rem);
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.prize-composite-legal {
    display: grid;
    gap: .15rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #fffbe6;
    font-size: clamp(.56rem, 2.1vw, .66rem);
    line-height: 1.3;
    opacity: 1;
}
.prize-composite-legal > .prize-composite-legal-text {
    font-size: inherit;
    font-weight: 600;
}
.prize-composite-legal--day2 {
    display: grid;
    gap: .2rem;
    width: 100%;
    max-width: 100%;
    opacity: 1;
    color: #fffbe6;
}
.prize-composite-legal-kicker {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #fffbe6;
    font-size: clamp(.72rem, 2.6vw, .9rem);
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: normal;
}
.prize-composite-legal-text {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #fffbe6;
    font-size: clamp(.58rem, 2.1vw, .74rem);
    font-weight: 600;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
@media (max-width: 480px) {
    .prize-composite-legal--day2 .prize-composite-legal-text {
        font-size: clamp(.52rem, 3.1vw, .66rem);
        padding-inline: .15rem;
    }
}
.prize-offer-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.75rem, 10rem) 0.85rem; align-items: end; gap: .25rem; min-height: 11rem; }
.prize-product-slot { grid-column: 1; display: grid; place-items: end start; min-height: 10rem; }
.prize-product-slot.is-empty { background: transparent; }
.prize-product-image { display: block; width: 100%; max-height: 11rem; object-fit: contain; }
.prize-price-stack { grid-column: 2; display: grid; gap: 0; justify-items: center; align-content: end; justify-self: end; width: 100%; max-width: 9.5rem; padding-bottom: .15rem; }
.prize-solo-oggi { margin: 0 0 .28rem; color: #e31c23; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: center; line-height: 1.1; }
.prize-price-badge { display: grid; align-content: center; justify-items: center; gap: .05rem; width: 100%; padding: .55rem .65rem; color: #fff; text-align: center; }
.prize-price-main { position: relative; z-index: 1; min-height: 3.6rem; border-radius: 12px; background: #e31c23; }
.prize-price-extra { width: 78%; min-height: 2.55rem; margin-top: -.28rem; padding: .42rem .35rem .35rem; border-radius: 10px; background: #9b1218; }
.prize-price-value { font-size: clamp(1.45rem, 4.4vw, 1.95rem); font-weight: 800; line-height: 1; color: #fff; }
.prize-price-extra-label { font-size: .86rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1; color: #fff; }
.prize-price-extra strong { font-size: 1.12rem; font-weight: 800; line-height: 1; color: #fff; }
.prize-info-panel { overflow: hidden; border-radius: 0 0 18px 18px; background: #2f5e43; color: #fff; }
.prize-info-band { height: .72rem; background: #7bc48f; }
.prize-info-body { display: grid; gap: .2rem; padding: 1rem 1.1rem 1.15rem; }
.prize-brand { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.35rem, 4vw, 1.7rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; line-height: 1.15; }
.prize-meta { margin: 0; color: #fff; font-size: 1rem; line-height: 1.35; }
.prize-barcode-slot { display: grid; place-items: center; min-height: 4.5rem; margin: .85rem 0 .55rem; padding: .7rem .85rem; border-radius: 6px; background: #fff; color: #183047; }
.prize-barcode-slot strong { font-size: 1.05rem; letter-spacing: .08em; overflow-wrap: anywhere; text-align: center; }
.prize-legal { margin: .35rem 0 0; color: #fffbe6; font-size: .72rem; text-align: center; line-height: 1.35; }
.prize-contest-intro {
    margin: 0 .15rem;
    padding: 0 .25rem;
    color: #2f5e43;
    text-align: center;
}
.prize-contest-intro-title {
    margin: 0 0 .5rem;
    color: #2f5e43;
    font-size: clamp(.86rem, 2.6vw, 1rem);
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
    line-height: 1.3;
}
.prize-contest-intro-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .35rem;
}
.prize-contest-intro-list li {
    margin: 0;
    padding: 0 .1rem;
    color: #2f5e43;
    font-size: clamp(.8rem, 2.4vw, .9rem);
    font-weight: 600;
    line-height: 1.35;
}
.prize-contest-intro-list li::before {
    content: "• ";
    font-weight: 800;
}
.prize-contest-intro-list strong {
    font-weight: 800;
}
.site-footer { padding: 1.25rem 1rem; text-align: center; color: #53687b; border-top: 1px solid #d9e3ec; }
.site-footer p { margin: .15rem; font-size: .85rem; }
.calendar-error-card { margin: 0 auto; text-align: center; }
.calendar-error-code {
    font-size: clamp(3rem, 10vw, 6.5rem);
    line-height: .95;
    font-weight: 800;
    color: #075d73;
    letter-spacing: 0;
    margin-bottom: 1rem;
}
.calendar-error-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: .5rem;
}
.calendar-error-home:focus-visible { outline: 3px solid #075d73; outline-offset: 3px; }
/* Il footer concorso (Bootstrap) sotto le pagine auth/errore */
body > footer.bg-white { flex-shrink: 0; }
/* Outer shell: full-viewport scrollport, card centered when it fits.
   display:flex ONLY when [open] — otherwise the dialog stays stuck on screen. */
.prize-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 1rem 1rem 1.25rem;
    border: 0;
    border-radius: 0;
    color: #2f5e43;
    background: transparent;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.prize-dialog[open] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
}
.prize-dialog:not([open]) { display: none; }
.prize-dialog::-webkit-scrollbar { width: 0; height: 0; }
.prize-dialog::backdrop { background: rgba(0, 0, 0, .78); }
/* Cream card (no inner scroll) */
.prize-dialog-panel {
    position: relative;
    flex: 0 0 auto;
    width: min(100%, 420px);
    margin: 0 0 6.5rem;
    padding: 1.15rem 1.1rem 4.25rem;
    border-radius: 28px;
    background: #f7f4df;
    box-shadow: 0 24px 70px rgba(24,48,71,.32);
}
.prize-dialog-body { max-height: none; overflow: visible; }
@media (min-width: 768px) {
    .prize-dialog-panel { width: min(100%, 620px); }
    .prize-card { max-width: 620px; }
    .prize-dialog .prize-contest-actions,
    .prize-card .prize-contest-actions { width: min(calc(100% - 2rem), 480px); }
}
@media (min-width: 1024px) {
    .prize-dialog-panel { width: min(100%, 580px); }
    .prize-card { max-width: 580px; }
    .prize-dialog .prize-contest-actions,
    .prize-card .prize-contest-actions { width: min(calc(100% - 2rem), 460px); }
}
.dialog-close { position: absolute; top: .85rem; right: .85rem; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 4px solid #f7f4df; border-radius: 9px; background: #11603d; color: #fff; cursor: pointer; }
.dialog-close svg { width: 25px; height: 25px; }
.dialog-close:hover { background: #0b4b30; }
.dialog-close:focus-visible { outline: 3px solid #2f5e43; outline-offset: 5px; background: #0b4b30; }
.dialog-status {
    margin: .5rem 0 1rem;
    color: #2f5e43;
    font-weight: 700;
    text-align: center;
}
.dialog-status[hidden] { display: none !important; }
.prize-dialog-loader {
    width: 2.35rem;
    height: 2.35rem;
    border: 3px solid rgba(247, 244, 223, .28);
    border-top-color: #f7f4df;
    border-radius: 50%;
    animation: prize-contest-spin .75s linear infinite;
}
.prize-boot-loader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin: 0;
    background: rgba(0, 0, 0, .78);
    color: #f7f4df;
    font-weight: 700;
    text-align: center;
}
.prize-boot-loader[hidden] { display: none !important; }
html.prize-dialog-booting,
html.prize-dialog-booting body {
    overflow: hidden;
}
.prize-contest-actions { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; width: min(100%, 360px); margin: 1.5rem auto 0; }
.prize-contest-button { display: block; width: 100%; min-height: 58px; margin: 0; padding: .7rem 1.1rem; border: 4px solid #f7f4df; border-radius: 999px; background: #2f5e43; color: #fff; font-weight: 800; line-height: 1.2; text-align: center; text-decoration: none; text-transform: uppercase; letter-spacing: .02em; box-sizing: border-box; }
.prize-contest-button + .prize-contest-button { margin-top: .4rem; }
.prize-contest-button:hover { background: #244b35; }
.prize-contest-button:focus-visible { outline: 3px solid #2f5e43; outline-offset: 5px; }
.prize-contest-button.is-loading {
    pointer-events: none;
    cursor: wait;
    opacity: .88;
    background: #244b35;
}
.prize-contest-button.is-loading:hover { background: #244b35; }
.prize-contest-spinner {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0 .45rem .12rem 0;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: prize-contest-spin .7s linear infinite;
}
@keyframes prize-contest-spin {
    to { transform: rotate(360deg); }
}
/* Alerte overlay : hors flux, ne décale pas les boutons */
.prize-contest-iw-alert {
    position: absolute;
    left: 50%;
    bottom: calc(100% + .4rem);
    z-index: 6;
    width: max(100%, 16rem);
    margin: 0;
    padding: .32rem .55rem;
    border: 1px solid #f0b4b4;
    border-radius: 8px;
    background: #fdecec;
    color: #b42318;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: 1;
    transition: opacity .25s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.prize-contest-iw-alert[hidden] {
    display: none !important;
}
.prize-contest-iw-alert.is-hiding {
    opacity: 0;
}
/* Fallback sans JS (bandeau calendrier) */
.calendar-iw-fallback-alert {
    width: min(100%, 28rem);
    margin: 0 auto 1rem;
    padding: .45rem .7rem;
    border: 1px solid #f0b4b4;
    border-radius: 8px;
    background: #fdecec;
    color: #b42318;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}
.calendar-iw-fallback-alert[hidden] {
    display: none !important;
}
/* Instant Win straddles the offer card bottom edge; Estrazione sits just below with a small gap */
.prize-dialog .prize-contest-actions, .prize-card .prize-contest-actions { position: absolute; left: 50%; top: 100%; bottom: auto; width: min(calc(100% - 2rem), 340px); margin: -2.15rem 0 0; transform: translateX(-50%); }
.prize-card { margin-bottom: 6.25rem; padding-bottom: 4.25rem; }
.prize-dialog .back-link { margin: 1rem 0 0; }
@media (max-width: 480px) {
    .prize-dialog { padding: .65rem .75rem 1rem; }
    .prize-dialog-panel, .prize-card { border-radius: 22px; }
    .prize-dialog-panel { padding: .9rem .85rem 4rem; margin-bottom: 6rem; }
    .prize-contest-intro-title { font-size: .84rem; }
    .prize-contest-intro-list li { font-size: .78rem; }
    .prize-dialog-header-slot { min-height: 3.25rem; margin: 0 3rem .55rem 0; padding-bottom: .1rem; }
    .prize-day-header { width: min(78%, 13.5rem); margin-left: 5px; }
    .prize-day-fulldate { left: 3.5%; right: 3.5%; top: 2%; height: 57%; }
    .prize-day-fulldate-day { font-size: clamp(1.85rem, 9vw, 2.7rem); }
    .prize-day-fulldate-meta { font-size: clamp(0.9rem, 4vw, 1.2rem); gap: .1em; }
    .prize-offer-stage { grid-template-columns: minmax(0, 1fr) minmax(7.75rem, 9rem) 0.65rem; min-height: 9rem; }
    .prize-product-slot { min-height: 8.5rem; }
    .prize-product-image { max-height: 9rem; }
    .prize-price-stack { max-width: 8.5rem; }
}
.auth-main { max-width: 620px; }
.auth-content h1 { font-size: clamp(2rem, 5vw, 2.7rem); }
.auth-intro { color: #53687b; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 1.5rem 0; border-bottom: 1px solid #d9e3ec; }
.auth-tabs a { padding: .8rem .5rem; text-align: center; color: #53687b; font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.auth-tabs a[aria-current="page"] { color: #075d73; border-color: #087a98; }
.auth-tabs a:focus-visible, .auth-submit:focus-visible { outline: 3px solid #075d73; outline-offset: 2px; }
.auth-form { display: grid; gap: 1rem; }
.auth-switch { margin: 1.5rem 0 0; color: #53687b; }
.auth-switch a { color: #075d73; font-weight: 700; }
.auth-switch a:focus-visible { outline: 3px solid #075d73; outline-offset: 3px; }
.auth-name-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.auth-field { display: grid; gap: .4rem; min-width: 0; }
.auth-field label { font-weight: 700; }
.auth-field input,
.auth-field select { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #9fb0be; border-radius: 8px; font: inherit; background: #fff; }
.auth-field small { color: #53687b; }
.auth-city-reload {
    justify-self: start;
    margin-top: .15rem;
    min-height: 40px;
    padding: .45rem .85rem;
    border: 1px solid #9fb0be;
    border-radius: 8px;
    background: #f7faf8;
    color: #234735;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
body.page-auth .auth-main-login .auth-field small { color: #fff; }
body.page-auth .auth-main-login .password-strength,
body.page-auth .auth-main-login .password-strength[data-level="empty"] { color: #fff; }
body.page-auth .auth-main-login .auth-error { color: #7c1717; }
body.page-auth .auth-main-login .auth-notice,
body.page-auth .auth-main-login .auth-success { color: #14532d; }
body.page-auth .auth-main-login .auth-success p { color: inherit; }
.auth-submit { min-height: 48px; margin-top: .3rem; padding: .75rem 1rem; border: 0; border-radius: 9px; background: #075d73; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: #064b5e; }
.auth-submit-login { border-radius: 999px; background: #f9e6a8; color: #3a4830; }
.auth-submit-login:hover { background: #f3db8e; }
/* Evita la fascia grigia sotto il footer: zoom:80% + background :root #f4f7fb + min-height 125vh. */
html:has(body.page-auth) {
    zoom: 1;
    background: #fff;
    min-height: 100%;
}
body.page-auth {
    min-height: 100dvh;
    color: #e8f0e6;
    background: #2f5b3f;
}
body.page-auth .site-shell {
    flex: 1 0 auto;
    background: #2f5b3f;
}
body.page-auth > footer.bg-white,
body.page-auth .site-footer {
    flex-shrink: 0;
    margin-top: auto;
    background: #fff;
}
.auth-main-login { position: relative; max-width: 520px; padding-top: clamp(3.5rem, 8vh, 5rem); }
.auth-main-login .auth-back-top { position: absolute; top: .85rem; left: 0; z-index: 2; margin: 0; color: #f9e6a8; font-size: .92rem; }
.auth-main-login .auth-back-top:focus-visible { outline-color: #f9e6a8; }
.auth-main-login .auth-content { padding-inline: clamp(1.25rem, 5vw, 2.5rem); text-align: center; }
.auth-brand { display: grid; justify-items: center; gap: clamp(1.4rem, 4vw, 2.1rem); margin: 2rem auto clamp(1.8rem, 5vw, 2.6rem); }
.auth-logo-coop,
.auth-logo-calendario { display: block; width: auto; max-width: 100%; height: auto; mix-blend-mode: screen; }
.auth-logo-coop { width: min(100%, 220px); }
.auth-logo-calendario { width: min(92%, 340px); }
.auth-main-login h1 { margin: 0 0 clamp(1.6rem, 4.5vw, 2.4rem); color: #fae6a9; font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-main-login .auth-intro { margin: 0 auto 2rem; color: #e8f0e6; }
body.page-auth .auth-main-login .auth-switch a:not(.auth-submit),
body.page-auth .auth-account-links a { color: #f9e6a8; }
body.page-auth .auth-main-login .auth-content > p:not(.auth-error):not(.auth-notice):not(.auth-success) { color: #e8f0e6; }
body.page-auth .calendar-error-card {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.page-auth .calendar-error-code { color: #fae6a9; }
body.page-auth .calendar-error-home {
    width: min(100%, 340px);
    margin: 0 auto;
    border: 4px solid transparent;
    border-radius: 999px;
    background: #f9e6a8;
    color: #2f5e43;
}
body.page-auth .calendar-error-home:hover { background: #f3db8e; }
body.page-auth .calendar-error-home:focus-visible { outline-color: #fae6a9; }
.auth-main-login .auth-form { gap: 1.15rem; text-align: left; }
.auth-main-login .auth-field-icon { position: relative; }
.auth-main-login .auth-field-icon label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-main-login .auth-field-icon input { min-height: 64px; padding: 1rem 1.4rem 1rem 4.25rem; border: 2px solid transparent; border-radius: 999px; background: #234735; color: #fff; font-size: 1.1rem; }
.auth-main-login .auth-field-icon input[type="password"], .auth-main-login .auth-field-icon input[type="text"] { padding-right: 4.25rem; }
.auth-main-login .auth-field-icon input:-webkit-autofill,
.auth-main-login .auth-field-icon input:-webkit-autofill:hover,
.auth-main-register .auth-profile-grid input:-webkit-autofill,
.auth-main-register .auth-profile-grid input:-webkit-autofill:hover,
.auth-main-register .auth-profile-grid input:-webkit-autofill:active,
.auth-main-register .auth-profile-grid select:-webkit-autofill,
.auth-main-register .auth-profile-grid select:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px #234735 inset !important;
    box-shadow: 0 0 0 1000px #234735 inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border-color: transparent !important;
    transition: background-color 99999s ease-in-out 0s;
}
.auth-main-login .auth-field-icon input:-webkit-autofill:focus,
.auth-main-login .auth-field-icon input:-webkit-autofill:focus-visible,
.auth-main-register .auth-profile-grid input:-webkit-autofill:focus,
.auth-main-register .auth-profile-grid input:-webkit-autofill:focus-visible,
.auth-main-register .auth-profile-grid select:-webkit-autofill:focus,
.auth-main-register .auth-profile-grid select:-webkit-autofill:focus-visible {
    -webkit-box-shadow: 0 0 0 1000px #234735 inset, 0 0 0 0.2rem color-mix(in srgb, #fae6a9 25%, transparent) !important;
    box-shadow: 0 0 0 1000px #234735 inset, 0 0 0 0.2rem color-mix(in srgb, #fae6a9 25%, transparent) !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff;
    border-color: #fae6a9 !important;
    outline: none !important;
    transition: background-color 99999s ease-in-out 0s;
}
.auth-main-login .auth-field-icon input::placeholder { color: #eef3e9; opacity: 1; }
.auth-main-login .auth-field-icon input:focus,
.auth-main-login .auth-field-icon input:focus-visible {
    outline: none;
    border-color: #fae6a9;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, #fae6a9 25%, transparent);
}
.auth-main-register .auth-profile-grid .auth-field input:focus,
.auth-main-register .auth-profile-grid .auth-field input:focus-visible,
.auth-main-register .auth-profile-grid .auth-field select:focus,
.auth-main-register .auth-profile-grid .auth-field select:focus-visible,
.auth-main-register .auth-input-with-toggle input:focus,
.auth-main-register .auth-input-with-toggle input:focus-visible {
    outline: none !important;
    border-color: #fae6a9 !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, #fae6a9 25%, transparent) !important;
}
.auth-main-register .auth-profile-grid .auth-field input.is-invalid:focus,
.auth-main-register .auth-profile-grid .auth-field input.is-invalid:focus-visible,
.auth-main-register .auth-profile-grid .auth-field select.is-invalid:focus,
.auth-main-register .auth-profile-grid .auth-field select.is-invalid:focus-visible,
.auth-main-register .auth-input-with-toggle input.is-invalid:focus,
.auth-main-register .auth-input-with-toggle input.is-invalid:focus-visible {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, #dc3545 25%, transparent) !important;
}
.auth-main-register .auth-consent input:focus,
.auth-main-register .auth-consent input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, #fae6a9 30%, transparent);
}
.auth-main-login .auth-input-icon { position: absolute; z-index: 1; top: 32px; left: 1.5rem; width: 24px; height: 24px; transform: translateY(-50%); color: #d3e1d0; pointer-events: none; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 3.75rem; }
.password-visibility { position: absolute; top: 50%; right: 1rem; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; transform: translateY(-50%); border: 0; border-radius: 50%; background: transparent; color: #53687b; cursor: pointer; }
.password-visibility svg { width: 23px; height: 23px; }
.password-visibility[aria-pressed="true"] .eye-slash { display: none; }
.password-visibility:focus-visible { outline: 3px solid #075d73; outline-offset: 2px; }
.auth-main-login .auth-field-icon .password-visibility { top: 32px; right: 1.25rem; color: #eef3e9; }
.auth-main-login .auth-submit-login { width: 100%; min-height: 64px; margin-top: 1.1rem; font-size: 1.1rem; text-transform: uppercase; }
.auth-main-login .auth-switch { margin: 1.1rem 0 0; text-align: center; }
.auth-main-login .auth-switch + .auth-switch { margin-top: .55rem; }
.auth-main-login .auth-switch a { color: #f9e6a8; }
.auth-main-recovery h1 { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: .02em; }
.auth-main-reset h1 { font-size: clamp(2rem, 5vw, 2.7rem); letter-spacing: .02em; }
.auth-main-reset .auth-field-icon small { padding-left: 1.5rem; }
.auth-main-register h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: .02em; }
.auth-main-register .auth-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem .75rem;
    align-items: start;
}
.auth-main-register .auth-profile-grid > .auth-field {
    min-width: 0;
    max-width: 100%;
}
.auth-main-register .auth-field-phone,
.auth-main-register .auth-field-full { grid-column: 1 / -1; }
.auth-main-register .auth-phone-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: .75rem;
    align-items: start;
}
.auth-main-register .auth-field-prefisso,
.auth-main-register .auth-field-cellulare {
    min-width: 0;
}
.auth-main-register .auth-profile-grid .auth-field label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    white-space: normal;
    margin: 0 0 .35rem;
    color: #eef3e9;
    font-size: .92rem;
    line-height: 1.2;
}
.auth-main-register .auth-profile-grid .auth-field input,
.auth-main-register .auth-profile-grid .auth-field select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: .7rem 1rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: #234735;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    line-height: 1.25;
}
.auth-main-register .auth-field-prefisso input {
    padding-left: .7rem;
    padding-right: .7rem;
    text-align: center;
}
.auth-main-register .auth-profile-grid .auth-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23eef3e9' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 8px;
    padding-right: 2.4rem;
    text-overflow: ellipsis;
}
.auth-main-register .auth-profile-grid .auth-field select:disabled {
    opacity: .65;
}
.auth-main-register .auth-profile-grid .auth-field input::placeholder {
    color: #eef3e9;
    opacity: .85;
}
.auth-main-register .auth-input-with-toggle {
    position: relative;
}
.auth-main-register .auth-input-with-toggle input {
    padding-right: 3.4rem;
}
.auth-main-register .auth-input-with-toggle .password-visibility {
    top: 50%;
    right: .85rem;
    color: #eef3e9;
}
.auth-main-register .auth-field-password small {
    display: block;
    margin-top: .4rem;
    padding: 0 .25rem;
    color: #d8e5d4;
    font-size: .82rem;
}
.auth-main-register .auth-field-password .password-strength {
    padding: .35rem .25rem 0;
    color: #d8e5d4;
}
.auth-main-register .auth-field-password .password-strength-bar {
    background: rgba(238, 243, 233, .28);
}
.auth-main-register .auth-consents {
    display: grid;
    gap: .75rem;
    margin: .25rem 0 0;
    padding: 0;
    border: 0;
}
.auth-main-register .auth-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .7rem;
    align-items: start;
    color: #eef3e9;
    font-size: .92rem;
    line-height: 1.35;
    text-align: left;
}
.auth-main-register .auth-consent input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .15rem;
    accent-color: #f9e6a8;
}
.auth-main-register .auth-consent a {
    color: #f9e6a8;
    text-decoration: underline;
}
.auth-main-register .auth-error-summary,
.auth-main-login .auth-error-summary {
    scroll-margin-top: 20px;
    margin: 0 0 1rem;
    padding: .85rem 1rem;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    background: #f8d7da;
    color: #842029;
    text-align: left;
}
.auth-main-register .auth-error-summary ul,
.auth-main-login .auth-error-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.auth-main-register .auth-error-summary li + li,
.auth-main-login .auth-error-summary li + li {
    margin-top: .35rem;
}
.auth-main-register .auth-profile-grid .auth-field input.is-invalid,
.auth-main-register .auth-profile-grid .auth-field select.is-invalid,
.auth-main-register .auth-input-with-toggle input.is-invalid {
    border-color: #dc3545 !important;
}
.auth-main-register .error-message {
    display: none;
    margin: .35rem 0 0;
    padding: .1rem .35rem;
    border-radius: 4px;
    color: #ffb4ba;
    background: transparent;
    font-size: .86rem;
    line-height: 1.3;
    text-align: left;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}
.auth-main-register .error-message.d-block {
    display: inline-block;
}
.auth-main-register .auth-consent.is-invalid span,
.auth-main-register .auth-consent:has(+ .error-message.d-block) span {
    color: #ffb4ba;
}
/* Select2 (Provincia/Città): stesso look dei campi auth + highlight oro (non blu) */
.auth-main-register .select2-container {
    width: 100% !important;
}
.auth-main-register .select2-container--default .select2-selection--single {
    box-sizing: border-box;
    min-height: 52px;
    height: 52px;
    padding: 0 1rem;
    border: 2px solid transparent;
    border-radius: 999px;
    background: #234735;
    outline: none;
}
.auth-main-register .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding: 0;
    color: #fff;
}
.auth-main-register .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #eef3e9;
    opacity: .85;
}
.auth-main-register .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%;
    right: .85rem;
    height: 20px;
    transform: translateY(-50%);
}
.auth-main-register .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #eef3e9 transparent transparent transparent;
    margin-top: -2px;
}
.auth-main-register .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #eef3e9 transparent;
}
.auth-main-register .select2-container--default.select2-container--focus .select2-selection--single,
.auth-main-register .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #fae6a9 !important;
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, #fae6a9 25%, transparent) !important;
}
.auth-main-register .select2-container--default.select2-container--disabled .select2-selection--single {
    opacity: .65;
    cursor: not-allowed;
    background: #234735;
}
.auth-main-register .auth-field select.is-invalid + .select2-container .select2-selection--single,
.auth-main-register .select2-container.is-invalid .select2-selection--single {
    border-color: #dc3545 !important;
}
body.page-auth .select2-dropdown {
    border: 1px solid #3a5f4a;
    border-radius: 12px;
    background: #234735;
    overflow: hidden;
    z-index: 2000;
}
body.page-auth .select2-search--dropdown {
    padding: .55rem .65rem;
    background: #234735;
}
body.page-auth .select2-search--dropdown .select2-search__field {
    min-height: 40px;
    padding: .45rem .75rem;
    border: 1px solid #3a5f4a !important;
    border-radius: 999px;
    background: #1b3829;
    color: #fff;
    outline: none;
}
/* Solo il placeholder "Digita qui per cercare…" (non le opzioni selezionate) */
body.page-auth .select2-search--dropdown .select2-search__field.select2-search-hint-field::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.page-auth .select2-search--dropdown .select2-search__field.select2-search-hint-field::-webkit-input-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.page-auth .select2-search--dropdown .select2-search__field.select2-search-hint-field::-moz-placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}
body.page-auth .select2-search--dropdown .select2-search__field:focus {
    border-color: #fae6a9 !important;
    box-shadow: 0 0 0 0.15rem color-mix(in srgb, #fae6a9 25%, transparent);
}
body.page-auth .select2-results__options {
    background: #234735;
}
body.page-auth .select2-container--default .select2-results__option {
    padding: .55rem .85rem;
    color: #eef3e9;
    background: transparent;
}
body.page-auth .select2-container--default .select2-results__option[aria-selected="true"] {
    background: color-mix(in srgb, #fae6a9 22%, #234735) !important;
    color: #fff !important;
}
body.page-auth .select2-container--default .select2-results__option--highlighted,
body.page-auth .select2-container--default .select2-results__option--highlighted[aria-selected],
body.page-auth .select2-container--default .select2-results__option--highlighted[aria-selected="true"],
body.page-auth .select2-container--default .select2-results__option:hover {
    background-color: #fae6a9 !important;
    color: #3a4830 !important;
}
body.page-auth .select2-results__message {
    color: #d8e5d4;
}
@media (max-width: 640px) {
    .auth-main-register .auth-profile-grid {
        grid-template-columns: 1fr;
    }
    .auth-main-register .auth-field-phone,
    .auth-main-register .auth-field-full,
    .auth-main-register .auth-field-provincia,
    .auth-main-register .auth-field-citta {
        grid-column: 1;
    }
    .auth-main-register .auth-phone-row {
        grid-template-columns: 5rem minmax(0, 1fr);
        gap: .65rem;
    }
}
.auth-account-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.5rem; margin: 1rem 0 1.5rem; }
.auth-account-links a { color: #3a4830; font-weight: 700; }
.password-strength { display: grid; gap: .4rem; padding: .15rem 1.5rem 0; color: #53687b; font-size: .85rem; }
.password-strength-bar { height: 6px; overflow: hidden; border-radius: 999px; background: #d9e3ec; }
.password-strength-bar span { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .2s ease, background-color .2s ease; }
.password-strength[data-level="weak"] { color: #8b2d2d; }
.password-strength[data-level="weak"] .password-strength-bar span { width: 33.333%; background: #b54343; }
.password-strength[data-level="medium"] { color: #805000; }
.password-strength[data-level="medium"] .password-strength-bar span { width: 66.666%; background: #b97700; }
.password-strength[data-level="strong"] { color: #245d39; }
.password-strength[data-level="strong"] .password-strength-bar span { width: 100%; background: #2d814a; }
.auth-error { padding: .85rem 1rem; border: 1px solid #ba3232; border-radius: 8px; background: #fff1f1; color: #7c1717; }
.auth-notice, .auth-success { padding: .9rem 1rem; border: 1px solid #1d7a45; border-radius: 8px; background: #eef8f1; color: #14532d; }
.auth-success { display: grid; gap: .65rem; margin-top: .25rem; }
.auth-main-login .auth-success { margin-bottom: 1.5rem; }
.auth-main-register .auth-success { margin-bottom: 1.5rem; text-align: left; }
.auth-main-recovery .auth-success { margin-bottom: 1.5rem; }
.auth-success p { margin: 0; }
.auth-success p:first-child { font-weight: 700; }
.auth-next { margin-top: 1.5rem; padding: 1rem; border-radius: 10px; background: #e9f7fb; }
.auth-next a { color: #075d73; font-weight: 700; }
.auth-next p { margin: 0 0 .5rem; }
.auth-next button { padding: 0; border: 0; background: none; color: #075d73; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.auth-dialog-link { display: inline-block; margin-top: 1.3rem; padding: .75rem 1rem; border-radius: 9px; background: #075d73; color: #fff; font-weight: 700; text-decoration: none; }
.auth-dialog-link:hover { background: #064b5e; }
.auth-dialog-link:focus-visible { outline: 3px solid #075d73; outline-offset: 3px; }
[hidden] { display: none !important; }
@media (max-width: 480px) { .site-main { width: min(100% - 1.25rem, 1080px); padding: 2rem 0; } .calendar-grid { width: calc(100% - 2.5rem); gap: .9rem; } .calendar-day { padding: .55rem; border-radius: 12px; } .day-number { font-size: 1.9rem; } .day-date { font-size: .8rem; } .day-status { font-size: .68rem; line-height: 1.15; overflow-wrap: anywhere; } }
@media (max-width: 360px) { .calendar-grid { width: calc(100% - 1.75rem); gap: .65rem; } .calendar-day { padding: .4rem; } .day-number { font-size: 1.65rem; } .day-date { font-size: .72rem; } .day-status { font-size: .62rem; } }
@media (max-width: 480px) { .auth-name-row { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
    body.page-auth .site-shell {
        flex: 1 0 auto;
        min-height: calc(100dvh - 12rem);
        background-color: #2f5b3f;
        background-image: url("./../img/altri/background-login-mobile.png");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: 100% 100%;
    }
    body.page-auth .auth-main-login {
        max-width: 420px;
        padding-top: clamp(3.2rem, 7vh, 4.5rem);
        padding-bottom: 100px;
    }
    body.page-auth .auth-brand { gap: 2rem; margin-bottom: 2.8rem; }
    body.page-auth .auth-logo-coop { width: min(34%, 108px); }
    body.page-auth .auth-logo-calendario { width: min(94%, 320px); }
    body.page-auth .auth-main-login h1 {
        margin-bottom: 2.8rem;
        font-size: clamp(2rem, 9vw, 2.7rem);
    }
    body.page-auth .auth-main-login .auth-intro { margin-bottom: 2.2rem; }
    body.page-auth .auth-main-login .auth-form { gap: 1.55rem; }
    body.page-auth .auth-main-login .auth-submit-login { margin-top: 2.4rem; }
    body.page-auth .auth-main-login .auth-switch { margin-top: 1.8rem; }
    body.page-auth .auth-main-login .auth-switch + .auth-switch { margin-top: .85rem; }
}
