﻿

/* inzio nuova home*/

.lastminute13 {
    width: 100%;
    background:#fff;
    padding: 60px 0;
    margin-bottom: 60px;
    text-align: center;
    font-family: Lato;
    font-size: 17px;
    font-weight: 300;
    overflow: hidden;
}


/* ===== HERO SECTION ===== */
.hero-slide {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    z-index: 1;
    background: transparent !important; /* trasparente */
}

/* Immagine di sfondo */
.hero-slide .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1; /* sotto overlay */
    
}

/* Overlay sopra immagine */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10; /* sopra immagine */
    padding: 20px;
    box-sizing: border-box;
    background: transparent !important; /* trasparente */
}

/* Logo sticky trasparente */
.hero-logo {
    position: sticky;
    top: 80px;  /* distanza header */
    z-index: 11;
    background: transparent !important;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 20px;
}

.hero-logo img {
    max-width: 200px;
    height: auto;
}

/* Motore sopra slide */
.hero-motore {
    position: relative;
    z-index: 11;
    width: 100%;
    max-width: 900px;
}

.hero-motore .fullwidth.campi-motoreRicerca {
    background: rgba(255,255,255,0.9);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    width: 100%;
    box-sizing: border-box;
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
    .hero-slide { max-height: 500px; }
    .hero-logo img { max-width: 220px; }
    .hero-motore .fullwidth.campi-motoreRicerca { padding: 20px; }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    /* Nasconde immagine di sfondo */
    .hero-slide .hero-bg { display: none; }

    /* Hero-slide si adatta al contenuto */
    .hero-slide { 
        max-height: none; 
        height: auto; 
        overflow: visible; 
        padding: 0px 0;
    }

    /* Overlay adattivo */
    .hero-overlay { 
        position: relative; 
        width: 100%; 
        height: auto; 
        padding: 0; 
        display: block;
        background: transparent !important; /* trasparente */
    }

    /* Logo trasparente e ridotto */
    .hero-logo { 
        top: 0; 
        background: transparent !important; 
        margin-bottom: 15px; 
        position: relative;
    }
    .hero-logo img { max-width: 160px; height: auto; }

    /* Motore completamente visibile */
    .hero-motore { 
        position: relative; 
        z-index: 20; 
        width: 100%; 
        max-width: 100%;
    }

    .hero-motore .fullwidth.campi-motoreRicerca {
        width: 100%;
        padding: 20px; 
        font-size: 16px;
        box-sizing: border-box;
    }

    .hero-motore input,
    .hero-motore select {
        font-size: 16px;
        padding: 12px;
        width: 100%;
        box-sizing: border-box;
    }
}

/* ===== SMARTPHONE PICCOLO ===== */
@media (max-width: 480px) {
    .hero-logo img { max-width: 140px; }
    .hero-motore .fullwidth.campi-motoreRicerca {
        padding: 15px;
        font-size: 14px;
        border-radius: 8px;
    }

    .hero-motore input,
    .hero-motore select { font-size: 14px; padding: 8px; }
}

/* Tendine e dropdown sempre sopra tutto */
.select2-container,
.chosen-container { z-index: 99999 !important; }

/* Nasconde logo su tablet e mobile */
@media (max-width: 1024px) {
    .hero-logo { 
        display: none !important; 
    }
}


/* inizio prestigio */
.hero-prestigio-content h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-prestigio-content p.hero-prestigio-subtitle {
    font-size: 22px;
    margin-bottom: 25px;
}

.hero-prestigio-content .btn-hero {
    display: inline-block;
    background-color: #d4352c;
    color: #fff;
    padding: 14px 35px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.hero-prestigio-content .btn-hero:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-prestigio-content h1 { font-size: 40px; }
    .hero-prestigio-content p.hero-prestigio-subtitle { font-size: 18px; }
    .hero-prestigio-content .btn-hero { padding: 12px 28px; }
}

@media (max-width: 480px) {
    .hero-prestigio-content h1 { font-size: 28px; }
    .hero-prestigio-content p.hero-prestigio-subtitle { font-size: 16px; }
    .hero-prestigio-content .btn-hero { padding: 10px 22px; font-size: 15px; }
}

.hero-prestigio {
  position: relative;
  width: 100%;
  aspect-ratio: 16/5; /* altezza normale desktop/tablet */
  overflow: hidden;
}

.hero-prestigio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.hero-prestigio:hover img {
  transform: scale(1.05);
}

