/* Home Matibook — layout grafico (ClayList pulizia + ClassiAds hero/categorie/griglia/footer).
   Solo body.mb-home: le altre pagine restano invariate. Nessuna feature demo. */
body.mb-home {
    background: #f4f6f8;
    color: #2c3340;
}
body.mb-home .container {
    max-width: 1140px !important;
}
body.mb-home hr.topbar {
    display: none;
}

/* Header */
body.mb-home .navbar.navbar-default {
    margin-top: 0;
    margin-bottom: 0;
    background: #fff;
    background-image: none;
    border: 0;
    border-radius: 0;
    min-height: 72px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}
body.mb-home .navbar .container {
    padding-top: 8px;
    padding-bottom: 8px;
}
body.mb-home .additional-shop-info {
    padding-top: 4px;
}
body.mb-home .navbar-brand {
    height: auto;
    padding: 0;
}
body.mb-home .navbar-brand img {
    max-height: 52px !important;
}
body.mb-home .header.layer-one {
    display: none;
}
body.mb-home .additional-nav .pull-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 8px;
}
body.mb-home .additional-nav a {
    color: #2c3340;
    font-weight: 600;
}
body.mb-home .additional-nav a[href*="preferiti"] {
    color: #4b5563;
}
body.mb-home a.post-ad-btn {
    background: #ff7518 !important;
    background-image: none !important;
    border: 0 !important;
    filter: none !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(255, 117, 24, 0.28);
}
body.mb-home a.post-ad-btn:hover,
body.mb-home a.post-ad-btn:focus {
    background: #e86610 !important;
    color: #fff !important;
}
body.mb-home .additional-nav a[href*="matiplace"] {
    background: transparent !important;
    background-image: none !important;
    border: 1px solid #d7dde5 !important;
    color: #1c2331 !important;
    box-shadow: none;
    filter: none !important;
}

/* Barra 5 voci: solo mobile (U.2C). Desktop resta l'header attuale. */
body.mb-home .mb-home-mbar {
    display: none;
}

@media (min-width: 768px) {
    body.mb-home .navbar.navbar-default {
        margin-top: 0;
        min-height: 0;
    }
    body.mb-home .navbar .container {
        padding-top: 0;
        padding-bottom: 0;
    }
    body.mb-home .mb-home-deskhead {
        display: block;
    }
    body.mb-home .mb-home-util {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 16px;
        padding: 7px 0 6px;
        border-bottom: 1px solid #eef1f4;
    }
    body.mb-home .mb-home-util a {
        color: #6b7280;
        font-size: 12px;
        font-weight: 500;
        text-decoration: none;
    }
    body.mb-home .mb-home-util a:hover,
    body.mb-home .mb-home-util a:focus {
        color: #1c2331;
        text-decoration: none;
    }
    body.mb-home .mb-home-deskmain {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 10px 0 12px;
    }
    body.mb-home .mb-home-deskact {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 18px;
        flex-wrap: wrap;
    }
    body.mb-home .mb-home-deskact a:not(.post-ad-btn) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        color: #1c2331;
        font-weight: 600;
        text-decoration: none;
        line-height: 1;
    }
    body.mb-home .mb-home-deskact a:not(.post-ad-btn) .fa {
        font-size: 14px;
        line-height: 1;
        width: 1em;
        text-align: center;
    }
    body.mb-home .mb-home-deskact a:not(.post-ad-btn):hover,
    body.mb-home .mb-home-deskact a:not(.post-ad-btn):focus {
        color: #ff7518;
        text-decoration: none;
    }
    body.mb-home .mb-home-deskact a.post-ad-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 14px;
        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
        box-sizing: border-box;
    }
    body.mb-home .mb-home-deskact a.post-ad-btn .fa {
        margin: 0;
        font-size: 14px;
        line-height: 1;
        width: 1em;
        text-align: center;
    }
    body.mb-home .navbar-brand img {
        max-height: 48px !important;
        width: auto;
        height: auto;
    }
}

