/*
 * boma-ui.css
 *
 * Stili per i componenti interattivi (drawer di navigazione, menu lingua) che
 * nel sito originale sono componenti MUI renderizzati SOLO lato client via
 * stato React (MuiDrawer, MuiMenu aperti a runtime). Non compaiono in nessuno
 * dei 14 file HTML estratti in .extract-cache/, quindi qui non c'era markup né
 * CSS da copiare: questo file è scritto a mano, in aggiunta a site.css (che
 * resta materiale estratto e rigenerabile dallo script di build, quindi non va
 * mai modificato manualmente).
 *
 * Valori di colore/font riusati da site.css (non inventati):
 * - colore oro attivo/hover: rgb(177, 142, 77)  (site.css, es. .css-1t2it0m)
 * - font testo:  "Minion Pro", Inter, sans-serif, ...  (site.css, body)
 * - larghezza pannello drawer: 250px  (site.css, .css-164ubv .MuiDrawer-paper)
 * - z-index drawer: 1300  (site.css, .css-164ubv .MuiDrawer-paper)
 */

/* ===== Drawer di navigazione ===== */

.boma-drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1299;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.boma-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

#boma-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 250px;
    max-width: 100%;
    background-color: #fff;
    z-index: 1300;
    box-shadow: rgba(58, 53, 65, 0.2) 0px 5px 6px -3px, rgba(58, 53, 65, 0.14) 0px 9px 12px 1px, rgba(58, 53, 65, 0.12) 0px 3px 16px 2px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#boma-drawer.is-open {
    transform: translateX(0);
}

#boma-drawer .boma-drawer-close {
    align-self: flex-end;
    margin: 1rem 1rem 0 0;
    background: none;
    border: 0;
    cursor: pointer;
    color: rgba(58, 53, 65, 0.87);
    padding: 8px;
}

#boma-drawer ul {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

#boma-drawer li {
    border-bottom: 1px solid rgba(58, 53, 65, 0.08);
}

#boma-drawer li a {
    display: block;
    padding: 1rem 1.5rem;
    font-family: "Minion Pro", Inter, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(58, 53, 65, 0.87);
    text-decoration: none;
}

#boma-drawer li a:hover,
#boma-drawer li a:focus {
    color: rgb(177, 142, 77);
}

#boma-drawer .boma-drawer-book {
    display: block;
    margin: 1.5rem;
    padding: 0.75rem 1rem;
    text-align: center;
    text-transform: uppercase;
    font-family: "Minion Pro", Inter, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    letter-spacing: 0.3px;
    color: #fff;
    background: rgb(177, 142, 77);
    border-radius: 5px;
    text-decoration: none;
}

.boma-drawer-book:hover {
    background: rgb(128, 104, 61);
}

/* ===== Menu lingua ===== */

#boma-lang-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background-color: #fff;
    min-width: 64px;
    border-radius: 5px;
    box-shadow: rgba(58, 53, 65, 0.2) 0px 5px 5px -3px, rgba(58, 53, 65, 0.14) 0px 8px 10px 1px, rgba(58, 53, 65, 0.12) 0px 3px 14px 2px;
    z-index: 1301;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#boma-lang-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#boma-lang-menu li a {
    display: block;
    padding: 6px 16px;
    font-family: "Minion Pro", Inter, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 0.875rem;
    text-transform: uppercase;
    color: rgba(58, 53, 65, 0.87);
    text-decoration: none;
}

#boma-lang-menu li a:hover,
#boma-lang-menu li a.is-active {
    color: rgb(177, 142, 77);
}

.boma-lang-wrapper {
    position: relative;
}

/*
 * ===== Bottone principale (CTA) =====
 *
 * .boma-bottone non aveva mai avuto una definizione in nessun foglio di
 * stile: appariva come link blu sottolineato di default del browser in
 * tutte le 7 pagine del wizard di prenotazione che la usano. I valori qui
 * sono presi dal bottone MUI equivalente già funzionante nel sito
 * (site.css, classe .css-1eqvu3t: "Prenota il tuo tavolo adesso" nel
 * footer), non inventati.
 */
