/* =====================================================================
   Negozio online (asdprata.it/shop e ondabiancoverde.it/shop)
   Stessa struttura, due temi: .shop-asd (verde bosco e oro dello stemma)
   e .shop-club (verde del Gruppo Ondabiancoverde).
   ===================================================================== */

.shop-asd {
    --shop-scuro: var(--asd-deep);
    --shop-primario: var(--asd-green);
    --shop-accento: var(--asd-gold);
    --shop-accento-scuro: var(--asd-gold-soft);
    --shop-chiaro: var(--asd-stone);
    --shop-carta: var(--asd-paper);
    --shop-inchiostro: var(--asd-ink);
    --shop-font-titoli: var(--asd-serif);
    --shop-font-numeri: var(--asd-num);
}
.shop-club {
    --shop-scuro: #0d3b1c;
    --shop-primario: #1d6b33;
    --shop-accento: #b8913e;
    --shop-accento-scuro: #96742c;
    --shop-chiaro: #eef3ee;
    --shop-carta: #f6f8f5;
    --shop-inchiostro: #1d2a20;
    --shop-font-titoli: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --shop-font-numeri: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.shop { color: var(--shop-inchiostro); background: var(--shop-carta); }
.shop a { color: var(--shop-primario); }

/* ---------- barra del negozio ---------- */
.shop-anteprima { background: #fff3cd; color: #664d03; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #ffe69c; }
.shop-barra { background: #fff; border-bottom: 1px solid rgba(0,0,0,.08); }
.shop-barra .container { display: flex; justify-content: space-between; align-items: center; min-height: 52px; gap: 12px; }
.shop .shop-barra-titolo { font-weight: 700; color: var(--shop-scuro); text-decoration: none; }
.shop .shop-barra-carrello { font-weight: 600; color: var(--shop-scuro); text-decoration: none; white-space: nowrap; }
.shop-conta {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
    border-radius: 999px; background: var(--shop-accento); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---------- testata ---------- */
.shop-testata {
    background:
        radial-gradient(90% 120% at 85% 0%, rgba(201,162,75,.22), rgba(201,162,75,0) 60%),
        linear-gradient(180deg, var(--shop-primario), var(--shop-scuro));
    color: var(--shop-chiaro);
    padding: 48px 0 56px;
    border-bottom: 2px solid var(--shop-accento);
}
.shop-occhiello { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--shop-accento); margin-bottom: 8px; }
.shop-titolo { font-family: var(--shop-font-titoli); font-weight: 700; font-size: clamp(26px, 4.5vw, 42px); margin-bottom: 10px; }
.shop-testata .shop-titolo { color: #fff; }
.shop-sottotitolo { max-width: 64ch; margin: 0; opacity: .9; font-size: 17px; }

.shop-sezione { padding: 36px 0 56px; }
.shop-stretto { max-width: 820px; }
.shop-vuoto { font-size: 18px; color: #666; }
.shop-nota { font-size: 14px; color: #5b6359; }
.shop-briciole { font-size: 14px; margin-bottom: 18px; color: #6b7368; }
.shop-briciole i { font-size: 10px; margin: 0 4px; }

/* ---------- bottoni ---------- */
.shop-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--shop-primario); color: #fff !important; border: 0; border-radius: 10px;
    padding: 10px 18px; font-weight: 700; text-decoration: none; cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.shop-btn:hover { background: var(--shop-scuro); }
.shop-btn:active { transform: translateY(1px); }
.shop-btn:disabled { opacity: .5; cursor: not-allowed; }
.shop-btn-grande { padding: 14px 24px; font-size: 17px; }
.shop-btn-chiaro { background: #fff; color: var(--shop-primario) !important; border: 1px solid rgba(0,0,0,.15); }
.shop-btn-chiaro:hover { background: var(--shop-chiaro); }

/* ---------- catalogo ---------- */
.shop-griglia { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.shop .shop-scheda {
    display: flex; flex-direction: column; background: #fff; border-radius: 14px; overflow: hidden;
    text-decoration: none; color: var(--shop-inchiostro);
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.shop .shop-scheda:hover { transform: translateY(-3px); box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 14px 32px rgba(0,0,0,.10); }
.shop-nascosto { opacity: .6; }
.shop-scheda-foto {
    position: relative; aspect-ratio: 4 / 5; background: var(--shop-chiaro);
    display: flex; align-items: center; justify-content: center; color: var(--shop-primario); font-size: 48px;
}
.shop-scheda-foto img { width: 100%; height: 100%; object-fit: cover; }
.shop-etichetta {
    position: absolute; top: 10px; left: 10px; background: var(--shop-accento); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.shop-etichetta-spenta { background: #6c757d; }
.shop-scheda-testo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.shop-scheda-nome { font-weight: 700; font-size: 17px; line-height: 1.25; }
.shop-scheda-taglie { font-size: 13px; color: #6b7368; }
.shop-prezzo { font-family: var(--shop-font-numeri); font-weight: 700; font-size: 20px; color: var(--shop-primario); }
.shop-prezzo-grande { font-size: 30px; margin-bottom: 14px; }

/* ---------- scheda prodotto ---------- */
.shop-prodotto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.shop-galleria-grande {
    aspect-ratio: 4 / 5; background: var(--shop-chiaro); border-radius: 16px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--shop-primario);
}
.shop-galleria-grande img { width: 100%; height: 100%; object-fit: cover; }
.shop-galleria-miniature { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shop-galleria-miniature button { width: 72px; height: 90px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.shop-galleria-miniature button.attiva { border-color: var(--shop-accento); }
.shop-galleria-miniature img { width: 100%; height: 100%; object-fit: cover; }
.shop-descrizione { margin: 6px 0 22px; line-height: 1.6; }
.shop-esaurito { font-weight: 700; color: #a33; }
.shop-acquisto fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.shop-acquisto legend, .shop-quantita label { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.shop-taglie { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-taglia { position: relative; cursor: pointer; }
.shop-taglia input { position: absolute; opacity: 0; pointer-events: none; }
.shop-taglia span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 54px; height: 46px; padding: 0 12px;
    border: 1.5px solid rgba(0,0,0,.2); border-radius: 10px; background: #fff; font-weight: 700;
    transition: border-color .15s ease, background .15s ease;
}
.shop-taglia small { display: block; text-align: center; font-size: 11px; color: #a3541a; margin-top: 2px; }
.shop-taglia input:checked + span { border-color: var(--shop-primario); background: var(--shop-primario); color: #fff; }
.shop-taglia input:focus-visible + span { outline: 3px solid var(--shop-accento); outline-offset: 2px; }
.shop-taglia.esaurita span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.shop-taglia.esaurita small { color: #888; }
.shop-quantita { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.shop-quantita input { width: 90px; height: 44px; border: 1.5px solid rgba(0,0,0,.2); border-radius: 10px; padding: 0 12px; font-size: 17px; }

/* ---------- carrello ---------- */
.shop-righe { background: #fff; border-radius: 14px; padding: 6px 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 16px; }
.shop-riga { display: grid; grid-template-columns: 64px minmax(0, 1fr) 72px 96px 36px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.shop-riga:last-child { border-bottom: 0; }
.shop-riga.con-errore { background: #fff8e6; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.shop-riga-foto { width: 64px; height: 80px; border-radius: 8px; overflow: hidden; background: var(--shop-chiaro); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.shop-riga-foto img { width: 100%; height: 100%; object-fit: cover; }
.shop-riga-testo { display: flex; flex-direction: column; min-width: 0; }
.shop .shop-riga-nome { font-weight: 700; color: var(--shop-inchiostro); text-decoration: none; }
.shop-riga-info { font-size: 14px; color: #6b7368; }
.shop-riga-errore { font-size: 13px; color: #a3541a; font-weight: 600; }
.shop-riga-q { width: 72px; height: 40px; border: 1.5px solid rgba(0,0,0,.2); border-radius: 8px; padding: 0 8px; }
.shop-riga-importo { text-align: right; font-weight: 700; font-family: var(--shop-font-numeri); }
.shop-riga-togli { border: 0; background: none; color: #888; width: 36px; height: 36px; border-radius: 8px; }
.shop-riga-togli:hover { background: #f1f1f1; color: #a33; }
.shop-totale { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; font-size: 18px; }
.shop-totale strong { font-family: var(--shop-font-numeri); font-size: 26px; color: var(--shop-primario); }
.shop-azioni { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- cassa ---------- */
.shop-cassa { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.shop-modulo { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.shop-campo { margin-bottom: 16px; border: 0; padding: 0; }
.shop-campo label, .shop-campo legend { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.shop-campo label span { font-weight: 400; color: #777; }
.shop-campo input, .shop-campo textarea {
    width: 100%; border: 1.5px solid rgba(0,0,0,.18); border-radius: 10px; padding: 10px 12px; font-size: 16px; background: #fff;
}
.shop-campo input:focus, .shop-campo textarea:focus { outline: none; border-color: var(--shop-primario); box-shadow: 0 0 0 3px rgba(46,66,51,.15); }
.shop-campo small { display: block; font-size: 13px; color: #6b7368; margin-top: 4px; }
.shop-campo .shop-metodo { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid rgba(0,0,0,.14); border-radius: 10px; margin-bottom: 8px; cursor: pointer; font-weight: 400 !important; }
.shop-campo .shop-metodo input { width: auto; margin-top: 4px; flex: 0 0 auto; }
.shop-metodo small { display: block; color: #6b7368; }
.shop-metodo:has(input:checked) { border-color: var(--shop-primario); background: var(--shop-chiaro); }
.shop-consenso { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 18px; }
.shop-consenso input { margin-top: 4px; flex: 0 0 auto; }
.shop-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.shop-riepilogo { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.06); position: sticky; top: 90px; }
.shop-riepilogo h2 { font-family: var(--shop-font-titoli); font-size: 20px; margin-bottom: 12px; }
.shop-riepilogo-riga { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.07); }
.shop-righe-lettura { padding: 8px 18px; }

/* ---------- stato della prenotazione ---------- */
.shop-stato { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: 14px; padding: 18px 20px; margin: 18px 0; border-left: 5px solid var(--shop-accento); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.shop-stato i { font-size: 30px; color: var(--shop-accento); }
.shop-stato strong { display: block; font-size: 18px; }
.shop-stato span { color: #5b6359; }
.shop-stato-pronto { border-left-color: #0d6efd; } .shop-stato-pronto i { color: #0d6efd; }
.shop-stato-ritirato { border-left-color: #198754; } .shop-stato-ritirato i { color: #198754; }
.shop-stato-annullato { border-left-color: #6c757d; } .shop-stato-annullato i { color: #6c757d; }
.shop-paga { background: var(--shop-chiaro); border-radius: 14px; padding: 16px 20px; margin: 18px 0; }
.shop-paga form { margin-right: 8px; }

/* ---------- layout del sito del club ---------- */
.shop-club-body { background: #f6f8f5; font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
.shop-club-nav { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.shop-club-nav .navbar-brand span { display: flex; flex-direction: column; line-height: 1.15; color: #1d6b33; }
.shop-club-nav .navbar-brand small { font-size: 11px; color: #777; }
.shop-club-nav .nav-link { color: #333; font-weight: 500; white-space: nowrap; }
.shop-club-nav .nav-link.active, .shop-club-nav .nav-link:hover { color: #1d6b33; }
.shop-club-piede { background: #1d2a20; color: #cfd8cf; padding: 26px 0; font-size: 14px; }
.shop-club-piede a { color: #fff; }

/* ---------- telefono ---------- */
@media (max-width: 767.98px) {
    .shop-prodotto, .shop-cassa { grid-template-columns: 1fr; gap: 24px; }
    .shop-riepilogo { position: static; }
    .shop-riga { grid-template-columns: 56px minmax(0, 1fr) 64px 32px; gap: 10px; }
    .shop-riga-foto { width: 56px; height: 70px; }
    .shop-riga-importo { grid-column: 2 / 3; text-align: left; }
    .shop-riga-q { grid-row: 1; grid-column: 3; width: 64px; }
    .shop-riga-togli { grid-row: 1; grid-column: 4; }
    .shop-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shop-scheda-nome { font-size: 15px; }
    .shop-modulo { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .shop .shop-scheda, .shop-btn { transition: none; }
}
