/* ==============================================
   PAGINA VENDI CASA (page-vendi-casa.php) — caricato solo su questa pagina
   Classi .dcv-*. Il form valutazione in fondo usa le classi della home (style.css).
   ============================================== */

.dcv {
  --dcv-violet: #503699;
  --dcv-deep: #2d1e5e;
  --dcv-night: #160F2C;
  --dcv-red: #E2313A;
  --dcv-tint: #F7F5FB;
  --dcv-line: #ECE7F4;
  --dcv-ink: #2b2733;
  --dcv-muted: #5f5873;
  color: var(--dcv-ink);
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
.dcv *, .dcv *::before, .dcv *::after { box-sizing: border-box; }
.dcv h1, .dcv h2, .dcv h3 {
  font-family: 'Nunito', sans-serif;
  color: var(--dcv-deep);
  margin: 0;
  text-transform: none;
}
.dcv h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.dcv h3 { font-size: 18px; font-weight: 800; line-height: 1.3; }
.dcv p { margin: 0 0 1em; }
.dcv a { text-decoration: none; }
.dcv a:focus-visible, .dcv summary:focus-visible { outline: 3px solid var(--dcv-red); outline-offset: 3px; border-radius: 6px; }

.dcv-wrap { max-width: 1208px; margin: 0 auto; padding: 0 24px; }
.dcv-wrap--narrow { max-width: 860px; }
.dcv-section { padding: 96px 0; background: #fff; } /* il body del tema è lavanda */
.dcv-section--tint { background: var(--dcv-tint); }

.dcv-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.dcv-head h2 { margin-bottom: 14px; }
.dcv-head p { color: var(--dcv-muted); font-size: 1.1rem; margin: 0; }

/* Bottoni */
.dcv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  transition: background .2s, border-color .2s, transform .2s;
}
.dcv-btn svg { width: 18px; height: 18px; }
.dcv-btn:hover { transform: translateY(-2px); }
.dcv-btn--red { background: var(--dcv-red); color: #fff !important; box-shadow: 0 8px 22px -8px rgba(226, 49, 58, 0.65); }
.dcv-btn--red:hover { background: #c4242c; }
.dcv-btn--glass {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.dcv-btn--glass:hover { background: rgba(255, 255, 255, 0.16); border-color: #fff; }
.dcv-btn--light { background: #fff; color: var(--dcv-deep) !important; }
.dcv-btn--light:hover { background: var(--dcv-tint); }

/* 1. Apertura: stessa impostazione della hero della home */
.dcv-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(560px, 72vh);
  padding: 72px 0;
  overflow: hidden;
  background: var(--dcv-night);
}
.dcv-hero-bg, .dcv-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dcv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(22, 15, 44, 0.85) 0%, rgba(22, 15, 44, 0.62) 45%, rgba(22, 15, 44, 0.15) 80%, rgba(22, 15, 44, 0) 100%),
    linear-gradient(0deg, rgba(22, 15, 44, 0.4) 0%, rgba(22, 15, 44, 0) 45%);
}
.dcv-hero-inner { position: relative; z-index: 2; width: 100%; }
.dcv-breadcrumb { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.65); margin-bottom: 22px; }
.dcv-breadcrumb a { color: rgba(255, 255, 255, 0.65); }
.dcv-breadcrumb a:hover, .dcv-breadcrumb [aria-current] { color: #fff; }
.dcv-hero h1 {
  color: #fff !important;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 13em;
  margin-bottom: 20px;
}
.dcv-hero h1::before {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--dcv-red);
  margin-bottom: 26px;
}
.dcv .dcv-hero-sub { color: rgba(255, 255, 255, 0.88); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 34em; margin-bottom: 34px; }
.dcv-hero-sub strong { color: #fff; }
.dcv-hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* 2. Numeri */
.dcv-stats { background: #fff; padding: 44px 0 28px; border-bottom: 1px solid var(--dcv-line); }
.dcv-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.dcv-stat { padding: 0 24px 0 0; border-right: 1px solid var(--dcv-line); }
.dcv-stat:last-child { border-right: 0; }
.dcv-stat strong {
  display: block;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 900;
  color: var(--dcv-violet);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.dcv-stat small { font-size: 0.45em; font-weight: 800; letter-spacing: 0; }
.dcv-stat span { display: block; font-size: 14px; color: var(--dcv-muted); line-height: 1.5; }
.dcv .dcv-source { font-size: 12px; color: #9a93ab; margin: 22px auto 0; }

/* 3. Il metodo */
.dcv-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
/* linea che unisce i numeri */
.dcv-steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: var(--dcv-line);
}
.dcv-step { position: relative; }
.dcv-step-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--dcv-violet);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px #fff;
}
.dcv-step h3 { margin-bottom: 8px; }
.dcv-step p { font-size: 15px; color: var(--dcv-muted); margin: 0; }

/* 4. Servizi */
.dcv-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dcv-service {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--dcv-line);
  border-radius: 16px;
  padding: 24px;
}
.dcv-service-icon {
  flex: 0 0 48px;
  height: 48px;
  border-radius: 12px;
  background: #ECE6F6;
  color: var(--dcv-violet);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dcv-service h3 { font-size: 17px; margin-bottom: 4px; }
.dcv-service p { font-size: 15px; color: var(--dcv-muted); margin: 0; line-height: 1.55; }

/* 5. Open house */
.dcv-oh-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}
.dcv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7B6BAE;
  margin-bottom: 12px;
}
.dcv-kicker::before { content: ''; width: 24px; height: 2px; border-radius: 1px; background: var(--dcv-red); }
.dcv-oh-intro h2 { margin-bottom: 18px; }
.dcv-oh-intro p { color: var(--dcv-muted); font-size: 1.08rem; }

.dcv-oh-video {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(40, 24, 90, 0.5);
}
.dcv-oh-video img { display: block; width: 100%; height: auto; transition: transform .5s; }
.dcv-oh-video:hover img { transform: scale(1.03); }
.dcv-oh-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--dcv-red);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
}
.dcv-oh-video-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(22, 15, 44, 0.8), rgba(22, 15, 44, 0));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.dcv .dcv-oh-subtitle { font-size: 22px; margin-bottom: 20px; }
.dcv-oh-how {
  list-style: none;
  counter-reset: oh;
  margin: 0 0 48px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.dcv-oh-how li {
  counter-increment: oh;
  background: var(--dcv-tint);
  border-radius: 14px;
  padding: 20px 18px 18px;
  font-size: 15px;
  color: var(--dcv-muted);
  line-height: 1.55;
}
.dcv-oh-how li::before {
  content: counter(oh);
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--dcv-red);
  margin-bottom: 6px;
}
.dcv-oh-how strong { display: block; color: var(--dcv-deep); font-size: 16px; margin-bottom: 4px; }

