* {
    box-sizing: border-box;
}

.filtri > * {
    max-width: 100%;
}

/* ===== SFONDO GENERALE SITO ===== */

body {
    background-color: #f4f1e9;
    margin: 0;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}


.contenitore{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 12px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
}

.contenitore-principale {
    display: flex;
    align-items: flex-start;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
}

.gruppo-azzera-risultati {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    width: 220px;
}

.titolo-carrello {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #b8cbbd;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: #2f5f3d;
    display: flex;
    align-items: center;
    gap: 10px;
}

.testo-titolo-carrello {
    min-width: 0;
}

.badge-titolo-carrello {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    flex-shrink: 0;
    border-radius: 999px;
    background-color: #3f7a52;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.nome-quantita-carrello {
    white-space: nowrap;
}

.testo-prodotto-carrello {
    line-height: 1.5;
}

.scheda{
    border: 1px solid #deddd8;
    padding: 12px;
    margin: 0;
    border-radius: 10px;
    width: 100%;
    max-width: none;
    min-height: 425px;
    box-sizing: border-box;
    text-align: center;
    box-shadow: 0 3px 8px rgba(60, 55, 45, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.scheda {
    background-color: #f8f6ef;

    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(90, 75, 55, 0.028) 0,
            rgba(90, 75, 55, 0.028) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(90, 75, 55, 0.022) 0,
            rgba(90, 75, 55, 0.022) 1px,
            transparent 1px,
            transparent 5px
        );
}

.scheda:hover{
   transform: translateY(-4px);
   box-shadow: 0 7px 16px rgba(60, 55, 45, 0.18);
}

.scheda-fuori-filtro {
    opacity: 0.35;
    filter: grayscale(70%);
    pointer-events: none;
}

.scheda-fuori-filtro:hover {
    transform: none;
    box-shadow: none;
}

button,
.pulsante-home,
.pulsante-checkout {
    min-height: 40px;
    padding: 9px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

button:hover,
.pulsante-home:hover,
.pulsante-checkout:hover {
    transform: translateY(-1px);
    opacity: 0.92;
}

button:disabled,
.pulsante-checkout:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

button:focus-visible,
.pulsante-home:focus-visible,
.pulsante-checkout:focus-visible {
    outline: 3px solid #3f7a52;
    outline-offset: 2px;
}

.immagine-prodotto {
    width: 100%;
    max-width: 260px;
    height: 220px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.3s ease;
}

.scheda:hover .immagine-prodotto {
    transform: scale(1.025);
}

.riga-carrello{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid #deddd8;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.62);
    max-width: 100%;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.riga-carrello:hover {
    background-color: rgba(255, 255, 255, 0.88);
    border-color: #c8d5cb;
}

.riga-carrello p {
    flex: 1; 
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 16px;
}

.riga-carrello button {
    flex-shrink: 0;
    margin: 0;
}

.riga-sconto-carrello {
    display: block;
    margin-top: 6px;
    color: #3f7a52;
    font-weight: bold;
}

.stato-disponibile {
    color: green;
}
.stato-ultimi {
    color: orange;
}
.stato-esaurito {
    color: crimson;
}

.stato-disponibile,
.stato-ultimi,
.stato-esaurito {
    font-weight: bold;
}

/* SAPORI V3 - Badge sconto prodotto */
.contenitore-immagine-prodotto {
    position: relative;
    width: 100%;
}

.contenitore-immagine-prodotto .sconto-prodotto {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 5px 10px;

    background-color: #d62828;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.messaggio-sconto {
    margin: 10px 0;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #b8cbbd;
    background-color: rgba(255, 255, 255, 0.58);
    line-height: 1.4;
    font-size: 14px;
}

.messaggio-sconto.sconto-da-applicare {
    color: #8a1c1c;
    animation: lampeggio-sconto 1.4s ease-in-out infinite;
}

@keyframes lampeggio-sconto {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

.messaggio-sconto.sconto-applicato {
    color: #3f7a52;
    animation: none;
    opacity: 1;
    font-weight: bold;
}

.ordina-prodotti {
    width: 190px;
}

.gruppo-prezzi {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.gruppo-prezzo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.gruppo-prezzo .filtro-prezzo {
    width: 120px;
    flex: 0 0 120px;
}

.prezzo-originale-carrello {
    color: #888;
    text-decoration: line-through;
    margin-left: 2px;
}

.titolo-prodotto {
    font-size: 20px;
    line-height: 1.2;
    margin: 6px 0 4px;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #2f5f3d;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.descrizione-prodotto {
    margin: 8px 0;
    line-height: 1.35;
    font-size: 17px;
}

.prezzo-prodotto {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    color: #2f5f3d;
    margin: 14px 0 2px;
}

.titolo-prodotto:hover {
    text-decoration: underline;
    color: #1f6f43;
}

.gruppo-pulsanti-prodotto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 10px;
}

.pulsante-dettagli,
.acquista {
    min-height: 40px;
    padding: 9px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease,
                box-shadow 0.2s ease;
}

.pulsante-dettagli {
    background-color: #f5f5f3;
    border: 1px solid #b8cbbd;
    color: #285c3a;
    box-shadow: 0 1px 3px rgba(45, 75, 55, 0.10);
}

.acquista {
    background-color: #3f7a52;
    border: 1px solid #3f7a52;
    color: white;
    box-shadow: 0 2px 5px rgba(45, 75, 55, 0.16);
}

.pulsante-dettagli:hover {
    background-color: #eef5f0;
    border-color: #8eaa96;
    transform: translateY(-2px);
    box-shadow: 0 3px 7px rgba(45, 75, 55, 0.15);
}

.acquista:hover:not(:disabled) {
    background-color: #356846;
    border-color: #356846;
    transform: translateY(-2px);
    box-shadow: 0 4px 9px rgba(45, 75, 55, 0.22);
}

.acquista:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pulsante-dettagli:active,
.acquista:active:not(:disabled) {
    transform: translateY(0);
}

.pulsante-dettagli:focus-visible,
.acquista:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

.ricerca{
    width: 280px;
}

.chiudi-ricerca {
    margin-left: 8px;
    padding: 2px 7px;
    border: none;
    border-radius: 4px;
    background-color: crimson;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.chiudi-ricerca:hover {
    background-color: darkred;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px #aaa;
}

.chiudi-ricerca:active {
    transform: translateY(0);
}

.chiudi-ricerca:focus {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

.ricerca,
.filtro-dipartimento,
.filtro-categoria,
.ordina-prodotti,
.filtro-prezzo {
    border: 1px solid #b8cbbd;
    border-radius: 6px;
    padding: 0 10px;
    background-color: #faf9f6;
}

.ricerca,
.filtro-dipartimento,
.filtro-categoria,
.ordina-prodotti,
.filtro-prezzo,
.azzera-filtri,
.selettore-lingua {
    min-height: 40px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.ricerca:focus,
.filtro-dipartimento:focus,
.filtro-categoria:focus,
.ordina-prodotti:focus,
.filtro-prezzo:focus {
    outline: 2px solid  #3f7a52;
    outline-offset: 2px;
    border-color: #3f7a52;
    box-shadow: 0 0 4px #ddd;
}

.ricerca,
.filtro-categoria {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}

.ricerca::placeholder {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    opacity: 1;
}

.stato-ricerca {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    color: #285c3a;
    background-color: #eef5f0;
    border: 1px solid #b8cbbd;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.conta-risultati {
    margin: 0;
    padding: 0 10px;
    min-height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    background-color: #f3f4f6;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.conta-risultati-vuoto {
    color: #8a1c1c;
    border-color: #d8b5b5;
    background-color: #faf3f3;
}

.conta-risultati-errore {
    color: #8a1c1c;
    border-color: #c98f8f;
    background-color: #f8eaea;
}

.stato-ricerca,
.conta-risultati,
.nessun-risultato {
    width: 100%;
    margin: 0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.filtri {
    margin: 10px 0 12px 0;
    position: sticky;
    top: calc(var(--altezza-header, 208px) + 12px);
    z-index: 20;
    background-color:#faf9f6;
}

.controlli-filtri {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    column-gap: 14px;
    row-gap: 12px;
    padding: 12px 12px 8px 12px;
    width: 100%;
}

.filtri::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
    background-color: #f4f1e9;
    pointer-events: none;
}

.controlli-filtri label {
    margin-right: 4px;
}

.info-filtri {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    padding: 0 20px;
    margin-top: 4px;
}

.filtro-prezzo {
    width: 120px;
}

.filtro-dipartimento {
    width: 220px;
}

.filtro-categoria {
    width: 200px;
}

.azzera-filtri {
    padding: 10px 14px;
    cursor: pointer;
    border: 1px solid #b8cbbd;
    border-radius: 6px;
    background-color: #f5f5f3;
    color: #285c3a;
}

.azzera-filtri:hover {
    background-color: #eef5f0;
    border-color: #9fb8a5;
    transform: translateY(-1px);
}

.azzera-filtri:active {
    transform: translateY(0);
}

.azzera-filtri:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
    border-color: #3f7a52;
    box-shadow: 0 0 4px #ddd;
}

#filtro-scontati:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
}

#filtro-disponibili:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
}

#filtro-disponibili,
#filtro-scontati {
    accent-color: #3f7a52;
}

#filtro-disponibili,
#filtro-scontati,
.etichetta-checkbox {
    cursor: pointer;
}

.filtro-dipartimento:hover,
.filtro-categoria:hover,
.ordina-prodotti:hover{
    background-color: #eef5f0;
    border-color: #9fb8a5; 
}

.filtro-dipartimento:disabled,
.filtro-categoria:disabled,
.ordina-prodotti:disabled,
.filtro-prezzo:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.etichetta-checkbox {
    transition: opacity 0.2s ease;
}

.opzione-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.etichetta-checkbox:hover {
    text-decoration: underline;
    opacity: 0.8;
}

#filtro-disponibili:hover,
#filtro-scontati:hover {
    filter: brightness(0.95);
}

.filtro-dipartimento:hover,
.filtro-categoria:hover,
.ordina-prodotti:hover {
    border-color: #9fb8a5;
}

.dipartimento-prodotto:focus-visible,
.categoria-prodotto:focus-visible,
.titolo-prodotto:focus-visible {
    outline:2px solid #3f7a52;
    outline-offset: 2px;
}

.dipartimento-selezionato,
.categoria-selezionata,
.titolo-selezionato {
    outline: 2px solid black;
    outline-offset: 2px;
}

.pulsante-sezione {
    background-color: #f5f5f3;
    border: 1px solid #b8cbbd;
    color: #285c3a;
}

.pulsante-sezione:hover {
    background-color: #eef5f0;
    border-color: #9fb8a5;
    color: #285c3a;
    opacity: 1;
}

.pulsante-sezione:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

.dipartimento-prodotto,
.categoria-prodotto {
    display: inline-block;
    font-size: 14px;
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
    margin: 4px;
    max-width: 100%;
}

.dipartimento-prodotto {
    background-color: #eef5f0;
    border-color: #b8cbbd;
    color: #285c3a;
}

.categoria-prodotto {
    background-color: #f5f5f3;
    border-color: #d6d6d1;
    color: #4a4a46;
}

.dipartimento-prodotto:hover,
.categoria-prodotto:hover {
    transform: scale(1.05);
}

.gruppo-classificazione-prodotto .dipartimento-prodotto,
.gruppo-classificazione-prodotto .categoria-prodotto {
    margin-top: 0;
    margin-bottom: 0;
}

.gruppo-classificazione-prodotto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.disponibilita-prodotto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0;
    font-size: 14px;
    color: #555;
}

.disponibilita-prodotto p {
    margin: 4px 0;
}

.disponibilita-prodotto p + p::before {
    content: "·";
    margin-right: 8px;
}

.azioni-carrello {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    position: sticky;
    top: var(--altezza-header, 217px);
    z-index: 30;
    background-color: #faf8f2;
    padding: 10px 0;
}

.azioni-prodotto-carrello {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.azioni-carrello button {
    flex: 1 1 160px;
    max-width: 100%;
   height: 32px;
min-height: 32px;
box-sizing: border-box;
padding: 0 14px;
display: inline-flex;
align-items: center;
justify-content: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease, 
    background-color 0.2s ease;
}

.azioni-carrello button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px #aaa;
}

.azioni-carrello button:active:not(:disabled) {
    transform: translateY(0);
}

.azioni-carrello button:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
}

.azioni-carrello button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gruppo-checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

.svuota {
    background-color: #a33a32;
    border: 1px solid #a33a32;
    color: white;
}

.svuota:hover:not(:disabled) {
    background-color: #873029;
    border-color: #873029;
    transform: translateY(-2px);
    box-shadow: 0 4px 9px rgba(100, 45, 40, 0.20);
}

.completa {
    background-color: #3f7a52;
    border: 1px solid #3f7a52;
    color: white;
}

.completa:hover:not(:disabled) {
    background-color: #356846;
    border-color: #356846;
    transform: translateY(-2px);
    box-shadow: 0 4px 9px rgba(45, 75, 55, 0.22);
}

.completa:active:not(:disabled),
.svuota:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.form-checkout {
    margin-top: 15px;
    padding: 15px;
    max-width: 100%;
    border: 1px solid #b8cbbd;
    border-radius: 10px;
    background-color: #faf8f2;
}

.form-checkout input:placeholder {
    color: #777;
    opacity: 1;
}

.annulla-checkout,
.checkout-modifica,
.checkout-conferma {
    margin-top: 10px;
}

.annulla-checkout {
    margin-top: 18px;
}

.checkout input:-webkit-autofill,
.checkout input:-webkit-autofill:hover,
.checkout input:-webkit-autofill:focus,
.checkout input:-webkit-autofill:active {
    -webkit-text-fill-color: #222;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
}

.carrello {
    width: calc(100% - 48px);
    max-width: none;
    min-height: 0;
    max-height: none;
    overflow-y: visible;
    position: static;
    margin: calc(var(--altezza-header, 142px) + 24px) 24px 0 24px;
    padding: 24px;
    box-sizing: border-box;
    border: 1px solid #b8cbbd;
    border-radius: 12px;
    background-color: #faf8f2;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(90, 75, 55, 0.020) 0,
            rgba(90, 75, 55, 0.020) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(90, 75, 55, 0.016) 0,
            rgba(90, 75, 55, 0.016) 1px,
            transparent 1px,
            transparent 5px
        );

    box-shadow: 0 3px 10px rgba(60, 55, 45, 0.12);
}

.carrello-vuoto {
    color: #666;
    padding: 15px;
    border: 1px dashed #b8cbbd;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.45);
    text-align: center;
    font-style: italic;
}

.totale-carrello {
    margin-top: 16px;
    padding: 14px 20px;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.58);
    font-size: 18px;
    line-height: 1.4;
    min-width: 0;
}

.totale-carrello p {
    margin: 0;
    line-height: 1.5;
    white-space: pre-line;
}

.totale-carrello p + p {
    margin-top: 10px;
}

.totale-carrello .totale-finale {
    margin-top: 14px;
    padding-top: 10px;
    border-top: none;
    font-size: 21px;
    color: #2f5f3d;
    font-weight: 700;
}

.totale-carrello .totale-finale:only-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.sconto-generale-carrello {
display: grid;
grid-template-columns: 280px max-content;
    align-items: center;
    gap: 12px;

    margin-top: 16px;
    padding: 12px 0;

    border: none;
    border-top: 1px solid #b8cbbd;
    border-bottom: 1px solid #b8cbbd;
    border-radius: 0;

    background: transparent;
    color: #355f42;
}

.testo-sconto-generale {
    font-weight: normal;
}

.importo-sconto-generale {
    display: inline-block;
    padding: 0;
    border: none;
    background: none;
    font-weight: 700;
}

.titolo-riepilogo {
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #b8cbbd;
    font-size: 18px;
    font-weight: 600;
}

.riepilogo-ordine {
    margin-top: 15px;
    padding: 18px;
    max-width: 100%;
    border: 1px solid #b8cbbd;
    border-radius: 10px;
    background-color:#faf8f2;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.riepilogo-ordine p {
    margin: 8px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e1e4e8;
}

.riepilogo-ordine p + p {
    margin-top: 8px;
}

.riepilogo-ordine strong {
    font-weight: 600;
}

.riepilogo-ordine .totale-riepilogo {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 2px solid #b8cbbd;
    font-size: 18px;
    font-weight: 700;
}

