/* ═══════════════════════════════════════════════════════════════════
   CecchinatoHR — Calcolatore Costo Dipendente
   Design: Luxury corporate · Dark navy + gold accents · Dm Sans
═══════════════════════════════════════════════════════════════════ */

#cecchinatohr-calc {
  /* ── Brand tokens ── */
  --navy:    #0f1e3d;
  --navy-2:  #162847;
  --navy-3:  #1e3560;
  --gold:    #c9a84c;
  --gold-l:  #e4c47a;
  --gold-s:  #c9a84c22;
  --teal:    #0ea5a0;
  --teal-s:  #0ea5a015;
  --green:   #059669;
  --green-s: #05966915;
  --red:     #dc2626;
  --red-s:   #dc262615;
  --amber:   #d97706;
  --amber-s: #d9770615;
  /* ── Neutrals ── */
  --bg:      #f4f6f9;
  --card:    #ffffff;
  --line:    #e4e9f0;
  --line-2:  #d0d8e4;
  --text:    #0f1e3d;
  --muted:   #64748b;
  --muted2:  #94a3b8;
  /* ── Radii ── */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;
  /* ── Shadows ── */
  --s1: 0 1px 3px rgba(15,30,61,.06), 0 4px 12px rgba(15,30,61,.05);
  --s2: 0 4px 20px rgba(15,30,61,.10), 0 1px 4px rgba(15,30,61,.06);
  --s3: 0 12px 40px rgba(15,30,61,.14);
  --sg: 0 8px 28px rgba(201,168,76,.25);

  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: transparent;
}
#cecchinatohr-calc * { box-sizing: border-box; }

/* ── Layout ── */
#cecchinatohr-calc .wpc-container {
  max-width: 1100px;
  margin: 36px auto;
  padding: 0 18px;
}

/* ════════════════════════════════════════════════════
   HERO — header calcolatore
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 60%, #264d8c 100%);
  border-radius: var(--r-xl);
  padding: 28px 34px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--s3), 0 0 0 1px rgba(255,255,255,.06) inset;
  position: relative;
  overflow: hidden;
}
#cecchinatohr-calc .wpc-hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,.15) 0%, transparent 70%);
  pointer-events: none;
}
#cecchinatohr-calc .wpc-hero-text h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.3px;
}
#cecchinatohr-calc .wpc-hero-text p {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: .92rem;
}
/* Badge rimossi */
#cecchinatohr-calc .wpc-hero-badge { display: none; }

