/* ==========================================================================
   Landing «Capodanno in cantina» — /it/capodanno-in-cantina, /new-years-eve-at-the-winery
   «Dalle 20:00 a mezzanotte»: la pagina è la serata che scorre. Un filo d'oro
   parte dalle 20:00 dell'apertura, attraversa le portate e arriva alle 00:00
   del nuovo anno (i cinque vini), poi la prenotazione, sempre su fondo scuro.
   Stesso mondo di «Auguri in cantina» (DESIGN.md).
   ========================================================================== */

:root {
    --oro: #B98D58;
    --oro-scuro: #82592C;
    --oro-chiaro: #C99F6C;
    --crema: #F9F8F4;
    --bruno: #2A1813;
    --bruno-notte: #1D100C;
    --inchiostro: #33221C;
    --scuro: #545D5C;
    --crema-tenue: rgba(249, 248, 244, .78);

    --serif: "Cormorant Infant", "Cormorant", Georgia, serif;
    --sans: "Alata", "Helvetica Neue", Arial, sans-serif;

    --g: clamp(1.25rem, 5.6vw, 5.5rem);
    --ritmo: clamp(5rem, 11vw, 10rem);
    --esce: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--oro) var(--bruno); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    background: var(--bruno);
    color: var(--crema);
    font-family: var(--serif);
    font-size: clamp(1.15rem, 1.05rem + .35vw, 1.35rem);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dl, dd, ol, ul, figure, fieldset { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--oro); color: var(--bruno); }
input, textarea { caret-color: var(--oro-scuro); }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }
.prenota :focus-visible { outline-color: var(--oro-scuro); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bruno); }
::-webkit-scrollbar-thumb { background: var(--oro); border: 3px solid var(--bruno); border-radius: 10px; }
a, button, label, input, textarea { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.etichetta {
    font-family: var(--sans);
    font-size: .74rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    line-height: 1.4;
}

.link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--oro);
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
}
@media (hover: hover) { .link:hover { text-decoration-thickness: 2px; } }
.prenota .link { text-decoration-color: var(--oro-scuro); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 3.6rem;
    padding: 1.05rem 2.1rem;
    border: 0; border-radius: 0;
    background: var(--oro); color: var(--bruno-notte);
    font-family: var(--sans); font-size: .86rem; letter-spacing: .16em; text-transform: uppercase;
    text-decoration: none; cursor: pointer;
    box-shadow: 0 10px 28px -14px rgba(0, 0, 0, .55);
    transition: background-color .25s, transform .25s var(--esce), box-shadow .25s;
}
@media (hover: hover) {
    .btn:hover { background: var(--oro-chiaro); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); }
}
.btn:active { transform: scale(.98); background: var(--oro-chiaro); transition-duration: .08s; }
.btn--piccolo { min-height: 2.9rem; padding: .7rem 1.1rem; font-size: .74rem; }
.btn.is-invio { opacity: .6; cursor: progress; transform: none; }

.salta {
    position: absolute; left: var(--g); top: -4rem; z-index: 50;
    padding: .8rem 1.2rem; background: var(--oro); color: var(--bruno);
    font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
}
.salta:focus { top: 1rem; }

.foto { position: relative; overflow: hidden; background: rgba(185, 141, 88, .15); }
.foto img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   APERTURA
   ========================================================================== */
.hero {
    position: relative;
    min-height: max(100svh, 44rem);
    display: flex; flex-direction: column;
    overflow: hidden;
    isolation: isolate;
}
.hero__foto { position: absolute; top: 0; right: 0; bottom: 0; width: 70%; z-index: -1; overflow: hidden; }
.hero__foto picture { display: block; height: 100%; }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 30%; }
.hero__foto::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, var(--bruno) 0, rgba(42, 24, 19, .6) 24%, rgba(42, 24, 19, 0) 52%),
        linear-gradient(0deg, rgba(29, 16, 12, .55) 0, rgba(29, 16, 12, 0) 30%);
}