/* Hero + ricerca esistente */
body.mb-home .mb-home-hero {
    background: linear-gradient(180deg, #1c2331 0%, #2a3344 100%);
    color: #fff;
    padding: 48px 0 56px;
}
body.mb-home .mb-home-hero h1 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    text-align: center;
}
body.mb-home .mb-home-hero .mb-home-lead {
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 28px;
    font-size: 16px;
}
body.mb-home .jumbotron.home-search {
    background: transparent;
    padding: 0;
    margin: 0;
}
body.mb-home .jumbotron.home-search .container,
body.mb-home .mb-home-hero .jumbotron.home-search .container {
    width: 100%;
    max-width: none !important;
    padding: 0;
}
body.mb-home .jumbotron.home-search .row,
body.mb-home .jumbotron.home-search .col-sm-12.well,
body.mb-home .jumbotron.home-search .blog-posts {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    float: none;
    width: 100%;
}
body.mb-home #frm-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
body.mb-home #frm-search > div {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: auto;
    flex: 1 1 160px;
}
body.mb-home #frm-search .form-control {
    height: 44px;
    margin: 0 !important;
    border: 1px solid #e5e9ef;
    box-shadow: none;
    border-radius: 6px;
}
body.mb-home #frm-search > div:last-child {
    flex: 0 0 auto;
}
body.mb-home #frm-search button[type="submit"] {
    height: 44px;
    margin: 0 !important;
    background: #ff7518;
    border-color: #ff7518;
    font-weight: 700;
    padding: 0 22px;
    border-radius: 6px;
}

/* Sezioni */
body.mb-home .mb-home-section {
    padding: 48px 0 16px;
}
body.mb-home .mb-home-section h2 {
    margin: 0 0 24px;
    font-size: 24px;
    font-weight: 700;
    color: #1c2331;
    text-align: center;
}
body.mb-home .mb-home-section h2 span {
    border: 0;
}

/* Categorie: riga orizzontale, icone SVG, senza card per voce */
body.mb-home .mb-home-cats {
    padding: 28px 0 8px;
}
body.mb-home .mb-home-catgrid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px 10px;
    align-items: start;
}
body.mb-home .mb-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 0;
    padding: 8px 4px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    color: #1c2331;
    text-decoration: none;
    transition: color 0.15s ease;
}
body.mb-home .mb-cat-card:hover,
body.mb-home .mb-cat-card:focus {
    text-decoration: none;
    color: #1c2331;
    transform: none;
    box-shadow: none;
}
body.mb-home .mb-cat-card:hover .mb-cat-icon,
body.mb-home .mb-cat-card:focus .mb-cat-icon {
    transform: translateY(-2px);
}
body.mb-home .mb-cat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 0 8px;
    padding: 0;
    color: #1a9d32;
    background: none !important;
    transition: transform 0.15s ease;
}
body.mb-home .mb-cat-icon svg {
    display: block;
    width: 40px;
    height: 40px;
}
/* Forchettour: logo originale PNG (colori invariati) */
body.mb-home .mb-cat-icon--forchettour {
    color: inherit;
    background: transparent !important;
}
body.mb-home .mb-cat-icon--forchettour img,
body.mb-home .mb-home-seo-nav-icon.mb-cat-icon--forchettour img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}
body.mb-home .mb-home-seo-nav-icon.mb-cat-icon--forchettour {
    background: transparent;
    color: inherit;
}
body.mb-home .mb-home-seo-nav-icon.mb-cat-icon--forchettour img {
    width: 36px;
    height: 36px;
}

body.mb-home .mb-cat-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}
body.mb-home .mb-cat-card {
    cursor: pointer;
    border: 0;
    font: inherit;
    width: 100%;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}
