/* Stili per la sezione "Prenota" (form pubblico di prenotazione con acconto).
   Prefisso "pb-" per non entrare in conflitto con le classi del tema. */

#prenota {
    background: #f7f7f7;
}

.pb-form-prenota {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.pb-form-prenota h2 {
    margin-top: 0;
}

.pb-sottotitolo {
    color: #666;
    margin-bottom: 25px;
}

.pb-riga-due {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pb-riga-due > .form-group {
    flex: 1 1 240px;
}

.pb-sezione-fatturazione {
    border-top: 1px solid #e5e5e5;
    margin-top: 20px;
    padding-top: 20px;
}

.pb-sezione-fatturazione summary {
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}

.pb-nota-prezzo {
    font-size: 0.9em;
    color: #888;
    margin-top: 4px;
}

.pb-cta-bar {
    background: linear-gradient(135deg, #2C7CBF, #1a2b4c);
    padding: 18px 15px;
    text-align: center;
}

.pb-cta-prenota {
    display: inline-block;
    background: linear-gradient(180deg, #34b45a, #1f8f3f);
    color: #fff;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 17px 48px;
    border-radius: 40px;
    border: 2px solid rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1.2em;
    box-shadow: 0 6px 18px rgba(0,0,0,0.30);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.pb-cta-prenota:hover,
.pb-cta-prenota:focus {
    transform: translateY(-2px);
    background: linear-gradient(180deg, #3cc566, #25a047);
    box-shadow: 0 9px 22px rgba(0,0,0,0.36);
    color: #fff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .pb-cta-prenota { padding: 15px 26px; font-size: 1.02em; max-width: 100%; }
}

.pb-ora-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.pb-ora-chip {
    border: 1px solid #dfe2e8;
    background: #fff;
    color: #444;
    border-radius: 18px;
    padding: 6px 13px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pb-ora-chip:hover {
    border-color: #2C7CBF;
}

.pb-ora-chip.pb-ora-chip-attivo {
    background: #2C7CBF;
    border-color: #2C7CBF;
    color: #fff;
    font-weight: bold;
}

.pb-campo-hint {
    display: block;
    font-size: 0.78em;
    font-weight: normal;
    color: #999;
    margin-top: 3px;
}

.pb-nota-checkout {
    background: #fff4e0;
    border: 1px solid #ffdf9e;
    border-radius: 4px;
    padding: 10px 14px;
    margin: 4px 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #6b4c00;
    font-weight: 600;
}

.pb-acconto-box {
    background: #eef6ff;
    border: 1px solid #cfe4fb;
    border-radius: 4px;
    padding: 14px 18px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pb-acconto-box .pb-acconto-valore {
    font-size: 1.4em;
    font-weight: bold;
}

.pb-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pb-modal-overlay.pb-modal-aperto {
    display: flex;
}

.pb-modal-box {
    position: relative;
    background: #fff;
    border-radius: 6px;
    max-width: 640px;
    width: 100%;
    max-height: 82vh;
    overflow-y: auto;
    padding: 30px 26px 26px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.pb-modal-box h3 {
    margin-top: 0;
    padding-right: 30px;
}

.pb-modal-corpo {
    white-space: pre-line;
    font-size: 0.95em;
    line-height: 1.6;
    color: #333;
}

.pb-modal-chiudi {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 4px 8px;
}

.pb-modal-chiudi:hover {
    color: #333;
}

.pb-check-riga {
    margin-bottom: 10px;
}

.pb-check-riga label {
    font-weight: normal;
    cursor: pointer;
}

#prenota .has-error {
    border-color: #d9534f !important;
}

#prenota .pb-errore-campo {
    color: #d9534f;
    font-size: 0.85em;
    margin-top: 3px;
    display: none;
}

#msg_error_prenota {
    display: none;
    background: #fdecea;
    color: #611a15;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Selettori scoped su #pb_lang_dropdown per battere in specificita' le
   regole del tema (.main-nav li, .main-nav li a) che altrimenti impongono
   display:inline-block, margin:17px 32px e text-transform:uppercase anche
   dentro il nostro menu a tendina, rompendo l'allineamento bandiera/testo. */
#pb_lang_dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin: 0 0 0 12px;
}

#pb_lang_dropdown .pb-lang-corrente {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: 1px solid #e1e3e8;
    border-radius: 5px;
    padding: 7px 10px;
    margin: 0;
    cursor: pointer;
    font-size: 0.85em;
    font-family: inherit;
    text-transform: none;
    color: #444;
    line-height: 1;
}

#pb_lang_dropdown .pb-lang-corrente img {
    display: block;
    flex: 0 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

#pb_lang_dropdown .pb-lang-corrente:hover {
    border-color: #2C7CBF;
}

#pb_lang_dropdown .pb-lang-freccia {
    display: inline-block;
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #888;
    margin-left: 2px;
}

#pb_lang_dropdown .pb-lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    min-width: 170px;
    background: #fff;
    border: 1px solid #e1e3e8;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    padding: 6px;
    margin: 0;
    list-style: none;
    z-index: 50;
}

#pb_lang_dropdown.pb-lang-aperto .pb-lang-menu {
    display: block;
}

#pb_lang_dropdown .pb-lang-menu li {
    display: block;
    margin: 0;
}

