/* ============================================================================ */
/* Modale consenso cookie: blocco dello scroll */
/* ============================================================================ */
html.cookie-consent-open,
body.cookie-consent-open {
    overflow: hidden;
}

/* ============================================================================ */
/* Home: motore di ricerca mobile */
/* ============================================================================ */
@media (max-width: 767.98px) {
    .homepage-search-banner {
        padding-top: 2.5rem;
    }
}

/* ============================================================================ */
/* Modale consenso cookie: struttura */
/* ============================================================================ */
#cookie-consent-modal.show {
    display: flex !important;
    align-items: center;
}

#cookie-consent-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 760px;
    margin: 0 auto;
}

#cookie-consent-modal .modal-content {
    max-height: calc(100vh - 30px);
    border: 0;
    border-radius: 8px;
}

#cookie-consent-modal .modal-header,
#cookie-consent-modal .modal-footer {
    border-color: #edf0f3;
}

#cookie-consent-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 48px 22px;
}

#cookie-consent-modal .modal-header h3 {
    order: 1;
    font-size: 26px;
    line-height: 1.2;
}

#cookie-consent-modal .modal-body {
    padding: 30px 48px;
    overflow-y: auto;
    color: #3d3d3d;
}

#cookie-consent-modal .modal-footer {
    display: flex;
    gap: 12px;
    padding: 22px 48px;
}

#cookie-consent-modal .modal-footer .btn {
    flex: 1 1 0;
    min-height: 48px;
    margin-bottom: 0;
}

/* ============================================================================ */
/* Modale consenso cookie: link e pulsanti */
/* ============================================================================ */
#cookie-consent-modal .cookie-consent-reject-link {
    order: 2;
    margin-left: auto;
    color: #7b8491;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    text-decoration: underline;
}

#cookie-consent-modal .cookie-consent-reject-link:hover,
#cookie-consent-modal .cookie-consent-reject-link:focus {
    color: #3d4652;
}

#cookie-consent-modal .cookie-consent-reject-link.disabled {
    pointer-events: none;
    opacity: .6;
}

#cookie-consent-modal .cookie-consent-selected-button {
    color: #536176;
    background: #fff;
    border: 1px solid #cfd6de;
}

#cookie-consent-modal .cookie-consent-selected-button:hover,
#cookie-consent-modal .cookie-consent-selected-button:focus {
    color: #3d4652;
    background: #f4f6f8;
    border-color: #aeb8c3;
}

#cookie-consent-modal .cookie-consent-policy-link {
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================================ */
/* Modale consenso cookie: tab */
/* ============================================================================ */
#cookie-consent-modal .nav-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 0;
}

#cookie-consent-modal .nav-tabs .nav-item {
    flex: 1 1 0;
    margin-bottom: 0;
}

#cookie-consent-modal .nav-tabs .nav-link {
    width: 100%;
    padding: 12px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

#cookie-consent-modal .nav-tabs .nav-link:not(.active) {
    color: #536176;
    background: #f4f6f8;
    border: 1px solid #e4e9ee;
}

#cookie-consent-modal .nav-tabs .nav-link.active {
    color: #fff;
}

/* ============================================================================ */
/* Modale consenso cookie: preferenze */
/* ============================================================================ */
.cookie-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0f3;
}

.cookie-consent-option p {
    font-size: 13px;
}

.cookie-consent-switch {
    position: relative;
    flex: 0 0 46px;
    width: 46px;
    height: 26px;
    margin: 0;
}

.cookie-consent-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.cookie-consent-switch span {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #c8cdd2;
    border-radius: 26px;
    transition: .2s;
}

.cookie-consent-switch span:before {
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    content: '';
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}

.cookie-consent-switch input:checked + span:before {
    transform: translateX(20px);
}

.cookie-consent-switch input:disabled + span {
    cursor: not-allowed;
    opacity: .65;
}

/* ============================================================================ */
/* Modale consenso cookie: dispositivi mobili */
/* ============================================================================ */
@media (max-width: 575.98px) {
    #cookie-consent-modal .modal-header,
    #cookie-consent-modal .modal-body,
    #cookie-consent-modal .modal-footer {
        padding-right: 24px;
        padding-left: 24px;
    }

    #cookie-consent-modal .modal-footer {
        flex-direction: column;
    }

    #cookie-consent-modal .modal-footer .btn {
        width: 100%;
    }

    #cookie-consent-modal .modal-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    #cookie-consent-modal .modal-header h3 {
        order: 2;
        width: 100%;
        font-size: 24px;
    }

    #cookie-consent-modal .cookie-consent-reject-link {
        order: 1;
        margin-left: auto;
    }
}

/* ============================================================================ */
/* Cookie Policy: azioni sulle preferenze */
/* ============================================================================ */
.cookie-policy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.cookie-policy-actions a {
    font-weight: 600;
}

.cookie-policy-actions .btn {
    margin-bottom: 0;
}

.cookie-policy-actions .cookie-policy-revoke-button {
    color: #dc3545;
    background: #fff;
    border: 1px solid #dc3545;
}

.cookie-policy-actions .cookie-policy-revoke-button:hover,
.cookie-policy-actions .cookie-policy-revoke-button:focus {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}

/* ============================================================================ */
/* Newsletter: informazioni laterali */
/* ============================================================================ */
.newsletter-info-detail {
    align-items: center;
}

.newsletter-info-detail .cn-info-icon {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
}

