/* ============================================================
   PAGINA DETTAGLIO OFFERTA — v2 — 2026-03
   agriturismi.it — Mobile-first, coerente con scheda-v2
   Prefisso: od-
   ============================================================ */

/* --- Reset overflow globale ---------------------------------- */
html, body { overflow-x: hidden; }
*, *::before, *::after { box-sizing: border-box; }

/* --- Layout -------------------------------------------------- */
.od-page { background: #f9fafb; min-height: 100vh; }

/* --- Breadcrumb ---------------------------------------------- */
.od-breadcrumb {
  font-size: 13px;
  color: #6b7280;
  padding: 14px 0 0;
  line-height: 1.4;
}
.od-breadcrumb a { color: #6b7280; text-decoration: none; }
.od-breadcrumb a:hover { color: #0d9488; text-decoration: underline; }
.od-breadcrumb-sep { margin: 0 5px; color: #d1d5db; }

/* --- Hero ---------------------------------------------------- */
.od-hero {
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 0 0 16px;
}
.od-hero-struttura {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 2px;
}
.od-hero-struttura a { color: #0d9488; text-decoration: none; }
.od-hero-struttura a:hover { text-decoration: underline; }

.od-hero-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.2;
}

/* Riga prezzo */
.od-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.od-discount-badge {
  background: #e11d48;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
}
.od-special-badge {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d7c72 0%, #0780a0 100%);
  box-shadow: 0 2px 8px rgba(13,148,136,.4);
  letter-spacing: .3px;
}
.od-special-badge .fa { font-size: 12px; margin-right: 4px; }
.od-price-old {
  font-size: 16px;
  color: #9ca3af;
  text-decoration: line-through;
}
.od-price-main {
  font-size: 2rem;
  font-weight: 900;
  color: #e11d48;
  line-height: 1;
}
.od-price-unit {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  margin-left: 2px;
  letter-spacing: .2px;
}

/* Chips */
.od-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.od-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.od-chip .fa { color: #0d9488; font-size: 12px; }
.od-chip--cat { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.od-chip--cat .fa { color: #f59e0b; }
/* Chip data: gerarchia secondaria — meno peso visivo */
.od-chip--date {
  white-space: normal;
  background: #f9fafb;
  border-color: #eef0f2;
  color: #4b5563;
  font-weight: 500;
}
.od-chip--date .fa { color: #94a3b8; }

/* CTA primaria */
.od-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #16a34a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  text-decoration: none !important;
  transition: background .15s, transform .15s;
  box-shadow: 0 3px 12px rgba(22,163,74,.25);
  width: 100%;
}
.od-cta:hover, .od-cta:focus {
  background: #15803d;
  color: #fff;
  transform: translateY(-1px);
}

/* --- Hero row (prezzo + chips affiancati su desktop) --------- */
.od-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.od-hero-row .od-price-row { margin-bottom: 0; }
.od-hero-row .od-chips { margin-bottom: 0; }

/* --- Esclusiva inline (nell'hero) — micro-strip discreta ----- */
.od-exclusive-inline {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
  background: #ecfdf5;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  margin-top: 2px;
}
.od-exclusive-inline .fa { color: #f59e0b; margin-right: 4px; font-size: 11px; }

/* --- Mappa inline (full-width, dopo gallery) ----------------- */
.od-map-row {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}
.od-map-inline {
  height: 200px;
  width: 100%;
}
.od-map-label {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #f9fafb;
}

/* --- Gallery (hero immagine) --------------------------------- */
.od-gallery {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
/* Variante: gallery posizionata dopo il form, con spazio sopra */
.od-gallery--bottom {
  margin-top: 28px;
}
.od-gallery-grid {
  display: grid;
  gap: 4px;
  height: 380px;
  background: #e8eaed;
}
/* 1 foto */
.od-gallery-grid--1 { grid-template-columns: 1fr; }
/* 2 foto */
.od-gallery-grid--2 { grid-template-columns: 3fr 2fr; }
/* 3+ foto: grande a sinistra, colonna secondaria a destra */
.od-gallery-grid--3 { grid-template-columns: 3fr 2fr; }
/* 4-5 foto: grande a sinistra, griglia 2x2 a destra */
.od-gallery-grid--multi { grid-template-columns: 3fr 2fr; }

/* Contenitore foto secondarie */
.od-gallery-side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}
/* 5 foto: griglia 2x2 a destra */
.od-gallery-grid--multi .od-gallery-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.od-gimg {
  overflow: hidden;
  min-height: 0;
}
.od-gimg a { display: block; width: 100%; height: 100%; cursor: pointer; }
.od-gimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.od-gimg:hover img { transform: scale(1.03); }

/* Counter foto */
.od-gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* --- Contenuto ----------------------------------------------- */
.od-content { padding: 16px 0 40px; }

.od-section-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-section-title .fa { color: #0d9488; }

.od-desc {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 28px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* --- Form richiesta ------------------------------------------ */
.od-form-card {
  background: #fff;
  border: 2px solid #16a34a;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(22,163,74,.08);
}
.od-form-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-form-title .fa { color: #16a34a; }

.od-form-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #0369a1;
  margin-bottom: 16px;
  line-height: 1.5;
}

.od-form-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}
.od-form-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.od-form-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
}
textarea.od-form-input { height: auto; padding: 10px 12px; resize: vertical; }
select.od-form-input { appearance: auto; }
.od-form-input[readonly] { background: #f9fafb; cursor: pointer; }

/* Errore inline */
.od-form-input.is-invalid { border-color: #e11d48; }
.od-form-error {
  font-size: 11px;
  color: #e11d48;
  margin-top: 2px;
  display: none;
}
.od-form-input.is-invalid + .od-form-error { display: block; }

.od-form-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: #16a34a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
  box-shadow: 0 3px 12px rgba(22,163,74,.2);
}
.od-form-btn:hover { background: #15803d; }

/* Honeypot */
.od-hp { display: none !important; visibility: hidden !important; }

/* Privacy checkbox */
.od-form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.6;
}
.od-form-privacy input[type="checkbox"] {
  margin-top: 4px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #16a34a;
}
.od-form-privacy a {
  color: #0d9488;
  text-decoration: underline;
}

/* --- Sidebar ------------------------------------------------- */
.od-sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.od-sidebar-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.od-sidebar-tipo {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #0369a1;
  margin-bottom: 4px;
}
.od-sidebar-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}
.od-sidebar-loc {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}
.od-sidebar-loc .fa { color: #0d9488; margin-right: 3px; }

.od-sidebar-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.od-sidebar-rating .fa { color: #f5a623; }

.od-sidebar-link {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0d9488;
  text-decoration: none !important;
  border-top: 1px solid #f0f2f4;
  margin-top: 8px;
  padding-top: 12px;
}
.od-sidebar-link:hover { color: #0f766e; }

/* Prezzo riepilogo sidebar */
.od-sidebar-price {
  text-align: center;
  border: 2px solid #e11d48;
}
.od-sidebar-price-label {
  font-size: 11px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.od-sidebar-price-amount {
  font-size: 2rem;
  font-weight: 900;
  color: #e11d48;
}
.od-sidebar-price-old {
  font-size: 14px;
  color: #9ca3af;
  text-decoration: line-through;
}

/* Mappa sidebar */
.od-sidebar-map {
  padding: 0;
  overflow: hidden;
}
.od-sidebar-map-inner {
  height: 180px;
  border-radius: 14px 14px 0 0;
}
.od-sidebar-map-label {
  padding: 8px 14px;
  font-size: 12px;
  color: #6b7280;
}

/* Sidebar sticky desktop */
@media (min-width: 992px) {
  .od-sidebar-sticky { position: sticky; top: 72px; }
  .od-sidebar-col { align-self: flex-start; }
}

/* --- Altre offerte ------------------------------------------- */
.od-other-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 28px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.od-other-title .fa { color: #0d9488; }

.od-other-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: box-shadow .2s;
}
.od-other-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.od-other-card-img {
  flex: 0 0 130px;
  overflow: hidden;
}
.od-other-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 120px;
}
.od-other-card-body {
  flex: 1;
  padding: 12px 14px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.od-other-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.3;
}
.od-other-card-title a { color: inherit; text-decoration: none; }
.od-other-card-title a:hover { color: #0d9488; }

.od-other-card-meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
}
.od-other-card-meta .fa { color: #0d9488; margin-right: 2px; }

/* Badge sconto sull'immagine */
.od-other-card-img { position: relative; }
.od-other-badge-sconto {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e11d48;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.4;
}

/* Date validità */
.od-other-card-dates {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 4px;
}
.od-other-card-dates .fa { color: #0d9488; margin-right: 3px; font-size: 10px; }

/* Estratto descrizione */
.od-other-card-descr {
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.35;
  margin-bottom: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Prezzo con barrato */
.od-other-card-price {
  font-size: 16px;
  font-weight: 800;
  color: #e11d48;
}
.od-other-card-price-old {
  font-size: 12px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 4px;
}

/* --- Mobile -------------------------------------------------- */
@media (max-width: 767px) {
  .od-hero { padding: 0 0 18px; }
  .od-hero-title { font-size: 1.25rem; }
  .od-price-main { font-size: 1.7rem; }

  .od-gallery {
    border-radius: 10px;
    margin-left: 0;
    margin-right: 0;
  }
  .od-gallery-grid {
    height: 220px;
    grid-template-columns: 1fr !important;
  }
  .od-gallery-grid .od-gallery-side { display: none; }

  .od-content { padding: 18px 15px 28px; }
  .od-form-card { padding: 16px; }
  .od-cta { font-size: 14px; padding: 11px 20px; }

  .od-map-inline { height: 160px; }

  .od-other-card-img { flex: 0 0 100px; }
  .od-other-card-body { padding: 10px 10px 10px 0; }
  .od-other-card-title { font-size: 13px; }
  .od-other-card-descr { -webkit-line-clamp: 1; font-size: 10px; }
  .od-other-card-dates { font-size: 10px; }
  .od-other-card-price { font-size: 14px; }
  .od-other-card-price-old { font-size: 11px; }
  .od-other-badge-sconto { font-size: 10px; padding: 1px 5px; }

  /* Privacy checkbox mobile */
  .od-form-privacy {
    font-size: 12px;
    line-height: 1.5;
    gap: 8px;
  }
  .od-form-privacy a {
    display: inline;
  }
}

@media (max-width: 575px) {
  .od-chip--date { font-size: 11px; }
}