body.mb-home .mb-home-cat-toggle {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
body.mb-home .mb-home-cat-backdrop {
    display: none;
}
body.mb-home .mb-home-catpanels {
    position: relative;
    z-index: 2;
}
body.mb-home .mb-home-catpanel {
    display: none;
    margin-top: 14px;
    padding: 16px 20px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
body.mb-home .mb-home-catpanel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}
body.mb-home .mb-home-catpanel-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1c2331;
    line-height: 1.3;
}
body.mb-home .mb-home-catpanel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
body.mb-home .mb-home-catpanel-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.mb-home .mb-home-catpanel-list a {
    display: block;
    padding: 8px 4px;
    color: #1c2331;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
}
body.mb-home .mb-home-catpanel-list a:hover,
body.mb-home .mb-home-catpanel-list a:focus {
    color: #1a9d32;
    text-decoration: underline;
}
body.mb-home #mb-home-cat-6:checked ~ .mb-home-catpanels .mb-home-catpanel-6,
body.mb-home #mb-home-cat-1:checked ~ .mb-home-catpanels .mb-home-catpanel-1,
body.mb-home #mb-home-cat-24:checked ~ .mb-home-catpanels .mb-home-catpanel-24,
body.mb-home #mb-home-cat-13:checked ~ .mb-home-catpanels .mb-home-catpanel-13,
body.mb-home #mb-home-cat-33:checked ~ .mb-home-catpanels .mb-home-catpanel-33,
body.mb-home #mb-home-cat-18:checked ~ .mb-home-catpanels .mb-home-catpanel-18,
body.mb-home #mb-home-cat-80:checked ~ .mb-home-catpanels .mb-home-catpanel-80,
body.mb-home #mb-home-cat-90:checked ~ .mb-home-catpanels .mb-home-catpanel-90 {
    display: block;
}
body.mb-home #mb-home-cat-6:checked ~ .mb-home-catgrid label[for="mb-home-cat-6"],
body.mb-home #mb-home-cat-1:checked ~ .mb-home-catgrid label[for="mb-home-cat-1"],
body.mb-home #mb-home-cat-24:checked ~ .mb-home-catgrid label[for="mb-home-cat-24"],
body.mb-home #mb-home-cat-13:checked ~ .mb-home-catgrid label[for="mb-home-cat-13"],
body.mb-home #mb-home-cat-33:checked ~ .mb-home-catgrid label[for="mb-home-cat-33"],
body.mb-home #mb-home-cat-18:checked ~ .mb-home-catgrid label[for="mb-home-cat-18"],
body.mb-home #mb-home-cat-80:checked ~ .mb-home-catgrid label[for="mb-home-cat-80"],
body.mb-home #mb-home-cat-90:checked ~ .mb-home-catgrid label[for="mb-home-cat-90"] {
    color: #1a9d32;
}

/* Griglia annunci */
body.mb-home .mb-home-adgrid,
body.mb-home .mb-home-featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
body.mb-home .mb-ad-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    min-width: 0;
}
body.mb-home .mb-ad-card-photo {
    display: block;
    height: 188px;
    background: #e8edf3;
    overflow: hidden;
}
body.mb-home .mb-ad-card-photo img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    display: block;
}
body.mb-home .mb-ad-card-body {
    padding: 14px 14px 16px;
    flex: 1 1 auto;
}
body.mb-home .mb-ad-card-body h3 {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}
body.mb-home .mb-ad-card-body h3 a {
    color: #1c2331;
}
body.mb-home .mb-ad-card-price {
    color: #ff7518;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}
body.mb-home .mb-ad-card-meta,
body.mb-home .mb-ad-card-meta a {
    color: #6b7280;
    font-size: 12px;
    margin: 0 0 8px;
}
body.mb-home .mb-ad-card-excerpt {
    font-size: 13px;
    color: #4b5563;
    margin: 0 0 10px;
}
body.mb-home .mb-ad-card .matibook-preferiti-wrap {
    float: none;
    display: block;
}
body.mb-home .row.listing-row,
body.mb-home .row.directory {
    margin: 0;
}
body.mb-home .row.directory h2 {
    display: none;
}
body.mb-home #vpb_pagination_system_displayer .panel,
body.mb-home #vpb_pagination_system_displayer .recent-listings {
    border: 0;
    box-shadow: none;
    background: transparent;
    margin: 0;
}
/* U.2E: paginazione legacy nascosta solo in presentazione Home. Logica/AJAX invariate. */
body.mb-home .mb-home-pagination,
body.mb-home #vpb_pagination_system_displayer ul.pagination {
    display: none !important;
}
body.mb-home .mb-ad-card-excerpt + p,
body.mb-home .mb-ad-card-body > p.muted {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 8px;
}
body.mb-home .mb-home-ads {
    padding-bottom: 48px;
}

