/* ─── FORM CANDIDATURA ─── */

.cand-section { position: relative; overflow: hidden; isolation: isolate; }
.cand-section .section-inner { position: relative; z-index: 1; }

.cand-card [hidden],
.cand-form [hidden] { display: none !important; }
.cand-form :where(fieldset) { border: 0; padding: 0; margin: 0; min-width: 0; }
.cand-form :where(legend) { padding: 0; float: left; width: 100%; }
.cand-form :where(legend) + * { clear: both; }

.cand-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.cand-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Sfondo: simbolo Fracta animato + bagliore ── */
.cand-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cand-bg-symbol {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(980px, 130vw);
  transform: translate(-50%, -50%);
  opacity: 0.16;
  animation: candFloat 18s ease-in-out infinite;
}
.cand-bg-slice { filter: blur(0.4px); }
.cand-bg-glow {
  position: absolute;
  left: 50%;
  top: 62%;
  width: 760px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(212,0,110,0.38), rgba(232,80,26,0.12) 55%, transparent);
  filter: blur(40px);
  animation: candGlow 9s ease-in-out infinite;
}
@keyframes candFloat {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  50% { transform: translate(-50%, -53%) rotate(6deg); }
}
@keyframes candGlow {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

/* ── Contenitore ── */
.cand-card {
  position: relative;
  max-width: 880px;
  margin: 56px auto 0;
  padding: 56px 64px;
  border-radius: 32px;
  background: linear-gradient(165deg, rgba(61,16,84,0.62) 0%, rgba(25,12,31,0.94) 48%, rgba(18,8,24,0.97) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    0 60px 140px -40px rgba(212,0,110,0.55),
    0 30px 60px -30px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.cand-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(240,0,138,0.7), rgba(255,96,64,0.25) 30%, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Barra bozza salvata ── */
.cand-resume-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 28px;
  padding: 12px 14px 12px 20px;
  border-radius: 14px;
  background: rgba(212,0,110,0.12);
  border: 1px solid rgba(212,0,110,0.3);
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  animation: candIn 0.35s ease both;
}
.cand-resume-bar span { margin-right: auto; }
.cand-resume-btn {
  padding: 9px 18px;
  border: none;
  border-radius: 100px;
  background: var(--magenta);
  color: var(--white);
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}
.cand-resume-btn:hover { background: var(--magenta-bright); }

/* ── Bottoni ── */
.cand-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 18px 36px;
}
.cand-cta span { transition: transform 0.2s; }
.cand-cta:hover span { transform: translateX(4px); }
.cand-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: 'Gotham', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.cand-link:hover { color: #fff; }

/* ── Progresso ── */
.cand-progress { margin-bottom: 36px; position: relative; }
.cand-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#cand-step-count { color: #ff4db3; }
#cand-step-time { color: rgba(255,255,255,0.45); }
.cand-progress-bar {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0 -2px;
}
.cand-progress-bar li { flex: 1; min-width: 0; }

/* Ogni linea è un bottone con area di clic più alta della linea visibile */
.cand-seg {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 2px;
  margin: -10px 0;
  background: none;
  border: none;
  cursor: pointer;
}
.cand-seg:disabled { cursor: default; }
.cand-seg-bar {
  position: relative;
  display: block;
  height: 5px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
  transition: height 0.2s, background 0.2s;
}
.cand-seg-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta), var(--orange-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.is-done .cand-seg-bar::after { transform: scaleX(1); }
.is-current .cand-seg-bar::after { transform: scaleX(0.5); }
.cand-seg:not(:disabled):hover .cand-seg-bar,
.cand-seg:focus-visible .cand-seg-bar { height: 8px; margin-top: -1.5px; }
.cand-seg:not(:disabled):hover .cand-seg-bar { background: rgba(255,255,255,0.22); }
.cand-seg:focus-visible { outline: none; }
.cand-seg:focus-visible .cand-seg-bar { box-shadow: 0 0 0 3px rgba(212,0,110,0.55); }

/* Nome del passo al passaggio del mouse */
.cand-seg-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translate(-50%, 4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-family: 'Gotham', sans-serif;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 2;
}
.cand-seg-tip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: var(--white);
}
.cand-seg:not(:disabled):hover .cand-seg-tip,
.cand-seg:focus-visible .cand-seg-tip { opacity: 1; transform: translate(-50%, 0); }
.cand-progress-bar li:first-child .cand-seg-tip { left: 0; transform: translate(0, 4px); }
.cand-progress-bar li:first-child .cand-seg:hover .cand-seg-tip,
.cand-progress-bar li:first-child .cand-seg:focus-visible .cand-seg-tip { transform: none; }
.cand-progress-bar li:first-child .cand-seg-tip::after { left: 16px; }
.cand-progress-bar li:last-child .cand-seg-tip { left: auto; right: 0; transform: translate(0, 4px); }
.cand-progress-bar li:last-child .cand-seg:hover .cand-seg-tip,
.cand-progress-bar li:last-child .cand-seg:focus-visible .cand-seg-tip { transform: none; }
.cand-progress-bar li:last-child .cand-seg-tip::after { left: auto; right: 11px; }

@media (hover: none) {
  .cand-seg-tip { display: none; }
}

/* ── Passi ── */
.cand-step { animation: candStepIn 0.4s ease both; }
.cand-step.is-back { animation-name: candStepBack; }
@keyframes candStepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes candStepBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes candIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cand-step-head { margin-bottom: 28px; }
.cand-step-title {
  display: block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}
.cand-step-why {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

/* ── Etichette e testi ── */
.cand-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 14px;
}
.cand-label--spaced { margin-top: 32px; }
.cand-label-note { font-weight: 400; color: rgba(255,255,255,0.45); }
.cand-help {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
  margin: -6px 0 16px;
}
.cand-note {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  animation: candIn 0.35s ease both;
}

/* ── Griglia e campi ── */
.cand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
}
.cand-grid--address { grid-template-columns: repeat(4, 1fr); }
.cand-grid--range { grid-template-columns: 1fr auto 1fr; align-items: end; }
.cand-range-sep { padding-bottom: 18px; color: rgba(255,255,255,0.4); font-size: 20px; }
.cand-span-2 { grid-column: span 2; }
.cand-span-3 { grid-column: span 3; }

