/* ==========================================================================
   ShopCity — Design system
   Bianco e nero, grigi light, blu notte. Nessun framework, nessun webfont.
   Mobile-first. Breakpoint: 640px / 900px / 1200px.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Token
   -------------------------------------------------------------------------- */
:root {
    /* Superfici */
    --bg: #FFFFFF;
    --bg-soft: #F6F7F9;
    --line: #E8EAEE;

    /* Testo */
    --ink: #0B0D12;
    --muted: #667085;

    /* Accento */
    --night: #16245F;
    --night-deep: #0D1638;
    --blue: #3B5BFD;
    --blue-soft: #EEF1FF;

    /* Semantici */
    --ok: #12805C;
    --ok-soft: #E7F5F0;
    --danger: #C0273C;
    --danger-soft: #FBECEE;
    --warn: #9A6B00;
    --warn-soft: #FDF4E3;

    /* Colore negozio: sovrascritto inline con style="--shop-color: #xxxxxx" */
    --shop-color: #16245F;

    /* Forma */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Ombre (leggerissime, quasi solo su hover) */
    --shadow-xs: 0 1px 2px rgba(11, 13, 18, .05);
    --shadow-sm: 0 2px 8px rgba(11, 13, 18, .06);
    --shadow-md: 0 10px 28px rgba(11, 13, 18, .10);
    --shadow-lg: 0 24px 60px rgba(11, 13, 18, .16);

    /* Metriche */
    --wrap: 1200px;
    --wrap-wide: 1600px;   /* colonna larga del catalogo: le foto respirano */
    --wrap-narrow: 760px;
    --header-h: 58px;      /* header basso, da store di moda */
    --gap: 20px;

    /* Griglia prodotti (sezione 32) */
    --grid-gap: 10px;
    --card-radius: 8px;

    /* Tipografia */
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Z-index */
    --z-header: 60;
    --z-nav: 70;
    --z-chat: 80;
    --z-toast: 120;

    --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.nav-open,
body.chat-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .5em;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
    color: var(--night);
    text-decoration: none;
    transition: color .18s var(--ease);
}
a:hover { color: var(--blue); }

img, svg, video { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
ul:last-child, ol:last-child { margin-bottom: 0; }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 28px 0;
}

strong, b { font-weight: 700; }
small { font-size: .875em; }

code, kbd, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

button { cursor: pointer; }

:focus-visible {
    outline: 3px solid var(--blue-soft);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: var(--night);
    color: #fff;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--night);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
    left: 0;
    color: #fff;
}

@media (min-width: 640px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.3rem; }
}

@media (min-width: 900px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.15rem; }
}

/* --------------------------------------------------------------------------
   3. Contenitori e sezioni
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 18px;
}

.wrap-narrow {
    width: 100%;
    max-width: var(--wrap-narrow);
    margin: 0 auto;
    padding: 0 18px;
}

@media (min-width: 900px) {
    .wrap, .wrap-narrow { padding: 0 28px; }
}

.section { padding: 44px 0; }
.section-tight { padding: 26px 0; }
.section-lg { padding: 60px 0; }
.section-soft { background: var(--bg-soft); }
.section-line { border-top: 1px solid var(--line); }
.section-dark {
    background: var(--night-deep);
    color: rgba(255, 255, 255, .82);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark a { color: #fff; }
.section-dark a:hover { color: #C7D2FF; }

.section-night {
    background: var(--night);
    color: rgba(255, 255, 255, .85);
}
.section-night h1,
.section-night h2,
.section-night h3 { color: #fff; }

@media (min-width: 900px) {
    .section { padding: 68px 0; }
    .section-lg { padding: 92px 0; }
    .section-tight { padding: 36px 0; }
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.section-head > div { min-width: 0; }
.section-title {
    margin: 0;
    font-size: 1.55rem;
}
.section-sub {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .98rem;
}
.section-link {
    font-weight: 700;
    font-size: .95rem;
    color: var(--night);
    white-space: nowrap;
}
.section-link::after {
    content: " \2192";
    transition: transform .18s var(--ease);
    display: inline-block;
}
.section-link:hover::after { transform: translateX(3px); }

@media (min-width: 640px) {
    .section-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 30px;
    }
    .section-title { font-size: 2rem; }
}

.page-head {
    padding: 32px 0 8px;
}
.page-head .page-title { margin-bottom: 8px; }
.page-head .page-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 64ch;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 18px 0 0;
    margin: 0;
    font-size: .875rem;
    color: var(--muted);
}
.breadcrumb li { display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before {
    content: "/";
    color: var(--line);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--night); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

.prose { max-width: 72ch; color: #2A2F3A; }
.prose p { margin-bottom: .9em; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .35em; }

.lead {
    font-size: 1.12rem;
    color: var(--muted);
    max-width: 64ch;
}

.divider {
    height: 1px;
    background: var(--line);
    margin: 24px 0;
    border: 0;
}

/* --------------------------------------------------------------------------
   4. Header / navigazione
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-right: auto;
    color: var(--ink);
}
.brand-logo {
    height: 28px;
    width: auto;
    display: block;
}
.brand-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
}
.brand-text strong { font-weight: 800; }
.brand-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--blue);
    display: inline-block;
    margin-left: 2px;
}
.brand-text[hidden] { display: none; }

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    order: 5;
}
.nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: var(--z-nav);
    background: #fff;
    padding: 18px;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-link {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--ink);
    font-size: 1.02rem;
}
.nav-link:hover { background: var(--bg-soft); color: var(--night); }
.nav-link.is-active { color: var(--night); background: var(--blue-soft); }

.nav-divider {
    height: 1px;
    background: var(--line);
    margin: 14px 0;
}

.nav-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
    font-size: .92rem;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.cart-link:hover {
    border-color: var(--night);
    color: var(--night);
    box-shadow: var(--shadow-xs);
}
.cart-link .cart-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cart-link.is-bumped { animation: cart-bump .45s var(--ease); }

@keyframes cart-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* #cart-counter: wrapper aggiornato via AJAX, contiene il partial cart/counter.htm */
#cart-counter { display: inline-flex; }
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--night);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}
.cart-count.is-empty {
    background: var(--bg-soft);
    color: var(--muted);
}

.acct { position: relative; }
.acct-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    font-size: .92rem;
}
.acct-toggle:hover { border-color: var(--night); color: var(--night); }
.acct-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--night);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
}
.acct-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 236px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    display: none;
    z-index: var(--z-nav);
}
.acct.is-open .acct-menu { display: block; }
.acct-menu a,
.acct-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    font-size: .94rem;
    font-weight: 600;
    color: var(--ink);
}
.acct-menu a:hover,
.acct-menu button:hover { background: var(--bg-soft); color: var(--night); }
.acct-menu .acct-menu-head {
    padding: 8px 12px 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}
.acct-menu .acct-menu-name { font-weight: 800; }
.acct-menu .acct-menu-mail {
    font-size: .82rem;
    color: var(--muted);
    word-break: break-all;
}
.acct-menu .acct-menu-danger { color: var(--danger); }

.header-hint {
    display: none;
    font-size: .78rem;
    color: var(--muted);
}
.header-hint a { color: var(--muted); text-decoration: underline; }
.header-hint a:hover { color: var(--night); }

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .brand { margin-right: 4px; }
    .main-nav {
        position: static;
        inset: auto;
        padding: 0;
        background: none;
        overflow: visible;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 0 auto 0 10px;
    }
    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 2px;
    }
    .nav-link {
        padding: 8px 11px;
        font-size: .93rem;
    }
    .nav-divider,
    .nav-mobile-actions { display: none; }
    .header-hint { display: block; }
}

@media (min-width: 1200px) {
    .nav-link { padding: 8px 14px; font-size: .95rem; }
}

/* --------------------------------------------------------------------------
   5. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--night-deep);
    color: rgba(255, 255, 255, .74);
    margin-top: 60px;
    font-size: .95rem;
}
.site-footer a { color: rgba(255, 255, 255, .74); }
.site-footer a:hover { color: #fff; }

.footer-top {
    display: grid;
    gap: 32px;
    padding: 46px 0 34px;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-logo {
    height: 30px;
    filter: brightness(0) invert(1);
}
.footer-mission {
    margin-top: 14px;
    max-width: 40ch;
    color: rgba(255, 255, 255, .68);
}
.footer-contacts {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .9rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
}
.footer-title {
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    margin: 0 0 12px;
}
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .92rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0 26px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .85rem;
    color: rgba(255, 255, 255, .58);
}

@media (min-width: 640px) {
    .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .footer-top {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
        gap: 48px;
        padding: 60px 0 40px;
    }
    .footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* --------------------------------------------------------------------------
   6. Bottoni
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--ink);
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color .18s var(--ease), border-color .18s var(--ease),
                color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--night);
    border-color: var(--night);
    color: #fff;
}
.btn-primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    border-color: var(--ink);
    color: var(--ink);
}
.btn-ghost:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.btn-soft {
    background: var(--blue-soft);
    border-color: transparent;
    color: var(--night);
}
.btn-soft:hover { background: #E1E7FF; color: var(--night); }

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--night);
}
.btn-light:hover { background: var(--blue-soft); color: var(--night); }

.btn-outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn-danger {
    background: transparent;
    border-color: var(--danger);
    color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-link {
    background: none;
    border: 0;
    padding: 0;
    min-height: 0;
    color: var(--night);
    text-decoration: underline;
    font-weight: 700;
}
.btn-link:hover { transform: none; color: var(--blue); }

.btn-block { display: flex; width: 100%; }

.btn-sm {
    padding: 8px 14px;
    min-height: 38px;
    font-size: .86rem;
    border-radius: 10px;
}

.btn-lg {
    padding: 15px 28px;
    min-height: 54px;
    font-size: 1.03rem;
    border-radius: 14px;
}

.btn[disabled],
.btn.is-disabled {
    opacity: .5;
    pointer-events: none;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* --------------------------------------------------------------------------
   7. Pill, badge, tag
   -------------------------------------------------------------------------- */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