/* Footer */
body.mb-home .footer {
    background: #1c2331;
    color: #c5ccd6;
    padding: 36px 0 28px;
    margin-top: 0;
}
body.mb-home .footer p,
body.mb-home .footer a {
    color: #c5ccd6;
}
body.mb-home .footer a:hover {
    color: #fff;
    text-decoration: underline;
}
body.mb-home .footer-links a {
    margin-left: 14px;
}

@media (max-width: 1100px) {
    body.mb-home .mb-cat-title {
        font-size: 11px;
    }
    body.mb-home .mb-cat-icon,
    body.mb-home .mb-cat-icon svg {
        width: 34px;
        height: 34px;
    }
}
@media (max-width: 991px) {
    body.mb-home .mb-home-adgrid,
    body.mb-home .mb-home-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    body.mb-home .mb-home-hero h1 {
        font-size: 26px;
    }
    body.mb-home .additional-nav .pull-right {
        justify-content: flex-start;
        padding-top: 0;
    }
}
/* Desktop: lo shell della ricerca è trasparente; il form resta inline come prima. */
body.mb-home .mb-home-search-toggle,
body.mb-home .mb-home-search-open,
body.mb-home .mb-home-search-backdrop,
body.mb-home .mb-home-search-dialog-head,
body.mb-home .mb-home-msel-trigger,
body.mb-home .mb-home-pick {
    display: none;
}
body.mb-home .mb-home-msel {
    display: block;
    position: relative;
    width: 100%;
}
}
body.mb-home .mb-home-search-shell,
body.mb-home .mb-home-search-overlay,
body.mb-home .mb-home-search-dialog {
    display: contents;
}