.hero-prestigio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
              to top, 
              rgba(0,0,0,0.45),
              rgba(0,0,0,0.15)
            ), 
            rgba(255,255,255,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
}

.hero-prestigio-content {
  color: #fff;
  max-width: 750px;
  animation: fadeInUp 1s ease forwards;
}

.hero-prestigio-content h1 {
  font-size: 2.6em;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.hero-prestigio-subtitle {
  font-size: 1.2em;
  font-weight: 300;
  margin-bottom: 25px;
  line-height: 1.5;
  color: #f8f8f8;
}

.btn-hero {
  display: inline-block;
  padding: 12px 35px;
  /*background: linear-gradient(135deg, #f9d976, #f39c12);*/
  background: #d4352c;
  color: #000;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  font-size: 0.95em;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.btn-hero:hover {
  background: linear-gradient(135deg, #ffcf5c, #e67e22);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Animazione ingresso */
@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(40px);}
  to {opacity: 1; transform: translateY(0);}
}

/* Tablet */
@media (max-width: 992px) {
  .hero-prestigio {
    aspect-ratio: 16/5; /* stessa altezza desktop */
  }
  .hero-prestigio-content h1 {
    font-size: 2.2em;
  }
  .hero-prestigio-subtitle {
    font-size: 1.05em;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero-prestigio {
    aspect-ratio: 16/5; /* mantiene proporzione */
    min-height: 350px;  /* forza altezza maggiore sui telefoni */
  }
  .hero-prestigio-content h1 {
    font-size: 1.7em;
  }
  .hero-prestigio-subtitle {
    font-size: 0.95em;
    margin-bottom: 18px;
  }
  .btn-hero {
    padding: 9px 22px;
    font-size: 0.85em;
  }
}


/* css avvisi mail nuovi immobili*/

/* ============================================ */
/* BLOCK NEWSLETTER – ALTEZZA RIDOTTA E GRADIENT */
/* ============================================ */

/* Base desktop */
.newsletter-block-modern-unik {
  position: relative;
  padding: 25px 0 !important;   /* riduce altezza */
  min-height: auto !important;
  overflow: hidden;
  background: linear-gradient(135deg, #00aaff 0%, #0055aa 100%);
}

.overlay-unik {
  display: none; /* overlay rimosso per lasciare il gradient visibile */
}

.newsletter-content-unik {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff; /* testo bianco */
}

.icon-wrap-unik img {
  width: 70px; /* icona desktop */
  margin-bottom: 15px;
}

.newsletter-title-unik {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}

.newsletter-subtitle-unik {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
}

.newsletter-btn-unik {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  /*background-color: #ff9900; /* bottone arancione originale */
  background: transparent;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
   border: 2px solid #b8bcbf;
}

.newsletter-btn-unik:hover {
  background-color: #e68a00; /* hover bottone */
  transform: translateY(-2px);
}

/* -------------------------------------------- */
/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .newsletter-block-modern-unik { padding: 20px 0 !important; }
  .icon-wrap-unik img { width: 60px; }
  .newsletter-title-unik { font-size: 28px; }
  .newsletter-subtitle-unik { font-size: 16px; }
  .newsletter-btn-unik { padding: 10px 25px; font-size: 15px; }
}

/* Mobile grande (max-width: 768px) */
@media (max-width: 768px) {
  .newsletter-block-modern-unik { padding: 15px 0 !important; }
  .icon-wrap-unik img { width: 50px; }
  .newsletter-title-unik { font-size: 24px; }
  .newsletter-subtitle-unik { font-size: 14px; }
  .newsletter-btn-unik { padding: 8px 20px; font-size: 14px; }
}

/* Mobile piccolo (max-width: 480px) */
@media (max-width: 480px) {
  .newsletter-block-modern-unik { padding: 12px 0 !important; }
  .icon-wrap-unik img { width: 40px; }
  .newsletter-title-unik { font-size: 20px; }
  .newsletter-subtitle-unik { font-size: 13px; }
  .newsletter-btn-unik { padding: 6px 16px; font-size: 13px; }
}


/*css investimeno */
/* Sezione */
.investment-section {
    padding: 0px 20px;
    background: #f9f9f9;
}

/* Titolo e intro */
.investment-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
     margin-top: 0px;
    color: #222;
}

.investment-intro {
    text-align: center;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Griglia */
.investment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.investment-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: #fff;
    display: flex;
    flex-direction: column;
}

/* Immagine */
.investment-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Contenuto */
.investment-content {
    padding: 20px;
    text-align: center;
    background: #fff;
}

.investment-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 10px;
}

