/* =========================================================
   CARDS CONDIVISO — usato da appartamenti.php e scheda_camera.php
   ========================================================= */

/* === Toggle Zona === */
.toggle-header {
  background-color: #66BB6A;
  padding: 12px 16px;
  cursor: pointer;
  margin-top: 15px;
  border-radius: 6px;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  border: none;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.toggle-header:hover,
.toggle-header.active { background-color: #43A047; }
.open-button {
  background-color: #388E3C;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.open-button:hover { background-color: #2E7D32; }
.toggle-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }

/* === Riga camera (foto + info) === */
.riga_camera {
  display: flex;
  align-items: stretch;
  gap: 15px;
  margin: 2px 10px 10px 10px;
}
.box_foto {
  flex: 0 0 20%;
  max-width: 20%;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
  min-height: 220px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}
.box_foto img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.box_info { flex: 1; min-width: 0; padding: 4px 14px 12px 14px; }

/* === Header card (riga viola con indirizzo) === */
.card_header {
  display: block;
  background: #463b4c;
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 18px;
  border-radius: 6px 6px 0 0;
  transition: background 0.2s ease;
}
.card_header:hover { background: #5a4d62; }
.header_top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.header_address {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.header_pin { font-size: 18px; color: #ffb74d; flex-shrink: 0; }
.address_main {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  word-break: break-word;
}
.header_price {
  font-size: 22px;
  font-weight: 700;
  background: #ffb74d;
  color: #3d2c12;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.price_unit { font-size: 13px; font-weight: 500; opacity: 0.85; }
.header_meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.meta_tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.12);
  color: #f5f5f5;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.meta_tag i { font-size: 11px; opacity: 0.85; }
.meta_date  { background: rgba(255,183,77,0.2); color: #ffd699; }
.meta_type  { background: rgba(102,187,106,0.18); color: #b5e8b9; }

/* === Stat cards === */
.stats_row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.stat_item {
  flex: 1;
  min-width: 110px;
  background: #f5f7fa;
  border: 1px solid #e3e7ec;
  border-radius: 6px;
  padding: 2px 12px;
  display: flex;
  flex-direction: column;
}
.stat_label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  font-weight: 600;
}
.stat_value {
  font-size: 16px;
  color: #1f2937;
  font-weight: 600;
  margin-top: 2px;
}

/* === Spese / pill === */
.spese_block { margin-bottom: 10px; }
.spese_title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #43A047;
  margin-bottom: 6px;
}
.spese_title_no  { color: #b0382f; }
.spese_title_blu { color: #1f4f82; }
.spese_title_servizi { color: #2a73c2; }
.spese_list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 500;
  line-height: 1.4;
}
.pill i { font-size: 11px; }
.pill_si { background: #e6f4ea; color: #1e6b35; border: 1px solid #c5e3cf; }
.pill_no { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6c2; }

/* === Descrizione === */
.descrizione_box {
  background: #fafafa;
  border-left: 3px solid #66BB6A;
  padding: 10px 14px;
  margin: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
  border-radius: 0 4px 4px 0;
}

/* === Servizi === */
.servizi_row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.spese_block > .servizi_row { margin-top: 0; }
.servizio_chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef4fb;
  color: #1f4f82;
  border: 1px solid #d3e3f3;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}
.servizio_chip i { font-size: 14px; color: #2a73c2; }

/* === Bottoni lista === */
.azioni_row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.btn_grigio, .btn_blu {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}
.btn_grigio { background: #5a5a5a; color: #fff !important; }
.btn_grigio:hover { background: #3f3f3f; }
.btn_blu    { background: #007BFF; color: #fff !important; }
.btn_blu:hover { background: #0056b3; }

/* === Responsive lista === */
@media (max-width: 700px) {
  .riga_camera { flex-direction: column; gap: 6px; margin-top: 2px; }
  .box_foto    { flex: 0 0 auto; max-width: 100%; }
  .box_foto img{ height: 200px; }
  .box_info { padding: 2px 10px 6px 10px; }
    
  /* Grid 2 colonne SOLO nella lista (.box_info) */
  .box_info .stats_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  /* Padding ridotto per tutti i box stats su mobile */
  .box_info .stats_row .stat_item {
    padding: 3px 6px;
  }

  /* Camere, Bagni, Inquilini: label e valore in linea ("Camere: 5") */
.box_info .stats_row .stat_item:nth-child(1),
.box_info .stats_row .stat_item:nth-child(2),
.box_info .stats_row .stat_item:nth-child(3) {
  min-width: 0;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.box_info .stats_row .stat_item:nth-child(1) .stat_label::after,
.box_info .stats_row .stat_item:nth-child(2) .stat_label::after,
.box_info .stats_row .stat_item:nth-child(3) .stat_label::after {
  content: ":";
}
.box_info .stats_row .stat_item:nth-child(1) .stat_value,
.box_info .stats_row .stat_item:nth-child(2) .stat_value,
.box_info .stats_row .stat_item:nth-child(3) .stat_value {
  margin-top: 0;
}

  .box_info .stats_row .stat_item:nth-child(3) {
    grid-column: 1 / -1;
  }

  .azioni_row  { flex-direction: column; }
}
@media (max-width: 900px) {
  .toggle-header { font-size: 18px; padding: 10px 12px; flex-direction: column; align-items: stretch; }
  .open-button   { margin-top: 8px; width: 100%; font-size: 16px; text-align: center; display: block; }
  
  .card_header { padding: 12px 14px; }

  /* Prezzo a destra in fascia scura anche su mobile */
  .header_top {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
  }
  .address_main { font-size: 15px; }

  .header_price {
    font-size: 16px;
    padding: 5px 10px;
    align-self: auto;
    flex-shrink: 0;
  }
  .price_unit { font-size: 11px; }

  .meta_tag { font-size: 11px; padding: 3px 8px; }
} 
/* =========================================================
   SCHEDA CAMERA — stili specifici
   ========================================================= */

.card_header_scheda { border-radius: 6px; margin-bottom: 16px; }

/* === Bottoni navigazione === */
.nav_buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.nav_btn {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
  transition: background 0.2s ease;
}
.nav_btn i { margin-right: 6px; }
.nav_btn_back { background: #5a5a5a; color: #fff !important; }
.nav_btn_back:hover { background: #3f3f3f; }
.nav_btn_app  { background: #66BB6A; color: #fff !important; }
.nav_btn_app:hover  { background: #43A047; }

/* === Griglia 2 colonne (galleria + dati) === */
/* === Griglia 2 colonne (dati + galleria) === */
.scheda_grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;   /* dati (1fr) a sinistra, galleria (1.6fr) a destra */
  gap: 20px;
  margin-bottom: 24px;
}
.scheda_main, .scheda_side { min-width: 0; }

/* Inverti l'ordine visivo senza toccare l'HTML */
.scheda_side { order: 1; }   /* dati: prima colonna */
.scheda_main { order: 2; }   /* galleria: seconda colonna */

/* Su mobile (quando le colonne si impilano) la galleria torna in cima */
@media (max-width: 900px) {
  .scheda_grid { grid-template-columns: 1fr; }
  .scheda_main { order: 1; }
  .scheda_side { order: 2; }
}

/* Su mobile le spese incluse/non incluse salgono subito dopo la descrizione */
.spese_mobile_top { display: none; }
@media (max-width: 900px) {
  .spese_mobile_top { display: block; }
  .scheda_side .spese_aside { display: none; }
}
/* === Galleria === */
.scheda_gallery {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 18px;
}
/* === Galleria — header con bottoni ai lati e titolo al centro === */
.scheda_gallery .customNavigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.scheda_gallery .customNavigation .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #463b4c;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.scheda_gallery .customNavigation .btn:hover { background: #5a4d62; }
.scheda_gallery .customNavigation .btn.prev { justify-self: start; }
.scheda_gallery .customNavigation .btn.next { justify-self: end; }
.scheda_gallery .customNavigation .btn i { font-size: 14px; }

.scheda_gallery .customNavigation .galtit {
  font-weight: 700;
  color: #463b4c;
  font-size: 16px;
  text-align: center;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Mobile: nascondi le etichette testuali, lascia solo le frecce */
@media (max-width: 600px) {
  .scheda_gallery .customNavigation .nav_label { display: none; }
  .scheda_gallery .customNavigation .btn { padding: 8px 12px; }
  .scheda_gallery .customNavigation .galtit { font-size: 14px; }
}

/* === Descrizione scheda === */
.descrizione_scheda {
  margin-top: 0;
  padding: 16px 18px;
}
.descrizione_scheda h3 {
  margin: 0 0 8px 0;
  color: #1f6b35;
  font-size: 18px;
}
.descrizione_scheda p { margin: 0; line-height: 1.6; }

/* === Video === */
.video_box {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 14px;
  margin-top: 18px;
}
.video_box h3 { margin: 0 0 10px 0; color: #463b4c; font-size: 18px; }

/* === Side: stack verticale === */
.scheda_side .stats_row { flex-direction: column; }
.scheda_side .stat_item { flex: 1 1 auto; }

/* === FORM PRENOTAZIONE (BLU) === */
.form_prenota {
  background: #007BFF;
  color: #fff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}
.form_prenota_head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.form_prenota_head i {
  font-size: 18px;
  background: rgba(255,255,255,0.15);
  padding: 8px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.form_prenota_head h3 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
}
.form_prenota_head p {
  margin: 2px 0 0 0;
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  line-height: 1.3;
}

.form_fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.form_field { display: flex; flex-direction: column; }
.form_field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 3px;
}
.form_field input {
  background: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  color: #1f2937;
  outline: none;
  transition: box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.form_field input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}

.form_submit {
  display: flex;
  justify-content: flex-end;
}
.btn_invia {
  background: #ffb74d;
  color: #3d2c12 !important;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
}
.btn_invia i { margin-right: 6px; }
.btn_invia:hover { background: #ffa726; }
.btn_invia:active { transform: scale(0.98); }

/* === Responsive scheda === */
@media (max-width: 900px) {
  .scheda_grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .form_fields { grid-template-columns: 1fr; }
  .form_submit { justify-content: stretch; }
  .btn_invia   { width: 100%; }

  /* Bottoni di navigazione uno sotto l'altro */
  .nav_buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .nav_btn {
    min-width: 0;
    width: 100%;
    flex: 0 0 auto;          /* annulla il flex: 1 della regola base */
    box-sizing: border-box;  /* il padding rientra nella larghezza */
  }
}
/* === Fix centratura scheda camera === */
body.scheda #content .container {
  max-width: 1170px;          /* adatta al tuo grid.css se serve */
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}
body.scheda #content .wrapper_12,
body.scheda #content .container {
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;     /* nel caso ci fosse un float legacy */
}
/* === Padding laterale su mobile per scheda_camera === */
@media (max-width: 700px) {
  body #content .wrapper_8,
  body #content .container,
  body #content .container.nomargin {
    padding-left: 5px !important;
    padding-right: 5px !important;
    box-sizing: border-box !important;
  }
}
.zona-count {
  display: inline-block;
  margin-left: 10px;
  font-size: 16px;
  font-weight: 500;
  opacity: 0.9;
  background: rgba(255,255,255,0.18);
  padding: 2px 10px;
  border-radius: 12px;
}
@media (max-width: 600px) {
  .zona-count { display: block; margin-left: 0; margin-top: 4px; font-size: 14px; }
}
/* =========================================================
   CAMERE.PHP — layout 2 colonne (sinistra fissa + destra flessibile)
   ========================================================= */

.camere_grid {
  display: grid;
  grid-template-columns: 1fr 3fr;   /* sinistra ~25% | destra ~75% */
  gap: 24px;
  margin-bottom: 30px;
}
.camere_side, .camere_main { min-width: 0; }

/* Colonna sinistra: le stat_row diventano verticali */
.camere_side .stats_row { flex-direction: column; }
.camere_side .stat_item { flex: 1 1 auto; }

/* Max ospiti, Camere, Bagni, Piano, Balcone: label e valore in linea ("Max ospiti: 4") */
/* Selettore basato sulla classe (non sull'antenato .camere_side) perche' su mobile
   questo box viene spostato via JS dentro .camere_main */
.stats_row_camere .stat_item:nth-child(1),
.stats_row_camere .stat_item:nth-child(2),
.stats_row_camere .stat_item:nth-child(3),
.stats_row_camere .stat_item:nth-child(4),
.stats_row_camere .stat_item:nth-child(6) {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}
.stats_row_camere .stat_item:nth-child(1) .stat_label::after,
.stats_row_camere .stat_item:nth-child(2) .stat_label::after,
.stats_row_camere .stat_item:nth-child(3) .stat_label::after,
.stats_row_camere .stat_item:nth-child(4) .stat_label::after,
.stats_row_camere .stat_item:nth-child(6) .stat_label::after {
  content: ":";
}
.stats_row_camere .stat_item:nth-child(1) .stat_value,
.stats_row_camere .stat_item:nth-child(2) .stat_value,
.stats_row_camere .stat_item:nth-child(3) .stat_value,
.stats_row_camere .stat_item:nth-child(4) .stat_value,
.stats_row_camere .stat_item:nth-child(6) .stat_value {
  margin-top: 0;
}

/* Box mappa nella colonna sinistra */
.mappa_box {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 14px;
  margin-top: 16px;
}
.mappa_box h3 {
  margin: 0 0 10px 0;
  color: #463b4c;
  font-size: 18px;
}
.mappa_box iframe {
  width: 100%;
  height: 320px;
  border-radius: 6px;
  border: none;
}
.mappa_box img {
  max-width: 100%;
  border-radius: 6px;
}

/* Blocco di ogni singola camera */
.camera_block {
  margin-top: 25px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #d3d3d3;
}
/* Il primo blocco segue subito il titolo "Camere dell'appartamento": niente margine extra,
   cosi' lo spazio fino alla striscia viola e' identico a quello di "Descrizione appartamento" */
.camere_main h3 + .camera_block {
  margin-top: 0;
}
.camera_block:last-of-type {
  border-bottom: none;
}

/* Strip di foto della camera */
.camera_foto_row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
}
.camera_foto_row img {
  height: 180px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Testo alternativo mobile/desktop: di default (desktop) mostra la versione estesa */
.testo_mobile_only { display: none; }

/* Responsive: sotto 900px la sinistra va sopra */
@media (max-width: 900px) {
  .camere_grid { grid-template-columns: 1fr; gap: 0; }
  .stats_row_camere {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    flex-direction: initial;
  }
  .stats_row_camere .stat_item {
    min-width: 0;
  }

  /* Posizionamento esplicito (riga + colonna) per ogni box: evita ambiguità
     dell'auto-placement quando si mischiano span diversi e larghezza piena */

  /* Riga 1: Max ospiti + Camere */
  .stats_row_camere .stat_item:nth-child(1) { grid-row: 1; grid-column: 1 / 4; }
  .stats_row_camere .stat_item:nth-child(2) { grid-row: 1; grid-column: 4 / 7; }

  /* Riga 2: Bagni + Piano, metà riga ciascuno */
  .stats_row_camere .stat_item:nth-child(3) { grid-row: 2; grid-column: 1 / 4; }
  .stats_row_camere .stat_item:nth-child(4) { grid-row: 2; grid-column: 4 / 7; }

  /* Zona: sempre ultima riga, larghezza piena (riga 3 se non c'è il Balcone) */
  .stats_row_camere .stat_item:nth-child(5) { grid-row: 3; grid-column: 1 / 7; }

  /* Se presente, il Balcone occupa una riga tutta sua, subito prima della Zona,
     che quindi scende in riga 4 */
  .stats_row_camere.has_balcone .stat_item:nth-child(6) { grid-row: 3; grid-column: 1 / 7; }
  .stats_row_camere.has_balcone .stat_item:nth-child(5) { grid-row: 4; }

  /* Rimuove la prima fascia scura (sopra "Torna indietro") solo su mobile:
     la colonna sottostante sale automaticamente occupando lo spazio liberato */
  .card_header_top_info { display: none; }

  /* Interlinea ridotta per il titolo "Prenotati per una visita gratuita della ..."
     quando va a capo su schermi stretti */
  .form_prenota_head h3 { line-height: 1.2; }

  /* Titolo galleria abbreviato solo su mobile: "Foto e spazi comuni" invece di
     "Foto spazi comuni dell'appartamento" */
  .testo_desktop_only { display: none; }
  .testo_mobile_only { display: inline; }
}

/* Titoli di sezione su mobile */
@media (max-width: 700px) {
  .camere_main > h3,
  .descrizione_scheda h3 {
    font-size: 24px;
  }
}

/* =========================================================
   INDEX.PHP — home restyling
   ========================================================= */

.home_cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 15px;
  box-sizing: border-box;
}
.home_card {
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.home_card_head {
  background: #463b4c;
  color: #fff;
  padding: 16px 18px;
  text-align: center;
}
.home_card_title {
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.home_card_title i { color: #ffb74d; margin-right: 8px; vertical-align: middle; }
.home_card_title strong { color: #ffb74d; }
.home_card_body {
  display: flex;
  gap: 14px;
  padding: 18px;
  flex-wrap: wrap;
}
.home_option {
  flex: 1;
  min-width: 140px;
  text-align: center;
}
.home_option img {
  width: 100%;
  max-width: 220px;
  border-radius: 8px;
  border: 1px solid #e3e7ec;
  margin-bottom: 10px;
}
.home_option .btn_blu,
.home_option .btn_grigio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.home_option .btn_blu { background: #66BB6A; }
.home_option .btn_blu:hover { background: #43A047; }

@media (max-width: 900px) {
  .home_cards { grid-template-columns: 1fr; }
}

/* Su mobile impila le due opzioni (camere/appartamenti) invece di affiancarle:
   evita che il testo del bottone più lungo vada a capo e renda un box più alto dell'altro */
@media (max-width: 700px) {
  .home_card_body { flex-direction: column; }
  .home_option { min-width: 0; }
}

/* === Barra ricerca per indirizzo === */
.indirizzo_box {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 20px auto;
  background: #007BFF;
  padding: 16px 10px;
  box-sizing: border-box;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}
.indirizzo_form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 700px;
  margin: auto;
}
.indirizzo_form input[type="text"] {
  flex: 1 1 70%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  box-sizing: border-box;
}
.indirizzo_form input[type="submit"] {
  flex: 0 0 auto;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: 8px;
  border: none;
  background: #ffb74d;
  color: #3d2c12;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease;
}
.indirizzo_form input[type="submit"]:hover { background: #ffa726; }

/* === Sezione "chi siamo" === */
.chi_siamo_card {
  background: #ffffffe0;
  border: 1px solid #e3e7ec;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
}
.chi_siamo_card h2 { color: #463b4c; margin: 0; }
.chi_siamo_card .chi_siamo_sub {
  font-size: 18px;
  font-weight: 600;
  color: #463b4c;
  margin: 8px 0 18px 0;
}
.chi_siamo_card p { line-height: 1.6; margin-top: 12px; color: #333; text-align: center; }