a.pill:hover {
    background: #fff;
    border-color: var(--night);
    color: var(--night);
}
.pill-active,
.pill.is-active {
    background: var(--night);
    border-color: var(--night);
    color: #fff;
}
a.pill-active:hover,
a.pill.is-active:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.pill-count {
    font-size: .72rem;
    opacity: .7;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.5;
    white-space: nowrap;
}

.badge-sale {
    background: var(--night);
    color: #fff;
    padding: 5px 11px;
    font-size: .78rem;
    letter-spacing: .01em;
}
.badge-sale-soft {
    background: var(--blue-soft);
    color: var(--night);
}

.badge-featured {
    background: var(--blue-soft);
    color: var(--night);
}
.badge-new {
    background: var(--ok-soft);
    color: var(--ok);
}
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-ink { background: var(--ink); color: #fff; }

/* Stato ordine: nuova | confermata | pronta | consegnata | ritirata | annullata */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: var(--radius-pill);
    font-size: .76rem;
    font-weight: 800;
    text-transform: capitalize;
    background: var(--bg-soft);
    color: var(--muted);
    white-space: nowrap;
}
.badge-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}
.badge-status.is-nuova { background: var(--blue-soft); color: var(--blue); }
.badge-status.is-confermata { background: #E8ECFA; color: var(--night); }
.badge-status.is-pronta { background: var(--warn-soft); color: var(--warn); }
.badge-status.is-consegnata { background: var(--ok-soft); color: var(--ok); }
.badge-status.is-ritirata { background: var(--ok-soft); color: var(--ok); }
.badge-status.is-annullata { background: var(--danger-soft); color: var(--danger); }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--muted);
    background: #fff;
}

/* --------------------------------------------------------------------------
   8. Card generiche
   -------------------------------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.card-hover:hover,
a.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #DDE1E9;
}
.card-body { padding: 18px; }
.card-head {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-foot {
    padding: 14px 18px;
    border-top: 1px solid var(--line);
    background: var(--bg-soft);
}
.card-title { margin: 0; font-size: 1.05rem; }
.card-soft { background: var(--bg-soft); border-color: transparent; }
.card-flat { border-radius: var(--radius); border: 1px solid var(--line); }

@media (min-width: 640px) {
    .card-body { padding: 22px; }
}

/* --------------------------------------------------------------------------
   9. Monogramma negozio
   -------------------------------------------------------------------------- */
.shop-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--shop-color, var(--night));
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(11, 13, 18, .18);
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: uppercase;
    flex: 0 0 auto;
    line-height: 1;
    user-select: none;
}
.shop-mono-sm { width: 30px; height: 30px; font-size: .68rem; border-width: 1.5px; }
.shop-mono-lg { width: 64px; height: 64px; font-size: 1.32rem; border-width: 3px; }
.shop-mono-xl { width: 88px; height: 88px; font-size: 1.85rem; border-width: 4px; }

/* --------------------------------------------------------------------------
   10. Griglie
   -------------------------------------------------------------------------- */
.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
    .grid { gap: var(--gap); }
}

.grid-2 { grid-template-columns: minmax(0, 1fr); }
.grid-3 { grid-template-columns: minmax(0, 1fr); }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.grid-auto { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

@media (max-width: 419px) {
    .grid-4,
    .grid-auto,
    .grid-auto-sm { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
@media (min-width: 900px) {
    .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
    .split-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; }
    .split-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
}

/* --------------------------------------------------------------------------
   11. Hero
   -------------------------------------------------------------------------- */
.hero {
    background: var(--bg);
    padding: 40px 0 34px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: -18%;
    top: -55%;
    width: 70vw;
    height: 130%;
    background: radial-gradient(closest-side, var(--blue-soft), transparent 72%);
    pointer-events: none;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    background: var(--blue-soft);
    color: var(--night);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 18px;
}
.hero-title {
    margin: 0 0 16px;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.08;
}
.hero-accent { color: var(--night); }
.hero-accent-blue { color: var(--blue); }
.hero-sub {
    font-size: 1.06rem;
    color: var(--muted);
    max-width: 58ch;
    margin: 0 0 24px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.hero-actions .btn { flex: 1 1 auto; }
.hero-note {
    margin-top: 16px;
    font-size: .88rem;
    color: var(--muted);
}
.hero-center { text-align: center; }
.hero-center .hero-inner { margin: 0 auto; }
.hero-center .hero-sub { margin-left: auto; margin-right: auto; }
.hero-center .hero-actions { justify-content: center; }

@media (min-width: 640px) {
    .hero { padding: 62px 0 50px; }
    .hero-title { font-size: 3rem; }
    .hero-sub { font-size: 1.16rem; }
    .hero-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
    .hero { padding: 86px 0 68px; }
    .hero-title { font-size: 3.7rem; }
}
@media (min-width: 1200px) {
    .hero-title { font-size: 4.1rem; }
}

/* --------------------------------------------------------------------------
   12. Banner geolocalizzazione
   -------------------------------------------------------------------------- */
.geo-banner,
#geo-banner {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 26px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--night);
    font-size: .94rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.geo-banner.is-visible,
#geo-banner.is-visible {
    display: flex;
    opacity: 1;
    transform: none;
}
.geo-banner-icon { font-size: 1.05rem; line-height: 1; }
.geo-banner-text { margin: 0; flex: 1 1 auto; }
.geo-banner-dist {
    display: inline-block;
    margin-left: 6px;
    color: var(--blue);
    font-weight: 800;
}
.geo-banner-close {
    border: 0;
    background: none;
    color: var(--night);
    font-size: 1.3rem;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 8px;
    opacity: .6;
}
.geo-banner-close:hover { opacity: 1; background: rgba(22, 36, 95, .08); }

/* --------------------------------------------------------------------------
   13. Card prodotto
   La fotografia È la card: nessun bordo, nessuna ombra, angoli appena
   smussati, testi compatti sotto l'immagine. Rifiniture, zoom su hover e
   bottone "Aggiungi al carrello" in overlay: sezione 32.
   -------------------------------------------------------------------------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
}
.product-card:hover {
    transform: none;
    box-shadow: none;
}

.product-card-visual {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--card-radius);
    background: var(--bg-soft);
    overflow: hidden;
    isolation: isolate;
}

/* Link che copre l'intera foto. I bottoni (cuore, carrello) gli stanno
   sopra come fratelli: mai un <button> dentro un <a>. */
.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    display: block;
}
.product-card-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--shop-color, var(--night)) 0%, transparent 72%);
    opacity: .13;
    z-index: 0;
}
.product-card-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    text-transform: uppercase;
    color: var(--shop-color, var(--night));
    opacity: .22;
    text-align: center;
    line-height: 1.1;
    word-break: break-word;
    user-select: none;
}
.product-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transition: transform .4s ease;
}
.product-card-sale {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
}
.product-card-mono {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
}
.product-card-flag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 4;
    background: rgba(255, 255, 255, .94);
    color: var(--night);
}

.product-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 2px 0;
    flex: 1 1 auto;
}
.product-card-brand {
    margin: 0;
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}
.product-card-name,
.product-card-title {
    margin: 0;
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card-name a,
.product-card-title a { color: var(--ink); }
.product-card-name a:hover,
.product-card-title a:hover { color: var(--ink); text-decoration: underline; }
.product-card-shop {
    margin: 0;
    font-size: .72rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card-shop a { color: var(--muted); }
.product-card-shop a:hover { color: var(--ink); }
.product-card-sizes {
    margin: 0;
    font-size: .72rem;
    color: var(--muted);
}
.product-card-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex;
    gap: 8px;
}
.product-card-actions .btn { flex: 1 1 auto; }

/* Prezzi */
.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 2px 0 0;
}
.price-now {
    color: var(--night);
    font-weight: 800;
}
.price-old {
    font-size: .92rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: line-through;
}
.price-lg { font-size: 1.9rem; }
.price-lg .price-old { font-size: 1.05rem; }
.price-sm { font-size: 1rem; }
.price-sm .price-old { font-size: .82rem; }
.price-free { color: var(--ok); }

/* --------------------------------------------------------------------------
   14. Card negozio / card città
   -------------------------------------------------------------------------- */
.shop-card {
    display: flex;
    flex-direction: column;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
}
.shop-card:hover {
    transform: none;
    box-shadow: none;
}

/* Testata della card: la copertina del negozio, 16:10.
   `.shop-card-head` resta come alias del markup storico. */
.shop-card-cover,
.shop-card-head {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    min-height: 0;
    padding: 0;
    border-radius: var(--card-radius);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--shop-color, var(--night)) 0%, var(--night-deep) 130%);
}
.shop-card-cover::after,
.shop-card-head::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to top, rgba(11, 13, 18, .45) 0%, rgba(11, 13, 18, .06) 45%, transparent 70%);
    pointer-events: none;
}
.shop-card-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform .4s ease;
}
.shop-card:hover .shop-card-cover-img { transform: scale(1.03); }

/* Monogramma sovrapposto in basso a sinistra */
.shop-card-mono,
.shop-card-cover .shop-mono,
.shop-card-head .shop-mono {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 3;
    width: 46px;
    height: 46px;
    font-size: 1rem;
    border-width: 2px;
}
.shop-card-flag {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, .92);
    color: var(--night);
}
.shop-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 2px 0;
    flex: 1 1 auto;
}
.shop-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.01em;
}
.shop-card-title a { color: var(--ink); }
.shop-card-title a:hover { color: var(--night); }
.shop-card-tagline {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}
.shop-card-address {
    margin: 0;
    font-size: .84rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.shop-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    font-size: .8rem;
    color: var(--muted);
}
.shop-card-meta strong { color: var(--ink); }
.shop-card-actions {
    margin-top: auto;
    padding-top: 12px;
}