.cima {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    padding: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-top)) var(--g) 0;
}
.cima__logo img { width: clamp(5.5rem, 7vw, 7rem); height: auto; }
.cima__lingue { display: flex; align-items: baseline; gap: .55rem; }
.cima__lingue a { color: inherit; text-decoration: none; padding: .8rem .45rem; margin: -.45rem -.25rem; border-bottom: 1px solid transparent; opacity: .75; }
.cima__lingue a[aria-current] { opacity: 1; border-bottom-color: var(--oro); }
@media (hover: hover) { .cima__lingue a:hover { opacity: 1; } }

.hero__testo {
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(2rem, 6vh, 4rem) var(--g) clamp(2.5rem, 6vh, 4rem);
    max-width: 52rem;
}
.hero__titolo {
    font-weight: 500;
    font-size: clamp(3.2rem, 1.4rem + 7.4vw, 7.6rem);
    line-height: .92;
    letter-spacing: -.012em;
}
.hero__titolo span { display: block; }
.hero__titolo-2 { font-style: italic; font-weight: 400; }
/* titolo nel carattere della grafica social del cliente (Cinzel Decorative) */
.hero__titolo {
    font-family: "Cinzel Decorative", var(--serif); font-weight: 400;
    font-size: clamp(2.4rem, 1rem + 5.4vw, 5.8rem); line-height: 1.02; letter-spacing: .01em;
    text-wrap: balance;
}
.hero__titolo .hero__titolo-2 { font-style: normal; }
.hero__quando {
    margin-top: clamp(1.4rem, 3vh, 2.2rem);
    display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem 1.4rem;
    color: var(--oro);
}
.hero__giorno { font-style: italic; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1; }
.hero__ora {
    font-weight: 500; font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1;
    font-variant-numeric: lining-nums tabular-nums;
    padding-left: 1.4rem; border-left: 1px solid rgba(185, 141, 88, .6);
}
.hero__info { margin-top: 1rem; max-width: 38ch; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.35; color: var(--crema-tenue); }
.hero__giorni { margin-top: 1.2rem; font-family: var(--sans); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--crema-tenue); }
.hero__azione { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.hero__nota { font-style: italic; font-size: 1.25rem; color: var(--crema-tenue); }

/* ---------- perlage: poche bollicine d'oro che salgono (solo decorazione) ---------- */
.perlage { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.perlage i {
    position: absolute; bottom: -1rem; width: 4px; height: 4px; border-radius: 50%;
    background: rgba(233, 205, 150, .75); box-shadow: 0 0 6px rgba(233, 205, 150, .6);
    opacity: 0;
}
.perlage i:nth-child(1)  { left: 58%; }  .perlage i:nth-child(2)  { left: 63%; width: 3px; height: 3px; }
.perlage i:nth-child(3)  { left: 67%; }  .perlage i:nth-child(4)  { left: 71%; width: 5px; height: 5px; }
.perlage i:nth-child(5)  { left: 76%; width: 3px; height: 3px; }  .perlage i:nth-child(6)  { left: 80%; }
.perlage i:nth-child(7)  { left: 84%; width: 3px; height: 3px; }  .perlage i:nth-child(8)  { left: 88%; }
.perlage i:nth-child(9)  { left: 92%; width: 5px; height: 5px; }  .perlage i:nth-child(10) { left: 96%; width: 3px; height: 3px; }
@media (prefers-reduced-motion: no-preference) {
    .perlage i { animation: sale 9s linear infinite; }
    .perlage i:nth-child(2n) { animation-duration: 11s; }
    .perlage i:nth-child(3n) { animation-duration: 13s; }
    .perlage i:nth-child(1) { animation-delay: .5s; }  .perlage i:nth-child(2) { animation-delay: 3s; }
    .perlage i:nth-child(3) { animation-delay: 6s; }   .perlage i:nth-child(4) { animation-delay: 1.5s; }
    .perlage i:nth-child(5) { animation-delay: 4.5s; } .perlage i:nth-child(6) { animation-delay: 7.5s; }
    .perlage i:nth-child(7) { animation-delay: 2.2s; } .perlage i:nth-child(8) { animation-delay: 5.2s; }
    .perlage i:nth-child(9) { animation-delay: 8.2s; } .perlage i:nth-child(10) { animation-delay: 3.7s; }
    @keyframes sale {
        0%   { transform: translate(0, 0); opacity: 0; }
        12%  { opacity: .9; }
        100% { transform: translate(-1.2rem, -105vh); opacity: 0; }
    }
    .js .hero__foto img { animation: assesta 14s var(--esce) both; }
    @keyframes assesta { from { transform: scale(1.07); } to { transform: scale(1); } }
    .js .hero__testo > * { animation: alza .9s var(--esce) both; }
    .js .hero__testo > :nth-child(2) { animation-delay: .12s; }
    .js .hero__testo > :nth-child(3) { animation-delay: .24s; }
    .js .hero__testo > :nth-child(4) { animation-delay: .36s; }
    .js .hero__testo > :nth-child(5) { animation-delay: .48s; }
    @keyframes alza { from { opacity: 0; transform: translateY(.6rem); } to { opacity: 1; transform: none; } }
}

@media (max-width: 991.98px) {
    .hero { min-height: auto; }
    .hero__foto { width: 100%; height: 72%; bottom: auto; }
    .hero__foto img { object-position: 64% 25%; }
    .hero__foto::after { background: linear-gradient(180deg, rgba(42, 24, 19, .35) 0, rgba(42, 24, 19, .1) 30%, rgba(42, 24, 19, .85) 70%, var(--bruno) 100%); }
    .hero__testo { padding-top: 34svh; padding-bottom: 3rem; }
    .perlage i:nth-child(n) { left: auto; }
    .perlage i:nth-child(odd) { right: 12%; } .perlage i:nth-child(even) { right: 30%; }
}

/* ==========================================================================
   I FATTI, IN GRANDE
   ========================================================================== */
.fatti { padding: clamp(3.5rem, 8vw, 6rem) var(--g); border-top: 1px solid rgba(185, 141, 88, .35); }
.fatti dl { display: grid; gap: 2rem 3rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fatti dt { font-weight: 500; font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.8rem); line-height: 1; color: var(--oro); font-variant-numeric: lining-nums; }
.fatti div:nth-child(4) dt { font-style: italic; }
.fatti dd { margin-top: .6rem; max-width: 22ch; font-size: clamp(1.1rem, 1rem + .3vw, 1.3rem); line-height: 1.35; color: var(--crema-tenue); }
@media (min-width: 992px) { .fatti dl { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   IL FILO DELLA SERATA: 20:00 → 00:00, le portate come tappe
   ========================================================================== */
.serata { padding: clamp(3rem, 7vw, 6rem) var(--g) 0; }
.serata__testa { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.serata__titolo { font-weight: 500; font-size: clamp(2.6rem, 1.6rem + 3.4vw, 4.6rem); line-height: 1; letter-spacing: -.012em; }
.serata__sotto { margin-top: .8rem; font-style: italic; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); color: var(--crema-tenue); }

.filo { position: relative; padding-bottom: clamp(3rem, 8vw, 6rem); }
/* il filo: una linea d'oro al centro (a sinistra su telefono) che scende fino alla mezzanotte */
.filo::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -.5px;
    background: linear-gradient(180deg, rgba(185, 141, 88, .9), rgba(185, 141, 88, .35));
}
.filo__ora { position: relative; text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.filo__ora span {
    position: relative; display: inline-block; padding: .4rem 1.2rem;
    background: var(--bruno); border: 1px solid var(--oro);
    font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); color: var(--oro);
    font-variant-numeric: lining-nums tabular-nums;
}
.tappa {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(3rem, 8vw, 7rem);
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem) 0;
}
/* il nodo sul filo: si accende d'oro quando la tappa entra in vista */
.tappa::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px;
    border-radius: 50%; background: var(--bruno); border: 1px solid var(--oro);
    transition: background-color .6s var(--esce), box-shadow .6s var(--esce);
}
.tappa.is-visto::before, .no-js .tappa::before { background: var(--oro); box-shadow: 0 0 0 6px rgba(185, 141, 88, .15); }
.tappa__testo { text-align: right; }
.tappa__foto { aspect-ratio: 3 / 2; }
.tappa__foto--alta { aspect-ratio: 4 / 5; max-width: 26rem; }
.tappa--destra .tappa__testo { order: 2; text-align: left; }
.tappa--destra .tappa__foto { order: 1; justify-self: end; }
.tappa__nome { font-weight: 400; font-style: italic; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.8rem); line-height: 1; color: var(--crema); }
.tappa__piatti { margin-top: 1.1rem; }
.tappa__piatti li { font-size: clamp(1.15rem, 1rem + .4vw, 1.4rem); line-height: 1.38; color: var(--crema-tenue); max-width: 30ch; }
.tappa__testo .tappa__piatti li { margin-left: auto; }
.tappa--destra .tappa__piatti li { margin-left: 0; }
.tappa__piatti li + li { margin-top: .6rem; }
@media (max-width: 767.98px) {
    .filo::before { left: .4rem; }
    .filo__ora { text-align: left; }
    .tappa { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding-left: 2rem; }
    .tappa::before { left: .4rem; top: 2.1rem; }
    .tappa__testo, .tappa--destra .tappa__testo { order: 1; text-align: left; }
    .tappa__foto, .tappa--destra .tappa__foto { order: 2; justify-self: stretch; }
    .tappa__foto--alta { aspect-ratio: 3 / 2; max-width: none; }
    .tappa__testo .tappa__piatti li { margin-left: 0; }
}

