/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
body.login {
    background: #3c434a !important;
}

.bb-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px 20px !important;
    max-width: 980px !important;
    margin: 0 auto !important;
    padding: 28px !important;
    background: #f8f4ef !important;
    border: 1px solid #e8ddd2 !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
}

.bb-form-grid .bb-form-field p,
.bb-form-grid .cf7-field p {
    margin: 0 !important;
    padding: 0 !important;
}

.bb-form-grid label br {
    display: none !important;
}

.bb-form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.bb-form-field .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    min-width: 0;
}

@media (max-width: 767px) {
    .bb-form-field {
        max-width: 100% !important;
    }
}

.bb-form-full {
    grid-column: 1 / -1;
}

.bb-form-grid label {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #2f3542 !important;
    margin-bottom: 4px !important;
    line-height: 1.5 !important;
}

.bb-form-grid input[type="text"],
.bb-form-grid input[type="email"],
.bb-form-grid input[type="tel"],
.bb-form-grid input[type="date"],
.bb-form-grid select,
.bb-form-grid textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #d9cdbf;
    background: #ffffff;
    color: #2f3542;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.4;
    outline: none;
    transition: all 0.25s ease;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
}

.bb-form-grid textarea {
    min-height: 140px;
    resize: vertical;
}

.bb-form-grid input:focus,
.bb-form-grid select:focus,
.bb-form-grid textarea:focus {
    border-color: #d9a67f;
    box-shadow: 0 0 0 3px rgba(217,166,127,0.16);
}

.bb-form-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    margin: 0;
}

.bb-form-checkbox input[type="checkbox"] {
    margin-top: 4px;
}

/* ── Privacy Checkbox Inline ── */
.cf7-privacy {
    grid-column: 1 / -1 !important;
}

.cf7-privacy .wpcf7-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.cf7-privacy .wpcf7-list-item label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
    margin: 0 !important;
    font-size: 14px !important;
}

.cf7-privacy .wpcf7-list-item label input[type="checkbox"] {
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.cf7-privacy .wpcf7-list-item-label {
    white-space: nowrap !important;
}

.bb-form-submit {
    margin-top: 4px !important;
}

.bb-form-submit .wpcf7-submit {
    background: #e7b08c;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 200px;
}

.bb-form-submit .wpcf7-submit:hover {
    background: #d99a72;
    transform: translateY(-1px);
}

.bb-form-grid .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 6px;
}

.bb-form-grid .wpcf7-response-output {
    grid-column: 1 / -1;
    margin: 10px 0 0 0;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .bb-form-grid {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        gap: 10px !important;
    }

    .bb-form-grid input[type="date"] {
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .bb-form-submit .wpcf7-submit {
        width: 100% !important;
    }

    .cf7-privacy .wpcf7-list-item label {
        white-space: nowrap !important;
        flex-wrap: nowrap !important;
        font-size: 13px !important;
    }

    .cf7-privacy .wpcf7-list-item-label {
        white-space: nowrap !important;
    }
}

/* ── Camere Grid ── */
.bb-camere-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.bb-camera-card {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.bb-camera-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
}

.bb-camera-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bb-camera-body {
    padding-top: 24px;
    padding-bottom: 24px;
    padding-right: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bb-camera-titolo {
    font-family: 'Inter Tight', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #0e1824;
    margin: 0 0 10px;
    line-height: 1.3;
}

.bb-camera-metratura {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    color: #5a6370;
    margin-bottom: 14px;
}

.bb-camera-metratura .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    color: #5a6370;
}

.bb-camera-desc,
.bb-camera-desc p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 20px;
}

.bb-camera-desc p:last-child {
    margin-bottom: 0;
}

.bb-camera-btn-wrap {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.bb-camera-btn {
    display: inline-block;
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 600;
    background: #ffcaa6;
    color: #0e1824;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.bb-camera-btn:hover {
    background: #0e1824;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .bb-camere-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .bb-camera-titolo {
        font-size: 20px;
    }
    
    .bb-camera-body {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
        padding-right: 0px !important;
        padding-left: 0px !important;
    }
}