.boma-bottone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    text-decoration: none;
    font-family: "Minion Pro", Inter, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 0.9375rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.71;
    color: #fff;
    background: rgb(177, 142, 77);
    border: 0;
    border-radius: 5px;
    padding: 0.53125rem 1.625rem;
    box-shadow: rgba(58, 53, 65, 0.42) 0px 4px 8px -4px;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.boma-bottone:hover {
    text-decoration: none;
    background: rgb(128, 104, 61);
    box-shadow: rgba(58, 53, 65, 0.56) 0px 6px 18px -8px;
}

/*
 * ===== Hero della prima schermata di prenotazione =====
 *
 * Nel sito originale (src/pages/reservation/index.js) era una pagina a
 * tutto schermo (100vh) con overlay al 30% e logo da 200px: qui si
 * riprendono quegli stessi valori, applicati però dentro il layout
 * standard (header sopra, footer sotto), non a una pagina isolata.
 */
.boma-prenotazione-landing {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    padding: 4rem 2rem;
}

.boma-prenotazione-landing-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.boma-prenotazione-landing-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 480px;
    width: 100%;
}

.boma-prenotazione-landing-logo {
    max-height: 24rem;
    width: 200px;
    margin-bottom: 2.5rem;
}

.boma-prenotazione-landing-bottone {
    width: 100%;
    background: #fff;
    color: #80683d;
}

.boma-prenotazione-landing-bottone:hover {
    background: #fff;
    color: #000;
}

/*
 * ===== Il wizard di prenotazione (pagine 2-7) =====
 *
 * Queste classi (boma-prenotazione, boma-wizard-passi, boma-errore,
 * boma-campo, boma-ospiti-scelta, boma-riepilogo, ecc.) non avevano MAI
 * avuto una definizione in nessun foglio di stile: le pagine 2-7 del
 * wizard renderizzavano come HTML semantico non stilizzato (radio button
 * nudi, liste grezze). Il vecchio sito React non aveva queste classi con
 * questi nomi — sono nuove, scritte per questo progetto — quindi qui i
 * valori sono presi dalla stessa palette e dagli stessi componenti MUI già
 * documentati sopra (oro rgb(177,142,77), grigio testo
 * rgba(58,53,65,...), font Minion Pro, radius 5px, ombre MUI), non da un
 * CSS estratto.
 */

.boma-prenotazione {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.boma-prenotazione h1 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: rgba(58, 53, 65, 0.87);
}

.boma-prenotazione form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ----- Indicatore dei passi ----- */

.boma-wizard-passi {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
}

.boma-wizard-passi li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    text-align: center;
}

.boma-wizard-passi .numero {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(58, 53, 65, 0.4);
    color: rgba(58, 53, 65, 0.6);
    font-size: 0.8125rem;
    font-weight: 500;
}