.investment-content p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

/* Bottone */
.btn-investment {
    display: inline-block;
    padding: 12px 25px;
    background-color: #007bff;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-investment:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 768px) {
    .investment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .investment-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .investment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .investment-title {
        font-size: 28px;
    }

    /* Su mobile, togliamo gli angoli arrotondati dalle card e dalle immagini */
    .investment-card {
        border-radius: 0 !important; /* Card senza angoli arrotondati */
    }

    .investment-card .investment-img img {
        border-radius: 0 !important; /* Immagini senza angoli arrotondati */
    }
}






/* PERIZIE */
.estimate-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.estimate-title {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.estimate-intro {
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.estimate-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.estimate-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    text-align: center;
    overflow: hidden;
}

.estimate-img img {
    width: 80px;
    margin: 20px auto 15px;
}

.estimate-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.estimate-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.btn-estimate {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007acc;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}



/* nuovo esclusiva*/

.full-carousel-section {
    width: 100%;
    background: #f9f9f9;
    padding: 40px 0 30px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 0;
    overflow: hidden; /* evita scroll orizzontali indesiderati */
}

.carousel-wrapper {
    width: 100%;     
    max-width: 100%; 
    margin: 0 auto;
    padding: 0 40px; /* margine laterale, puoi ridurre o aumentare */
    position: relative;
    box-sizing: border-box;
    
}

.carousel-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    margin-bottom: 30px;
    scroll-snap-type: x mandatory;
    gap: 20px;
    width: 100%;
   
}

.carousel-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.carousel-list li {
    position: relative;
    flex: 0 0 250px;
    margin-right: 20px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: grab;
    scroll-snap-align: start;
}

.carousel-list li:active { cursor: grabbing; }

.carousel-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.carousel-list li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.carousel-list li .info {
    padding: 12px;
    text-align: center;
}

.carousel-list li .info h4 { 
    margin: 0; 
    font-size: 16px; 
    font-weight: 700; 
    color: #333; 
}
.carousel-list li .info p { 
    margin: 5px 0 0; 
    font-size: 14px; 
    color: #666; 
}

/* Frecce desktop */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;  /* più alto per stare sopra tutto */
    font-size: 20px;
    user-select: none;
}
.arrow-left { left: 10px; }
.arrow-right { right: 10px; }

/* Tablet */
@media (max-width: 1024px) {
    .carousel-list li { flex: 0 0 220px; margin-right:16px; }
    .carousel-list li img { height:180px; }
}

/* Mobile grande */
@media (max-width: 768px) {
    .carousel-list li { flex: 0 0 180px; margin-right:12px; }
    .carousel-list li img { height:150px; }
    .carousel-list li .info h4 { font-size:14px; }
    .carousel-list li .info p { font-size:13px; }
    .arrow { display: none; } /* frecce nascoste su mobile */
}

/* Mobile piccolo */
@media (max-width: 480px) {
    .carousel-wrapper { padding: 0; }
    .carousel-container {
        padding: 0;
        gap: 12px;
        scroll-snap-type: x mandatory;
        margin-bottom: 40px;
    }
    .carousel-list { padding-left: 10px; }
    .carousel-list li {
        flex: 0 0 240px;
        margin-right: 12px;
        box-sizing: border-box;
        scroll-snap-align: start;
        margin-bottom: 12px;
    }
    .carousel-list li img { height: 180px; }
    .carousel-list li .info h4 { font-size: 16px; }
    .carousel-list li .info p { font-size: 14px; }
}

/* Badge */
.photo-container {
    position: relative;
    display: inline-block;
}

.slider-image {
    display: block;
    width: 100%;
    height: auto;
}

