/* Scheda annuncio V.3.1 — solo body.mb-scheda. Home, liste e Preferiti restano invariati. */
body.mb-scheda {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.mb-scheda > .mb-listings-main {
    flex: 1 0 auto;
}
body.mb-scheda > .footer {
    flex-shrink: 0;
}

body.mb-scheda .mb-listings-breadcrumb {
    background: transparent;
    padding-bottom: 0;
    margin-bottom: 0;
}
body.mb-scheda .mb-scheda-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    grid-template-areas:
        "gallery info"
        "gallery contact"
        "specs specs"
        "desc desc"
        "share share"
        "simili simili";
    gap: 20px 28px;
    align-items: start;
    padding: 12px 0 28px;
}
body.mb-scheda .mb-scheda-gallery { grid-area: gallery; }
body.mb-scheda .mb-scheda-info {
    grid-area: info;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 20px 22px;
    box-sizing: border-box;
}
body.mb-scheda .mb-scheda-info > :last-child {
    margin-bottom: 0;
}
body.mb-scheda .mb-scheda-contact { grid-area: contact; }
body.mb-scheda .mb-scheda-specs { grid-area: specs; }
body.mb-scheda .mb-scheda-desc { grid-area: desc; }
body.mb-scheda .mb-scheda-share { grid-area: share; }
body.mb-scheda .mb-scheda-simili { grid-area: simili; }

body.mb-scheda .mb-scheda-gallery-stage {
    background: #eef1f4;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    max-height: 520px;
}
body.mb-scheda .mb-scheda-gallery-stage a {
    display: block;
    width: 100%;
    line-height: 0;
}
body.mb-scheda .mb-scheda-gallery-stage img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}
body.mb-scheda .mb-scheda-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
body.mb-scheda .mb-scheda-thumbs a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 56px;
    padding: 0;
    margin: 0;
    background: #eef1f4;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    overflow: hidden;
}
body.mb-scheda .mb-scheda-thumbs a:hover,
body.mb-scheda .mb-scheda-thumbs a:focus {
    border-color: #ff7518;
}
body.mb-scheda .mb-scheda-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

body.mb-scheda .mb-scheda-info h1 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 700;
    color: #1c2331;
    text-align: left;
}
body.mb-scheda .mb-scheda-info h1 b {
    font-weight: 700;
}
body.mb-scheda .mb-scheda-price,
body.mb-scheda .mb-scheda-info .price {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    color: #ff7518;
    text-align: left;
}
body.mb-scheda .mb-scheda-kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9aa3af;
}
body.mb-scheda .mb-scheda-meta {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}
body.mb-scheda .mb-scheda-meta a {
    color: #1a9d32;
    font-weight: 600;
    text-decoration: none;
}
body.mb-scheda .mb-scheda-meta a:hover,
body.mb-scheda .mb-scheda-meta a:focus {
    color: #158229;
    text-decoration: underline;
}
body.mb-scheda .mb-scheda-meta-strong {
    color: #1c2331;
    font-weight: 700;
}
body.mb-scheda .mb-scheda-favs {
    margin: 14px 0 4px;
}
body.mb-scheda .mb-scheda-favs .matibook-preferiti-wrap {
    float: none;
    display: inline-block;
}
body.mb-scheda .mb-scheda-id {
    margin: 10px 0 0;
    font-size: 12px;
    color: #9aa3af;
}

body.mb-scheda .mb-scheda-contact {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 16px 18px;
}
body.mb-scheda .mb-scheda-contact-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1c2331;
}
body.mb-scheda .mb-scheda-cta,
body.mb-scheda .mb-scheda-cta.btn,
body.mb-scheda .mb-scheda-cta.btn-warning {
    display: inline-block;
    background: #ff7518 !important;
    background-image: none !important;
    border: 0 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(255, 117, 24, 0.28);
    text-decoration: none !important;
}
body.mb-scheda .mb-scheda-cta:hover,
body.mb-scheda .mb-scheda-cta:focus,
body.mb-scheda .mb-scheda-cta.btn-warning:hover,
body.mb-scheda .mb-scheda-cta.btn-warning:focus {
    background: #e86610 !important;
    color: #fff !important;
}
body.mb-scheda .mb-scheda-phone {
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: #4b5563;
}
body.mb-scheda .mb-scheda-phone b,
body.mb-scheda .mb-scheda-phone .fa,
body.mb-scheda .mb-scheda-phone .mb-scheda-tel {
    color: #1c2331;
}
body.mb-scheda .mb-scheda-phone .mb-scheda-tel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
}
body.mb-scheda .mb-scheda-phone .mb-scheda-tel:hover,
body.mb-scheda .mb-scheda-phone .mb-scheda-tel:focus {
    color: #158229;
    text-decoration: underline;
}

