
/* =========================================================
   BARRA RICERCA STILE AIRBNB
   Un'unica pill orizzontale con 5 segmenti + bottone tondo.
   Struttura HTML invariata: bs-row-1/2/3 con label + campo.
   ========================================================= */
.business-search-form.bs-airbnb {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 28px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e6e0db;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
}
/* Ogni bs-row diventa un gruppo di segmenti affiancati, senza box propri */
.business-search-form.bs-airbnb .bs-row {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  gap: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.business-search-form.bs-airbnb .bs-row-3 { flex: 1.4 1 auto; }

/* Segmento singolo: padding, pill al hover, separatore a sinistra */
.business-search-form.bs-airbnb .bs-seg {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .15s ease;
}
.business-search-form.bs-airbnb .bs-seg:hover { background: #f7f3ef; }
/* Separatore verticale tra segmenti */
.business-search-form.bs-airbnb .bs-seg::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px; height: 24px;
  background: #e6e0db;
}
.business-search-form.bs-airbnb .bs-row:first-child .bs-seg:first-child::before,
.business-search-form.bs-airbnb .bs-seg:first-child::before { content: none; }

/* Ogni label+campo è un "segmento" cliccabile */
.business-search-form.bs-airbnb label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #b8140d;
  margin: 0 0 2px;
  padding: 0;
  cursor: pointer;
}
/* I campi: niente bordo, look "testo", il segmento è la pill */
.business-search-form.bs-airbnb input[type="text"],
.business-search-form.bs-airbnb select {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  font-size: 14px;
  color: #333;
  box-shadow: none !important;
  border-radius: 0 !important;
  cursor: pointer;
}
.business-search-form.bs-airbnb input[type="text"]:focus,
.business-search-form.bs-airbnb select:focus {
  outline: none;
}

/* Bottone Cerca tondo rosso in fondo alla barra */
.business-search-form.bs-airbnb .button-cerca {
  flex: 0 0 auto;
  align-self: center;
  width: 52px; height: 52px;
  min-width: 52px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d50101;
  color: #fff;
  font-size: 0;                 /* nasconde il testo "Cerca" */
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(213,1,1,.28);
  transition: background .15s ease, transform .15s ease;
}
.business-search-form.bs-airbnb .button-cerca::before {
  content: "";                 /* lente SVG inline (no dipendenza Font Awesome) */
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.business-search-form.bs-airbnb .button-cerca:hover {
  background: #b8140d;
  transform: scale(1.05);
}
/* Reset come testo accanto */
.business-search-form.bs-airbnb .button-reset {
  flex: 0 0 auto;
  align-self: center;
  margin-left: 14px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #8a8078;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.business-search-form.bs-airbnb .button-reset:hover {
  background: #f3efe9;
  color: #d50101;
}
/* TomSelect dentro la barra: trasparente, senza bordo */
.business-search-form.bs-airbnb .ts-wrapper,
.business-search-form.bs-airbnb .ts-control {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* --------------------------------------------------------------
   RETE DI SICUREZZA: neutralizza il vecchio sistema di ricerca a
   modale (snippet Elementor Custom Code #114613 "script x form
   business - desk/mobile modale"). Quello snippet creava un FAB
   .bs-search-fab ("\1F50E Cerca") + una modale .bs-search-modal che
   duplicavano il nostro toggle .bs-airbnb-toggle. Lo snippet va
   disattivato da Elementor > Custom Code, ma nel dubbio lo nascondiamo
   qui via CSS cosi il campo fantasma non compare mai.
   -------------------------------------------------------------- */
.bs-search-fab,
.bs-search-modal { display: none !important; }

/* Bottone "apri ricerca" mobile: nascosto su desktop */
.bs-airbnb-toggle { display: none; }

/* === MOBILE: barra compatta che si espande === */
@media (max-width: 860px) {
  /* Pulsante compatto che apre la ricerca */
  .bs-airbnb-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto 20px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #e6e0db;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    font-size: 15px;
    font-weight: 600;
    color: #5a4f48 !important;   /* Elementor forza color:#fff sui bottoni del container: sovrascriviamo */
    cursor: pointer;
  }
  /* Stati interattivi: il bottone resta SEMPRE bianco. Elementor applica
     il suo colore d'accento (rosa/magenta) su :hover/:focus/:active e il
     :focus resta appiccicato dopo il clic: lo neutralizziamo. */
  .bs-airbnb-toggle:hover,
  .bs-airbnb-toggle:focus,
  .bs-airbnb-toggle:focus-visible,
  .bs-airbnb-toggle:active {
    background: #fff !important;
    background-color: #fff !important;
    color: #5a4f48 !important;
    border-color: #e6e0db !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.08) !important;
    outline: none !important;
  }
  .bs-airbnb-toggle::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    background-color: #d50101;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* La barra parte chiusa su mobile */
  .business-search-form.bs-airbnb {
    display: none;
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
    max-width: 420px;
  }
  .business-search-form.bs-airbnb.bs-open { display: flex; }
  /* Il pannello aperto resta bianco anche in focus (niente accento Elementor). */
  .business-search-form.bs-airbnb,
  .business-search-form.bs-airbnb:focus-within {
    background: #fff !important;
    border: 1px solid #e6e0db !important;
  }
  .business-search-form.bs-airbnb .bs-row { flex-direction: column; width: 100%; }
  .business-search-form.bs-airbnb .bs-seg {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
  }
  .business-search-form.bs-airbnb .bs-seg::before {
    /* separatore orizzontale tra campi impilati */
    left: 16px; right: 16px; top: 0;
    width: auto; height: 1px;
    transform: none;
  }
  .business-search-form.bs-airbnb .bs-seg:first-child::before { content: none; }
  .business-search-form.bs-airbnb .button-cerca {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    margin: 8px 0 0;
    font-size: 15px;            /* mostra il testo "Cerca" su mobile */
  }
  .business-search-form.bs-airbnb .button-cerca::before {
    margin-right: 8px;
    font-size: 15px;
  }
  /* Reset su mobile: centrato e ben staccato sotto il bottone Cerca */
  .business-search-form.bs-airbnb .button-reset {
    display: block;
    width: auto;
    margin: 16px auto 4px;
    padding: 8px 18px;
    text-align: center;
    font-size: 14px;
  }
}
/* Wrapper segmento: padding + separatore verticale */
.business-search-form.bs-airbnb label,
.business-search-form.bs-airbnb input[type="text"],
.business-search-form.bs-airbnb select,
.business-search-form.bs-airbnb .ts-wrapper {
  position: relative;
}

.business-pills,
.business-services-pills{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}


.business-subcategory.business-pills{
    margin-top:4px;
}


.business-pill,
.business-service-pill{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    max-width:100%;
    padding:2px 12px;
    border:1px solid #e0d6cf;
    border-radius:999px;
    background:#faf6f2;
    color:#5a4f48;
    font-size:13.5px;
    line-height:1.3;
    white-space:normal;
    word-break:break-word;
    box-sizing:border-box;
}


.business-services-block{
    margin-top:10px;
}


.business-services-block strong{
    display:block;
    margin-bottom:8px;
}









/* Stile base mobile (default) */
.business-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
	margin-top: 30px;
}


.business-item {
    display: flex;
    flex-direction: column; /* mobile: logo sopra info */
    gap: 10px;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}


.business-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}


