:root {
  --ink: #171717;
  --blue: #004494;
  --blue-dark: #002f67;
  --blue-hover: #003776;
  --blue-5: #f2f5f9;
  --yellow: #ffd617;
  --navy: #004494;
  --deep: #002f67;
  --paper: #ffffff;
  --paper-2: #f2f5f9;
  --card: #ffffff;
  --red: #004494;
  --red-dark: #003776;
  --green: #467a39;
  --muted: #404040;
  --line: #cfd4dc;
  --gold: #004494;
  --shadow: none;
  --serif: Arial, Helvetica, sans-serif;
  --sans: Arial, Helvetica, sans-serif;
  --radius: 4px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: #fff;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }

a:hover { color: var(--blue-hover); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.hero h1::after,
.page-hero h1::after,
.section h2::after,
.band h2::after {
  content: "";
  display: block;
  width: 4.75rem;
  height: 0.25rem;
  margin-top: 0.75rem;
  background: var(--yellow);
}

p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 50;
}

.skip:focus { top: 0.5rem; }

.wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
}

.eu-bar {
  height: 4px;
  background: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bar {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.brand img {
  height: 64px;
  width: auto;
  display: block;
  background: #fff;
}

.brand strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.brand small {
  display: block;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.82rem;
}

.nav-toggle {
  display: none;
  border: 2px solid var(--blue);
  background: #fff;
  color: var(--blue);
  border-radius: var(--radius);
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav > a,
.has-sub > a,
.nav-cta {
  text-decoration: none;
  color: var(--blue);
  font-weight: 400;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
}

.site-nav > a:hover,
.has-sub > a:hover { text-decoration: underline; background: transparent; }

.site-nav > a.nav-cta {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  margin-left: 0.4rem;
}

.site-nav > a.nav-cta:hover {
  background: var(--blue-hover);
  color: #fff;
  text-decoration: none;
}

.has-sub { position: relative; }

.sub {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 260px;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.has-sub:hover .sub,
.has-sub:focus-within .sub { display: grid; }

.sub a {
  text-decoration: none;
  color: var(--blue);
  padding: 0.45rem 0.85rem;
  border-radius: 0;
}

.sub a:hover { background: var(--blue-5); text-decoration: underline; }

.hero {
  position: relative;
  min-height: 0;
  display: block;
  color: var(--muted);
  background: #fff;
  padding: 2.4rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.625rem);
  color: var(--ink);
  max-width: 36rem;
}

.hero p.lede {
  font-size: 1.05rem;
  max-width: 40rem;
  color: var(--muted);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.2rem; }

.hero-photo {
  margin: 0;
  border: 1px solid var(--line);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }

.btn-red { background: var(--blue); border-color: var(--blue); }

.btn-red:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.btn-secondary {
  background: #fff;
  color: var(--blue);
}

.btn-secondary:hover { background: var(--blue-5); color: var(--blue); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-small { min-height: 40px; padding: 0.35rem 0.85rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--blue-5);
  border-block: 1px solid var(--line);
}

.stat {
  background: transparent;
  padding: 1.15rem 1.1rem;
  text-align: left;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  min-width: 4.5ch;
}

.stat span { color: var(--muted); font-size: 0.95rem; }

.section { padding: 2.75rem 0; scroll-margin-top: 5.5rem; }

#esami-sede,
#contatti { scroll-margin-top: 5.5rem; }

.section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }

.lede-block { max-width: 46rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.split-top { align-items: start; }

.photo-frame {
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: none;
}

.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pillars, .lanes, .resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0;
  padding: 1.1rem 1.1rem 1.15rem;
  box-shadow: none;
}

.panel h3 { font-size: 1.35rem; }

.ico {
  width: 28px;
  height: 28px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lane {
  position: relative;
  min-height: 220px;
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  border: 1px solid var(--line);
}

.lane img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lane span {
  position: relative;
  z-index: 1;
  padding: 1.1rem;
  background: linear-gradient(transparent, rgba(0, 47, 103, 0.82));
  width: 100%;
}

.lane strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
}

.lane em {
  font-style: normal;
  color: #fff;
}

.group { margin-top: 2.4rem; }

.group-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.group-head .ico { grid-row: span 2; align-self: start; margin-top: 0.3rem; }

.group-head p { margin: 0; color: var(--muted); }

.courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.course {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem 1.15rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: none;
}

.course.highlight { border-top: 4px solid var(--yellow); }

.course.paused { border-top: 4px solid var(--yellow); }

.status-hold { margin: 0; color: var(--muted); font-weight: 700; }

.kicker {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.course h3 { font-size: 1.35rem; }

.badge {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.15rem 0.45rem;
  border-radius: 0;
  background: var(--blue-5);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.prose { color: var(--muted); font-size: 1rem; }

.prose p:last-child { margin-bottom: 0; }

.prose ul { margin: 0.4rem 0 0.8rem; padding-left: 1.15rem; }

.course-buy { margin-top: auto; padding-top: 0.4rem; }

.price { display: flex; align-items: baseline; gap: 0.3rem; margin: 0; color: var(--ink); }

.price .eur { color: var(--muted); }

.price .num {
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
}

.price .prefix,
.price .suffix { color: var(--muted); font-size: 0.95rem; }

.price-note { color: var(--green); font-weight: 700; font-size: 0.92rem; }

.staff-intro { max-width: 48rem; }

.staff {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  background: var(--blue-5);
}

.person div { padding: 0.85rem 0.9rem 1rem; }

.person h3 { font-size: 1.15rem; }

.person p { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.55rem; }

.person a { font-weight: 700; }

.partners {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.partners a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  min-height: 100px;
  display: grid;
  place-items: center;
  padding: 0.7rem;
}

.partners img {
  max-height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
  align-items: stretch;
}

.map-frame {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 0;
}

.fine { color: var(--muted); font-size: 0.88rem; }

.site-footer {
  background: var(--deep);
  color: #fff;
  padding: 2.6rem 0 1.2rem;
}

.site-footer a { color: #fff; }

.site-footer a:hover { color: var(--yellow); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.1fr 0.8fr 0.9fr;
  gap: 1.5rem;
}

.footer-mark {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.footer-label {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--yellow);
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin: 0.28rem 0; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.92rem;
}

.page-hero {
  padding: 1.8rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.4rem;
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.625rem); max-width: 18ch; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.8rem 1rem;
  margin: 0.55rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.faq details p { margin: 0.7rem 0 0.2rem; }

.form-card, .quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.15rem;
  box-shadow: none;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 0;
  margin: 0 0 1rem;
  padding: 0.8rem 1rem 1rem;
}

legend { font-weight: 700; padding: 0 0.3rem; color: var(--ink); }

label { display: flex; gap: 0.5rem; align-items: flex-start; margin: 0.35rem 0; }

.stack label.field { display: grid; gap: 0.25rem; }

input[type="text"],
input[type="email"],
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--ink);
}

.note {
  background: var(--blue-5);
  border-radius: 0;
  border-left: 4px solid var(--yellow);
  padding: 0.7rem 0.85rem;
  color: var(--muted);
}

.quote-table { width: 100%; border-collapse: collapse; margin-top: 0.6rem; }

.quote-table th,
.quote-table td {
  text-align: left;
  padding: 0.55rem 0.3rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.quote-table td:last-child,
.quote-table th:last-child { text-align: right; white-space: nowrap; }

.quote-table .discount td { color: var(--green); }

.quote-table .total td { font-weight: 700; font-size: 1.05rem; color: var(--ink); }

.error {
  background: #fdecea;
  border-radius: 0;
  border-left: 4px solid #da2131;
  padding: 0.8rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.resource {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0;
  padding: 1.05rem;
  min-height: 150px;
  box-shadow: none;
}

a.resource:hover { border-color: var(--blue); background: var(--blue-5); }

.resource h2, .resource h3 { font-size: 1.3rem; }

.resource > :last-child { margin-top: auto; }

.resource-links { font-weight: 700; color: var(--blue); }

.freq {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
}

.freq dt { font-weight: 700; }

.freq dd { margin: 0; }

.cookie {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 1rem;
  width: min(420px, calc(100% - 2rem));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  background: var(--deep);
  color: #fff;
  border-radius: 0;
  border-top: 4px solid var(--yellow);
  padding: 0.85rem 0.9rem;
  box-shadow: none;
}

.cookie[hidden] { display: none; }

.cookie p { margin: 0; font-size: 0.95rem; }

.cookie .btn { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }

.cookie .btn:hover { background: #f8ae21; border-color: #f8ae21; color: var(--ink); }

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.path {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.1rem 1.1rem 1.15rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.path-main { border-top: 4px solid var(--yellow); }

.path h3 { font-size: 1.45rem; }

.path h3 a { color: var(--blue); }

.path .path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: auto;
  padding-top: 0.9rem;
}

.split-prices {
  display: flex;
  gap: 1.2rem;
  margin: 0.2rem 0 0.4rem;
}

.split-prices strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

.split-prices small {
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.ladder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.ladder li { margin: 0; }

.ladder a {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}

.ladder a:hover { background: var(--blue-5); }

.ladder em {
  font-style: normal;
  font-weight: 700;
  color: var(--blue);
  font-size: 0.85rem;
}

.ladder strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.ladder span { color: var(--muted); font-size: 0.92rem; }

.course-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  gap: 1.5rem;
  align-items: start;
}

.buybox {
  background: var(--blue-5);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 0;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: none;
  position: sticky;
  top: 88px;
}

.buybox.highlight { border-top-color: var(--yellow); }

.buybox .btn { width: 100%; margin-top: 0.35rem; }

.buybox.inline {
  position: static;
  max-width: 420px;
  margin-top: 0.4rem;
}

.prose-page > p,
.prose-page > h2,
.prose-page > h3,
.prose-page > ul,
.prose-page > ol,
.prose-page > .callout,
.prose-page > .prose { max-width: 46rem; }

.prose-page h2 { margin-top: 2rem; font-size: 1.75rem; }

.course h3 a { color: var(--blue); }

.course h3 a:hover { color: var(--blue-hover); }

.callout {
  border-left: 4px solid var(--yellow);
  background: var(--blue-5);
  border-radius: 0;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

.callout p:last-child { margin: 0; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.crumbs a { color: var(--blue); }

.crumbs a:hover { color: var(--blue-hover); }

.band {
  background: var(--blue);
  color: #fff;
  padding: 2.6rem 0;
}

.band h2 { color: #fff; }

.band h2::after { background: var(--yellow); }

.band p { color: #fff; max-width: 42rem; }

.band .btn,
.band .btn-red {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.band .btn:hover,
.band .btn-red:hover {
  background: #f8ae21;
  border-color: #f8ae21;
  color: var(--ink);
}

.band a:not(.btn) { color: var(--yellow); }

.band-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: none; }

.sim-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.sim-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
}

.sim-gallery img {
  display: block;
  width: 100%;
  height: auto;
  background: #05070c;
}

.sim-gallery figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  color: var(--muted);
}

.sim-gallery figcaption strong {
  color: var(--ink);
  font-weight: 700;
}

.sim-gallery figure:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.timeline {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  max-width: 46rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--blue);
  font-weight: 700;
}

.timeline a {
  font-weight: 700;
  text-decoration: none;
}

.timeline a:hover { text-decoration: underline; }

.timeline p { margin: 0.2rem 0 0; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem 1rem;
    gap: 0.15rem;
  }
  .site-nav.is-open {
    display: flex;
    max-height: calc(100dvh - 76px);
    overflow: auto;
    padding-bottom: 5rem;
  }
  .nav-cta { margin-left: 0; text-align: center; }
  .sub { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0.3rem 0.8rem; min-width: 0; }
  .stats, .pillars, .paths, .ladder, .staff, .partners, .footer-grid, .resource-grid { grid-template-columns: 1fr 1fr; }
  .lanes, .split, .contact-grid, .course-top, .hero-grid, .sim-gallery { grid-template-columns: 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .buybox { position: static; }
  .hero { padding: 1.6rem 0 1.4rem; }
  .hero-photo img { height: 200px; }
  .timeline li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 640px) {
  .stats, .pillars, .paths, .ladder, .staff, .partners, .footer-grid, .resource-grid, .courses, .freq { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .footer-base { flex-direction: column; }
  .cookie { width: min(420px, calc(100% - 2rem)); }
  .brand small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
