/* =========================================================
   WRAPPER / LAYOUT GENERALE
========================================================= */

.single-citta-hotel-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Layout pagina città (lista hotel + sidebar filtro se presente) */
.single-citta-hotel {
  display: flex;
  gap: 20px;
}

/* Se usi .main-content in altri template */
.main-content {
  width: 75%;
}

.hotel-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =========================================================
   GRIGLIA CITTA / HOTEL (BASE)
========================================================= */

.citta-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;

  max-width: 1400px;
  width: 100%;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
}

.citta-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
  background: #fff;
}

.citta-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.citta-image {
  position: relative;
}

/* Immagini card */
.citta-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
  position: relative;
  z-index: 1;
}

/* Zoom on hover */
.citta-item:hover .citta-image img {
  transform: scale(1.06);
}

/* Overlay */
.citta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.30);
  z-index: 2;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.citta-item:hover .citta-overlay {
  opacity: 0;
}

/* =========================================================
   TITOLI (CITTA / HOTEL)
========================================================= */

.citta-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
}

.citta-title h3 {
  color: #fff;
  margin: 0;
  padding: 0;
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: left;
}

.hotel-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 3;
  text-transform: uppercase;
}

.hotel-title h3 {
  color: #fff;
  margin: 0;
  padding: 0;
  font-size: 1.45rem;
  font-weight: 900;
}

/* =========================================================
   HEADER INFO (conteggio strutture ecc.)
========================================================= */

.citta-header {
  text-align: center;
  margin: 10px 0 20px;
  font-size: 1.1rem;
  color: #333;
}

.citta-header p {
  margin: 0;
  padding: 0;
}

/* =========================================================
   BADGE (conteggio / stelle / SUPER / OFFERTA)
========================================================= */

.hotel-count-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;

  background: #4169b4;
  color: #fff;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 10px rgba(0,0,0,0.20);
}

/* Stelle + SUP (alto destra) */
.hotel-stars {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;

  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 1.05rem;
  color: gold;

  display: flex;
  align-items: center;
  gap: 6px;

  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.hotel-super-badge {
  background: #ffcc00;
  color: #000;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  display: inline-block;
  vertical-align: middle;
}

.hotel-offerta-badge{
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 7;

  background: rgba(230, 230, 230, 0.95);  /* ✅ GRIGIO CHIARO */
  color: #1e73ff;                         /* ✅ BLU */

  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.25;

  box-shadow: 0 3px 8px rgba(0,0,0,0.25);

  max-width: 220px;
  white-space: normal;
  word-break: break-word;
}



/* =========================================================
   FILTRI / SIDEBAR
========================================================= */

.filter-wrapper {
  width: 100%;
  margin-bottom: 10px;
}

.filter-sidebar {
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-size: 0.95rem;
  border: 1px solid #eee;
  max-width: 320px;
  text-align: center;
}

.filter-sidebar h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #333;
  font-weight: 800;
}

.filter-sidebar select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 0.95rem;
}

.filter-super {
  margin-top: 12px;
  text-align: left;
  font-size: 0.95rem;
}

/* =========================================================
   HOME (se vuoi 3 card per riga già ok)
========================================================= */

.home .citta-container {
  grid-template-columns: repeat(3, 1fr);
}

.home .citta-image img {
  height: 300px;
}

/* =========================================================
   NOTIZIE CORRELATE - GRIGLIA E CARD
========================================================= */

.notizie-title {
  text-align: center;
  font-size: 2rem;
  margin: 40px 0 20px;
}

.notizie-citta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #f9fcff;
  border-radius: 12px;
}

.notizia-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  background-color: #fff;
  transition: transform 0.25s ease;
}

.notizia-item:hover {
  transform: translateY(-3px);
}

.notizia-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.notizia-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.notizia-item:hover .notizia-image img {
  transform: scale(1.04);
}

.notizia-item h3 {
  font-size: 1.15rem;
  margin: 1rem;
  color: #333;
  text-align: left;
}

.notizia-item p {
  margin: 0 1rem 1rem 1rem;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.45;
}

/* =========================================================
   CARD BOOTSTRAP (se le usi per notizie)
========================================================= */

.notizie-homepage .card,
.notizie-citta .card {
  padding: 1rem;
  border-radius: 10px;
}

.card-header .nome-citta {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
  font-weight: 800;
}

.card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

.card-footer .btn.btn-primary {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
}

.col-md-7 {
  max-width: 100% !important;
}

/* Badge città (se lo usi altrove) */
.hotel-city-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: #ffffff;
  color: #333;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.10);
  text-transform: uppercase;
}

/* =========================================================
   RESPONSIVE (QUI SI SISTEMA IL “MOBILE SMINCHIATO”)
========================================================= */

/* Tablet: 2 colonne */
@media (max-width: 992px) {
  .citta-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .single-citta-hotel {
    flex-direction: column;
  }

  .main-content {
    width: 100%;
  }
}

/* Mobile: 1 colonna + card belle “alte” */
@media (max-width: 576px) {
  .citta-container {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 12px !important;
    margin: 10px auto !important;
  }

  .citta-item {
    width: 100% !important;
    max-width: 100% !important;
  }

  .citta-image img {
    height: 340px !important; /* alza a 380/420 se vuoi più “impatto” */
    object-fit: cover !important;
  }

  .hotel-stars {
    top: 10px !important;
    right: 10px !important;
    display: flex !important;
  }

  .hotel-offerta-badge {
    max-width: 75% !important;
    font-size: 0.82rem !important;
    padding: 9px 12px !important;
  }

  .hotel-title h3,
  .citta-title h3 {
    font-size: 1.2rem !important;
  }
}