.cand-block { margin-top: 32px; }
.cand-block--first { margin-top: 0; }
.cand-step > .cand-field + .cand-block,
.cand-step > .cand-block + .cand-grid { margin-top: 28px; }

.cand-field { position: relative; }
.cand-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  margin: 0 0 8px 4px;
  line-height: 1.45;
}
.cand-field input,
.cand-field select,
.cand-field textarea {
  width: 100%;
  min-height: 58px;
  background: #f1eef4;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 16px 20px;
  font-family: 'Gotham', sans-serif;
  font-size: 16px;
  color: var(--black);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.cand-field input::placeholder,
.cand-field textarea::placeholder { color: #a197aa; }
.cand-field textarea { resize: vertical; min-height: 104px; line-height: 1.55; }
.cand-field select {
  color: #a197aa;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233d1054' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 50px;
}
.cand-field select.filled { color: var(--black); }
.cand-field select option { color: #111; }
.cand-field input:hover,
.cand-field select:hover,
.cand-field textarea:hover { background-color: #fff; }
.cand-field input:focus,
.cand-field select:focus,
.cand-field textarea:focus {
  background-color: #fff;
  border-color: var(--magenta);
  box-shadow: 0 0 0 5px rgba(212,0,110,0.22);
}

/* Campo valido: spunta verde */
.cand-field.is-valid input:not([type="file"]):not([type="date"]) {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318a36b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 18px;
}

/* Suffisso €/giorno */
.cand-suffix::after {
  content: attr(data-suffix);
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 14px;
  color: #8a7f93;
  pointer-events: none;
}
.cand-suffix input { padding-right: 96px; }
.cand-suffix.is-valid input { padding-right: 96px; background-image: none; }
.cand-suffix input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cand-suffix input[type="number"] { -moz-appearance: textfield; }

/* Suggerimento email */
.cand-suggest {
  margin: 8px 0 0 4px;
  padding: 0;
  background: none;
  border: none;
  font-family: 'Gotham', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  text-align: left;
}
.cand-suggest strong { color: #ff4db3; text-decoration: underline; text-underline-offset: 3px; }

/* Contatore caratteri */
.cand-counter {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 11px;
  color: #a197aa;
  pointer-events: none;
}
.cand-counted textarea { padding-bottom: 30px; }
.cand-counted + .cand-counted { margin-top: 22px; }

/* Comparsa dei blocchi condizionali */
.cand-cond:not([hidden]) { animation: candReveal 0.35s ease both; }
@keyframes candReveal { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cand-block > .cand-cond { margin-top: 20px; }

/* ── Pillole ── */
.cand-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.cand-pill { cursor: pointer; }
.cand-pill input { position: absolute; opacity: 0; pointer-events: none; }
.cand-pill span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.03);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.cand-pill:hover span { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.cand-pill:active span { transform: scale(0.97); }
.cand-pill input:checked + span {
  background: var(--magenta);
  border-color: var(--magenta);
  color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(212,0,110,0.7);
}
.cand-pill input:checked + span::before {
  content: '';
  width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cand-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgba(212,0,110,0.45); }

/* ── Discipline ── */
.cand-disciplines { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cand-disc {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cand-disc:hover { border-color: rgba(255,255,255,0.4); }
.cand-disc input { position: absolute; opacity: 0; pointer-events: none; }
.cand-disc-box {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 2px solid rgba(255,255,255,0.35);
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}
.cand-disc input:checked ~ .cand-disc-box { background: var(--magenta); border-color: var(--magenta); }
.cand-disc input:checked ~ .cand-disc-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 6px; height: 11px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.cand-disc:has(input:checked) { border-color: var(--magenta); background: rgba(212,0,110,0.12); }
.cand-disc input:focus-visible ~ .cand-disc-box { box-shadow: 0 0 0 4px rgba(212,0,110,0.45); }
.cand-disc-name { flex: 1; font-size: 15px; line-height: 1.35; color: var(--white); }
.cand-disc-level {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.cand-disc-level.is-executive { background: rgba(212,0,110,0.2); color: #ff4db3; }
.cand-disc-level.is-specialist { background: rgba(255,96,64,0.16); color: var(--orange-bright); }

/* Altre competenze (a scomparsa) */
.cand-more { margin-top: 24px; }
.cand-more summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  list-style: none;
}
.cand-more summary::-webkit-details-marker { display: none; }
.cand-more summary::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  font-size: 16px;
  transition: transform 0.2s;
}
.cand-more[open] summary::before { transform: rotate(45deg); }
.cand-more summary:hover { color: #fff; }
.cand-more .cand-field { margin-top: 14px; }

/* ── Scale stile di lavoro ── */
.cand-scales { display: flex; flex-direction: column; gap: 12px; }
.cand-scale.cand-block {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.cand-scale:has(input:checked) { background: rgba(255,255,255,0.06); }
.cand-scale-side { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,0.8); }
.cand-scale-right { text-align: right; }
.cand-scale-dots { display: flex; gap: 8px; }
.cand-dot { cursor: pointer; }
.cand-dot input { position: absolute; opacity: 0; pointer-events: none; }
.cand-dot span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.22);
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.cand-dot:hover span { border-color: rgba(255,255,255,0.6); transform: scale(1.06); }
.cand-dot input:checked + span {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 20px -6px rgba(212,0,110,0.8);
}
.cand-dot input:focus-visible + span { box-shadow: 0 0 0 4px rgba(212,0,110,0.45); }
.cand-scale .cand-error { grid-column: 1 / -1; text-align: center; margin: 0; }
.cand-scale.is-invalid { border-color: rgba(255,107,138,0.6); }

/* ── Upload CV ── */
.cand-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 24px;
  border-radius: 20px;
  border: 2px dashed rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.cand-drop:hover, .cand-drop.is-drag { border-color: #ff4db3; background: rgba(212,0,110,0.08); }
.cand-drop.has-file { border-style: solid; border-color: #18a36b; background: rgba(24,163,107,0.08); }
.cand-drop.has-file svg { stroke: #18a36b; }
.cand-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cand-drop svg { width: 28px; height: 28px; }
.cand-drop-text { font-size: 15px; color: rgba(255,255,255,0.75); word-break: break-word; }
.cand-drop-text strong { color: var(--white); }
.cand-drop-hint { font-size: 13px; color: rgba(255,255,255,0.45); }
.cand-drop:focus-within { box-shadow: 0 0 0 4px rgba(212,0,110,0.4); }

/* ── Riepilogo ── */
.cand-summary { margin-top: 32px; }
.cand-summary dl {
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.cand-summary-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 20px;
}
.cand-summary-row + .cand-summary-row { border-top: 1px solid rgba(255,255,255,0.06); }
.cand-summary dt { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.cand-summary dd { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.9); word-break: break-word; }
.cand-summary .cand-link { font-size: 13px; }

.cand-step .form-bottom-left { margin-top: 28px; }
.cand-step .form-checkbox { align-items: flex-start; }
.cand-step .form-checkbox-text { font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.65); }

/* ── Errori ── */
.cand-error {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0 4px;
  font-size: 13px;
  color: #ff8aa5;
}
.cand-error::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #ff6b8a;
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
}
.cand-scale .cand-error { justify-content: center; }
.is-invalid input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.is-invalid select,
.is-invalid textarea { border-color: #ff6b8a; background-color: #fff5f7; }
.is-invalid .cand-pill span, .is-invalid .cand-dot span { border-color: rgba(255,107,138,0.7); }
.is-invalid .cand-drop { border-color: #ff6b8a; }
.cand-block.is-invalid > .cand-disciplines .cand-disc { border-color: rgba(255,107,138,0.5); }
.is-invalid { animation: candShake 0.35s ease; }
@keyframes candShake {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* ── Navigazione ── */
.cand-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cand-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  min-height: 52px;
  padding: 0 8px;
  background: none;
  border: none;
  font-family: 'Gotham', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
}
.cand-back:hover { color: #fff; }
.cand-enter-hint { margin-left: auto; font-size: 12px; color: rgba(255,255,255,0.4); }
.cand-back:not([hidden]) + .cand-enter-hint { margin-left: 0; }
.cand-enter-hint kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.65);
}
#submit-btn { margin-left: auto; }

/* CTA: spenta (grigia) finché il passo non è completo, poi si "accende".
   Resta cliccabile: se il passo non è completo, il clic mostra cosa manca. */
.cand-nav .cand-cta {
  transition: background 0.35s, color 0.35s, box-shadow 0.35s, transform 0.15s;
}
.cand-nav .cand-cta:not(.is-ready),
.cand-nav .cand-cta:not(.is-ready):hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.12);
  transform: none;
}
.cand-nav .cand-cta:not(.is-ready) span { transform: none; opacity: 0.5; }
.cand-nav .cand-cta.is-ready {
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 10px 40px -6px rgba(212,0,110,0.75), inset 0 0 0 1.5px rgba(255,255,255,0.15);
}
.cand-nav .cand-cta.is-ready:hover {
  background: var(--magenta-bright);
  box-shadow: 0 14px 48px -6px rgba(240,0,138,0.85), inset 0 0 0 1.5px rgba(255,255,255,0.2);
}
.cand-nav .cand-cta.is-pop { animation: candCtaOn 0.6s ease; }
@keyframes candCtaOn {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240,0,138,0.7); }
  35% { transform: scale(1.06); }
  100% { transform: scale(1); box-shadow: 0 10px 40px -6px rgba(212,0,110,0.75), 0 0 0 14px rgba(240,0,138,0); }
}
.cand-enter-hint { transition: opacity 0.3s; }
.cand-enter-hint:not(.is-ready) { opacity: 0.35; }
.cand-message { margin-top: 16px; font-size: 15px; line-height: 1.5; color: #ff8aa5; }

/* ── Invio in corso ── */
.cand-sending {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  animation: candIn 0.4s ease both;
}
.cand-sending-symbol {
  width: 88px;
  margin-bottom: 32px;
  animation: candPulse 1.6s ease-in-out infinite;
}
@keyframes candPulse {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.85; }
  50% { transform: scale(1.08) rotate(8deg); opacity: 1; }
}
.cand-sending-list { list-style: none; display: grid; gap: 14px; }
.cand-sending-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255,255,255,0.35);
  transition: color 0.3s;
}
.cand-sending-list li::before {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
}
.cand-sending-list li.is-active { color: #fff; }
.cand-sending-list li.is-active::before {
  border-color: #ff4db3 transparent #ff4db3 #ff4db3;
  animation: candSpin 0.8s linear infinite;
}
.cand-sending-list li.is-done { color: rgba(255,255,255,0.8); }
.cand-sending-list li.is-done::before {
  border-color: #18a36b;
  background: #18a36b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
@keyframes candSpin { to { transform: rotate(360deg); } }


/* ── Responsive ── */
@media (max-width: 768px) {
  .cand-card { padding: 40px 28px; border-radius: 28px; }
  .cand-grid--address { grid-template-columns: 1fr 1fr; }
  .cand-span-3 { grid-column: 1 / -1; }
  .cand-disciplines { grid-template-columns: 1fr; }
  .cand-scale.cand-block { grid-template-columns: 1fr 1fr; gap: 14px; }
  .cand-scale-dots { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .cand-scale-side { font-size: 13px; }
  .cand-enter-hint { display: none; }
  .cand-summary-row { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .cand-summary-row dd { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 640px) {
  .cand-card { margin-top: 40px; padding: 32px 20px; border-radius: 24px; }
  .cand-grid, .cand-grid--address { grid-template-columns: 1fr; }
  .cand-grid--range { grid-template-columns: 1fr 1fr; }
  .cand-range-sep { display: none; }
  .cand-span-2, .cand-span-3 { grid-column: 1; }
  .cand-progress-meta { flex-direction: column; gap: 4px; }
  .cand-pill span { padding: 12px 18px; font-size: 14px; min-height: 48px; }
  .cand-dot span { width: 40px; height: 40px; }
  .cand-nav { flex-wrap: wrap; }
  .cand-nav .form-submit { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cand-bg-symbol, .cand-bg-glow, .cand-sending-symbol { animation: none; }
  .cand-step, .cand-cond, .cand-resume-bar, .cand-note, .is-invalid { animation: none !important; }
}
