/* Home — estende pe-catalog (stesso sistema di /pachetti/). Solo pezzi in più. */

.pe-catalog.pe-home > .pe-catalog-hero {
  background:
    linear-gradient(115deg, rgba(201, 15, 46, 0.78) 0%, rgba(26, 34, 56, 0.72) 55%, rgba(26, 34, 56, 0.55) 100%),
    #c90f2e url("https://festeanimazione.it/wp-content/uploads/pe-home/team-hero.webp") center 30%/cover no-repeat;
}

body:has(.pe-catalog.pe-home) .page-header,
body:has(.pe-catalog.pe-home) .entry-title {
  display: none !important;
}

body:has(.pe-catalog.pe-home) #content.site-main,
body:has(.pe-catalog.pe-home) .page-content,
body:has(.pe-catalog.pe-home) .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* Trust row */
.pe-home-trust {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 8px;
}
.pe-home-trust__item {
  background: #fff;
  border: 1px solid var(--pe-line, #e4e0d8);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
}
.pe-home-trust__item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}
.pe-home-trust__item span {
  color: var(--pe-muted, #5a6478);
  font-size: 0.88rem;
}
.pe-home-zones {
  margin: 22px 0 0;
  text-align: center;
  font-weight: 700;
  color: var(--pe-muted, #5a6478);
  font-size: 0.95rem;
}

/* Split blocks */
.pe-home-split {
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 860px) {
  .pe-home-split { grid-template-columns: 1.05fr 0.95fr; }
}
.pe-home-split__media {
  margin: 0;
}
.pe-home-split__media img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: 0 12px 30px rgba(26, 34, 56, 0.1);
}
.pe-home-split__media figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--pe-muted, #5a6478);
}

/* Steps */
.pe-home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: pe-home-step;
}
.pe-home-steps li {
  background: #fff;
  border: 1px solid var(--pe-line, #e4e0d8);
  border-radius: 16px;
  padding: 18px 16px;
  counter-increment: pe-home-step;
}
.pe-home-steps li::before {
  content: counter(pe-home-step, decimal-leading-zero);
  display: block;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--pe-red, #e91d39);
  margin-bottom: 8px;
}

/* Reviews */
.pe-home-reviews {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pe-home-review {
  margin: 0;
  background: #fff;
  border: 1px solid var(--pe-line, #e4e0d8);
  border-top: 3px solid var(--pe-red, #e91d39);
  border-radius: 0 0 16px 16px;
  padding: 18px 16px;
}
.pe-home-review blockquote { margin: 0 0 12px; }
.pe-home-review blockquote p { margin: 0; color: var(--pe-ink, #1a2238); }
.pe-home-review figcaption {
  font-weight: 800;
  color: var(--pe-red, #e91d39);
  font-size: 0.9rem;
}

/* Portfolio placeholder */
.pe-home-portfolio {
  display: grid;
  gap: 20px;
}
@media (min-width: 800px) {
  .pe-home-portfolio { grid-template-columns: 1.1fr 0.9fr; align-items: stretch; }
}
.pe-home-portfolio__ph {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 220px;
  padding: 24px;
  border: 2px dashed var(--pe-line, #e4e0d8);
  border-radius: 20px;
  background: #fff;
  font-weight: 800;
  color: var(--pe-muted, #5a6478);
}
.pe-home-portfolio__ph small {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

/* Why list */
.pe-home-why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pe-home-why li {
  background: #fff;
  border-left: 4px solid var(--pe-red, #e91d39);
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
}
.pe-home-why strong { display: block; margin-bottom: 2px; }

/* FAQ */
.pe-home-faq { max-width: 720px; }
.pe-home-faq details {
  border-bottom: 1px solid var(--pe-line, #e4e0d8);
  padding: 14px 0;
}
.pe-home-faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.02rem;
  list-style: none;
}
.pe-home-faq summary::-webkit-details-marker { display: none; }
.pe-home-faq p {
  margin: 10px 0 0;
  color: var(--pe-muted, #5a6478);
}

/* Preventivo band — stesso linguaggio giallo/rosso del catalogo */
.pe-home-lead {
  background: linear-gradient(125deg, #ffdf55, #fff0a3);
  border-radius: 23px;
  padding: clamp(28px, 4vw, 40px);
  margin: 0 auto;
  max-width: 1120px;
  box-shadow: 0 6px 30px rgba(221, 155, 0, 0.08);
}
.pe-home-lead .pe-catalog-kicker { color: var(--pe-red, #e91d39); }
.pe-home-lead h2 { margin: 0 0 10px; }
.pe-home-lead .pe-catalog-sub { margin-bottom: 16px; color: var(--pe-ink, #1a2238); }
.pe-home-lead .pe-home-contacts {
  margin: 0 0 16px;
  font-weight: 700;
}
.pe-home-lead .pe-home-contacts a {
  color: var(--pe-ink, #1a2238);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pe-home-lead .wpcf7 {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--pe-line, #e4e0d8);
}

/* Card dual CTAs */
.pe-catalog-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pe-catalog-card__actions .pe-catalog-card__cta {
  flex: 1;
  min-width: 120px;
}
.pe-catalog-card__cta--ghost {
  background: #fff !important;
  color: var(--pe-red, #e91d39) !important;
  border: 2px solid var(--pe-red, #e91d39);
  box-shadow: none;
}

/* CF7 in blocco Shortcode Gutenberg (dopo #preventivo) */
.pe-home-cf7-card.pe-catalog-form-card,
.wp-block-group.pe-home-cf7-card {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: -8px auto 28px;
  box-sizing: border-box;
}
.pe-home-cf7-note {
  margin: 0 auto 48px;
}
.pe-home-cf7-note .pe-catalog-wrap {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
  box-sizing: border-box;
}
.pe-home-cf7-card .wpcf7 {
  margin: 0;
}

@media (max-width: 900px) {
  .pe-home-trust,
  .pe-home-reviews,
  .pe-home-steps { grid-template-columns: 1fr; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .pe-home-trust,
  .pe-home-reviews { grid-template-columns: 1fr 1fr; }
  .pe-home-steps { grid-template-columns: 1fr 1fr; }
}