.city-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 210px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--night) 0%, var(--night-deep) 100%);
    color: #fff;
    overflow: hidden;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.city-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(110% 70% at 85% 5%, rgba(59, 91, 253, .45), transparent 62%);
    pointer-events: none;
}
.city-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.city-card > * { position: relative; z-index: 1; }
.city-card-province {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}
.city-card-name {
    margin: 6px 0 6px;
    font-size: 1.9rem;
    color: #fff;
    letter-spacing: -.03em;
}
.city-card-claim {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .78);
    font-size: .95rem;
}
.city-card-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
}
.city-card-count::after {
    content: " \2192";
    transition: transform .18s var(--ease);
}
.city-card:hover .city-card-count::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   15. Card evento
   -------------------------------------------------------------------------- */
.event-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 100%;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #DDE1E9;
}
.event-date {
    flex: 0 0 auto;
    width: 62px;
    border-radius: 14px;
    background: var(--night);
    color: #fff;
    text-align: center;
    padding: 10px 4px;
    align-self: flex-start;
    line-height: 1;
}
.event-date-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.event-date-month {
    display: block;
    margin-top: 4px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}
.event-date-year {
    display: block;
    margin-top: 2px;
    font-size: .62rem;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .08em;
}
.event-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.event-card-title {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: -.02em;
}
.event-card-title a { color: var(--ink); }
.event-card-title a:hover { color: var(--night); }
.event-card-meta {
    margin: 0;
    font-size: .84rem;
    color: var(--muted);
    font-weight: 600;
}
.event-card-text {
    margin: 0;
    font-size: .9rem;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   16. Hero negozio / pagina prodotto
   -------------------------------------------------------------------------- */
.shop-hero {
    position: relative;
    background: linear-gradient(135deg, var(--shop-color, var(--night)) 0%, var(--night-deep) 120%);
    color: #fff;
    padding: 34px 0;
    overflow: hidden;
}
.shop-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 90% at 88% 0%, rgba(255, 255, 255, .16), transparent 60%);
    pointer-events: none;
}
.shop-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.shop-hero-title {
    margin: 0;
    color: #fff;
    font-size: 2rem;
}
.shop-hero-tagline {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    max-width: 60ch;
}
.shop-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.shop-hero .pill {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

@media (min-width: 640px) {
    .shop-hero { padding: 48px 0; }
    .shop-hero-inner { flex-direction: row; align-items: center; gap: 24px; }
    .shop-hero-title { font-size: 2.6rem; }
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .94rem;
}
.info-item-label {
    display: block;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}
.info-item-value { color: var(--ink); }

.product-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 22px 0 10px;
}
@media (min-width: 900px) {
    .product-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        gap: 44px;
        padding: 32px 0 16px;
    }
}

.product-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--bg-soft);
    overflow: hidden;
    isolation: isolate;
}
.product-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--shop-color, var(--night)) 0%, transparent 70%);
    opacity: .14;
}
.product-visual-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    text-align: center;
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    text-transform: uppercase;
    color: var(--shop-color, var(--night));
    opacity: .2;
    line-height: 1.1;
    word-break: break-word;
}
.product-visual-mono {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
}
.product-visual-sale {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
}

.product-detail { display: flex; flex-direction: column; gap: 14px; }
.product-brand {
    margin: 0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.product-title {
    margin: 0;
    font-size: 2rem;
    letter-spacing: -.03em;
}
@media (min-width: 900px) {
    .product-title { font-size: 2.5rem; }
}
.product-shopline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--muted);
}
.product-desc { color: #2A2F3A; }

.delivery-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
    padding: 16px;
}
.delivery-title {
    margin: 0 0 10px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}
.delivery-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: .92rem;
}
.delivery-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.delivery-list li::before {
    content: "\2713";
    color: var(--ok);
    font-weight: 800;
    flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   17. Step "come funziona"
   -------------------------------------------------------------------------- */
.steps {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
    counter-reset: step;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 640px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
    .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.step {
    position: relative;
    padding: 22px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--night);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.step-title {
    margin: 0 0 6px;
    font-size: 1.08rem;
}
.step-text {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
}
.section-dark .step,
.section-night .step {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .14);
}
.section-dark .step-text,
.section-night .step-text { color: rgba(255, 255, 255, .74); }
.section-dark .step-num,
.section-night .step-num { background: rgba(255, 255, 255, .14); color: #fff; }

/* Elenco benefici */
.benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.benefit {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .97rem;
}
.benefit::before {
    content: "\2713";
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--night);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    margin-top: 2px;
}
.section-dark .benefit::before,
.section-night .benefit::before { background: rgba(255, 255, 255, .16); color: #fff; }

/* Fascia CTA */
.cta-band {
    border-radius: var(--radius-lg);
    background: linear-gradient(140deg, var(--night) 0%, var(--night-deep) 100%);
    color: #fff;
    padding: 30px 22px;
    position: relative;
    overflow: hidden;
}
.cta-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 90% at 90% 0%, rgba(59, 91, 253, .42), transparent 62%);
    pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2,
.cta-band h3 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .8); }
@media (min-width: 900px) {
    .cta-band { padding: 46px 44px; }
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 860px;
}
.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.faq-item[open] {
    border-color: #DDE1E9;
    box-shadow: var(--shadow-sm);
}
.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    list-style: none;
    color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: "+";
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--night);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.faq-item[open] > summary::after {
    content: "\2212";
    background: var(--blue-soft);
}
.faq-item > summary:hover { color: var(--night); }
.faq-answer {
    padding: 0 18px 18px;
    color: var(--muted);
    font-size: .96rem;
}

/* --------------------------------------------------------------------------
   19. Form
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 16px; }

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.field-row {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
    .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.label {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ink);
}
.label .required { color: var(--danger); }
.hint {
    font-size: .8rem;
    color: var(--muted);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 11px 14px;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: .97rem;
    line-height: 1.4;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.input::placeholder,
.textarea::placeholder { color: #9AA2B1; }

.input:hover,
.select:hover,
.textarea:hover { border-color: #D5DAE3; }

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--night);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
    background: var(--bg-soft);
    color: var(--muted);
    cursor: not-allowed;
}

.textarea {
    min-height: 118px;
    resize: vertical;
}

.select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea,
.input.has-error {
    border-color: var(--danger);
    background: var(--danger-soft);
}

.form-error {
    display: block;
    color: var(--danger);
    font-size: .84rem;
    font-weight: 600;
}
.form-error:empty { display: none; }

.form-errors {
    border: 1px solid var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: .9rem;
}
.form-errors ul { margin: 0; padding-left: 1.1em; }

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.form-note {
    font-size: .82rem;
    color: var(--muted);
}

/* Checkbox / radio classici */
.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .93rem;
    cursor: pointer;
    line-height: 1.45;
}
.check input[type="checkbox"],
.check input[type="radio"] {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: var(--night);
    cursor: pointer;
}
.checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Preferenze: checkbox a pillola */
.check-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.check-pill {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.check-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.check-pill > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    transition: all .18s var(--ease);
}
.check-pill:hover > span { border-color: var(--night); color: var(--night); }
.check-pill input:checked + span {
    background: var(--night);
    border-color: var(--night);
    color: #fff;
}
.check-pill input:focus-visible + span {
    box-shadow: 0 0 0 4px var(--blue-soft);
}

/* Radio-card: ritiro in negozio / rider */
.radio-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
    .radio-cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.radio-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .18s var(--ease), background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.radio-card:hover { border-color: #C9D0DC; }
.radio-card-input {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    accent-color: var(--night);
    cursor: pointer;
}
.radio-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.radio-card-title {
    font-weight: 700;
    font-size: .98rem;
    color: var(--ink);
}
.radio-card-desc {
    font-size: .84rem;
    color: var(--muted);
}
.radio-card-price {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: .95rem;
    color: var(--night);
    white-space: nowrap;
}
.radio-card-price.is-free { color: var(--ok); }
.radio-card.is-selected,
.radio-card:has(.radio-card-input:checked) {
    border-color: var(--night);
    background: var(--blue-soft);
    box-shadow: 0 0 0 1px var(--night) inset;
}

/* Indirizzo rider: mostrato via JS */
.rider-address {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}
.rider-address[hidden] { display: none; }

/* --------------------------------------------------------------------------
   20. Tabelle
   -------------------------------------------------------------------------- */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    min-width: 620px;
}
.table th,
.table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.table thead th {
    background: var(--bg-soft);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFCFD; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }
.table-compact th,
.table-compact td { padding: 8px 12px; font-size: .88rem; }
.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.table caption {
    caption-side: top;
    text-align: left;
    padding: 12px 14px;
    font-weight: 700;
    color: var(--muted);
    font-size: .85rem;
}

/* --------------------------------------------------------------------------
   21. Carrello
   -------------------------------------------------------------------------- */
.cart-layout {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding-bottom: 10px;
}
@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
        gap: 30px;
    }
    .cart-aside { position: sticky; top: calc(var(--header-h) + 20px); }
}