#pb_lang_dropdown .pb-lang-menu li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    margin: 0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    text-transform: none;
    font-size: 0.9em;
    line-height: normal;
    white-space: nowrap;
}

#pb_lang_dropdown .pb-lang-menu li a:hover {
    background: #f2f6fb;
    color: #333;
}

#pb_lang_dropdown .pb-lang-menu img {
    display: block;
    flex: 0 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

@media only screen and (max-width: 767px) {
    #pb_lang_dropdown {
        display: block;
        margin: 8px 32px 12px;
    }
    #pb_lang_dropdown .pb-lang-menu {
        right: 0;
        left: auto;
    }
}

/* Pagina di attesa pagamento / conferma (prenota/attesa_pagamento.php) */
.pb-pagina-riepilogo {
    background: #f4f6f9;
}

.pb-riepilogo-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 15px 60px;
}

.pb-box-riepilogo {
    background: #fff;
    padding: 36px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(20,30,50,0.08);
    text-align: center;
}

.pb-riepilogo-icona {
    width: 68px;
    height: 68px;
    line-height: 68px;
    border-radius: 50%;
    font-size: 34px;
    margin: 0 auto 18px;
    color: #fff;
}

.pb-riepilogo-icona-ok { background: #2e7d32; }
.pb-riepilogo-icona-attesa { background: #ef6c00; }

.pb-box-riepilogo h1 {
    font-size: 1.5em;
    margin: 0 0 10px;
}

.pb-riepilogo-messaggio {
    color: #444;
    background: #eef7ee;
    border: 1px solid #cde8cd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95em;
}

.pb-avviso-provvisorio {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 12px 16px;
    border-radius: 8px;
    color: #444;
}

.pb-riepilogo-dati {
    text-align: left;
    margin-top: 26px;
    border-top: 1px solid #eee;
}

.pb-riepilogo-riga {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 2px;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
}

.pb-riepilogo-riga .pb-riepilogo-etichetta {
    color: #888;
}

.pb-riepilogo-riga .pb-riepilogo-valore {
    font-weight: 600;
    text-align: right;
}

.pb-riepilogo-riga.pb-riepilogo-riga-evidenza .pb-riepilogo-valore {
    color: #2C7CBF;
    font-size: 1.1em;
}

.pb-riepilogo-contatti {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.pb-riepilogo-contatti a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dfe2e8;
    border-radius: 24px;
    padding: 9px 18px;
    font-size: 0.9em;
    color: #333;
    text-decoration: none;
}

.pb-riepilogo-contatti a:hover {
    border-color: #2C7CBF;
    color: #2C7CBF;
}

@media (max-width: 600px) {
    .pb-form-prenota {
        padding: 18px;
    }
}

.pb-btn-procedi {
    display: inline-block;
    width: 100%;
    max-width: 360px;
    background: linear-gradient(135deg, #2C7CBF, #1a2b4c);
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 1em;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(26,43,76,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pb-btn-procedi:hover,
.pb-btn-procedi:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26,43,76,0.32);
    color: #fff;
}

/* Barra cookie (libreria cookieconsent) - ristilizzata sui colori del sito */
#cconsent-bar {
    background: transparent !important;
    padding: 0 !important;
}

#cconsent-bar .ccb__wrapper {
    background: linear-gradient(135deg, #2C7CBF, #1a2b4c) !important;
    padding: 18px 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
}

#cconsent-bar .cc-text {
    color: #fff !important;
    font-size: 0.92em;
    line-height: 1.5;
}

#cconsent-bar .ccb__button {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

#cconsent-bar .ccb__edit {
    color: #fff !important;
    opacity: 0.85;
    text-decoration: underline;
    font-size: 0.88em;
    cursor: pointer;
    white-space: nowrap;
}