.business-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


.business-info h2 {
	margin-top: 10px!important;
}





/* Categoria + servizi + citta' + paese: tutte pill che vanno a capo insieme */
.business-meta-row {
    display: flex;
    flex-wrap: wrap;       /* vanno a capo se lo spazio e' stretto */
    align-items: center;
    gap: 8px;              /* spazio uniforme tra tutte le pill */
    max-width: 100%;
}

/* Il gruppo pill servizi non deve creare un blocco rigido: si fonde nel wrap */
.business-meta-row .business-subcategory.business-pills {
    display: contents;     /* le pill figlie partecipano direttamente al wrap del meta-row */
}


.business-meta-row div {
    font-weight: normal;  /* valori non in bold, solo label in bold */
}


.business-info div strong {
    font-weight: bold;
}


.business-info a {
    text-decoration: none;
	font-weight: 600 !important;
    color: #d50101;
    transition: color .15s ease;
}

.business-info a:hover {
	text-decoration: underline;
}


/* === PILL UNIFICATE: categoria, citta', paese hanno lo stesso look delle pill servizi === */
.business-city,
.business-category,
.business-paese {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 2px 12px;
  border: 1px solid #e0d6cf;
  border-radius: 999px;
  background: #faf6f2;
  color: #5a4f48;
  font-size: 13.5px;
  line-height: 1.3;
  white-space: normal;        /* va a capo dentro la pill se lunga */
  word-break: break-word;
  box-sizing: border-box;
}

/* La categoria/tipo (Pizzeria o Azienda) = BADGE PIENO ROSSO, ben distinto
   dalle pill servizi/citta' (beige con bordo). Cosi' si capisce subito il tipo. */
.business-category {
  font-weight: 700;
  border: 0;
  background: #d50101;
  color: #fff;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(213,1,1,.22);
}