.diagonal-ribbon {
    width: 80px;
    height: 80px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.diagonal-ribbon span {
    position: absolute;
    display: block;
    width: 120px;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    transform: rotate(-45deg);
    top: 10px;
    left: -25px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border-radius: 2px;
}

.diagonal-ribbon.ribbon1 span { background-color:#a4a9ae; }
.diagonal-ribbon.ribbon2 span { background-color: #0055aa ; }

/* PERIZIE */
.estimate-section {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.estimate-title {
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
}

.estimate-intro {
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
}

.estimate-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.estimate-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    flex: 1;
    min-width: 250px;
    text-align: center;
    overflow: hidden;
}

.estimate-img img {
    width: 80px;
    margin: 20px auto 15px;
}

.estimate-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.estimate-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.btn-estimate {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007acc;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}





/* ================== FILTRI SELEZIONATI ================== */
#filtriSelezionati .filtri-selezionati-container {
    margin: 10px auto;
    padding: 12px;
    max-width: 1000px;
    background: #f9fbff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#filtriSelezionati .filtri-intro {
    font-size: 15px;
    font-weight: 600;
    color: #0d6efd;
}

#filtriSelezionati .filtri-selezionati-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

#filtriSelezionati .filtro-tag {
    display: inline-flex;
    align-items: center;
    background: #e8f0ff;
    border: 1px solid #bcd0ff;
    color: #1a3d8f;
    border-radius: 18px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: default;
    transition: 0.2s;
}

#filtriSelezionati .filtro-tag:hover {
    background: #d6e4ff;
    border-color: #99bbff;
}

#filtriSelezionati .rimuovi-filtro {
    margin-left: 6px;
    color: #dc3545;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
}

#filtriSelezionati .filtri-pulisci {
    display: flex;
    justify-content: flex-end;
}

#filtriSelezionati .btn-pulisci {
    display: inline-block;
    background: #0d6efd;
    color: #fff !important;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: 0.2s;
}

#filtriSelezionati .btn-pulisci:hover {
    background: #084bb8;
}

/* ================== MOBILE ================== */
@media (max-width: 768px) {
    #filtriSelezionati .filtri-selezionati-container {
        padding: 8px;
        gap: 8px;
    }

    #filtriSelezionati .filtri-selezionati-row {
        justify-content: flex-start;
        gap: 4px 6px;
    }

    #filtriSelezionati .btn-pulisci {
        justify-content: flex-end;
    }

    #filtriSelezionati .btn-pulisci span {
        font-size: 12px;
    }

    #filtriSelezionati .filtro-tag {
        font-size: 11px;
        padding: 2px 8px;
    }
}

/* ================== CARD IMMOBILE ================== */
.equal-row {
    display: flex;
    align-items: stretch;
}

/* Colonna immagine segue altezza descrizione */
.img-item-immobile {
    display: flex;
    flex-direction: column;
    flex: 0 0 35%;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Immagine responsive FULL height */
.listitem2-new {
    flex: 1;
    display: flex;
}
.listitem2-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: default;
}

/* Rimuovo pollice hover */
.listitem2-new:hover img { transform: none; }

/* Colonna testo comanda altezza */
.col-md-8.offset-0 {
    display: flex;
    flex-direction: column;
    flex: 1;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 10px 10px 0;
    background-color: #f5f5f5;
    padding: 0px;
}

/* Testo + bottoni sempre in fondo */
.itemlabel3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Margine sotto bottoni */
.itemlabel3 .action-buttons,
.itemlabel3 > div[style*="display: flex"] {
    margin-bottom: 18px;
}

/* Miniature */
.thumbnail-gallery {
    display: flex;
    gap: 5px;       /* spazio tra le miniature */
    flex-wrap: nowrap;
    margin-top: 5px;
}

.thumb-container {
    flex: 1 1 0;
    height: 70px;
    overflow: hidden;
    padding: 0;       /* niente padding interno */
    margin: 0;        /* se vuoi eliminare anche margini */
    border: none;     /* rimuove bordi se presenti */
}

.thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}


