/* Globus Academy: sistema disciplina.
   Colore = business unit. Pittogramma = tecnologia. Verde = azione. Arancio = solo diretta. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --ink: #16191b;
  --ink-2: #454d52;
  --silver: #d9dde0;
  --silver-2: #f1f3f4;

  --kineo: #0b0c0d;
  --kineo-ink: #ffffff;
  --medicale: #8cb6e8;
  --medicale-ink: #16191b;
  --veterinaria: #f2c12e;
  --veterinaria-ink: #16191b;
  --beauty: #d7263d;
  --beauty-ink: #ffffff;

  --academy: #3dae2b;
  --go: #27801c;
  --go-hover: #1d6614;
  --live: #ff6a13;

  --field: var(--academy);
  --field-ink: var(--ink);

  --wide: 125%;
  --cond: 68%;
  --gutter: clamp(16px, 3vw, 40px);
  --rule: 2px solid var(--ink);
  --max: 1440px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light;
}

[data-bu="kineo"] { --field: var(--kineo); --field-ink: var(--kineo-ink); }
[data-bu="medicale"] { --field: var(--medicale); --field-ink: var(--medicale-ink); }
[data-bu="veterinaria"] { --field: var(--veterinaria); --field-ink: var(--veterinaria-ink); }
[data-bu="beauty"] { --field: var(--beauty); --field-ink: var(--beauty-ink); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.bu-hero[data-bu="kineo"] :focus-visible, .bu-hero[data-bu="beauty"] :focus-visible, [data-bu="kineo"] .bu-hero :focus-visible, [data-bu="beauty"] .bu-hero :focus-visible, .bu-tile[data-bu="kineo"]:focus-visible, .bu-tile[data-bu="beauty"]:focus-visible { outline-color: #fff; outline-offset: -6px; }
input, select, textarea, button { font: inherit; color: inherit; }
html { scrollbar-color: var(--ink) var(--silver-2); }

.field[hidden], .empty[hidden], .lang-block[hidden], .course[hidden] { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 100; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- Type ---------- */
.display, h1, h2 {
  font-stretch: var(--cond);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(3rem, 7.4vw, 6rem); }
h2 { font-size: clamp(2.25rem, 4.6vw, 4rem); }
h3 {
  font-stretch: var(--cond);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  line-height: 1;
  margin: 0;
}
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: clamp(1.125rem, 1.5vw, 1.3rem); line-height: 1.5; max-width: 40ch; }
.meta { font-weight: 600; font-size: .9375rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section + .section { border-top: var(--rule); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--gutter); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: var(--rule);
}
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: stretch; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav > li { position: relative; display: flex; }
.nav a, .nav .nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 700; font-size: .9375rem; text-transform: uppercase; letter-spacing: .03em;
  font-stretch: 85%;
}
.nav > li > a .chip { width: 10px; height: 10px; background: var(--field); outline: 1.5px solid var(--ink); outline-offset: -1.5px; }
.nav > li > a:hover, .nav > li > a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--ink); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 220px;
  list-style: none; margin: 0; padding: 0;
  background: var(--field); color: var(--field-ink);
  border: var(--rule);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.nav > li:hover .sub, .nav > li:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sub a { padding: 12px 16px; border-top: 1.5px solid currentColor; }
.sub li:first-child a { border-top: 0; }
.sub a:hover { background: var(--ink); color: var(--paper); }
.sub svg { width: 28px; height: 28px; flex: none; }

.actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; gap: 0; font-weight: 700; font-size: .8125rem; }
.lang a, .lang span { padding: 6px 8px; border: 1.5px solid var(--ink); text-decoration: none; }
.lang span { border-style: dashed; border-left: 0; color: var(--ink-2); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }
.actions .menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; font-stretch: 85%;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .15s var(--ease);
}
.nav-actions .btn, .actions .btn, .course-foot .btn { white-space: nowrap; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--go); border-color: var(--go); color: #fff; }
.btn-go:hover { background: var(--go-hover); border-color: var(--go-hover); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

/* ---------- Pictograms ---------- */
.picto { width: 100%; height: auto; display: block; color: currentColor; }
.picto .l { fill: none; stroke: currentColor; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.picto .t { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.picto .h { fill: currentColor; }
.picto .m { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; }

/* ---------- Home hero ---------- */
.hero { border-bottom: var(--rule); overflow-x: clip; }
.hero .grid { min-height: clamp(520px, calc(100svh - 78px - 232px), 680px); }
.hero-copy { grid-column: 1 / 8; padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-copy h1 { font-size: clamp(3.4rem, 8.2vw, 6rem); }
.hero-copy .lead { margin-top: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { grid-column: 8 / 13; margin-right: calc(var(--gutter) * -1); position: relative; border-left: var(--rule); background: var(--medicale); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); border-top: var(--rule); border-right: var(--rule); padding: 10px 14px; font-size: .875rem; font-weight: 600; }
@media (min-width: 1441px) { .hero-photo { margin-right: calc((100vw - var(--max)) / -2 - var(--gutter)); } }

/* ---------- BU band ---------- */
.band { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: var(--rule); }
.band > .bu-tile, .bu-tile { container-type: inline-size; }
.bu-tile {
  --pad: clamp(18px, 2vw, 28px);
  position: relative;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto; gap: 8px 16px;
  padding: var(--pad); min-height: 232px;
  background: var(--field); color: var(--field-ink);
  text-decoration: none;
  border-right: var(--rule);
  overflow: hidden;
}
.bu-tile:last-child { border-right: 0; }
.bu-tile .name { font-stretch: var(--cond); font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 11cqi, 3rem); line-height: .9; min-width: 0; white-space: nowrap; }
.bu-tile .icon { grid-row: 1 / 3; grid-column: 2; width: clamp(48px, 22cqi, 92px); transition: transform .35s var(--ease); }
.bu-tile .techs { grid-column: 1 / 3; align-self: end; display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; }
.bu-tile .go { grid-column: 1 / 3; display: flex; justify-content: space-between; align-items: center; border-top: 2px solid currentColor; padding-top: 10px; font-weight: 800; text-transform: uppercase; font-size: .875rem; letter-spacing: .04em; }
.bu-tile .go svg { flex: none; width: 22px; height: 22px; transition: transform .25s var(--ease); }
.bu-tile:hover .icon { transform: translateY(-4px) rotate(-3deg); }
.bu-tile:hover .go svg { transform: translateX(6px); }

/* ---------- Tiers as stations ---------- */
.stations { display: grid; grid-template-columns: 1fr auto 1fr 1fr; border: var(--rule); margin-top: 48px; }
.station { padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.station + .station, .checkpoint + .station { border-left: var(--rule); }
.station .step { font-stretch: var(--cond); font-weight: 800; font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: .85; text-transform: uppercase; }
.station .who { font-weight: 700; text-transform: uppercase; font-size: .875rem; letter-spacing: .04em; padding: 6px 0; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.station p { margin: 0; }
.station .state { margin-top: auto; font-weight: 700; font-size: .9375rem; }
.station.free { background: var(--paper); }
.station.freemium { background: var(--silver-2); }
.station.premium { background: var(--ink); color: var(--paper); }
.checkpoint {
  border-left: var(--rule);
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 12px;
  background: var(--silver-2);
  font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .875rem; font-stretch: 85%;
}
.checkpoint svg { width: 26px; height: 26px; transform: rotate(90deg); }
.code-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-top: 28px; max-width: 72ch; }
.code-note svg { width: 36px; height: 36px; }

/* ---------- Offer list (scale-led, no cards) ---------- */
.offer { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }
.offer-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.offer-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); padding: 28px 0; border-bottom: var(--rule); align-items: baseline; }
.offer-list .big { font-stretch: var(--cond); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: .85; }
.offer-list p { margin: 0; }
.offer-photo { position: sticky; top: 108px; border: var(--rule); }
.offer-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- Course entries ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: var(--gutter); }
.course { perspective: 1600px; min-height: 100%; }
.course-inner { position: relative; height: 100%; display: grid; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.course.is-flipped .course-inner { transform: rotateY(180deg); }
.course-face { grid-area: 1 / 1; display: flex; flex-direction: column; border: var(--rule); background: var(--paper); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.course-back { position: absolute; inset: 0; overflow-y: auto; transform: rotateY(180deg); background: var(--field); color: var(--field-ink); }
.course-cover { aspect-ratio: 16 / 9; border-bottom: var(--rule); background: var(--silver-2); overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course:hover .course-cover img { transform: scale(1.03); }
.course-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1.5px solid var(--ink); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.tag-bu { background: var(--field); color: var(--field-ink); }
.tag-free { background: var(--paper); color: var(--ink); }
.tag-live { background: var(--live); }
.course h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); text-transform: none; font-stretch: 80%; line-height: 1.05; letter-spacing: -.005em; }
.course .teacher { font-weight: 600; font-size: .9375rem; margin: 0; }
.course-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.spec { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.spec th, .spec td { text-align: left; padding: 9px 0; border-bottom: 1.5px solid currentColor; vertical-align: top; }
.spec th { width: 38%; font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; padding-right: 12px; }
.course-back .course-body { padding: 20px; }
.course-back h3 { font-size: 1.25rem; }
.course-back .desc { font-size: .9375rem; line-height: 1.45; margin: 0; }
.course-back .btn { border-color: var(--field-ink); }

/* ---------- Filters (solid chosen, dashed not) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding: 20px 0; border-top: var(--rule); border-bottom: var(--rule); margin-bottom: 36px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border: 0; margin: 0; padding: 0; }
.filter-group legend { float: left; margin-right: 8px; font-weight: 800; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.chip-btn {
  min-height: 40px; padding: 6px 14px;
  border: 2px dashed var(--ink); background: transparent;
  font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
}
.chip-btn:hover { border-style: solid; }
.chip-btn[aria-pressed="true"] { border-style: solid; background: var(--ink); color: var(--paper); }
.chip-btn .n { font-weight: 500; opacity: .75; margin-left: 4px; }
.lang-block { margin-top: 56px; }
.lang-block:first-of-type { margin-top: 0; }
.lang-head { display: flex; align-items: baseline; gap: 16px; justify-content: space-between; border-bottom: var(--rule); padding-bottom: 12px; margin-bottom: 24px; }
.lang-head h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.result-count { font-weight: 700; }

/* ---------- BU page ---------- */
.bu-hero { background: var(--field); color: var(--field-ink); border-bottom: var(--rule); }
.bu-hero .grid { min-height: clamp(440px, 62svh, 600px); }
.bu-hero-copy { grid-column: 1 / 7; padding: clamp(40px, 6vw, 80px) 0; display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-weight: 700; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.bu-hero h1 { font-size: clamp(1.9rem, 9vw, 6rem); }
.bu-hero-copy { container-type: inline-size; min-width: 0; }
.bu-hero h1.long { font-size: clamp(1.9rem, 9.5cqi, 4.5rem); }
.bu-stage { overflow: hidden; min-width: 0; }
.bu-stage { grid-column: 7 / 13; display: grid; grid-template-rows: 1fr auto; border-left: 2px solid currentColor; }
.stage-picto { display: grid; place-items: center; padding: 32px; position: relative; overflow: hidden; }
.stage-picto .picto { width: min(78%, 360px); }
.stage-picto [data-stage] { grid-area: 1 / 1; display: grid; place-items: center; width: 100%; transition: clip-path .5s var(--ease), opacity .3s; clip-path: inset(0 0 0 0); }
.stage-picto [data-stage][hidden] { display: grid; clip-path: inset(0 100% 0 0); opacity: 0; }
.stage-label { border-top: 2px solid currentColor; padding: 14px 20px; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bu-photo { grid-column: 7 / 13; margin-right: calc(var(--gutter) * -1); border-left: 2px solid var(--ink); position: relative; min-height: 320px; }
.bu-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.techs-row { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-bottom: var(--rule); }
.tech-tile {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 16px; align-items: center;
  padding: 22px var(--gutter); text-decoration: none; border-right: var(--rule); background: var(--paper);
  transition: background .2s, color .2s;
}
.tech-tile:last-child { border-right: 0; }
.tech-tile svg { grid-row: 1 / 3; width: 64px; height: 64px; }
.tech-tile .t-name { font-stretch: var(--cond); font-weight: 800; font-size: clamp(1.05rem, 7cqi, 1.75rem); line-height: 1; text-transform: uppercase; min-width: 0; }
.tech-tile { container-type: inline-size; }
@media (min-width: 1024px) {
  .techs-row.many .tech-tile { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: start; padding: 22px 20px; gap: 10px; }
  .techs-row.many .tech-tile svg { grid-row: auto; width: 52px; height: 52px; }
}
.tech-tile .t-count { font-weight: 600; font-size: .875rem; }
.tech-tile:hover, .tech-tile:focus-visible, .tech-tile[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- Pagina corso ---------- */
.course-hero .course-tags { margin-bottom: 20px; }
.course-hero .course-tags .tag { border-color: currentColor; }
.course-hero h1.long { font-size: clamp(1.9rem, 8cqi, 3.75rem); text-transform: none; font-stretch: 80%; line-height: 1.02; }
.course-hero .lead { margin-top: 24px; max-width: 56ch; }
.course-hero-cover { grid-column: 7 / 13; margin: 0; align-self: center; padding: clamp(24px, 4vw, 56px) 0; }
.course-hero-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: var(--rule); background: var(--paper); }
.course-detail > div { min-width: 0; }
.course-detail-spec { grid-column: 1 / 7; }
.course-detail-teacher { grid-column: 8 / 13; }
.course-detail h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); border-bottom: var(--rule); padding-bottom: 12px; margin-bottom: 24px; }
.teacher-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; }
.teacher-photo { width: 120px; height: 120px; object-fit: cover; clip-path: circle(46%); background: var(--silver-2); }
.teacher-card .who { font-stretch: var(--cond); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: .95; text-transform: uppercase; margin: 0 0 10px; }
.teacher-card .role { font-weight: 600; margin: 0 0 16px; }

/* ---------- Placeholder ("da fornire") ---------- */
.todo {
  border: 2px dashed currentColor;
  padding: 20px 22px;
}
.todo .todo-label { display: inline-block; font-weight: 800; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; border: 1.5px dashed var(--ink); padding: 3px 8px; margin-bottom: 10px; background: var(--paper); color: var(--ink); }
.todo p:last-child { margin-bottom: 0; }

/* ---------- Empty state ---------- */
.empty { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: var(--gutter); align-items: center; border: var(--rule); padding: clamp(24px, 4vw, 48px); }
.empty .picto { color: var(--ink); opacity: .9; }
.empty h3 { margin-bottom: 12px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: .875rem; text-transform: uppercase; letter-spacing: .05em; }
.field .hint { font-size: .875rem; color: var(--ink-2); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid var(--ink); border-radius: 0; background: var(--paper);
  caret-color: var(--go);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--go); outline-offset: 0; }
.field input::placeholder { color: #6b7378; }
.field[data-invalid] input, .field[data-invalid] textarea, .field[data-invalid] select { border-color: #b3261e; }
.field .err { color: #b3261e; font-weight: 700; font-size: .875rem; margin: 0; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--go); }
.form-msg { border: var(--rule); padding: 14px 16px; font-weight: 600; background: var(--silver-2); }
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.or { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; font-weight: 700; font-size: .8125rem; text-transform: uppercase; }
.or::before, .or::after { content: ""; border-top: 2px solid var(--ink); }

.split { display: grid; grid-template-columns: 5fr 7fr; min-height: min(calc(100svh - 78px), 900px); }
.split-side.is-go { background: var(--go); color: #fff; }
.split-side.is-go a { color: #fff; }
.split-side { background: var(--field); color: var(--field-ink); padding: clamp(32px, 5vw, 72px) var(--gutter); border-right: var(--rule); display: flex; flex-direction: column; gap: 24px; }
.split-main { padding: clamp(32px, 5vw, 72px) var(--gutter); }

/* ---------- Instructors ---------- */
.people { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.people li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gutter); padding: 22px 0; border-bottom: var(--rule); align-items: baseline; }
.people .who { font-stretch: var(--cond); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: .9; text-transform: uppercase; }
.people .what { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--rule); }
.values div { padding: 24px; border-right: var(--rule); }
.values div:last-child { border-right: 0; }
.values h3 { margin-bottom: 12px; }
.values p { margin: 0; font-size: .9375rem; }

/* ---------- Close ---------- */
.close { background: var(--go); color: #fff; border-top: var(--rule); }
.close .wrap { display: grid; grid-template-columns: 8fr 4fr; gap: var(--gutter); align-items: end; padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(56px, 8vw, 112px); }
.close h2 { font-size: clamp(2.6rem, 6vw, 5.5rem); }
.close .btn-go { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.close .btn-go:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.close :focus-visible { outline-color: #fff; }

/* ---------- Newsletter ---------- */
.news { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; }
.news form { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.news input[type="email"] { min-height: 52px; border: var(--rule); border-right: 0; padding: 12px 14px; border-radius: 0; }
.news .check { grid-column: 1 / 3; margin-top: 12px; }

/* ---------- Legal ---------- */
.legal { max-width: 74ch; overflow-wrap: anywhere; }
.legal h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin: 2.2em 0 .6em; text-transform: none; font-stretch: 80%; line-height: 1.1; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* ---------- Events ---------- */
.event-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 260px auto; gap: var(--gutter); align-items: center; padding: 20px 0; border-bottom: var(--rule); }
.event-date { font-stretch: var(--cond); font-weight: 800; text-transform: uppercase; line-height: .9; }
.event-date .d { font-size: 3rem; display: block; }
.event-row img { width: 100%; height: auto; border: var(--rule); aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); padding: 64px 0 32px; }
.foot .grid > * { grid-column: span 3; }
.foot h2 { font-size: 1rem; letter-spacing: .06em; margin-bottom: 16px; font-stretch: 85%; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .logo-chip { display: inline-block; background: var(--paper); padding: 12px 14px; }
.foot .logo-chip img { height: 64px; width: auto; }
.foot-bus { display: flex; gap: 0; margin-top: 18px; }
.foot-bus span { flex: 1; height: 10px; box-shadow: inset 0 0 0 1.5px #4a5257; }
.foot-bottom { grid-column: 1 / -1 !important; margin-top: 48px; padding-top: 20px; border-top: 1.5px solid #4a5257; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; color: #c3c9cc; }
.foot :focus-visible { outline-color: var(--paper); }

/* ---------- Reveal (single authored moment: band fields rise in) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .band .bu-tile { animation: rise .7s var(--ease) both; }
  .js .band .bu-tile:nth-child(2) { animation-delay: .06s; }
  .js .band .bu-tile:nth-child(3) { animation-delay: .12s; }
  .js .band .bu-tile:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .course.is-flipped .course-inner { transform: none; }
  .course.is-flipped .course-front { visibility: hidden; }
  .course .course-back { transform: none; visibility: hidden; }
  .course.is-flipped .course-back { visibility: visible; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a, .nav .nav-link { padding: 10px 8px; font-size: .875rem; }
  .top .wrap { gap: 16px; }
}
@media (max-width: 1023px) {
  .actions .menu-btn { display: inline-flex; }
  .nav-wrap { position: fixed; inset: 78px 0 0 0; background: var(--paper); overflow-y: auto; padding: 16px var(--gutter) 40px; display: none; border-top: var(--rule); }
  .nav-open .nav-wrap { display: block; }
  .nav { flex-direction: column; gap: 0; }
  .nav > li { flex-direction: column; border-bottom: var(--rule); }
  .nav a, .nav .nav-link { font-size: 1.5rem; font-stretch: var(--cond); padding: 16px 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: 0; border-top: 2px solid var(--ink); min-width: 0; margin-bottom: 12px; }
  .sub a { font-size: 1.1rem; padding: 12px 16px; }
  .actions .btn-login { display: none; }
  .nav-actions { display: grid; gap: 10px; margin-top: 24px; }
  .nav-actions .lang { display: flex; margin-bottom: 8px; }
  .hero .grid, .bu-hero .grid { min-height: 0; }
  .hero-copy, .bu-hero-copy { grid-column: 1 / -1; }
  .course-hero-cover { grid-column: 1 / -1; padding-top: 0; }
  .hero-photo, .bu-photo, .bu-stage { grid-column: 1 / -1; margin: 0 calc(var(--gutter) * -1); border-left: 0; border-top: var(--rule); width: auto; min-height: 0; aspect-ratio: 16 / 10; }
  main .wrap.grid > * { grid-column: 1 / -1 !important; }
  .legal { margin-top: 40px; }
  .bu-stage { aspect-ratio: auto; min-height: 0; border-top: 2px solid currentColor; }
  .stage-picto .picto { width: min(60%, 260px); }
  .band { grid-template-columns: 1fr 1fr; }
  .bu-tile:nth-child(2) { border-right: 0; }
  .bu-tile:nth-child(-n+2) { border-bottom: var(--rule); }
  .stations { grid-template-columns: 1fr; }
  .checkpoint { writing-mode: horizontal-tb; transform: none; border-left: 0; border-top: var(--rule); border-bottom: var(--rule); padding: 14px; }
  .checkpoint svg { transform: none; }
  .station + .station, .checkpoint + .station { border-left: 0; }
  .station + .station { border-top: var(--rule); }
  .station { min-height: 0; }
  .offer, .news, .close .wrap, .split { grid-template-columns: 1fr; }
  .offer-photo { position: static; }
  .offer-photo img { aspect-ratio: 16 / 10; }
  .values { grid-template-columns: 1fr 1fr; }
  .values div:nth-child(2) { border-right: 0; }
  .values div:nth-child(-n+2) { border-bottom: var(--rule); }
  .techs-row { grid-template-columns: 1fr 1fr; }
  .tech-tile:nth-child(2n) { border-right: 0; }
  .tech-tile { border-bottom: var(--rule); }
  .foot .grid > * { grid-column: span 6; margin-bottom: 32px; }
  .event-row { grid-template-columns: 120px 1fr; }
  .event-row img, .event-row .btn { grid-column: 1 / -1; }
  .split-side { border-right: 0; border-bottom: var(--rule); }
}
@media (min-width: 1024px) {
  .nav-wrap { display: flex; align-items: center; gap: 20px; }
  .nav-actions { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .brand img { height: 40px; }
  .lang { display: none; }
  .band { grid-template-columns: 1fr; }
  .bu-tile { border-right: 0 !important; border-bottom: var(--rule); min-height: 168px; }
  .bu-tile:last-child { border-bottom: 0; }
  .offer-list li, .people li { grid-template-columns: 1fr; gap: 8px; }
  .values { grid-template-columns: 1fr; }
  .values div { border-right: 0 !important; border-bottom: var(--rule); }
  .values div:last-child { border-bottom: 0; }
  .techs-row { grid-template-columns: 1fr; }
  .tech-tile { border-right: 0 !important; }
  .empty { grid-template-columns: 1fr; }
  .empty .picto { max-width: 140px; }
  .news form { grid-template-columns: 1fr; }
  .news input[type="email"] { border-right: var(--rule); border-bottom: 0; }
  .social { grid-template-columns: 1fr; }
  .foot .grid > * { grid-column: 1 / -1; }
  .filters { gap: 12px; }
  .filter-group legend { float: none; width: 100%; margin-bottom: 4px; }
  .actions .btn-signup { display: none; }
}
.nav-open { overflow: hidden; }