.cart-group {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    margin-bottom: 18px;
}
.cart-group:last-child { margin-bottom: 0; }
.cart-group-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}
.cart-group-title {
    margin: 0;
    font-size: 1.02rem;
    letter-spacing: -.02em;
}
.cart-group-city {
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
}
.cart-group-body { padding: 6px 16px; }
.cart-group-foot {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.cart-rows { display: flex; flex-direction: column; }
.cart-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row-info { min-width: 0; grid-column: 1 / -1; }
.cart-row-name {
    margin: 0;
    font-weight: 700;
    font-size: .98rem;
    letter-spacing: -.01em;
}
.cart-row-name a { color: var(--ink); }
.cart-row-name a:hover { color: var(--night); }
.cart-row-meta {
    margin: 2px 0 0;
    font-size: .82rem;
    color: var(--muted);
}
.cart-row-qty { justify-self: start; }
.cart-row-price {
    justify-self: end;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.cart-row-remove {
    justify-self: end;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: underline;
    padding: 4px 0;
}
.cart-row-remove:hover { color: var(--danger); }

@media (min-width: 640px) {
    .cart-row {
        grid-template-columns: minmax(0, 1fr) auto auto auto;
        gap: 16px;
    }
    .cart-row-info { grid-column: auto; }
}

.cart-summary {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 18px;
}
.cart-summary-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
}
.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 7px 0;
    font-size: .93rem;
    color: var(--muted);
}
.cart-summary-row strong { color: var(--ink); font-weight: 700; }
.cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 1.02rem;
    font-weight: 800;
}
.cart-total-value {
    font-size: 1.55rem;
    letter-spacing: -.03em;
    color: var(--night);
    font-variant-numeric: tabular-nums;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.qty-btn {
    width: 36px;
    height: 40px;
    border: 0;
    background: #fff;
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.qty-btn:hover { background: var(--bg-soft); color: var(--night); }
.qty-btn[disabled] { opacity: .35; cursor: not-allowed; }
.qty-input {
    width: 46px;
    height: 40px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    text-align: center;
    font-weight: 800;
    font-size: .95rem;
    background: #fff;
    -moz-appearance: textfield;
    appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input:focus { outline: none; background: var(--blue-soft); }

/* Codice ordine (stile "codice ritiro") */
.order-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 2px dashed var(--night);
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--night);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
}
.order-code-lg { font-size: 2rem; padding: 16px 28px; }
.order-code-sm {
    font-size: .95rem;
    padding: 5px 12px;
    border-width: 1px;
    border-style: solid;
    letter-spacing: .08em;
}

.order-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    margin-bottom: 16px;
}
.order-card:last-child { margin-bottom: 0; }
.order-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-soft);
}
.order-head-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.order-title { margin: 0; font-size: 1rem; }
.order-date { font-size: .82rem; color: var(--muted); }
.order-body { padding: 16px; }
.order-items {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .92rem;
}
.order-items li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.order-items .order-item-qty { color: var(--muted); }
.order-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-weight: 800;
}

.success-box {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 24px 20px;
    text-align: center;
}
.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ok-soft);
    color: var(--ok);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 14px;
}
@media (min-width: 640px) {
    .success-box { padding: 36px 32px; }
}

/* --------------------------------------------------------------------------
   22. Stato vuoto
   -------------------------------------------------------------------------- */
.empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 44px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}
.empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--muted);
}
.empty-title {
    margin: 6px 0 0;
    font-size: 1.15rem;
}
.empty-text {
    margin: 0;
    color: var(--muted);
    max-width: 46ch;
    font-size: .95rem;
}
.empty .btn { margin-top: 8px; }
.empty-sm { padding: 26px 16px; }

/* --------------------------------------------------------------------------
   23. KPI dashboard
   -------------------------------------------------------------------------- */
.kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
}
@media (min-width: 900px) {
    .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
.kpi {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.kpi-label {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--muted);
}
.kpi-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.kpi-hint {
    font-size: .8rem;
    color: var(--muted);
}
.kpi-accent .kpi-value { color: var(--night); }
.kpi-ok .kpi-value { color: var(--ok); }
.kpi-danger .kpi-value { color: var(--danger); }

.dash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 26px 0 18px;
}
.dash-head-text { min-width: 0; }
.dash-head-title { margin: 0; font-size: 1.6rem; }
.dash-head-sub { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.dash-head-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   24. Tabs
   -------------------------------------------------------------------------- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
    position: relative;
    flex: 0 0 auto;
    border: 0;
    background: none;
    padding: 12px 16px;
    font-size: .95rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .18s var(--ease), border-color .18s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active {
    color: var(--night);
    border-bottom-color: var(--night);
}
.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
}
.tab.is-active .tab-badge { background: var(--blue-soft); color: var(--night); }

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: tab-in .22s var(--ease); }

@keyframes tab-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   25. Alert / toast
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    font-size: .93rem;
    color: var(--ink);
}
.alert-ok { background: var(--ok-soft); border-color: #CDE9E0; color: #0B5C43; }
.alert-danger { background: var(--danger-soft); border-color: #F1CBD1; color: #8E1B2C; }
.alert-info { background: var(--blue-soft); border-color: #DCE3FF; color: var(--night); }
.alert-warn { background: var(--warn-soft); border-color: #F0E0BE; color: #7A5500; }

/* Contenitore fisso del mini-toast carrello (#cart-feedback) */
#cart-feedback {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s var(--ease), transform .25s var(--ease);
}
#cart-feedback.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
#cart-feedback:empty { display: none; }

@media (min-width: 640px) {
    #cart-feedback {
        left: auto;
        right: 20px;
        bottom: 20px;
        width: 340px;
    }
}
@media (min-width: 900px) {
    #cart-feedback { bottom: 92px; }
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-lg);
    font-size: .92rem;
}
.toast-icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
}
.toast-body { min-width: 0; flex: 1 1 auto; }
.toast-title {
    margin: 0;
    font-weight: 800;
    font-size: .95rem;
    color: #fff;
}
.toast-text {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: .86rem;
}
.toast-link {
    display: inline-block;
    margin-top: 6px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}
.toast-link:hover { color: #C7D2FF; }
.toast-ok { background: var(--ok); }
.toast-danger { background: var(--danger); }

/* --------------------------------------------------------------------------
   26. Chat widget "Cleo"
   -------------------------------------------------------------------------- */
#chat-widget {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: var(--z-chat);
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.chat-fab {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 52px;
    padding: 0 20px 0 16px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--night);
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    box-shadow: var(--shadow-lg);
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.chat-fab:hover { background: var(--blue); transform: translateY(-2px); }
.chat-fab-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#chat-widget.is-open .chat-fab { display: none; }

.chat-panel {
    display: none;
    flex-direction: column;
    width: 370px;
    max-width: calc(100vw - 32px);
    height: 540px;
    max-height: calc(100vh - 32px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
#chat-widget.is-open .chat-panel {
    display: flex;
    animation: chat-in .22s var(--ease);
}

@keyframes chat-in {
    from { opacity: 0; transform: translateY(10px) scale(.99); }
    to { opacity: 1; transform: none; }
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 14px 16px;
    background: var(--night);
    color: #fff;
    flex: 0 0 auto;
}
.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    flex: 0 0 auto;
}
.chat-header-text { min-width: 0; flex: 1 1 auto; }
.chat-title {
    margin: 0;
    font-size: .96rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
}
.chat-sub {
    margin: 0;
    font-size: .76rem;
    color: rgba(255, 255, 255, .68);
}
.chat-close,
.chat-reset {
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    line-height: 1;
    flex: 0 0 auto;
}
.chat-close:hover,
.chat-reset:hover { background: rgba(255, 255, 255, .24); }
.chat-reset { font-size: .85rem; }

.chat-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.chat-msg {
    display: flex;
    max-width: 88%;
}
.chat-msg-bot { align-self: flex-start; }
.chat-msg-user { align-self: flex-end; }

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .92rem;
    line-height: 1.5;
    word-break: break-word;
}
.chat-msg-bot .chat-bubble {
    background: var(--blue-soft);
    color: var(--ink);
    border-bottom-left-radius: 6px;
}
.chat-msg-user .chat-bubble {
    background: var(--bg-soft);
    color: var(--ink);
    border-bottom-right-radius: 6px;
}
.chat-bubble a { color: var(--night); text-decoration: underline; }
.chat-bubble p { margin: 0 0 .5em; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble ul { padding-left: 1.1em; margin: .3em 0; }

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 16px 12px;
    flex: 0 0 auto;
}
.chat-chip {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 7px 13px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--muted);
    transition: all .16s var(--ease);
}
.chat-chip:hover {
    border-color: var(--night);
    color: var(--night);
    background: var(--blue-soft);
}
.chat-chips[hidden] { display: none; }

.chat-typing {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 0 16px 10px;
    flex: 0 0 auto;
}
.chat-typing.is-visible { display: flex; }
.chat-typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: var(--blue-soft);
    border-radius: 16px;
    border-bottom-left-radius: 6px;
}
.chat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--night);
    opacity: .4;
    animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-dot:nth-child(2) { animation-delay: .18s; }
.chat-dot:nth-child(3) { animation-delay: .36s; }

@keyframes chat-dot {
    0%, 60%, 100% { opacity: .3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.chat-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: #fff;
    flex: 0 0 auto;
}
.chat-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    font-size: .92rem;
}
.chat-input:focus {
    outline: none;
    border-color: var(--night);
    background: #fff;
    box-shadow: 0 0 0 3px var(--blue-soft);
}
.chat-send {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--night);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .18s var(--ease);
}
.chat-send:hover { background: var(--blue); }
.chat-send svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chat-footnote {
    padding: 0 14px 10px;
    font-size: .7rem;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 639px) {
    #chat-widget.is-open {
        inset: 0;
        right: 0;
        bottom: 0;
        align-items: stretch;
        gap: 0;
    }
    #chat-widget.is-open .chat-panel {
        max-width: none;
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        border: 0;
    }
}