.boma-wizard-passi .etichetta {
    font-size: 0.75rem;
    color: rgba(58, 53, 65, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.boma-wizard-passi li.attuale .numero {
    background: rgb(177, 142, 77);
    border-color: rgb(177, 142, 77);
    color: #fff;
}

.boma-wizard-passi li.attuale .etichetta {
    color: rgb(177, 142, 77);
    font-weight: 600;
}

.boma-wizard-passi li.fatto .numero {
    background: rgba(177, 142, 77, 0.15);
    border-color: rgb(177, 142, 77);
    color: rgb(177, 142, 77);
}

/* ----- Messaggi di errore ----- */

.boma-errore {
    color: #d32f2f;
    background: rgba(211, 47, 47, 0.08);
    border-radius: 5px;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    margin: 0 0 1rem;
}

em.boma-errore {
    display: block;
    background: none;
    padding: 0.25rem 0 0;
    font-style: normal;
}

/* ----- Campi di testo, select, textarea ----- */

.boma-campo {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.boma-campo > span {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(58, 53, 65, 0.6);
}

.boma-campo input[type="text"],
.boma-campo input[type="email"],
.boma-campo input[type="tel"],
.boma-campo input[type="number"],
.boma-campo input[type="date"],
.boma-campo textarea {
    font-family: "Minion Pro", Inter, sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 1rem;
    padding: 0.625rem 0.75rem;
    border: 1px solid rgba(58, 53, 65, 0.3);
    border-radius: 5px;
    color: rgba(58, 53, 65, 0.87);
    background: #fff;
}

.boma-campo input:focus,
.boma-campo textarea:focus {
    outline: none;
    border-color: rgb(177, 142, 77);
}

.boma-campo textarea {
    resize: vertical;
    font-family: inherit;
}

/* Fieldset di scelta (sala, fasce orarie): stesso spazio dei campi, senza
   il bordo/legenda grezzi di default del browser. */
fieldset.boma-campo {
    border: 0;
    padding: 0;
    margin: 0;
}

fieldset.boma-campo legend {
    padding: 0;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(58, 53, 65, 0.6);
    margin-bottom: 0.5rem;
}

fieldset.boma-campo label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0 1rem 0.5rem 0;
    font-size: 0.9375rem;
    color: rgba(58, 53, 65, 0.87);
}

.boma-fascia {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(58, 53, 65, 0.12);
}

/* ----- Nota informativa (es. gruppi numerosi) ----- */

.boma-nota {
    font-size: 0.875rem;
    color: rgba(58, 53, 65, 0.7);
    text-align: center;
}

.boma-nota a {
    color: rgb(177, 142, 77);
}

/* ----- Testo delle condizioni ----- */

.boma-condizioni {
    text-align: justify;
    color: rgba(58, 53, 65, 0.87);
    line-height: 1.6;
}

.boma-condizioni p {
    margin: 0 0 1rem;
}

/* ----- Checkbox di accettazione ----- */

.boma-accetto {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: rgba(58, 53, 65, 0.87);
    cursor: pointer;
}

.boma-accetto input {
    margin-top: 0.2rem;
}

/* ----- Scelta del numero di ospiti: griglia di card ----- */

.boma-ospiti-scelta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 340px;
    margin: 0 auto 1.5rem;
}

.boma-ospiti-scelta label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border: 1px solid rgba(58, 53, 65, 0.3);
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.boma-ospiti-scelta label:hover {
    border-color: rgba(58, 53, 65, 0.6);
}

.boma-ospiti-scelta label span {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgb(177, 142, 77);
    pointer-events: none;
}

.boma-ospiti-scelta input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.boma-ospiti-scelta label.scelto {
    border-color: rgb(177, 142, 77);
    border-width: 2px;
    background: rgba(177, 142, 77, 0.08);
}

/* ----- Riepilogo della prenotazione ----- */

.boma-riepilogo {
    border: 1px solid rgba(58, 53, 65, 0.3);
    border-radius: 5px;
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
}

.boma-riepilogo dt {
    display: flex;
    align-items: center;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(58, 53, 65, 0.6);
}

.boma-riepilogo dd {
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(58, 53, 65, 0.87);
    font-weight: 500;
}

/* ----- Pagina di ringraziamento -----
   Vive dentro .boma-prenotazione-landing (foto + overlay scuro): il testo
   dev'essere chiaro, non lo scuro di default usato nel resto del wizard. */

.boma-grazie {
    text-align: center;
    color: #fff;
}

.boma-grazie h1 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.boma-grazie p {
    color: rgba(255, 255, 255, 0.9);
}

.boma-grazie .boma-riepilogo {
    text-align: left;
    background: rgba(255, 255, 255, 0.95);
    margin: 1.5rem 0;
}

.boma-grazie-azioni {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.boma-grazie-azioni .boma-bottone {
    flex: 1;
}
