/* Styles for the /caso-reale case-study page (loaded on top of styles.css) */
/* Caso Reale */
.case-study {
  background: #fff;
}

/* Shared title / lead for the page */
.cs-title {
  font-family: var(--ff-secondary);
  color: var(--clr-green);
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.1;
  margin: 0 0 20px;
}
.cs-lead {
  color: var(--clr-muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.4;
  margin: 0;
}
.cs-section {
  padding-block: 50px;
}

/* Navbar */
.cs-navbar {
  padding-block: 20px;
}
.cs-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cs-navbar-logo img {
  height: 75px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.cs-navbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-navbar-links a {
  color: var(--clr-green);
  font-weight: 800;
  font-size: clamp(14px, 1.4vw, 16px);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.cs-navbar-links a:hover {
  opacity: 0.7;
}
.cs-navbar-cta {
  font-family: var(--ff-secondary);
  background: var(--clr-green);
  color: #fff;
  font-size: clamp(14px, 1.3vw, 15px);
  text-decoration: none;
  border-radius: 15px;
  padding: 14px 28px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.cs-navbar-cta:hover {
  background: var(--clr-green-dark);
  color: #fff;
}

/* Hero */
.cs-hero {
  padding-block: 30px;
}
.cs-hero-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}
.cs-hero-text {
  flex: 1;
  min-width: 0;
}
.cs-hero-title {
  font-family: var(--ff-secondary);
  color: var(--clr-green);
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.1;
  margin: 0 0 20px;
}
.cs-hero-lead {
  color: #4a5568;
  font-size: clamp(16px, 1.7vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 20px;
}
.cs-hero-desc {
  color: var(--clr-muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.4;
  margin: 0;
}
.cs-hero-image {
  flex-shrink: 0;
  width: 600px;
  max-width: 50%;
}
.cs-hero-image img {
  width: 100%;
  height: 425px;
  object-fit: cover;
  border-radius: 40px;
  display: block;
}

/* Sticky bar (full-bleed green strip) */
.cs-sticky-bar {
  background: var(--clr-green);
}
.cs-sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
}
.cs-sticky-bar-text {
  color: #fff;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  margin: 0;
}
.cs-sticky-bar-btn {
  flex-shrink: 0;
  font-family: var(--ff-secondary);
  color: #fff;
  font-size: clamp(13px, 1.2vw, 14px);
  text-decoration: none;
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 12px 24px;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.cs-sticky-bar-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Situazione (boxed, header + cards) */
.cs-situation {
  display: flex;
  align-items: center;
  gap: 50px;
  background: #f8fafc;
  border-radius: 50px;
  padding: 65px 100px;
}
.cs-situation-text {
  flex: 1;
  min-width: 0;
}
.cs-situation-cards {
  flex-shrink: 0;
  width: 310px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 25px;
  padding: 5px 15px 5px 5px;
}
.cs-card-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--clr-icon-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-card-icon img {
  width: 28px;
  height: 28px;
}
.cs-card-label {
  font-family: var(--ff-secondary);
  color: var(--clr-green);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.2;
}

/* Soluzione (image + checklist) */
.cs-solution {
  display: flex;
  align-items: center;
  gap: 35px;
}
.cs-solution-image {
  flex-shrink: 0;
  width: 600px;
  max-width: 50%;
}
.cs-solution-image img {
  width: 100%;
  height: 415px;
  object-fit: cover;
  border-radius: 30px;
  display: block;
}
.cs-solution-text {
  flex: 1;
  min-width: 0;
}
.cs-checklist {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cs-checklist li span:last-child {
  color: #111827;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.2;
}
.cs-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--clr-green);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* checkmark drawn in CSS (no asset needed) */
.cs-check::after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -2px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Risultati (boxed, header + stat cards) */
.cs-results {
  background: #f8fafc;
  border-radius: 50px;
  padding: 50px 100px;
}
.cs-results .cs-lead {
  margin-bottom: 30px;
}
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-stat-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  padding: 20px 40px;
  background: #fff;
  border: 1px solid var(--clr-border);
  border-radius: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
  font-family: var(--ff-secondary);
  color: var(--clr-green);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.1;
}

/* Testimonial */
.cs-testimonial {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.cs-testimonial-quote {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
}
.cs-testimonial-card {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background: #fff;
  border: 2px solid var(--clr-green);
  border-radius: 50px;
  padding: 60px;
}
.cs-testimonial-body {
  flex: 1;
  min-width: 0;
  max-width: 700px;
}
.cs-testimonial-title {
  font-family: var(--ff-secondary);
  color: var(--clr-green);
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.1;
  margin: 0 0 24px;
}
.cs-testimonial-text {
  color: #4a5568;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.3;
  margin: 0;
  text-wrap: auto;
}
.cs-testimonial-author {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cs-testimonial-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  object-fit: cover;
}
.cs-testimonial-author strong {
  display: block;
  color: #111827;
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 700;
}
.cs-testimonial-author small {
  color: var(--clr-muted);
  font-size: clamp(14px, 1.4vw, 16px);
}

/* Conversione */
.cs-conversion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background: var(--clr-green);
  border-radius: 50px;
  padding: 50px 100px;
}
.cs-conversion-text {
  flex-shrink: 0;
  width: 470px;
  max-width: 100%;
  color: #fff;
}
.cs-conversion-title {
  font-family: var(--ff-secondary);
  color: #fff;
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.1;
  margin: 0 0 20px;
}
.cs-conversion-subtitle {
  color: #fff;
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.3;
  margin: 0;
}

/* Caso Reale — responsive */
@media (max-width: 992px) {
  .cs-navbar-links {
    display: none;
  }
  .cs-hero-inner,
  .cs-situation,
  .cs-solution,
  .cs-testimonial-card,
  .cs-conversion {
    flex-direction: column;
    align-items: stretch;
  }
  .cs-hero-image,
  .cs-solution-image,
  .cs-conversion-text {
    width: 100%;
    max-width: none;
  }
  .cs-situation-cards {
    width: 100%;
  }
  .cs-solution-image {
    order: -1;
  }
  .cs-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cs-testimonial {
    flex-direction: column;
    align-items: center;
  }
  .cs-testimonial-author {
    align-items: center;
    text-align: center;
    flex-direction: row;
  }
  .cs-testimonial-author__data {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .cs-testimonial-avatar {
    width: 50px;
    height: 50px;
  }
  .cs-hero-text,
  .cs-situation-text,
  .cs-title .cs-lead,
  .cs-conversion-text,
  .cs-testimonial-body {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .cs-navbar-inner {
    flex-direction: column;
    gap: 14px;
  }
  .cs-navbar-logo img {
    height: 50px;
  }
  .cs-situation,
  .cs-results,
  .cs-conversion {
    padding: 32px 24px;
    border-radius: 28px;
  }
  .cs-testimonial-card {
    padding: 32px 24px;
    border-radius: 28px;
  }
  .cs-testimonial-quote {
    width: 90px;
    height: 90px;
  }
  .cs-results-grid {
    grid-template-columns: 1fr;
  }
  .cs-sticky-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .cs-hero-image img,
  .cs-solution-image img {
    height: 260px;
  }
  .cs-stat-card {
    min-height: unset;
  }
  .cs-results-grid {
    gap: 16px;
  }
  .feature-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .feature-icon {
    width: 40px;
    height: 40px;
  }
  .feature-icon img {
    width: 20px;
    height: 20px;
  }
  .feature-card p {
    line-height: 1.3;
  }
}