/* ── Lista Vantaggi ── */
.bb-vantaggi-lista {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bb-vantaggio-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.bb-vantaggio-bullet {
    width: 12px;
    height: 12px;
    min-width: 12px;
    background: #0e1824;
    border-radius: 50%;
    margin-top: 8px;
    margin-right: 16px;
    box-shadow: 0 0 0 8px #f3ebe5;
}

.bb-vantaggio-content {
    flex: 1;
}

.bb-vantaggio-titolo {
    font-family: 'Inter Tight', sans-serif;
    font-size: 24px !important;
    font-weight: 600 !important;
    color: #0e1824 !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
}

.bb-vantaggio-desc,
.bb-vantaggio-desc p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

.bb-vantaggio-desc p + p {
    margin-top: 8px;
}

/* ── Servizi Grid ── */
.bb-servizi-grid {
    display: grid;
    gap: 16px;
}

.bb-servizi-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.bb-servizi-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.bb-servizio-box {
    background: #faf5f0;
    border: 1px solid #e8dfd6;
    border-radius: 15px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    transition: background 0.3s ease;
    cursor: default;
}

.bb-servizio-box:hover {
    background: #ede5dc;
}

.bb-servizio-icona {
    width: 48px;
    height: 48px;
    background: #e8e2db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.bb-servizio-icona .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    color: #0e1824;
    transition: color 0.3s ease;
}

.bb-servizio-icona img,
.bb-servizio-icona svg {
    width: 22px;
    height: 22px;
    display: block;
    transition: filter 0.3s ease;
}

.bb-servizio-box:hover .bb-servizio-icona img,
.bb-servizio-box:hover .bb-servizio-icona svg {
    filter: brightness(0) invert(1);
}

.bb-servizio-box:hover .bb-servizio-icona {
    background: #0e1824;
}

.bb-servizio-box:hover .bb-servizio-icona .dashicons {
    color: #ffffff;
}

.bb-servizio-titolo {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0e1824;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .bb-servizi-col-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .bb-servizi-col-2,
    .bb-servizi-col-4 {
        grid-template-columns: 1fr;
    }
}

/* ── Gallery Booking Style ── */
.bb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 1fr 1fr 0.75fr;
    gap: 4px;
    border-radius: 16px;
    overflow: hidden;
    max-height: 520px;
}

.bb-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.bb-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.bb-gallery-item:hover img {
    transform: scale(1.05);
}

.bb-gallery-item-0 {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

.bb-gallery-item-1 {
    grid-column: 4 / 6;
    grid-row: 1 / 2;
}

.bb-gallery-item-2 {
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}

.bb-gallery-item-3 { grid-column: 1 / 2; grid-row: 3 / 4; }
.bb-gallery-item-4 { grid-column: 2 / 3; grid-row: 3 / 4; }
.bb-gallery-item-5 { grid-column: 3 / 4; grid-row: 3 / 4; }
.bb-gallery-item-6 { grid-column: 4 / 5; grid-row: 3 / 4; }
.bb-gallery-item-7 { grid-column: 5 / 6; grid-row: 3 / 4; }

.bb-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.bb-gallery-overlay span {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.bb-gallery-item:hover .bb-gallery-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Lightbox */
.bb-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bb-gallery-lightbox.bb-gallery-lb-open {
    opacity: 1;
    visibility: visible;
}

.bb-gallery-lb-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-gallery-lb-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.bb-gallery-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 2;
}

.bb-gallery-lb-close:hover {
    opacity: 1;
}

.bb-gallery-lb-prev,
.bb-gallery-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.bb-gallery-lb-prev { left: 20px; }
.bb-gallery-lb-next { right: 20px; }

.bb-gallery-lb-prev:hover,
.bb-gallery-lb-next:hover {
    background: rgba(255,255,255,0.3);
}

.bb-gallery-lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    z-index: 2;
}

@media (max-width: 1024px) {
    .bb-gallery-grid {
        max-height: 420px;
    }
}