body.mb-scheda .mb-scheda-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 20px 22px;
}
body.mb-scheda .mb-scheda-block h2 {
    margin: 0 0 14px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #1c2331;
}
body.mb-scheda .mb-scheda-specs-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}
body.mb-scheda .mb-scheda-specs-grid > div {
    min-width: 0;
    width: 100%;
}
body.mb-scheda .mb-scheda-specs .table {
    display: block;
    margin: 0;
    width: 100%;
    max-width: 100%;
    background: transparent;
}
body.mb-scheda .mb-scheda-specs .table > tbody {
    display: block;
    width: 100%;
}
body.mb-scheda .mb-scheda-specs .table > tbody > tr {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
body.mb-scheda .mb-scheda-specs .table > tbody > tr > th,
body.mb-scheda .mb-scheda-specs .table > tbody > tr > td {
    display: block;
    border-top: 0;
    border-bottom: 1px solid #eef1f4;
    padding: 8px 0;
    font-size: 13px;
    line-height: 1.45;
}
body.mb-scheda .mb-scheda-specs-grid > div:last-child .table > tbody > tr:last-child > th,
body.mb-scheda .mb-scheda-specs-grid > div:last-child .table > tbody > tr:last-child > td {
    border-bottom: 0;
}
body.mb-scheda .mb-scheda-specs .table > tbody > tr > th {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
    font-weight: 600;
    color: #6b7280;
}
body.mb-scheda .mb-scheda-specs .table > tbody > tr > th::after {
    content: ":";
}
body.mb-scheda .mb-scheda-specs .table > tbody > tr > td {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    font-weight: 700;
    color: #1c2331;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

body.mb-scheda .mb-scheda-desc-body {
    font-size: 15px;
    line-height: 1.65;
    color: #2c3340;
    word-wrap: break-word;
}
body.mb-scheda .mb-scheda-share {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    padding: 16px 18px;
}
body.mb-scheda .mb-scheda-share-label {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #1c2331;
}
body.mb-scheda .mb-scheda-share-copyrow {
    display: flex;
    align-items: stretch;
    margin: 0 0 12px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
}
body.mb-scheda .mb-scheda-share-url {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 42px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 12px;
    font-size: 13px;
    color: #4b5563;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
body.mb-scheda .mb-scheda-share-copy {
    flex: 0 0 auto;
    height: 42px;
    min-width: 88px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-left: 1px solid #d7dde5;
    border-radius: 0;
    background: #1c2331;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 42px;
    cursor: pointer;
}
body.mb-scheda .mb-scheda-share-copy:hover,
body.mb-scheda .mb-scheda-share-copy:focus {
    background: #111827;
    color: #fff;
}
body.mb-scheda .mb-scheda-share-copy.is-copied {
    background: #1a9d32;
    color: #fff;
}
body.mb-scheda .mb-scheda-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.mb-scheda .mb-scheda-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 8px 16px;
    border: 1px solid #d7dde5;
    border-radius: 8px;
    background: #fff;
    color: #1c2331;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
body.mb-scheda .mb-scheda-share-btn:hover,
body.mb-scheda .mb-scheda-share-btn:focus {
    color: #1c2331;
    text-decoration: none;
    border-color: #c5ccd6;
    background: #f8fafc;
}
body.mb-scheda .mb-scheda-share-wa {
    color: #0f7a4a;
    border-color: #b7e0cc;
    background: #f3faf6;
}
body.mb-scheda .mb-scheda-share-wa:hover,
body.mb-scheda .mb-scheda-share-wa:focus {
    color: #0c623c;
    background: #eaf6ef;
    border-color: #9ad0b5;
}
body.mb-scheda .mb-scheda-share-fb {
    color: #1a4f9c;
    border-color: #c5d4ee;
    background: #f5f8fd;
}
body.mb-scheda .mb-scheda-share-fb:hover,
body.mb-scheda .mb-scheda-share-fb:focus {
    color: #163f7c;
    background: #ebf1fb;
    border-color: #adc0e3;
}
body.mb-scheda .mb-scheda-share-btn[hidden] {
    display: none !important;
}
body.mb-scheda .mb-scheda-missing {
    padding: 28px 0 12px;
}

body.mb-scheda .mb-scheda-simili {
    margin-top: 8px;
    padding-top: 8px;
}
body.mb-scheda .mb-scheda-simili-head {
    margin: 0 0 16px;
}
body.mb-scheda .mb-scheda-simili h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: #1c2331;
}
body.mb-scheda .mb-scheda-simili-context {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #9aa3af;
}
body.mb-scheda .mb-scheda-simili-context a {
    color: #6b7280;
    font-weight: 600;
    text-decoration: none;
}
body.mb-scheda .mb-scheda-simili-context a:hover,
body.mb-scheda .mb-scheda-simili-context a:focus {
    color: #1a9d32;
}
body.mb-scheda .mb-scheda-simili-empty {
    color: #6b7280;
    font-size: 14px;
}

body.mb-scheda .mb-scheda-modal .modal-dialog {
    width: auto;
    max-width: 520px;
    margin: 24px auto;
}
body.mb-scheda .mb-scheda-modal .modal-content {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}
body.mb-scheda .mb-scheda-modal .modal-header {
    border: 0;
    padding: 18px 20px 8px;
    background: #fff;
}
body.mb-scheda .mb-scheda-modal .modal-header .close {
    margin-top: -4px;
    font-size: 28px;
    font-weight: 400;
    color: #6b7280;
    opacity: 1;
}
body.mb-scheda .mb-scheda-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1c2331;
    text-align: left;
}
body.mb-scheda .mb-scheda-modal-ref {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #9aa3af;
    font-weight: 500;
}
body.mb-scheda .mb-scheda-modal .modal-body {
    padding: 8px 20px 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
body.mb-scheda .mb-scheda-modal .form-group {
    margin-bottom: 12px;
}
body.mb-scheda .mb-scheda-modal label {
    display: block;
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #1c2331;
}
body.mb-scheda .mb-scheda-req {
    color: #c01769;
    font-weight: 700;
}
body.mb-scheda .mb-scheda-req-note {
    margin: 0 0 14px;
    font-size: 12px;
    color: #6b7280;
}
body.mb-scheda .mb-scheda-field-error {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.35;
    color: #c01769;
}
body.mb-scheda .mb-scheda-modal .form-control.mb-scheda-invalid,
body.mb-scheda .mb-scheda-modal .has-error .form-control {
    border-color: #c01769;
    box-shadow: 0 0 0 3px rgba(192, 23, 105, 0.08);
}
body.mb-scheda .mb-scheda-modal .form-control {
    height: 42px;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    color: #1c2331;
}
body.mb-scheda .mb-scheda-modal textarea.form-control {
    height: auto;
    min-height: 96px;
    padding-top: 10px;
    resize: vertical;
}
body.mb-scheda .mb-scheda-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
body.mb-scheda .mb-scheda-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
body.mb-scheda .mb-scheda-captcha-row img {
    height: 42px;
    width: auto;
    max-width: 160px;
    border: 1px solid #eef1f4;
    border-radius: 6px;
    background: #f4f6f8;
}
body.mb-scheda .mb-scheda-captcha-help {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
}
body.mb-scheda .mb-scheda-captcha-help a {
    color: #1a9d32;
    font-weight: 600;
}
body.mb-scheda .mb-scheda-safety {
    margin: 4px 0 16px;
    padding: 12px 14px;
    background: #f4f6f8;
    border-radius: 8px;
}
body.mb-scheda .mb-scheda-safety-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9aa3af;
}
body.mb-scheda .mb-scheda-safety ol {
    margin: 0 0 8px;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.45;
    color: #6b7280;
}
body.mb-scheda .mb-scheda-safety-note {
    margin: 0;
    font-size: 12px;
    color: #9aa3af;
}
body.mb-scheda .mb-scheda-safety-note a {
    color: #6b7280;
    text-decoration: underline;
}
body.mb-scheda .mb-scheda-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
body.mb-scheda .mb-scheda-modal-actions .mb-scheda-cta {
    margin: 0;
}
body.mb-scheda .mb-scheda-modal-cancel,
body.mb-scheda .mb-scheda-modal-cancel.btn {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #6b7280;
    font-weight: 600;
    padding: 10px 8px;
}
body.mb-scheda .mb-scheda-modal-cancel:hover,
body.mb-scheda .mb-scheda-modal-cancel:focus {
    color: #1c2331;
    background: transparent;
}
body.mb-scheda #response_brought .info {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f4f6f8;
    color: #1c2331;
    font-size: 14px;
}