/* ==========================================================================
   00:00 — IL NUOVO ANNO E I CINQUE VINI
   ========================================================================== */
.mezzanotte { position: relative; isolation: isolate; overflow: hidden; background: var(--bruno-notte); }
.mezzanotte__foto { position: absolute; inset: 0; z-index: -1; }
.mezzanotte__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 30%; }
.mezzanotte__foto::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(29, 16, 12, .25) 0, rgba(29, 16, 12, .35) 45%, rgba(29, 16, 12, .92) 78%, var(--bruno-notte) 100%);
}
.mezzanotte__testo { position: relative; z-index: 1; padding: clamp(5rem, 14vw, 11rem) var(--g) clamp(3rem, 7vw, 5rem); text-align: center; }
.mezzanotte__ora {
    font-weight: 500; font-size: clamp(5rem, 2rem + 13vw, 13rem); line-height: .85; letter-spacing: -.02em;
    color: var(--oro); font-variant-numeric: lining-nums tabular-nums;
    text-shadow: 0 8px 40px rgba(0, 0, 0, .45);
}
.mezzanotte__titolo { margin-top: .6rem; font-weight: 400; font-style: italic; font-size: clamp(2.4rem, 1.5rem + 3vw, 4.4rem); line-height: 1; }
.mezzanotte__frase { margin: 1rem auto 0; max-width: 34ch; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.5rem); line-height: 1.4; color: var(--crema-tenue); }
.mezzanotte__vini { position: relative; z-index: 1; padding: 0 0 clamp(3rem, 7vw, 5rem); }
.mezzanotte__label { text-align: center; color: var(--oro); margin-bottom: 1.2rem; padding: 0 var(--g); }
.mezzanotte__nota { margin-top: 1.4rem; text-align: center; font-style: italic; color: var(--crema-tenue); padding: 0 var(--g); }

