/* ═══ Formazione: tirocini, ATP, candidatura ═══ */
.fm { display: flex; flex-direction: column; gap: 44px; }
.fm-h2 { font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; }
.fm-lead { color: #cbd5e1; font-size: 16px; line-height: 1.55; margin-top: 10px; max-width: 60ch; }

/* Testata con il logo dell'università */
.fm-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.fm-hero-text { flex: 1 1 420px; min-width: 0; }
.fm-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fm-partner { flex: 0 1 300px; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.fm-partner-label { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #6b7280; }
.fm-partner-logo { width: 100%; max-width: 220px; height: auto; }
.fm-partner-note { font-size: 13px; line-height: 1.4; color: #374151; font-weight: 600; }

/* Pulsanti */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; font-size: 15px; font-weight: 900; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, filter .15s; }
.fm-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.fm-btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.fm-btn--primary { background: var(--yellow); color: #111; }
.fm-btn--primary:disabled { opacity: .7; cursor: progress; transform: none; }
.fm-btn--ghost { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.fm-btn--wa { background: #25d366; color: #052e16; }

/* Percorsi */
.fm-paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.fm-path { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-top: 4px solid #94a3b8; }
.fm-path--uni { border-top-color: var(--yellow); }
.fm-path-tag { align-self: flex-start; font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #cbd5e1; }
.fm-path--uni .fm-path-tag { color: var(--yellow); }
.fm-path-name { font-size: 19px; font-weight: 900; color: #fff; line-height: 1.2; }
.fm-path-note { font-size: 14px; line-height: 1.5; color: #cbd5e1; flex: 1; }
.fm-path-go { font-size: 14px; font-weight: 800; color: var(--yellow); text-decoration: none; padding-top: 4px; }
.fm-path-go:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Come funziona */
.fm-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; counter-reset: step; }
.fm-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 60px; position: relative; border-radius: 14px; background: rgba(255, 255, 255, .03); }
.fm-steps li::before { content: counter(step); position: absolute; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--red, #c5000f); color: #fff; font-weight: 900; }
.fm-steps b { color: #fff; font-size: 16px; }
.fm-steps span { color: #cbd5e1; font-size: 14px; line-height: 1.45; }

/* Modulo */
.fm-form-wrap { scroll-margin-top: 80px; }
.fm-form { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, rgba(197, 0, 15, .18), rgba(255, 255, 255, .03) 50%); border: 1px solid rgba(197, 0, 15, .4); max-width: 860px; }
.fm-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.fm-fieldset[hidden] { display: none; }
.fm-legend { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; color: #fff; margin-bottom: 12px; padding: 0; }
.fm-legend > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: #111; font-size: 14px; }
.fm-legend small { font-size: 13px; font-weight: 600; color: #94a3b8; }
.fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.fm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fm-field--wide { grid-column: 1 / -1; }
.fm-field > label, .fm-label { font-size: 14px; font-weight: 800; color: #e2e8f0; }
.fm-field input[type=text], .fm-field input[type=email], .fm-field input[type=tel], .fm-field input[type=number], .fm-field input[type=date], .fm-field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .35); color: #fff; font-size: 16px; font-weight: 600; font-family: inherit; color-scheme: dark; }
.fm-field textarea { resize: vertical; line-height: 1.5; }
.fm-field input::placeholder, .fm-field textarea::placeholder { color: #8a94a6; font-weight: 500; }
.fm-field input:focus, .fm-field textarea:focus { outline: 2px solid var(--yellow); outline-offset: 1px; border-color: transparent; }
.fm-field [aria-invalid=true], .fm-check [aria-invalid=true] { border-color: #f87171; box-shadow: 0 0 0 1px #f87171; }
.fm-hint { font-size: 12px; color: #94a3b8; }
.fm-error { font-size: 13px; font-weight: 700; color: #fca5a5; }
.fm-alert { padding: 12px 16px; border-radius: 12px; background: rgba(248, 113, 113, .14); border: 1px solid rgba(248, 113, 113, .5); color: #fee2e2; font-size: 14px; }
.fm-alert:focus { outline: none; }

/* Scelta del percorso: schede grandi da toccare */
.fm-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.fm-choice { position: relative; cursor: pointer; }
.fm-choice input, .fm-pill input, .fm-file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fm-choice-box { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 14px 14px 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(0, 0, 0, .3); transition: border-color .15s, background .15s; position: relative; }
.fm-choice-box::before { content: ""; position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #94a3b8; }
.fm-choice-box b { color: #fff; font-size: 15px; }
.fm-choice-box small { color: #cbd5e1; font-size: 13px; line-height: 1.4; }
.fm-choice input:checked + .fm-choice-box { border-color: var(--yellow); background: rgba(245, 192, 0, .1); }
.fm-choice input:checked + .fm-choice-box::before { border-color: var(--yellow); background: radial-gradient(circle, var(--yellow) 0 5px, transparent 6px); }
.fm-choice input:focus-visible + .fm-choice-box, .fm-pill input:focus-visible + span, .fm-file input:focus-visible + .fm-file-box { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Pillole: profilo e giorni */
.fm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-pill { position: relative; cursor: pointer; }
.fm-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 0, 0, .3); color: #e2e8f0; font-size: 14px; font-weight: 800; }
.fm-pill--day span { min-width: 56px; justify-content: center; }
.fm-pill input:checked + span { background: var(--yellow); border-color: var(--yellow); color: #111; }

/* Curriculum */
.fm-file { position: relative; cursor: pointer; display: block; }
.fm-file-box { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, .25); background: rgba(0, 0, 0, .25); }
.fm-file-box b { color: #fff; font-size: 15px; overflow-wrap: anywhere; }
.fm-file-box b.fm-file-big { color: #fca5a5; }
.fm-file-box small { color: #94a3b8; font-size: 12px; }
.fm-file:hover .fm-file-box { border-color: var(--yellow); }

.fm-privacy { display: flex; flex-direction: column; gap: 6px; }
.fm-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: #e2e8f0; font-size: 14px; line-height: 1.5; }
.fm-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--yellow); }
.fm-check a { color: var(--yellow); text-decoration: underline; }
.fm-submit { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fm-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Domande */
.fm-faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.fm-faq details { border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.fm-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 800; color: #fff; list-style-position: inside; }
.fm-faq p { padding: 0 16px 14px; color: #cbd5e1; line-height: 1.55; }
.fm-faq a { color: var(--yellow); text-decoration: underline; }

/* Conferma */
.fm-thanks { gap: 22px; max-width: 760px; }
.fm-thanks-check { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #fff; font-size: 34px; font-weight: 900; }
.fm-summary { display: grid; gap: 8px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.fm-summary div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline; }
.fm-summary dt { font-size: 12px; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: .06em; }
.fm-summary dd { color: #fff; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.fm-thanks .fm-h2 { margin-bottom: 0; }

@media (max-width: 640px) {
  .fm-form { padding: 16px; }
  .fm-partner { flex-basis: 100%; }
  .fm-hero-actions .fm-btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .fm-btn { transition: none; } .fm-btn:hover { transform: none; } }

/* Richiamo in Chi siamo */
.fm-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-radius: 20px; text-decoration: none;
  background: radial-gradient(circle at 85% 20%, rgba(245, 192, 0, .18), transparent 45%), linear-gradient(135deg, #8a0710, #2a0509 70%); border: 1px solid rgba(245, 192, 0, .35); box-shadow: 0 16px 36px rgba(23, 6, 9, .25); }
.fm-banner-text { display: flex; flex-direction: column; gap: 4px; flex: 1 1 360px; min-width: 0; }
.fm-banner-kicker { font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.fm-banner-text b { font-size: 24px; font-weight: 900; color: #fff; }
.fm-banner-text span:last-child { color: #e2e8f0; font-size: 15px; line-height: 1.5; }
.fm-banner:hover .fm-btn { filter: brightness(1.06); }