/* ============================================================================ */
/* Alert avanzati */
/* ============================================================================ */
.alert-advanced {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-advanced-icon {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
}

.alert-advanced-content h3 {
    margin: 0 0 3px;
    font-size: 17px;
}

.alert-advanced-content p {
    margin: 0;
}

.alert-advanced-success {
    color: #176b3a;
    background: #effbf3;
    border-color: #c9edd5;
}

.alert-advanced-success .alert-advanced-icon {
    color: #168344;
    background: #d8f6e2;
}

.alert-advanced-warning {
    color: #80621a;
    background: #fff9e8;
    border-color: #f2dfa3;
}

.alert-advanced-warning .alert-advanced-icon {
    color: #b88711;
    background: #fff0bd;
}

.alert-advanced-danger {
    color: #8b3037;
    background: #fff1f2;
    border-color: #f3c7cb;
}

.alert-advanced-danger .alert-advanced-icon {
    color: #bd3844;
    background: #ffdfe2;
}

.modal .alert-advanced {
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
}

.modal .alert-advanced-icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    font-size: 17px;
}

.modal .alert-advanced-content h3 {
    font-size: 15px;
}

.newsletter-resend-form {
    margin-bottom: 24px;
}

.btn-confirmation {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 5px;
    box-shadow: 0 7px 14px rgba(253, 83, 50, 0.2);
}

.btn-confirmation i {
    font-size: 15px;
}

.btn-confirmation:hover,
.btn-confirmation:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(253, 83, 50, 0.28);
}

/* ============================================================================ */
/* Consensi form */
/* ============================================================================ */
.form-consents .company-brands + .company-brands {
    margin-top: 7px;
}

.form-consents .company-brands label {
    display: block;
    position: relative;
    margin: 5px 0;
    padding-left: 30px;
    font-size: 13px;
    line-height: 1.45;
}

.form-consents .checkbox-custom + .checkbox-custom-label:before {
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
}

/* ============================================================================ */
/* Dettaglio immobile: card consigliate e servizi commerciali */
/* ============================================================================ */
.sidebar-property-slide .property-listing.property-1 .listing-img-wrapper {
    height: 240px;
}

.sidebar-property-slide .property-listing.property-1 .public-recommended-image {
    width: 100%;
    height: 240px;
    max-height: none;
    object-fit: cover;
}

.sidebar-property-slide .property-listing.property-1 .listing-features-info ul li,
.sidebar-property-slide .property-listing.property-1 .listing-features-info ul li > span {
    display: flex;
    align-items: center;
}

.public-recommended-feature-icon {
    display: inline-block;
    flex: 0 0 20px;
    width: 20px;
    margin-right: 8px;
    color: #1e2a4c;
    text-align: center;
}

.public-recommended-feature-value {
    display: inline-block;
    color: #797d8a;
    font-weight: 600;
    line-height: 20px;
}

.public-recommended-feature-icon.inc-bed,
.public-recommended-feature-icon.inc-bath {
    position: relative;
    height: 20px;
}

.public-recommended-feature-icon.inc-bed:before,
.public-recommended-feature-icon.inc-bath:before {
    background-size: contain;
    width: 18px;
    height: 18px;
    top: 0;
    left: 0;
}

.avl-features .public-commercial-parking {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
}

.avl-features .public-commercial-parking:before {
    display: none;
}

.public-commercial-parking i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 10px;
}

.public-commercial-parking.is-available i {
    background: #2a3c77;
}

.public-commercial-parking.is-unavailable i {
    background: #8a8f99;
}

/* ============================================================================ */
/* Header: menu a discesa desktop */
/* ============================================================================ */
@media (min-width: 921px) {
    nav.headnavbar.core-nav .menu > li.dropdown > a:before {
        content: "\e64b";
        transition: transform .18s ease;
    }

    nav.headnavbar.core-nav .menu > li.dropdown.open > a:before {
        transform: rotate(180deg);
    }

    nav.headnavbar.core-nav .dropdown > .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    }

    nav.headnavbar.core-nav .dropdown.open > .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        transition-delay: 0s;
    }
}
/* ============================================================================ */
/* Lista immobili: etichette stato */
/* ============================================================================ */
.public-list-immobile-card .property-type.property-type-trattativa,
.public-list-immobile-card .property-type.property-type-concluso {
    bottom: 20px;
    color: #ffffff;
    font-weight: 700;
    left: 20px;
    right: auto;
    top: auto;
}

.public-list-immobile-card .property-type.property-type-trattativa {
    background: #dc3545;
}

.public-list-immobile-card .property-type.property-type-concluso {
    background: #198754;
}

/* ============================================================================ */
/* Dettaglio immobile: etichetta trattativa sulla galleria */
/* ============================================================================ */
.public-detail-gallery-main {
    position: relative;
}

.public-detail-gallery-main .property-type.property-type-trattativa,
.public-detail-gallery-main .property-type.property-type-concluso {
    bottom: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    left: 20px;
    padding: 7px 18px;
    position: absolute;
    text-transform: uppercase;
    z-index: 2;
}

.public-detail-gallery-main .property-type.property-type-trattativa {
    background: #dc3545;
}

.public-detail-gallery-main .property-type.property-type-concluso {
    background: #198754;
}

/* Dettaglio immobile: caratteristiche e servizi */
.public-detail-feature-item {
    min-height: 32px;
}

.public-detail-feature-icon {
    align-items: center;
    background: #edf4f8;
    border-radius: 50%;
    color: #1c5d84;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    margin-right: 12px;
    width: 32px;
}

.public-detail-feature-icon .material-symbols-outlined {
    font-size: 17px;
}