@media (min-width: 900px) {
    #chat-widget { right: 20px; bottom: 20px; }
}

/* --------------------------------------------------------------------------
   27. Reveal on scroll
   -------------------------------------------------------------------------- */
.reveal { opacity: 1; }
html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
    will-change: opacity, transform;
}
html.js .reveal.is-revealed {
    opacity: 1;
    transform: none;
}
html.js .reveal-d1 { transition-delay: .07s; }
html.js .reveal-d2 { transition-delay: .14s; }
html.js .reveal-d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* --------------------------------------------------------------------------
   28. Utility
   -------------------------------------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.strong { font-weight: 800; }
.center { text-align: center; }
.right { text-align: right; }
.left { text-align: left; }
.nowrap { white-space: nowrap; }
.uppercase { text-transform: uppercase; letter-spacing: .08em; }
.tnum { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-ink { color: var(--ink); }
.text-night { color: var(--night); }
.text-blue { color: var(--blue); }
.text-ok { color: var(--ok); }
.text-danger { color: var(--danger); }
.text-white { color: #fff; }

.bg-soft { background: var(--bg-soft); }
.bg-white { background: #fff; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 26px; }

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.row-sm { gap: 6px; }
.row-lg { gap: 18px; }
.row-top { align-items: flex-start; }
.between { justify-content: space-between; }
.middle { align-items: center; }
.wrap-none { flex-wrap: nowrap; }
.fill { flex: 1 1 auto; min-width: 0; }
.push-right { margin-left: auto; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 36px !important; }
.mt-5 { margin-top: 52px !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.mb-4 { margin-bottom: 36px !important; }
.mb-5 { margin-bottom: 52px !important; }

.hide { display: none !important; }

@media (max-width: 899px) {
    .hide-mobile { display: none !important; }
}
@media (min-width: 900px) {
    .hide-desktop { display: none !important; }
}

/* --------------------------------------------------------------------------
   29. Integrazione framework AJAX Winter
   -------------------------------------------------------------------------- */
.wn-loading,
.oc-loading {
    cursor: progress;
    opacity: .65;
}
.wn-loading::after,
.oc-loading::after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.stripe-loading-indicator .stripe,
.stripe-loading-indicator .stripe-loaded { background: var(--blue) !important; }

/* Messaggi di validazione del framework */
[data-validate-error] {
    display: block;
    color: var(--danger);
    font-size: .84rem;
    font-weight: 600;
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   30. Stampa
   -------------------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    #chat-widget,
    #cart-feedback,
    .btn,
    .geo-banner { display: none !important; }
    body { color: #000; }
    .card, .order-card, .cart-group { border-color: #999; box-shadow: none; }
}

/* --------------------------------------------------------------------------
   31. Catalogo e filtri
   Barra filtri sticky (chip + pannelli a discesa), toolbar conteggio,
   griglia catalogo, bottone "mostra altri" e cuore preferiti sulle card.
   Usata dal componente `catalog` (#catalog / #catalog-filters /
   #catalog-count / #catalog-grid / #catalog-more).
   -------------------------------------------------------------------------- */

/* Striscia introduttiva compatta della home (sostituisce l'hero alto) */
.intro-strip {
    padding: 18px 0 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.intro-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.intro-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.12;
}
.intro-title .intro-accent { color: var(--night); }
.intro-claim {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
    max-width: 60ch;
}
.intro-claim strong { color: var(--ink); font-weight: 700; }
.intro-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0;
    font-size: .86rem;
    font-weight: 700;
}
.intro-links a { color: var(--night); }
.intro-links a:hover { color: var(--blue); }
.intro-strip .geo-banner,
.intro-strip #geo-banner { margin-top: 12px; }

@media (min-width: 900px) {
    .intro-strip { padding: 22px 0 18px; }
    .intro-strip-inner {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 26px;
    }
    .intro-title { font-size: 1.75rem; flex: 0 1 auto; }
    .intro-claim { flex: 1 1 320px; text-align: right; }
    .intro-links { flex: 0 0 auto; }
    .intro-strip .geo-banner,
    .intro-strip #geo-banner { flex: 1 1 100%; margin-top: 6px; }
}

/* Sezione catalogo ------------------------------------------------------- */
#catalog { padding-bottom: 8px; }

/* Barra dei filtri ------------------------------------------------------- */
.filter-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--line);
    /* Allinea i chip alla colonna del sito anche senza .wrap interno */
    padding-left: max(18px, calc((100% - var(--wrap)) / 2));
    padding-right: max(18px, calc((100% - var(--wrap)) / 2));
}
@media (min-width: 900px) {
    .filter-bar {
        padding-left: max(28px, calc((100% - var(--wrap)) / 2));
        padding-right: max(28px, calc((100% - var(--wrap)) / 2));
    }
}
.filter-bar:has(> .wrap) { padding-left: 0; padding-right: 0; }
.filter-bar,
.filter-bar > .wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
}
/* Se il markup annida un .wrap dentro la barra, la spaziatura verticale
   resta sulla barra e il .wrap fa da riga flessibile a larghezza massima. */
.filter-bar > .wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0;
    padding-bottom: 0;
}

/* Su mobile la barra scorre in orizzontale, senza scrollbar visibile */
@media (max-width: 899px) {
    .filter-bar,
    .filter-bar > .wrap {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
    }
    .filter-bar::-webkit-scrollbar,
    .filter-bar > .wrap::-webkit-scrollbar { display: none; height: 0; }
}
@media (min-width: 900px) {
    .filter-bar,
    .filter-bar > .wrap { flex-wrap: wrap; row-gap: 8px; }
}

/* Gruppo chip + pannello */
.filter-group {
    position: relative;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

/* Chip ------------------------------------------------------------------- */
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .18s var(--ease), background-color .18s var(--ease),
                color .18s var(--ease), box-shadow .18s var(--ease);
}
.filter-chip:hover { border-color: #C9CFDB; background: var(--bg-soft); }
.filter-chip:focus-visible {
    outline: none;
    border-color: var(--night);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.filter-chip-caret {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .65;
    transition: transform .2s var(--ease);
}
span.filter-chip-caret,
i.filter-chip-caret {
    width: auto;
    height: auto;
    font-size: .66rem;
    line-height: 1;
}
.filter-chip.is-open .filter-chip-caret { transform: rotate(180deg); }

.filter-chip-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: var(--night);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.filter-chip.is-active {
    border-color: var(--night);
    color: var(--night);
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--night);
}
.filter-chip.is-active:hover { background: var(--blue-soft); }

.filter-chip.is-open {
    border-color: var(--night);
    background: var(--bg-soft);
}

/* Chip toggle "Solo offerte" già attivo: pieno */
.filter-chip.is-toggle.is-active {
    background: var(--night);
    border-color: var(--night);
    color: #fff;
    box-shadow: none;
}
.filter-chip.is-toggle.is-active:hover { background: var(--blue); border-color: var(--blue); }

/* Ordinamento: spinto a destra sul desktop */
@media (min-width: 900px) {
    .catalog-sort { margin-left: auto; }
}

/* Pannello a discesa ------------------------------------------------------ */
.filter-panel {
    display: none;
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 55;
    min-width: 260px;
    max-width: 360px;
    max-height: min(64vh, 430px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
}
.filter-panel[hidden] { display: none; }
.filter-panel.is-open {
    display: block;
    animation: filter-panel-in .16s var(--ease);
}
@keyframes filter-panel-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* Se il chip è vicino al bordo destro, il pannello si allinea a destra */
.filter-group:last-child .filter-panel,
.filter-panel.is-right { left: auto; right: 0; }

.filter-panel-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
}
.filter-panel-title {
    margin: 0;
    padding: 4px 8px 8px;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Foglio a tutta larghezza su mobile */
@media (max-width: 899px) {
    .filter-panel {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        min-width: 0;
        max-width: none;
        max-height: 72vh;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 18px 18px 0 0;
        box-shadow: var(--shadow-lg);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .filter-panel.is-open { animation: filter-sheet-in .2s var(--ease); }
    .filter-panel.is-open::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        background: rgba(11, 13, 18, .38);
    }
    .filter-panel-inner { padding: 14px 16px; gap: 2px; }
    /* Si anima `bottom` e non `transform`: un transform sul pannello
       renderebbe il suo backdrop (::before, position: fixed) relativo al
       pannello stesso invece che alla viewport. */
    @keyframes filter-sheet-in {
        from { bottom: -14px; opacity: .55; }
        to { bottom: 0; opacity: 1; }
    }
}

/* Opzione con checkbox --------------------------------------------------- */
.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: .93rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .14s var(--ease);
}
.filter-option:hover { background: var(--bg-soft); }
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin: 0;
    border: 1.5px solid #C4CAD6;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.filter-option input[type="radio"] { border-radius: 50%; }
.filter-option input[type="checkbox"]:checked,
.filter-option input[type="radio"]:checked {
    background-color: var(--night);
    border-color: var(--night);
}
.filter-option input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.4 3.4L11 1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}
.filter-option input[type="radio"]:checked {
    box-shadow: inset 0 0 0 3.5px #fff;
}
.filter-option input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--blue-soft);
}
.filter-option-label,
.filter-option > span:first-of-type { min-width: 0; }
.filter-option-count,
.filter-option .count,
.filter-option small {
    margin-left: auto;
    padding-left: 8px;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.filter-option.is-disabled,
.filter-option input[disabled] { opacity: .45; cursor: not-allowed; }

/* Intervallo di prezzo ---------------------------------------------------- */
.filter-range {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 9px 10px;
}
.filter-range input {
    width: 100%;
    min-width: 0;
    padding: 9px 11px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: .93rem;
    -webkit-appearance: none;
    appearance: none;
}
.filter-range input::-webkit-outer-spin-button,
.filter-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.filter-range input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.filter-range input:focus {
    outline: none;
    border-color: var(--night);
    box-shadow: 0 0 0 4px var(--blue-soft);
}
.filter-range-sep {
    flex: 0 0 auto;
    color: var(--muted);
    font-weight: 700;
}

/* Azioni del pannello ----------------------------------------------------- */
.filter-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 10px;
    border-top: 1px solid var(--line);
    background: #fff;
}
.filter-actions .btn { flex: 1 1 auto; }
.filter-reset {
    flex: 0 0 auto;
    padding: 8px 4px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.filter-reset:hover { color: var(--night); }

/* Filtri attivi ----------------------------------------------------------- */
.filter-active-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}
.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px 5px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--bg-soft);
    color: var(--ink);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.filter-tag:hover { background: #fff; border-color: var(--night); color: var(--night); }
.filter-tag::after {
    content: "\00d7";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(11, 13, 18, .08);
    font-size: .92rem;
    line-height: 1;
}
.filter-tag:hover::after { background: var(--night); color: #fff; }
/* Se il markup include già una × esplicita, non raddoppiarla */
.filter-tag:has(.filter-tag-x)::after { content: none; }
.filter-tag-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(11, 13, 18, .08);
    font-size: .92rem;
    line-height: 1;
}

/* Toolbar e conteggio ----------------------------------------------------- */
.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 16px;
}
.catalog-count {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}
.catalog-count strong,
.catalog-count b {
    color: var(--ink);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
#catalog-count { min-height: 24px; }

/* Griglia ----------------------------------------------------------------- */
#catalog-grid {
    align-items: stretch;
    transition: opacity .18s var(--ease);
}
#catalog-grid.is-loading { opacity: .45; pointer-events: none; }
/* Il numero di colonne è definito nella sezione 32 (2/3/4/5). */

