/* ============================================================
   OFFERTE — Pagina offerte moderna stile Booking/Airbnb
   agriturismi.it — v2 — 2026-03
   ============================================================ */

/* Safety net: impedisce qualunque elemento di forzare scroll orizzontale.
   `clip` è meglio di `hidden` (non rompe sticky) ma richiede Safari 16+
   (sett 2022); `hidden` resta come fallback per versioni precedenti. */
@media (max-width: 767px) {
  html, body {
    overflow-x: hidden;
    overflow-x: clip;
    max-width: 100%;
  }
}

/* --- Hero (compatto: meno bianco, più contenuto sopra il fold) -- */
.off-hero {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 0 12px;
}
.off-hero-bg { display: none; }

.off-breadcrumb {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}

.off-breadcrumb a { color: #6b7280; text-decoration: none; }
.off-breadcrumb a:hover { color: #0d9488; text-decoration: underline; }
.off-breadcrumb-sep { margin: 0 5px; color: #d1d5db; }

.off-title {
  font-size: 24px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.off-title-count { color: #0d9488; }

.off-subtitle {
  color: #6b7280;
  font-size: 13.5px;
  margin: 0 0 8px;
  max-width: 720px;
  line-height: 1.45;
}

/* Badge valore: una sola riga inline, niente cerchi colorati */
.off-hero-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.off-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #4b5563;
}

.off-hero-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f0fdfa;
  font-size: 10px;
  color: #0d9488;
  flex-shrink: 0;
}

.off-hero-badge strong {
  display: inline;
  font-size: 12.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.off-hero-badge small {
  /* il sottotitolo del badge era pesante: trasformiamo in trattino + descrizione inline più tenue */
  display: inline;
  font-size: 12px;
  color: #9ca3af;
  margin-left: 4px;
}
.off-hero-badge small::before { content: "— "; }

/* Mobile hero */
@media (max-width: 767px) {
  .off-hero { padding: 12px 0 8px; }
  .off-title { font-size: 20px; }
  .off-subtitle { display: none; } /* paragrafo ridondante: tagliamo su mobile */
  .off-hero-badges { gap: 6px 12px; }
  .off-hero-badge small { display: none; }
}

/* --- Filter bar (sticky) ------------------------------------- */
.off-filters-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 0;
  overflow-x: hidden;
}

.off-filters-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.off-filters-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  flex: 1;
}

.off-filters-scroll::-webkit-scrollbar { display: none; }

/* Chip filtro */
.off-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none !important;
  transition: all .15s;
  cursor: pointer;
}

.off-chip:hover {
  border-color: #18a2b8;
  color: #18a2b8;
  background: #f0fdfe;
}

.off-chip .fa { font-size: 12px; color: #9ca3af; }
.off-chip:hover .fa { color: #18a2b8; }

.off-chip.active {
  background: #18a2b8;
  color: #fff;
  border-color: #18a2b8;
}

.off-chip.active .fa { color: #fff; }

/* Contatore dentro chip */
.off-chip-count {
  background: #e5e7eb;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  line-height: 1.3;
}

.off-chip.active .off-chip-count {
  background: rgba(255,255,255,.25);
  color: #fff;
}

/* Separatore tra gruppi chip */
.off-chip-sep {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  flex-shrink: 0;
  align-self: center;
}

/* Link rimuovi filtri */
.off-clear-link {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: underline !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.off-clear-link:hover { color: #ef4444; }

/* ── Striscia chip-data (weekend + prossima festa), stile Booking ── */
.off-dates-strip {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 0 4px;
}

.off-dates-strip .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.off-dates-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  white-space: nowrap;
  flex-shrink: 0;
}

.off-dates-label .fa { color: #18a2b8; margin-right: 3px; }

.off-dates-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  flex: 1;
}

.off-dates-scroll::-webkit-scrollbar { display: none; }

/* Chip festa: accento ambra per distinguerla dai weekend */
.off-chip-festa .fa { color: #e0a82e; }
.off-chip-festa:hover { border-color: #e0a82e; color: #b8860b; background: #fffbeb; }
.off-chip-festa:hover .fa { color: #e0a82e; }
.off-chip-festa.active { background: #e0a82e; border-color: #e0a82e; color: #fff; }
.off-chip-festa.active .fa { color: #fff; }

@media (max-width: 991px) {
  .off-dates-label { display: none; } /* spazio prezioso su mobile */
  .off-chip-date { scroll-snap-align: start; }
}

/* --- Header risultati filtrati ------------------------------- */
.off-results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f2f4;
  flex-wrap: wrap;
}

.off-results-count {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

/* Link "Vedi tutte le strutture" — cross-link verso search regione/provincia */
.off-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #0d9488;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid #ccece8;
  border-radius: 999px;
  background: #f0fbfa;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.off-see-all:hover,
.off-see-all:focus {
  color: #0b7c72;
  background: #e2f6f3;
  border-color: #a8ddd6;
  text-decoration: none;
}
.off-see-all span { font-size: 16px; line-height: 1; }
@media (max-width: 575px) {
  .off-see-all { font-size: 13px; padding: 5px 10px; }
}

/* --- Titolo sezione (per festa) ------------------------------ */
.off-section-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 4px solid #18a2b8;
  line-height: 1.3;
}

.off-section-title:first-child { margin-top: 4px; }

/* --- BOX festa: contenitore visivo (banner header + card + CTA "vedi tutte") --- */
.off-festa-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.off-festa-box .off-banner-all--header {
  margin: 0;
  border-radius: 0; /* attaccato sui lati e in cima al box */
}

/* --- Sezione festa: griglia card responsive (Airbnb-style) ----- */
/* Dentro .off-festa-box, padding interno; standalone, niente padding. */
.off-card-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.off-festa-box .off-card-section {
  padding: 14px;
  margin-bottom: 0;
}
.off-card-section > .off-section-title,
.off-card-section > .off-banner-all,
.off-card-section > .off-section-foot,
.off-card-section > .off-festa-cta { grid-column: 1 / -1; }

/* CTA "Vedi tutte le offerte ›" come footer del box festa */
.off-festa-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
  color: #0f766e !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}
.off-festa-more:hover {
  background: #f0fdfa;
  color: #0d6b63 !important;
}
.off-festa-more .fa { transition: transform .15s ease; font-size: 13px; }
.off-festa-more:hover .fa { transform: translateX(4px); }

/* --- Card offerta (default: orizzontale - foto sx + body dx) -- */
.off-card {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transition: box-shadow .2s, transform .2s;
}

.off-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, .1);
  transform: translateY(-1px);
}

/* Immagine card (default orizzontale): foto fissa 260px a sinistra */
.off-card-img-wrap {
  position: relative;
  width: 260px;
  min-width: 260px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f2f4;
}

/* Override: dentro la grid (.off-card-section) le card sono verticali (foto in alto) */
.off-card-section .off-card {
  flex-direction: column;
  margin-bottom: 0;
}
.off-card-section .off-card-img-wrap {
  width: 100%;
  min-width: 0;
  height: 200px;
}

.off-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.off-card-img-wrap:hover .off-card-img {
  transform: scale(1.04);
}

/* Badge sconto */
.off-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #f59e0b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  z-index: 2;
}

/* Badge categoria (es. Romantico, Benessere, Famiglia) */
.off-badge-category {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 2;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.off-badge-category .fa { font-size: 10px; margin-right: 3px; color: #0d9488; }

/* Badge prezzo su immagine */
.off-badge-price {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(255, 255, 255, .95);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  line-height: 1.3;
  pointer-events: none;
}

.off-badge-price small {
  font-weight: 400;
  color: #6b7280;
  font-size: 11px;
}

/* Body card */
.off-card-body {
  flex: 1;
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header: tipo struttura */
.off-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.off-card-tipo {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}

.off-badge-festa {
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
}
.off-badge-festa .fa { color: #f59e0b; margin-right: 3px; }

/* Badge "N offerte": struttura con più offerte attive (card aggregata) → link all'elenco offerte */
.off-card-multi {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 20px;
  padding: 2px 9px;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.off-card-multi:hover { background: #ccfbf1; border-color: #5eead4; color: #0f766e; }
.off-card-multi .fa { margin-right: 3px; }

/* Badge rating */
.off-badge-rating {
  font-size: 11px;
  font-weight: 700;
  color: #0f766e;
  background: #e0fbf7;
  border: 1px solid #99f6e4;
  border-radius: 20px;
  padding: 2px 8px;
  white-space: nowrap;
}
.off-badge-rating .fa { color: #f59e0b; margin-right: 2px; font-size: 10px; }

/* Nome struttura: protagonista — più peso */
.off-card-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.off-card-title a { color: inherit; text-decoration: none !important; }
.off-card-title a:hover { color: #18a2b8; }

/* Titolo offerta: dettaglio secondario, meno peso */
.off-card-deal {
  font-size: 12.5px;
  font-style: normal;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize; /* normalizza titoli salvati in maiuscolo nel DB */
}

/* Località */
.off-card-location {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.off-card-location .fa { color: #18a2b8; margin-right: 3px; }

/* Chip info su card */
.off-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.off-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.off-card-chip .fa { color: #6b7280; font-size: 11px; }

.off-card-chip-teal { background: #e0fbf7; border-color: #99f6e4; color: #0f766e; }
.off-card-chip-teal .fa { color: #0f766e; }
.off-card-chip-indigo { background: #eef2ff; border-color: #c7d2fe; color: #4338ca; }
.off-card-chip-indigo .fa { color: #4338ca; }

/* Meta info (notti, ospiti) */
.off-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

/* Durata e ospiti come pill leggibili: testo più scuro, font 600 */
.off-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 3px 9px;
}
.off-card-meta .fa { color: #0f766e; font-size: 12px; margin: 0; }

/* Date validità: più leggibili (testo scuro, font 600) */
.off-card-dates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}
.off-card-dates .fa { color: #18a2b8; margin-right: 3px; }

/* Badge urgenza scadenza */
.off-badge-urgency {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #d97706;
  background: #fef3c7;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}
.off-badge-urgency .fa { margin-right: 2px; }
.off-badge-urgency--last {
  color: #dc2626;
  background: #fef2f2;
  animation: off-pulse 1.5s ease-in-out infinite;
}
@keyframes off-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

/* Descrizione */
.off-card-desc {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Vedi di più" su riga propria sotto la descrizione → Dettaglio offerta.
   Fuori dal box clampato della descrizione, così non viene mai tagliato. */
.off-card-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -2px 0 8px;
  font-size: 13px;
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.off-card-more:hover { text-decoration: underline; }
.off-card-more .fa { font-size: 12px; }

/* Footer card */
.off-card-footer {
  /* Prezzo su riga propria + CTA sotto: evita che descrizioni prezzo lunghe
     ("/per l'appartamento") vengano troncate per mancanza di spazio. */
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f2f4;
}

/* Prezzo */
/* Blocco prezzo: original + main + discount sulla prima riga,
   unit ("/per l'appartamento", "/prezzo a persona") sempre su riga sotto.
   Evita break maldestri con descrizioni prezzo lunghe. */
.off-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 6px;
  row-gap: 2px;
  min-width: 0;
}

.off-price-original {
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
}

.off-price-main {
  font-size: 16px;
  font-weight: 800;
  color: #e11d48;
}

/* Tag sconto nel footer */
.off-price-discount-tag {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.off-price-unit {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.2;
  /* niente wrap interno: l'unit sta sempre tutto su una riga propria */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA card — contenitore doppio CTA */
.off-card-ctas {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.off-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 14px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s, transform .15s, box-shadow .2s;
  flex-shrink: 0;
}

/* CTA primario: Contatta ora */
.off-card-cta--contact {
  background: #0d9488;
  color: #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,.25);
}
.off-card-cta--contact:hover {
  background: #0f766e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13,148,136,.35);
}

/* CTA secondario: Vedi dettagli */
.off-card-cta--detail {
  background: transparent;
  color: #6b7280;
  border: 1px solid #d1d5db;
  font-weight: 600;
}
.off-card-cta--detail:hover {
  background: #f9fafb;
  color: #374151;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* --- Banner "Vedi tutte" per festa --------------------------- */
.off-btn-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #0f766e;
  border: 2px solid #0f766e;
  border-radius: 999px;
  padding: 8px 24px;
  text-decoration: none !important;
  transition: all .18s ease;
}
.off-btn-all:hover {
  background: #0f766e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 118, 110, .25);
}

/* Banner strip tra sezioni feste */
.off-banner-all {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 24px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  border-radius: 14px;
  text-decoration: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(15, 118, 110, .2);
  transition: all .22s ease;
}

/* Banner usato come HEADER della sezione festa (sostituisce il vecchio h2 sopra le card) */
.off-banner-all--header {
  margin: 4px 0 12px;
  padding: 12px 18px;
}
.off-banner-all--header .off-banner-all__icon {
  width: 36px;
  height: 36px;
  font-size: 16px;
}
.off-banner-all--header h2.off-banner-all__text {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.2px;
}
.off-banner-all--header .off-banner-all__arrow {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.off-banner-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, .3);
  background: linear-gradient(135deg, #0d6b63 0%, #0f9d8e 100%);
  color: #fff !important;
}
.off-banner-all__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: 18px;
  flex-shrink: 0;
}
.off-banner-all__text {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.off-banner-all__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .15);
  border-radius: 50%;
  font-size: 15px;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.off-banner-all:hover .off-banner-all__arrow {
  transform: translateX(4px);
}

/* Varianti colore per festa */
.off-banner-all--0 { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.off-banner-all--0:hover { background: linear-gradient(135deg, #0d6b63 0%, #0f9d8e 100%); }

.off-banner-all--1 { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%); box-shadow: 0 4px 16px rgba(124, 58, 237, .2); }
.off-banner-all--1:hover { background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%); box-shadow: 0 8px 24px rgba(124, 58, 237, .3); }

.off-banner-all--2 { background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%); box-shadow: 0 4px 16px rgba(217, 119, 6, .2); }
.off-banner-all--2:hover { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); box-shadow: 0 8px 24px rgba(217, 119, 6, .3); }

.off-banner-all--3 { background: linear-gradient(135deg, #dc2626 0%, #f87171 100%); box-shadow: 0 4px 16px rgba(220, 38, 38, .2); }
.off-banner-all--3:hover { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%); box-shadow: 0 8px 24px rgba(220, 38, 38, .3); }

.off-banner-all--4 { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); box-shadow: 0 4px 16px rgba(37, 99, 235, .2); }
.off-banner-all--4:hover { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); box-shadow: 0 8px 24px rgba(37, 99, 235, .3); }

.off-banner-all--5 { background: linear-gradient(135deg, #db2777 0%, #f472b6 100%); box-shadow: 0 4px 16px rgba(219, 39, 119, .2); }
.off-banner-all--5:hover { background: linear-gradient(135deg, #be185d 0%, #ec4899 100%); box-shadow: 0 8px 24px rgba(219, 39, 119, .3); }

/* --- Sidebar ------------------------------------------------- */
.off-sidebar-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.off-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.off-sidebar-title .fa { color: #18a2b8; font-size: 14px; }

/* Form ricerca sidebar */
.off-search-select,
.off-search-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 16px;
  color: #374151;
  background: #f9fafb;
  margin-bottom: 8px;
  -webkit-appearance: auto;
  appearance: auto;
}

.off-search-select:focus,
.off-search-input:focus {
  outline: none;
  border-color: #18a2b8;
  box-shadow: 0 0 0 3px rgba(24, 162, 184, .15);
}

.off-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: #18a2b8;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.off-search-btn:hover { background: #148a9e; }

/* Campi form ricerca offerte */
.off-search-field {
  margin-bottom: 10px;
}
.off-search-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}
.off-search-label .fa { color: #18a2b8; margin-right: 3px; }

/* Banner festa sidebar */
.off-banner-festa {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.off-banner-festa:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }

.off-banner-festa img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .3s ease;
}

.off-banner-festa:hover img { transform: scale(1.04); }

.off-banner-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
}

.off-banner-label {
  background: rgba(15, 118, 110, .85);
  color: #fff;
  text-align: center;
  font-weight: 700;
  padding: 6px 8px;
  font-size: 13px;
}

/* Link regione sidebar */
.off-region-link {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: #374151;
  text-decoration: none !important;
  border-bottom: 1px solid #f3f4f6;
  transition: color .15s, padding-left .15s;
}

.off-region-link:last-child { border-bottom: none; }

.off-region-link:hover {
  color: #18a2b8;
  padding-left: 6px;
}

.off-region-link .fa { color: #18a2b8; margin-right: 5px; font-size: 11px; }

.off-region-link .badge {
  float: right;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  padding: 2px 8px;
}

/* Sidebar sticky desktop — align-self impedisce stretch della colonna Bootstrap */
@media (min-width: 992px) {
  .off-sidebar-col { align-self: flex-start; }
  .off-sidebar-sticky { position: sticky; top: 72px; }
}

/* Info box */
.off-info-box {
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #065f46;
  line-height: 1.6;
}

/* Nessun risultato */
.off-empty {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
}

.off-empty-icon {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.off-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}

/* Divider sezione */
.off-section-divider {
  border: 0;
  border-top: 1px solid #f0f2f4;
  margin: 8px 0 0;
}

/* --- Form ricerca mobile (sopra le card) --------------------- */

.off-mobile-select {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: #f9fafb;
  -webkit-appearance: auto;
  appearance: auto;
}

.off-mobile-select:focus {
  outline: none;
  border-color: #18a2b8;
  box-shadow: 0 0 0 2px rgba(24, 162, 184, .15);
}

.off-mobile-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 40px;
  padding: 0 14px;
  background: #18a2b8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.off-mobile-btn .fa { font-size: 13px; }
.off-mobile-btn:hover { background: #148a9e; }

/* Form mobile: una sola riga, 3 elementi affiancati e compatti */
.off-mobile-search {
  display: flex;
  gap: 6px;
  align-items: stretch;
  flex-wrap: nowrap;
}
.off-mobile-search .off-mobile-select { font-size: 13px; }
/* La data è leggermente più stretta del select regione: usa ratio 5:6 */
.off-mobile-search input[name="checkin"] { flex: 5 1 0; }
.off-mobile-search select[name="regione"] { flex: 6 1 0; }

/* --- Mobile -------------------------------------------------- */
@media (max-width: 767px) {
  .off-hero { padding: 14px 0 10px; }
  .off-title { font-size: 20px; }
  .off-subtitle { font-size: 13px; display: none; }

  /* Form mobile: stack 2 righe (data+regione 50/50 + Cerca full-width).
     Niente card decorativa (gradient/border/radius creavano spicchi visibili
     agli angoli per mismatch border-radius con input/button). */
  #offform-mobile .off-mobile-search {
    flex-wrap: wrap;
    gap: 8px;
  }
  #offform-mobile .off-checkin-input,
  #offform-mobile select[name="regione"] {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    height: 46px;
    font-size: 14px;
    background: #fff;
    border-color: #d1d5db;
  }
  #offform-mobile .off-mobile-btn {
    flex: 1 1 100%;
    height: 46px;
    font-size: 15px;
    border-radius: 10px;
    letter-spacing: .2px;
  }

  /* Card mobile: immagine a sx compatta (stile Airbnb) */
  .off-card {
    flex-direction: row;
    border-radius: 12px;
    min-height: 0;
  }

  .off-card-img-wrap {
    width: 120px;
    min-width: 120px;
    height: auto;
    min-height: 140px;
  }

  .off-card-body {
    padding: 10px 12px;
  }

  /* Durata/ospiti visibili anche su mobile (info chiave per decidere), in pill compatte */
  .off-card-meta {
    display: flex;
    gap: 5px;
    margin-bottom: 6px;
  }
  .off-card-meta span { font-size: 12px; padding: 2px 7px; gap: 4px; }
  .off-card-meta .fa { font-size: 11px; }
  .off-card-dates { font-size: 12px; margin-bottom: 6px; }

  /* Descrizione visibile anche su mobile (85% del traffico): più testo = più
     contesto per convertire. Clamp a 2 righe per non rubare spazio al prezzo/CTA. */
  .off-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    font-size: 12px;
    margin-bottom: 6px;
  }

  /* Titolo più compatto */
  .off-card-title { font-size: .9rem; margin-bottom: 1px; }
  .off-card-deal { font-size: 12px; margin-bottom: 2px; }
  .off-card-location { font-size: 12px; margin-bottom: 4px; }
  .off-card-header { margin-bottom: 1px; }
  .off-card-tipo { font-size: 10px; padding: 1px 7px; }

  /* Chips più piccole */
  .off-card-chips { gap: 3px; margin-bottom: 4px; }
  .off-card-chip { font-size: 10px; padding: 2px 7px; }
  .off-card-chip .fa { font-size: 9px; }

  /* Badge prezzo su immagine: nascosto su mobile (prezzo nel footer) */
  .off-badge-price { display: none; }

  /* Footer compatto: prezzo a sx, CTA a dx, su una riga */
  .off-card-footer {
    /* Anche su mobile: prezzo sopra, CTA sotto (più leggibile su schermi stretti) */
    flex-direction: column;
    align-items: stretch;
    padding-top: 6px;
    gap: 6px;
    border-top: none;
  }

  .off-price-main { font-size: 14px; }
  .off-price-unit { font-size: 10px; }
  .off-price-original { font-size: 11px; margin-right: 4px; }

  /* Doppio CTA: su mobile il dettagli sparisce, resta solo Contatta */
  .off-card-cta--detail { display: none; }
  .off-card-cta {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    flex-shrink: 0;
    width: auto;
  }

  .off-section-title {
    font-size: 17px;
    margin: 20px 0 12px;
  }

  .off-btn-all {
    font-size: 13px;
    padding: 7px 18px;
  }
  .off-banner-all {
    padding: 12px 16px;
    gap: 10px;
    margin: 14px 0 18px;
  }
  .off-banner-all__icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
  .off-banner-all__text {
    font-size: 14px;
  }
  .off-banner-all__arrow {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  /* Badge sconto più piccolo */
  .off-badge-discount {
    font-size: 10px;
    padding: 2px 6px;
    top: 6px;
    left: 6px;
  }
  .off-badge-category {
    font-size: 9px;
    padding: 2px 6px;
    top: 6px;
    right: 6px;
  }

  /* Badge urgenza compatto */
  .off-badge-urgency { display: block; margin-left: 0; margin-top: 2px; }

  /* Rating badge compatto */
  .off-badge-rating { font-size: 10px; padding: 1px 6px; }
}

@media (max-width: 575px) {
  .off-card-img-wrap {
    width: 110px;
    min-width: 110px;
  }

  .off-chip {
    padding: 6px 12px;
    font-size: 12px;
  }

  .off-card-deal { font-size: 11px; }
  .off-card-chips { display: none; } /* nasconde chips su schermi molto piccoli */
}


/* ============================================================
   CLASSI LEGACY — usate da offers_home.php / offers_festa.php
   Estratte dagli <style> inline — 2026-03-25
   ============================================================ */

/* ── Hero offerte (legacy) ──────────────────────────── */
.offers-hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 2.5rem 0 2rem;
}
.offers-hero h1 {
  color: #1a2233 !important;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.offers-hero .offers-hero-sub {
  color: #6b7280;
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* Hero immagine festa */
@media (min-width: 768px) {
  .hero-img { width: 280px; height: 280px; object-fit: cover; border-radius: 50%; }
}
@media (max-width: 767.98px) {
  .hero-img { width: 100%; height: auto; border-radius: .5rem; padding: 12px; }
}

/* ── Sidebar sticky legacy ──────────────────────────── */
@media (min-width: 992px) {
  .sidebar-sticky { position: sticky; top: 72px; }
}

/* ── Banner eventi sidebar (legacy) ─────────────────── */
.banner-festa-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.banner-festa-wrap:hover { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.banner-festa-wrap img {
  transition: transform .3s ease;
  display: block;
  width: 100%;
  height: auto;
}
.banner-festa-wrap:hover img { transform: scale(1.04); }
.banner-festa-count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .72rem;
  padding: 2px 9px;
  border-radius: 999px;
}
.banner-festa-label {
  background: rgba(15,118,110,.82);
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: .4rem .5rem;
  font-size: .9rem;
}

/* ── Lista regioni sidebar (legacy) ─────────────────── */
.region-list .list-group-item {
  padding: .4rem .75rem;
  font-size: .88rem;
  border-left: none;
  border-right: none;
  transition: background .12s, padding-left .12s;
}
.region-list .list-group-item:first-child { border-top: none; }
.region-list .list-group-item:hover {
  background: #f0fdfa;
  color: #0f766e;
  padding-left: 1.1rem;
}
.region-list .list-group-item .fa { color: #18a2b8; }

/* ── Card offerta (legacy) ──────────────────────────── */
.offer-card {
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .18s ease, transform .18s ease;
}
.offer-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.13);
  transform: translateY(-2px);
}

/* Immagine card orizzontale (offers_home) */
.offer-thumb {
  background: #f3f4f6;
  overflow: hidden;
  height: 200px;
}
.offer-thumb-inner { height: 100%; }
.offer-thumb-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.offer-card:hover .offer-thumb-inner img { transform: scale(1.04); }
@media (min-width: 768px) {
  .offer-thumb { height: 100%; min-height: 190px; }
}

/* Immagine card verticale (offers_festa) */
.offer-card-img-wrap {
  display: block;
  overflow: hidden;
  height: 200px;
}
.offer-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.offer-card:hover .offer-card-img-wrap img { transform: scale(1.04); }

/* ── Titolo offerta (legacy) ────────────────────────── */
.offer-deal-title {
  font-style: italic;
  color: #374151;
  font-size: .95rem;
}
.offer-title { text-decoration: none; }
.offer-title:hover { text-decoration: underline; }

/* ── Badge prezzo e chip (legacy) ────────────────────── */
.price-original {
  font-size: .85rem;
  color: #6b7280;
  text-decoration: line-through;
  vertical-align: middle;
}
.badge-discount {
  display: inline-block;
  border-radius: 4px;
  padding: .1rem .4rem;
  background: #f59e0b;
  color: #fff;
  font-weight: 700;
  font-size: .78rem;
  vertical-align: middle;
  margin-right: .3rem;
}
.badge-price {
  display: inline-block;
  border-radius: 6px;
  padding: .3rem .55rem;
  background: #e11d48;
  color: #fff;
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.3;
}
.price-row {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .2rem;
}
.badge-soft-primary {
  background: #e0fbf7;
  color: #0f766e;
  border-radius: 999px;
  padding: .35rem .6rem;
  font-weight: 600;
}
.badge-soft-secondary {
  background: #eef2ff;
  color: #4338ca;
  border-radius: 999px;
  padding: .35rem .6rem;
  font-weight: 600;
}

/* ── Footer card: prezzo + CTA (legacy) ──────────────── */
.offer-card-footer {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.offer-card-footer .btn-offer-cta {
  width: 100%;
  text-align: center;
  margin-left: 0;
}
@media (min-width: 768px) {
  .offer-card-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
  .offer-card-footer .btn-offer-cta {
    width: auto;
    flex-shrink: 0;
    margin-left: .5rem;
  }
}

/* ── Bottone CTA offerta (legacy) ────────────────────── */
.btn-offer-cta {
  display: inline-block;
  padding: .35rem .85rem;
  font-size: .82rem;
  font-weight: 600;
  color: #fff;
  background: #0f766e;
  border: none;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .15s;
  text-align: center;
}
.btn-offer-cta:hover {
  background: #0d6460;
  color: #fff;
  text-decoration: none;
}

/* ── Titolo sezione (legacy — offers_home) ────────────── */
.section-title {
  border-left: 4px solid #18a2b8;
  padding-left: .75rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a2233;
}

/* ── Bottone "vedi tutte" (legacy — offers_home) ──────── */
.btn-all-offers {
  font-size: 1rem;
  font-weight: 600;
  color: #0f766e;
  border: 2px solid #0f766e;
  border-radius: 999px;
  padding: .5rem 2rem;
  transition: all .18s ease;
  display: inline-block;
}
.btn-all-offers:hover {
  background: #0f766e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15,118,110,.25);
}

/* ── Tab feste-ponti (riga singola scroll orizzontale, stile Booking) ─── */
.off-festa-tabs-wrap {
  padding: 14px 0 4px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
}
.off-festa-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* scrollbar nascosta — lo scroll resta funzionante via touch/trackpad/wheel */
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge legacy */
  padding-bottom: 0;
  /* fade laterali per suggerire lo scroll */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
}
/* Webkit (Chrome/Safari) */
.off-festa-tabs::-webkit-scrollbar { display: none; }

/* Frecce di scorrimento per i box stagionali (2026-06-15).
   Su desktop affiancano lo scroller; su mobile si scorre col dito → nascoste. */
.off-festa-scroller { position: relative; }
.off-festa-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #0d9488;
  font-size: 16px;
  border-radius: 50%;
  box-shadow: 0 3px 12px rgba(15,23,42,.16);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}
.off-festa-arrow:hover { background: #f0fdfa; box-shadow: 0 5px 16px rgba(13,148,136,.22); }
.off-festa-arrow:active { background: #ccfbf1; }
.off-festa-arrow--prev { left: -8px; }
.off-festa-arrow--next { right: -8px; }
.off-festa-arrow[hidden] { display: none; }
@media (max-width: 767px) {
  .off-festa-arrow { display: none; }   /* mobile: scroll touch, niente frecce */
}
/* ═══ MINI-CARD FESTE: identità "calda" promozionale (giallo/arancio).
   Layout a griglia: emoji grande a sinistra, nome+conteggio in alto, countdown sotto.
   HTML invariato — sfrutto grid-template-areas sui figli .off-festa-tab-*. ═══ */
.off-festa-tab {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon name  count"
    "icon days  days";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  min-width: 192px;
  padding: 12px 18px;
  border: 1px solid #fde68a;        /* arancio chiaro */
  border-left: 4px solid #f59e0b;   /* accento caldo a sinistra */
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%); /* gradient giallo soft */
  color: #78350f;                    /* marrone caldo */
  white-space: nowrap;
  text-decoration: none !important;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease, border-color .18s ease;
  outline: none;
  box-shadow: 0 3px 10px rgba(245, 158, 11, .14);
}
/* "shine" diagonale che scorre all'hover */
.off-festa-tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.off-festa-tab:hover,
.off-festa-tab:focus-visible {
  border-color: #f59e0b;
  border-left-color: #d97706;
  background: linear-gradient(135deg, #fef9e7 0%, #fde68a 100%);
  color: #92400e;
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(245, 158, 11, .28);
}
.off-festa-tab:hover::after,
.off-festa-tab:focus-visible::after { left: 120%; }
.off-festa-tab:active { transform: translateY(-1px); }
.off-festa-tab:focus:not(:focus-visible) {
  border-color: #fde68a;
  border-left-color: #f59e0b;
  background: linear-gradient(135deg, #fffdf5 0%, #fef3c7 100%);
  color: #78350f;
}
.off-festa-tab:visited { color: #78350f; }

/* Emoji icona — grande, dentro un cerchietto bianco che la fa risaltare */
.off-festa-tab-icon {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  line-height: 1;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 50%;
  filter: saturate(1.1);
  box-shadow: 0 1px 4px rgba(245,158,11,.18);
}

.off-festa-tab-name {
  grid-area: name;
  font-weight: 800;
  font-size: 16px;
  color: #78350f;
  align-self: end;
}
.off-festa-tab:hover .off-festa-tab-name { color: #92400e; }
/* il separatore "·" non serve più nel layout a 2 righe */
.off-festa-tab-sep { display: none; }
.off-festa-tab-days {
  grid-area: days;
  color: #b45309;
  font-weight: 500;
  font-size: 12.5px;
  opacity: .9;
  align-self: start;
}
.off-festa-tab-count {
  grid-area: count;
  align-self: center;
  justify-self: end;
  background: #f59e0b;               /* arancio pieno = stesso colore badge sconto card */
  color: #fff;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(245,158,11,.35);
}
.off-festa-tab:hover .off-festa-tab-count {
  background: #d97706;
}

/* ── Mappa Leaflet (pagine provincia) ────────────────── */
.off-map-wrap {
  margin: 0 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
#off-map {
  width: 100%;
  height: 360px;
}
@media (max-width: 767px) {
  #off-map { height: 260px; }
}
/* override z-index Leaflet che a volte va sopra il navbar/sticky */
.leaflet-pane,
.leaflet-top,
.leaflet-bottom { z-index: 50 !important; }

/* ── Varie (legacy) ─────────────────────────────────── */
.list-min > li { margin-bottom: .15rem; }
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ═══ ULTIME AGGIUNTE (offerte degli ultimi 7gg) ═══ */
.off-last-added {
  margin: 1rem 0 1.25rem;            /* ridotto spazio sopra/sotto (2026-06-15) */
  padding: 1rem 1rem .75rem;         /* meno aria interna */
  background: linear-gradient(180deg, #f5fbfa 0%, #ffffff 100%);
  border: 1px solid #eaf3f0;
  border-radius: 14px;
  /* iOS: contiene lo scroller figlio dentro la sezione, evita scroll body */
  overflow: hidden;
  max-width: 100%;
}
.off-last-added__head { margin-bottom: .6rem; padding: 0 .25rem; }
.off-last-added__title {
  margin: 0 0 .25rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: #14746f;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.off-last-added__title .fa-bolt { color: #f59e0b; font-size: 1.15rem; }
.off-last-added__sub {
  margin: 0;
  color: #6b7280;
  font-size: .95rem;
}

/* ── Selezione "lastminute esclusive" (testa pagina, paganti + appetibilità) ── */
.off-lm { margin-bottom: 1.6rem; }
.off-lm__head { margin-bottom: .9rem; padding: 0 .25rem; }
.off-lm__title {
  margin: 0 0 .3rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: #14746f;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.25;
}
.off-lm__title .fa-bolt { color: #f59e0b; font-size: 1.2rem; }
.off-lm__sub {
  margin: 0;
  color: #6b7280;
  font-size: .98rem;
}
@media (max-width: 575px) {
  .off-lm__title { font-size: 1.25rem; }
  .off-lm__sub { font-size: .9rem; }
}

/* Scroller orizzontale (iOS-safe) */
.off-last-added__scroller {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  /* contiene il bounce iOS dentro lo scroller, non lo propaga al body */
  overscroll-behavior-x: contain;
  /* proximity invece di mandatory: snap più morbido, no jitter su iOS */
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: .25rem .25rem .75rem;
  scroll-padding-inline: .25rem;
  scrollbar-width: thin;
}
.off-last-added__scroller::-webkit-scrollbar { height: 6px; }
.off-last-added__scroller::-webkit-scrollbar-thumb { background: #cbd5d3; border-radius: 4px; }

/* Card compatta */
.off-la-card {
  flex: 0 0 260px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.off-la-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.off-la-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.off-la-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.off-la-card__badge {
  position: absolute; top: 8px; left: 8px;
  background: #14746f; color: #fff;
  font-size: .72rem; font-weight: 600;
  padding: 4px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: .02em;
}
.off-la-card__discount {
  position: absolute; top: 8px; right: 8px;
  background: #dc2626; color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: 4px 8px; border-radius: 6px;
}
.off-la-card__body {
  padding: .75rem .85rem .85rem;
  display: flex; flex-direction: column; gap: .35rem;
  flex: 1;
}
.off-la-card__cat {
  font-size: .72rem; color: #14746f; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em;
}
.off-la-card__title {
  margin: 0;
  font-size: 1rem; font-weight: 600; line-height: 1.25;
}
.off-la-card__title a { color: #1f2937; text-decoration: none; }
.off-la-card__title a:hover { color: #14746f; }
.off-la-card__deal {
  margin: 0;
  font-size: .85rem; color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.off-la-card__loc {
  margin: 0;
  font-size: .8rem; color: #6b7280;
}
.off-la-card__loc .fa { color: #9ca3af; }
.off-la-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .7rem;
  font-size: .78rem;
  color: #4b5563;
  margin-top: .1rem;
}
.off-la-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  white-space: nowrap;
}
.off-la-card__meta .fa {
  color: #14746f;
  font-size: .82rem;
}
.off-la-card__foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .5rem;
  border-top: 1px solid #f3f4f6;
}
.off-la-card__price strong {
  font-size: 1.1rem; color: #14746f; font-weight: 700;
}
.off-la-card__price small { color: #6b7280; font-size: .75rem; }
.off-la-card__price-old {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: .8rem;
  margin-right: .35rem;
}
.off-la-card__cta {
  background: #14746f; color: #fff;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background .15s ease;
}
.off-la-card__cta:hover { background: #0d5e5a; color: #fff; }

@media (min-width: 992px) {
  .off-last-added { padding: 1.5rem 1.25rem 1.75rem; }
  .off-last-added__title { font-size: 1.5rem; }
  .off-la-card { flex-basis: 280px; }
}

/* ============================================================
   REFINEMENT 2026-05-17 — leggibilità prezzo/CTA, hero mobile,
   filtri raggruppati, banner festa più compatto, sidebar regioni
   ============================================================ */

/* 1) HERO MOBILE — i 3 badge "qualità verificata / contatto diretto /
      miglior prezzo" rubavano metà del fold: li togliamo su <768px
      (restano da tablet in su). */
@media (max-width: 767px) {
  .off-hero-badges { display: none; }
  .off-hero { padding: 10px 0 6px; }
  .off-breadcrumb { margin-bottom: 4px; }
  .off-title { font-size: 19px; margin: 0 0 2px; letter-spacing: -.2px; }
}

/* 2) CARD — gerarchia prezzo + CTA
      ─ Badge prezzo sopra immagine: più discreto su desktop
        (era forte come il footer e creava doppia lettura).
      ─ Blocco prezzo footer: prezzo finale leggermente più grande,
        prezzo originale e tag -% in tono più calmo (no rosso "vendita").
      ─ CTA primaria piena teal, secondaria ghost teal (non grigia). */
.off-badge-price {
  font-size: 12.5px;
  padding: 4px 9px;
  bottom: 8px;
  left: 8px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.off-badge-price strong { font-weight: 700; }
.off-badge-price small { font-size: 10.5px; }

.off-price-main {
  font-size: 19px;
  color: #0f172a;        /* meno aggressivo del rosso #e11d48 */
  letter-spacing: -.3px;
}
.off-price-original {
  font-size: 13px;
  color: #94a3b8;
}
.off-price-discount-tag {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 999px;
}

/* CTA secondaria "Vedi" ora ghost teal (era grigia e si perdeva) */
.off-card-cta--detail {
  color: #0f766e;
  border: 1px solid #99f6e4;
  background: #fff;
  font-weight: 700;
}
.off-card-cta--detail:hover {
  background: #f0fdfa;
  color: #0f766e;
  border-color: #14b8a6;
}

/* Sul desktop, separa prezzo (sx) e CTAs (dx) sulla stessa riga
   quando lo spazio basta: footer più "compatto e definitivo". */
@media (min-width: 992px) {
  .off-card-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
  }
  .off-price-block { flex: 1 1 auto; }
  .off-card-ctas { flex: 0 0 auto; }
}

/* Mobile: prezzo grande e CTA Contatta full-width per tap area decente */
@media (max-width: 767px) {
  .off-card-footer { gap: 8px; padding-top: 8px; }
  .off-price-main { font-size: 16px; }
  .off-price-original { font-size: 11.5px; }
  .off-price-discount-tag { font-size: 9.5px; padding: 1px 5px; }
  .off-card-ctas { width: 100%; justify-content: stretch; }
  .off-card-cta--contact {
    flex: 1 1 100%;
    justify-content: center;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
  }
}

/* 3) BANNER HEADER FESTA — fascia più sottile
      (era 12px 18px con icona 36 + h2 17px: ingombrante). */
.off-banner-all--header {
  padding: 9px 14px;
  gap: 10px;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.off-banner-all--header .off-banner-all__icon {
  width: 28px;
  height: 28px;
  font-size: 13px;
  background: rgba(255,255,255,.18);
}
.off-banner-all--header h2.off-banner-all__text {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
.off-banner-all--header .off-banner-all__arrow {
  width: 26px;
  height: 26px;
  font-size: 12px;
  background: rgba(255,255,255,.18);
}
.off-banner-all--header:hover { transform: none; box-shadow: none; }

@media (max-width: 767px) {
  .off-banner-all--header { padding: 8px 12px; }
  .off-banner-all--header .off-banner-all__icon { width: 24px; height: 24px; font-size: 11px; }
  .off-banner-all--header h2.off-banner-all__text { font-size: 13.5px; }
  .off-banner-all--header .off-banner-all__arrow { width: 22px; height: 22px; font-size: 11px; }
}

/* "Vedi tutte" sotto la sezione festa: meno banner, più link */
.off-festa-more {
  padding: 9px 14px;
  font-size: 13px;
  background: transparent;
  justify-content: flex-end;
  gap: 6px;
}
.off-festa-more:hover { background: #f0fdfa; }

/* 4) CHIP FILTRI — separatori dei 3 gruppi più visibili,
      stato active con accento, scroll-snap su mobile per gesture pulita. */
.off-chip-sep {
  width: 1px;
  height: 22px;
  background: #d1d5db;
  margin: 0 6px;
}
.off-chip.active {
  background: #0d9488;
  border-color: #0d9488;
  box-shadow: 0 2px 6px rgba(13,148,136,.25);
}

@media (max-width: 767px) {
  .off-filters-scroll {
    scroll-snap-type: x proximity;
    padding-left: 2px;
    padding-right: 2px;
    /* Sfumatura a destra: i chips che scorrono sembrano intenzionali, non tagliati */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - 26px), transparent 100%);
  }
  .off-chip { scroll-snap-align: start; }
  .off-chip-sep { display: none; } /* spazio prezioso su mobile */
}

/* 5) SIDEBAR REGIONI — count come pill leggibile,
      allineamento flex (era float right). */
.off-region-link {
  display: flex;
  align-items: center;
  gap: 8px;
}
.off-region-link > .fa { flex-shrink: 0; }
.off-region-link .badge {
  float: none;
  margin-left: auto;
  background: #f3f4f6;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  line-height: 1.3;
}
.off-region-link:hover .badge {
  background: #e0fbf7;
  color: #0f766e;
}

/* Sidebar form ricerca: bottone "Cerca" allineato al teal del sito
   (era #18a2b8 light-blue, scollegato dal teal #0d9488 della CTA card). */
.off-search-btn { background: #0d9488; }
.off-search-btn:hover { background: #0f766e; }

/* ============================================================
   FRESH PASS 2026-05-17 — pagina più calda, ariata, viva.
   Sfondo sabbia chiara, hero gradient teal/cream, card più morbide,
   ombre teal all'hover, banner-header con profondità, sidebar
   accentata, info-box warm. Solo CSS, niente HTML.
   offers-v2.css è caricato unicamente da /offerte e
   /offerte/{regione}, quindi gli override su body/struttura toccano
   solo queste due pagine.
   ============================================================ */

/* --- Atmosfera: sfondo sabbia chiarissima fa risaltare le card -- */
body { background: #fafaf7; }

/* --- HERO: gradient morbido teal→cream + decorazioni soft ------- */
.off-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #fefce8 60%, #fff7ed 100%);
  border-bottom: 1px solid #f1ece1;
  padding: 30px 0 24px;
  position: relative;
  overflow: hidden;
}
.off-hero .container { position: relative; z-index: 1; }
.off-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -60px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(20,184,166,.14) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.off-hero::after {
  content: '';
  position: absolute;
  bottom: -90px; left: -50px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(251,191,36,.16) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.off-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #0f172a;
}
.off-title-count {
  font-size: 36px;
  font-weight: 900;
  color: #0d9488;
  margin-right: 4px;
}
.off-subtitle {
  color: #475569;
  font-size: 14.5px;
  margin-top: 4px;
}
.off-breadcrumb a:hover { color: #0d9488; }
.off-hero-badge { color: #334155; }
.off-hero-badge strong { color: #0f172a; font-size: 13px; }
.off-hero-badge small { color: #64748b; }
.off-hero-badge-icon {
  width: 24px; height: 24px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(13,148,136,.18);
  color: #0d9488;
}

@media (max-width: 767px) {
  .off-hero {
    padding: 16px 0 14px;
    background: linear-gradient(180deg, #f0fdfa 0%, #fefce8 100%);
  }
  .off-hero::before, .off-hero::after { display: none; }
  .off-title { font-size: 22px; }
  .off-title-count { font-size: 26px; }
}

/* --- FILTRI STICKY: sfondo allineato al body sabbia ------------- */
.off-filters-sticky {
  background: rgba(250,250,247,.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #ececeb;
  padding: 12px 0;
}
.off-chip {
  background: #fff;
  border-color: #ececeb;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15,23,42,.03);
}
.off-chip:hover {
  border-color: #14b8a6;
  background: #fff;
  color: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13,148,136,.18);
}

/* --- MINI-CARD FESTE: lift + ombra all'hover (stile definito sopra) ---- */
.off-festa-tab:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(245, 158, 11, .28);
}

/* --- CARD OFFERTA: corner morbidi + ombra teal all'hover -------- */
.off-card {
  border-radius: 18px;
  border-color: #f1ece1;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
  transition: transform .2s ease, box-shadow .25s ease;
}
.off-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(13,148,136,.18), 0 4px 12px rgba(15,23,42,.06);
}

/* Spacing tra card più generoso */
.off-card-section { gap: 18px; }

/* Card verticale dentro griglia festa: foto più alta */
.off-card-section .off-card-img-wrap { height: 220px; }
.off-card-section .off-card { border-radius: 18px; }

/* Fix sovrapposizione prezzo/bottoni: nelle card in griglia (~320px) il
   footer su desktop diventava una riga orizzontale, ma i 2 bottoni
   ("Contatta ora" + "Dettaglio offerta") non ci stanno e finivano sopra
   il prezzo grande. Qui forziamo il footer in colonna anche su desktop:
   prezzo sopra, bottoni sotto a tutta larghezza (stile Airbnb). */
@media (min-width: 992px) {
  .off-card-section .off-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .off-card-section .off-card-ctas {
    justify-content: stretch;
  }
  .off-card-section .off-card-cta {
    flex: 1 1 0;
    justify-content: center;
  }
}

/* Box festa: contenitore più morbido e ariato */
.off-festa-box {
  border-radius: 20px;
  margin-bottom: 28px;
  border-color: #f1ece1;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
}

/* Badge categoria: pill bianca con icona teal, leggera */
.off-badge-category {
  background: rgba(255,255,255,.96);
  color: #0f172a;
  border: 0;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11.5px;
  letter-spacing: .2px;
  box-shadow: 0 2px 8px rgba(15,23,42,.15);
}
.off-badge-category .fa { color: #0d9488; }

/* Badge sconto: arancio caldo invece di giallo squillante */
.off-badge-discount {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 12.5px;
  letter-spacing: .2px;
  box-shadow: 0 3px 8px rgba(249,115,22,.32);
}

/* Badge prezzo overlay: più tipografico */
.off-badge-price {
  border-radius: 10px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Chips card (Natura / Pernottamento) più morbide */
.off-card-chip {
  border-radius: 999px;
  padding: 3px 12px;
}

/* CTA "Contatta ora" con gradient teal + lift */
.off-card-cta--contact {
  background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
  box-shadow: 0 2px 10px rgba(13,148,136,.28);
}
.off-card-cta--contact:hover {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13,148,136,.38);
}

/* CTA "Dettaglio offerta" ghost teal più armonioso */
.off-card-cta--detail {
  border-color: #99f6e4;
  color: #0f766e;
  background: #f0fdfa;
}
.off-card-cta--detail:hover {
  background: #ccfbf1;
  border-color: #14b8a6;
  color: #0f766e;
}

/* --- BANNER-HEADER FESTA: gradient più ricco + highlight bottom -- */
.off-banner-all--header {
  padding: 12px 18px;
  position: relative;
}
.off-banner-all--header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
}
.off-banner-all--header h2.off-banner-all__text {
  font-size: 16px;
  letter-spacing: -.1px;
  text-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.off-banner-all--header .off-banner-all__icon {
  width: 32px; height: 32px;
  font-size: 15px;
  background: rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}

/* Gradienti banner: 3 stop per più profondità */
.off-banner-all--0 { background: linear-gradient(135deg, #0d9488 0%, #14b8a6 55%, #5eead4 100%); }
.off-banner-all--1 { background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 55%, #ddd6fe 100%); }
.off-banner-all--2 { background: linear-gradient(135deg, #ea580c 0%, #fb923c 55%, #fed7aa 100%); }
.off-banner-all--3 { background: linear-gradient(135deg, #dc2626 0%, #f87171 55%, #fecaca 100%); }
.off-banner-all--4 { background: linear-gradient(135deg, #2563eb 0%, #60a5fa 55%, #bfdbfe 100%); }
.off-banner-all--5 { background: linear-gradient(135deg, #db2777 0%, #f472b6 55%, #fbcfe8 100%); }

/* --- SIDEBAR: card con accento teal a sinistra ------------------ */
.off-sidebar-card {
  border-radius: 18px;
  border-color: #f1ece1;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  position: relative;
  overflow: hidden;
}
.off-sidebar-card::before {
  content: '';
  position: absolute;
  left: 0; top: 18px; bottom: 18px;
  width: 3px;
  background: linear-gradient(180deg, #0d9488, #14b8a6 60%, #5eead4);
  border-radius: 0 3px 3px 0;
}
.off-sidebar-title { padding-left: 6px; }

/* Region link: più ariato + bordo tenue */
.off-region-link {
  padding: 8px 0;
  border-bottom-color: #f5f1e8;
}
.off-region-link:hover .badge {
  background: #e0fbf7;
  color: #0f766e;
}

/* Banner festa sidebar: corner 16px + overlay leggermente più caldo */
.off-banner-festa { border-radius: 16px; }
.off-banner-label {
  background: linear-gradient(0deg, rgba(15,118,110,.95), rgba(15,118,110,.7));
  font-weight: 700;
  letter-spacing: .3px;
  padding: 7px 8px;
}
.off-banner-count {
  background: rgba(15,23,42,.7);
  font-weight: 700;
  padding: 3px 10px;
}

/* --- INFO BOX: gradient warm in linea con l'hero --------------- */
.off-info-box {
  background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
  border: 1px solid #99f6e4;
  color: #134e4a;
  border-radius: 18px;
  padding: 18px 20px;
}

/* --- ULTIME AGGIUNTE: badge che respira leggero ----------------- */
.off-la-card__badge {
  background: linear-gradient(135deg, #f97316, #fb923c);
  animation: off-la-pulse 2.6s ease-in-out infinite;
}
@keyframes off-la-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.off-la-card {
  border-radius: 18px;
  border-color: #f1ece1;
  box-shadow: 0 2px 10px rgba(15,23,42,.04);
}
.off-la-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13,148,136,.18);
}

/* --- BANNER-ALL standalone (fuori box festa) -------------------- */
.off-banner-all { border-radius: 16px; }

/* ============================================================
   PRICE BOOST 2026-05-18 — sono OFFERTE: prezzo finale grande,
   originale chiaramente barrato, sconto pill prominente.
   Coerente su home, festa, regione/provincia (stessi selettori).
   ============================================================ */

/* Prezzo finale: protagonista. Rosso deal #dc2626, peso 900, grande. */
.off-price-main {
  font-size: 28px;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: -.6px;
  line-height: 1;
  order: 2;
}

/* Prezzo originale barrato: inline col prezzo finale e il tag sconto */
.off-price-original {
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  line-height: 1;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #94a3b8;
  order: 1;
}

/* Tag sconto -%: pill arancione pieno con shadow, inline col prezzo */
.off-price-discount-tag {
  align-self: center;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  border: 0;
  letter-spacing: .3px;
  box-shadow: 0 3px 8px rgba(234,88,12,.38);
  text-shadow: 0 1px 1px rgba(0,0,0,.08);
  order: 3;
}

/* Unit ("/prezzo a persona", "/notte"): riga propria, discreta, sempre ultima */
.off-price-unit {
  flex-basis: 100%;
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-top: 2px;
  order: 4;
}

/* Block prezzo: una sola riga con [originale barrato] [prezzo finale] [-%],
   poi la unit ("/per l'appartamento") sotto su riga propria. */
.off-price-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
}

/* Badge sconto sopra immagine: più grande + ombra rossa */
.off-badge-discount {
  font-size: 14px;
  font-weight: 800;
  padding: 5px 13px;
  letter-spacing: .3px;
  background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
  box-shadow: 0 4px 12px rgba(220,38,38,.4);
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}

/* Badge prezzo sopra immagine: ribbon bianco con accento rosso a sx,
   prezzo finale rosso bold (richiama il footer) */
.off-badge-price {
  background: #fff;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 800;
  border-left: 4px solid #dc2626;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 0 3px 12px rgba(15,23,42,.18);
}
.off-badge-price strong { color: #dc2626; font-weight: 900; font-size: 15px; }
.off-badge-price small { color: #64748b; font-weight: 600; font-size: 11px; }
/* Variante "prezzo a persona a notte": verde buon-affare, sposta la percezione
   da prezzo grezzo (52€ a camera) al dato che converte (26€ a testa). (2026-06-15) */
.off-badge-price--ppn { border-left-color: #059669; }
.off-badge-price--ppn strong { color: #047857; }

/* Mobile: prezzi grandi ma proporzionati allo schermo */
@media (max-width: 767px) {
  .off-price-main { font-size: 22px; letter-spacing: -.4px; }
  .off-price-original { font-size: 13.5px; }
  .off-price-original::before { font-size: 11px; }
  .off-price-discount-tag {
    font-size: 11.5px;
    padding: 3px 10px;
  }
  .off-price-unit { font-size: 11px; }
  .off-badge-discount {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* Schermi molto piccoli: prezzo originale lo manteniamo (è il valore del deal) */
@media (max-width: 575px) {
  .off-price-main { font-size: 20px; }
}

/* ============================================================
   Mobile fix carousel "Ultime offerte aggiunte" (2026-05-26)
   Prima: card flex-basis 260px fissi + padding sezione 16px =
   spreco ~35% di larghezza utile su iPhone (card al 65% viewport).
   Ora: card scala con viewport (~78vw) con peek visibile + fade
   gradient a destra come affordance di scroll (iOS nasconde scrollbar).
   ============================================================ */
@media (max-width: 767px) {
  .off-last-added {
    padding-left: .5rem;
    padding-right: .5rem;
    position: relative;
  }
  .off-last-added__scroller {
    padding-left: .5rem;
    padding-right: .5rem;
  }
  .off-la-card {
    flex: 0 0 78vw;
    max-width: 320px;
  }
  /* Affordance scroll: sfumatura sul bordo destro che suggerisce
     "c'è altro contenuto" — sostituisce la scrollbar nascosta da iOS */
  .off-last-added::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 70%, #ffffff 100%);
    z-index: 2;
  }
}

/* ===========================================================================
   RESTYLE "Airbnb/Booking" — passo 1 (2026-06-17)
   Fascia festa pastello + card più ariose. Solo CSS, niente HTML toccato.
   =========================================================================== */

/* --- Fascia festa "header": da blocco teal saturo a pastello elegante --- */
.off-festa-box .off-banner-all--header,
.off-card-section > .off-banner-all--header {
  background: #f0fbf7;                         /* teal chiarissimo pastello */
  border: 1px solid #cdeee2;                   /* bordo teal tenue */
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15,118,110,.05);
  padding: 12px 16px;
  margin: 4px 0 16px;
}
.off-festa-box .off-banner-all--header:hover {
  background: #e7f7f0;
  border-color: #aee3d2;
  box-shadow: 0 4px 14px rgba(15,118,110,.12);
  transform: none;
}
.off-festa-box .off-banner-all--header h2.off-banner-all__text,
.off-card-section > .off-banner-all--header h2.off-banner-all__text {
  color: #0f766e;                              /* teal scuro */
  font-weight: 600;
  text-shadow: none;
}
.off-festa-box .off-banner-all--header .off-banner-all__icon,
.off-festa-box .off-banner-all--header .off-banner-all__arrow {
  background: #d3f3e6;
  color: #0f766e;
  box-shadow: none;
}
.off-festa-box .off-banner-all--header::after { display: none; }  /* via la linea bianca */

/* --- Card: bordo hairline neutro + ombra più morbida (look Airbnb) --- */
.off-card {
  border-color: #ebedf0;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 18px rgba(15,23,42,.03);
}
.off-card:hover {
  box-shadow: 0 12px 30px rgba(13,148,136,.14), 0 4px 12px rgba(15,23,42,.05);
}

/* ================================================================
   RESTYLING LEGGIBILITÀ CARD OFFERTA — 2026-06-28
   Solo CSS, nessun HTML toccato. Per annullare: rimuovere questo blocco.
   Specificità .off-card per vincere su media query e doppioni sparsi.
   Obiettivi approvati (variante "Decisa"):
   1) sconto da 3 segnali a 1   2) offerta protagonista, struttura secondaria
   3) CTA singola               4) card più calma
   ================================================================ */

/* 1) Un solo segnale di sconto: resta prezzo barrato -> prezzo.
      Via il blob arancione sull'immagine e il tag "-%" accanto al prezzo. */
.off-card .off-badge-discount,
.off-card .off-price-discount-tag { display: none !important; }

/* 2) Gerarchia: l'OFFERTA sopra e in evidenza, nome struttura sotto e leggero.
      Ordino i figli del body (flex column) senza toccare l'HTML. */
.off-card-body > .off-card-header   { order: 1; }
.off-card-body > .off-card-deal     { order: 2; }
.off-card-body > .off-card-title    { order: 3; }
.off-card-body > .off-card-location { order: 4; }
.off-card-body > .off-card-chips    { order: 5; }
.off-card-body > .off-card-meta     { order: 6; }
.off-card-body > .off-card-dates    { order: 7; }
.off-card-body > .off-card-desc     { order: 8; }
.off-card-body > .off-card-footer   { order: 9; }

/* Titolo offerta = protagonista (può andare a 2 righe) */
.off-card .off-card-deal {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  margin: 0 0 3px;
}
/* Nome struttura = secondario */
.off-card .off-card-title {
  font-size: .92rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.off-card .off-card-title a:hover { color: #0d9488; }

/* 3) CTA singola: "Contatta ora" pieno a tutta larghezza,
      "Vedi dettagli" diventa un link testuale leggero sotto. */
.off-card .off-card-ctas {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.off-card .off-card-cta--contact {
  width: 100%;
  justify-content: center;
}
.off-card .off-card-cta--detail {
  background: transparent;
  border: none;
  color: #0d9488;
  font-weight: 600;
  font-size: 12.5px;
  padding: 2px 4px;
  justify-content: center;
}
.off-card .off-card-cta--detail:hover {
  background: transparent;
  color: #0f766e;
  text-decoration: underline;
  transform: none;
}

/* 4) Card più calma: badge categoria più discreto, un filo d'aria in più */
.off-card .off-badge-category {
  background: rgba(255,255,255,.92);
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
  font-weight: 600;
  color: #334155;
}
.off-card .off-card-location { margin-bottom: 8px; }

/* ============================================================
   HERO STAGIONALE + STELLINE ANIMATE  (2026-07-01)
   Palette calda e tinta stelle derivate da data-season sulla .off-hero
   (helper off_hero_theme): winter | spring | summer | autumn.
   Tutto decorativo: pointer-events none, aria-hidden lato HTML.
   ============================================================ */

/* --- Campo di stelle mascherato, colorato dalla var --star ----- */
.off-hero-stars {
  --tile: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='160' viewBox='0 0 220 160'><g><path transform='translate(16 18) scale(1.2)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(92 10) scale(0.7)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(150 34) scale(1.5)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(58 62) scale(0.95)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(196 78) scale(0.6)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(118 100) scale(1.15)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(30 118) scale(0.85)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(176 128) scale(0.55)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/><path transform='translate(96 138) scale(0.75)' d='M6,0L7.4,4.1L11.7,4.1L8.2,6.7L9.5,10.8L6,8.3L2.5,10.8L3.8,6.7L0.3,4.1L4.6,4.1Z'/></g></svg>");
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #ffffff;                 /* stelle bianche, discrete */
  -webkit-mask: var(--tile) 0 0 / 220px 160px repeat;
          mask: var(--tile) 0 0 / 220px 160px repeat;
  opacity: .3;
  animation: offStarsDrift 34s linear infinite, offStarsTwinkle 5s ease-in-out infinite;
  will-change: mask-position, opacity;
}
/* Secondo strato di stelle: più piccolo, più lento, per profondità */
.off-hero-stars::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  -webkit-mask: var(--tile) 60px 30px / 300px 210px repeat;
          mask: var(--tile) 60px 30px / 300px 210px repeat;
  opacity: .22;
  animation: offStarsDrift 52s linear infinite reverse, offStarsTwinkle 7s ease-in-out infinite;
}
@keyframes offStarsDrift {
  from { -webkit-mask-position: 0 0;      mask-position: 0 0; }
  to   { -webkit-mask-position: 0 -160px; mask-position: 0 -160px; }
}
@keyframes offStarsTwinkle {
  0%, 100% { opacity: .12; }
  50%      { opacity: .32; }
}

/* --- Palette per stagione (gradient caldo + colore stelle) ----- */
.off-hero[data-season="summer"] {              /* estate: giallo/ambra caldo e deciso */
  background: linear-gradient(135deg, #fffdf3 0%, #fde68a 55%, #fbbf24 100%);
}
.off-hero[data-season="autumn"] {              /* autunno: ocra/arancio caldo + foglia */
  background: linear-gradient(135deg, #fef9ec 0%, #fdba74 55%, #f59e0b 100%);
}
.off-hero[data-season="winter"] {              /* inverno/Natale: rosso caldo + panna */
  background: linear-gradient(135deg, #fff1f2 0%, #fca5a5 55%, #ef4444 100%);
}
.off-hero[data-season="spring"] {              /* primavera: verde tenero + rosa fiore */
  background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 50%, #f9a8d4 100%);
}

/* Le due bolle radiali (::before/::after della hero) seguono la stagione */
.off-hero[data-season="summer"]::before { background: radial-gradient(circle, rgba(251,191,36,.20) 0%, transparent 65%); }
.off-hero[data-season="summer"]::after  { background: radial-gradient(circle, rgba(245,158,11,.18) 0%, transparent 65%); }
.off-hero[data-season="autumn"]::before { background: radial-gradient(circle, rgba(101,163,13,.18) 0%, transparent 65%); }
.off-hero[data-season="autumn"]::after  { background: radial-gradient(circle, rgba(217,119,6,.18) 0%, transparent 65%); }
.off-hero[data-season="winter"]::before { background: radial-gradient(circle, rgba(220,38,38,.16) 0%, transparent 65%); }
.off-hero[data-season="winter"]::after  { background: radial-gradient(circle, rgba(22,163,74,.16) 0%, transparent 65%); }
.off-hero[data-season="spring"]::before { background: radial-gradient(circle, rgba(52,211,153,.18) 0%, transparent 65%); }
.off-hero[data-season="spring"]::after  { background: radial-gradient(circle, rgba(244,114,182,.16) 0%, transparent 65%); }

/* Mobile: stelle più discrete, un solo strato per risparmiare paint */
@media (max-width: 767px) {
  .off-hero-stars { opacity: .4; }
  .off-hero-stars::after { display: none; }
}

/* Accessibilità: niente movimento se l'utente lo disabilita */
@media (prefers-reduced-motion: reduce) {
  .off-hero-stars, .off-hero-stars::after { animation: none; }
}

/* ============================================================
   ARMONIA PREZZO 2026-08-04 — un solo linguaggio visivo per il
   prezzo su tutte le card offerta. Prima nella stessa pagina
   convivevano .off-price-main (rosso #dc2626, 28px/900) e
   .off-la-card__price strong (teal, 1.1rem/700): stesso dato,
   due stili diversi a poche righe di distanza.
   Adesso: teal di brand ovunque. Il segnale "sconto" resta
   affidato alla pill arancione e al badge -% sull'immagine,
   che sono gli elementi giusti per l'urgenza.
   Solo CSS: nessun markup toccato, vale su tutte le pagine offerte.
   ============================================================ */
.off-price-main {
  color: #14746f;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.off-price-original {
  color: #9ca3af;
  text-decoration-color: #cbd5e1;
}
.off-price-unit { color: #6b7280; }

@media (max-width: 767px) {
  .off-price-main { font-size: 21px; letter-spacing: -.3px; }
}
@media (max-width: 575px) {
  .off-price-main { font-size: 19px; }
}