#cconsent-bar .ccb__edit:hover {
    opacity: 1;
}

#cconsent-bar .consent-give {
    background: #fff !important;
    color: #1a2b4c !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
    border: none;
    border-radius: 30px !important;
    padding: 11px 26px !important;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
}

#cconsent-bar .consent-give:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    #cconsent-bar .ccb__wrapper {
        padding: 14px 16px !important;
    }
    #cconsent-bar .ccb__right {
        width: 100%;
    }
    #cconsent-bar .ccb__button {
        width: 100%;
        justify-content: space-between;
    }
}

/* Separatore tra il form di prenotazione e la sezione successiva (mappa) */
.pb-separatore {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px 0;
    background: #f7f7f7;
}

.pb-separatore span {
    width: 90px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(135deg, #2C7CBF, #1a2b4c);
}

/* Avviso "tariffa non rimborsabile": volutamente ben visibile nel form di prenotazione */
.pb-non-rimborsabile {
    background: #fdecea;
    border: 2px solid #c62828;
    border-radius: 4px;
    color: #8e1b1b;
    padding: 12px 16px;
    margin: 14px 0 20px;
    text-align: center;
    line-height: 1.4;
}

.pb-non-rimborsabile strong {
    display: block;
    font-size: 1.15em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #c62828;
}

/* Avviso "prenotazioni online sospese" (garage pieno) al posto del form */
.pb-blocco-prenotazioni {
    max-width: 560px;
    margin: 20px auto;
    padding: 22px 20px;
    background: #fff4e5;
    border: 2px solid #ef8f00;
    border-radius: 6px;
    text-align: center;
    color: #5c3b00;
}
.pb-blocco-prenotazioni strong { display: block; font-size: 1.25em; margin-bottom: 8px; }
.pb-blocco-prenotazioni a {
    display: inline-block; margin: 6px 6px 0; padding: 8px 16px;
    border: 1px solid #ef8f00; border-radius: 20px; color: #5c3b00; text-decoration: none; font-weight: 600;
}

.pb-nota-orari {
    font-size: 0.9em;
    color: #8a6d00;
    margin-top: 8px;
}

/* Mobile: il pulsante "Accetta tutti i cookie" deve stare tutto nello schermo */
@media (max-width: 600px) {
    #cconsent-bar .ccb__wrapper { box-sizing: border-box; max-width: 100%; }
    #cconsent-bar .ccb__right { display: block !important; width: 100% !important; box-sizing: border-box; }
    #cconsent-bar .ccb__button {
        display: flex !important;
        flex-direction: column-reverse !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        gap: 12px;
    }
    #cconsent-bar .ccb__edit { display: block !important; }
    #cconsent-bar .consent-give {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        white-space: normal !important;
        text-align: center;
        padding: 12px 16px !important;
        font-size: 0.8em !important;
        letter-spacing: 0.3px;
    }
    #cconsent-bar .ccb__edit { text-align: center; }
}
