/* ------------------------------------------------------------------ */
/* BOX "PRENOTA ONLINE"                                                */
/* Porting del pre-footer della landing, senza Bootstrap e in px:      */
/* il font-size 62.5% vale solo su body.page-template-landing.         */
/* ------------------------------------------------------------------ */

.prenota-box {
    margin-top: 100px;
    padding: 60px 0;
}

.prenota-box_titolo {
    font-family: 'Outfit-Bold', sans-serif;
    font-size: 40px;
    line-height: 52px;
    color: #746F65;
    text-align: left;
    margin: 0 0 30px;
}

/* Tabs — pill switcher */
.prenota-box_tabs {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    width: fit-content;
    margin: 0 0 40px;
    background: #B9ADA0;
    border-radius: 50px;
    padding: 0;
}

.prenota-box_tab {
    font-family: 'Outfit-Regular', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 0.55em 2em;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
    transition: background 0.2s, color 0.2s;
}

.prenota-box_tab.is-active {
    background: #EFEBE6;
    color: #3B362A;
}

.prenota-box_tab:hover:not(.is-active) {
    background: rgba(255, 255, 255, 0.15);
}

/* Panels */
.prenota-box_panel {
    display: none;
}

.prenota-box_panel.is-active {
    display: block;
}

/* Griglia campi */
.prenota-box_row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 24px;
}

.prenota-box_field {
    flex: 1 1 200px;
    min-width: 0;
}

.prenota-box_field--azione {
    display: flex;
    align-items: flex-end;
}

.prenota-box_azioni {
    margin-top: 30px;
}

.prenota-box_label {
    display: block;
    font-family: 'Outfit-Regular', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-transform: uppercase;
    color: #746F65;
    margin-bottom: 6px;
}

.prenota-box_input {
    width: 100%;
    background: #fff;
    border: none;
    border-bottom: 1px solid #B9ADA0;
    border-radius: 0;
    padding: 12px 0 8px;
    font-family: 'Outfit-Regular', sans-serif;
    font-size: 18px;
    color: #3B362A;
    outline: none;
}

.prenota-box_input:focus {
    border-color: #746F65;
}

/* Select (orario / persone) coerenti con gli input */
.prenota-box_select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 24px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath fill='none' stroke='%23746F65' stroke-width='1.5' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px bottom 14px;
}

.prenota-box_submit {
    display: inline-block;
    width: 100%;
    max-width: 250px;
    padding: 0.7em 2.5em;
    font-family: 'Outfit-Regular', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: #fff;
    background: #B9ADA0;
    border: 2px solid #B9ADA0;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s, color 0.3s;
}

.prenota-box_field--azione .prenota-box_submit {
    max-width: none;
}

.prenota-box_submit:hover {
    background: transparent;
    color: #B9ADA0;
}

/* flatpickr crea un input "alt" affiancato: deve ereditare lo stile */
.prenota-box_field .flatpickr-input.form-control.input,
.prenota-box_field input.form-control {
    width: 100%;
}

@media (max-width: 991px) {
    .prenota-box {
        margin-top: 70px;
        padding: 40px 0;
    }

    .prenota-box_titolo {
        font-size: 30px;
        line-height: 42px;
    }
}

@media (max-width: 767px) {
    .prenota-box_row {
        gap: 20px;
    }

    .prenota-box_field {
        flex: 1 1 100%;
    }

    .prenota-box_submit {
        max-width: none;
    }
}

/* ── Modal OpenTable ─────────────────────────────────────────────── */
body.pb-ot-modal-open {
    overflow: hidden;
}

.prenota-box-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
}

.prenota-box-modal[hidden] {
    display: none;
}

.prenota-box-modal_overlay {
    position: absolute;
    inset: 0;
    background: rgba(59, 54, 42, 0.6);
}

.prenota-box-modal_dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 80vh;
    max-height: 760px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.prenota-box-modal_close {
    position: absolute;
    top: 5px;
    right: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    font-size: 28px;
    color: #3B362A;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.prenota-box-modal_close:hover {
    background: #EFEBE6;
}

.prenota-box-modal_body,
.prenota-box-modal_iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