/* Prezzo/Codice */
.price-code-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Titolo grande */
.result-titoloImmobile {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ================== ICON BOX (3x2 desktop / 2x3 mobile) ================== */
.grey.result-superficie-prezzo .prezzo-group { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 10px;
    width: 100%;
       padding: 10px 0;  /* spazio sopra e sotto tutto il gruppo */
       color: #000; /* testo nero */
}
.grey.result-superficie-prezzo .prezzo-group .cell { 
    display: flex; 
    align-items: center; 
    gap: 6px;
    min-height: 38px;
}
.grey.result-superficie-prezzo .prezzo-group .cell i { 
    font-size: 2.4rem;
}

/* Mobile */
@media (max-width: 480px) {
    .grey.result-superficie-prezzo .prezzo-group { 
        grid-template-columns: repeat(2,1fr);
    }
}

/* ================== RIBBON ============== */
.ribbon-left {
    position: absolute;
    top: 10px;
    left: -35px;
    width: 150px;
    text-align: center;
    transform: rotate(-45deg);
    background: #0055aa;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 0;
    z-index: 10;
    text-transform: uppercase;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .equal-row { flex-direction: column; }
    .img-item-immobile {
        flex: 1 1 100%;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
    }
    .col-md-8.offset-0 {
        border-radius: 0 0 12px 12px;
        border-top: none;
        padding: 10px;
    }
}

/*motore flottante*/
/* ================== MOTORE FLOTTANTE MOBILE ================== */
@media(max-width:767px){
    #motoreToggleButton {
        display:flex;
        align-items:center;
        justify-content:center;
        position:fixed;
        bottom:20px;
        right:20px;
        width:60px;
        height:60px;
        background:#ff6600;
        color:#fff;
        border-radius:50%;
        cursor:pointer;
        z-index:9999;
        box-shadow:0 4px 12px rgba(0,0,0,0.25);
        transition:transform 0.3s ease, box-shadow 0.3s ease;
    }
    #motoreToggleButton:hover {
        transform:scale(1.1);
        box-shadow:0 6px 16px rgba(0,0,0,0.35);
    }
    #motoreDesktopWrapper {
        position:fixed;
        top:50%;
        left:50%;
        transform:translate(-50%,-50%) scale(0.9);
        opacity:0;
        width:90%;
        max-width:500px;
        background:#fff;
        padding:20px;
        border-radius:12px;
        box-shadow:0 8px 25px rgba(0,0,0,0.4);
        z-index:10000;
        display:block;
        max-height:90vh;
        overflow-y:auto;
        pointer-events:none;
        transition:all 0.3s ease;
    }
    #motoreDesktopWrapper.active {
        opacity:1;
        transform:translate(-50%,-50%) scale(1);
        pointer-events:auto;
    }
    #motoreDesktopWrapper .motore-orizzontale .main-filters > .filter-item {
        display:block !important;
        width:100% !important;
        margin-bottom:10px;
    }
    #motoreDesktopWrapper .motore-orizzontale .altri-filtri {
        display:none !important;
    }
    @media (prefers-color-scheme: dark) {
        #motoreDesktopWrapper { background:#1e1e1e; color:#f1f1f1; }
        #motoreToggleButton { background:#ff8800; }
    }
}

/* MOBILE: pulsante flottante visibile */
@media (max-width: 767px) {
    #toggleMotoreBtn,
    #motoreToggleButton {
        display: flex !important;
    }
}

/* DESKTOP: pulsante flottante nascosto */
@media (min-width: 768px) {
    #toggleMotoreBtn,
    #motoreToggleButton {
        display: none !important;
    }
}
/*bottoni allineati mobile*/
/* Contenitore pulsanti */
.property-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

/* Mobile: pulsanti affiancati nella loro posizione */
@media (max-width: 768px) {
    .property-actions {
        justify-content: center; 
        gap: 6px;
        flex-wrap: nowrap; /* importante: non vanno a capo */
        width: 100%;
    }

    .property-actions a,
    .property-actions button,
    .property-actions .bookbtn,
    .property-actions .bookbtnorange,
    .property-actions .addRemoveMarkupsButton {
        flex: 1;
        min-width: 0; /* evita rotture */
        text-align: center;
        margin-left: 0 !important; 
        white-space: nowrap; /* testo non va a capo */
        padding: 10px 6px;
    }
}
/*ordinamento*/

/* ================== SORT BAR ================== */
/* Contenitore sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* permette di andare a capo se necessario */
    width: 100%;
}

/* Testo "Ordina" */
.sort-label b {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

/* Contenitore select */
.sort-select {
    flex: 0 0 160px;   /* LARGHEZZA FISSA E COMPATTA DESKTOP */
    min-width: 130px;  /* Mai troppo piccoli */
}

/* Select */
.mypicker-select {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

/* ================== MOBILE ================== */
@media (max-width: 768px) {
    .sort-bar {
        gap: 6px;
        flex-wrap: wrap; /* permette di andare a capo */
    }

    .sort-select {
        flex: 1 1 auto; /* occupa lo spazio disponibile */
        min-width: 0;   /* evita overflow */
    }

    .mypicker-select {
        font-size: 12px;
        padding: 5px 6px;
    }

    .sort-label b {
        font-size: 12px;
    }
}

/*motore originale */
