/* ===========================================================================
   Guida — Quanto costa un agriturismo (guida-v1.css)
   Palette coordinata col portale: teal/grigio, pastello, bordi sottili, 600.
   Mobile first.
   =========================================================================== */

.gq-main { color: #1f2937; }
.gq-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.gq-hero {
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 32px 0 28px;
  text-align: center;
}
.gq-hero .gq-wrap { padding: 0 16px; }
.gq-hero-art { width: 150px; max-width: 60%; margin: 0 auto 8px; }
.gq-hero-art svg { display: block; width: 100%; height: auto; }
@media (min-width: 720px) { .gq-hero-art { width: 180px; } }

/* hero a due colonne (desktop) */
.gq-hero-grid { display: grid; gap: 14px; justify-items: center; }
@media (min-width: 760px) {
  .gq-hero { text-align: left; }
  .gq-hero-grid { grid-template-columns: 210px 1fr; align-items: center; justify-items: stretch; gap: 30px; }
  .gq-hero-art { width: 210px; max-width: 210px; margin: 0; order: 1; }
  .gq-hero-text { order: 2; }
  .gq-intro { margin: 0; max-width: 640px; }
}
.gq-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #ccfbf1; color: #0f766e;
  font-size: 13px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.gq-h1 {
  font-size: 28px; font-weight: 600; line-height: 1.2;
  margin: 14px 0 10px; color: #0f172a;
}
.gq-intro {
  font-size: 16px; line-height: 1.6; color: #475569;
  max-width: 720px; margin: 0 auto;
}

/* ── TOOL (form + risultato) ──────────────────────────────────────────────── */
.gq-tool {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 22px; margin: -22px auto 28px; position: relative;
  box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}
.gq-tool-title { font-size: 18px; font-weight: 600; margin: 0 0 16px; color: #0f172a; }

.gq-form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.gq-field { position: relative; display: flex; flex-direction: column; }
.gq-field label, .gq-lbl {
  font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px;
}
.gq-field input, .gq-field select {
  width: 100%; height: 46px; padding: 0 14px;
  border: 1px solid #cbd5e1; border-radius: 10px;
  font-size: 15px; color: #0f172a; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.gq-field input:focus, .gq-field select:focus {
  outline: none; border-color: #14b8a6; box-shadow: 0 0 0 3px rgba(20, 184, 166, .15);
}

/* campo "Dove vuoi andare" — prominente + lampeggio invitante */
.gq-field-dove label { font-size: 14px; color: #0f766e; }
.gq-dove-wrap { position: relative; }
.gq-dove-ic {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #14b8a6; font-size: 17px; pointer-events: none; z-index: 1;
}
.gq-field-dove input {
  height: 56px; padding-left: 46px; font-size: 16px; font-weight: 600;
  border: 2px solid #14b8a6; border-radius: 12px; background: #f0fdfa;
}
.gq-field-dove input::placeholder { font-weight: 400; color: #94a3b8; }
.gq-field-dove input:focus { background: #fff; }
/* lampeggio leggero finché il campo è vuoto e non a fuoco */
.gq-field-dove input:placeholder-shown:not(:focus) { animation: gqPulse 1.9s ease-in-out infinite; }
@keyframes gqPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0); border-color: #5eead4; }
  50%      { box-shadow: 0 0 0 6px rgba(20, 184, 166, .18); border-color: #14b8a6; }
}
@media (prefers-reduced-motion: reduce) { .gq-field-dove input { animation: none !important; } }

/* autocomplete */
.gq-ac {
  list-style: none; margin: 4px 0 0; padding: 6px; display: none;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, .12); max-height: 280px; overflow-y: auto;
}
.gq-ac li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.gq-ac li:hover { background: #f0fdfa; }
.gq-ac-n { font-weight: 600; color: #0f172a; }
.gq-ac-t { font-size: 12px; color: #94a3b8; text-transform: capitalize; }

/* toggle trattamento */
.gq-toggle { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 4px; }
.gq-tg {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #64748b;
}
.gq-tg-on { background: #fff; color: #0f766e; box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* gruppo stagioni: 4 tag a tutta larghezza, vanno a capo su mobile */
.gq-toggle-st { display: flex; flex-wrap: wrap; width: 100%; gap: 4px; }
.gq-toggle-st .gq-tg { flex: 1 1 42%; text-align: center; padding: 9px 10px; }
@media (min-width: 720px) { .gq-toggle-st .gq-tg { flex: 1 1 0; white-space: nowrap; } }

/* ── RISULTATO ────────────────────────────────────────────────────────────── */
.gq-result { margin-top: 18px; }
.gq-res-card {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  color: #fff; border-radius: 14px; padding: 20px 22px;
  animation: gqAppear .38s cubic-bezier(.2,.7,.3,1);
}
@keyframes gqAppear {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.gq-res-price { animation: gqPricePop .45s .05s cubic-bezier(.2,.7,.3,1) both; }
@keyframes gqPricePop {
  0% { opacity: 0; transform: translateY(6px); }
  60% { transform: translateY(-2px); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gq-res-card, .gq-res-price { animation: none !important; }
}
.gq-res-head { font-size: 15px; opacity: .95; }
.gq-res-head strong { font-weight: 600; }
.gq-res-price { font-size: 40px; font-weight: 600; line-height: 1.1; margin: 6px 0 2px; }
.gq-res-unit { font-size: 16px; font-weight: 400; opacity: .85; }
.gq-res-attr { font-size: 13px; opacity: .85; margin-bottom: 14px; }
.gq-res-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.gq-tag {
  display: inline-block; font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; padding: 2px 8px; border-radius: 6px; vertical-align: middle;
}
.gq-tag-ok  { background: #ccfbf1; color: #0f766e; }
.gq-tag-est { background: #fef3c7; color: #92400e; }
.gq-tag-ind { background: #e2e8f0; color: #475569; }

/* mini-badge nella tabella */
.gq-mini { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em; padding: 1px 6px; border-radius: 5px; margin-left: 6px; vertical-align: middle; }
.gq-mini-ind { background: #e2e8f0; color: #64748b; }

.gq-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #0f766e !important; text-decoration: none;
  font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 10px;
}
.gq-cta:hover { background: #f0fdfa; }
.gq-cta-2 { background: rgba(255, 255, 255, .15); color: #fff !important; }
.gq-cta-2:hover { background: rgba(255, 255, 255, .25); }

/* stato iniziale (nessuna ricerca) */
.gq-prompt {
  display: flex; align-items: center; gap: 14px;
  min-height: 132px; padding: 18px 22px;
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 14px;
}
.gq-prompt-ic {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  background: #ccfbf1; color: #0f766e; display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.gq-prompt-tit { font-weight: 600; color: #0f172a; font-size: 16px; }
.gq-prompt-txt { margin: 4px 0 0; color: #64748b; font-size: 14px; line-height: 1.5; }

/* loading risultato */
.gq-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 132px; color: #0f766e; font-weight: 600; font-size: 15px;
  background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 14px;
}
.gq-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid #99f6e4; border-top-color: #0d9488;
  animation: gqSpin .7s linear infinite;
}
@keyframes gqSpin { to { transform: rotate(360deg); } }

/* dato non disponibile */
.gq-nd { background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 12px; padding: 18px; }
.gq-nd-tit { font-weight: 600; color: #0f172a; margin-bottom: 6px; }
.gq-nd p { color: #64748b; font-size: 14px; margin: 0 0 12px; }

/* ── TABELLA ──────────────────────────────────────────────────────────────── */
.gq-table-wrap { margin: 8px 0 34px; }
.gq-table-title { font-size: 20px; font-weight: 600; color: #0f172a; margin: 0 0 14px; }
.gq-table-scroll { overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 14px; }
.gq-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gq-table thead th {
  background: #f8fafc; text-align: left; font-weight: 600; color: #475569;
  font-size: 13px; padding: 12px 16px; border-bottom: 1px solid #e2e8f0;
}
.gq-table tbody td { padding: 13px 16px; border-bottom: 1px solid #f1f5f9; }
.gq-table tbody tr:last-child td { border-bottom: 0; }
.gq-table tbody tr:hover { background: #f0fdfa; }
.gq-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.gq-table a { color: #0f766e; font-weight: 600; text-decoration: none; }
.gq-table a:hover { text-decoration: underline; }
.gq-num { text-align: right; white-space: nowrap; color: #334155; }
.gq-num strong { color: #0f172a; font-weight: 600; }
.gq-note { font-size: 12px; color: #94a3b8; margin: 10px 2px 0; line-height: 1.5; }
.gq-update {
  display: inline-flex; align-items: center; gap: 6px; margin: 12px 2px 0;
  font-size: 12px; font-weight: 600; color: #0f766e;
  background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 999px; padding: 4px 12px;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.gq-faq { margin: 0 0 44px; }
.gq-faq-title { font-size: 20px; font-weight: 600; color: #0f172a; margin: 0 0 14px; }
.gq-faq-item {
  border: 1px solid #e2e8f0; border-radius: 12px; padding: 0; margin-bottom: 10px;
  background: #fff; overflow: hidden;
}
.gq-faq-item summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; color: #0f172a; font-size: 15px;
  list-style: none;
}
.gq-faq-item summary::-webkit-details-marker { display: none; }
.gq-faq-item summary::after { content: '+'; float: right; color: #14b8a6; font-size: 20px; line-height: 1; }
.gq-faq-item[open] summary::after { content: '\2212'; }
.gq-faq-item p { padding: 0 18px 16px; margin: 0; color: #475569; line-height: 1.6; font-size: 15px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .gq-hide-sm { display: none; }
  .gq-res-price { font-size: 34px; }
}
@media (min-width: 720px) {
  .gq-h1 { font-size: 34px; }
  .gq-form { grid-template-columns: 2fr 1fr; align-items: end; }
  .gq-field-dove { grid-column: 1 / -1; }
}
