/* =========================================================
   HOME.CSS – stili aggiuntivi per la homepage
   Da includere DOPO pag_style.css
   Palette ereditata: white / grey / #0176B8
   ========================================================= */

/* =========================================================
   HERO – layout 2 colonne
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.hero-eyebrow {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Pannello visivo destra */
.hero-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 0 22px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-panel-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 8px;
}

.hero-stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--accent-dark);
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
  text-align: center;
}

.hero-panel-divider {
  height: 1px;
  background: var(--line);
  margin-bottom: 14px;
}

.hero-panel-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-resolved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-resolved-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.resolved-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ea97c;
  flex-shrink: 0;
  margin-top: 5px;
}

.hero-photo {
  margin: 18px -22px 0 -22px;
  overflow: hidden;
  flex: 1;
  min-height: 180px;
  max-height: 240px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* =========================================================
   SOCIAL PROOF – testimonianze
   ========================================================= */
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.testi-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin: 0;
}

.testi-stars {
  color: #d97706;
  font-size: 15px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.testi-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin-bottom: 14px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.testi-author strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.testi-author span {
  font-size: 12px;
  color: var(--muted);
}

/* pillole settori */
.sectors-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.sectors-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.sector-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* =========================================================
   PROBLEMI – grid 2x2
   ========================================================= */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.problem-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: .2s ease;
}

.problem-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(1,118,184,0.35);
}

.problem-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.problem-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.problem-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* =========================================================
   SERVIZI – card featured
   ========================================================= */
.card-featured {
  border: 2px solid var(--accent) !important;
  box-shadow: 0 10px 28px rgba(1,118,184,0.16) !important;
  position: relative;
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   PERCHÉ + COME LAVORO
   ========================================================= */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.process-step span:first-child {
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

/* =========================================================
   CTA FINALE – rassicurazione
   ========================================================= */
.cta-reassurance {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}


/* =========================================================
   HERO TEXT – fix bottoni, lead, badge
   ========================================================= */
.h1-accent {
  color: var(--accent);
}

.hero-text h1 {
  line-height: 1.05;
}

.hero-text .hero-cta,
.hero-cta-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
}

.hero-btn-main {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.hero-text .hero-cta .btn,
.hero-cta-row .btn {
  flex-shrink: 0;
  width: auto !important;
}

.hero-text .lead {
  text-align: left;
}

.hero-text .badge {
  font-size: 12px;
  padding: 5px 10px;
  white-space: nowrap;
}

.hero-text .trust-badges {
  flex-wrap: nowrap;
}

.hero-target {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-target-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-target-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.hero-target-list li {
  font-size: 14px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.hero-target-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
  top: 1px;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-panel {
    order: -1; /* panel sopra su mobile */
  }

  .testi-grid {
    grid-template-columns: 1fr;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-panel-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    gap: 8px;
  }
}