@media (max-width: 767px) {
    .bb-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        max-height: none;
        gap: 3px;
    }
    
    .bb-gallery-item-0 {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        aspect-ratio: 16 / 9;
    }
    
    .bb-gallery-item-1 {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        aspect-ratio: 4 / 3;
    }
    
    .bb-gallery-item-2 {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        aspect-ratio: 4 / 3;
    }
    
    .bb-gallery-item-3 {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        aspect-ratio: 4 / 3;
    }
    
    .bb-gallery-item-4 {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
        aspect-ratio: 4 / 3;
    }
    
    .bb-gallery-item-5,
    .bb-gallery-item-6 {
        display: none;
    }
    
    .bb-gallery-item-7 {
        grid-column: 1 / -1;
        grid-row: 4 / 5;
        aspect-ratio: 16 / 9;
    }
    
    .bb-gallery-lightbox {
        background: rgba(245, 241, 236, 0.97) !important;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        padding: 56px 20px 32px;
        gap: 20px 0;
    }
    
    .bb-gallery-lb-img-wrap {
        width: 100%;
        order: 1;
        max-height: 60vh;
    }
    
    .bb-gallery-lb-img-wrap img {
        max-height: 60vh;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .bb-gallery-lb-close {
        color: #0e1824 !important;
        font-size: 28px;
        top: 12px;
        right: 14px;
        padding: 4px 10px;
    }
    
    .bb-gallery-lb-prev,
    .bb-gallery-lb-next {
        position: static !important;
        transform: none !important;
        width: 42px;
        height: 42px;
        font-size: 16px;
        background: rgba(14, 24, 36, 0.06) !important;
        border: 1px solid rgba(14, 24, 36, 0.1) !important;
        border-radius: 50%;
        color: #0e1824 !important;
    }
    
    .bb-gallery-lb-prev:hover,
    .bb-gallery-lb-next:hover {
        background: rgba(14, 24, 36, 0.12) !important;
    }
    
    .bb-gallery-lb-prev {
        order: 2;
        left: auto !important;
    }
    
    .bb-gallery-lb-counter {
        position: static !important;
        transform: none !important;
        order: 3;
        flex: 1;
        text-align: center;
        color: #5a6370 !important;
        font-size: 13px;
        line-height: 42px;
    }
    
    .bb-gallery-lb-next {
        order: 4;
        right: auto !important;
    }
}

/* ── Lista Servizi ── */
.bb-lista-servizi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 48px;
    align-items: start;
}

.bb-lista-servizi-colonna {
    display: flex;
    flex-direction: column;
}

.bb-lista-servizi-sezione {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.bb-lista-servizi-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8dfd6;
}

.bb-lista-servizi-header-icona {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: #0e1824;
}

.bb-lista-servizi-header-icona img,
.bb-lista-servizi-header-icona svg {
    width: 24px;
    height: 24px;
    display: block;
}

.bb-lista-servizi-header-icona .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

.bb-lista-servizi-header-titolo {
    font-family: 'Inter Tight', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0e1824;
    margin: 0;
    line-height: 1.3;
}

.bb-lista-servizi-elenco {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-lista-servizi-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.4;
}

.bb-lista-servizi-item-icona {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #0e1824;
}

.bb-lista-servizi-item-icona img,
.bb-lista-servizi-item-icona svg {
    width: 18px;
    height: 18px;
    display: block;
}

.bb-lista-servizi-item-icona .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.bb-lista-servizi-item-titolo {
    flex: 1;
}

@media (max-width: 767px) {
    .bb-lista-servizi {
        grid-template-columns: 1fr;
    }
}

/* ── Gallery Tabs ── */
.bb-gallery-tabs {
    width: 100%;
}

.bb-gallery-tabs .bb-gallery-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 32px;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.bb-gallery-tabs .bb-gallery-tabs-nav .bb-gallery-tab-btn {
    font-family: 'Inter Tight', sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: #9a918a !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 8px 16px 10px !important;
    margin: 0 !important;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s ease;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.4 !important;
}

.bb-gallery-tabs .bb-gallery-tabs-nav .bb-gallery-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0e1824;
    transition: width 0.3s ease;
    border-radius: 0 !important;
}

.bb-gallery-tabs .bb-gallery-tabs-nav .bb-gallery-tab-btn:hover {
    color: #0e1824 !important;
    background: transparent !important;
}

.bb-gallery-tabs .bb-gallery-tabs-nav .bb-gallery-tab-btn:hover::after {
    width: 60%;
}

