/* Job Crescita: soft canvas, large rounded cards, pill buttons, light oversized numbers. Jost. Navy, gold, white. */

@font-face {
  font-family: "Jost"; font-weight: 100 900; font-style: normal; font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  --canvas: #f6f6f4;
  --card: #eaedf2;
  --card-2: #e3e8f0;
  --white: #ffffff;
  --ink: #0f1a2e;
  --muted: #4b5264;
  --soft: #5c6375;
  --navy: #0f2147;
  --navy-2: #182e5c;
  --gold: #c6a052;
  --gold-soft: #ecdcb3;
  --pill-soft: #e2e6ed;
  --pill-soft-2: #d8dee8;
  --line: rgba(15, 26, 46, 0.1);

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-card: 40px;
  --r-inner: 28px;
  --pad-x: clamp(24px, 5vw, 80px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html:has(:target) { scroll-behavior: smooth; } }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure, h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--gold-soft); color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
:where(.foot, .cta-band, .inc-cta, .card-cta, .phase-2, .apply-copy, .arch-logo) :focus-visible { outline-color: var(--gold-soft); }
.apply-copy :focus-visible, .foot :focus-visible { outline-color: var(--gold-soft); }
main:focus, .form-done:focus { outline: none; }
input { caret-color: var(--navy); }