/* ════════════════════════════════════════════════════
   MODALITÀ SELECTOR
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-mode-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--s2);
}
#cecchinatohr-calc .wpc-mode-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
#cecchinatohr-calc .wpc-mode-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}
#cecchinatohr-calc .wpc-mode-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .88rem;
}
#cecchinatohr-calc .wpc-mode-options {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  #cecchinatohr-calc .wpc-mode-options { grid-template-columns: repeat(3, 1fr); }
}
#cecchinatohr-calc .wpc-mode-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: var(--r);
  cursor: pointer;
  transition: all .18s ease;
  min-height: 80px;
}
#cecchinatohr-calc .wpc-mode-option:hover {
  border-color: var(--navy-3);
  box-shadow: var(--s2);
  transform: translateY(-1px);
}
#cecchinatohr-calc .wpc-mode-option.active {
  border-color: var(--navy);
  background: linear-gradient(135deg, #f0f4ff 0%, #f8faff 100%);
  box-shadow: 0 0 0 3px rgba(15,30,61,.08), var(--s2);
  transform: translateY(-1px);
}
#cecchinatohr-calc .wpc-mode-option input {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
#cecchinatohr-calc .wpc-mode-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: var(--s1);
}
#cecchinatohr-calc .wpc-mode-icon svg { width: 20px; height: 20px; }
#cecchinatohr-calc .c1 { background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
#cecchinatohr-calc .c2 { background: linear-gradient(135deg, var(--teal), #0e9a95); }
#cecchinatohr-calc .c3 { background: linear-gradient(135deg, var(--gold), #b8922a); }
#cecchinatohr-calc .wpc-mode-option .label { font-weight: 700; font-size: .95rem; color: var(--navy); }
#cecchinatohr-calc .wpc-mode-option .sub { color: var(--muted); font-size: .82rem; margin-top: 2px; }

/* ════════════════════════════════════════════════════
   WIDGET PRINCIPALE
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-widget {
  background: var(--card);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  box-shadow: var(--s3);
  overflow: hidden;
}
#cecchinatohr-calc .wpc-content { padding: 24px; }
#cecchinatohr-calc .wpc-grid { display: grid; gap: 16px; }
@media (min-width: 860px) {
  #cecchinatohr-calc .wpc-grid-3 { grid-template-columns: repeat(3, 1fr); }
  #cecchinatohr-calc .wpc-grid-2 { grid-template-columns: repeat(2, 1fr); }
  #cecchinatohr-calc .wpc-grid-3 .wpc-chart-card { grid-column: span 2; }
}

/* ════════════════════════════════════════════════════
   SEZIONI / PANNELLI
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
#cecchinatohr-calc .wpc-section-label::before {
  content: '';
  display: block;
  width: 3px;
  height: 14px;
  background: var(--gold);
  border-radius: 2px;
}
#cecchinatohr-calc .wpc-panel-primary {
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  margin-bottom: 16px;
}

/* ════════════════════════════════════════════════════
   FORM CONTROLS
════════════════════════════════════════════════════ */
#cecchinatohr-calc label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin: 0 0 6px;
  letter-spacing: .01em;
}
#cecchinatohr-calc .wpc-field { display: flex; flex-direction: column; }

#cecchinatohr-calc input,
#cecchinatohr-calc select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
#cecchinatohr-calc input:focus,
#cecchinatohr-calc select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,30,61,.10);
}
#cecchinatohr-calc .wpc-field-primary input {
  border-color: var(--navy);
  border-width: 2px;
  font-weight: 700;
  font-size: 1.05rem;
  background: #f8faff;
  box-shadow: 0 0 0 3px rgba(15,30,61,.06);
}
#cecchinatohr-calc .wpc-help {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 4px;
  min-height: 20px;
}
#cecchinatohr-calc .wpc-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
/* Radio pill style */
#cecchinatohr-calc .wpc-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
  padding: 6px 12px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: .88rem;
  transition: all .15s;
}
#cecchinatohr-calc .wpc-row label:has(input:checked),
#cecchinatohr-calc .wpc-row label input:checked ~ * {
  border-color: var(--navy);
  background: #f0f4ff;
  color: var(--navy);
  font-weight: 700;
}
#cecchinatohr-calc .wpc-row label input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--navy);
  padding: 0;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════
   PULSANTI
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: none;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .18s ease;
  letter-spacing: .01em;
}
#cecchinatohr-calc .wpc-btn:hover { transform: translateY(-1px); }
#cecchinatohr-calc .wpc-btn:active { transform: none; }

/* Primary navy */
#cecchinatohr-calc .wpc-btn:not(.secondary):not(.success) {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(15,30,61,.28);
}
#cecchinatohr-calc .wpc-btn:not(.secondary):not(.success):hover {
  box-shadow: 0 10px 28px rgba(15,30,61,.38);
}
/* Gold secondary */
#cecchinatohr-calc .wpc-btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line-2);
}
#cecchinatohr-calc .wpc-btn.secondary:hover {
  border-color: var(--navy);
  background: #f4f6fb;
}
/* Green success */
#cecchinatohr-calc .wpc-btn.success {
  background: linear-gradient(135deg, var(--green), #047857);
  color: #fff;
  box-shadow: 0 6px 20px rgba(5,150,105,.28);
}

