* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body, h1, h2, h3, h4, h5, h6, p, a, button {
    font-family: 'Poppins', sans-serif;
    color: #555454;
  }
  
.banner {
  background: url('../assets/img/headers/logo-grillo-02.png') no-repeat center bottom;
  background-size: 95% auto; /* rimpicciolisce un po’ l’immagine per lasciare spazio */
  background-position: center bottom;
  width: 100%;
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  border-radius: 0 0 4.2% 4.2%;
}

@media (min-width: 768px) {
  .banner {
    background: url('../assets/img/headers/logo-grillo-02.png') no-repeat center bottom / contain;
    width: 100%;
    aspect-ratio: 3 / 1; /* puoi regolare in base al rapporto del tuo logo */
    margin-top: 5px;
    border-radius: 0 0 4.2% 4.2%;
  }
}
  
  .grid-item {
    height: 100%; /* prende sempre tutta l'altezza disponibile dal .col */
    min-height: 160px;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    border: 3px solid #d15e14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centram. verticale */
    text-align: center;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
    touch-action: manipulation;
    will-change: transform;
  }

  .bott-grid-item {
    height: 100%; /* prende sempre tutta l'altezza disponibile dal .col */
    min-height: 50px;
    background-color: #f9f9f9;
    border-radius:  80px;
    padding: 20px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.1);
    border: 3px solid #d15e14;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* centram. verticale */
    text-align: center;
    transition: transform 0.15s ease-out, background-color 0.15s ease-out;
    touch-action: manipulation;
    will-change: transform;
  }
  
  
  /* touch mobile */
  .grid-item:active {
    transform: scale(0.97);
    background-color: #e6f9f8;
  }
  
  .grid-item:hover {
    transform: scale(1.03);
  }
  
  .grid-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }
  
  .grid-item h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 100%;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  text-align: center;
}

.flip-card-front {
  background-color: #f9f9f9;
  z-index: 2;
  flex-direction: row-reverse; /* metti orizzontale */
  justify-content: flex-start; /* allinea da sinistra */
  text-align: left;
  padding: 0; /* togli padding per usare solo padding nei figli */
  gap: 20px;
}

.flip-card-front .img-left {
  width: 40%;
  height: 95%;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  /* rimuovi margini se ci sono */
  margin: 0;
  margin-right: 1%;
}

.center-img {
  object-fit: cover;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  /* rimuovi margini se ci sono */
  margin: 0;
  margin-right: 1%;
}