.catalog-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: var(--bg-soft);
}

/* Paginazione / mostra altri ---------------------------------------------- */
.pager {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}
#catalog-more:empty { display: none; }

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 340px;
    padding: 13px 26px;
    min-height: 50px;
    border: 1px solid var(--ink);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .18s var(--ease), color .18s var(--ease),
                border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-more:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: var(--shadow-sm);
    transform: none;
}
.btn-more[disabled],
.btn-more.is-disabled { opacity: .5; pointer-events: none; }

/* Preferiti (cuore sulla card prodotto) ----------------------------------- */
.wish-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    cursor: pointer;
    box-shadow: var(--shadow-xs);
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .16s var(--ease), color .16s var(--ease),
                border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.wish-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}
.wish-btn:hover {
    background: #fff;
    color: var(--night);
    border-color: #D5DAE3;
    box-shadow: var(--shadow-sm);
}
.wish-btn:focus-visible {
    outline: none;
    border-color: var(--night);
    box-shadow: 0 0 0 4px var(--blue-soft);
}
.wish-btn.is-on {
    color: var(--danger);
    border-color: rgba(192, 39, 60, .35);
    background: #fff;
}
.wish-btn.is-on svg { fill: currentColor; stroke: currentColor; }
.wish-btn.is-pop { animation: wish-pop .34s var(--ease); }
@keyframes wish-pop {
    0% { transform: scale(1); }
    42% { transform: scale(1.24); }
    100% { transform: scale(1); }
}

/* Contatore preferiti nell'header (se presente) */
#wish-count:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
    .filter-panel.is-open,
    .wish-btn.is-pop { animation: none; }
}

@media print {
    .filter-bar,
    .filter-active-list,
    .wish-btn,
    .btn-more,
    .pager { display: none !important; }
}

/* ==========================================================================
   32. Restyling store
   Passaggio da "sito di quartiere" a store di moda: la fotografia è la
   protagonista, l'interfaccia si fa da parte. Nessun colore nuovo rispetto
   alla palette delle sezioni 1–31: solo bianco, neri, grigi, blu notte e
   il rosso `--danger` sui prezzi scontati.

   Qui vivono anche le classi usate dagli altri template del tema
   (menu città, elenco città, pagina prodotto, hero negozio, miniature):
   la definizione è unica e sta in questo file.

     32.1  Ritmo generale e tipografia
     32.2  Header basso
     32.3  Menu città nell'header
     32.4  Barra filtri sobria
     32.5  Griglia prodotti 2/3/4/5
     32.6  Card prodotto: foto, badge, cuore, bottone in overlay
     32.7  Card negozio
     32.8  Hero negozio con copertina
     32.9  Pagina prodotto (.pdp)
     32.10 Pagina elenco città (.city-index)
     32.11 Miniature nelle tabelle e nelle righe (.thumb)
     32.12 Accessibilità, movimento ridotto, stampa
   ========================================================================== */

/* --------------------------------------------------------------------------
   32.1 Ritmo generale e tipografia
   Titoli di sezione piccoli e in maiuscoletto, meno ombre, meno bordi.
   -------------------------------------------------------------------------- */
.section-title {
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
}
.section-sub { font-size: .88rem; }
.section-link {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
}
.section-head { margin-bottom: 18px; }

@media (min-width: 640px) {
    .section-title { font-size: 1rem; }
    .section-head { margin-bottom: 22px; }
}

/* Occhiello ripetuto sopra i titoli di sezione */
.eyebrow {
    display: block;
    margin: 0 0 6px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Contenitore largo, riutilizzabile fuori dal catalogo */
.wrap-wide {
    width: 100%;
    max-width: var(--wrap-wide);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 900px) {
    .wrap-wide { padding: 0 24px; }
}

/* --------------------------------------------------------------------------
   32.2 Header basso
   -------------------------------------------------------------------------- */
.site-header { border-bottom: 1px solid rgba(11, 13, 18, .08); }
.header-inner { gap: 10px; }
.brand-text { font-size: 1.15rem; }
.brand-dot { width: 6px; height: 6px; }

.cart-link,
.acct-toggle {
    height: 38px;
    border-radius: 10px;
    font-size: .84rem;
    font-weight: 600;
}
.cart-link:hover,
.acct-toggle:hover { box-shadow: none; border-color: var(--ink); color: var(--ink); }
.nav-toggle { width: 38px; height: 38px; border-radius: 10px; }
.acct-avatar { width: 24px; height: 24px; font-size: .68rem; }

@media (min-width: 900px) {
    .nav-link {
        padding: 8px 10px;
        font-size: .76rem;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        border-radius: 0;
    }
    .nav-link:hover { background: none; color: var(--ink); }
    .nav-link.is-active {
        background: none;
        color: var(--ink);
        box-shadow: inset 0 -2px 0 var(--ink);
    }
}
@media (min-width: 1200px) {
    .nav-link { padding: 8px 12px; font-size: .78rem; }
}

/* --------------------------------------------------------------------------
   32.3 Menu città nell'header
   Markup previsto (una voce sola al posto dei link città cablati):

     <li class="city-menu" data-city-menu>
       <button class="city-menu-toggle" aria-expanded="false">Città</button>
       <div class="city-menu-panel">
         <div class="city-menu-region">
           <p class="city-menu-region-title">Marche</p>
           <ul class="city-menu-list">
             <li><a class="city-menu-link" href="…">Fano <span>12</span></a></li>
           </ul>
         </div>
         <div class="city-menu-footer"><a href="/citta">Tutte le città</a></div>
       </div>
     </li>

   Funziona sia con `.is-open` messo dal JS, sia con
   `aria-expanded="true"` sul toggle, sia con <details class="city-menu">.
   -------------------------------------------------------------------------- */
.city-menu { position: relative; }

.city-menu-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 12px 12px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    list-style: none;
    -webkit-appearance: none;
    appearance: none;
}
.city-menu-toggle::-webkit-details-marker { display: none; }
.city-menu-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: auto;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .55;
    transition: transform .2s var(--ease);
}
.city-menu-toggle:hover { background: var(--bg-soft); }

.city-menu-panel { display: none; }
.city-menu.is-open .city-menu-panel,
.city-menu[open] .city-menu-panel,
.city-menu .city-menu-toggle[aria-expanded="true"] ~ .city-menu-panel { display: block; }

.city-menu.is-open > .city-menu-toggle::after,
.city-menu[open] > .city-menu-toggle::after,
.city-menu .city-menu-toggle[aria-expanded="true"]::after {
    transform: translateY(1px) rotate(225deg);
}

.city-menu-region + .city-menu-region { margin-top: 14px; }
.city-menu-region-title,
.city-menu-region > h3,
.city-menu-region > p:first-child {
    margin: 0 0 6px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.city-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.city-menu-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .92rem;
    font-weight: 500;
}
.city-menu-link:hover { background: var(--bg-soft); color: var(--ink); }
.city-menu-link .city-menu-count,
.city-menu-link span:last-child:not(:first-child) {
    color: var(--muted);
    font-size: .74rem;
    font-variant-numeric: tabular-nums;
}

.city-menu-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}
.city-menu-footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
}
.city-menu-footer a::after {
    content: "\2192";
    transition: transform .18s var(--ease);
}
.city-menu-footer a:hover::after { transform: translateX(3px); }

/* Mobile: dentro il menu a scomparsa è un semplice elenco rientrato */
@media (max-width: 899px) {
    .city-menu-panel { padding: 2px 0 8px 10px; }
    .city-menu-region + .city-menu-region { margin-top: 10px; }
    .city-menu-footer { margin-left: 10px; }
}