@media (max-width: 767px) {
    body.mb-home {
        overflow-x: hidden;
    }
    body.mb-home .navbar.navbar-default {
        min-height: 0;
        margin-top: 0;
        box-shadow: none;
    }
    body.mb-home .navbar .container {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    body.mb-home .mb-home-deskhead {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    body.mb-home .mb-home-util {
        display: flex;
        order: 2;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        padding: 0;
        border: 0;
        flex: 0 0 auto;
    }
    body.mb-home .mb-home-util a[href*="preferiti"] {
        display: none !important;
    }
    body.mb-home .mb-home-util a[href*="matiplace"] {
        display: inline-block;
        padding: 4px 8px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        color: #1c2331;
        border: 1px solid #d7dde5;
        border-radius: 4px;
        text-decoration: none;
        text-transform: none;
    }
    body.mb-home .mb-home-deskmain {
        display: block;
        order: 1;
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
    }
    body.mb-home .mb-home-deskact {
        display: none !important;
    }
    body.mb-home .navbar .container > .row {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        margin-left: 0;
        margin-right: 0;
    }
    body.mb-home .additional-shop-info {
        float: none;
        width: auto;
        max-width: none;
        flex: 1 1 auto;
        padding: 0 8px 0 0;
    }
    body.mb-home .additional-shop-info ul,
    body.mb-home .additional-shop-info li {
        margin: 0 !important;
        padding: 0;
        display: block;
        line-height: 0;
    }
    body.mb-home .navbar-brand {
        display: block;
        height: 28px;
        padding: 0;
        line-height: 0;
    }
    body.mb-home .navbar-brand img {
        height: 28px !important;
        width: auto;
        max-width: 100%;
    }
    body.mb-home .additional-nav {
        float: none;
        width: auto;
        max-width: none;
        flex: 0 0 auto;
        padding: 0;
        min-width: 0;
    }
    body.mb-home .additional-nav > ul {
        margin: 0;
        padding: 0;
    }
    body.mb-home .additional-nav .pull-right {
        float: none;
        display: block;
        width: auto;
        padding: 0;
    }
    body.mb-home .additional-nav .pull-right > ul {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        margin: 0;
        padding: 0;
        width: auto;
    }
    body.mb-home .additional-nav a.post-ad-btn[href*="inserimento-annuncio"],
    body.mb-home .additional-nav a[href*="preferiti"] {
        display: none !important;
    }
    body.mb-home .additional-nav a[href*="matiplace"] {
        display: inline-block;
        padding: 4px 8px;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
        box-shadow: none;
        border-radius: 4px;
        text-transform: none;
    }

    body.mb-home .mb-home-mbar {
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        background: #fff;
        border-top: 1px solid #e8edf3;
        border-bottom: 1px solid #e8edf3;
        box-sizing: border-box;
        overflow: hidden;
    }
    body.mb-home .mb-home-mbar-item {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        margin: 0;
        padding: 8px 2px 7px;
        min-height: 52px;
        color: #2c3340;
        text-align: center;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.15;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }
    body.mb-home .mb-home-mbar-item .fa {
        font-size: 18px;
        line-height: 1;
        color: #1c2331;
    }
    body.mb-home .mb-home-mbar-item span {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    body.mb-home .mb-home-mbar-item.is-active,
    body.mb-home .mb-home-mbar-item.is-active .fa {
        color: #ff7518;
    }
    body.mb-home .mb-home-mbar-item:hover,
    body.mb-home .mb-home-mbar-item:focus {
        color: #1c2331;
        text-decoration: none;
    }

    body.mb-home .mb-home-hero {
        padding: 28px 0 36px;
    }
    body.mb-home .mb-home-search-shell {
        display: block;
    }
    body.mb-home .mb-home-search-toggle {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        opacity: 0;
    }
    body.mb-home .mb-home-search-open {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        background: #fff;
        color: #1c2331;
        border-radius: 10px;
        padding: 12px 16px;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body.mb-home .mb-home-search-overlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1080;
        align-items: flex-start;
        justify-content: center;
        padding: 16px 12px 24px;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    body.mb-home .mb-home-search-toggle:checked ~ .mb-home-search-overlay {
        display: flex;
    }
    body.mb-home:has(#mb-home-search-toggle:checked) {
        overflow: hidden;
    }
    body.mb-home .mb-home-search-backdrop {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 23, 42, 0.55);
        cursor: pointer;
    }
    body.mb-home .mb-home-search-dialog {
        display: block;
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 440px;
        margin: 12px auto 0;
        background: #fff;
        color: #1c2331;
        border-radius: 12px;
        padding: 12px 14px 16px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
        box-sizing: border-box;
        overflow-x: hidden;
    }
    body.mb-home .mb-home-search-dialog-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin: 0 0 10px;
        color: #1c2331;
        font-size: 16px;
        font-weight: 700;
    }
    body.mb-home .mb-home-search-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: -8px -8px -8px 0;
        font-size: 28px;
        font-weight: 400;
        line-height: 1;
        color: #4b5563;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body.mb-home .mb-home-search-dialog .jumbotron.home-search,
    body.mb-home .mb-home-search-dialog .jumbotron.home-search .container,
    body.mb-home .mb-home-search-dialog .jumbotron.home-search .row,
    body.mb-home .mb-home-search-dialog .jumbotron.home-search .col-sm-12.well,
    body.mb-home .mb-home-search-dialog .jumbotron.home-search .blog-posts {
        margin: 0;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        float: none;
        width: 100%;
        max-width: none !important;
    }
    body.mb-home .mb-home-search-dialog #frm-search {
        display: flex;
        flex-direction: column;
        gap: 8px;
        background: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    body.mb-home .mb-home-search-dialog #frm-search > div {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
        flex: 0 0 auto;
    }
    body.mb-home .mb-home-search-dialog #frm-search .form-control,
    body.mb-home .mb-home-search-dialog #frm-search button[type="submit"] {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    body.mb-home .mb-home-cats {
        padding: 18px 0 6px;
    }
    body.mb-home .mb-home-catgrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px 4px;
        padding: 14px 8px 16px;
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    }
    body.mb-home .mb-cat-card {
        padding: 8px 2px;
        min-height: 72px;
    }
    body.mb-home .mb-cat-icon,
    body.mb-home .mb-cat-icon svg {
        width: 30px;
        height: 30px;
    }
    body.mb-home .mb-cat-title {
        font-size: 11px;
        font-weight: 600;
        line-height: 1.2;
    }
    body.mb-home .mb-home-cat-backdrop {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1068;
        margin: 0;
        background: rgba(15, 23, 42, 0.45);
    }
    body.mb-home #mb-home-cat-off:not(:checked) ~ .mb-home-cat-backdrop {
        display: block;
    }
    body.mb-home .mb-home-catpanels {
        z-index: 1070;
    }
    body.mb-home .mb-home-catpanel {
        position: fixed;
        top: 12%;
        left: 16px;
        right: 16px;
        max-height: 76vh;
        overflow: auto;
        margin: 0;
        padding: 0 0 12px;
        border-radius: 14px;
        z-index: 1071;
        -webkit-overflow-scrolling: touch;
    }
    body.mb-home .mb-home-catpanel-head {
        position: sticky;
        top: 0;
        z-index: 2;
        margin: 0;
        padding: 12px 12px 8px 16px;
        background: #fff;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 1px 0 #eef1f4;
    }
    body.mb-home .mb-home-catpanel-head h3 {
        font-size: 18px;
    }
    body.mb-home .mb-home-catpanel-close {
        width: 44px;
        height: 44px;
        font-size: 32px;
    }
    body.mb-home .mb-home-catpanel-list {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 16px;
    }
    body.mb-home .mb-home-catpanel-list a {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 6px 8px;
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid #eef1f4;
    }
    body.mb-home .mb-home-catpanel-list li:last-child a {
        border-bottom: 0;
    }
    body.mb-home .mb-home-adgrid,
    body.mb-home .mb-home-featured-grid {
        grid-template-columns: 1fr;
    }

    body.mb-home .footer {
        padding: 32px 0 36px;
        text-align: center;
    }
    body.mb-home .footer .row,
    body.mb-home .footer [class*="col-"] {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 20px;
        padding-right: 20px;
    }
    body.mb-home .footer .col-sm-7 p {
        max-width: 22em;
        margin: 0 auto 28px;
        padding: 0;
        font-size: 13px;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    body.mb-home .footer-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    body.mb-home .footer-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        min-height: 44px;
        padding: 10px 12px;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.35;
        text-decoration: none;
    }

    body.mb-home .mb-home-msel select#city,
    body.mb-home .mb-home-msel select#comuni,
    body.mb-home .mb-home-msel select#type_cat {
        position: absolute;
        left: 0;
        top: 0;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
        clip: rect(0, 0, 0, 0);
    }
    body.mb-home .mb-home-msel-trigger {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 44px;
        margin: 0;
        padding: 0 12px;
        border: 1px solid #e5e9ef;
        border-radius: 6px;
        background: #fff;
        color: #1c2331;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.3;
        text-align: left;
        box-sizing: border-box;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body.mb-home .mb-home-msel-trigger.is-placeholder {
        color: #6b7280;
        font-weight: 500;
    }
    body.mb-home.mb-home-pick-open {
        overflow: hidden;
    }
    body.mb-home .mb-home-pick.is-open {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1090;
    }
    body.mb-home .mb-home-pick-backdrop {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 23, 42, 0.45);
    }
    body.mb-home .mb-home-pick-panel {
        position: fixed;
        top: 12%;
        left: 16px;
        right: 16px;
        max-height: 76vh;
        overflow: auto;
        background: #fff;
        border-radius: 14px;
        z-index: 1;
        padding: 0 0 12px;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    body.mb-home .mb-home-pick-sticky {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        border-radius: 14px 14px 0 0;
        box-shadow: 0 1px 0 #eef1f4;
    }
    body.mb-home .mb-home-pick-head {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 8px 8px 12px;
    }
    body.mb-home .mb-home-pick-title {
        flex: 1 1 auto;
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #1c2331;
        line-height: 1.3;
    }
    body.mb-home .mb-home-pick-back {
        flex: 0 0 auto;
        margin: 0;
        padding: 8px 8px 8px 4px;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: #1a9d32;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body.mb-home .mb-home-pick-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 32px;
        font-weight: 400;
        line-height: 1;
        color: #4b5563;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    body.mb-home .mb-home-pick-filter {
        padding: 0 16px 10px;
    }
    body.mb-home .mb-home-pick-search {
        width: 100%;
        height: 40px;
        margin: 0;
        padding: 0 12px;
        border: 1px solid #e5e9ef;
        border-radius: 8px;
        font-size: 15px;
        box-sizing: border-box;
    }
    body.mb-home .mb-home-pick-list {
        list-style: none;
        margin: 0;
        padding: 0 16px;
    }
    body.mb-home .mb-home-pick-list button {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 40px;
        margin: 0;
        padding: 6px 8px;
        border: 0;
        border-bottom: 1px solid #eef1f4;
        background: transparent;
        color: #1c2331;
        font-size: 15px;
        font-weight: 600;
        text-align: left;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        box-sizing: border-box;
    }
    body.mb-home .mb-home-pick-list li:last-child button {
        border-bottom: 0;
    }
    body.mb-home .mb-home-pick-list button.is-selected {
        color: #1a9d32;
    }
    body.mb-home .mb-home-pick-empty {
        padding: 16px 8px;
        color: #6b7280;
        font-size: 14px;
    }
}