.business-info hr {
	border-top: 1px solid #d1d1d1!important;
}

    .business-item img {
        max-width: 150px;
        margin-bottom: 0;
    }


/* [RIMOSSO] Vecchio stile form a 3 righe (.business-search-form.bs-form, .ts-*,
   bs-search-area): sostituito dalla barra Airbnb in cima al file. Conflitti
   risolti. INIZIO-BLOCCO-VECCHIO-FORM */

/* ==========================================
   PAGINAZIONE: spostata in pagination.css
   (bollini tondi, .current rosso). Caricata su
   Notizie/Ricette/Annunci/Business via enqueue.php
========================================= */


/* =========================================================
   FIX LARGHEZZA BLOCCO BUSINESS SEARCH IN ELEMENTOR
   ========================================================= */

.div_lista_business.bs-search-area {
  width: 100% !important;
  max-width: none !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}


.div_lista_business.bs-search-area > .elementor-widget,
.div_lista_business.bs-search-area > .elementor-widget-html,
.div_lista_business.bs-search-area > .elementor-element,
.div_lista_business.bs-search-area .elementor-widget-container {
  width: 100% !important;
  max-width: none !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
  box-sizing: border-box;
}


.div_lista_business.bs-search-area .business-search-form.bs-form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  box-sizing: border-box;
}





/* .elementor-pagination margin: ora in pagination.css */





/*******   END MENU FISSO  *******/


/* .business-pagination: stili (bollini tondi) ora in pagination.css */


  /* [RIMOSSO] regola che nascondeva il form: ora la barra Airbnb deve restare visibile */


/* =========================
   BUSINESS LIST + CARDS
   ========================= */

.business-list{
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 36px;
}


.business-item{
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 28px;
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  box-sizing: border-box;
}


.business-item img{
  width: 132px;
  height: 132px;
  object-fit: contain;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 20px;
  padding: 14px;
}


.business-info{
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.business-info h2{
  margin: 0 0 4px 0 !important;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #222;
}


.business-meta-row{
  margin-bottom: 8px;
}
/* Le regole pill unificate sono definite sopra; qui solo il margine.
   (Blocco duplicato dall'estrazione, neutralizzato per evitare incoerenze.) */


.business-info > div{
  color: #333;
  font-size: 15px;
  line-height: 1.65;
}


.business-info > div strong{
  color: #111;
  font-weight: 700;
}


.business-info a{
  color: #d50101;
  text-decoration: none;
  font-weight: 600 !important;
  transition: color .15s ease;
}


.business-info a:hover{
  text-decoration: underline;
}


.business-info hr{
  margin: 10px 0 8px;
  border: 0;
  border-top: 1px solid #e3e3e3 !important;
}


  .business-item img{
    width: 108px;
    height: 108px;
  }


  .business-info h2{
    font-size: 20px;
  }
@media (max-width: 767px){
    .business-pill,
    .business-service-pill{
        font-size:13px;
        padding:0 10px;
        min-height:30px;
    }
}


@media (min-width: 768px) {
    .business-item {
        flex-direction: row;
        gap: 20px;
    }
    .business-item img {
        max-width: 150px;
        margin-bottom: 0;
    }
}


/* [RIMOSSO] vecchia media query che forzava le bs-row in colonna: in conflitto
   con la barra Airbnb. Il responsive ora e' gestito dal blocco Airbnb (<=860px). */


/* Media query paginazione responsive: ora in pagination.css */


@media only screen and (min-width:576px) {

	
	/* campi same row */
 .business-search-form .bs-row {
    flex-direction: row !important;
	}
	
	
	
/* NOTA: il layout .title-search-grid (titolo sx + cerca dx) e' definito
   in modo completo in search-results.css. */

.elementor-post {

}
	
.elementor-posts .elementor-post {
flex-direction: row!important;	
align-items: flex-start;		
}
	
	
}


@media (max-width: 767px){
  .business-item{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px;
  }

  .business-item img{
    width: 108px;
    height: 108px;
  }

  .business-info h2{
    font-size: 20px;
  }
}

/* === SICUREZZA OVERFLOW MOBILE: niente esce mai dalla larghezza del device === */
@media (max-width: 600px) {
  .business-item,
  .business-info,
  .business-meta-row {
    max-width: 100%;
    min-width: 0;          /* permette ai figli flex di restringersi */
  }
  .business-info {
    overflow-wrap: anywhere;
  }
  .business-meta-row {
    gap: 6px;
  }
  .business-pill,
  .business-service-pill,
  .business-city,
  .business-category,
  .business-paese {
    font-size: 12.5px;
    padding: 2px 10px;
    min-height: 28px;
  }
}


