/* Correzioni e versione mobile. Caricato per ultimo, prevale sugli stili del tema. */

/* Contenuti subito visibili, senza animazioni in entrata */
.wow { visibility: visible !important; animation: none !important; }
[hidden] { display: none !important; }
img { max-width: 100%; }

.mm-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; }
.footer-bottom p { text-align: left; }
.mm-piva { color: #fff; font-size: 11px; }

/* Mappa */
.mm-map { min-height: 220px; margin: 20px 0; padding: 24px; border: 1px solid #555; text-align: center; color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; }
.mm-map p { color: #fff; margin: 0; }
.mm-map button { background: #00a6d4; color: #fff; border: 0; padding: 12px 24px; }
.mm-map a { color: #fff; text-decoration: underline; padding: 8px; }
.mm-map.is-open { padding: 0; border: 0; height: 365px; }
.mm-map iframe { width: 100%; height: 100%; border: 0; }
.contact-page .mm-map { margin: 0 15px 20px; }

/* Cookie */
.mm-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000; background: #252e39; color: #fff; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: center; }
.mm-consent p { margin: 0; color: #fff; font-size: 14px; line-height: 1.4; }
.mm-consent a { color: #fff; text-decoration: underline; }
.mm-consent div { display: flex; gap: 12px; }
.mm-consent button { min-width: 120px; min-height: 44px; border: 1px solid #fff; background: #fff; color: #17202a; font-weight: 600; }

/* Modulo di ricerca, aspetto originale */
.find-home-item > input, .find-home-item select { width: 100%; height: 40px; padding: 0 10px; background: transparent; border: 1px solid #e1e1e1; border-radius: 0; color: #d7d7d7; }
.find-home-item select { cursor: pointer; }
.find-home-item select option { background: #fff; color: #222; }
.find-home-item > input::placeholder { color: #d7d7d7; opacity: 1; }
.find-home-bottom .col-md-12 { padding-top: 4px; }
.mm-price-label { display: block; text-align: left; color: #a8a8a8; margin-bottom: 4px; }
.mm-price-label output { display: inline; padding: 0; font-size: 13px; line-height: inherit; color: #fff; margin-left: 8px; }
.mm-range { position: relative; height: 28px; margin: 0 2px; }
.mm-range::before, .mm-range-fill { content: ""; position: absolute; top: 11px; height: 6px; background: #5b6770; }
.mm-range::before { left: 0; right: 0; }
.mm-range-fill { z-index: 1; left: 0; width: 100%; background: #00a6d4; }
.mm-range input { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 28px; margin: 0; padding: 0; background: none; border: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.mm-range input::-webkit-slider-runnable-track { height: 28px; background: none; }
.mm-range input::-moz-range-track { background: none; }
.mm-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: 5px; border: 0; border-radius: 50%; background: #00a6d4; pointer-events: auto; cursor: pointer; }
.mm-range input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #00a6d4; pointer-events: auto; cursor: pointer; }
.find-home-bottom .find-home-item.mm-price > input[type=hidden] { display: none; }
@media (max-width: 767px) {
    .find-home-item > input, .find-home-item select { font-size: 16px; height: 44px; }
    .mm-price { margin-bottom: 24px !important; }
    .mm-range input::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: 1px; }
    .mm-range input::-moz-range-thumb { width: 26px; height: 26px; }
}
@media (min-width: 992px) {
    .find-home-moro .find-home-cagtegory .col-md-6 { padding-bottom: 15px; padding-left: 8px; padding-right: 8px; }
    .find-home-moro .find-home-bottom .col-md-12 { padding-left: 8px; padding-right: 8px; }
    .find-home-moro .find-home-bottom .find-home-item > button { margin-top: 20px; }
}

/* Schede nella griglia */
a.mm-card { display: block; }
.footer-bottom { clear: both; }
.mm-card .property-img img { width: 100%; height: auto; aspect-ratio: 27 / 20; object-fit: cover; }
.mm-nophoto { display: flex; aspect-ratio: 27 / 20; align-items: center; justify-content: center; background: #222; color: #aaa; }
.mm-results-title { color: #fff; font-size: 16px; margin: 0 0 20px; }
.norisultati { margin-bottom: 30px; }

/* Home: slider, come nella versione precedente */
.mm-slider { position: relative; }
.mm-slides { position: relative; aspect-ratio: 1920 / 833; overflow: hidden; }
.mm-slides img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.mm-slides img.is-active { opacity: 1; }
.mm-slide-text { position: absolute; inset: 0; display: flex; align-items: center; }
.mm-slide-caption { margin-left: 5%; }
.mm-slide-caption h1 { color: #fff; font-size: 22px; text-transform: uppercase; text-shadow: 2px 2px 2px #000; margin: 0 0 14px; }
.mm-slide-caption h2 { color: #f9c322; font-size: 35px; text-shadow: 2px 2px 2px #000; margin: 0; }
.mm-slide-caption a { display: inline-block; height: 40px; line-height: 38px; margin-top: 30px; padding: 0 18px; background: #000; border: 1px solid transparent; color: #fff; }
.mm-slide-caption a:hover, .mm-slide-caption a:focus { background: #fff; border-color: #fff; color: #004395; }
.mm-slide-quick, .mm-slide-quick a { color: #fff; font-family: 'Gotham', sans-serif; font-size: 2.34vw; line-height: 1; text-transform: uppercase; }
.mm-slide-quick { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding-bottom: 2.2vw; text-align: center; z-index: 2; }
.mm-slider [data-slide] { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 69px; height: 120px; border: 0; background: rgba(0, 0, 0, .51); color: #00a6d4; font-size: 80px; line-height: 1; }
.mm-slider [data-slide]:hover { color: #f9c322; }
.mm-slider .mm-prev { left: 30px; }
.mm-slider .mm-next { right: 30px; }
@media (min-width: 1400px) {
    .mm-slide-quick, .mm-slide-quick a { font-size: 32px; }
    .mm-slide-quick { padding-bottom: 30px; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
    .mm-slide-caption { margin-left: 25px; }
    .mm-slide-caption h2 { font-size: 28px; }
    .mm-slider [data-slide] { width: 44px; height: 80px; font-size: 54px; }
    .mm-slider .mm-prev { left: 8px; }
    .mm-slider .mm-next { right: 8px; }
}
@media (min-width: 1200px) and (max-width: 1300px) {
    .mm-slider .mm-next { right: 12px; }
}
@media (max-width: 1024px) {
    .mm-slide-text { justify-content: center; text-align: center; }
    .mm-slide-caption { margin-left: 0; }
}

@media (min-width: 992px) {
    .footer .mm-map { height: 365px; margin: 0; }
}
.contact-page > .row { margin-left: 0; margin-right: 0; }

/* Galleria della scheda immobile */
.mm-gallery { position: relative; }
.mm-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; background: #111; }
.mm-track::-webkit-scrollbar { display: none; }
.mm-track > a { flex: 0 0 100%; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; }
.mm-track img { width: 100%; height: 100%; object-fit: contain; }
.mm-stage { position: relative; }
.mm-stage [data-step] { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 56px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 30px; }
.mm-stage [data-step="-1"] { left: 0; }
.mm-stage [data-step="1"] { right: 0; }
.mm-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .65); color: #fff; padding: 2px 10px; font-size: 13px; }
.mm-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; }
.mm-thumbs button { flex: 0 0 88px; padding: 0; border: 2px solid transparent; background: none; }
.mm-thumbs button[aria-current="true"] { border-color: #f9c322; }
.mm-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mm-details { color: #fff; }
.vetrina h4 { color: #ddd; }
.mm-print { background: none; border: 0; padding: 10px 0; color: #f9c322; }

/* Moduli di contatto */
.mm-contact .mm-trap { position: absolute; left: -9999px; }
.mm-privacy { font-size: 12px; color: #bbb; }
.mm-privacy a { text-decoration: underline; }

/* Intestazione su tablet e smartphone */
.mm-menu ul { margin: 0; padding: 0; list-style: none; }
.mm-menu a { display: block; padding: 14px 20px; color: #fff; border-top: 1px solid #333; }
.mm-menu a.active { color: #00a6d4; }

@media (max-width: 991px) {
    .header .mm-bar { display: flex; align-items: center; justify-content: space-between; }
    .header .logo { padding: 8px 0; margin: 0; }
    .header .logo > a { display: block; height: auto; line-height: 0; padding: 0; margin: 0; }
    .header .logo img { height: 52px; width: auto; }
    .mm-actions { display: flex; align-items: center; gap: 14px; }
    .mm-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: #00a6d4; color: #fff; border-radius: 3px; font-weight: 600; }
    .mm-call:hover, .mm-call:focus { color: #fff; }
    .mm-burger { width: 44px; height: 44px; padding: 8px; background: none; border: 0; }
    .mm-burger span { display: block; height: 4px; margin: 4px 0; background: #fff; }

    body { overflow-x: hidden; }
    .contact-page .leave-message, .welcome-haven .leave-message { padding-left: 0; padding-right: 0; }
    .contact-page .contact-form-inner { padding: 0 5px; }
    .contact-page .row { margin-left: 0; margin-right: 0; }
    .contact-form-inner input, .contact-form-inner textarea { font-size: 16px; width: 100%; }
    .contact-form-inner button { min-height: 48px; width: 100%; }
    .ptb-50 { padding-top: 20px; padding-bottom: 20px; }
    .pt-70 { padding-top: 20px; }
    .breadcrumbs { min-height: 0; }
    .f-contact-details a, .single-contact-desc a { display: inline-block; padding: 6px 0; }
    /* Piè di pagina in colonna: il tema usa riquadri sovrapposti alti 365px */
    .footer .foot5, .footer .foot7 { position: static; float: none; height: auto; overflow: hidden; padding: 24px 20px; }
    .footer .newsletter > p { font-size: 13px; line-height: 1.5; }
    main:has(> .contact-page) ~ .footer .mm-map { display: none; } /* la mappa è già in cima alla pagina */
    .contact-page .contact-form-inner button { width: auto; }
    .scheda .titoloscheda { font-size: 22px; }
    .vetrina .mm-card { max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
    .mm-slide-caption h1 { font-size: 18px; line-height: 1.3; margin-bottom: 0; padding: 0 40px; }
    .mm-slide-caption h2, .mm-slide-quick { display: none; }
    .mm-slide-caption a { height: 35px; line-height: 33px; margin-top: 12px; }
    .mm-slider [data-slide] { width: 34px; height: 52px; font-size: 38px; }
    .mm-slider .mm-prev { left: 8px; }
    .mm-slider .mm-next { right: 8px; }
}

@media print {
    .mm-thumbs, .mm-stage [data-step], .mm-count { display: none !important; }
    .mm-track { display: block; overflow: visible; }
    .mm-track > a { aspect-ratio: auto; margin-bottom: 8px; }
    .mm-details { color: #000; }
}