.aumenta,
.diminuisci,
.elimina {
    height: 32px;
    padding: 0px 12px;

    color: white;
    border: 1px solid transparent;
    border-radius: 8px;

    font-family: inherit;
    font-weight: 600;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

/* Quantità */
.aumenta,
.diminuisci {
    width: 32px;
    font-size: 20px;
    padding: 0;
}

/* + */
.aumenta {
    background-color: #3f7a52;
    border-color: #3f7a52;
}

.aumenta:hover:not(:disabled) {
    background-color: #356846;
    border-color: #356846;
}

/* − */
.diminuisci {
    background-color: #b27a32;
    border-color: #b27a32;
}

.diminuisci:hover:not(:disabled) {
    background-color: #956528;
    border-color: #956528;
}

/* Elimina */
.elimina {
    background-color: #a33a32;
    border-color: #a33a32;

    font-size: 14px;
    padding-left: 14px;
    padding-right: 14px;
}

.elimina:hover:not(:disabled) {
    background-color: #873029;
    border-color: #873029;
}

/* Hover comune */
.aumenta:hover:not(:disabled),
.diminuisci:hover:not(:disabled),
.elimina:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 7px rgba(60, 55, 45, 0.18);
}

/* Click */
.aumenta:active:not(:disabled),
.diminuisci:active:not(:disabled),
.elimina:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

/* Focus tastiera */
.aumenta:focus-visible,
.diminuisci:focus-visible,
.elimina:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
}

/* − disabilitato */
.diminuisci:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.barra-lingua {
   display: flex;
   align-items: center;
   gap: 10px;
   flex-wrap: wrap;
   padding: 12px 48px;
 
}

.selettore-lingua {
    min-height: 40px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.selettore-lingua {
    padding: 0 10px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background-color: white;
    min-width: 150px;
}

.header-principale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    padding: 4px 48px 16px;
    background-color: #ffffff;
    border-bottom: 1px solid #dddddd;
    flex-wrap: wrap;
}

.navigazione-principale {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.link-navigazione {
    position: relative;
    color: #222;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.link-navigazione:hover {
    color: #285c3a;
    background-color: #eef5f0;
    transform: translateY(-1px);
}

.link-navigazione:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

.link-navigazione::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;

    height: 2px;
    background-color: #3f7a52;

    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.link-navigazione:hover::after,
.link-navigazione.attivo::after {
    transform: scaleX(1);
}

.nome-negozio {
    display: none;
}

.sezione-home {
    padding: var(--altezza-header, 222px) 0 20px;
    text-align: center;
    position: relative;
}

.pulsante-home {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 20px;
    background-color: #3f7a52;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #3f7a52;
    border-radius: 6px;
}

.pulsante-home:hover {
    background-color: #356846;
    border-color: #356846;
    opacity: 1;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--altezza-header, 208px);
    overflow-anchor: none;
}

.area-catalogo {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: calc(100vh - 210px);
    padding-bottom: 80px;
    box-sizing: border-box;
}

.paginazione-catalogo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin: 20px 0 15px;
}

@media (min-width: 1101px) {
    .paginazione-catalogo {
        margin-top: 8px;
    }
}

.indicatore-pagina {
    font-weight: bold;
    min-width: 45px;
    text-align: center;
}

.pagina-precedente,
.pagina-successiva {
    min-width: 44px;
    padding: 8px 12px;
    cursor: pointer;
}

.pagina-precedente:disabled,
.pagina-successiva:disabled {
    opacity: 0.4;
    cursor: default;
}

.titolo-catalogo {
    width: 100%;
    text-align: left;
    margin: 0 0 24px 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    scroll-margin-top: 300px;
}

.etichetta-valuta {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.selettore-valuta {
    margin-left: 6px;
}

.gruppo-valuta {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* ===== FOOTER ===== */

.footer-principale {
    width: 100%;
    margin: 40px 0 0;
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
    background-color: #3f4f46;
    color: #f5f5f3;
    border-top: none;
    border-radius: 0;
    box-shadow: 0 -3px 10px rgba(60, 55, 45, 0.10);
}

.informazioni-footer,
.link-legali-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 12px;
    row-gap: 8px;
}

.informazioni-footer > h3 {
    flex-basis: 100%;
    text-align: center;
}

.separatore-footer {
    color: #e2c6a2;
    font-weight: 700;
    pointer-events: none;
}

/* ===== COLORI LINK E PULSANTI FOOTER ===== */

.footer-principale a,
.footer-principale .link-info-footer {
    color: #f5f5f3;
}

.footer-principale a {
    text-decoration: none;
}

.footer-principale a:hover,
.footer-principale .link-info-footer:hover {
    color: #d8e5db;
}

.footer-principale .link-info-footer {
    background-color: transparent;
    border: 0;
}

.footer-principale .whatsapp-footer a {
    border-color: #b8cbbd;
}

.footer-principale a:focus-visible,
.footer-principale .link-info-footer:focus-visible {
    outline: 2px solid #b8cbbd;
    outline-offset: 3px;
}

.testo-footer {
    margin: 0;
    margin-top: 20px;
}

.contatti-footer {
    margin-top: 0;
}

.titolo-contatti-footer {
    margin: 0 0 12px 0;
}

.email-footer,
.telefono-footer,
.whatsapp-footer {
    margin: 8px 0;
}

.contatti-footer a {
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.contatti-footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}
.titolo-assistenza-footer {
    margin: 18px 0 8px 0;
    font-size: 16px;
}

.whatsapp-footer a {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid #b8cbbd;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.whatsapp-footer a:hover {
    transform: translateY(-1px);
    background-color: rgba(255, 255, 255, 0.08);
    border-color: #d8e5db;
}

.whatsapp-footer a:hover {
    transform: translateY(-1px);
}

.link-legali-footer {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.link-legali-footer a {
    color: inherit;
    text-decoration: none;
}

.link-legali-footer a:hover {
    text-decoration: underline;
}

.contatti-footer {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px;
    box-sizing: border-box;
}

.contatti-footer p {
    line-height: 1.5;
    margin: 10px 0;
}

.contatti-footer h3 {
    margin-top: 0;
    margin-bottom: 16px;
}

.indirizzo-footer {
    margin: 20px 0 8px;
}

.indirizzo-contatti-footer a {
    color: inherit;
    text-decoration: none;
}

.indirizzo-contatti-footer a:hover {
    text-decoration: underline;
}

.ragione-sociale-footer,
.identificazione-footer {
    margin: 8px 0;
}

.social-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.social-footer p {
    margin: 0;
}

.social-footer a {
    color: inherit;
    text-decoration: none;
}

.social-footer a:hover {
    text-decoration: underline;
}

.informazioni-footer {
    margin-top: 28px;
}

.informazioni-footer h3 {
    margin-top: 0;
    margin-bottom: 6px;
}

.link-info-footer {
    border: 0;
    background: transparent;
    padding: 6px 10px;
    font: inherit;
    cursor: pointer;
}

.link-info-footer:hover {
    text-decoration: underline;
}

.pannello-info-footer {
    max-width: 700px;
    margin: 24px auto;
    padding: 24px;
    box-sizing: border-box;
    text-align: left;
    color: #333;
    background-color: #faf8f2;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(90, 75, 55, 0.020) 0,
            rgba(90, 75, 55, 0.020) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(90, 75, 55, 0.016) 0,
            rgba(90, 75, 55, 0.016) 1px,
            transparent 1px,
            transparent 5px
        );

    border: 1px solid #deddd8;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(60, 55, 45, 0.12);
}

.pannello-info-footer h3 {
    margin-top: 0;
    text-align: center;
}

.testo-pannello-info {
    line-height: 1.7;
}

.testo-pannello-info li {
    margin-bottom: 8px;
}

.sezione-legale {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    box-sizing: border-box;
    color: #333;
    background-color: #faf8f2;
    border: 1px solid #deddd8;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(60, 55, 45, 0.12);
}

.sezione-legale > h2 {
    text-align: center;
    margin-top: 0;
}

.contenuto-legale {
    line-height: 1.6;
}

.contenuto-legale h3 {
    margin-top: 24px;
    margin-bottom: 8px;
}

.contenuto-legale p {
    margin-top: 0;
}

.chiudi-info-footer,
.chiudi-sezione-legale {
    display: block;
    margin: 20px auto 0;
    min-height: 40px;
    padding: 9px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #285c3a;
    background-color: #f5f5f3;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.chiudi-info-footer:hover,
.chiudi-sezione-legale:hover {
    background-color: #eef5f0;
    border-color: #8eaa96;
    transform: translateY(-2px);
    box-shadow: 0 3px 7px rgba(45, 75, 55, 0.15);
}

.chiudi-info-footer:active,
.chiudi-sezione-legale:active {
    transform: translateY(0);
    box-shadow: none;
}

.chiudi-info-footer:focus-visible,
.chiudi-sezione-legale:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
}

.chiudi-sezione-legale {
    margin-top: 30px;
}

.intestazione-fissa {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #faf9f6;
    border-bottom: 1px solid #d8d2c5;
    box-shadow: 0 2px 8px rgba(60, 55, 45, 0.08);
}

.badge-carrello {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 50%;
    background-color: #d9534f;
    color: white;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

badge-carrello-alert {
    animation: avvisoCarrello 0.5s ease;
}

.checkout select.campo-checkout {
    cursor: pointer;
}

.checkout input:user-invalid,
.checkout select:user-invalid {
    border-color: #a33a32;
    box-shadow: 0 0 0 2px rgba(163, 58, 50, 0.12);
}

.checkout input:user-invalid:focus,
.checkout select:user-invalid:focus {
    border-color: #a33a32;
    box-shadow: 0 0 0 3px rgba(163, 58, 50, 0.16);
}

.info-ritiro-checkout {
    width: 100%;
    padding: 16px 18px;
    margin: 2px 0;
    background: #faf8f2;
    border: 1px solid #b8cbbd;
    border-left: 4px solid #3f7a52;
    border-radius: 8px;
    box-sizing: border-box;
}

.info-ritiro-checkout p {
    margin: 0 0 10px 0;
    line-height: 1.5;
    font-size: 15px;
}

/* Link Waze */
.info-ritiro-checkout a {
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    color: #3f7a52;
    text-decoration: none;
}

.info-ritiro-checkout a:hover {
    text-decoration: underline;
}

.info-ritiro-checkout a:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
    border-radius: 3px;
}

.campo-data-checkout,
.campo-ora-checkout {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    box-sizing: border-box;
}

.checkout input.campo-data-checkout {
    width: 190px;
    max-width: 100%;
    min-height: 48px;
    height: 48px;
    flex: none;
}

.campo-data-checkout::-webkit-calendar-picker-indicator,
.campo-ora-checkout::-webkit-calendar-picker-indicator {
    cursor: pointer;
    width: 20px;
    height: 20px;
    opacity: 1;
    filter: sepia(20%) saturate(700%) hue-rotate(85deg) brightness(75%);
}

.campo-data-checkout:focus,
.campo-ora-checkout:focus {
    outline: none;
    border-color: #3f7a52;
    box-shadow: 0 0 0 3px rgba(63, 122, 82, 0.14);
}

.dati-fattura-checkout {
    width: 100%;
    padding: 18px;
    margin-top: 6px;
    background: #faf8f2;
    border: 1px solid #b8cbbd;
    border-left: 4px solid #3f7a52;
    border-radius: 10px;
    box-sizing: border-box;
}

.dati-fattura-checkout input,
.dati-fattura-checkout select {
    width: 100%;
    box-sizing: border-box;
}

.dati-diversi-fattura {
    width: 100%;
    box-sizing: border-box;
}

.checkout input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    margin: 0 8px 0 0;
    vertical-align: middle;
    cursor: pointer;
    accent-color: #3f7a52;
}

.checkout label {
    cursor: pointer;
    line-height: 1.4;
}

.checkout input[type="checkbox"]:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
}

#riepilogo-ordine {
    width: 100%;
    margin-top: 22px;
    padding: 22px;
    background: #faf8f2;
    border: 1px solid #b8cbbd;
    border-radius: 12px;
    box-sizing: border-box;
}

#riepilogo-ordine h3 {
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    font-size: 21px;
    font-weight: 700;
    color: #3f7a52;
    border-bottom: 1px solid #b8cbbd;
}

#riepilogo-ordine p {
    margin: 8px 0;
    line-height: 1.5;
}

#riepilogo-ordine .totale-riepilogo {
    margin-top: 18px;
    padding-top: 14px;
    font-size: 20px;
    font-weight: 700;
    color: #2f5f3d;
    border-top: 2px solid #b8cbbd;
}

.info-orari-checkout {
    margin: 0;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    background: #faf8f2;
    border-left: 3px solid #3f7a52;
    border-radius: 6px;
}

.pulsante-checkout {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    margin-top: 10px;
    box-sizing: border-box;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* CONFERMA */

.checkout-conferma {
    background-color: #3f7a52;
    color: #ffffff;
    border: 1px solid #3f7a52;
}

.checkout-conferma:hover:not(:disabled) {
    background-color: #356846;
    border-color: #356846;
}


.checkout-modifica {
    background-color: #f5f5f3;
    color: #285c3a;
    border: 1px solid #b8cbbd;
}

.checkout-modifica:hover:not(:disabled) {
    background-color: #eef5f0;
    border-color: #9fb8a5;
}

.annulla-checkout {
    margin-top: 18px;
    background-color: #ffffff;
    background-image: none;
    color: #666666;
    border: 1px solid #b8cbbd;
}

.annulla-checkout:hover:not(:disabled) {
    background-color: #f5f5f3;
    background-image: none;
    color: #333333;
    border-color: #9fb8a5;
}

.checkout-whatsapp {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 3px 7px rgba(45, 75, 55, 0.16);
}

.pulsante-checkout:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 9px rgba(60, 55, 45, 0.18);
}

.pulsante-checkout:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.pulsante-checkout:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 3px;
}

.pulsante-checkout:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.checkout {
    width: calc(100% - 48px);
    max-width: 760px;
    margin: 30px auto;
    padding: 28px;
    box-sizing: border-box;
    background-color: #faf8f2;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(90, 75, 55, 0.020) 0,
            rgba(90, 75, 55, 0.020) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(90, 75, 55, 0.016) 0,
            rgba(90, 75, 55, 0.016) 1px,
            transparent 1px,
            transparent 5px
        );

    border: 1px solid #b8cbbd;
    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(60, 55, 45, 0.12);
}

.checkout form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout input,
.checkout select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
}

.checkout input:focus,
.checkout select:focus {
    outline: none;
    border-color: #3f7a52;
    box-shadow: 0 0 0 3px rgba(63, 122, 82, 0.14);
}

@keyframes avvisoCarrello {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.45);
    }

    100% {
        transform: scale(1);
    }
}

.logo-negozio {
    width: auto;
    height: 120px;
    max-width: 240px;
    object-fit: contain;
    display: block;
}

.sezione-storia {
    max-width: 850px;
    margin: 70px auto 0;
    padding: 32px 24px;
    box-sizing: border-box;
    text-align: center;
    border-top: 2px solid #3f7a52;
    border-bottom: 2px solid #3f7a52;
}

.titolo-storia {
    margin: 0 0 18px;
    font-size: 26px;
}

.testo-storia {
    margin: 0 auto 24px;
    line-height: 1.7;
}

.pulsante-storia {
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #3f7a52;
    border-radius: 8px;
    background-color:#f5f5f3;
    color:  #285c3a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
     transition: transform 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease;
}

.pulsante-storia:hover {
    background-color: #eef5f0;
    border-color: #9fb8a5;
    transform: translateY(-1px);
}

.pulsante-storia:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

.storia-completa {
    margin-top: 8px;
    padding-top: 10px;
    padding-bottom: 12px;
    border-top: 1px solid #dddddd;
    text-align: left;
    line-height: 1.5;
    white-space: pre-line;
}

/* ===== SOCIAL FOOTER ===== */

.contatti-footer .link-social-footer {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 6px 12px;

    color: #f5f5f3;
    text-decoration: none;
    font-weight: 500;

    transition: transform 0.2s ease,
                opacity 0.2s ease;
}

.contatti-footer .icona-social-footer {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: currentColor;
}

.contatti-footer .link-social-footer:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.contatti-footer .link-social-footer:hover span {
    text-decoration: underline;
}

.contatti-footer .link-social-footer:focus-visible {
    outline: 2px solid #b8cbbd;
    outline-offset: 3px;
    border-radius: 4px;
}

.social-facebook .icona-social-footer {
    color: #1877f2;
}

.social-instagram .icona-social-footer {
    color: #e4405f;
}

.social-tiktok .icona-social-footer {
    color: #25f4ee;
}

.dati-fattura-checkout input:not([type="checkbox"]),
.dati-fattura-checkout select {
    width: 100%;
    margin-top: 12px;
}

.dati-diversi-fattura {
    width: 100%;
    margin-top: 2px;
    box-sizing: border-box;
}

.checkout label {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
    cursor: pointer;
}