@media (max-width: 991px) {
    body.mb-scheda .mb-scheda-wrap {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
        gap: 16px 18px;
    }
    body.mb-scheda .mb-scheda-info h1 {
        font-size: 22px;
    }
    body.mb-scheda .mb-scheda-price,
    body.mb-scheda .mb-scheda-info .price {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    body.mb-scheda .mb-listings-breadcrumb {
        padding-bottom: 0;
    }
    body.mb-scheda .mb-scheda-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 10px 0 20px;
    }
    body.mb-scheda .mb-scheda-info { order: 1; padding: 16px; border-radius: 10px; }
    body.mb-scheda .mb-scheda-gallery { order: 2; margin-top: -4px; }
    body.mb-scheda .mb-scheda-specs { order: 3; }
    body.mb-scheda .mb-scheda-desc { order: 4; }
    body.mb-scheda .mb-scheda-share { order: 5; }
    body.mb-scheda .mb-scheda-contact { order: 6; }
    body.mb-scheda .mb-scheda-simili { order: 7; }
    body.mb-scheda .mb-scheda-info h1 {
        font-size: 20px;
    }
    body.mb-scheda .mb-scheda-price,
    body.mb-scheda .mb-scheda-info .price {
        font-size: 22px;
        margin-bottom: 10px;
    }
    body.mb-scheda .mb-scheda-gallery-stage {
        min-height: 180px;
        max-height: 280px;
        border-radius: 10px;
    }
    body.mb-scheda .mb-scheda-gallery-stage img {
        max-height: 280px;
    }
    body.mb-scheda .mb-scheda-thumbs a {
        width: 64px;
        height: 48px;
        border-radius: 6px;
    }
    body.mb-scheda .mb-scheda-block {
        padding: 16px;
        border-radius: 10px;
    }
    body.mb-scheda .mb-scheda-gallery,
    body.mb-scheda .mb-scheda-info,
    body.mb-scheda .mb-scheda-block,
    body.mb-scheda .mb-scheda-contact,
    body.mb-scheda .mb-scheda-share,
    body.mb-scheda .mb-scheda-simili {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }
    body.mb-scheda .mb-scheda-contact,
    body.mb-scheda .mb-scheda-share {
        padding: 14px 16px;
        border-radius: 10px;
    }
    body.mb-scheda .mb-scheda-phone .mb-scheda-tel {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-top: 6px;
        padding: 8px 12px;
        border-radius: 8px;
        background: #eef6f0;
        color: #158229;
        text-decoration: none;
        -webkit-tap-highlight-color: rgba(26, 157, 50, 0.25);
    }
    body.mb-scheda .mb-scheda-phone .mb-scheda-tel:hover,
    body.mb-scheda .mb-scheda-phone .mb-scheda-tel:focus {
        color: #116c21;
        text-decoration: none;
    }
    body.mb-scheda .mb-scheda-cta,
    body.mb-scheda .mb-scheda-cta.btn {
        width: 100%;
        text-align: center;
    }
    body.mb-scheda .mb-scheda-share-url,
    body.mb-scheda .mb-scheda-share-copy {
        height: 44px;
        line-height: 44px;
    }
    body.mb-scheda .mb-scheda-share-btn {
        flex: 1 1 calc(50% - 8px);
        min-height: 44px;
    }
    body.mb-scheda .mb-scheda-simili {
        margin-top: 28px;
        padding-top: 24px;
        border-top: 2px solid #dbe3ec;
    }
    body.mb-scheda .mb-scheda-simili-head {
        margin-bottom: 14px;
    }
    body.mb-scheda .mb-scheda-simili h2 {
        font-size: 17px;
    }
    body.mb-scheda .mb-scheda-simili .mb-list-card {
        grid-template-columns: 108px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "photo main"
            "photo price"
            "photo favs";
        column-gap: 12px;
        row-gap: 2px;
        padding: 10px;
        overflow: hidden;
    }
    body.mb-scheda .mb-scheda-simili .mb-list-card-photo,
    body.mb-scheda .mb-scheda-simili .mb-list-card-photo img {
        width: 108px;
        height: 80px;
        aspect-ratio: auto;
        border-radius: 8px;
        object-fit: cover;
        object-position: center;
    }
    body.mb-scheda .mb-scheda-simili .mb-list-card-main {
        padding: 0;
    }
    body.mb-scheda .mb-scheda-simili .mb-list-card-main h3 {
        font-size: 15px;
        -webkit-line-clamp: 2;
    }
    body.mb-scheda .mb-scheda-simili .mb-list-card-excerpt {
        -webkit-line-clamp: 2;
        margin-bottom: 2px;
    }
    body.mb-scheda .mb-scheda-simili .mb-list-card-price {
        text-align: left;
        padding: 0;
        font-size: 16px;
    }
    body.mb-scheda .mb-scheda-simili .mb-list-card-favs {
        text-align: left;
        padding: 0;
    }
    body.mb-scheda .mb-scheda-modal .modal-dialog {
        margin: 12px;
        max-width: none;
        width: auto;
    }
    body.mb-scheda .mb-scheda-modal .modal-body {
        max-height: calc(100vh - 88px);
        padding: 8px 16px 16px;
    }
    body.mb-scheda .mb-scheda-modal-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