/* Desktop: pannello a discesa, stessa grammatica del menu account */
@media (min-width: 900px) {
    .city-menu-toggle {
        width: auto;
        padding: 8px 10px;
        font-size: .76rem;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        border-radius: 0;
    }
    .city-menu-toggle::after { margin-left: 4px; }
    .city-menu.is-open > .city-menu-toggle,
    .city-menu[open] > .city-menu-toggle,
    .city-menu .city-menu-toggle[aria-expanded="true"] {
        background: none;
        box-shadow: inset 0 -2px 0 var(--ink);
    }
    .city-menu-panel {
        position: absolute;
        left: 0;
        top: calc(100% + 10px);
        z-index: var(--z-nav);
        width: min(560px, 78vw);
        max-height: min(70vh, 480px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 14px 16px 12px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow-md);
    }
    .city-menu-region + .city-menu-region { margin-top: 16px; }
    .city-menu-list {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 6px;
    }
}

/* --------------------------------------------------------------------------
   32.4 Barra filtri sobria
   Solo bianco e una hairline in basso. Chip senza bordo, etichette in
   maiuscoletto, sottolineatura nera di 2px sull'attivo.
   -------------------------------------------------------------------------- */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid rgba(11, 13, 18, .08);
    gap: 2px;
}
.filter-bar,
.filter-bar > .wrap { padding-top: 6px; padding-bottom: 6px; }
.filter-bar > .wrap { padding-top: 0; padding-bottom: 0; }

/* Dentro il catalogo la barra è già dentro una .wrap: niente doppio rientro */
#catalog .filter-bar { padding-left: 0; padding-right: 0; }

.filter-chip {
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: inset 0 -2px 0 transparent;
    transition: box-shadow .18s var(--ease), color .18s var(--ease), opacity .18s var(--ease);
}
.filter-chip:hover {
    background: none;
    border: 0;
    box-shadow: inset 0 -2px 0 var(--line);
}
.filter-chip:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
    border: 0;
    box-shadow: none;
}
.filter-chip.is-active,
.filter-chip.is-open {
    background: none;
    border: 0;
    color: var(--ink);
    box-shadow: inset 0 -2px 0 var(--ink);
}
.filter-chip.is-active:hover,
.filter-chip.is-open:hover { background: none; }

.filter-chip-label {
    text-transform: uppercase;
    letter-spacing: inherit;
}
.filter-chip-caret {
    width: 9px;
    height: 9px;
    stroke-width: 1.8;
    opacity: .5;
}
.filter-chip-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--ink);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
}

/* "Solo offerte": unico chip pieno, resta riconoscibile a colpo d'occhio */
.filter-chip-toggle,
.filter-chip.is-toggle {
    border-radius: var(--radius-pill);
    padding: 8px 13px;
}
.filter-chip-toggle.is-active,
.filter-chip.is-toggle.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: none;
}
.filter-chip-toggle.is-active:hover,
.filter-chip.is-toggle.is-active:hover { background: var(--night); border-color: var(--night); }
.filter-chip-toggle:hover,
.filter-chip.is-toggle:hover { box-shadow: none; background: var(--bg-soft); }
/* Rete di sicurezza: il chip resta pieno finché la casella è spuntata,
   anche prima che il JS riscriva le classi. */
.filter-chip-toggle:has(input:checked) {
    background: var(--ink);
    color: #fff;
    box-shadow: none;
}
/* La casella è .sr-only: il focus deve vedersi sull'etichetta */
.filter-chip:has(input:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Il pannello a discesa resta quello della sezione 31, appena più asciutto */
.filter-panel { border-radius: 10px; }
.filter-panel-title { letter-spacing: .12em; }
.filter-option-empty {
    margin: 0;
    padding: 8px 9px 12px;
    font-size: .86rem;
    color: var(--muted);
}
.filter-range-hint {
    margin: 0;
    padding: 0 9px 10px;
    font-size: .78rem;
    color: var(--muted);
}
.filter-panel-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
}
.filter-option-size { justify-content: center; text-align: center; }
.filter-option-size .filter-option-count { display: none; }

.filter-tag-label { min-width: 0; }
.filter-tag-remove { display: none; }
.filter-tag-clear { background: none; border-color: transparent; color: var(--muted); }
.filter-tag-clear::after { content: none; }
.filter-tag-clear:hover { background: none; color: var(--ink); text-decoration: underline; }

/* Riga di conteggio: piccola, grigia, allineata a sinistra sopra la griglia */
.catalog-toolbar {
    justify-content: flex-start;
    margin: 14px 0 10px;
}
.catalog-count {
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--muted);
}
.catalog-count strong,
.catalog-count b { font-weight: 700; }

.pager-progress {
    margin: 12px 0 0;
    width: 100%;
    text-align: center;
    font-size: .78rem;
    color: var(--muted);
}
.pager { flex-wrap: wrap; }
.btn-more {
    border-radius: 0;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.btn-more-count { font-variant-numeric: tabular-nums; opacity: .7; }

/* --------------------------------------------------------------------------
   32.5 Griglia prodotti 2/3/4/5
   Colonna larga 1600px e gap stretto: 10px su mobile, 16px da desktop.
   `:has()` copre tutte le griglie di card prodotto; gli ID elencati
   servono da rete di sicurezza sui browser senza `:has()`.
   -------------------------------------------------------------------------- */
#catalog { --wrap: var(--wrap-wide); }
#catalog > .wrap { padding-left: 16px; padding-right: 16px; }
@media (min-width: 900px) {
    #catalog > .wrap { padding-left: 24px; padding-right: 24px; }
}

#catalog-grid,
#offers-grid,
#dedicated-offers,
.grid:has(> .product-card),
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--grid-gap);
    align-items: start;
}
@media (min-width: 700px) {
    #catalog-grid,
    #offers-grid,
    #dedicated-offers,
    .grid:has(> .product-card),
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
    #catalog-grid,
    #offers-grid,
    #dedicated-offers,
    .grid:has(> .product-card),
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        --grid-gap: 16px;
    }
}
@media (min-width: 1500px) {
    #catalog-grid,
    #offers-grid,
    #dedicated-offers,
    .grid:has(> .product-card),
    .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Stato vuoto e messaggi: occupano tutta la riga, non una colonna */
#catalog-grid > .empty,
#catalog-grid > .catalog-empty,
#offers-grid > .empty,
#dedicated-offers > .empty,
.grid > .empty,
.grid > .catalog-empty { grid-column: 1 / -1; }

/* --------------------------------------------------------------------------
   32.6 Card prodotto: foto, badge, cuore, bottone in overlay
   -------------------------------------------------------------------------- */
/* Zoom leggero della sola immagine: nient'altro si muove */
.product-card:hover .product-card-img,
.product-card:focus-within .product-card-img { transform: scale(1.03); }

/* Badge sconto: etichetta piatta nera in alto a sinistra */
.badge-sale,
.product-card-sale {
    border-radius: 0;
    background: var(--ink);
    color: #fff;
    padding: 4px 8px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.4;
}
.badge-sale-soft {
    background: var(--blue-soft);
    color: var(--night);
}

/* Monogramma del negozio: discreto, vetro smerigliato sopra la foto */
.product-card-mono {
    width: 34px;
    height: 34px;
    border: 0;
    background: rgba(255, 255, 255, .82);
    -webkit-backdrop-filter: saturate(140%) blur(6px);
    backdrop-filter: saturate(140%) blur(6px);
    color: var(--shop-color, var(--night));
    box-shadow: 0 1px 3px rgba(11, 13, 18, .14);
    font-size: .7rem;
    font-weight: 700;
}

/* Cuore preferiti: in basso a destra sulla foto */
.product-card .wish-btn {
    right: 8px;
    bottom: 8px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border: 0;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 1px 3px rgba(11, 13, 18, .14);
    transition: opacity .2s var(--ease), transform .25s var(--ease),
                color .16s var(--ease), background-color .16s var(--ease);
}
.product-card .wish-btn:hover {
    background: #fff;
    border: 0;
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(11, 13, 18, .18);
}
.product-card .wish-btn.is-on { border: 0; color: var(--danger); }

/* Prezzi della card: attuale in grassetto, vecchio barrato dopo il nuovo */
.product-card-prices {
    gap: 6px;
    margin: 2px 0 0;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: 0;
}
.product-card-prices .price-now { color: var(--ink); font-weight: 700; }
.product-card-prices .price-old { font-size: .78rem; font-weight: 400; }
.product-card-prices.is-offer .price-now,
.product-card-prices:has(.price-old) .price-now { color: var(--danger); }

/* Bottone "Aggiungi al carrello" ------------------------------------------
   Su mobile: pieno, a tutta larghezza, sotto i testi.
   Da desktop: in overlay sul bordo inferiore della foto, solo su hover.
   Il trucco è `bottom: 100%` rispetto a `.product-card-body`, il cui bordo
   superiore coincide esattamente con il bordo inferiore dell'immagine. */
.card-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--card-radius);
    background: var(--ink);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease),
                background-color .18s var(--ease);
}
.card-add:hover { background: var(--night); color: #fff; }
.card-add:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.card-add[disabled],
.card-add.is-disabled { opacity: .5; pointer-events: none; }

@media (hover: hover) and (min-width: 700px) {
    /* Il bottone resta sempre visibile: nasconderlo fino all'hover lo rendeva
       introvabile, e da mobile non esiste hover. */
    .product-card .wish-btn { opacity: .75; }
    .product-card .wish-btn.is-on,
    .product-card .wish-btn:focus-visible,
    .product-card:hover .wish-btn,
    .product-card:focus-within .wish-btn {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   32.7 Card negozio
   -------------------------------------------------------------------------- */
.shop-card-title a { color: var(--ink); }
.shop-card-title a:hover { color: var(--ink); text-decoration: underline; }
.shop-card-tagline {
    font-size: .84rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card-address { font-size: .78rem; }
.shop-card .pill {
    padding: 3px 10px;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: var(--bg-soft);
    border-color: transparent;
}
.shop-card-actions { padding-top: 10px; }

/* --------------------------------------------------------------------------
   32.8 Hero negozio con copertina
   Markup previsto in pages/negozio.htm:

     <section class="shop-hero" style="--shop-color: …">
       <div class="shop-hero-media"><img src="{{ shop.cover_url }}" alt="…"></div>
       <div class="shop-hero-overlay" aria-hidden="true"></div>
       <div class="wrap shop-hero-inner"> … </div>
     </section>

   Senza `.shop-hero-media` resta il gradiente col monogramma (sezione 16).
   -------------------------------------------------------------------------- */
.shop-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.shop-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.shop-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top,
                rgba(11, 13, 18, .86) 0%,
                rgba(11, 13, 18, .48) 42%,
                rgba(11, 13, 18, .12) 100%);
}
.shop-hero-inner {
    position: relative;
    z-index: 2;
}

.shop-hero:has(.shop-hero-media) {
    display: flex;
    align-items: flex-end;
    min-height: 260px;
    padding: 0;
    background: var(--ink);
}
.shop-hero:has(.shop-hero-media)::after { content: none; }
.shop-hero:has(.shop-hero-media) .shop-hero-inner {
    width: 100%;
    padding-top: 28px;
    padding-bottom: 24px;
}
@media (min-width: 900px) {
    .shop-hero:has(.shop-hero-media) { min-height: 380px; }
    .shop-hero:has(.shop-hero-media) .shop-hero-inner {
        padding-top: 40px;
        padding-bottom: 32px;
    }
}

.shop-hero-title {
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -.02em;
    text-shadow: 0 1px 14px rgba(11, 13, 18, .35);
}
@media (min-width: 900px) {
    .shop-hero-title { font-size: 2.6rem; }
}
.shop-hero-tagline { text-shadow: 0 1px 12px rgba(11, 13, 18, .35); }
.shop-hero-meta .pill {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .34);
    color: #fff;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------------------
   32.9 Pagina prodotto (.pdp)
   Due colonne: foto grande sticky a sinistra, dettagli a destra con molto
   spazio bianco. Le taglie sono quadrati selezionabili, non un <select>.
   -------------------------------------------------------------------------- */
.pdp {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 18px 0 8px;
}
@media (min-width: 900px) {
    .pdp {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        gap: 52px;
        padding: 28px 0 16px;
    }
}

.pdp-media {
    position: relative;
    border-radius: var(--card-radius);
    background: var(--bg-soft);
    overflow: hidden;
    isolation: isolate;
}
@media (min-width: 900px) {
    .pdp-media {
        position: sticky;
        top: calc(var(--header-h) + 20px);
    }
}
.pdp-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}
.pdp-media .badge-sale {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
}
.pdp-media .shop-mono {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
}

.pdp-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.pdp-brand {
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.pdp-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.15;
}
@media (min-width: 900px) {
    .pdp-title { font-size: 2rem; }
}
.pdp-prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
}
.pdp-prices .price-now { color: var(--ink); }
.pdp-prices .price-old { font-size: 1rem; font-weight: 400; }
/* In offerta il prezzo nuovo va in rosso: con la classe `is-offer` oppure,
   se il template non la mette, quando è presente il prezzo barrato. */