h1, h2 { font-weight: 500; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.7rem + 2.4vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(2.125rem, 1.6rem + 1.6vw, 3rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(1300px + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }
.vh, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 99px; }
.skip:focus { top: 12px; }
.ico { width: 24px; height: 24px; flex: none; }
.ico-fill { fill: currentColor; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  padding: 4px 22px 4px 4px; border-radius: 99px; background: var(--navy); color: #fcfdfd;
  font-size: 16px; line-height: 24px; white-space: nowrap; transition: opacity 0.2s, background-color 0.2s;
}
.pill:hover { opacity: 0.9; }
.pill-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); flex: none; transition: transform 0.35s var(--ease); }
.pill:hover .pill-dot { transform: rotate(45deg); }
.pill-sm { padding-right: 18px; }
.pill-sm .pill-dot { width: 36px; height: 36px; }
.pill-block { width: 100%; justify-content: center; position: relative; min-height: 52px; }
.pill-block .pill-dot { position: absolute; left: 4px; top: 50%; margin-top: -22px; }
.pill-soft {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border-radius: 99px;
  background: var(--pill-soft); color: var(--navy); font-size: 16px; line-height: 24px; transition: background-color 0.2s;
}
.pill-soft:hover { background: var(--pill-soft-2); }
.pill-soft .ico { width: 20px; height: 20px; color: #178046; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px max(var(--pad-x), calc((100vw - 1300px) / 2)); background: rgba(246, 246, 244, 0.94);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: 19px; color: var(--navy); }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 99px; background: var(--white); }
.nav > a { padding: 10px 18px; border-radius: 99px; font-size: 15px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.nav > a:hover { background: var(--canvas); color: var(--ink); }
.bar-end { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; padding: 4px; border-radius: 99px; background: var(--pill-soft); font-size: 14px; font-weight: 500; }
.lang a { padding: 6px 12px; border-radius: 99px; color: var(--soft); }
.lang a[aria-current="page"] { background: var(--white); color: var(--navy); }
.lang-nav { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); cursor: pointer; place-items: center; color: var(--navy); }
.menu-btn .ico + .ico, .menu-btn[aria-expanded="true"] .ico:first-of-type { display: none; }
.menu-btn[aria-expanded="true"] .ico + .ico { display: block; }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-card); }
.card-stat { display: flex; flex-direction: column; justify-content: space-between; gap: 56px; padding: 44px 48px; }
.card-label { display: flex; align-items: center; gap: 12px; font-size: 20px; color: var(--ink); }
.num { font-size: clamp(3.5rem, 2.6rem + 2.6vw, 5rem); font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.card-cap { margin-top: 14px; font-size: 20px; line-height: 1.35; color: var(--ink); max-width: 14.4em; }
.card-photo { position: relative; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-photo:hover img { transform: scale(1.03); }
.tag { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.92); font-size: 15px; color: var(--navy); }
.tag .ico { width: 18px; height: 18px; }

/* ---------- hero: a portico of five arches, from Albania to Italy ---------- */
.hero { padding-top: clamp(20px, 3vw, 44px); padding-bottom: 72px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px); align-items: end; }
.hero h1 { max-width: 9em; font-size: clamp(2.75rem, 1.3rem + 4.2vw, 5.25rem); line-height: 1.02; }
.hero-side { display: flex; flex-direction: column; gap: 24px; padding-bottom: 6px; }
.hero-p { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 24em; }
.arches { margin-top: clamp(28px, 4vw, 52px); height: clamp(300px, 47svh, 470px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); align-items: end; }
.arch { position: relative; height: 100%; margin: 0; overflow: hidden; border-radius: 999px 999px 264px 264px; background: var(--card); transition: transform 0.6s var(--ease); }
.arch:hover { transform: translateY(-10px); }
.arch-side { height: 70%; }
.arch-mid { height: 85%; }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.arch:hover img { transform: scale(1.05); }
.arch .tag { left: 50%; bottom: 16px; transform: translateX(-50%); white-space: nowrap; }
.arch-logo { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 14px 30px; background: var(--navy); color: #fff; text-align: center; }
.logo-badge { display: grid; place-items: center; width: min(58%, 128px); aspect-ratio: 1; margin: 24% auto auto; border-radius: 50%; background: #fff; }
.logo-badge img { width: 70%; height: auto; }
/* the question in the middle of the navy arch */
.arch-logo .logo-badge { margin-bottom: 0; }
.arch-ask { margin: auto 0; padding: 14px 0; font-size: clamp(0.875rem, 0.5rem + 0.85vw, 1.3rem); font-weight: 500; line-height: 1.25; text-wrap: balance; color: #fff; }
.arch-logo b { font-size: clamp(1.05rem, 0.8rem + 0.8vw, 1.5rem); font-weight: 500; }
.arch-logo > span:last-child { font-size: 14px; line-height: 1.35; text-wrap: balance; color: var(--gold-soft); max-width: 9.6em; }
.hero > .facts { justify-content: center; margin-top: 28px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 99px; background: var(--card); font-size: 14px; color: var(--ink); }
.facts .ico { width: 18px; height: 18px; color: var(--navy); }

/* ---------- sections ---------- */
.section { padding-top: 96px; padding-bottom: 24px; }
.head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; align-items: end; margin-bottom: 48px; }
.head h2 { grid-column: span 2; max-width: 9.6em; }
.head p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 27.6em; }

/* program */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-step { display: flex; flex-direction: column; justify-content: flex-start; gap: 56px; padding: 36px 40px 40px; transition: background-color 0.3s; }
.card-step:hover { background: var(--card-2); }
.card-step .card-label { justify-content: space-between; }
.place { padding: 5px 14px; border-radius: 99px; background: var(--white); font-size: 14px; color: var(--muted); }
.place.is-italy { background: var(--gold-soft); color: var(--navy); }
.card-step > div > p { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.card-cta { justify-content: space-between; background: var(--navy); color: #fff; }
.card-cta:hover { background: var(--navy-2); }
.card-cta .card-label, .card-cta h3 { color: #fff; }
.card-cta .ico { color: var(--gold-soft); }
.card-cta .pill { margin-top: 24px; background: var(--white); color: var(--navy); }

/* phases */
.phases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phase { padding: 12px; }
.phase-pic { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-inner); overflow: hidden; }
.phase-pic img { width: 100%; height: 100%; object-fit: cover; }
.phase-body { padding: 32px 36px 36px; }
.phase-body .card-label { font-size: 16px; color: var(--soft); }
.phase-body h3 { margin-top: 8px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.phase-body ul { margin-top: 28px; display: grid; gap: 10px; }
.phase-body li { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--white); font-size: 16px; }
.phase-body li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.phase-2 { background: var(--navy); color: #fff; }
.phase-2 .phase-body h3 { color: #fff; }
.phase-2 .phase-body .card-label { color: #b9c3da; }
.phase-2 .phase-body li { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* training */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 24px; }
.b-a { grid-column: 1 / span 7; grid-row: 1 / span 2; min-height: 520px; }
.b-b { grid-column: 8 / span 5; }
.b-c { grid-column: 8 / span 5; aspect-ratio: 16 / 11; }

/* about */
.about { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.about-main { grid-column: span 3; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.about-main p { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 33.6em; }
.about-year { grid-column: span 1; }
.about-pic { grid-column: span 1; min-height: 240px; }
.value { padding: 32px 32px 36px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 240px; }
.value p { color: var(--muted); line-height: 1.6; }

/* apply */
.apply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; padding: 56px; background: var(--navy); color: #fff; }
.apply h2 { color: #fff; }
.apply-copy > p:not(.apply-or) { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #c3cbe0; max-width: 22.8em; }
.apply-or { margin-top: 40px; font-size: 15px; color: #b9c3da; }
.direct { margin-top: 14px; display: grid; gap: 10px; }
.direct a { display: flex; align-items: center; gap: 14px; padding: 10px 20px 10px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); transition: background-color 0.2s; }
.direct a:hover { background: rgba(255, 255, 255, 0.13); }
.ico-round { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); flex: none; }
.ico-round .ico { width: 20px; height: 20px; }
.direct small { display: block; font-size: 14px; color: #b9c3da; }
.form { background: var(--white); color: var(--ink); border-radius: var(--r-inner); padding: 36px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: 18px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; }
.field-row .field { margin-top: 0; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.field input { width: 100%; height: 54px; padding: 0 20px; border: 1px solid #858c9d; border-radius: 16px; background: var(--canvas); font-size: 16px; transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }
.field input:hover { background: #f0f0ed; }
.field input:focus { outline: 2px solid transparent; background: var(--white); border-color: var(--navy); box-shadow: 0 0 0 4px rgba(236, 220, 179, 0.8); }
.field input[aria-invalid="true"] { border-color: #b4412e; box-shadow: 0 0 0 4px rgba(180, 65, 46, 0.14); }
.hint { margin-top: 8px; font-size: 14px; color: var(--soft); }
.submit { margin-top: 26px; }
.submit[aria-disabled="true"] { opacity: 0.7; cursor: progress; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--navy); }
.form-status:empty { display: none; }
.form-status.is-error { padding: 14px 18px; border-radius: 16px; background: #fbeae7; color: #9b3524; }
.field-err { margin-top: 8px; font-size: 14px; font-weight: 500; color: #a33a28; }
.field label small { font-size: 14px; font-weight: 400; color: var(--soft); }
.form-privacy { margin-top: 14px; font-size: 14px; color: var(--soft); }
.form-privacy a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.form.is-sent > :not(.form-done) { display: none; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 0; }
.form-done[hidden] { display: none; }
.form-done .ico-round { width: 64px; height: 64px; }
.form-done .ico-round .ico { width: 30px; height: 30px; }
.form-done h2 { color: var(--ink); }
.form-done p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.form-done .pill-soft { margin-top: 10px; }
.preview { margin-top: 20px; padding: 18px 20px; border-radius: 18px; background: var(--card); }
.preview-label { font-size: 14px; color: var(--soft); }
.preview-msg { margin-top: 6px; font-size: 15px; line-height: 1.5; }
.preview-wa { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--navy); }
.preview-wa .ico { width: 18px; height: 18px; color: #178046; }
.preview-wa:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- footer ---------- */
.foot { padding-top: 96px; padding-bottom: 32px; }
.foot-brand { display: flex; align-items: center; gap: 20px; }
.foot-brand img { width: 64px; height: auto; }
.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--canvas); color: var(--navy); }
.socials .ico { width: 18px; height: 18px; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 24px 8px 0; font-size: 13px; color: var(--soft); }
.to-top { color: var(--navy); font-weight: 500; }

/* ---------- motion: calm reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* text only slides: text that fades in from nothing counts as arriving late */
  html.js .in { animation: riseIn 0.6s var(--ease) both; }
  html.js .hero-side > .in:nth-child(1) { animation-delay: 0.1s; }
  html.js .hero-side > .in:nth-child(2) { animation-delay: 0.2s; }
  html.js .hero > .facts.in { animation-delay: 0.9s; animation-name: fade; }
  
  html.js .arch:nth-child(1) { animation-delay: 0.25s; }
  html.js .arch:nth-child(2) { animation-delay: 0.34s; }
  html.js .arch:nth-child(3) { animation-delay: 0.43s; }
  html.js .arch:nth-child(4) { animation-delay: 0.52s; }
  html.js .arch:nth-child(5) { animation-delay: 0.61s; }
  html.js .pop { animation: pop 0.7s 0.2s var(--ease) both; }
  html.js.reveal-ready .rv { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), translate 0.45s var(--ease), background-color 0.3s, box-shadow 0.4s; }
  html.js.reveal-ready .rv.on { opacity: 1; transform: none; }
}
@keyframes riseIn { from { transform: translateY(20px); } }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .lang-bar { display: none; }
  .nav .lang-nav { display: flex; margin-left: 4px; }
  .hero-top { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { max-width: 8.4em; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr 1fr; }
  .about-main { grid-column: 1 / -1; }
  .about-year, .about-pic { grid-column: span 1; }
  .apply { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .bar { padding-block: 12px; }
  .brand img { height: 42px; }
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: calc(100% + 4px); left: var(--pad-x); right: var(--pad-x); flex-direction: column; align-items: stretch;
    max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain;
    padding: 10px; border-radius: 28px; box-shadow: 0 24px 48px -24px rgba(15, 26, 46, 0.35);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.2s, transform 0.2s; }
  html:not(.js) .bar { position: static; flex-wrap: wrap; }
  html:not(.js) .nav { position: static; order: 3; width: 100%; max-height: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
  html:not(.js) .menu-btn { display: none; }
  .nav > a { padding: 14px 18px; font-size: 18px; color: var(--ink); }
  .nav .lang-nav { align-self: flex-start; margin: 8px 0 4px 8px; }

  .hero { padding-bottom: 56px; }
  .arches { grid-template-columns: 1fr 1.15fr 1fr; height: clamp(260px, 42svh, 340px); gap: 10px; }
  .arch-extra { display: none; }
  .arch-side { height: 78%; }
  .arch .tag { bottom: 10px; padding: 6px 12px 6px 8px; font-size: 14px; }
  .arch-logo { padding-bottom: 20px; }
  .arch-logo > span:last-child { font-size: 14px; }
  .hero > .facts { justify-content: flex-start; }
  .card-stat { padding: 32px; gap: 40px; }
  .card-label { font-size: 18px; }
  .card-cap { font-size: 17px; }
  .head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
  .head p { justify-self: start; }
  .section { padding-top: 72px; }
  .steps, .phases { grid-template-columns: 1fr; gap: 16px; }
  .card-step { gap: 36px; padding: 32px; }
  .phase-body { padding: 24px 20px 24px; }
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .b-a, .b-b, .b-c { grid-column: auto; grid-row: auto; }
  .b-a { min-height: 0; aspect-ratio: 4 / 3; }
  .about { grid-template-columns: 1fr; gap: 16px; }
  .about-main { padding: 32px; }
  .about-main p { font-size: 18px; }
  .about-year, .about-pic, .value { grid-column: auto; }
  .about-pic { aspect-ratio: 4 / 3; min-height: 0; }
  .value { min-height: 0; padding: 28px; }
  .apply { padding: 28px 20px 20px; gap: 32px; }
  .form { padding: 24px 20px; }
  .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .pill, .actions .pill-soft { justify-content: center; }
  .actions .pill { position: relative; min-height: 52px; }
  .actions .pill .pill-dot { position: absolute; left: 4px; }
}

/* ---------- multi-page additions ---------- */
.nav > a[aria-current="page"] { background: var(--navy); color: #fff; }
.pill[aria-current="page"] { box-shadow: 0 0 0 3px var(--gold-soft); }


/* page header for inner pages */
.page-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-top: clamp(24px, 4vw, 56px); padding-bottom: 24px; }
.page-head h1 { font-size: clamp(2.75rem, 1.6rem + 3.4vw, 4.75rem); line-height: 1.04; }
.page-head-copy p { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 24em; }
.section-tight { padding-top: 40px; }

.head-side { justify-self: start; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 27.6em; }
.head-side p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.head p { justify-self: auto; }
.more { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 99px; background: var(--white); color: var(--navy); font-size: 15px; transition: background-color 0.2s; }
.more:hover { background: var(--card); }
.about-main .more { align-self: flex-start; }

.home-about { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px; }
.home-about .about-main, .home-about .about-year { grid-column: auto; }

/* call to action band */
.cta-band { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 48px 56px; background: var(--navy); color: #fff; }
.cta-band > div:first-child { flex: 1 1 auto; min-width: 0; }
.cta-band .actions { flex: none; }
.cta-band h2 { max-width: 12em; color: #fff; }
.cta-band p { margin-top: 16px; font-size: 18px; color: #c3cbe0; max-width: 27.6em; }
.pill-light { background: var(--white); color: var(--navy); }

/* how to start, services */
.start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* apply page */
.apply-page { padding-top: clamp(24px, 4vw, 56px); }
.apply h1 { color: #fff; font-size: clamp(2.5rem, 1.7rem + 2.4vw, 3.75rem); line-height: 1.08; }
.apply-copy > p:not(.apply-or) { margin-top: 18px; font-size: 18px; line-height: 1.6; color: #c3cbe0; max-width: 22.8em; }

/* contact page */
.channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.channel { display: flex; flex-direction: column; gap: 8px; padding: 36px 40px 40px; min-height: 260px; transition: background-color 0.25s, transform 0.25s var(--ease); }
.channel:hover { background: var(--card-2); transform: translateY(-3px); }
.channel .ico-round { width: 56px; height: 56px; margin-bottom: auto; }
.channel .ico-round .ico { width: 24px; height: 24px; }
.channel-label { margin-top: 48px; font-size: 16px; color: var(--soft); }
.channel-value { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.channel-wa { background: var(--navy); }
.channel-wa:hover { background: var(--navy-2); }
.channel-wa .channel-label { color: #b9c3da; }
.channel-wa .channel-value { color: #fff; }
.social-row { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.social-row h2 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.social-row ul { display: flex; flex-wrap: wrap; gap: 16px; }
.social-card { display: flex; align-items: center; gap: 12px; padding: 18px 28px 18px 22px; border-radius: 99px; background: var(--white); transition: background-color 0.2s; }
.social-card:hover { background: var(--card); }
.social-card .ico { width: 22px; height: 22px; color: var(--navy); }
.social-card .handle { color: var(--soft); }

/* footer */
.foot-name { font-size: 22px; font-weight: 500; color: var(--navy); }

@media (max-width: 1100px) {
  .page-head { grid-template-columns: 1fr; gap: 32px; }
  .services, .channels { grid-template-columns: 1fr 1fr; }
  .home-about { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: stretch; }
}
@media (max-width: 860px) {
  .head-side { justify-self: start; }
  .start, .services, .channels { grid-template-columns: 1fr; gap: 16px; }
  .channel { min-height: 0; padding: 28px; }
  .channel-label { margin-top: 24px; }
  .cta-band { padding: 32px 24px; }
  .page-head-copy p { font-size: 17px; }
}

/* privacy & terms */
.legal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 48px; padding: clamp(32px, 4vw, 56px); background: var(--white); }
.legal h2 { grid-column: 1; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); margin-top: 36px; }
.legal h2:first-child, .legal h2:first-child + p { margin-top: 0; }
.legal p { grid-column: 2; margin-top: 34px; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 40.8em; }
.legal a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.legal-date { margin-top: 40px !important; font-size: 14px !important; color: var(--soft) !important; }
.legal-link { margin-left: auto; color: var(--soft); }
.legal-link:hover, .legal-link[aria-current="page"] { color: var(--navy); }

/* ================= site-wide upgrade: motion, arches, numerals, FAQ ================= */

/* smooth cross-fade between pages (browsers that support it) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
.bar { view-transition-name: site-bar; background: var(--canvas); transition: box-shadow 0.3s; }
.bar.is-stuck { box-shadow: 0 14px 30px -22px rgba(15, 26, 46, 0.45); }

/* arches drift with the scroll; the entrance no longer locks their transform */
.arch { translate: 0 var(--py, 0px); }
@keyframes archUp { from { opacity: 0; transform: translateY(64px); } }
@media (prefers-reduced-motion: no-preference) {
  html.js .arch { animation: archUp 1s var(--ease) backwards; }
  html.js .page-arches .arch:nth-child(1) { animation-delay: 0.2s; }
  html.js .page-arches .arch:nth-child(2) { animation-delay: 0.32s; }
}

/* inner page headers: a pair of arches */
.page-arches { justify-self: end; width: 100%; max-width: 580px; height: clamp(340px, 54svh, 540px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; }
.page-arches .arch:first-child { height: 100%; }
.page-arches .arch:last-child { height: 78%; }
.about-pic { border-radius: 999px 999px 264px 264px; }

/* the slogan, moving slowly */
.marquee { overflow: hidden; padding-block: 8px 0; }
.marquee-track { display: flex; align-items: center; width: max-content; }
.marquee-track span { font-size: clamp(3rem, 1.8rem + 4.6vw, 6.5rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.35; white-space: nowrap; color: var(--ink); }
.marquee-track span:nth-of-type(even) { color: rgba(15, 26, 46, 0.5); }
.marquee-track i { flex: none; width: 14px; height: 14px; margin-inline: clamp(24px, 3vw, 48px); border-radius: 50%; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 48s linear infinite; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* program steps: large light numerals */
.card-step { position: relative; transition: translate 0.45s var(--ease), background-color 0.3s; }
.card-step:hover, .value:hover { translate: 0 -5px; }
.value { transition: translate 0.45s var(--ease), background-color 0.3s; }
.value:hover { background: var(--card-2); }
.card-step .card-label { justify-content: flex-start; }
.step-num { position: absolute; top: 24px; right: 40px; font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; color: rgba(15, 33, 71, 0.14); pointer-events: none; }

/* phases: the connector from Albania to Italy */
.phases { position: relative; }
.phase-link { position: absolute; left: 50%; top: 32%; translate: -50% -50%; z-index: 2; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--gold-soft); color: var(--navy); box-shadow: 0 0 0 10px var(--canvas); }
.phase-link .arrow { width: 16px; height: 16px; rotate: 45deg; }
.phase-link i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .phase-link i { animation: ring 2.6s var(--ease) 3; }
  .phase-link .arrow { animation: nudge 2.6s var(--ease) 3; }
}
@keyframes ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes nudge { 0%, 100% { translate: -3px 0; } 50% { translate: 4px 0; } }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 28px; transition: background-color 0.3s; }
.faq-item[open] { background: var(--white); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px 24px 34px; cursor: pointer; list-style: none; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--white); transition: rotate 0.35s var(--ease), background-color 0.3s; }
.faq-item[open] .faq-plus { rotate: 45deg; background: var(--gold-soft); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--navy); }
.faq-plus::after { rotate: 90deg; }
.faq-item p { padding: 0 34px 28px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 43.2em; }
@media (prefers-reduced-motion: no-preference) { .faq-item[open] p { animation: rise 0.45s var(--ease) both; } }

/* floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 14px 28px -12px rgba(15, 26, 46, 0.5); transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s; }
html.js .wa-float:not(.is-on) { opacity: 0; visibility: hidden; transform: translateY(12px); }
.wa-float:focus-visible { outline-color: var(--navy) !important; }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 28px; height: 28px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .wa-float.is-on::before { animation: ring 2.8s var(--ease) 1.2s 2; } }

/* 404 */
.notfound { min-height: 60svh; align-items: center; }
.notfound .page-head-copy .num { margin: 0 0 20px; font-size: clamp(5rem, 3.4rem + 6vw, 9rem); line-height: 0.9; color: var(--navy); }
.notfound .actions { margin-top: 32px; }

@media (max-width: 1100px) {
  .page-arches { justify-self: start; max-width: 520px; height: clamp(300px, 44svh, 420px); }
}
@media (max-width: 860px) {
  .phase-link { top: 50%; width: 60px; height: 60px; box-shadow: 0 0 0 8px var(--canvas); }
  .phase-link .arrow { rotate: 135deg; }
  @keyframes nudge { 0%, 100% { translate: 0 -3px; } 50% { translate: 0 4px; } }
  .step-num { font-size: 56px; top: 18px; right: 26px; }
  .faq-item summary { padding: 20px 20px 20px 24px; }
  .faq-item p { padding: 0 24px 24px; }
  .page-arches { gap: 12px; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

@media (max-width: 860px) { .foot-bottom { padding-bottom: 76px; } }

/* ================= real content: included, courses, why Italy, services, address ================= */
.included { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* five cards: three on the first row, two wider ones on the second */
@media (min-width: 1101px) {
  .included:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .included:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .included:has(> li:nth-child(5):last-child) > li:nth-last-child(-n+2) { grid-column: span 3; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .included:has(> li:nth-child(5):last-child) > .inc-cta { grid-column: 1 / -1; }
}
.inc { display: flex; flex-direction: column; justify-content: space-between; gap: 44px; min-height: 250px; padding: 36px 40px 40px; transition: translate 0.45s var(--ease), background-color 0.3s; }
.inc:hover { translate: 0 -5px; background: var(--card-2); }
.inc .ico-round { width: 56px; height: 56px; }
.inc .ico-round .ico { width: 24px; height: 24px; }
.inc p { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.inc-cta, .inc-cta:hover { background: var(--navy); color: #fff; }
.inc-cta h3 { color: #fff; }
.inc-cta .pill { margin-top: 22px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* three per row; a last row of two or one stretches to fill the width, whatever the number of courses */
@media (min-width: 861px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tiles > li { grid-column: span 2; }
  .tiles > li:nth-last-child(2):nth-child(3n+1), .tiles > li:last-child:nth-child(3n+2) { grid-column: span 3; }
  .tiles > li:nth-last-child(2):nth-child(3n+1) .tile, .tiles > li:last-child:nth-child(3n+2) .tile { aspect-ratio: 2 / 1; }
  .tiles > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .tiles > li:last-child:nth-child(3n+1) .tile { aspect-ratio: 4 / 1; }
}
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 32px; background: var(--card); transition: translate 0.45s var(--ease); }
.tile:hover { translate: 0 -5px; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile-name { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px 9px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.95); color: var(--navy); font-size: 16px; font-weight: 500; }
.tile-name .ico { width: 20px; height: 20px; }

.courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course { display: flex; flex-direction: column; padding: 12px; scroll-margin-top: 12px; transition: box-shadow 0.4s; }
.course:target { box-shadow: 0 0 0 3px var(--gold); }
.course-pic { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-inner); }
.course-pic img { width: 100%; height: 100%; object-fit: cover; }
.course-body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 30px; }
.course-body > ul { margin-bottom: 24px; }
.course-body .more { margin-top: auto; align-self: flex-start; }
.course-body h3 { display: flex; align-items: center; gap: 10px; }
.course-body h3 .ico { color: var(--gold); }
.course-body > p { margin-top: 12px; color: var(--muted); line-height: 1.6; }
.course-skills-h { margin-top: 24px !important; font-size: 14px; font-weight: 500; color: var(--soft) !important; }
.course-body ul { margin-top: 10px; display: grid; gap: 8px; }
.course-body li { display: flex; gap: 10px; align-items: baseline; font-size: 15.5px; line-height: 1.45; }
.course-body li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); translate: 0 -2px; }
/* the closing card fills whatever is left of the last row */
.course-cta h3 { max-width: 13.2em; line-height: 1.3; }
@media (min-width: 1101px) {
  .courses > .course-cta:nth-child(3n+1) { grid-column: 1 / -1; }
  .courses > .course-cta:nth-child(3n+2) { grid-column: span 2; }
}
@media (min-width: 861px) and (max-width: 1100px) {
  .courses > .course-cta:nth-child(odd) { grid-column: 1 / -1; }
}

.italy { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.italy-pic { height: clamp(380px, 62svh, 580px); width: 100%; max-width: 440px; border-radius: 999px 999px 160px 160px; }
.italy-lead { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 26.4em; }
.italy-list { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.italy-list li { padding: 26px 28px 28px; border-radius: 28px; background: var(--card); }
.italy-list p { margin-top: 8px; color: var(--muted); line-height: 1.55; }

.services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.services .card-step { gap: 36px; padding: 30px 30px 32px; }
.about-p2 { margin-top: 16px; font-size: 17px !important; }

.address { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; padding: 22px 28px; background: var(--white); border-radius: 32px; }
.address .ico-round { width: 52px; height: 52px; }
.address-text { font-size: 19px; color: var(--ink); }
.address-text small { display: block; font-size: 14px; color: var(--soft); }
.address .more { margin-left: auto; background: var(--canvas); }
.nav > a { padding-inline: 16px; }

@media (max-width: 1100px) {
  .included, .courses { grid-template-columns: 1fr 1fr; }
  .services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .included, .courses, .services { grid-template-columns: 1fr; gap: 16px; }
  .inc { min-height: 0; gap: 28px; padding: 28px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { border-radius: 24px; }
  .tile-name { left: 8px; bottom: 8px; padding: 6px 12px 6px 8px; font-size: 14px; }
  .tile-name .ico { width: 16px; height: 16px; }
  .italy { grid-template-columns: 1fr; }
  .italy-pic { height: 400px; max-width: none; }
  .italy-list { grid-template-columns: 1fr; }
  .address .more { margin-left: 0; }
}

@media (max-width: 860px) { .tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; } .tiles li:last-child:nth-child(odd) .tile { aspect-ratio: 8 / 3; } }

/* ================= footer: a real one ================= */
.foot { margin-top: 96px; padding: 0; background: #0a1730; color: #fff; border-radius: 40px 40px 0 0; }
.foot-in { padding-top: clamp(56px, 6vw, 88px); padding-bottom: 28px; }
.foot-big { max-width: 8.4em; font-size: clamp(2.25rem, 1.3rem + 3.6vw, 4.75rem); font-weight: 300; letter-spacing: -0.035em; line-height: 1.05; color: #fff; }
.foot-grid { margin-top: clamp(48px, 5vw, 72px); padding-top: 48px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: grid; grid-template-columns: 1.5fr 0.9fr 1fr 1.35fr; gap: 40px clamp(28px, 4vw, 64px); align-items: start; }
.foot .foot-brand { display: block; }
.foot-logo { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; }
.foot .foot-logo img { width: 54px; height: auto; }
.foot .foot-name { margin-top: 20px; font-size: 22px; font-weight: 500; color: #fff; }
.foot-about { margin-top: 8px; max-width: 20.4em; line-height: 1.6; color: #b4bfd8; }
.foot .socials { margin-top: 22px; gap: 10px; }
.foot .socials a { width: 42px; height: 42px; background: rgba(255, 255, 255, 0.08); color: #fff; transition: background-color 0.2s, color 0.2s; }
.foot .socials a:hover { background: var(--gold-soft); color: var(--navy); }
.foot-h { margin-bottom: 14px; font-size: 14px; color: #a3b0cf; }
.foot-col a { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 16px; color: #fff; transition: color 0.2s; }
.foot-col a:hover { color: var(--gold-soft); }
.foot-contact .ico { width: 18px; height: 18px; color: var(--gold-soft); }
.foot-contact a { align-items: flex-start; line-height: 1.4; overflow-wrap: anywhere; }
.foot-contact .ico { margin-top: 2px; }
.foot .foot-all { display: block; margin-top: 8px; color: var(--gold-soft); }
.foot-all .arrow { margin-left: 6px; }
.foot .foot-bottom { margin-top: clamp(48px, 5vw, 72px); padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 14px; color: #a3b0cf; }
.foot .lang { background: rgba(255, 255, 255, 0.08); }
.foot .lang a { color: #b4bfd8; }
.foot .lang a[aria-current="page"] { background: #fff; color: var(--navy); }
.foot .legal-link { margin-left: auto; color: #b4bfd8; }
.foot .legal-link:hover, .foot .legal-link[aria-current="page"] { color: #fff; }
.foot .to-top { color: #fff; font-weight: 500; }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } .foot .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) {
  .foot { margin-top: 72px; border-radius: 32px 32px 0 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .foot-contact { grid-column: 1 / -1; }
  .foot .legal-link { margin-left: 0; }
  .foot .foot-bottom { padding-bottom: 76px; }
}
.foot .foot-brand .foot-about { color: #b4bfd8; }
.foot .foot-brand .foot-name { color: #fff; }
.foot .foot-bottom { padding-right: 76px; }
@media (max-width: 860px) { .foot .foot-bottom { padding-right: 0; } }

/* contact: the map */
.map { box-shadow: 0 0 0 1px var(--line); border-radius: 28px; margin-top: 24px; height: clamp(340px, 52svh, 520px); overflow: hidden; background: var(--card); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .map { margin-top: 16px; height: 360px; } }

/* six menu links: keep them on one line */
.nav > a { padding-inline: 14px; white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 861px) { .nav > a { padding-inline: 10px; font-size: 14px; } .brand span { display: none; } }

/* ================= review pass, November 2026 ================= */
.page-head-copy .actions { margin-top: 32px; }
.page-arches .arch-logo .logo-badge { margin: auto; }
.brand, .skip, .pill, .pill-soft, .more, .nav a, .lang a, .direct a { -webkit-tap-highlight-color: transparent; }
.lang a { display: inline-flex; align-items: center; min-height: 32px; }
.apply > * { min-width: 0; }
.apply h1 { overflow-wrap: anywhere; }

@media (min-width: 1241px) {
  .bar { display: grid; grid-template-columns: 1fr auto 1fr; }
  .bar-end { justify-self: end; }
}
@media (max-width: 1100px) {
  .head { grid-template-columns: 1fr 1fr; gap: 32px; }
  .head h2 { grid-column: auto; }
}
@media (max-width: 860px) {
  .head { grid-template-columns: 1fr; gap: 16px; }
  .lang a { min-height: 40px; padding-inline: 16px; }
  .tile-name { max-width: calc(100% - 16px); border-radius: 18px; line-height: 1.2; }
  .services .card-step { flex-direction: row; align-items: flex-start; gap: 20px; padding: 26px 28px; }
  .legal { grid-template-columns: 1fr; }
  .legal p { grid-column: 1; margin-top: 10px; }
  /* the form comes first on phones */
  .apply { gap: 0; }
  .apply-copy { display: contents; }
  .form { order: 1; margin-top: 28px; }
  .apply-or { order: 2; margin-top: 28px; }
  .direct { order: 3; }
  .page-apply .wa-float { display: none; }
}
@media (max-width: 480px) {
  .actions .pill { padding-inline: 56px; }
}
.pill-block { padding-inline: 56px; }
/* notched phones held sideways */
@supports (padding: max(0px)) {
  .wa-float { right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* the five arches grow with their content instead of cutting the logo off */
.arches { height: auto; grid-template-rows: minmax(clamp(300px, 47svh, 470px), auto); }
.arches figure.arch > img { position: absolute; inset: 0; }
.brand { flex: none; }
h1, h2, h3 { overflow-wrap: break-word; }
.direct a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.preview-msg, .legal p { overflow-wrap: anywhere; }
.social-card { flex-wrap: wrap; max-width: 100%; }
@media (min-width: 861px) and (max-width: 940px) { .bar { gap: 14px; } .nav { gap: 2px; } .nav > a { padding-inline: 8px; } }
@media (min-width: 861px) and (max-width: 1100px) { .channels > li:last-child, .about > .value:last-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) {
  .page-head, .hero-top, .apply { grid-template-columns: minmax(0, 1fr); }
  .lang a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 10px; }
  .lang-nav a { min-width: 40px; }
  .more, .nav > a { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { min-width: 44px; min-height: 44px; }
  .foot-col a { align-items: center; min-height: 44px; }
  .foot .foot-all { display: flex; }
  .foot-contact .ico { margin-top: 0; }
  .foot .legal-link, .foot .to-top, .preview-wa { display: inline-flex; align-items: center; min-height: 44px; }
  .foot .socials a { width: 44px; height: 44px; }
}
@media (max-width: 860px) {
  .arches { height: auto; grid-template-rows: minmax(clamp(260px, 42svh, 340px), auto); }
  .steps, .phases, .about, .included, .courses, .services, .start, .channels, .italy-list, .italy { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-nav a { min-width: 48px; }
}
@media (max-width: 480px) { .cta-band .actions { width: 100%; } .arches .arch-logo { padding-inline: 8px; } }
@media (max-width: 400px) { .arches .tag { padding: 5px 10px; } .arches .tag .ico { display: none; } .pill-block { padding: 4px 12px 4px 54px; } }
@media (max-width: 360px) { .tile-name { padding: 5px 9px 5px 7px; gap: 5px; } .tile-name .ico { display: none; } }
@media (max-width: 340px) { .actions .pill { padding: 4px 12px 4px 54px; } .arches { grid-template-columns: 1fr 1.5fr 1fr; gap: 8px; } .social-card { padding: 16px 18px; } }
@media (max-width: 319px) {
  .bar { gap: 10px; padding-inline: 14px; }
  .bar-end { gap: 8px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tiles li:last-child:nth-child(odd) .tile { aspect-ratio: 4 / 3; }
  .card-step, .inc, .card-stat { padding-inline: 20px; }
  .apply { padding-inline: 12px; }
  .form { padding-inline: 14px; }
  .social-card .handle { display: none; }
  .arches .tag { padding: 4px 7px; font-size: 12.5px; }
}

/* less motion when the visitor asks for it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .arch:hover, .tile:hover, .card-step:hover, .inc:hover, .value:hover, .channel:hover { transform: none; translate: none; }
  .arch:hover img, .tile:hover img, .card-photo:hover img { transform: none; }
}

/* high-contrast mode */
@media (forced-colors: active) {
  .pill, .pill-soft, .card, .menu-btn, .more, .nav { border: 1px solid ButtonText; }
  [aria-current="page"] { outline: 2px solid Highlight; }
  .faq-plus::before, .faq-plus::after { background: CanvasText; }
}

@media print {
  html.js .rv, html.js .in, html.js .arch, html.js .pop { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .wa-float, .menu-btn, .marquee, .map, .lang, .form { display: none !important; }
  .bar { position: static; }
  .foot, .foot * { background: none !important; color: #000 !important; }
  .card, .phase-2, .cta-band, .apply { background: none !important; color: #000 !important; border: 1px solid #ccc; }
  .card *, .apply * { color: #000 !important; }
  details::details-content { content-visibility: visible; block-size: auto; }
}