.calici { border-top: 1px solid rgba(185, 141, 88, .6); border-bottom: 1px solid rgba(185, 141, 88, .6); background: rgba(29, 16, 12, .6); }
.calici ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.calici li { position: relative; border-left: 1px solid rgba(185, 141, 88, .28); }
.calici li:first-child { border-left: 0; }
.calici a {
    position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: clamp(1.4rem, 3vw, 2.2rem) 1rem;
    color: inherit; text-decoration: none; transition: background-color .4s var(--esce);
}
@media (hover: hover) { .calici a:hover { background: rgba(185, 141, 88, .1); } }
.calici__nome { font-weight: 500; font-style: italic; font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.7rem); line-height: 1; }
.calici__tipo { margin-top: .8rem; color: var(--oro); }
.calici__classe { margin-top: .3rem; font-size: 1.15rem; color: var(--crema-tenue); }
/* il livello d'oro sale nelle colonne, una dopo l'altra, quando la fila entra in vista */
.calici__livello { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--oro); transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
    .js .calici:not(.is-pieno) .calici__livello { transform: scaleX(0); }
    .js .calici__livello { transition: transform 1s var(--esce); }
    .js .calici li:nth-child(2) .calici__livello { transition-delay: .2s; }
    .js .calici li:nth-child(3) .calici__livello { transition-delay: .4s; }
    .js .calici li:nth-child(4) .calici__livello { transition-delay: .6s; }
    .js .calici li:nth-child(5) .calici__livello { transition-delay: .8s; }
}
@media (max-width: 991.98px) {
    .calici ol {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(9.5rem, 40%);
        overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    }
    .calici ol::-webkit-scrollbar { display: none; }
    .calici li { scroll-snap-align: start; }
}