.dati-fattura-checkout label {
    margin: 5px 0;
}

.sviluppo-footer {
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px solid #dddddd;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.8px;
    color: #777777;
    text-align: center;
}

.pulsanti-extra-home {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.pulsanti-extra-home .pulsante-home {
    margin: 0;
}

/* =========================
   LINK CONSIGLIATI
   ========================= */

.sezione-link {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    box-sizing: border-box;
}

.titolo-link {
    text-align: center;
    margin-bottom: 24px;
      position: relative;
    top: -15px;
}

.contenitore-link {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.scheda-link {
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 12px;
    background: #faf8f2;
    box-sizing: border-box;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(90, 75, 55, 0.020) 0,
            rgba(90, 75, 55, 0.020) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(90, 75, 55, 0.016) 0,
            rgba(90, 75, 55, 0.016) 1px,
            transparent 1px,
            transparent 5px
        );

    border: 1px solid #deddd8;
    border-radius: 12px;
    box-sizing: border-box;
}

.nome-link {
    margin: 0 0 12px 0;
    font-size: 1.15rem;
}

.descrizione-link {
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.apri-link,
.apri-link:visited {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 16px;
    background-color: #1f6f43;
    color: white;
    border: 1px solid #1f6f43;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.apri-link:hover {
    background-color: #185735;
    color: white;
    border-color: #185735;
    opacity: 1;
}

.contenitore-dettaglio-prodotto {
    display: grid;
    grid-template-columns: minmax(280px, 42%) 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
    align-items: start;
    background-color: #faf8f2;
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(90, 75, 55, 0.020) 0,
            rgba(90, 75, 55, 0.020) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(90, 75, 55, 0.016) 0,
            rgba(90, 75, 55, 0.016) 1px,
            transparent 1px,
            transparent 5px
        );

    border: 1px solid #deddd8;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(60, 55, 45, 0.12);
}

.sezione-dettaglio-prodotto {
    width: 100%;
    box-sizing: border-box;
    padding: 20px 35px 25px;
}

.sezione-notizie {
    width: 100%;
    max-width: 1000px;
    margin: 30px auto;
    padding: 20px;
    box-sizing: border-box;
}

.titolo-notizie {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
    top: -10px;
}

.contenitore-notizie {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.scheda-notizia {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #faf8f2;
    background-image:
    repeating-linear-gradient(
        0deg,
        rgba(90, 75, 55, 0.020) 0,
        rgba(90, 75, 55, 0.020) 1px,
        transparent 1px,
        transparent 4px
    ),
    repeating-linear-gradient(
        90deg,
        rgba(90, 75, 55, 0.016) 0,
        rgba(90, 75, 55, 0.016) 1px,
        transparent 1px,
        transparent 5px
    );
    border: 1px solid #deddd8;
    border-radius: 12px;
    box-sizing: border-box;
}

.titolo-notizia {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
}

.data-notizia {
    margin: 0 0 14px 0;
    font-size: 0.9rem;
    color: #666666;
}

.testo-notizia {
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.link-notizia,
.link-notizia:visited {
    display: inline-block;
    align-self: flex-start;

    padding: 10px 16px;

    background-color: #1f6f43;
    color: white;

    border: 1px solid #1f6f43;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;
}

.link-notizia:hover {
    background-color: #185735;
    color: white;
    border-color: #185735;
}
.mostra-altri,
.torna-prodotti,
.torna-inizio-catalogo {
    background-color: #f5f5f3;
    border: 1px solid #b8cbbd;
    color: #285c3a;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.mostra-altri:hover,
.torna-prodotti:hover,
.torna-inizio-catalogo:hover {
    background-color: #eef5f0;
    border-color: #9fb8a5;
    transform: translateY(-2px);
    opacity: 1;
}

.mostra-altri:active,
.torna-prodotti:active,
.torna-inizio-catalogo:active {
    transform: translateY(0);
}

.mostra-altri:focus-visible,
.torna-prodotti:focus-visible,
.torna-inizio-catalogo:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

.torna-prodotti {
    margin-bottom: 20px;
}

.colonna-immagine-dettaglio {
    width: 100%;
}

.immagine-dettaglio-prodotto {
    display: block;
    width: 100%;
    max-width: 500px;
    height: 420px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 10px;
}

.colonna-informazioni-dettaglio {
    min-width: 0;
}

.titolo-dettaglio-prodotto {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #2f5f3d;
}

.descrizione-dettaglio-prodotto {
    margin: 0 0 18px;
    line-height: 1.65;
    color: #444;
}

.prezzo-dettaglio-prodotto {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0;
    color: #2f5f3d;
}

.stato-dettaglio-prodotto {
    font-weight: bold;
}

.scorta-dettaglio-prodotto,
.riga-dettaglio-prodotto {
    margin: 10px 0;
}

.acquista-dettaglio {
    margin-top: 20px;
}

.scorta-prodotto {
    margin: 6px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.stato-disponibile,
.stato-ultimi,
.stato-esaurito {
    margin: 4px 0;
    font-size: 14px;
    font-weight: 600;
}

.stato-disponibile {
    color: #3f7a52;
}

.stato-ultimi {
    color: #a56a24;
}

.stato-esaurito {
    color: #a33a32;
}


.galleria-immagini-prodotto {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;

    margin-top: 15px;
}

.miniatura-prodotto {
    width: 70px;
    height: 70px;
    object-fit: contain;
    padding: 4px;
    border: 1px solid #b8cbbd;
    border-radius: 6px;
    cursor: pointer;
    background-color: white;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.miniatura-prodotto:hover {
    transform: scale(1.05);
}

.miniatura-prodotto.miniatura-selezionata {
    border: 2px solid #285c3a;
}

@media (max-width: 900px) {

    .controlli-filtri {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ricerca, 
    .filtro-dipartimento,
    .filtro-categoria,
    .ordina-prodotti {
       width: 100%;
    }

    .filtro-prezzo {
    width: 120px;
}

    .gruppo-checkbox {
        width: 100%;
        flex-wrap: wrap;
    }

    .gruppo-prezzi {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .scheda {
        max-width: 100%;
    }

    .carrello{
       position: static;
       width: calc(100% - 48px);
       max-width: none;
       min-height: 0;
       max-height: none;
       margin: 24px 24px 0 24px;
       overflow-y: visible;
       box-sizing: border-box;
    }

    .contenitore-principale {
        flex-direction: column;
        padding: 0 24px;
    }

    /* SAPORI - TEMPORADA occupa tutta la larghezza disponibile */
.sezione-temporada {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

    .contenitore {
        width: 100%;
        gap: 10px;
    }

    .dipartimento-prodotto,
    .categoria-prodotto {
        margin-right: 6px;
        margin-bottom: 6px;
    }

    .riepilogo-ordine {
        padding: 14px;
    }

    .pulsante-checkout {
        width: 100%;
        margin-right: 0;
    }

    .form-checkout {
        padding: 14px;
    }

    .riga-carrello {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .azioni-prodotto-carrello,
    .testo-prodotto-carrello {
        width: 100%;
    }

    .azioni-carrello button {
        width: 100%;
    }

    .barra-lingua {
        padding: 8px 20px;
    } 

    .scheda:hover {
        transform: none;
    }

   .footer-principale {
          width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 16px;
    }

}

@media (max-width: 850px) {

    .contenitore-link {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 850px) {

    .contenitore-notizie {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    body {
        padding-top: var(--altezza-header, 208px);
    }

    .intestazione-fissa {
        width: 100%;
    }

    .navigazione-principale {
        justify-content: center;
        gap: 8px;
    }

    .link-navigazione {
        padding: 7px 9px;
        font-size: 14px;
    }

    .sezione-home {
        padding-top: 0;
    }

    .sezione-dettaglio-prodotto {
        padding: 20px 15px;
    }

    .contenitore-dettaglio-prodotto {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    .immagine-dettaglio-prodotto {
        max-width: 100%;
        height: auto;
        max-height: 280px;
    }

    .titolo-dettaglio-prodotto {
        font-size: 24px;
    }

    .filtri {
        position: static;
    }
}

@media (min-width: 769px) {
    .contenitore-principale {
        padding-top: 210px;
    }
}

@media (max-width: 600px) {

    .sezione-link {
        padding: 15px;
        margin-top: 20px;
    }

    .logo-negozio {
        height: 95px;
        max-width: 200px;
    }

    .titolo-catalogo {
        font-size: 20px;
        line-height: 1.3;
        text-align: center;
        scroll-margin-top: calc(var(--altezza-header, 208px) + 20px);
    }

    .barra-lingua {
        justify-content: center;
        gap: 8px;
        padding: 8px 12px;
    }

    .contenitore {
        grid-template-columns: 1fr;
    }

    .contenitore-link {
        grid-template-columns: 1fr;
    }

    .gruppo-azzera-risultati {
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .gruppo-azzera-risultati .azzera-filtri {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
    }

    .gruppo-azzera-risultati .conta-risultati,
    .gruppo-azzera-risultati .stato-ricerca {
        flex-basis: calc(50% - 5px);
        width: calc(50% - 5px);
        min-height: 48px;
        box-sizing: border-box;
        padding: 6px 8px;
    }

    .gruppo-azzera-risultati .stato-ricerca {
        margin-left: calc(50% + 5px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        text-align: center;
    }
    
    .stato-ricerca {
        flex: 0 0 100%;
    }

    .stato-ricerca {
        width: fit-content;
        max-width: 100%;
        box-sizing: border-box;
    }

    .scheda-link {
        padding: 18px;
    }

    .apri-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .checkout {
        width: calc(100% - 48px);
        margin: 20px auto;
        padding: 18px 14px;
        border-radius: 12px;
    }

    .checkout form {
        gap: 12px;
    }

    .checkout input,
    .checkout select {
        min-height: 46px;
        padding: 10px 12px;
        font-size: 16px;
    }

    .sezione-notizie {
        padding: 15px;
        margin-top: 20px;
    }

    .contenitore-notizie {
        grid-template-columns: 1fr;
    }

    .scheda-notizia {
        padding: 18px;
    }

    .link-notizia {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .checkout input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-height: 0;
        padding: 0;
        flex-shrink: 0;
    }

    .info-ritiro-checkout {
        padding: 14px;
    }

    .info-ritiro-checkout p {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .info-orari-checkout {
        padding: 10px 12px;
        font-size: 14px;
    }

    .dati-fattura-checkout {
        padding: 14px;
    }

    .riepilogo-ordine {
        margin-top: 18px;
        padding: 16px;
    }

    .riepilogo-ordine h3 {
        font-size: 19px;
    }

    .riepilogo-ordine p {
        font-size: 14px;
        overflow-wrap: anywhere;
    }

    .riepilogo-ordine .totale-riepilogo {
        font-size: 18px;
    }

    .pulsante-checkout {
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: 15px;
    }

    .titolo-carrello {
        font-size: 21px;
        margin-bottom: 16px;
        padding-bottom: 10px;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .testo-titolo-carrello {
        white-space: nowrap;
    }

    .badge-titolo-carrello {
        min-width: 25px;
        height: 25px;
        padding: 0 7px;
        font-size: 13px;
    }
    
    .footer-principale {
         width: 100%;
    margin: 24px 0 0;
    padding: 20px 12px;
    }

    .contatti-footer .link-social-footer {
        margin: 6px 8px;
    }

    .navigazione-principale {
        width: 100%;
        justify-content: center;
        gap: 2px;
        flex-wrap: nowrap;
    }

    .link-navigazione {
        padding: 7px 6px;
        font-size: 13px;
        white-space: nowrap;
    }

    .filtro-prezzo {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
        box-sizing: border-box;
    }

    label[for="prezzo-minimo"],
    label[for="prezzo-massimo"] {
        display: inline-block;
        width: 115px;
        flex-shrink: 0;
    }
    
    .social-footer {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 8px;
        margin-top: 14px;
    }

    .informazioni-footer .link-info-footer {
    min-height: 0;
    height: auto;
    padding-top: 0;
    padding-bottom: 0;
    line-height: normal;
}

 .link-legali-footer {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center;
    align-items: center;
    column-gap: 12px;
    row-gap: 12px;
    margin-top: 12px;
}

.link-legali-footer a:first-child {
    grid-column: 1 / -1;
    justify-self: center;
}

.link-legali-footer .separatore-footer:first-of-type {
    display: none;
}
}

@media (max-width: 360px) {

    .titolo-carrello {
        font-size: 19px;
        gap: 6px;
    }

    .badge-titolo-carrello {
        min-width: 23px;
        height: 23px;
        padding: 0 6px;
        font-size: 12px;
    }

    .nome-quantita-carrello {
        white-space: normal;
    }

    .totale-carrello {
        padding-left: 14px;
        padding-right: 14px;
    }

    .sconto-generale-carrello {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Avviso ordine WhatsApp temporaneo */
.avviso-carrello-whatsapp {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    width: calc(100% - 32px);
    max-width: 480px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;

    padding: 20px;
    border-radius: 12px;
    background-color: #ffffff;
    color: #222222;
    border: 1px solid #dddddd;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);

    text-align: center;
}


/* Avviso WhatsApp all'interno della schermata di attesa */
#schermata-attesa-whatsapp .avviso-carrello-whatsapp {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;

    flex: 0 0 auto;
    width: 100%;
    max-width: 480px;
    max-height: none;
    overflow: visible;

    margin: 8px auto 30px;
}

.avviso-carrello-whatsapp p {
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Titolo dell'avviso WhatsApp */
.avviso-carrello-whatsapp .titolo-avviso-whatsapp {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* Pulsante per reinviare l'ordine WhatsApp */
.avviso-carrello-whatsapp #btn-reenviar-ordine-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    padding: 2px 6px;
    margin: 0;
    box-sizing: border-box;

    border: none;
    border-radius: 8px;
    background-color: #25d366;
    color: #ffffff;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    cursor: pointer;
}

/* Pulsante per eliminare l'ordine WhatsApp temporaneo */
.avviso-carrello-whatsapp #btn-eliminar-ordine-whatsapp {
    display: block;
    width: 100%;
    padding: 12px 16px;

    border: 1px solid #cccccc;
    border-radius: 8px;
    background-color: #f5f5f5;
    color: #333333;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}

/* Sfondo del popup di conferma */
.popup-pagamento-carta {
    position: fixed;
    top: var(--altezza-header, 208px);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

/* Riquadro centrale del popup di conferma */
.popup-pagamento-carta-contenuto {
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    padding: 24px;
    background: #fff8e9;
    border: 1px solid #c9b89c;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
}

/* WEB SAPORI - Popup accesso riservato POR MAYOR */
.popup-pagamento-carta.popup-accesso-por-mayor {
    top: 0;
}

/* WEB SAPORI - Campo codice accesso POR MAYOR */
.popup-accesso-por-mayor input {
    display: block;
    width: 180px;
    max-width: 100%;
    height: 52px;
    margin: 20px auto;
    padding: 8px 12px;
    box-sizing: border-box;

    text-align: center;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 8px;

    background: #ffffff;
    border: 1px solid #c9b89c;
    border-radius: 10px;
    outline: none;
}

.popup-accesso-por-mayor input:focus-visible {
    border-color: #b58527;
    box-shadow: 0 0 8px rgba(181, 133, 39, 0.35);
}

.popup-accesso-por-mayor .popup-pagamento-carta-contenuto {
    max-width: 400px;
}

/* WEB SAPORI - Pulsanti accesso Catálogo Mayorista */
.popup-accesso-por-mayor button {
    min-width: 120px;
    min-height: 42px;
    margin: 6px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, filter 0.2s ease;
}

/* Pulsante principale Verificar */
.popup-accesso-por-mayor .popup-conferma-accetta {
    background-color: #b58527;
    color: #ffffff;
}

/* Pulsante secondario Cerrar */
.popup-accesso-por-mayor button:not(.popup-conferma-accetta) {
    background-color: #e9e2d5;
    color: #4b4030;
    border-color: #c9b89c;
}

/* Pulsante Verificar disabilitato */
.popup-accesso-por-mayor button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Focus tastiera */
.popup-accesso-por-mayor button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 133, 39, 0.35);
}

/* WEB SAPORI - Messaggio errore accesso Catálogo Mayorista */
.popup-accesso-por-mayor .errore-accesso-por-mayor {
    margin: 8px auto 14px;
    padding: 10px 12px;
    max-width: 280px;
    box-sizing: border-box;

    color: #a12626;
    background-color: #fff0ed;
    border: 1px solid #e6b8b2;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* Mantiene nascosto il messaggio finché non serve */
.popup-accesso-por-mayor .errore-accesso-por-mayor[hidden] {
    display: none;
}

/* Testo del popup di conferma */
.popup-pagamento-carta-contenuto p {
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Disposizione dei pulsanti del popup di conferma */
.popup-pagamento-carta-botones {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* Stile di base dei pulsanti del popup di conferma */
.popup-pagamento-carta-botones button {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #c9b89c;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Pulsante Annulla del popup di conferma */
.popup-pagamento-carta-botones .popup-conferma-annulla {
    background-color: #f5f5f5;
    color: #333333;
    border-color: #cccccc;
}

/* Pulsante Conferma del popup */
.popup-pagamento-carta-botones .popup-conferma-accetta {
    background-color: #2e7d32;
    color: #ffffff;
    border-color: #2e7d32;
}

/* SAPORI V3 — Fotografia Home responsive */

.fotografia-home {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
    border-radius: 0;
}

@media (max-width: 600px) {
    .fotografia-home {
        max-height: 420px;
        border-radius: 0px;
    }
}

/* SAPORI V3 - Filtri avanzati */

.filtri-avanzati {
    width: 100%;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    background-color: #faf9f6;
    padding: 0 12px;
}

.filtri-avanzati summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #3f7a52;
    list-style: none;
}

.filtri-avanzati summary::-webkit-details-marker {
    display: none;
}

.filtri-avanzati summary::after {
    content: "⌄";
    font-size: 22px;
    line-height: 1;
}

.filtri-avanzati[open] summary::after {
    content: "⌃";
}

/* SAPORI V3 - Filtri compatti su smartphone */

@media (max-width: 900px) {

    .controlli-filtri {
        gap: 8px;
        padding: 8px;
    }

    .controlli-filtri > .ricerca,
    .controlli-filtri > .filtro-categoria {
        min-height: 40px;
    }

    .filtri-avanzati {
        padding-left: 10px;
        padding-right: 10px;
    }

}

/* SAPORI V3 - Altezza compatta filtri avanzati */

@media (max-width: 900px) {

    .filtri-avanzati summary {
        padding: 0;
    }

    .filtri-avanzati[open] {
        padding-bottom: 8px;
    }
}

/* SAPORI V3 - Altezza uniforme dei controlli */

@media (max-width: 900px) {

    .filtri-avanzati {
        min-height: 40px;
    }

}

/* SAPORI V3 - Contatore risultati compatto */
.conta-risultati:not(.conta-risultati-vuoto):not(.conta-risultati-errore) {
    width: max-content;
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
    flex: 0 0 auto;
    color: #3f7a52;
    border-color: #b8cbbd;
    transition: color 0.2s ease,
                background-color 0.2s ease,
                border-color 0.2s ease;
}

@media (max-width: 600px) {
    .gruppo-azzera-risultati
    .conta-risultati:not(.conta-risultati-vuoto):not(.conta-risultati-errore) {
        flex: 0 0 auto;
        width: 100%;
        min-height: 40px;
        padding: 0 10px;
        white-space: nowrap;
    }
}

/* SAPORI V3 - X rossa nel campo di ricerca */
.ricerca::-webkit-search-cancel-button {
    cursor: pointer;
    filter: invert(22%) sepia(90%) saturate(2500%)
            hue-rotate(345deg) brightness(95%);
}

/* SAPORI V3 - Badge selettore lingua */
.selettore-lingua.badge-lingua {
    min-width: 0;
    width: 76px;
    min-height: 40px;
    padding: 0 6px;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    background-color: #faf9f6;
    color: #3f7a52;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.selettore-lingua.badge-lingua:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

/* SAPORI V3 - Badge valuta compatto */
.gruppo-valuta .etichetta-valuta {
    display: none;
}

.gruppo-valuta .selettore-valuta {
    margin-left: 0;
    min-width: 0;
    width: 76px;
    min-height: 40px;
    padding: 0 6px;
    box-sizing: border-box;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    background-color: #faf9f6;
    color: #3f7a52;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.gruppo-valuta .selettore-valuta:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

/* SAPORI V3 - Badge a destra nella navigazione */
.navigazione-principale > .barra-lingua {
    margin-left: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: nowrap;
}

/* SAPORI V3 - Badge circolari lingua e valuta */
.selettore-lingua.badge-lingua,
.gruppo-valuta .selettore-valuta {
    width: 42px;
    min-width: 42px;
    height: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    background-color: #faf9f6;
    border: 1px solid #b8cbbd;
}

/* SAPORI V3 - Bandiera centrata nel badge lingua */
.selettore-lingua.badge-lingua {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    text-align: center;
    text-align-last: center;
    border-radius: 50%;
    cursor: pointer;
}

/* SAPORI V3 - Badge valuta senza freccia */
.gruppo-valuta .selettore-valuta {
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    text-align-last: center;
    padding: 0;
    cursor: default;
}

/* SAPORI V3 - Badge bandiere più piccoli */
.selettore-lingua.badge-lingua,
.gruppo-valuta .selettore-valuta {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
    font-size: 19px;
    padding: 0;
    border-radius: 50%;
    box-shadow: none;
}

/* SAPORI V3 - Valuta più leggera e centrata */
.gruppo-valuta .selettore-valuta {
    font-weight: 400;
    font-size: 16px;
    text-align: center;
    text-align-last: center;
    appearance: none;
    -webkit-appearance: none;
    padding: 0;
    box-shadow: none;
}

/* SAPORI V3 - Bandiere senza contorno */
.selettore-lingua.badge-lingua,
.gruppo-valuta .selettore-valuta {
    border: none;
    outline: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Mantiene visibile il focus per la navigazione da tastiera */
.selettore-lingua.badge-lingua:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

/* SAPORI V3 - Menu adattabile senza fuoriuscite */
@media (max-width: 900px) {

    .header-principale {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navigazione-principale {
        width: 100%;
        min-width: 0;
        justify-content: center;
        gap: 8px 12px;
        flex-wrap: wrap;
    }

    .navigazione-principale > .barra-lingua {
        margin-left: 0;
        padding: 0;
        flex-wrap: nowrap;
    }
}

/* SAPORI V3 - Menu smartphone più compatto */
@media (max-width: 600px) {
    .header-principale {
        padding-left: 6px;
        padding-right: 6px;
    }

    .navigazione-principale {
        gap: 6px;
        justify-content: center;
    }

    .navigazione-principale > .link-navigazione {
        font-size: 13px;
        white-space: nowrap;
    }

    .navigazione-principale > .barra-lingua {
        gap: 3px;
    }
}

/* SAPORI V3 - Pulsante menu mobile */
.pulsante-menu-mobile {
    display: none;
    border: none;
    background: transparent;
    color: #3f7a52;
    font-size: 26px;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
}

.pulsante-menu-mobile:focus-visible {
    outline: 2px solid #3f7a52;
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .pulsante-menu-mobile {
        display: block;
    }
}

/* SAPORI V3 - Contenitore azioni mobile */
.azioni-header-mobile {
    display: none;
}

@media (max-width: 600px) {

    .header-principale {
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .azioni-header-mobile {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 4px;
        margin-left: auto;
        min-width: 0;
    }

    .pulsante-menu-mobile {
        flex-shrink: 0;
    }
}

/* SAPORI V3 - Menu mobile chiuso inizialmente */
@media (max-width: 600px) {

    .navigazione-principale {
        display: none;
    }
}

/* SAPORI V3 - Apertura menu smartphone */
@media (max-width: 600px) {

    .navigazione-principale.menu-mobile-aperto {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
        padding: 10px 0;
    }

    .navigazione-principale.menu-mobile-aperto
    > .link-navigazione {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 10px 14px;
    }
}

/* SAPORI V3 - Indicatore pagina attiva su smartphone */
.etichetta-pagina-mobile {
    display: none;
}

@media (max-width: 800px) {
    .etichetta-pagina-mobile {
        display: inline-block;
        color: #3f7a52;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }
}

/* SAPORI V3 - Logo sopra e comandi sotto su smartphone */
@media (max-width: 600px) {

    .header-principale {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .logo-negozio {
        display: block;
        margin: 0 auto;
    }

    .pulsante-menu-mobile {
        margin-left: 0;
    }

    .etichetta-pagina-mobile {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }

    .azioni-header-mobile {
        margin-left: auto;
    }
}
/* SAPORI V3 - Dimensione logo smartphone */
@media (max-width: 600px) {

    .logo-negozio {
        width: auto;
        max-width: 140px;
        height: auto;
        flex: 0 0 auto;
        margin: 0 auto;
    }
}

/* SAPORI V3 - Header smartphone su due righe */
@media (max-width: 600px) {

    .header-principale {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 6px;
        row-gap: 8px;
    }

    .logo-negozio {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        margin: 0;
        max-width: 140px;
    }

    .pulsante-menu-mobile {
        grid-column: 1;
        grid-row: 2;
    }

    .etichetta-pagina-mobile {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        white-space: nowrap;
    }

    .azioni-header-mobile {
        grid-column: 3;
        grid-row: 2;
        margin-left: 0;
    }
}

/* SAPORI V3 - Header mobile compatto con separatore */
@media (max-width: 600px) {

    .header-principale {
        padding: 8px 10px 6px;
        row-gap: 0;
    }

    /* Logo centrato con meno spazio sotto */
    .logo-negozio {
        max-width: 120px;
        margin: 0 auto 4px;
    }

    /* Linea tenue tra logo e menu */
    .header-principale::after {
        content: "";
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: end;

        width: 100%;
        height: 1px;
        background-color: #e8e8e8;
    }

    /* Menu più compatto */
    .pulsante-menu-mobile,
    .etichetta-pagina-mobile,
    .azioni-header-mobile {
        align-self: center;
    }

    .pulsante-menu-mobile {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* SAPORI V3 - Selettore lingua senza riquadro su smartphone */
@media (max-width: 600px) {

    .azioni-header-mobile .selettore-lingua {
        border: none;
        outline: none;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
        appearance: none;
        -webkit-appearance: none;
    }

    .azioni-header-mobile .selettore-lingua:focus-visible {
        outline: 2px solid #3f7a52;
        outline-offset: 3px;
    }
}
/* SAPORI V3 - Focus lingua delicato */
.selettore-lingua.badge-lingua:focus-visible,
.azioni-header-mobile .selettore-lingua:focus-visible {
    outline: 1px solid #a8c5b0;
    outline-offset: 2px;
    border-radius: 4px;
    box-shadow: none;
}

/* SAPORI V3 - Menu mobile aperto sotto la barra */
@media (max-width: 600px) {

    .navigazione-principale.menu-mobile-aperto {
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        margin: 0;
        padding: 6px 0;
        border-top: 1px solid #e8e8e8;
    }
}
   /* SAPORI V3 - Pagina attiva nel menu mobile */
@media (max-width: 600px) {

    .navigazione-principale.menu-mobile-aperto
    > .link-navigazione.attivo {
        background-color: #edf4ee;
        color: #3f7a52;
        border-radius: 6px;
    }
}
/* SAPORI V3 - Separazione leggera delle voci del menu mobile */
@media (max-width: 600px) {
    .navigazione-principale.menu-mobile-aperto
    > .link-navigazione:not(:last-child) {
        border-bottom: 1px solid #f0f0f0;
    }
}
/* SAPORI V3 - Pulsante menu mobile stabile */
@media (max-width: 600px) {

    .pulsante-menu-mobile {
        width: 42px;
        height: 38px;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;
        padding: 0;
    }
}

@media (min-width: 901px) {
    .filtri-avanzati[open] > .ordina-prodotti {
        flex: 0 0 220px;
        width: 220px;
        min-width: 0;
    }
}

/* SAPORI V3 - Spazio inferiore filtri avanzati */

@media (min-width: 901px) {
    .filtri-avanzati[open] {
        padding-bottom: 12px;
    }
}

/* SAPORI V3 - Hover lingua e valuta senza sfondo verde */

.selettore-lingua.badge-lingua,
.gruppo-valuta .selettore-valuta {
    transition: transform 0.2s ease;
}

.selettore-lingua.badge-lingua:hover,
.gruppo-valuta .selettore-valuta:hover {
    transform: scale(1.15);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

/* SAPORI V3 - Filtri avanzati ordinati su tablet */

@media (min-width: 769px) and (max-width: 900px) {

    .riga-prezzi-checkbox > .gruppo-checkbox {
        align-items: center;
    }
}

/* SAPORI V3 - Distanza tra filtri e prodotti su tablet */

@media (min-width: 769px) and (max-width: 900px) {
    .contenitore-principale {
        padding-top: 180px;
    }

    .sezione-home {
        padding-top: var(--altezza-header, 208px);
    }
}

/* SAPORI V3 - Schede responsive */

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

@media (min-width: 601px) and (max-width: 1100px) {
    .contenitore {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .contenitore {
        grid-template-columns: 1fr;
    }

}

/* SAPORI V3 - Checkbox adattabili su smartphone */

@media (max-width: 600px) {
    .filtri-avanzati .gruppo-checkbox {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        width: 100%;
        min-width: 0;
    }

    .filtri-avanzati .gruppo-checkbox label {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }
}

/* SAPORI V3 - Filtri avanzati compatti su smartphone */

@media (max-width: 600px) {

 .filtri-avanzati .riga-prezzi-checkbox {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .riga-prezzi-checkbox > .ordina-prodotti {
        min-height: 36px;
        height: 36px;
        margin-bottom: 6px;
    }

    .filtri-avanzati .gruppo-checkbox {
        gap: 6px;
    }
}

/* SAPORI V3 - Filtri prezzo solo su desktop */

@media (max-width: 1100px) {
    .filtri-avanzati .gruppo-prezzi {
        display: none;
    }
}

/* SAPORI V3 - Nascondere le spunte su smartphone piccoli */

@media (max-width: 600px) {
    .filtri-avanzati .gruppo-checkbox {
        display: none;
    }
}

/* SAPORI V3 - Spunte ordinate da 601px a 768px */

@media (min-width: 601px) and (max-width: 768px) {

    .filtri-avanzati .gruppo-checkbox {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 10px 20px;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
    }

    .filtri-avanzati .gruppo-checkbox label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        width: auto;
        max-width: 100%;
        min-width: 0;
        white-space: normal;
        box-sizing: border-box;
    }
}

/* SAPORI V3 - Ricerca e categorie affiancate da 601px a 900px */
@media (min-width: 601px) and (max-width: 900px) {

    .controlli-filtri > .ricerca,
    .controlli-filtri > .filtro-categoria {
        box-sizing: border-box;
    }
}

/* SAPORI V3 - Logo proporzionale sugli smartphone */
@media (max-width: 600px) {

    .logo-negozio {
        width: auto;
        height: auto;
        max-width: clamp(85px, 24vw, 120px);
    }
}

/* SAPORI V3 - Intestazione compatta da 601px a 900px */
@media (min-width: 601px) and (max-width: 900px) {

    .header-principale {
        gap: 8px;
        padding-top: 4px;
        padding-bottom: 8px;
    }
}

/* SAPORI V3 - Logo e menu su due righe nel desktop */
@media (min-width: 901px) {

    .header-principale {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
    }

    .logo-negozio {
        margin: 0;
    }

    .navigazione-principale {
        width: 100%;
        justify-content: flex-end;
    }
}

/* SAPORI V3 - Hamburger visibile sui tablet */
@media (min-width: 601px) and (max-width: 800px) {

    .pulsante-menu-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 38px;
        padding: 0;
        flex-shrink: 0;
    }
}

/* SAPORI V3 - Menu completo nascosto sui tablet */
@media (min-width: 601px) and (max-width: 800px) {

    .navigazione-principale {
        display: none;
    }
}

/* SAPORI V3 - Menu hamburger aperto sui tablet */
@media (min-width: 601px) and (max-width: 800px) {

    .navigazione-principale.menu-mobile-aperto {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 4px;
        padding: 10px 0;
        border-top: 1px solid #e8e8e8;
    }

    .navigazione-principale.menu-mobile-aperto
    > .link-navigazione {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: left;
        padding: 10px 14px;
    }

}

/* SAPORI V3 - Carrello, lingua e valuta visibili sui tablet */
@media (min-width: 601px) and (max-width: 800px) {

    .azioni-header-mobile {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        margin-left: auto;
        min-width: 0;
    }
}

/* SAPORI V3 - Intestazione tablet su due righe */
@media (min-width: 601px) and (max-width: 800px) {

    .header-principale {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 8px;
        row-gap: 8px;
    }

    .logo-negozio {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
        margin: 0;
    }

    .pulsante-menu-mobile {
        grid-column: 1;
        grid-row: 2;
    }

    .azioni-header-mobile {
        grid-column: 3;
        grid-row: 2;
        margin-left: 0;
    }
}

/* SAPORI V3 - Linea sottile sotto il logo sui tablet */
@media (min-width: 601px) and (max-width: 800px) {

    .header-principale::after {
        content: "";
        grid-column: 1 / -1;
        grid-row: 1;
        align-self: end;
        width: 100%;
        height: 1px;
        background-color: #e8e8e8;
    }
}

/* SAPORI V3 - Logo e navigazione su due righe nei laptop */
@media (min-width: 801px) and (max-width: 1200px) {

    .header-principale {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .logo-negozio {
        margin: 0 auto;
    }

    .navigazione-principale {
        width: 100%;
        justify-content: center;
    }
}

/* SAPORI V3 - Linea sottile sotto il logo sui laptop */
@media (min-width: 801px) and (max-width: 1200px) {

    .header-principale::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: #e8e8e8;
        order: 0;
    }

    .logo-negozio {
        order: -1;
    }

    .navigazione-principale {
        order: 1;
    }
}

/* SAPORI V3 - Lingua e valuta a destra sui laptop stretti */
@media (min-width: 801px) and (max-width: 900px) {

    .navigazione-principale > .barra-lingua {
        margin-left: auto;
    }

}

/* SAPORI V3 - Menu centrato sui laptop stretti */
@media (min-width: 801px) and (max-width: 1200px) {

    .navigazione-principale {
        position: relative;
        justify-content: center;
        padding-right: 0;
        box-sizing: border-box;
    }

    .navigazione-principale > .barra-lingua {
        position: absolute;
        right: 0;
        margin-left: 0;
    }

}

/* SAPORI V3 - Linea sottile tra logo e menu sul desktop */
@media (min-width: 1201px) {

    .header-principale::after {
        content: "";
        display: block;
        width: 100%;
        height: 1px;
        background-color: #e8e8e8;
        order: 0;
    }

    .logo-negozio {
        order: -1;
    }

    .navigazione-principale {
        order: 1;
    }
}

/* SAPORI V3 - Menu centrato sul desktop */
@media (min-width: 1201px) {

    .navigazione-principale {
        position: relative;
        width: 100%;
        justify-content: center;
        padding-right: 0;
        box-sizing: border-box;
    }

    .navigazione-principale > .barra-lingua {
        position: absolute;
        right: 0;
        margin-left: 0;
    }
}

/* SAPORI V3 - Logo più grande sul desktop */
@media (min-width: 1201px) {
 .logo-negozio {
        width: auto;
        height: 125px;
        max-width: 290px;
        object-fit: contain;
    }

    .filtri {
        margin-bottom: 12px;
    }
}

/* SAPORI V3 - Logo leggermente più grande sui laptop */
@media (min-width: 801px) and (max-width: 1200px) {

    .logo-negozio {
        width: auto;
        height: 130px;
        max-width: 260px;
        object-fit: contain;
    }
}

@media (min-width: 901px) and (max-width: 1200px) {
    .contenitore-principale {
        padding-top: 210px;
    }
}

@media (min-width: 320px) and (max-width: 390px) {
    .sezione-home {
        padding-top: 0;
    }
}

@media (min-width: 320px) and (max-width: 768px) {
    .filtri {
        margin-top: 12px;
    }

    .contenitore-principale {
        margin-top: 0;
    }
}

@media (min-width: 901px) {

    .filtri-avanzati:not([open]) {
        height: 40px;
    }
}

@media (min-width: 770px) and (max-width: 800px) {
    .contenitore-principale {
        padding-top: 176px;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .fotografia-home {
        height: 400px;
        max-height: none;
        object-fit: cover;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    .pulsante-home {
        margin-top: 8px;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .fotografia-home {
        height: 400px;
        max-height: none;
        object-fit: cover;
    }
}

@media (max-width: 600px) {
    .navigazione-principale.menu-mobile-aperto {
        gap: 2px;
    }
}

@media (min-width: 1201px) {

    .navigazione-principale.menu-mobile-aperto {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: #faf9f6;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .header-principale {
        position: relative;
    }

    .navigazione-principale.menu-mobile-aperto {
        position: absolute;
        top: 100%;
        left: -10px;
        right: auto;
        width: 100vw;
        z-index: 100;
        background-color: #faf9f6;
        box-sizing: border-box;
    }
}

/* SAPORI V3 - Evidenzia la sezione attiva nel menu hamburger tablet */
@media (min-width: 601px) and (max-width: 800px) {
    .navigazione-principale.menu-mobile-aperto
    > .link-navigazione.attivo {
        background-color: #edf4ee;
        color: #3f7a52;
        border-radius: 6px;
    }
}

/* SAPORI V3 - Uniforma il testo del menu hamburger */
@media (min-width: 769px) and (max-width: 800px) {
    .navigazione-principale.menu-mobile-aperto
    > .link-navigazione {
        font-size: 14px;
    }
}

/* SAPORI V3 - Altezza fotografia Home da 901 a 1024 px */
@media (min-width: 901px) {
    .fotografia-home {
        height: 400px;
        max-height: 400px;
        object-fit: cover;
    }
}

/* SAPORI V3 - Alza leggermente il pulsante Home */
@media (min-width: 901px) {
    .pulsante-home {
        transform: translateY(-12px);
    }
}

/* SAPORI V3 - Fotografia più alta sugli schermi grandi */
@media (min-width: 1201px) and (min-height: 900px) {
    .fotografia-home {
        height: clamp(400px, calc(100vh - 490px), 950px);
        max-height: 950px;
        object-fit: cover;
        object-position: center 40%;
    }
}

/* SAPORI V3 - Titolo Home su schermi molto grandi */
@media (min-width: 1921px) and (min-height: 1200px) {
    .sezione-home h2 {
        font-size: 26px;
    }
}

/* SAPORI V3 - Margini descrizione smartphone */
@media (max-width: 390px) {
    .sezione-home p {
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }
}

/* SAPORI V3 - Elementi più piccoli solo a 320 px */
@media (max-width: 320px) {
    .sezione-home h2 {
        font-size: 20px;
    }

    .sezione-home p {
        font-size: 14px;
    }

    .pulsante-home {
        font-size: 13px;
        padding: 9px 16px;
    }
}
/* SAPORI V3 - Più spazio laterale alla descrizione a 390 px */
@media (min-width: 376px) and (max-width: 390px) {
    .sezione-home p {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* SAPORI V3 - Margini descrizione da 444 a 600 px */
@media (min-width: 444px) and (max-width: 600px) {
    .sezione-home p {
        padding-left: 24px;
        padding-right: 24px;
        box-sizing: border-box;
    }
}

/* SAPORI V3 - Indirizzo footer */
.indirizzo-footer .indirizzo-riga-1 {
    display: block;
}

.indirizzo-footer .indirizzo-riga-2::after {
    content: ", ";
}

/* Smartphone fino a 390 px: tre righe */
@media (max-width: 390px) {
    .indirizzo-footer .indirizzo-riga-2,
    .indirizzo-footer .indirizzo-riga-3 {
        display: block;
    }

    .indirizzo-footer .indirizzo-riga-2::after {
        content: none;
    }
}

/* SAPORI V3 - Spazio attorno al pulsante WhatsApp */
.footer-principale .whatsapp-footer {
    margin-top: 18px;
    margin-bottom: 18px;
}

.foto-storia {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.foto-storia img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    margin: 0;
    padding: 0;
}

@media (min-width: 1600px) {
    .storia-completa {
        font-size: 18px;
        line-height: 1.4;
    }
}
@media (min-width: 2200px) {
    .storia-completa {
        font-size: 22px;
        line-height: 1.65;
    }
}

@media (min-width: 601px) and (max-width: 800px) {

    .controlli-filtri {
        display: grid;
        align-items: start;
        gap: 12px 14px;
    }

    .controlli-filtri > .ricerca,
    .controlli-filtri > .filtro-categoria {
        width: 100%;
        min-width: 0;
    }

    .controlli-filtri > .filtri-avanzati {
        grid-column: 1 / -1;
        min-width: 0;
    }

    .controlli-filtri > .gruppo-azzera-risultati {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

}

@media (min-width: 601px) and (max-width: 800px) {

    .controlli-filtri > .gruppo-azzera-risultati {
        flex-direction: row;
        align-items: flex-start;
        justify-content: flex-end;
        gap: 8px;
    }
}

@media (min-width: 601px) and (max-width: 800px) {

   .controlli-filtri {
        grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
    }  
} 

@media (min-width: 601px) and (max-width: 900px) {

    .filtri-avanzati .gruppo-checkbox {
        row-gap: 6px;
    }
}

@media (min-width: 390px) and (max-width: 600px) {
    .controlli-filtri {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 38%);
        align-items: start;
        gap: 8px;
    }

    .controlli-filtri > .ricerca,
    .controlli-filtri > .filtro-categoria {
        width: 100%;
        min-width: 0;
    }

    .controlli-filtri > .gruppo-azzera-risultati .azzera-filtri {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
   
   .controlli-filtri > .filtri-avanzati {
    grid-column: 1 / -1;
    min-width: 0;
}

    .controlli-filtri > .gruppo-azzera-risultati {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
   }
}

@media (max-width: 600px) {
    .gruppo-azzera-risultati {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .controlli-filtri > .gruppo-azzera-risultati .azzera-filtri,
    .gruppo-azzera-risultati .conta-risultati:not(.conta-risultati-vuoto):not(.conta-risultati-errore) {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        box-sizing: border-box;
        white-space: normal;
    }

}

@media (max-width: 600px) {
    .controlli-filtri > .gruppo-azzera-risultati .azzera-filtri,
    .controlli-filtri > .gruppo-azzera-risultati .conta-risultati {
        height: 32px;
        min-height: 32px;
        padding: 4px 6px;
        box-sizing: border-box;
    }
}

@media (min-width: 425px) and (max-width: 600px) {
    .contenitore > .scheda {
        max-width: 350px;
        justify-self: center;
    }
}

.dati-pagamento-riepilogo:not(:empty) {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    margin: 6px 0 10px;
    background-color: #f5f8f5;
    border: 1px solid #cbd9cd;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.dati-pagamento-riepilogo p {
    margin: 2px 0;
}

#schermata-attesa-whatsapp {
    position: fixed;
    inset: 0;
    z-index: 10000;

    display: none;
    flex-direction: column;
    align-items: center;

    overflow-y: auto;
    box-sizing: border-box;

    padding: 30px 15px;

    background-color: #f5f8f5;
}

#countdown-whatsapp {
    flex: 0 0 auto;
width: 100%;
max-width: 480px;
box-sizing: border-box;
margin: 20px auto 0;
    padding: 12px 24px;
    border: 1px solid #b8cbbd;
    border-radius: 8px;
    background-color: #eef5f0;
    color: #285c3a;
    font-size: 28px;
    font-weight: bold;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

/* SAPORI V3 - Righe carrello compatte su smartphone */
@media (max-width: 600px) {
    .riga-carrello {
        gap: 4px;
        margin-bottom: 4px;
        padding: 6px 10px;
    }
}

/* SAPORI V3 - Totale e sconto compatti su smartphone */
@media (max-width: 600px) {

    .totale-carrello {
        margin-top: 10px;
        padding: 10px 12px;
        font-size: 16px;
        line-height: 1.35;
    }

    .totale-carrello p + p {
        margin-top: 6px;
    }

    .totale-carrello .totale-finale {
        margin-top: 8px;
        padding-top: 8px;
        font-size: 18px;
    }

    .sconto-generale-carrello {
        gap: 6px;
        margin-top: 10px;
        padding: 8px 10px;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 600px) {

    .riga-carrello .aumenta,
    .riga-carrello .diminuisci,
    .riga-carrello .elimina {
        height: 32px;
         min-height: 32px;
        padding: 4px 8px;
        border-radius: 6px;
box-sizing: border-box;
    }

    .riga-carrello .aumenta,
    .riga-carrello .diminuisci {
        width: 32px;
        font-size: 18px;
        padding: 0;
    }

    .riga-carrello .elimina {
        font-size: 13px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 390px) {

    .riga-carrello .aumenta,
    .riga-carrello .diminuisci,
    .riga-carrello .elimina {
        height: 26px;
        min-height: 26px;
        padding-top: 0;
        padding-bottom: 0;
        box-sizing: border-box;
    }

    .riga-carrello .aumenta,
    .riga-carrello .diminuisci {
        width: 28px;
        min-width: 28px;
        padding-left: 0;
        padding-right: 0;
        font-size: 17px;
    }

    .riga-carrello .elimina {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 12px;
    }
}

@media (max-width: 340px) {
    .form-checkout {
        padding: 8px;
    }
}

@media (max-width: 390px) {

    .popup-pagamento-carta {
        padding: 10px;
    }

    .popup-pagamento-carta-contenuto {
         width: 90%;
    max-width: 300px;
    padding: 12px;
    max-height: 85%;
    }

    .popup-pagamento-carta-contenuto p {
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .popup-pagamento-carta-botones {
        gap: 8px;
        margin-top: 12px;
    }

    .popup-pagamento-carta-botones button {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@media (max-width: 390px) {

    .popup-avviso-contenuto {
        width: fit-content;
        max-width: min(280px, 100%);
        padding: 10px 12px;
    }

    .popup-avviso-contenuto .messaggio-popup-conferma {
        margin: 0;
        line-height: 1.35;
        overflow-wrap: break-word;
    }

    .popup-avviso-contenuto .popup-pagamento-carta-botones {
        margin-top: 10px;
        gap: 6px;
    }

    .popup-avviso-contenuto .popup-pagamento-carta-botones button {
        padding: 8px 12px;
    }
}

@media (min-width: 600px) {

    .riga-data-orario-checkout {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-items: start;
    }

    .checkout .riga-data-orario-checkout .campo-data-checkout,
    .checkout .riga-data-orario-checkout .campo-ora-checkout {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 599px) {

    .riga-data-orario-checkout {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

}

@media (min-width: 769px) and (max-width: 900px) {
    .carrello {
        margin-top: calc(var(--altezza-header, 208px) + 24px);
    }
}

@media (min-width: 551px) and (max-width: 900px) {

    .riga-carrello {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .testo-prodotto-carrello {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        overflow-wrap: normal;
    }

    .azioni-prodotto-carrello {
        flex: 0 0 auto;
        width: auto;
        white-space: nowrap;
    }
}

@media (min-width: 1101px) {

    .controlli-filtri > .filtri-avanzati[open] {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

}

@media (min-width: 1101px) and (max-width: 1263px) {

    .controlli-filtri > .filtri-avanzati[open] {
        flex: 0 0 100%;
        width: 100%;
    }
}

/* SAPORI V3 - Evita zoom automatico Safari su iPhone */
@media (max-width: 600px) {

    .ricerca {
        font-size: 16px;
    }

    .ricerca::placeholder {
        font-size: 16px;
    }

}

/* SAPORI V3 - Allineamento ricerca e categoria su iPhone */
@media (min-width: 390px) and (max-width: 600px) {

    .controlli-filtri > .ricerca,
    .controlli-filtri > .filtro-categoria {
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        min-height: 40px;
    }

}

/* SAPORI V3 - Pulsanti filtri uniformi su smartphone */
@media (max-width: 600px) {

    .controlli-filtri > .gruppo-azzera-risultati {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .controlli-filtri > .gruppo-azzera-risultati > .azzera-filtri,
    .controlli-filtri > .gruppo-azzera-risultati > .conta-risultati:not(.conta-risultati-vuoto):not(.conta-risultati-errore) {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        height: 40px;
        min-height: 40px;
        padding: 4px 6px;
        box-sizing: border-box;
        white-space: normal;
    }

}

/* SAPORI V3 - Dimensioni uniformi dei filtri su smartphone */
@media (max-width: 600px) {

    .controlli-filtri > .gruppo-azzera-risultati > .azzera-filtri,
    .controlli-filtri > .gruppo-azzera-risultati > .conta-risultati {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        height: 48px;
        min-height: 48px;
        padding: 6px 8px;
        box-sizing: border-box;
        white-space: normal;
    }

}
/* SAPORI V3 - Larghezza identica azzera e contatore */
@media (max-width: 600px) {

    .controlli-filtri > .gruppo-azzera-risultati > .azzera-filtri,
    .controlli-filtri > .gruppo-azzera-risultati > .conta-risultati,
    .controlli-filtri > .gruppo-azzera-risultati > .conta-risultati:not(.conta-risultati-vuoto):not(.conta-risultati-errore) {
        flex: 1 1 0;
        width: 0;
        min-width: 0;
        max-width: none;
        height: 48px;
        min-height: 48px;
        box-sizing: border-box;
    }

}

/* SAPORI V3 - Pulsante Filtri nel menu */
.pulsante-filtri-menu {
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    color: #222;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
    }

    /* SAPORI V3 - Pulsante Filtri accanto alla pagina attiva */
@media (max-width: 1100px) {

    .pulsante-filtri-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 5px 7px;
        font-size: 12px;
        font-weight: 600;
        color: #285c3a;
        background-color: #eef5f0;
        border: 1px solid #b8cbbd;
        border-radius: 6px;
        white-space: nowrap;
        flex-shrink: 0;
    }

}

/* SAPORI V3 - Filtri accanto a Productos su smartphone */
@media (max-width: 600px) {

    .pulsante-filtri-menu {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        align-self: center;
        margin-left: 4px;
    }

}

@media (max-width: 1100px) {
    .scheda {
        margin-top: 12px;
    }
}

@media (max-width: 600px) {

    .gruppo-pagina-filtri {
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 3px;
        min-width: 0;
    }

    .gruppo-pagina-filtri .etichetta-pagina-mobile,
    .gruppo-pagina-filtri .pulsante-filtri-menu {
        grid-column: auto;
        grid-row: auto;
        justify-self: auto;
        margin-left: 0;
    }

}
@media (min-width: 1101px) {
    .pulsante-filtri-menu {
        display: none !important;
    }
}

@media (min-width: 601px) and (max-width: 800px) {
    .gruppo-pagina-filtri {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }
}

@media (min-width: 801px) and (max-width: 900px) {

    .contenitore-principale {
        padding-top: 220px;
    }
}

/* SAPORI V3 - Spazio responsive sotto l'header fisso */
.contenitore-principale {
    padding-top: calc(var(--altezza-header, 208px) + 12px);
}

@media (max-width: 768px) {
    .contenitore-principale {
        padding-top: 0px;
    }
}

@media (min-width: 1025px)  {

    .controlli-filtri {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 10px;
        align-items: start;
    }

    .controlli-filtri > .ricerca,
    .controlli-filtri > .filtro-categoria {
        grid-column: span 6;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .controlli-filtri > .filtri-avanzati {
        grid-column: 1 / span 9;
        grid-row: 2;
        min-width: 0;
    }

    .controlli-filtri > .gruppo-azzera-risultati {
        display: flex;
        flex-direction: column;
        grid-column: 10 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        gap: 10px;
        align-items: stretch;
        box-sizing: border-box;
    }

    .controlli-filtri .azzera-filtri {
        width: 100%;
        box-sizing: border-box;
    }

   .controlli-filtri .gruppo-azzera-risultati
   .conta-risultati,
   .controlli-filtri .gruppo-azzera-risultati
    .stato-ricerca {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
}

@media (max-width: 360px) {
    .paginazione-catalogo {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    .paginazione-catalogo .torna-inizio-catalogo {
        order: 3;
    }
}

@media (min-width: 361px) and (max-width: 390px) {
    .paginazione-catalogo {
        column-gap: 4px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .contenitore-principale {
        padding-top: calc(var(--altezza-header, 208px) + 4px);
    }

    .filtri {
        margin-bottom: 2px;
    }
}

@media (min-width:1101px) {
    .filtri {
        margin-bottom: 6px;
    }
}

@media (min-width:320px) and (max-width:600px) {
    .contenitore-principale {
        padding-top: 4px;
    }

    .filtri {
        margin-bottom: 0;
    }
}

@media (min-width: 601px) and (max-width: 768px) {
    .filtri {
        margin-bottom: 4px;
    }
}

@media (min-width: 650px) and (max-width: 1100px) {
    .gruppo-prezzo .filtro-prezzo {
        width: 100px;
        min-width: 0;
        max-width: 100px;
        flex: 0 0 100px;
        box-sizing: border-box;
    }
}

@media (min-width: 650px) {

    .filtri-avanzati[open] > .riga-prezzi-checkbox {
        display: grid;
        grid-template-columns: minmax(180px, 1fr) max-content;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .riga-prezzi-checkbox > .ordina-prodotti {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        min-width: 0;
        margin: 0;
    }

    .filtri-avanzati .riga-prezzi-checkbox > .gruppo-prezzi {
        grid-column: 2;
        grid-row: 1;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .riga-prezzi-checkbox > .gruppo-checkbox {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        min-width: 0;
    }
}

/* Sottolineatura del pulsante Filtros solo quando è aperto */
.pulsante-filtri-menu[aria-expanded="false"]::after {
    display: none;
}


/* Filtri e schede proporzionati sugli schermi grandi */
@media (min-width: 1441px) {

    .controlli-filtri {
        width: calc(100% - 24px);
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    .contenitore {
        max-width: 1440px;
    }
}

/* WEB SAPORI - Contenitore dei due loghi */
.contenitore-loghi {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* WEB SAPORI - Posizione responsive dei due loghi */

@media (max-width: 800px) {
    .header-principale > .contenitore-loghi {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }
}
@media (min-width: 801px) and (max-width: 1200px) {
    .header-principale > .contenitore-loghi {
        order: -1;
    }
}

@media (min-width: 1201px) {
    .header-principale > .contenitore-loghi {
        order: -1;
    }
}

/* WEB SAPORI - Dimensione logo Listo-Ya su smartphone */
@media (max-width: 600px) {
    .contenitore-loghi .logo-listo-ya {
        transform: scale(1.10);
    }
}

/* WEB SAPORI - Dimensione logo Listo-Ya da 601px */
@media (min-width: 601px) {
    .contenitore-loghi .logo-listo-ya {
        transform: scale(0.80);
    }
}

/* WEB SAPORI - Loghi cliccabili */

.contenitore-loghi .logo-negozio {
    cursor: pointer;
}


.schermata-scelta-negozio img {
    width: 220px;
    max-width: 40%;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media (max-width: 600px) {
    .schermata-scelta-negozio {
        gap: 20px;
        padding: 20px;
    }

    .schermata-scelta-negozio img {
        width: 150px;
        max-width: 45%;
    }
}

/* Sapori attivo: Listo-Ya sfumato */
body.negozio-sapori .contenitore-loghi .logo-listo-ya {
    opacity: 0.4;
}

body.negozio-sapori .contenitore-loghi .logo-sapori {
    opacity: 1;
}

/* Listo-Ya attivo: Sapori sfumato */
body.negozio-listo .contenitore-loghi .logo-listo-ya {
    opacity: 1;
}

body.negozio-listo .contenitore-loghi .logo-sapori {
    opacity: 0.4;
}

/* WEB SAPORI - Schermata iniziale attiva */

body.scelta-negozio-attiva .schermata-scelta-negozio {
    display: flex !important;
}

body.scelta-negozio-attiva .intestazione-fissa,
body.scelta-negozio-attiva .sezione-home,
body.scelta-negozio-attiva .filtri,
body.scelta-negozio-attiva .contenitore-principale,
body.scelta-negozio-attiva .footer-principale {
    display: none !important;
}

.controlli-prezzo {
    display: flex;
    align-items: stretch;
    gap: 4px;
    min-width: 0;
}

.controlli-prezzo .filtro-prezzo {
    min-width: 0;
    flex: 1;
}

.frecce-prezzo {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.freccia-prezzo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    flex: 1;
    min-height: 16px;
    padding: 0;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
}

/* Bandiera Costa Rica accanto al titolo Listo-Ya */

.titolo-listo-bandiera {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.bandiera-costa-rica {
    font-size: 15px;
    line-height: 1;
    flex-shrink: 0;
}

.colonna-informazioni-dettaglio .titolo-listo-bandiera {
    justify-content: flex-start;
}

/* Bandiera in alto accanto al titolo nei Dettagli Listo-Ya */

.colonna-informazioni-dettaglio .bandiera-costa-rica {
    align-self: flex-start;
}

/* =========================================
   WEB SAPORI - SCHERMATA SCELTA NEGOZIO
   ========================================= */

/* Cornice principale */

.schermata-scelta-negozio {
    box-sizing: border-box;
    width: min(calc(100% - 32px), 1000px);
    min-height: 0;
    margin: 20px auto;
    padding: 30px 32px 36px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    opacity: 1;
transition: opacity 0.5s ease-in-out;
}

/* Intestazione */

.schermata-scelta-negozio .intestazione-scelta-negozio {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

/* Logo superiore */

.schermata-scelta-negozio .logo-intestazione-scelta {
    display: block;
    width: min(90%, 700px);
    max-width: 100%;
    height: auto;
    margin: 0 auto 8px;
    object-fit: contain;
}

/* Slogan */

.schermata-scelta-negozio .intestazione-scelta-negozio .slogan-scelta-negozio {
    margin: 4px 0 20px;
   font-size: clamp(20px, 2.4vw, 28px);
    font-style: italic;
    letter-spacing: 0.5px;
    color: #444;
}

/* Titolo */

.schermata-scelta-negozio .intestazione-scelta-negozio h1 {
    font-size: clamp(20px, 2.3vw, 24px);
    line-height: 1.2;
    margin: 0 0 12px;
    color: #303030;
}

/* Testi */

.schermata-scelta-negozio .intestazione-scelta-negozio p {
    color: #555;
    font-size: 20px;
}

.schermata-scelta-negozio
.intestazione-scelta-negozio
.invito-scelta-negozio {
    font-size: 15px;
    margin-top: 12px;
    color: #777;
}

/* Contenitore dei negozi */

.schermata-scelta-negozio .contenitore-loghi-scelta {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Riquadri cliccabili */

.schermata-scelta-negozio .riquadro-scelta-negozio {
    box-sizing: border-box;
    min-width: 0;
   min-height: 200px;
padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
    border-radius: 26px;
    box-shadow: none;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

/* Loghi dei negozi */

.schermata-scelta-negozio .logo-scelta-sapori,
.schermata-scelta-negozio .logo-scelta-listo {
    display: block;
    width: 100%;
    max-width: 450px;
    max-height: 260px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

/* WEB SAPORI - Focus selettori senza bordo dorato */

.schermata-scelta-negozio
.riquadro-scelta-negozio:focus-within {
    border-color: transparent;
    box-shadow: none;
}

/* WEB SAPORI - Focus tastiera discreto nella schermata iniziale */
.schermata-scelta-negozio
.riquadro-scelta-negozio:focus-visible {
    outline: none;
    box-shadow: none;
filter: brightness(1.12) drop-shadow(0 0 5px rgba(181, 133, 39, 0.45));
}

.schermata-scelta-negozio .logo-scelta-sapori:focus-visible,
.schermata-scelta-negozio .logo-scelta-listo:focus-visible {
    outline: none;
    box-shadow: none;
filter: brightness(1.12) drop-shadow(0 0 5px rgba(181, 133, 39, 0.45));
}

/* =========================================
   MOBILE - FINO A 600px
   ========================================= */

@media (max-width: 600px) {

    .schermata-scelta-negozio {
        width: calc(100% - 32px);
        margin: 10px auto;
        padding: 8px 18px 20px;
        gap: 12px;
        border-radius: 24px;
    }

   .schermata-scelta-negozio .logo-intestazione-scelta {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin-bottom: 8px;
}

    .schermata-scelta-negozio .intestazione-scelta-negozio .slogan-scelta-negozio{
        font-size: 16px;
        margin: 0 0 12px;
    }

    .schermata-scelta-negozio
    .intestazione-scelta-negozio h1 {
        font-size: 19px;
        margin-bottom: 6px;
    }

    .schermata-scelta-negozio
    .intestazione-scelta-negozio p {
        font-size: 16px;
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .schermata-scelta-negozio .contenitore-loghi-scelta {
        max-width: 420px;
         grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: -8px;
    }

    .schermata-scelta-negozio .riquadro-scelta-negozio {
        width: 100%;
        height: 155px;
        min-height: 0;
        padding:5px;
        border-radius: 20px;
    }

    .schermata-scelta-negozio .logo-scelta-sapori,
    .schermata-scelta-negozio .logo-scelta-listo {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
}

/* WEB SAPORI - Quattro loghi 2x2 su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .contenitore-loghi-scelta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* WEB SAPORI - Avvicinamento loghi inferiori 320-375 px */
@media (min-width: 320px) and (max-width: 375px) {

    .schermata-scelta-negozio .contenitore-loghi-scelta {
        row-gap: 0;
    }

    .schermata-scelta-negozio .banner-temporada-scelta,
    .schermata-scelta-negozio .riquadro-scelta-por-mayor {
        transform: translateY(-20px);
    }
}

/* =========================================
   ACCESSIBILITÀ - MOVIMENTO RIDOTTO
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    .schermata-scelta-negozio .riquadro-scelta-negozio {
        transition: none;
    }
}

/* Centratura verticale solo nella schermata iniziale */

@media (max-width: 600px) {

    body.scelta-negozio-attiva {
        min-height: 100vh;
        min-height: 100dvh;

        display: flex;
        flex-direction: column;
        justify-content: center;
        transform: translateY(-18px);
    }

    body.scelta-negozio-attiva .schermata-scelta-negozio {
        flex-shrink: 0;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

/* Titolo home Listo-Ya uguale a Sapori */

#home-listo .saluto-home-listo {
    font-size: 1.5em;
    font-weight: 700;
    line-height: normal;
}

/* SAPORI V3 - Header compatto fino a 390px */
@media (max-width: 500px) {

    /* Pulsante filtri */
    .pulsante-filtri-menu {
        height: 34px;
        min-height: 34px;
    }

    /* Carrello e badge affiancati */
    .link-carrello-header {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 3px;
        white-space: nowrap;
        transform: none;
    }

    .link-carrello-header .badge-carrello {
        margin-left: 0;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        font-size: 10px;
        flex-shrink: 0;
    }

    /* Azioni header */
    .azioni-header-mobile {
        gap: 3px;
    }

    /* Selettore lingua compatto */
    .azioni-header-mobile .barra-lingua {
        width: 34px;
        min-width: 34px;
        flex: 0 0 34px;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* SAPORI V3 - Filtri compatti da 320px a 800px */
@media (min-width: 320px) and (max-width: 800px) {

    .controlli-filtri > .gruppo-azzera-risultati > .azzera-filtri,
    .controlli-filtri > .gruppo-azzera-risultati > .conta-risultati,
    .controlli-filtri > .gruppo-azzera-risultati > .stato-ricerca {
        height: 26px !important;
        min-height: 26px !important;
        box-sizing: border-box;
    }

    .controlli-filtri > .gruppo-azzera-risultati > .azzera-filtri {
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* SAPORI V3 - Filtri avanzati compatti da 650px a 768px */
@media (min-width: 650px) and (max-width: 768px) {

    /* Nasconde i controlli del prezzo */
    .gruppo-prezzo {
        display: none;
    }

    /* Ordinamento a larghezza completa */
    .ordina-prodotti {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}
/* SAPORI V3 - Risultati compatti da 601px a 800px */
@media (min-width: 601px) and (max-width: 800px) {

    .gruppo-azzera-risultati .conta-risultati,
    .gruppo-azzera-risultati .stato-ricerca {
        width: auto;
        max-width: 100%;
        flex: 0 0 auto;
        margin-left: 0;
    }

    /* Contatore vuoto largo quanto Azzera filtri */
.gruppo-azzera-risultati
.conta-risultati.conta-risultati-vuoto {
    width: 138px;
    min-width: 138px;
    max-width: 138px;
    flex: 0 0 138px;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
}
}

/* SAPORI V3 - Filtri da 801px a 1024px */
@media (min-width: 801px) and (max-width: 1024px) {

    .controlli-filtri {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .controlli-filtri > .ricerca,
    .controlli-filtri > .filtro-categoria {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .controlli-filtri > .filtri-avanzati {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }

    .controlli-filtri > .gruppo-azzera-risultati {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 138px);
        justify-content: end;
        align-items: center;
        column-gap: 8px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .controlli-filtri > .gruppo-azzera-risultati > .azzera-filtri,
    .controlli-filtri > .gruppo-azzera-risultati > .conta-risultati,
    .controlli-filtri > .gruppo-azzera-risultati > .stato-ricerca {
        width: 138px;
        min-width: 138px;
        max-width: 138px;
        height: 26px;
        min-height: 26px;
        box-sizing: border-box;
        justify-content: center;
        text-align: center;
    }

    .controlli-filtri > .gruppo-azzera-risultati > .azzera-filtri {
        padding-top: 0;
        padding-bottom: 0;
    }
}

.totale-carrello .riga-importo-carrello {
    display: grid;
    grid-template-columns: 280px max-content;
    align-items: baseline;
    column-gap: 12px;
}

.totale-carrello .totale-finale {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: baseline;
    column-gap: 12px;
}

.totale-carrello .iva-inclusa {
    grid-column: 2;
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

/* SAPORI V3 - Riepilogo carrello mobile */
@media (max-width: 600px) {

    .totale-carrello {
        box-sizing: border-box;
        overflow-wrap: anywhere;
    }

    .totale-carrello .riga-importo-carrello,
    .totale-carrello .totale-finale {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 4px;
    }

    .totale-carrello .sconto-generale-carrello {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        justify-items: stretch;
        align-items: start;
        text-align: left;
        width: 100%;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }

    .totale-carrello .sconto-generale-carrello > span {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
        text-align: left;
        justify-self: start;
    }

    .totale-carrello .iva-inclusa {
        grid-column: 1;
    }
}

.social-scelta-negozio {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
    
}

.link-social-scelta {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 70px;
    min-height: 60px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.link-social-scelta .icona-social-footer {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.social-scelta-negozio .social-facebook {
    color: #1877F2;
}

.social-scelta-negozio .social-instagram {
    color: #E4405F;
}

.social-scelta-negozio .social-tiktok {
    color: #111111;
}

.schermata-scelta-negozio .social-scelta-negozio {
    margin-top: 35px;
}

.schermata-scelta-negozio .link-social-scelta .icona-social-footer {
    width: 32px;
    height: 32px;
}

/* WEB SAPORI - Focus tastiera social schermata iniziale */
.schermata-scelta-negozio .link-social-scelta:focus-visible {
    outline: none;
    border-radius: 10px;
    box-shadow: none;
    filter: brightness(1.12) drop-shadow(0 0 5px rgba(181, 133, 39, 0.45));
}

/* HOME SAPORI - MARGINI TESTO DA 391 A 599 PX */
@media (min-width: 391px) and (max-width: 599px) {

    body.negozio-sapori #home > p {
        max-width: calc(100% - 48px);
        margin-left: auto;
        margin-right: auto;
    }

}

/* PULSANTI FINALI ORDINE WHATSAPP */

#avviso-ordine-temporaneo-whatsapp {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 4px;
}

#avviso-ordine-temporaneo-whatsapp > p {
    grid-column: 1 / -1;
}

#avviso-ordine-temporaneo-whatsapp > button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 42px;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
    align-self: stretch;
}

/* SOTTO 425 PX */
@media (max-width: 424px) {

    #avviso-ordine-temporaneo-whatsapp {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 4px;
    }

    #avviso-ordine-temporaneo-whatsapp > button {
        height: 36px;
    }
}

/* POPUP DI CONFERMA COMPATTI - FINO A 1024 PX */
@media (max-width: 1024px) {

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto) {
        width: min(300px, 100%);
        max-width: 300px;
        padding: 14px;
    }

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto) p {
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto)
    .popup-pagamento-carta-botones {
        gap: 6px;
        margin-top: 10px;
    }

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto)
    .popup-pagamento-carta-botones button {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 14px;
        line-height: 1.2;
    }
}

@media (max-width: 390px) {

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto) {
        width: min(260px, 100%);
        max-width: 260px;
        padding: 10px;
    }

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto)
    .popup-pagamento-carta-botones {
        gap: 5px;
        margin-top: 8px;
    }

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto)
    .popup-pagamento-carta-botones button {
        min-height: 34px;
        padding: 6px 8px;
        font-size: 13px;
    }
}

/* POPUP DI AVVISO - FINO A 1024 PX */
@media (max-width: 1024px) {

    .popup-pagamento-carta-contenuto.popup-avviso-contenuto {
        width: min(260px, 100%);
        max-width: 260px;
        padding: 12px;
    }

    .popup-avviso-contenuto .messaggio-popup-conferma {
        margin: 0;
        line-height: 1.4;
        overflow-wrap: break-word;
    }

    .popup-avviso-contenuto .popup-pagamento-carta-botones {
        margin-top: 10px;
        gap: 0;
    }

    .popup-avviso-contenuto .popup-pagamento-carta-botones button {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 13px;
        line-height: 1.2;
    }
}

/* POPUP DESKTOP - DA 1025 A 1440 PX */
@media (min-width: 1025px) and (max-width: 1440px) {

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto) {
        max-width: 340px;
    }

    .popup-pagamento-carta-contenuto.popup-avviso-contenuto {
        max-width: 300px;
    }
}

/* POPUP DESKTOP - DA 1441 PX */
@media (min-width: 1441px) {

    .popup-pagamento-carta-contenuto:not(.popup-avviso-contenuto) {
        max-width: 400px;
    }

    .popup-pagamento-carta-contenuto.popup-avviso-contenuto {
        max-width: 320px;
    }
}

/* NOTIZIE - CENTRARE UNA SOLA SCHEDA */
.contenitore-notizie:has(> .scheda-notizia:only-child) {
    grid-template-columns: minmax(0, 440px);
    justify-content: center;
}

.schermata-scelta-negozio .riquadro-scelta-negozio {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.schermata-scelta-negozio .contenitore-loghi-scelta::before {
    content: "";
    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 2px;

    background: linear-gradient(
        to bottom,
        transparent,
        #165E7A 25%,
        #165E7A 75%,
        transparent
    );

    transform: translateX(-50%);
    pointer-events: none;
}

/* WEB SAPORI - Correzione posizione linee geometriche */

.schermata-scelta-negozio .contenitore-loghi-scelta {
    position: relative !important;
}

/* WEB SAPORI - Linea orizzontale sfumata */

.schermata-scelta-negozio .contenitore-loghi-scelta::after {
    content: "";
    position: absolute;

    top: 50%;
    left: 0;
    right: 0;

   height: 5px;

background: linear-gradient(
    to right,
    transparent 0%,
    rgba(22, 94, 122, 0.25) 8%,
    #165E7A 38%,
    #165E7A 50%,
    #165E7A 62%,
    rgba(22, 94, 122, 0.55) 85%,
    transparent 100%
);

    transform: translateY(-50%);
    pointer-events: none;
}

/* Nasconde le linee centrali */
.schermata-scelta-negozio
.contenitore-loghi-scelta::before,
.schermata-scelta-negozio
.contenitore-loghi-scelta::after {
    display: none;
}

/* WEB SAPORI - Figura centrale animazione ingresso */

.schermata-scelta-negozio .figura-ingresso-sapori {
    position: absolute;

    top: 115%;
    left: 50%;

    width: 100px;
height: 100px;

    max-width: none;
    object-fit: contain;

    transform: translate(-50%, -50%);

    z-index: 5;
    pointer-events: none;
}

/* WEB SAPORI - Rotazione ingresso morbida */
/* WEB SAPORI - Rotazione fluida con dissolvenza finale */
@keyframes rotazioneFiguraIngresso {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        opacity: 1;
    }

    87.5% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        opacity: 0;
    }
}

.schermata-scelta-negozio
.figura-ingresso-sapori.in-rotazione {
   animation: rotazioneFiguraIngresso 3s linear 1;
}

/* Accessibilità: evita il movimento se richiesto */
@media (prefers-reduced-motion: reduce) {
    .schermata-scelta-negozio
    .figura-ingresso-sapori.in-rotazione {
        animation: none;
    }
}

/* WEB SAPORI - Posizionamento linee Sapori */
.schermata-scelta-negozio
.riquadro-scelta-negozio.selettore-attivo-sapori {
    position: relative;
}

/* Linea destra */
.schermata-scelta-negozio
.selettore-attivo-sapori::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 4px;
    height: 100%;
animation: apparizioneLineeIngresso 0.6s ease-out both;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #165E7A 70%,
        #165E7A 100%
    );

    pointer-events: none;
}

/* Linea inferiore */
.schermata-scelta-negozio
.selettore-attivo-sapori::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
animation: apparizioneLineeIngresso 0.6s ease-out both;
    background: linear-gradient(
        to right,
        transparent 0%,
        #165E7A 70%,
        #165E7A 100%
    );

    pointer-events: none;
}

/* WEB SAPORI - Figura centrale ingresso Listo Ya */

.schermata-scelta-negozio .figura-ingresso-listo {
    position: absolute;

    top: 100%;
    left: 50%;

   width: 120px;
height: 120px;

    max-width: none;
    object-fit: contain;

    transform: translate(-50%, -50%);

    z-index: 5;
    pointer-events: none;
}

/* WEB SAPORI - Rotazione cappello Listo Ya */

.schermata-scelta-negozio
.figura-ingresso-listo.in-rotazione {
    animation: rotazioneFiguraIngresso 3s linear 1;
}

@media (prefers-reduced-motion: reduce) {
    .schermata-scelta-negozio
    .figura-ingresso-listo.in-rotazione {
        animation: none;
    }
}

/* Linea inferiore */
.schermata-scelta-negozio
.selettore-attivo-listo::after {
    content: "";
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 4px;
animation: apparizioneLineeIngresso 0.6s ease-out both;
    background: linear-gradient(
        to left,
        transparent 0%,
        #165E7A 70%,
        #165E7A 100%
    );

    pointer-events: none;
}

/* WEB SAPORI - Posizionamento linee Listo Ya */
.schermata-scelta-negozio
.riquadro-scelta-negozio {
    position: relative;
}

/* WEB SAPORI - Linea sinistra Listo Ya */
.schermata-scelta-negozio
.riquadro-scelta-negozio.selettore-attivo-listo::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;
animation: apparizioneLineeIngresso 0.6s ease-out both;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #165E7A 70%,
        #165E7A 100%
    );

    pointer-events: none;
}

/* WEB SAPORI - Figura centrale ingresso TEMPORADA */

.schermata-scelta-negozio .figura-ingresso-temporada {
    position: absolute;

    top: 105%;
    left: 50%;
width: 75px;
height: 75px;

    max-width: none;
    object-fit: contain;

    transform: translate(-50%, -50%);

    z-index: 5;
    pointer-events: none;
}

/* WEB SAPORI - Rotazione pallina TEMPORADA */

.schermata-scelta-negozio
.figura-ingresso-temporada.in-rotazione {
    animation: rotazioneFiguraIngresso 3s linear 1;
}

@media (prefers-reduced-motion: reduce) {
    .schermata-scelta-negozio
    .figura-ingresso-temporada.in-rotazione {
        animation: none;
    }
}

/* WEB SAPORI - Linee ingresso TEMPORADA */

.schermata-scelta-negozio
.banner-temporada-scelta.selettore-attivo-temporada {
    position: relative;
}

/* Linea superiore */
.schermata-scelta-negozio
.selettore-attivo-temporada::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;
animation: apparizioneLineeIngresso 0.6s ease-out both;
    background: linear-gradient(
        to right,
        transparent 0%,
        #165E7A 70%,
        #165E7A 100%
    );

    pointer-events: none;
}

/* Linea destra */
.schermata-scelta-negozio
.selettore-attivo-temporada::after {
    content: "";
    position: absolute;

    top: 0;
    right: 0;

    width: 4px;
    height: 100%;
animation: apparizioneLineeIngresso 0.6s ease-out both;
    background: linear-gradient(
        to bottom,
        #165E7A 0%,
        #165E7A 30%,
        transparent 100%
    );

    pointer-events: none;
}

/* WEB SAPORI - Banner natalizio TEMPORADA */

.schermata-scelta-negozio .banner-temporada-scelta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;
    padding: 16px;

    box-sizing: border-box;
    text-align: center;
background: transparent;
border: none;
box-shadow: none;
    cursor: pointer;
}

/* WEB SAPORI - Logo natalizio TEMPORADA */

.schermata-scelta-negozio .logo-natale-temporada {
    display: block;

    width: 100%;
    max-width: 360px;
    max-height: 260px;
    height: auto;

    object-fit: contain;

    margin: 0 auto;

    cursor: pointer;
}

/* WEB SAPORI - Equilibrio TEMPORADA su schermi intermedi */
@media (min-width: 426px) and (max-width: 900px) {
    .schermata-scelta-negozio .logo-natale-temporada {
        width: 85%;
    }
}
/* WEB SAPORI - Regolazione TEMPORADA da 600 a 700 px */
@media (min-width: 600px) and (max-width: 700px) {
    .schermata-scelta-negozio .logo-natale-temporada {
        width: 90%;
    }
}

/* Titolo natalizio */
/* Descrizione natalizia */
.schermata-scelta-negozio .titolo-banner-temporada {
    margin: 0;
    color: #F4D9A5;
    font-size: clamp(12px, 1.5vw, 20px);
    line-height: 1.3;
}

.schermata-scelta-negozio .descrizione-banner-temporada {
    margin: 0;
    color: #FFFFFF;
    font-size: clamp(10px, 1.1vw, 14px);
    line-height: 1.4;
}

/* WEB SAPORI - Logo Catálogo Mayorista */
.schermata-scelta-negozio .logo-por-mayor {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    opacity: 1;
    transform: scale(1.15);
transition: opacity 1.2s ease-in-out;

}

/* WEB SAPORI - Messaggio temporaneo POR MAYOR */
.schermata-scelta-negozio .riquadro-scelta-por-mayor {
    position: relative;
}

.schermata-scelta-negozio .messaggio-proximamente-mayor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

   padding: 10px 12px;
width: max-content;
max-width: calc(100% - 20px);
    box-sizing: border-box;

    background: #165E7A;
    color: #ffffff;
    border: 1px solid #C8A46B;
    border-radius: 12px;

    font-size: clamp(10px, 2vw, 16px);
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
  white-space: nowrap;
overflow-wrap: normal;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    z-index: 10;
    pointer-events: none;
}

/* WEB SAPORI - Dissolvenza logo e messaggio POR MAYOR */

.schermata-scelta-negozio .logo-por-mayor.logo-nascosto {
    opacity: 0;
}

/* WEB SAPORI - Apparizione graduale POR MAYOR */
.schermata-scelta-negozio .messaggio-proximamente-mayor {
    animation: apparizioneMayor 0.9s ease-in-out 0.5s both;
}

@keyframes apparizioneMayor {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* WEB SAPORI - Apparizione morbida delle linee blu */
@keyframes apparizioneLineeIngresso {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* WEB SAPORI - Popup POR MAYOR su smartphone piccoli */
@media (max-width: 375px) {
    .schermata-scelta-negozio .messaggio-proximamente-mayor {
        font-size: 9px;
        letter-spacing: 0;
        padding: 8px 5px;
        white-space: nowrap;
    }
}

@media (min-width: 320px) and (max-width: 360px) {
    .schermata-scelta-negozio {
        padding-bottom: 6%;
    }
}

@media (min-width: 320px) and (max-width: 360px) {

    /* SAPORI - Tarallo */
    .schermata-scelta-negozio .figura-ingresso-sapori {
        width: 60px;
        height: 60px;
    }

    /* LISTO YA - Cappello */
    .schermata-scelta-negozio .figura-ingresso-listo {
        width: 95px;
        height: 95px;
    }

    /* TEMPORADA - Pallina */
    .schermata-scelta-negozio .figura-ingresso-temporada {
        width: 60px;
        height: 60px;
    }

}

/* SAPORI - Centra la sezione TEMPORADA */
.contenitore-principale > .sezione-temporada {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
}

/* TEMPORADA - Prezzi nascosti in tutte le schede */
.scheda.temporada-prossimamente .prezzo-prodotto {
    display: none;
}

/* WEB SAPORI - Altezza TEMPORADA solo durante "Prossimamente" */
@media (min-width: 1101px) {
    .contenitore-prodotti-temporada .scheda.temporada-prossimamente {
        min-height: 472px;
    }
}

/* TEMPORADA - Animazione del messaggio in tutte le schede */
.scheda.temporada-prossimamente .disponibilita-prodotto .stato-prodotto {
    animation: pulsaMessaggioTemporada 2.5s ease-in-out infinite;
}

@keyframes pulsaMessaggioTemporada {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.65;
        transform: scale(1.04);
    }
}

/* TEMPORADA - Rispetta la preferenza di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
    .scheda.temporada-prossimamente .disponibilita-prodotto .stato-prodotto {
        animation: none;
    }
}

/* TEMPORADA - Titolo e misura delle confezioni */
.contenitore-prodotti-temporada .titolo-prodotto {
    min-height: 0;
    margin-bottom: 2px;
    text-align: center;
}
.contenitore-prodotti-temporada .descrizione-prodotto {
    margin: 2px 0 8px;
    text-align: center;
}

/* TEMPORADA - Titolo su una riga nei telefoni */
@media (max-width: 425px) {

    .contenitore-prodotti-temporada .scheda {
        padding-left: 3px;
        padding-right:4px;
    }

    .contenitore-prodotti-temporada .titolo-prodotto {
        font-size: clamp(15px, 4.0vw, 18px);
        white-space: nowrap;
        min-height: 0;
        line-height: 1.3;
        margin-left: 0;
        margin-right: 0;
    }
}

/* WEB SAPORI - Dimensione logo Por Mayor su smartphone */
@media (max-width: 600px) {

    .schermata-scelta-negozio .logo-por-mayor {
        transform: none;
    }

}

/* WEB SAPORI - Icone social più piccole su smartphone */
@media (max-width: 600px) {

    .schermata-scelta-negozio .link-social-scelta .icona-social-footer {
        width: 24px;
        height: 24px;
    }

}

/* WEB SAPORI - Social e separatore smartphone */

.schermata-scelta-negozio .social-scelta-negozio {
    display: grid;
    grid-template-columns: repeat(2, 100px);
    justify-content: center;
    justify-items: center;
    column-gap: 12px;
    row-gap: 8px;

    margin-top: -22px;
    padding-top: 24px;

    position: relative;
}

/* Centra i social nelle rispettive colonne */
.schermata-scelta-negozio .link-social-scelta {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Linea più lunga, chiara e sfumata */
.schermata-scelta-negozio .social-scelta-negozio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 260px;
    max-width: 90vw;
    height: 1px;

    background: linear-gradient(
        to right,
        transparent,
        rgba(22, 94, 122, 0.18) 25%,
        rgba(22, 94, 122, 0.28) 50%,
        rgba(22, 94, 122, 0.18) 75%,
        transparent
    );
}

/* WEB SAPORI - Posizione precisa dei tre social */

.schermata-scelta-negozio .link-social-scelta:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

.schermata-scelta-negozio .link-social-scelta:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.schermata-scelta-negozio .link-social-scelta:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

@media (max-width: 600px) {

/* WEB SAPORI - Centro comune animazioni smartphone */

/* SAPORI */
.schermata-scelta-negozio .figura-ingresso-sapori {
    top: calc(100% - 10px);
    left: calc(100% + 4px);
}

/* LISTO YA */
.schermata-scelta-negozio .figura-ingresso-listo {
    top: calc(100% - 10px);
    left: -4px;
}

/* TEMPORADA */
.schermata-scelta-negozio .figura-ingresso-temporada {
    top: 10px;
    left: calc(100% + 4px);
}

}


/* WEB SAPORI - Loghi seconda riga più grandi a 320px */
@media (min-width: 320px) and (max-width: 375px) {

    /* TEMPORADA */
    .schermata-scelta-negozio .logo-natale-temporada {
        transform: scale(1.08);
    }

    /* POR MAYOR */
    .schermata-scelta-negozio .logo-por-mayor {
        transform: scale(1.08);
    }

}

/* WEB SAPORI - Tarallo Sapori più piccolo a 390px */
@media (min-width: 376px) and (max-width: 425px) {

    .schermata-scelta-negozio .figura-ingresso-sapori {
        width: 85px;
        height: 85px;
        top: calc(100% + 8px);
        
    }

}

/* WEB SAPORI - Social su una riga da 426 a 600px */
@media (min-width: 426px) and (max-width: 600px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        grid-template-columns: repeat(3, 100px);
        column-gap: 24px;
        justify-content: center;
        margin-top: 16px;
    }

    .schermata-scelta-negozio .link-social-scelta:nth-child(1),
    .schermata-scelta-negozio .link-social-scelta:nth-child(2),
    .schermata-scelta-negozio .link-social-scelta:nth-child(3) {
        grid-column: auto;
        grid-row: 1;
    }

}

/* WEB SAPORI - Centro animazioni da 426 a 600px */
@media (min-width: 426px) and (max-width: 600px) {

    .schermata-scelta-negozio .figura-ingresso-sapori,
    .schermata-scelta-negozio .figura-ingresso-listo {
        top: calc(100% + 4px);
    }

    .schermata-scelta-negozio .figura-ingresso-temporada {
        top: -4px;
    }

}

/* WEB SAPORI - Dimensioni loghi negozi su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .contenitore-loghi-scelta {
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

}

/* WEB SAPORI - Logo Temporada su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .logo-natale-temporada {
        width: 100%;
    }

}

/* WEB SAPORI - Animazioni centrali da 601 a 1024px */
@media (min-width: 601px) and (max-width: 1024px) {

    /* SAPORI */
    .schermata-scelta-negozio .figura-ingresso-sapori {
        top: 100%;
        left: 100%;
    }

    /* LISTO YA */
    .schermata-scelta-negozio .figura-ingresso-listo {
        top: 100%;
        left: 0;
    }

    /* TEMPORADA */
    .schermata-scelta-negozio .figura-ingresso-temporada {
        top: 0;
        left: 100%;
    }

}

/* WEB SAPORI - Social su una riga nei tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

}


/* WEB SAPORI - Avvicina i loghi ai sottotitoli su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .contenitore-loghi-scelta {
        transform: translateY(-15px);
    }

}

/* WEB SAPORI - Spazio prima dei social su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        margin-top: -10px;
    }

}

/* WEB SAPORI - Dimensione logo principale su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .logo-intestazione-scelta {
        width: 400px;
        max-width: 90%;
        height: auto;
    }

}


/* WEB SAPORI - Logo principale da 426 a 600px */
@media (min-width: 426px) and (max-width: 600px) {

    .schermata-scelta-negozio .logo-intestazione-scelta {
        width: 350px;
        max-width: 90%;
        height: auto;
    }

}

/* WEB SAPORI - Continuità posizione logo principale su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio {
        padding-top: 55px;
    }

}

/* WEB SAPORI - Titolo H1 su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    .schermata-scelta-negozio .intestazione-scelta-negozio h1 {
        font-size: 19px;
    }

}
/* WEB SAPORI - Logo principale da 1025px */
@media (min-width: 1025px) {

    .schermata-scelta-negozio .logo-intestazione-scelta {
        width: 400px;
        max-width: 90%;
        height: auto;
    }

}

/* WEB SAPORI - Social su una riga da 1025px */
@media (min-width: 1025px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 24px;
    }

}

/* WEB SAPORI - Spazio per figurine rotanti su desktop */
@media (min-width: 1025px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        margin-top: 50px;
    }

}

/* WEB SAPORI - Spazio social da 375 a 425px */
@media (min-width: 375px) and (max-width: 425px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        margin-top: 15px;
    }

}

/* WEB SAPORI - Titolo H1 su schermi piccoli */
@media (min-width: 320px) and (max-width: 360px) {

    .schermata-scelta-negozio h1 {
        font-size: 16px;
        white-space: nowrap;
    }

}

/* WEB SAPORI - Titolo H1 uniforme su desktop */
@media (min-width: 1025px) {

    .schermata-scelta-negozio .intestazione-scelta-negozio h1 {
        font-size: 19px;
    }

}

/* WEB SAPORI - Distanza superiore logo su desktop */
@media (min-width: 1025px) {

    .schermata-scelta-negozio {
        padding-top: 55px;
    }

}
/* WEB SAPORI - Slogan responsive a scaglioni */

/* Da 426 a 600px */
@media (min-width: 426px) and (max-width: 600px) {
    .schermata-scelta-negozio .intestazione-scelta-negozio .slogan-scelta-negozio {
        font-size: 17px;
    }
}

/* Da 601 a 767px */
@media (min-width: 601px) and (max-width: 767px) {
    .schermata-scelta-negozio .intestazione-scelta-negozio .slogan-scelta-negozio {
        font-size: 19px;
    }
}

/* Da 768 a 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .schermata-scelta-negozio .intestazione-scelta-negozio .slogan-scelta-negozio {
        font-size: 21px;
    }
}

/* Da 1025 a 1439px */
@media (min-width: 1025px) and (max-width: 1439px) {
    .schermata-scelta-negozio .intestazione-scelta-negozio .slogan-scelta-negozio {
        font-size: 23px;
    }
}

/* Da 1440px in poi - crescita bloccata */
@media (min-width: 1440px) {
    .schermata-scelta-negozio .slogan-scelta-negozio {
        font-size: 25px;
    }
}

/* WEB SAPORI - Riduce distanza tra le righe social */
@media (max-width: 600px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        row-gap: 4px;
    }

}

/* WEB SAPORI - Righe social più compatte su smartphone */
@media (max-width: 600px) {

    .schermata-scelta-negozio .social-scelta-negozio {
        grid-template-rows: repeat(2, 50px);
        row-gap: 4px;
    }

}

/* TEMPORADA - Titolo uniforme anche nei filtri Sapori */
.area-catalogo .scheda.temporada-prossimamente .titolo-prodotto {
    font-size: 15px;
}

/* TEMPORADA - Disattiva gli effetti hover di Dettagli */
.scheda.temporada-prossimamente .pulsante-dettagli:disabled {
    pointer-events: none;
    cursor: not-allowed;
}

/* Nasconde le frecce native dei campi prezzo */
.filtro-prezzo::-webkit-inner-spin-button,
.filtro-prezzo::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.filtro-prezzo {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* WEB SAPORI - Header esclusivo Catálogo Por Mayor */

body.negozio-por-mayor .logo-sapori,
body.negozio-por-mayor .logo-listo-ya,
body.negozio-por-mayor .nome-negozio,
body.negozio-por-mayor .pulsante-menu-mobile,
body.negozio-por-mayor .navigazione-principale,
body.negozio-por-mayor .azioni-header-mobile,
body.negozio-por-mayor .barra-lingua,
body.negozio-por-mayor .header-principale::after {
    display: none !important;
}

body.negozio-por-mayor .logo-header-por-mayor {
    display: block !important;
}

/* WEB SAPORI - Header Por Mayor senza linea */
body.negozio-por-mayor .header-principale {
    border-bottom: none;
}

/* WEB SAPORI - Larghezza catalogo Por Mayor */
body.negozio-por-mayor .contenitore-por-mayor {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* WEB SAPORI - Posizione catalogo Por Mayor */
body.negozio-por-mayor #catalogo-por-mayor {
    margin-top: 0px;
}

/* WEB SAPORI - Dimensioni fotografie Catálogo Por Mayor */
body.negozio-por-mayor .contenitore-immagine-por-mayor {
    width: 100%;
    display: flex;
    justify-content: center;
}

body.negozio-por-mayor .contenitore-immagine-por-mayor img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
}

/* WEB SAPORI - Griglia Catálogo Por Mayor */
body.negozio-por-mayor .contenitore-por-mayor {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 12px;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    align-items: start;
}

/* WEB SAPORI - Schede fotografie Por Mayor */
body.negozio-por-mayor .scheda-por-mayor {
    width: 100%;
    min-width: 0;
}

/* WEB SAPORI - Fotografie adattate alle colonne */
body.negozio-por-mayor .contenitore-immagine-por-mayor img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* WEB SAPORI - Disposizione catalogo e paginazione Por Mayor */
body.negozio-por-mayor .contenitore-principale {
    flex-direction: column;
    align-items: center;
}

/* WEB SAPORI - Schede compatte Catálogo Por Mayor */

body.negozio-por-mayor .scheda-por-mayor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

body.negozio-por-mayor .contenitore-immagine-por-mayor img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
}

body.negozio-por-mayor .titolo-por-mayor {
    margin: 0;
    padding: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.3;
}

/* WEB SAPORI - Distanza dinamica header/catalogo Por Mayor */
body.negozio-por-mayor .contenitore-principale {
    padding-top: calc(var(--altezza-header, 165px) + 20px);
}

/* WEB SAPORI - Nomi prodotti Por Mayor */

body.negozio-por-mayor .scheda-por-mayor {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

body.negozio-por-mayor .titolo-por-mayor {
    margin: 4px 0 0;
    padding: 0;
    text-align: center;
    font-size: 16px;
    line-height: 1.3;
}

/* Distanza tra le due righe */
body.negozio-por-mayor .contenitore-por-mayor {
    row-gap: 32px;
}

/* WEB SAPORI - Allineamento immagine e nome Por Mayor */

body.negozio-por-mayor .contenitore-immagine-por-mayor {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 0;
}

body.negozio-por-mayor .titolo-por-mayor {
    margin: 0;
    padding: 0;
}

body.negozio-por-mayor .scheda-por-mayor {
    gap: 0;
}

@media (min-width: 601px) and (max-width: 1024px) {

    body.negozio-por-mayor .contenitore-por-mayor {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 20px;
        row-gap: 32px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    body.negozio-por-mayor .contenitore-immagine-por-mayor img {
        max-width: 260px;
        height: auto;
    }

    body.negozio-por-mayor .titolo-por-mayor {
        text-align: center;
    }

}

/* WEB SAPORI - Responsive smartphone Por Mayor */

@media (max-width: 600px) {

    body.negozio-por-mayor .contenitore-por-mayor {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 24px;
        padding: 0 12px;
        box-sizing: border-box;
    }

    body.negozio-por-mayor .contenitore-immagine-por-mayor img {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    body.negozio-por-mayor .titolo-por-mayor {
        text-align: center;
    }

}

/* WEB SAPORI - Logo Por Mayor su smartphone */

@media (max-width: 600px) {

    body.negozio-por-mayor .logo-header-por-mayor {
        width: 220px;
        max-width: 90%;
        height: auto;
    }

}

/* WEB SAPORI - Spazio header e catalogo su smartphone */

@media (max-width: 600px) {

    body.negozio-por-mayor .contenitore-principale {
        padding-top: 20px;
    }

}

/* WEB SAPORI - Distanza header/catalogo su tablet */

@media (min-width: 601px) and (max-width: 1024px) {

    body.negozio-por-mayor .contenitore-principale {
        padding-top: 20px;
    }

}
/* WEB SAPORI - Paginazione Por Mayor a 320 px */

@media (max-width: 360px) {

    body.negozio-por-mayor .paginazione-por-mayor {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    body.negozio-por-mayor .paginazione-por-mayor
    .mostra-altri:nth-child(2) {
        order: 3;
        flex-basis: auto;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    body.negozio-por-mayor .paginazione-por-mayor
    .mostra-altri:nth-child(3) {
        order: 2;
    }

}


/* WEB SAPORI - Spazio header Por Mayor da 769 a 1024 px */
@media (min-width: 769px) and (max-width: 1024px) {

    body.negozio-por-mayor .contenitore-principale {
        padding-top: calc(var(--altezza-header, 159px) + 20px);
    }

}

/* WEB SAPORI - Nasconde Inicio nell'header Por Mayor */

body.negozio-por-mayor .etichetta-pagina-mobile {
    display: none !important;
}

/* WEB SAPORI - Logo Por Mayor più piccolo da 320 a 425 px */
@media (min-width: 320px) and (max-width: 425px) {

    body.negozio-por-mayor .logo-header-por-mayor {
        width: 190px;
        max-width: 100%;
        height: auto;
    }

}

/* WEB SAPORI - Logo Por Mayor proporzionale su tablet */

@media (min-width: 426px) and (max-width: 600px) {

    body.negozio-por-mayor .logo-header-por-mayor {
        width: 205px;
        max-width: 100%;
        height: auto;
    }

}

@media (min-width: 601px) and (max-width: 1200px) {

    body.negozio-por-mayor .logo-header-por-mayor {
        width: 230px;
        max-width: 100%;
        height: auto;
    }

}

/* WEB SAPORI - Spazio superiore logo Por Mayor */

body.negozio-por-mayor .logo-header-por-mayor {
    margin-top: 10px;
}

/* WEB SAPORI - Pulsante ritorno negozi Por Mayor */

body.negozio-por-mayor .pulsante-volver-tiendas-por-mayor {
    display: inline-block !important;
}

/* WEB SAPORI - Logo e pulsante Por Mayor su due righe */

@media (max-width: 1024px) {

    body.negozio-por-mayor .contenitore-loghi {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

}

/* WEB SAPORI - Pulsante Por Mayor più compatto */

body.negozio-por-mayor .pulsante-volver-tiendas-por-mayor {
    min-height: 0;
    height: auto;
    padding: 4px 12px;
    line-height: 1.2;
}

/* WEB SAPORI - Pulsante Por Mayor vicino alla linea header */
@media (min-width: 601px) and (max-width: 1024px) {

    body.negozio-por-mayor .pulsante-volver-tiendas-por-mayor {
        margin-bottom: -6px;
    }

}/* WEB SAPORI - Header Por Mayor più compatto su tablet */
@media (min-width: 601px) and (max-width: 1024px) {

    body.negozio-por-mayor .header-principale {
        padding-bottom: 8px;
    }

}

/* WEB SAPORI - Logo Por Mayor più grande su desktop */

@media (min-width: 1025px) {

    body.negozio-por-mayor .logo-header-por-mayor {
        width: 245px;
        max-width: 100%;
        height: auto;
    }

}

/* WEB SAPORI - Pulsante Por Mayor in basso su desktop */
@media (min-width: 1025px) {

    body.negozio-por-mayor .contenitore-loghi {
        display: flex;
        align-items: flex-end;
    }

}

/* WEB SAPORI - Pulsante Por Mayor più in basso su desktop */
@media (min-width: 1025px) {

    body.negozio-por-mayor .pulsante-volver-tiendas-por-mayor {
        transform: translateY(8px);
    }

}