.pagina-catalogo .barra { background: var(--sfondo); }
.pagina-catalogo .barra :is(.barra-catalogo, .barra-servizi :is(button, a)) { color: white; background: var(--verde); }
.pagina-catalogo .barra :is(.barra-catalogo, .barra-servizi) img { filter: brightness(0) invert(1); }
.pagina-catalogo .barra .logo img { filter: brightness(0) opacity(.86); }
.titolo-accessibile { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.listino { display: grid; grid-template-columns: calc(327 * var(--u)) minmax(0, 1fr); gap: calc(14 * var(--u)); padding-block: max(215px, calc(280 * var(--u))) calc(90 * var(--u)); align-items: start; }
.listino h1:not(.titolo-accessibile) { grid-column: 1/-1; }
.listino nav { font-size: clamp(14px, 1.15vw, 22px); }
.listino details { border-top: 1px solid #c9c4bd; }
.listino summary { padding: 1.15em .9em; cursor: pointer; text-transform: uppercase; list-style: none; }
.listino summary::after { content: '⌄'; float: right; }
.listino details:not([open]) summary::after { transform: rotate(-90deg); }
.voci-filtro { display: grid; padding: 1em; background: #f2ebe4; border-top: 1px solid #d9d3ca; }
.voci-filtro a { display: flex; align-items: center; justify-content: space-between; padding-block: .22em; text-decoration: none; }
.voci-filtro a::after { content: ''; width: .68em; height: .68em; background: white; }
.voci-filtro a[aria-current]::after, .voci-filtro a:hover::after { background: var(--verde); }
.schede { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: calc(8 * var(--u)) calc(9 * var(--u)); }
.scheda { container-type: inline-size; position: relative; aspect-ratio: 327/465; background: #f2ebe4; text-align: center; }
.figura { position: absolute; inset: 8.6% 12% 26.7%; }
.figura img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(4px 4px 4px #0003); transition: transform .3s ease-out; }
.scheda-miele .figura { inset-block: 21% 39%; }
.scheda-liquori .figura { inset-block: 18% 36%; }
.premio { position: absolute; top: 3.5%; right: 5%; width: 13%; border-radius: 50%; }
.scheda-nome { position: absolute; inset: 74% 4% 10%; display: grid; align-content: center; justify-items: center; text-transform: uppercase; }
.scheda-nome p, .scheda .formato { font-size: 4.85cqw; }
.scheda-nome h2 { font-size: 6.1cqw; text-wrap: balance; }
.scheda .formato { position: absolute; inset: auto 1% 3.8%; }
@media (min-width: 761px) {
    .listino { width: auto; margin-inline: calc(52 * var(--u)) calc(48 * var(--u)); }
    .scheda { min-height: calc(465 * var(--u)); }
    .pagina-catalogo .pie {
        background: linear-gradient(to top, #29362a 0 calc(55 * var(--u)), #3a483a calc(55 * var(--u)));
    }
    .pagina-catalogo .pie-griglia {
        grid-template-rows: calc(282 * var(--u)) calc(55 * var(--u));
        padding-block: 0;
        row-gap: 0;
    }
    .carrello { min-height: calc(773 * var(--u)); }
}
@media (max-width:760px) {
    .listino { grid-template-columns: 1fr; gap: 16px; padding-block: 180px 44px; }
    .listino nav { display: grid; grid-template-columns: 1fr 1fr; }
    .schede { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
    .scheda-nome p, .scheda .formato { font-size: max(10px,4.85cqw); }
    .scheda-nome h2 { font-size: max(11px,6.1cqw); }
}

/* Nel frame hover la bottiglia prende il posto del testo e compare il pulsante. */
.scheda .figura img { transform-origin: center top; }
.aggiunta-carrello { position: absolute; inset: auto 5.5% 2.58%; }
.aggiunta-carrello button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75em;
    width: 100%;
    min-height: max(40px, 12.2cqw);
    padding: .5em;
    border: 0;
    background: var(--verde);
    color: var(--sfondo);
    font: 500 max(11px, 4.9cqw)/1.15 var(--corpo);
    text-transform: uppercase;
    cursor: pointer;
}
.aggiunta-carrello img { width: 1.25em; }
@media (hover: hover) {
    .aggiunta-carrello { opacity: 0; }
    .scheda:has(.aggiunta-carrello):is(:hover, :focus-within) :is(.scheda-nome, .formato) { opacity: 0; }
    .scheda:is(:hover, :focus-within) .aggiunta-carrello { opacity: 1; }
    .scheda:has(.aggiunta-carrello):is(:hover, :focus-within) .figura img { transform: scale(1.25); }
    @media (prefers-reduced-motion: no-preference) {
        .scheda :is(.scheda-nome, .formato, .aggiunta-carrello) { transition: opacity .3s ease-out; }
    }
}
@media (hover: none) {
    .scheda:has(.aggiunta-carrello) { margin-bottom: 44px; }
    .aggiunta-carrello { inset: calc(100% - 1px) 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .scheda .figura img { transition: none; }
}

.carrello { padding-block: max(210px, calc(280 * var(--u))) max(70px, calc(96 * var(--u))); }
.carrello h1 { font-size: clamp(32px, 2.5vw, 58px); margin-bottom: 1.45em; }
.carrello-griglia { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 4%; }
.riga-carrello {
    display: grid;
    grid-template-columns: auto clamp(64px, calc(117 * var(--u)), 220px) minmax(0, 1fr) auto auto;
    gap: clamp(12px, 2vw, 44px);
    align-items: start;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #d4ccc3;
}
.riga-carrello button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }
.riga-carrello .rimuovi { align-self: center; padding: 8px; }
.foto-carrello { aspect-ratio: 1; padding: 8%; background: #f2ebe4; }
.foto-carrello img { width: 100%; height: 100%; object-fit: contain; }
.tenuta .nome-carrello h2, .tenuta .riepilogo-carrello h2 { font-size: clamp(18px, 1.5vw, 32px); }
.nome-carrello h2 { margin-bottom: .45em; text-transform: uppercase; }
.quantita-carrello { display: flex; align-items: center; gap: .4em; border: 1px solid var(--verde); }
.quantita-carrello button { min-width: 28px; min-height: 34px; }
.riepilogo-carrello { padding-inline-start: 5%; border-inline-start: 1px solid #d4ccc3; }
.riepilogo-carrello dl div { display: flex; justify-content: space-between; gap: 1em; margin-block: 1.5em; }
.riepilogo-carrello dd { margin: 0; }
.riepilogo-carrello dl div:last-child { padding-top: 1.25em; border-top: 1px solid #d4ccc3; font-weight: 700; }
.riepilogo-carrello a { display: inline-block; margin-top: 1em; }
@media (max-width: 760px) {
    .carrello { padding-block-start: 175px; }
    .carrello-griglia { grid-template-columns: 1fr; gap: 24px; }
    .riga-carrello { grid-template-columns: auto 65px minmax(0, 1fr) auto; align-items: center; }
    .riga-carrello strong { grid-column: 4; }
    .quantita-carrello { grid-column: 3; justify-self: start; }
    .riepilogo-carrello { border-inline-start: 0; padding-inline-start: 0; }
}