/* foto che entrano scorrendo */
@media (prefers-reduced-motion: no-preference) {
    .js .rivela .foto img { transition: opacity 1s var(--esce), transform 1.4s var(--esce); }
    .js .rivela .foto:not(.is-visto) img { opacity: 0; transform: translateY(2rem) scale(1.03); }
    @media (hover: hover) {
        .foto img { transition: transform 1.2s var(--esce), opacity 1s var(--esce); }
        .foto.is-visto:hover img { transform: scale(1.025); }
    }
}

/* ==========================================================================
   LA PRENOTAZIONE: fondo scuro, il modulo è un cartoncino crema
   ========================================================================== */
.prenota {
    position: relative;
    background: var(--bruno-notte); color: var(--crema);
    padding: var(--ritmo) var(--g);
    display: grid; gap: 3rem 5rem; grid-template-columns: minmax(0, 1fr);
}
.prenota__corpo {
    position: relative; background: var(--crema); color: var(--inchiostro);
    padding: clamp(1.8rem, 4vw, 3.2rem) clamp(1.3rem, 4vw, 3.2rem);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.prenota__corpo::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(185, 141, 88, .7); pointer-events: none; }
.prenota__intro .prenota__testo, .prenota__info .info__nota { color: var(--crema-tenue); }
.prenota__intro .passi li::before, .prenota__info .info__titolo { color: var(--oro); }
.prenota__intro .link, .prenota__info .link { text-decoration-color: var(--oro); }
.prenota__info { border-top-color: rgba(185, 141, 88, .4) !important; }
.totale__cifra { color: var(--oro-scuro); }
.prenota__titolo { font-weight: 500; font-size: clamp(2.8rem, 1.6rem + 3.6vw, 4.6rem); line-height: .98; letter-spacing: -.012em; max-width: 11ch; text-wrap: balance; }
.prenota__testo { margin-top: 1.5rem; max-width: 34ch; font-size: clamp(1.3rem, 1.1rem + .7vw, 1.65rem); line-height: 1.4; color: var(--crema-tenue); }
.passi { margin-top: 2rem; counter-reset: passo; display: grid; gap: .9rem; }
.passi li { counter-increment: passo; display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; font-size: 1.25rem; line-height: 1.35; }
.passi li::before { content: counter(passo); font-style: italic; font-size: 1.8rem; line-height: 1; color: var(--oro-scuro); }
@media (min-width: 992px) {
    .prenota {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-areas: "intro corpo" "info corpo";
        grid-template-rows: auto 1fr;
    }
    .prenota__intro { grid-area: intro; }
    .prenota__corpo { grid-area: corpo; }
    .prenota__info { grid-area: info; align-self: start; }
}