.dcv-oh-pros { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dcv-oh-card {
  border: 1px solid var(--dcv-line);
  border-radius: 16px;
  padding: 28px 30px;
  background: #fff;
  box-shadow: 0 16px 36px -28px rgba(40, 24, 90, 0.35);
}
.dcv-oh-card h3 { font-size: 19px; margin-bottom: 16px; }
.dcv-oh-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dcv-oh-card li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.55; color: var(--dcv-ink); }
.dcv-oh-card li svg { flex: 0 0 20px; width: 20px; height: 20px; color: #2e9e5b; margin-top: 2px; }

/* 6. Provvigione */
.dcv-pay { background: linear-gradient(135deg, var(--dcv-violet) 0%, var(--dcv-deep) 100%); padding: 64px 0; }
.dcv-pay-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.dcv-pay h2 { color: #fff !important; margin-bottom: 12px; }
.dcv .dcv-pay p { color: rgba(255, 255, 255, 0.86); max-width: 40em; margin: 0; }
.dcv-pay strong { color: #fff; }
.dcv-pay .dcv-btn { flex-shrink: 0; }

/* 7. Recensioni */
.dcv-reviews * { font-family: 'Nunito', sans-serif !important; }

/* 8. Domande frequenti */
.dcv-faq { display: grid; gap: 12px; }
.dcv-faq-item {
  background: #fff;
  border: 1px solid var(--dcv-line);
  border-radius: 14px;
  overflow: hidden;
}
.dcv-faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-size: 17px;
  font-weight: 800;
  color: var(--dcv-deep);
  line-height: 1.4;
}
.dcv-faq-item summary::-webkit-details-marker { display: none; }
.dcv-faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2.5px solid var(--dcv-violet);
  border-bottom: 2.5px solid var(--dcv-violet);
  transform: rotate(45deg);
  transition: transform .2s;
}
.dcv-faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.dcv .dcv-faq-item p { padding: 0 24px 22px; margin: 0; color: var(--dcv-muted); font-size: 16px; }
.dcv .dcv-faq-more { text-align: center; margin: 28px 0 0; color: var(--dcv-muted); }
.dcv-faq-more a { color: var(--dcv-violet); font-weight: 800; border-bottom: 1.5px solid #D9D0EC; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .dcv-steps { grid-template-columns: 1fr; gap: 0; }
  .dcv-steps::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; }
  .dcv-step { display: grid; grid-template-columns: 46px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .dcv-step-num { grid-row: 1 / span 2; margin: 0; }
  .dcv-step h3 { align-self: center; margin: 10px 0 6px; }
  .dcv-services { grid-template-columns: 1fr 1fr; }
  .dcv-oh-intro { grid-template-columns: 1fr; gap: 32px; }
  .dcv-oh-how { grid-template-columns: 1fr 1fr; }
  .dcv-stats-grid { grid-template-columns: 1fr 1fr; }
  .dcv-stat:nth-child(2) { border-right: 0; }
}

@media (max-width: 768px) {
  .dcv { font-size: 16px; }
  .dcv-wrap { padding: 0 20px; }
  .dcv-section { padding: 56px 0; }
  .dcv-head { margin-bottom: 32px; }
  .dcv-hero { align-items: flex-end; min-height: 0; padding: 180px 0 40px; }
  .dcv-hero::before { background: linear-gradient(0deg, rgba(22, 15, 44, 0.9) 0%, rgba(22, 15, 44, 0.6) 55%, rgba(22, 15, 44, 0.15) 90%); }
  .dcv-hero h1::before { width: 44px; margin-bottom: 20px; }
  .dcv-hero-cta { flex-direction: column; }
  .dcv-hero-cta .dcv-btn { width: 100%; }
  .dcv-stats { padding: 32px 0 20px; }
  .dcv-stat { padding: 0 12px 0 0; }
  .dcv-stat span { font-size: 13px; }
  .dcv-services { grid-template-columns: 1fr; gap: 12px; }
  .dcv-service { padding: 18px; }
  .dcv-oh-how { grid-template-columns: 1fr; }
  .dcv-oh-pros { grid-template-columns: 1fr; }
  .dcv-oh-card { padding: 22px 20px; }
  .dcv-pay { padding: 48px 0; }
  .dcv-pay-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .dcv-pay .dcv-btn { width: 100%; }
  .dcv-faq-item summary { padding: 18px 48px 18px 18px; font-size: 16px; }
  .dcv-faq-item summary::after { right: 20px; }
  .dcv .dcv-faq-item p { padding: 0 18px 18px; font-size: 15px; }
}