.bb-gallery-tabs .bb-gallery-tabs-nav .bb-gallery-tab-btn.bb-gallery-tab-active {
    color: #0e1824 !important;
    background: transparent !important;
}

.bb-gallery-tabs .bb-gallery-tabs-nav .bb-gallery-tab-btn.bb-gallery-tab-active::after {
    width: 100%;
}

.bb-gallery-tabs-content {
    position: relative;
}

.bb-gt-loader {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border: 2px solid #e0dad3;
    border-top-color: #0e1824;
    border-radius: 50%;
    animation: bb-gt-spin 0.6s linear infinite;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 2;
}

.bb-gt-loader.bb-gt-loader-active {
    opacity: 1;
}

@keyframes bb-gt-spin {
    to { transform: translateX(-50%) rotate(360deg); }
}

.bb-gallery-tab-panel {
    display: none;
}

.bb-gallery-tab-panel.bb-gallery-tab-panel-active {
    display: block;
}

/* Masonry */
.bb-masonry {
    columns: 3;
    column-gap: 14px;
}

.bb-masonry-item {
    break-inside: avoid;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.bb-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bb-masonry-item:hover img {
    transform: scale(1.05);
}

.bb-masonry-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(14, 24, 36, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 10px;
}

.bb-masonry-item:hover::after {
    opacity: 1;
}

/* Gallery Tabs Lightbox */
.bb-gt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bb-gt-lightbox.bb-gt-lb-open {
    opacity: 1;
    visibility: visible;
}

.bb-gt-lb-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-gt-lb-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.bb-gt-lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 12px;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 2;
}

.bb-gt-lb-close:hover {
    opacity: 1;
}

.bb-gt-lb-prev,
.bb-gt-lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s;
    z-index: 2;
}

.bb-gt-lb-prev { left: 24px; }
.bb-gt-lb-next { right: 24px; }

.bb-gt-lb-prev:hover,
.bb-gt-lb-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
}

.bb-gt-lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2;
}

@media (max-width: 1024px) {
    .bb-masonry {
        columns: 2;
        column-gap: 12px;
    }
    
    .bb-masonry-item {
        margin-bottom: 12px;
    }
}

@media (max-width: 767px) {
    .bb-masonry {
        columns: 2;
        column-gap: 8px;
    }
    
    .bb-masonry-item {
        margin-bottom: 8px;
        border-radius: 8px;
    }
    
    .bb-gallery-tabs .bb-gallery-tabs-nav {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 20px;
        gap: 0;
    }
    
    .bb-gallery-tabs .bb-gallery-tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .bb-gallery-tabs .bb-gallery-tabs-nav .bb-gallery-tab-btn {
        padding: 6px 12px 8px !important;
        font-size: 10px !important;
        flex-shrink: 0;
    }
    
    .bb-gt-lightbox {
        background: rgba(245, 241, 236, 0.97) !important;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        padding: 56px 20px 32px;
        gap: 20px 0;
    }
    
    .bb-gt-lb-img-wrap {
        width: 100%;
        order: 1;
        max-height: 60vh;
    }
    
    .bb-gt-lb-img-wrap img {
        max-height: 60vh;
        border-radius: 10px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .bb-gt-lb-close {
        color: #0e1824 !important;
        font-size: 28px;
        top: 12px;
        right: 14px;
        padding: 4px 10px;
    }
    
    .bb-gt-lb-prev,
    .bb-gt-lb-next {
        position: static !important;
        transform: none !important;
        width: 42px;
        height: 42px;
        font-size: 16px;
        background: rgba(14, 24, 36, 0.06) !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(14, 24, 36, 0.1) !important;
        border-radius: 50%;
        color: #0e1824 !important;
    }
    
    .bb-gt-lb-prev:hover,
    .bb-gt-lb-next:hover {
        background: rgba(14, 24, 36, 0.12) !important;
    }
    
    .bb-gt-lb-prev {
        order: 2;
        left: auto !important;
    }
    
    .bb-gt-lb-counter {
        position: static !important;
        transform: none !important;
        order: 3;
        flex: 1;
        text-align: center;
        color: #5a6370 !important;
        font-size: 13px;
        line-height: 42px;
    }
    
    .bb-gt-lb-next {
        order: 4;
        right: auto !important;
    }
}

/* ── Language Switcher ── */
.bb-lang-switcher {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999;
    width: 52px;
    height: 52px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bb-lang-switcher:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.2);
}

