/* =========================== Layout & general spacing =========================== */
.chi-siamo-main { margin-top: 56px; }
.chi-siamo-inner { padding: 48px 0; }

/* =========================
   Gutenberg content wrapper (unico gruppo testo)
   ========================= */
.cs-content{
  padding: 0;
  margin: 10px auto 34px;
}
.cs-content-inner{
  max-width: 980px;
  margin: 0 auto;
}
.cs-content-inner > * + *{
  margin-top: 18px;
}
.cs-content-inner img{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* =========================
   Cards section (repeater) — "Come lavoriamo"
   ========================= */
.cs-how{
  padding: 44px 0 18px;
  text-align: center;
}
.cs-how-header{ margin-bottom: 18px; }
.cs-how-title{
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-text);
}

.cs-how-grid{
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: stretch;
  margin-top: 18px;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width:760px){ .cs-how-grid{ grid-template-columns: repeat(2,1fr); } }
@media (min-width:1100px){ .cs-how-grid{ grid-template-columns: repeat(3,1fr); } }

.cs-how-item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 22px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(16,24,40,0.08);
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
}
.cs-how-icon{
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(32,80,242,0.10);
  color: var(--color-primary);
  margin: 0 0 14px;
}
.cs-how-icon img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}
.cs-how-item-title{
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.2;
}
.cs-how-item-text{
  margin: 0;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

@media (hover:hover){
  .cs-how-item{ transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
  .cs-how-item:hover{
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(16,24,40,0.10);
    border-color: rgba(32,80,242,0.18);
  }
}

/* ============== Statistics (NON MODIFICARE) ============== */
.cs-stats {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  padding-top: 40px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, #61b3ff 0%, #1b57d6 100%);
}

/* Inner container centered and constrained */
.cs-stats-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  box-sizing: border-box;
  color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Grid inside stats: centered cells */
.cs-stats-grid {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
}
@media (max-width: 760px) {
  .cs-stats-grid { grid-template-columns: repeat(1, 1fr); gap: 16px; }
}

/* Compact stat typography */
.cs-stat-item { text-align: center; padding: 6px 10px; }
.cs-stat-value {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}
.cs-stat-label {
  font-size: .98rem;
  color: rgba(255,255,255,0.92);
  margin: 0;
  max-width: 220px;
}

/* =========================== CTA final =========================== */
.cs-cta { padding: 28px 0; } /* compact CTA area */
.cs-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.cs-cta-text { max-width: 760px; }

.cs-cta .cta-button,
.cs-cta .btn-white-to-blue,
.cs-cta .button {
  background: #ffffff;
  color: var(--color-primary);
  padding: 12px 26px;
  font-size: 1.03rem;
  border-radius: 12px;
  min-width: 220px;
  font-weight: 700;
  border: 1px solid var(--color-primary);
  box-shadow: 0 6px 20px rgba(11,95,255,0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}

/* Hover: fill with gradient, text white, border transparent */
.cs-cta .cta-button:hover,
.cs-cta .btn-white-to-blue:hover,
.cs-cta .button:hover {
  background: linear-gradient(180deg, #61b3ff 0%, #1b57d6 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11,95,255,0.16);
  border-color: transparent;
}

/* Focus-visible for accessibility */
.cs-cta .cta-button:focus-visible,
.cs-cta .btn-white-to-blue:focus-visible,
.cs-cta .button:focus-visible {
  outline: 3px solid rgba(11,95,255,0.12);
  outline-offset: 4px;
}

/* Media Responsive */
@media (max-width: 900px) {
  .cs-cta .cta-button, .cs-cta .button { min-width: 200px; padding: 10px 20px; }
  .cs-stat-value { font-size: clamp(1.4rem, 5.5vw, 2.2rem); }
}

/* Small refinements */
.cs-title { color: var(--color-primary); }
.cs-cta-title { color: var(--color-text); }

/* ========================= Reviews area resets (defensive) ========================= */

/* Hide possible placeholder/fake boxes injected by third-party or legacy markup */
.cs-image-placeholder,
.cs-preview-placeholder,
.cs-empty-box,
.cs-fake-rijad {
  display: none !important;
}

/* If a small count or helper is printed directly after the reviews container, hide it */
.cs-reviews + small,
.cs-reviews + .count,
.sedi-map-shortcode-inner + small {
  display: none !important;
}

/* Reviews inner container: neutral reset and spacing */
.cs-reviews-inner {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* If the reviews shortcode outputs a wrapper we want to constrain, make it responsive */
.cs-reviews .reviews,
.cs-reviews .plugin-reviews,
.cs-reviews .review-list {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Accessibility: ensure reviews area spacing is consistent on mobile */
@media (max-width: 760px) {
  .cs-reviews-inner { padding-left: 12px; padding-right: 12px; }
}

.cs-how-sub{
  margin: 10px auto 0;
  max-width: 760px;
  color: var(--color-muted);
  line-height: 1.6;
}