.esito { margin-bottom: 2rem; padding: 1.2rem 1.4rem; font-size: 1.3rem; line-height: 1.4; border-left: 1px solid currentColor; outline: none; }
.esito--ok { background: rgba(185, 141, 88, .16); color: #4B3418; border-left-color: var(--oro-scuro); }
.esito--ko { background: rgba(160, 50, 40, .08); color: #7A2419; border-left-color: #A3392A; }

.modulo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem 2.5rem; }
@media (min-width: 640px) {
    .modulo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modulo > .coperti, .modulo > .campo:not(.campo--meta), .modulo__invio { grid-column: 1 / -1; }
}
.modulo__trappola { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* coperti: adulti e bambini con il totale dal vivo */
.coperti { border: 0; padding: 0 0 .4rem; min-width: 0; }
.coperto {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0; border-bottom: 1px solid rgba(51, 34, 28, .2);
}
.coperto:first-child { border-top: 1px solid rgba(51, 34, 28, .2); }
.coperto label { display: flex; flex-direction: column; gap: .15rem; }
.coperto__nome { font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.2; }
.coperto__prezzo { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-scuro); }
.contatore { display: flex; align-items: center; gap: .4rem; flex: none; }
.contatore__tasto {
    width: 2.9rem; height: 2.9rem; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--oro-scuro); border-radius: 0; background: transparent; color: var(--oro-scuro);
    font-family: var(--sans); font-size: 1.3rem; line-height: 1; cursor: pointer;
    transition: background-color .2s, color .2s, transform .1s;
}
@media (hover: hover) { .contatore__tasto:hover:not(:disabled) { background: var(--oro-scuro); color: var(--crema); } }
.contatore__tasto:active:not(:disabled) { transform: scale(.94); }
.contatore__tasto:disabled { opacity: .35; cursor: not-allowed; }
.contatore input {
    width: 3.2rem; padding: .3rem 0; text-align: center;
    border: 0; border-bottom: 1px solid rgba(51, 34, 28, .45); border-radius: 0; background: transparent;
    font-family: var(--serif); font-size: 1.7rem; font-weight: 500; color: var(--inchiostro);
    -moz-appearance: textfield; appearance: textfield;
}
.contatore input::-webkit-inner-spin-button, .contatore input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.totale { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1.2rem; }
.totale__label { font-family: var(--sans); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
.totale__cifra { font-weight: 500; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.totale__cifra.is-cambiato { animation: batte .45s var(--esce); }
@keyframes batte { 0% { color: var(--oro-scuro); transform: translateY(-3px); } 100% { color: inherit; transform: none; } }
@media (prefers-reduced-motion: reduce) { .totale__cifra.is-cambiato { animation: none; } }
.coperti__avviso { margin-top: .6rem; font-style: italic; color: #7A2419; }

.campo { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.campo label {
    font-family: var(--sans); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5rem; color: var(--inchiostro);
}
.campo small { font-family: var(--serif); font-style: italic; font-size: 1rem; line-height: 1; letter-spacing: .02em; text-transform: none; color: var(--scuro); margin-left: .25rem; }
.campo input, .campo textarea {
    width: 100%; padding: .55rem 0 .6rem;
    border: 0; border-bottom: 1px solid rgba(51, 34, 28, .45); border-radius: 0; background: transparent;
    color: var(--inchiostro); font-family: var(--serif); font-size: 1.45rem; line-height: 1.3;
    -webkit-appearance: none; appearance: none;
    transition: border-color .2s, box-shadow .2s;
    scroll-margin-block: 6rem 9rem;
}
.campo textarea { resize: vertical; min-height: 4.2rem; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--scuro); font-style: italic; opacity: 1; }
@media (hover: hover) { .campo input:hover, .campo textarea:hover { border-bottom-color: var(--inchiostro); } }
.campo input:focus, .campo textarea:focus { outline: none; border-bottom-color: var(--oro-scuro); box-shadow: 0 1px 0 0 var(--oro-scuro); }
.campo input:user-invalid { border-bottom-color: #A3392A; box-shadow: 0 1px 0 0 #A3392A; }

.modulo__invio { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; margin-top: .8rem; }
.modulo__privacy { font-size: 1.05rem; color: var(--scuro); max-width: 42ch; }

.prenota__info {
    display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr);
    padding-top: 2rem; border-top: 1px solid rgba(130, 89, 44, .4);
}
.info p + p { margin-top: .3rem; }
.info__titolo { color: var(--oro-scuro); margin-bottom: .6rem; }
.info__telefono { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.2; }
.info__nota { color: var(--scuro); max-width: 34ch; }
@media (min-width: 640px) and (max-width: 991.98px) { .prenota__info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* badge reCAPTCHA nascosto: l'avviso richiesto da Google è sotto il bottone d'invio */
.grecaptcha-badge { visibility: hidden !important; }

/* ==========================================================================
   PIÈ DI PAGINA
   ========================================================================== */
.piede {
    position: relative; overflow: hidden;
    background: var(--bruno); color: var(--crema-tenue);
    padding: calc(clamp(3rem, 7vw, 5rem) + 5vw) var(--g) calc(clamp(3rem, 7vw, 5rem) + env(safe-area-inset-bottom));
    display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr);
    font-size: 1.1rem;
}
.piede__colline { position: absolute; left: -1%; top: -1px; width: 102%; max-width: none; height: auto; aspect-ratio: 2062 / 103; pointer-events: none; color: var(--bruno-notte); }
.piede__logo { width: 7rem; height: auto; }
.piede__link { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; }
.piede__link .link { color: var(--crema); }
@media (min-width: 992px) {
    .piede { grid-template-columns: auto auto 1fr; align-items: end; gap: 4rem; }
    .piede__link { justify-self: end; }
}

/* ==========================================================================
   TORNA SU E BARRA FISSA
   ========================================================================== */
/* in basso a destra: l'angolo sinistro è del lucchetto del banner cookie */
.su {
    position: fixed; z-index: 25;
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    width: 3rem; height: 3rem; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(185, 141, 88, .75); border-radius: 0;
    background: rgba(42, 24, 19, .9); color: var(--oro); cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(.6rem);
    transition: opacity .35s var(--esce), transform .35s var(--esce), visibility 0s linear .35s, background-color .2s;
}
.su.is-su { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--esce), transform .35s var(--esce), visibility 0s, background-color .2s; }
@media (hover: hover) { .su:hover { background: var(--oro); color: var(--bruno); } }
.su:active { transform: scale(.94); }

.barra { display: none; }
@media (max-width: 1199.98px) {
    .su { right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); width: 2.9rem; height: 2.9rem; }
    .barra {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
        display: flex; align-items: center; justify-content: space-between; gap: .6rem;
        padding: .7rem var(--g) calc(.7rem + env(safe-area-inset-bottom)) calc(var(--g) + 2.25rem);
        background: rgba(42, 24, 19, .94);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid rgba(185, 141, 88, .5);
        transform: translateY(110%);
        transition: transform .5s var(--esce);
    }
    .barra.is-su { transform: none; }
    .barra__prezzo { flex: 1; min-width: 0; font-style: italic; font-size: 1.12rem; line-height: 1.05; color: var(--crema); }
    .barra__su, .barra__chiama {
        flex: none; display: inline-flex; align-items: center; justify-content: center;
        width: 2.9rem; height: 2.9rem; padding: 0; border-radius: 0;
        border: 1px solid rgba(185, 141, 88, .7); background: transparent; color: var(--oro);
    }
    .barra__su:active, .barra__chiama:active { background: rgba(185, 141, 88, .2); }
}
@media (max-width: 379.98px) { .barra__prezzo { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .barra, .su, .su.is-su { transition: none; } }

/* schermi larghi ma bassi (es. 1280×720): titolo e ora restano nel primo schermo */
@media (min-width: 992px) and (max-height: 820px) {
    .hero__titolo { font-size: clamp(3.2rem, 1rem + 6vw, 6.2rem); }
    .hero__testo { padding-top: 1rem; padding-bottom: 1.5rem; }
}

/* riepilogo dal vivo accanto al bottone d'invio */
.modulo__riep { font-style: italic; font-size: 1.3rem; color: var(--inchiostro); min-height: 1.5em; }
.modulo__riep b { font-style: normal; font-weight: 500; }
.contatore__tasto svg { display: block; }

/* stato di invio riuscito: il form non viene riproposto */
.esito p + p { margin-top: .7rem; }
.esito__riep { font-style: italic; }

/* posti: solo numeri veri (sotto la soglia), stati del pagamento */
.hero__nota--posti { font-style: normal; font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.posti {
    display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.4rem;
    font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-scuro);
}
.posti::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--oro-scuro); }
.esito--info { background: rgba(84, 93, 92, .08); color: var(--inchiostro); border-left-color: var(--scuro); }
.esito--chiusa { background: var(--bruno); color: var(--crema); border-left-color: var(--oro); padding: 1.6rem 1.8rem; }
.esito--chiusa .link { color: var(--crema); }
.esito__titolo { font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem); font-style: italic; line-height: 1.1; }
.modulo__pagamento { flex-basis: 100%; font-size: 1.05rem; color: var(--scuro); max-width: 52ch; }
