/* ============================================================
   AFFACCIATI — demo.css
   Stili della pagina "Servizi extra" (servizi.html).
   Si appoggia a style.css per variabili, bottoni, nav, footer.
   ============================================================ */

.demo-page { background: var(--paper); }

/* ---------- Intestazione scura ---------- */
.demo-hero {
  background: radial-gradient(120% 90% at 50% 0%, #1d1d20 0%, var(--ink) 70%);
  padding: 7.5rem 0 4rem;
}
.demo-hero .lead { margin-top: 1.4rem; }
.demo-hero strong { color: var(--amber); font-weight: 600; }

/* ---------- Layout: indice + contenuto ---------- */
.demo-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem 4rem; align-items: start; }
@media (min-width: 900px) {
  .demo-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 3.5rem; }
}

/* ---------- Indice (scrollspy) ---------- */
.toc {
  position: sticky; top: 64px; z-index: 50;
  background: var(--paper);
  padding-block: .8rem;
}
.toc-title {
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--grey); margin-bottom: .6rem;
}
.toc-links { display: flex; gap: .35rem; }
.toc-links a {
  display: block;
  text-decoration: none;
  font-weight: 600; font-size: .92rem;
  color: #5b5b60;
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, background-color .2s, border-color .2s;
}
.toc-links a:hover { color: var(--ink); background: rgba(15, 15, 16, .05); }
.toc-links a.is-active { color: #fff; background: var(--ink); }
/* niente flash grigio al tocco su mobile */
.toc-links a, .chip, .stock-toggle, .pay-btn { -webkit-tap-highlight-color: transparent; }

/* mobile: indice orizzontale scorrevole, appiccicato sotto la nav */
@media (max-width: 899px) {
  .toc { margin-inline: -1.5rem; padding-inline: 1.5rem; box-shadow: 0 8px 16px -12px rgba(15,15,16,.25); }
  .toc-title { display: none; }
  .toc-links { overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .toc-links::-webkit-scrollbar { display: none; }
}
@media (min-width: 900px) {
  .toc { top: 90px; padding: 0; }
  .toc-links { flex-direction: column; }
}

/* ---------- Sezioni demo ---------- */
.demo-main { display: grid; gap: 1.6rem; min-width: 0; }
.demo-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 6px 24px rgba(15, 15, 16, .06);
  scroll-margin-top: 130px;
}
.demo-head { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.demo-head h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); font-weight: 800; letter-spacing: -.01em; }
.demo-section > p { color: #4c4c50; }
.demo-section > p + p { margin-top: .6rem; }

.demo-badge {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(15, 15, 16, .07); color: #5b5b60;
}
.demo-badge--live { background: rgba(46, 196, 182, .15); color: #14776d; }
.demo-badge--try { background: rgba(255, 179, 71, .2); color: #a36412; }
.demo-badge--off { background: rgba(255, 107, 91, .14); color: #c2462f; }

.demo-note { font-size: .88rem; color: var(--grey); margin-top: .9rem; }
.demo-status { font-weight: 600; min-height: 1.4em; margin-top: .8rem; color: #14776d; }

/* ---------- Mappa ---------- */
.map-wrap { margin-top: 1.2rem; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(15,15,16,.1); }
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Recensioni ---------- */
.reviews { display: grid; gap: 1rem; margin-top: 1.2rem; }
@media (min-width: 700px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--paper);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  font-size: .95rem; color: #4c4c50;
}
.review-stars { color: var(--amber); letter-spacing: .15em; font-size: 1.05rem; margin-bottom: .5rem; }
.review-meta { margin-top: .7rem; font-size: .82rem; color: var(--grey); font-weight: 600; }

/* ---------- Prenotazioni ---------- */
.booking { margin-top: 1.2rem; }
.booking-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--grey); margin: 1.1rem 0 .5rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink);
  border: 2px solid #e4ded2;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--sky); }
.chip.is-selected { background: var(--sky); border-color: var(--sky); color: #fff; }
.booking .btn { margin-top: 1.3rem; }
.booking .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Gestionale ---------- */
.stock { margin-top: .4rem; }
.stock-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid #eee8db;
}
.stock-name { font-weight: 600; flex: 1; }
.stock-price { color: var(--grey); font-variant-numeric: tabular-nums; }
.stock-toggle {
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  padding: .35rem .9rem; border-radius: 999px; border: none; min-width: 105px;
  background: rgba(255, 107, 91, .15); color: #c2462f;
  transition: background-color .2s, color .2s;
}
.stock-toggle.is-on { background: rgba(46, 196, 182, .16); color: #14776d; }

/* ---------- Pagamenti ---------- */
.checkout {
  margin-top: 1.2rem;
  background: var(--paper); border-radius: 14px; padding: 1.3rem 1.4rem;
}
.checkout-row {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-bottom: .9rem; border-bottom: 1px dashed #d8d2c6; margin-bottom: 1rem;
  color: #4c4c50;
}
.checkout-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.pay-btn {
  font: inherit; font-weight: 700; cursor: pointer;
  padding: .65rem 1.4rem; border-radius: 12px;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  transition: transform .2s, opacity .2s;
}
.pay-btn:nth-child(2) { background: #fff; color: var(--ink); }
.pay-btn:nth-child(3) { background: var(--coral); border-color: var(--coral); }
.pay-btn:hover { transform: translateY(-2px); }

/* ---------- Google & pubblicità ---------- */
.seo-list { margin-top: .8rem; display: grid; gap: .7rem; padding-left: 0; }
.seo-list li {
  list-style: none; color: #4c4c50;
  padding-left: 1.1rem; position: relative;
}
.seo-list li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.seo-list li:nth-child(2)::before { background: var(--coral); }
.serp {
  background: #fff; border: 1px solid #e4ded2; border-radius: 14px;
  padding: 1.1rem 1.3rem; max-width: 560px;
  font-family: Arial, sans-serif;
}
.serp-url { font-size: .8rem; color: #1a6d2c; }
.serp-title { color: #1a0dab; font-size: 1.15rem; margin-top: .15rem; }
.serp-desc { font-size: .88rem; color: #4d5156; margin-top: .25rem; }
.serp-stars { color: #f8af1d; font-size: .85rem; margin-top: .35rem; }
.serp-stars span { color: #4d5156; }

/* ---------- E ancora ---------- */
.extras { display: grid; gap: 1rem; margin-top: .6rem; }
@media (min-width: 700px) { .extras { grid-template-columns: 1fr 1fr; } }
.extra { background: var(--paper); border-radius: 14px; padding: 1.1rem 1.3rem; }
.extra h3 { font-size: 1.02rem; font-weight: 700; }
.extra p { font-size: .92rem; color: #5b5b60; margin-top: .3rem; }

/* ---------- CTA finale ---------- */
.demo-cta {
  background: radial-gradient(120% 120% at 85% 0%, rgba(46, 196, 182, .25) 0%, transparent 50%),
              linear-gradient(160deg, var(--navy) 0%, var(--deep) 100%);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  text-align: center;
}
.demo-cta .display { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.demo-cta .lead { margin: 1rem auto 1.6rem; }