/* Homepage SEO nav — categorie × province (FASE 2) */
body.mb-home .mb-home-seo-nav {
    padding-top: 8px;
    padding-bottom: 28px;
}
body.mb-home .mb-home-seo-nav-title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1c2331;
    line-height: 1.25;
}
body.mb-home .mb-home-seo-nav-lead {
    margin: 0 0 20px;
    max-width: 46rem;
    font-size: 14px;
    line-height: 1.45;
    color: #6b7280;
}
body.mb-home .mb-home-seo-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
body.mb-home .mb-home-seo-nav-row {
    display: grid;
    grid-template-columns: minmax(160px, 220px) 1fr;
    gap: 12px 20px;
    align-items: start;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
}
body.mb-home .mb-home-seo-nav-catlink {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1c2331;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
}
body.mb-home .mb-home-seo-nav-catlink:hover,
body.mb-home .mb-home-seo-nav-catlink:focus {
    color: #ff7518;
    text-decoration: none;
}
body.mb-home .mb-home-seo-nav-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef6f1;
    color: #1f8a4c;
}
body.mb-home .mb-home-seo-nav-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}
body.mb-home .mb-home-seo-nav-places {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}
body.mb-home .mb-home-seo-nav-places a {
    color: #1c2331;
    text-decoration: none;
    font-weight: 500;
}
body.mb-home .mb-home-seo-nav-places a:hover,
body.mb-home .mb-home-seo-nav-places a:focus {
    color: #ff7518;
    text-decoration: underline;
}
body.mb-home .mb-home-seo-nav-sep {
    color: #c5ccd6;
    margin: 0 2px;
}
body.mb-home .mb-home-seo-nav-all {
    font-weight: 700 !important;
    color: #1f8a4c !important;
}
@media (max-width: 767px) {
    body.mb-home .mb-home-seo-nav-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    body.mb-home .mb-home-seo-nav-title {
        font-size: 19px;
    }
    body.mb-home .mb-home-seo-nav-places {
        font-size: 13px;
    }
}

/* BO.20 — ribbon PREMIUM (SoT; non SUPER TOP / PlayList) */
.mb-premium-ribbon {
    position: absolute;
    top: 12px;
    left: -34px;
    width: 120px;
    padding: 5px 0;
    background: linear-gradient(90deg, rgba(196, 90, 0, 0.60) 0%, rgba(255, 117, 24, 0.60) 55%, rgba(255, 154, 74, 0.60) 100%);
    color: #fff;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.1;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
    z-index: 3;
    pointer-events: none;
}
.mb-premium-ribbon-text {
    display: inline-block;
    transform: translateX(2px);
    color: #fff;
    opacity: 1;
}
body.mb-home .mb-ad-card-photo {
    position: relative;
}
body.mb-listings .mb-list-card-photo {
    overflow: hidden;
}
@media (max-width: 767px) {
    .mb-premium-ribbon {
        top: 10px;
        left: -36px;
        width: 110px;
        font-size: 9px;
        padding: 4px 0;
    }
}