.flip-card-front .text-box {
  width: 50%;
  height: 100%;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/*back*/

.flip-card-back {
  background-color: #f9f9f9;
  transform: rotateY(180deg);
  display: flex;
  justify-content: flex-start; /* testo a sinistra */
  text-align: left;
  padding: 0; /* gestione padding nei figli */
  gap: 20px;
}

.flip-card-back .img-left {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  margin: 0;
  margin-right: 15px; /* margine destro stavolta */
}

.flip-card-back .text-box {
  height: 100%;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.typerest {
  font-size: 20px;
  color: #d15e14;
  font-style: italic;
}

/* .guide-box {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  font-size: 14px;
  color: #444;
  line-height: 1.4em;
} */


.guide-box {
  /* background-color: #f9f9f9; */
  color: #888888;
  border-radius: 10px;
  padding: 16px;
  max-width: 90%;
  margin: 20px auto;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.florence-zone-section {
  margin-bottom: 3rem;
}

.florence-zone-title {
  font-size: 1.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #4a4a4a;
}

.florence-place-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.florence-place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.florence-place-card a {
  text-decoration: none;
  color: inherit;
}

.florence-place-type {
  font-size: 0.9rem;
  color: #6c757d;
}

/* === License css === */

#attribution-box {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f9f9f9;
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.license-btn {
  width: 100%;
  background-color: white;
  border: 2px solid #d15e14;
  color: #d15e14;
  font-weight: bold;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

/* ✅ Colori FISSI */
#toggle-attribution {
  background-color: white;
  color: #d15e14;
  border: 2px solid #d15e14;
}

/* ✅ Hover con contrasto visibile */
#toggle-attribution:hover {
  border: 2px solid #d15e14;
  background-color: white;
  color: #d15e14;
}

/* ✅ Testo flessibile senza allargare bottone */
#toggle-text {
  /* flex-grow: 1; */
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ✅ Icona che ruota */
.arrow-down {
  transition: transform 0.3s ease;
}

.arrow-up {
  transform: rotate(180deg);
}

.inline-icon {
  height: 1em;
  vertical-align: -0.15em;
}

/* Box nascosto/stilizzato */
/* Box nascosto/stilizzato */
.info-box {
  background-color: #f2f2f2; /* grigio chiaro */
  padding: 15px 20px;
  border-radius: 20px; /* come i bottoni */
  margin-top: 10px;
  font-family: Arial, sans-serif;
  border: 2px solid #d15e14; /* aggiunge il bordo come i bottoni */
  box-sizing: border-box;
}

.info-box ul {
  list-style: none;
  padding-left: 0;
}

.info-box li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.info-box .icon {
  margin-right: 8px;
}

/* Nasconde il box all’avvio */
.hidden {
  display: none;
}

/* Bottone dettagli simile al tuo license-btn */
.toggle-btn {
  width: 100%;
  background-color: white;
  border: 2px solid #d15e14;
  color: #d15e14;
  font-weight: bold;
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

/* Hover bottone */
.toggle-btn:hover {
  background-color: white;
  color: #d15e14;
  border: 2px solid #d15e14;
}

/* Icona che ruota */
.arrow-down {
  transition: transform 0.3s ease;
}

.arrow-up {
  transform: rotate(180deg);
}

/* Icona inline all’interno del testo */
.inline-icon {
  height: 1em;
  vertical-align: -0.15em;
}

/* Classe per aggiungere solo bordi ovali senza modificare il layout */
.oval-borders {
    border-radius: 40px !important; /* bordi più ovali, forza la proprietà */
}

/* Classe per adattare l'immagine ai bordi ovali del contenitore */
.oval-borders .img-left {
    border-radius: 35px !important; /* leggermente meno del contenitore per un effetto pulito */
}


/* === ICONE CON MASK === */

/* Stile base per tutte le icone */
.icon-mask {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  background-color: #d15e14; /* arancione base */
  display: inline-block;
  transition: background-color 0.3s ease;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Effetto hover - arancione più chiaro */
.grid-item:hover .icon-mask {
  background-color: #ff7a29; /* arancione chiaro */
}




/*SEARCH*/

/* ============================================
   🔍 SEARCH BAR & SUGGESTIONS 
   ============================================ */

.search-bar-container {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.search-bar {
  width: 90%;
  max-width: 480px;
  padding: 10px 16px;
  border-radius: 40px;
  border: 2px solid #d15e14; /* arancione invece di ciano */
  background: #ffffffcc;
  font-size: 1.1rem;
  outline: none;
  box-shadow: 0 2px 8px rgba(209, 94, 20, 0.1);
  transition: border-color 0.2s;
}

.search-bar:focus {
  border-color: #ff7a29; /* arancione più chiaro al focus */
}

.search-suggestions {
  position: absolute;
  max-width: 480px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(209, 94, 20, 0.15);
  border: 1.5px solid #d15e14;
  padding: 8px 0;
  z-index: 9999; /* molto alto per stare sopra tutto */
  font-size: 1rem;
  max-height: 400px; /* limite altezza */
  overflow-y: auto; /* scroll se troppi risultati */
}

.suggestion-item {
  padding: 10px 24px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s;
}

.suggestion-item:hover {
  background: #fff0e6; /* arancione chiaro */
}

.suggestion-keywords {
  color: #888;
  font-size: 0.92em;
}

/* Scroll personalizzato per suggestions */
.search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #d15e14;
  border-radius: 3px;
}