.pdp-prices.is-offer .price-now,
.pdp-prices:has(.price-old) .price-now { color: var(--danger); }

/* Taglie ------------------------------------------------------------------ */
.size-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.size-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.size-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .16s var(--ease), background-color .16s var(--ease),
                color .16s var(--ease);
}
.size-box:hover { border-color: var(--ink); }
/* Il radio interno è .sr-only: il focus da tastiera si vede sul riquadro */
.size-box:focus-visible,
.size-box:has(input:focus-visible) {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
/* Selezione: dal JS (`.is-selected`) oppure, senza JS, dal radio interno */
.size-box.is-selected,
.size-box[aria-pressed="true"],
.size-box:has(input:checked) {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}
.size-box.is-disabled,
.size-box:has(input[disabled]),
.size-box[disabled] {
    opacity: .38;
    cursor: not-allowed;
    pointer-events: none;
    text-decoration: line-through;
}

/* Azioni ------------------------------------------------------------------ */
.pdp-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2px;
}
.pdp-actions .btn-primary {
    width: 100%;
    min-height: 52px;
    border-radius: var(--card-radius);
    background: var(--ink);
    border-color: var(--ink);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.pdp-actions .btn-primary:hover {
    background: var(--night);
    border-color: var(--night);
    box-shadow: none;
    transform: none;
}
.pdp-note {
    margin: 0;
    font-size: .8rem;
    color: var(--muted);
}

/* Accordion sobri --------------------------------------------------------- */
.pdp-accordion {
    margin-top: 6px;
    border-top: 1px solid var(--line);
}
.pdp-accordion details,
details.pdp-accordion { border-bottom: 1px solid var(--line); }
.pdp-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 2px;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 1.6px solid currentColor;
    border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    opacity: .55;
    transition: transform .2s var(--ease);
}
.pdp-accordion details[open] > summary::after,
details.pdp-accordion[open] > summary::after {
    transform: translateY(1px) rotate(225deg);
}
.pdp-accordion summary:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -2px;
}
.pdp-accordion-body {
    padding: 0 2px 16px;
    font-size: .92rem;
    color: #2A2F3A;
}
.pdp-accordion-body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   32.10 Pagina elenco città (.city-index)
   Ricerca istantanea lato JS: le card fuori ricerca prendono [hidden],
   le regioni rimaste vuote prendono .is-empty, e `.city-index-empty`
   compare quando non resta nulla.
   -------------------------------------------------------------------------- */
.city-index { padding: 6px 0 0; }

.city-index-search {
    display: block;
    width: 100%;
    max-width: 440px;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    color: var(--ink);
    font-size: .95rem;
    -webkit-appearance: none;
    appearance: none;
}
.city-index-search::placeholder { color: var(--muted); }
.city-index-search:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11, 13, 18, .08);
}

.city-index-region { margin-top: 30px; }
.city-index-region:first-of-type { margin-top: 22px; }
.city-index-region.is-empty,
.city-index-region[hidden] { display: none; }
.city-index-region-title,
.city-index-region > h2,
.city-index-region > h3 {
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.city-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
@media (min-width: 700px) {
    .city-index-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (min-width: 1100px) {
    .city-index-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.city-index-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: #fff;
    color: var(--ink);
    transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.city-index-card:hover {
    border-color: var(--ink);
    background: var(--bg-soft);
    color: var(--ink);
}
.city-index-card[hidden] { display: none; }
.city-index-card-name {
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: -.01em;
}
.city-index-card-meta {
    font-size: .74rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.city-index-empty {
    margin: 24px 0 0;
    padding: 34px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--card-radius);
    background: var(--bg-soft);
    text-align: center;
    color: var(--muted);
    font-size: .92rem;
}
.city-index-empty[hidden] { display: none; }

/* --------------------------------------------------------------------------
   32.11 Miniature nelle tabelle e nelle righe
   `.thumb` 48×64, `.thumb-lg` 64×86. `.thumb-fallback` funziona sia come
   modificatore sull'elemento stesso, sia come figlio del contenitore.
   -------------------------------------------------------------------------- */
.thumb,
.thumb-lg {
    position: relative;
    flex: 0 0 auto;
    display: block;
    width: 48px;
    height: 64px;
    border-radius: 6px;
    background: var(--bg-soft);
    overflow: hidden;
}
.thumb-lg {
    width: 64px;
    height: 86px;
}
.thumb img,
.thumb-lg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Monogramma quando la foto manca */
.thumb.thumb-fallback,
.thumb-lg.thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--shop-color, var(--night)) 0%, var(--night-deep) 130%);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    user-select: none;
}
.thumb > .thumb-fallback,
.thumb-lg > .thumb-fallback {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    background: linear-gradient(145deg, var(--shop-color, var(--night)) 0%, var(--night-deep) 130%);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.1;
    user-select: none;
}
.thumb-lg.thumb-fallback,
.thumb-lg > .thumb-fallback { font-size: .82rem; }

/* Riga "miniatura + testo" usata in carrello, ordini e dashboard */
.thumb-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
.thumb-row > div { min-width: 0; }

/* --------------------------------------------------------------------------
   32.12 Accessibilità, movimento ridotto, stampa
   -------------------------------------------------------------------------- */
.product-card-link:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.city-menu-link:focus-visible,
.city-index-card:focus-visible,
.city-menu-toggle:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .product-card-img,
    .shop-card-cover-img,
    .card-add,
    .wish-btn { transition: none !important; }
    .product-card:hover .product-card-img,
    .product-card:focus-within .product-card-img,
    .shop-card:hover .shop-card-cover-img { transform: none; }
}

@media print {
    .card-add,
    .city-menu,
    .city-index-search { display: none !important; }
    .product-card-img,
    .shop-card-cover-img { transform: none !important; }
}

/* ============================================================
   33. Aggiunta al carrello dalla card
   Il bottone è sempre visibile. Se il prodotto ha delle taglie,
   il primo clic le mostra sulla card e il clic sulla taglia
   aggiunge al carrello, senza cambiare pagina.
   ============================================================ */

.card-buy { position: relative; }

.card-sizes {
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--card-radius);
    background: var(--bg);
    animation: cardSizesIn .18s var(--ease);
}
.card-sizes[hidden] { display: none; }

@keyframes cardSizesIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

.card-sizes-label {
    margin: 0 0 8px;
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.card-size {
    min-width: 40px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.card-size:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}
.card-size:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.card-add[aria-expanded="true"] {
    background: var(--bg);
    border: 1px solid var(--ink);
    color: var(--ink);
}