/* ════════════════════════════════════════════════════
   CARDS
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}
#cecchinatohr-calc .wpc-divider {
  height: 1px;
  background: var(--line);
  margin: 14px 0;
}
#cecchinatohr-calc .wpc-error {
  background: var(--red-s);
  color: var(--red);
  border: 1px solid #fecaca;
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-weight: 700;
  font-size: .9rem;
}

/* ════════════════════════════════════════════════════
   RISULTATI — chips di sintesi
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8faff 100%);
  border: 1px solid #d4dfff;
  border-radius: var(--r);
  padding: 14px 16px;
  margin-bottom: 14px;
}
#cecchinatohr-calc .wpc-result-head h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
}
#cecchinatohr-calc .wpc-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .01em;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,30,61,.25);
}
#cecchinatohr-calc .wpc-chip-yellow {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: var(--navy);
  box-shadow: var(--sg);
}
#cecchinatohr-calc .wpc-chip-green {
  background: linear-gradient(135deg, var(--green) 0%, #047857 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,150,105,.28);
}
#cecchinatohr-calc .wpc-chip-red {
  background: linear-gradient(135deg, var(--red) 0%, #b91c1c 100%);
  color: #fff;
}

/* ════════════════════════════════════════════════════
   KEY-VALUE TABLE
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-key-card {
  background: #fafbfd;
  border-color: var(--line);
}
#cecchinatohr-calc .wpc-kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
#cecchinatohr-calc .wpc-kv:last-child { border-bottom: none; }
#cecchinatohr-calc .wpc-kv .k { color: var(--muted); font-size: .88rem; }
#cecchinatohr-calc .wpc-kv .v { font-weight: 700; font-family: 'DM Mono', monospace; font-size: .9rem; }

/* ════════════════════════════════════════════════════
   SGRAVIO CARD — verde accent
════════════════════════════════════════════════════ */
#cecchinatohr-calc #sgravioCard {
  background: linear-gradient(135deg, #ecfdf5 0%, #f8fffc 100%);
  border: 1.5px solid #10b981;
  box-shadow: 0 4px 16px rgba(5,150,105,.10);
}
#cecchinatohr-calc #sgravioCard h4 {
  color: #065f46;
  font-size: .95rem;
  font-weight: 800;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
#cecchinatohr-calc #sgravioCard h4::before {
  content: '⚡';
}

/* ════════════════════════════════════════════════════
   RISPARMIO HERO BANNER
════════════════════════════════════════════════════ */
#cecchinatohr-calc .save-hero {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fff8 100%);
  border: 1.5px solid #10b981;
  border-radius: var(--r-lg);
  padding: 20px;
  display: grid;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(5,150,105,.15);
}
#cecchinatohr-calc .save-hero .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
#cecchinatohr-calc .save-amount {
  font-size: 1.7rem;
  font-weight: 900;
  color: #065f46;
  font-family: 'DM Mono', monospace;
}
#cecchinatohr-calc .save-pct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #065f46;
  color: #ecfdf5;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: .92rem;
}
#cecchinatohr-calc .save-sub { color: #065f46; font-weight: 600; opacity: .85; }
#cecchinatohr-calc .save-progress {
  width: 100%; height: 8px;
  background: #d1fae5;
  border-radius: 999px;
  overflow: hidden;
}
#cecchinatohr-calc .save-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  width: 0%;
  transition: width .5s ease;
  border-radius: 999px;
}
#cecchinatohr-calc .delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #065f46;
  border: 1px solid #86efac;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .88rem;
}
#cecchinatohr-calc .compare-card {
  background: #fff;
  border: 1px dashed #d1fae5;
  border-radius: var(--r);
  padding: 14px;
}
#cecchinatohr-calc .barrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
}
#cecchinatohr-calc .lbl { width: 76px; font-weight: 700; font-size: .88rem; color: #334155; }
#cecchinatohr-calc .bar {
  flex: 1; height: 12px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}
#cecchinatohr-calc .bar > span {
  display: block; height: 100%; width: 0%;
  transition: width .5s ease;
  border-radius: 999px;
}
#cecchinatohr-calc .bar.before > span { background: #fca5a5; }
#cecchinatohr-calc .bar.after  > span { background: #86efac; }