.bb-lang-switcher img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ── Regole Stanza ── */
.bb-regole-stanza {
    list-style: disc;
    margin: 0;
    padding: 0 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bb-regole-stanza-item {
    font-family: 'Inter Tight', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #4a4a4a;
}

/* ── Servizi Singola Camera ── */
.bb-servizi-camera {
    display: grid;
    grid-template-columns: repeat(var(--bb-sc-cols, 3), 1fr);
    gap: 0 64px;
    align-items: start;
}

.bb-servizi-camera-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bb-servizi-camera-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 15px;
    color: #4a4a4a;
    line-height: 1.4;
}

.bb-servizi-camera-icona {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #5a6370;
}

.bb-servizi-camera-icona img,
.bb-servizi-camera-icona svg {
    width: 20px;
    height: 20px;
    display: block;
}

.bb-servizi-camera-icona .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    color: #5a6370;
}

.bb-servizi-camera-titolo {
    flex: 1;
}

@media (max-width: 767px) {
    .bb-servizi-camera {
        grid-template-columns: 1fr;
        gap: 14px 0;
    }
}

/* ── Password Reveal ── */
.bb-pwd-hidden,
.bb-pwd-visible {
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.25s ease, color 0.25s ease;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
}

.bb-pwd-hidden {
    background: #f0ebe5;
    letter-spacing: 0.08em;
}

.bb-pwd-hidden:hover {
    background: #e8e0d6;
}

.bb-pwd-visible {
    background: #e6f4ea;
}

.bb-pwd-visible:hover {
    background: #d4edda;
}

/* ── Mobile Servizi Carousel ── */
.bb-servizi-carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 8px;
}

.bb-servizi-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bb-servizi-carousel-track::-webkit-scrollbar {
    display: none;
}

.bb-servizi-carousel-page {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 4px 0px;
    box-sizing: border-box;
}

.bb-servizi-carousel-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 10px;
    background: #faf5f0;
    border: 1px solid #e8dfd6;
    border-radius: 14px;
    text-align: center;
}

.bb-sc-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-sc-icon i {
    font-size: 28px;
    color: #d9a67f;
}

.bb-sc-title {
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0e1824;
    line-height: 1.3;
}

.bb-sc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px 0 4px;
}

.bb-sc-dot {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 7px !important;
    height: 7px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    outline: none !important;
    background: #d9cdbf !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.3s ease !important;
}

.bb-sc-dot.bb-sc-dot-active {
    background: #d9a67f !important;
    transform: scale(1.25) !important;
}

/* ── Mobile Logo Swap ── */
@media (max-width: 767px) {
    .bb-logo-bianco,
    .bb-logo-rosa {
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .bb-logo-bianco {
        opacity: 1;
    }

    .bb-logo-bianco.bb-logo-hidden {
        opacity: 0;
        transform: translateY(-6px);
    }

    .bb-logo-rosa {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        opacity: 0;
        transform: translateY(6px);
        pointer-events: none;
    }

    .bb-logo-rosa.bb-logo-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* ── Mobile Book Now Button ── */
.bb-mobile-book-now {
    display: none !important;
}

@media (max-width: 767px) {
    .bb-mobile-book-now {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: fixed !important;
        bottom: 22px !important;
        left: 90px !important;
        right: 16px !important;
        z-index: 9999 !important;
        height: 50px !important;
        background: #e6b391 !important;
        color: #000000 !important;
        font-family: 'Inter Tight', sans-serif !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        text-decoration: none !important;
        border-radius: 999px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
        transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease !important;
    }

    .bb-mobile-book-now:hover,
    .bb-mobile-book-now:active {
        background: #d99a72 !important;
        box-shadow: 0 6px 28px rgba(0, 0, 0, 0.24) !important;
        transform: translateY(-1px) !important;
        color: #ffffff !important;
        text-decoration: none !important;
    }
}

.cky-revisit-bottom-left {
    bottom: 85px !important;
    left: 28px !important;
}