.fex-page {
  --fex-ink: #16191f;
  --fex-muted: #464f5b;
  --fex-red: #b5141b;
  --fex-deep: #141b26;
  --fex-soft: #f4f5f7;
  --fex-border: #dbe0e5;
  background: #fff;
  color: var(--fex-ink);
}
.fex-page #contenuto {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}
.fex-page #contenuto :is(h1,h2,h3,p,figure,dl,dd) { margin: 0; }
.fex-page #contenuto h1,
.fex-page #contenuto h2,
.fex-page #contenuto h3 { color: inherit; line-height: 1.1; letter-spacing: -.035em; }
.fex-page #contenuto h1 { font-size: clamp(2.2rem, 4.25vw, 4.35rem); font-weight: 780; text-wrap: balance; }
.fex-page #contenuto h2 { font-size: clamp(1.65rem, 3.2vw, 2.55rem); font-weight: 750; text-wrap: balance; }
.fex-page #contenuto h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); font-weight: 730; }
.fex-page #contenuto :is(h1,h2,h3) + p { margin-top: .9rem; }
.fex-page #contenuto p + p { margin-top: 1rem; }
.fex-page #contenuto a:not(.fex-button) { text-underline-offset: .2em; }
.fex-page #contenuto a:focus-visible,
.fex-page #contenuto :is(button,input,select,textarea):focus-visible { outline: 3px solid #266eb6; outline-offset: 3px; }
.fex-wrap { width: min(1320px, 80%); margin-inline: auto; }
.fex-skip { position: fixed; inset: .75rem auto auto .75rem; z-index: 2000; background: white; padding: .65rem; transform: translateY(-150%); }
.fex-skip:focus { transform: none; }
.fex-crumb { padding-block: 1rem; color: var(--fex-muted); font-size: .875rem; }
.fex-crumb ol { display: flex; flex-wrap: wrap; gap: .25rem .55rem; padding: 0; margin: 0; list-style: none; }
.fex-crumb li + li::before { content: "/"; margin-right: .55rem; color: #606b77; }
.fex-crumb a { color: inherit; }
.fex-hero, .fex-course-hero { display: grid; grid-template-columns: 1fr 1fr; background: var(--fex-deep); color: white; border-radius: 1.2rem; overflow: hidden; align-items: stretch; }
.fex-hero-copy { align-self: center; padding: clamp(1.5rem, 4vw, 4rem); }
.fex-page #contenuto .fex-eyebrow { font-size: .875rem; color: var(--fex-red); font-weight: 730; letter-spacing: .09em; text-transform: uppercase; margin-bottom: .8rem; }
.fex-page #contenuto :is(.fex-hero,.fex-course-hero) .fex-eyebrow { color: #ffafa7; }
.fex-page #contenuto .fex-hero-copy > h1 + p { color: #edf1f5; font-size: clamp(1rem, 1.5vw, 1.16rem); max-width: 50ch; }
.fex-hero-image { min-width: 0; background: #242b37; }
.fex-hero-image img { display: block; width: 100%; height: 100%; min-height: 370px; object-fit: cover; object-position: 47% 50%; }
.fex-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.fex-page #contenuto .fex-button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .58rem .92rem; border: 1px solid transparent; border-radius: .5rem; font: inherit; font-weight: 700; text-align: center; line-height: 1.35; text-decoration: none; cursor: pointer; }
.fex-page #contenuto .fex-primary { color: #fff; background: var(--fex-red); }
.fex-page #contenuto .fex-primary:hover { background: #951118; }
.fex-page #contenuto .fex-outline { color: var(--fex-ink); border-color: #b4bdc7; background: transparent; }
.fex-page #contenuto .fex-outline:hover { background: #e9ecf0; }
.fex-page #contenuto .fex-hero .fex-outline { color: #fff; border-color: #a6b2bf; }
.fex-page #contenuto .fex-hero .fex-outline:hover { background: #2b3748; }
.fex-section { padding-block: clamp(2.5rem, 6vw, 5rem); scroll-margin-top: 6rem; }
.fex-grid, .fex-split, .fex-course-body { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.15rem; }
.fex-grid { margin-top: 1.4rem; }
.fex-card { padding: clamp(1.15rem, 2.5vw, 2rem); border: 1px solid var(--fex-border); background: #fff; border-radius: .9rem; min-width: 0; }
.fex-grid .fex-card { display: flex; flex-direction: column; align-items: flex-start; }
.fex-page #contenuto .fex-card h3 a { text-decoration: none; color: var(--fex-ink); }
.fex-page #contenuto .fex-card h3 a:hover { color: var(--fex-red); text-decoration: underline; }
.fex-card p, .fex-method p, .fex-course-body p, .fex-cta p { color: var(--fex-muted); }
.fex-card-foot { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; width: 100%; gap: .65rem; padding-top: 1.35rem; margin-top: auto; }
.fex-card-foot > span { color: var(--fex-muted); font-size: .9rem; }
.fex-hub-grid .fex-card > .fex-button { margin-top: 1rem; }
.fex-method { background: var(--fex-soft); }
.fex-split { align-items: center; gap: clamp(1.25rem, 4vw, 3.75rem); }
.fex-method .fex-button { margin-top: 1.2rem; }
.fex-profile { border-top: 3px solid var(--fex-red); }
.fex-page #contenuto .fex-profile-role { color: var(--fex-ink); font-weight: 650; }
.fex-profile a { color: var(--fex-red); display: inline-block; margin: .75rem .65rem 0 0; }
.fex-form-section { background: #fff; }
.fex-form-layout { display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(1rem, 4vw, 4rem); align-items: start; }
.fex-form-layout a { color: var(--fex-red); }
.fex-form { border: 1px solid var(--fex-border); border-radius: .9rem; padding: clamp(1.15rem, 3vw, 2rem); background: var(--fex-soft); min-width: 0; }
.fex-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.fex-wide { grid-column: 1 / -1; }
.fex-form label { display: block; color: var(--fex-ink); font-size: .94rem; font-weight: 630; }
.fex-form :is(input,select,textarea) { display: block; width: 100%; min-height: 46px; margin-top: .3rem; padding: .55rem .65rem; color: var(--fex-ink); border: 1px solid #a5afbb; border-radius: .35rem; background: #fff; font: inherit; font-weight: 400; }
.fex-form select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg, transparent 50%, #303a47 50%), linear-gradient(135deg, #303a47 50%, transparent 50%); background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.fex-form textarea { resize: vertical; }
.fex-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fex-page #contenuto p.fex-form-note, .fex-page #contenuto p.fex-status { margin: .95rem 0; color: var(--fex-muted); font-size: .9rem; }
.fex-page #contenuto p.fex-status { margin-bottom: 0; color: #146142; }
.fex-page #contenuto p.fex-status[data-error="true"] { color: #9c1017; }
.fex-form button:disabled { opacity: .74; cursor: wait; }
.fex-course-hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; }
.fex-course-aside { margin: 0 clamp(1.4rem, 3vw, 3rem) 0 0; padding: clamp(1.15rem, 2.6vw, 2.15rem); color: #fff; border-radius: .9rem; background: #222d3d; border: 1px solid #566578; }
.fex-page #contenuto .fex-course-aside h2 { font-size: 1.35rem; }
.fex-page #contenuto .fex-course-aside dl { margin-top: .9rem; }
.fex-course-aside dt { color: #c5cfdb; font-size: .88rem; margin-top: .55rem; }
.fex-course-aside dd { font-weight: 650; }
.fex-course-body { grid-template-columns: 1.5fr 1fr; align-items: start; gap: clamp(1rem, 4vw, 4rem); }
.fex-program article { border-bottom: 1px solid var(--fex-border); padding-block: 1.15rem; }
.fex-program article:last-child { border: 0; padding-bottom: 0; }
.fex-course-side { display: grid; gap: 1rem; }
.fex-course-side .fex-card:first-child { background: var(--fex-soft); border-top: 3px solid var(--fex-red); }
.fex-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; background: var(--fex-soft); padding: clamp(1.25rem, 3vw, 2.8rem); margin-bottom: 4rem; border-radius: .9rem; }
@media (max-width: 980px) {
  .fex-wrap { width: min(92%, 1320px); }
  .fex-hero-copy { padding: 1.65rem; }
}
@media (max-width: 700px) {
  .fex-hero, .fex-grid, .fex-split, .fex-form-layout, .fex-course-hero, .fex-course-body, .fex-fields { grid-template-columns: 1fr; }
  .fex-hero-image img { height: clamp(160px, 47vw, 260px); min-height: 0; }
  .fex-course-aside { margin: 0 1rem 1rem; }
  .fex-page #contenuto .fex-hero-copy h1 { letter-spacing: -.042em; }
}

/* Titoli sui riquadri scuri della sezione Formazione. */
.fex-page #contenuto :is(.fex-hero, .fex-course-hero) :is(h1, h2, h3) {
  color: #fff !important;
}