/* ════════════════════════════════════════════════════
   REGOLE SGRAVIO
════════════════════════════════════════════════════ */
#cecchinatohr-calc #sgravioRules {
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
}
#cecchinatohr-calc #sgravioRules h4 {
  margin: 0 0 12px;
  font-size: .95rem;
  font-weight: 800;
  color: var(--navy);
}
#cecchinatohr-calc .rules-chip {
  display: inline-flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: .82rem;
  margin-bottom: 12px;
}
#cecchinatohr-calc .rules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  #cecchinatohr-calc .rules-grid { grid-template-columns: 1fr 1fr; }
}
#cecchinatohr-calc .rules-kv {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}
#cecchinatohr-calc .rules-kv .k {
  min-width: 110px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--navy);
}
#cecchinatohr-calc .rules-kv .v { color: var(--text); font-size: .88rem; }
#cecchinatohr-calc .rules-kv.durata {
  background: linear-gradient(135deg, #fffbeb, #fefce8);
  border-color: #fde68a;
}
#cecchinatohr-calc .rules-note {
  grid-column: 1/-1;
  margin-top: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: .88rem;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════
   GRAFICI
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-chart-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 340px;
  overflow: hidden;
}
#cecchinatohr-calc #costChart { display: block; width: 100%; max-width: 700px; }
#cecchinatohr-calc .legend {
  margin-top: 12px;
  width: 100%; max-width: 700px;
  display: grid; gap: 6px 12px;
  grid-template-columns: 1fr;
  max-height: 140px; overflow: auto;
}
@media (min-width: 720px) {
  #cecchinatohr-calc .legend { grid-template-columns: repeat(2, 1fr); }
}
#cecchinatohr-calc .legend-item {
  display: flex; align-items: center;
  gap: 8px; font-size: .86rem; color: var(--text);
}
#cecchinatohr-calc .legend-swatch {
  width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0;
}
#cecchinatohr-calc .wpc-gap-card {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
}
#cecchinatohr-calc #forbiceChart { display: block; width: 100%; max-width: 700px; height: 80px !important; }
#cecchinatohr-calc .wpc-gap-pcts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#cecchinatohr-calc .wpc-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .86rem;
  border: 1px solid var(--line);
  background: #fff;
}
#cecchinatohr-calc .wpc-pill-green {
  border-color: #10b981;
  color: #065f46;
  background: #ecfdf5;
}
#cecchinatohr-calc .wpc-pill-red {
  border-color: #ef4444;
  color: #7f1d1d;
  background: #fee2e2;
}

/* ════════════════════════════════════════════════════
   NOTE / PROMO / ALERT
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-note {
  background: #fafbfd;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  margin: 0 0 16px;
}
#cecchinatohr-calc .wpc-note h4 {
  margin: 0 0 8px;
  font-size: .95rem;
  font-weight: 700;
}
#cecchinatohr-calc .wpc-note textarea {
  background: #fff;
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}
#cecchinatohr-calc .wpc-note textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,30,61,.07);
}
#cecchinatohr-calc .wpc-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  border-radius: var(--r);
  padding: 12px 16px;
}
#cecchinatohr-calc .wpc-incentivi {
  background: linear-gradient(135deg, #ecfdf5, #f8fff9);
  border: 1.5px solid #10b981;
  border-radius: var(--r-lg);
  padding: 18px;
  margin-top: 16px;
}
#cecchinatohr-calc .wpc-incentivi h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #065f46;
}
#cecchinatohr-calc .wpc-incentivi .slogan {
  margin-top: 10px;
  font-weight: 700;
  font-style: italic;
  color: #047857;
}
#cecchinatohr-calc .wpc-promo {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  text-align: center;
}
#cecchinatohr-calc .wpc-promo .promo-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
#cecchinatohr-calc .wpc-promo .promo-head img { width: 110px; height: auto; }
#cecchinatohr-calc .wpc-promo a { color: var(--navy); text-decoration: none; }
#cecchinatohr-calc .wpc-promo a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════
   SEGMENTED controls
════════════════════════════════════════════════════ */
#cecchinatohr-calc .wpc-segmented { display: flex; gap: 8px; flex-wrap: wrap; }
#cecchinatohr-calc .wpc-segmented input { position: absolute; opacity: 0; pointer-events: none; }
#cecchinatohr-calc .wpc-segmented label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
  font-size: .88rem;
  transition: all .15s;
}
#cecchinatohr-calc .wpc-segmented input:checked + label {
  border-color: var(--navy);
  background: #f0f4ff;
  color: var(--navy);
  box-shadow: 0 0 0 3px rgba(15,30,61,.08);
}

/* ════════════════════════════════════════════════════
   TOOLTIP & INFO ICONS
════════════════════════════════════════════════════ */
#cecchinatohr-calc .info-icon,
#cecchinatohr-calc .tip-icon {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  cursor: default;
  position: relative;
  vertical-align: middle;
  margin-left: 5px;
}
#cecchinatohr-calc .info-icon::after,
#cecchinatohr-calc .tip-icon::after {
  content: attr(data-tip);
  position: absolute;
  left: 24px; top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: #fff;
  padding: 8px 12px;
  font-size: .83rem;
  border-radius: 10px;
  width: 260px;
  z-index: 100;
  display: none;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: var(--s3);
}
#cecchinatohr-calc .info-icon::after {
  content: "Scegli da quale base calcolare: lordo mensile, RAL o un netto mensile obiettivo.";
}
#cecchinatohr-calc .info-icon:hover::after,
#cecchinatohr-calc .tip-icon:hover::after { display: block; }
@media (max-width: 600px) {
  #cecchinatohr-calc .info-icon::after,
  #cecchinatohr-calc .tip-icon::after {
    left: 50%; top: 24px;
    transform: translateX(-50%);
    width: min(88vw, 300px);
  }
}

/* ═══════════════ v2.1 — WOW layer ═══════════════ */
#cecchinatohr-calc .chr-wow-strip{
  display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:10px;
}
#cecchinatohr-calc .chr-wow-item{
  position:relative; overflow:hidden; text-align:center;
  background:linear-gradient(160deg,#204070 0%,#2B5290 100%);
  border-radius:14px; padding:14px 10px 12px; color:#fff;
  box-shadow:0 6px 18px rgba(32,64,112,.25);
}
#cecchinatohr-calc .chr-wow-item::after{
  content:""; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(105deg,transparent,rgba(255,255,255,.18),transparent);
  transform:skewX(-18deg); animation:chrSheen 3.6s ease-in-out infinite;
}
#cecchinatohr-calc .chr-wow-num{
  font-size:1.45rem; font-weight:800; letter-spacing:.01em; color:#7FD4FF;
  font-variant-numeric:tabular-nums;
}
#cecchinatohr-calc .chr-wow-lab{ font-size:.76rem; opacity:.92; margin-top:2px }
#cecchinatohr-calc .chr-wow-foot{ opacity:.65; font-size:.68rem }
#cecchinatohr-calc .chr-kv-green .k,
#cecchinatohr-calc .chr-kv-green .v{ color:#059669; font-weight:700 }
#cecchinatohr-calc .chr-reveal{ animation:chrFadeUp .55s cubic-bezier(.22,.9,.3,1) both }
@keyframes chrFadeUp{ from{opacity:0; transform:translateY(14px)} to{opacity:1; transform:none} }
@keyframes chrSheen{ 0%,55%{left:-60%} 85%,100%{left:130%} }
@media (max-width:640px){
  #cecchinatohr-calc .chr-wow-strip{ grid-template-columns:1fr }
}
@media (prefers-reduced-motion: reduce){
  #cecchinatohr-calc .chr-wow-item::after{ animation:none; display:none }
  #cecchinatohr-calc .chr-reveal{ animation:none }
}
@media print{
  #cecchinatohr-calc .chr-wow-item::after{ display:none }
}
