:root {
  --ink: #0D0D0D;
  --paper: #E9E9E7;
  --dim: #555555;
  --faint: #666666;
  --dim-inv: #A8A8A8;
  --alert: #B3261E;
  --alert-inv: #FF9083;

  --rosa: #F80B69;
  --rosa-cupo: #C4064F;

  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --out: cubic-bezier(0.23, 1, 0.32, 1);
  --inout: cubic-bezier(0.77, 0, 0.175, 1);
  --cass: cubic-bezier(0.32, 0.72, 0, 1);

  --pad: clamp(1rem, 3.5vw, 4.25rem);
  --bar: 4.75rem;
}

* { box-sizing: border-box; }

html { font-size: clamp(1em, 0.464em + 0.55vw, 1.4em); }

html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar,
body::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.inv :focus-visible, .wipe :focus-visible { outline-color: var(--paper); }
.nofx:focus, .nofx:focus-visible { outline: none; }

.skip {
  position: fixed; left: -9999px; top: 0; z-index: 90;
  background: var(--ink); color: var(--paper);
  padding: 1rem 1.25rem; font-weight: 700;
}
.skip:focus { left: 0; }

.mono {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wrap { padding-inline: var(--pad); }

.logo { display: block; background-repeat: no-repeat; background-position: center; background-size: contain; }
.logo--mark { background-image: var(--l-mark); aspect-ratio: 1; }
.logo--group { background-image: var(--l-group); aspect-ratio: 1009 / 186; }
.logo--events { background-image: var(--l-events); aspect-ratio: 1100 / 230; }
.logo--mgmt { background-image: var(--l-mgmt); aspect-ratio: 1006 / 158; }
.logo--academy { background-image: var(--l-academy); aspect-ratio: 1029 / 174; }
.logo--white { filter: invert(1); }

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  color: var(--paper);
  pointer-events: none;
}
:root[data-fermo] .top,
:root[data-fermo] .brand { position: absolute; }

.top__in {
  position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding-inline: var(--pad);
  height: var(--bar);
}
.top__in > * { pointer-events: auto; }
.top :focus-visible { outline-color: currentColor; }

.brand {
  position: fixed; top: 0; left: var(--pad); z-index: 61;
  display: grid; place-items: center;
  width: 3.5rem; height: var(--bar);
  mix-blend-mode: difference;
  color: var(--paper);
  transition: transform 160ms var(--out);
}
.brand:active { transform: scale(0.94); }
.brand:focus-visible { outline-color: currentColor; }
.brand .xm { width: clamp(2.4rem, 3.4vw, 3.1rem); }

.nav {
  position: relative;
  display: flex; align-items: stretch;
  --box: var(--ink);
  --seg: var(--paper);
  background: linear-gradient(
    to bottom,
    var(--pg-sopra, var(--paper)) 0 var(--taglio, 0px),
    var(--pg-sotto, var(--paper)) var(--taglio, 0px) 100%);
  overflow: hidden;
  isolation: isolate;
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  border: 1px solid var(--seg);
  mix-blend-mode: difference;
  pointer-events: none;
}
.nav__a {
  position: relative;
  mix-blend-mode: difference;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding-inline: clamp(0.85rem, 2vw, 1.4rem);
  white-space: nowrap;
  color: var(--seg);
  transition: color 120ms linear 40ms, transform 200ms var(--out);
}
.nav__a + .nav__a { border-left: 1px solid var(--seg); }

.nav__a::after {
  content: ""; position: absolute; inset: 0;
  background: var(--seg);
  transform: scaleX(0);
  transition: transform 420ms var(--out);
  z-index: -1;
}
.nav__a:first-child::after { transform-origin: 0 50%; }
.nav__a + .nav__a::after { transform-origin: 100% 50%; }

.nav__a:active { transform: scale(0.97); }
.nav :focus-visible { outline-color: var(--seg); }

@media (hover: hover) and (pointer: fine) {
  .nav__a:not([aria-current="page"]):hover { color: var(--box); }
  .nav__a:not([aria-current="page"]):hover::after { transform: scaleX(1); }
}

.wipe {
  position: fixed; inset: 0; z-index: 80;
  background: var(--ink);
  display: none;
  place-items: center;
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
}
.wipe .logo { width: clamp(5.25rem, 12vw, 9.375rem); }

main { display: block; }
[data-view][hidden] { display: none; }
.view { padding-top: var(--bar); }
.view[data-view="/"] { padding-top: 0; }
.view[data-view="/x-events"] { padding-top: 0; }
:target, main [id] { scroll-margin-top: calc(var(--bar) + 1rem); }

.view > * { animation: rise 340ms var(--out) both; }
.view > *:nth-child(2) { animation-delay: 40ms; }
.view > *:nth-child(3) { animation-delay: 80ms; }
.view > *:nth-child(4) { animation-delay: 120ms; }
.view > *:nth-child(5) { animation-delay: 160ms; }
.view > *:nth-child(n+6) { animation-delay: 190ms; }
:root[data-first="1"] .view > * { animation: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.band { padding-block: clamp(2.75rem, 7vw, 6rem); }
.inv { background: var(--ink); color: var(--paper); }

.huge {
  font-weight: 900;
  font-size: clamp(2.6rem, 11.2vw, 9.5rem);
  line-height: 0.8; letter-spacing: -0.06em;
  text-transform: uppercase;
}
.huge b { display: block; font-weight: 900; }

.say {
  font-weight: 900;
  font-size: clamp(1.25rem, 2.6vw, 2.1rem);
  line-height: 1.15; letter-spacing: -0.02em;
  max-width: 26ch;
}

.txt { color: var(--dim); max-width: 56ch; }
.inv .txt { color: var(--dim-inv); }

.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 54px; padding: 0.9rem 1.6rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform 160ms var(--out);
}
.cta span { position: relative; z-index: 1; }
.cta::before {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  clip-path: inset(100% 0 0 0);
}
.cta:active { transform: scale(0.97); }
.cta--out { background: var(--paper); color: var(--ink); }
.cta--out::before { background: var(--ink); }
.inv .cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.inv .cta::before { background: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  .cta::before { transition: clip-path 260ms var(--out); }
  .cta:hover::before { clip-path: inset(0 0 0 0); }
  .cta:hover { color: var(--ink); }
  .cta--out:hover, .inv .cta:hover { color: var(--paper); }
}
.cta[disabled] { cursor: progress; opacity: 0.55; }

.idx { border-top: 1px solid var(--ink); }
.inv .idx { border-color: var(--paper); }
.row {
  position: relative;
  display: grid; grid-template-columns: 3.4rem 1fr;
  gap: 0.15rem 0.9rem;
  align-items: baseline;
  padding: clamp(0.85rem, 2vw, 1.15rem) 0.9rem;
  border-bottom: 1px solid var(--ink);
  isolation: isolate;
}
.inv .row { border-color: var(--paper); }
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  clip-path: inset(0 100% 0 0);
}
.inv .row::before { background: var(--paper); }
.row__n { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; color: var(--dim); }
.inv .row__n { color: var(--dim-inv); }
.row__t { font-weight: 900; font-size: clamp(1.35rem, 3.6vw, 2.4rem); line-height: 1; letter-spacing: -0.05em; text-transform: uppercase; overflow-wrap: break-word; }
.row__d { grid-column: 2; color: var(--dim); font-size: 0.92rem; }
.inv .row__d { color: var(--dim-inv); }

@media (hover: hover) and (pointer: fine) {
  .row::before { transition: clip-path 300ms var(--out); }
  .row:hover::before { clip-path: inset(0 0 0 0); }
  .row:hover { color: var(--paper); }
  .row:hover .row__n, .row:hover .row__d { color: var(--dim-inv); }
  .inv .row:hover { color: var(--ink); }
  .inv .row:hover .row__n, .inv .row:hover .row__d { color: var(--dim); }
}

.state { justify-self: start; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid currentColor; padding: 0.28rem 0.5rem; }

.split { display: grid; gap: clamp(2rem, 5vw, 4rem); }

.info div { padding-block: 0.9rem; border-top: 1px solid var(--ink); }
.info dt { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.info dd { margin: 0.35rem 0 0; font-weight: 700; font-size: 1.05rem; }
.info a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid currentColor; }
.todo { display: inline-block; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; border: 1px dashed var(--dim); padding: 0.28rem 0.5rem; color: var(--dim); }

.form { display: grid; gap: 1.1rem; max-width: 52rem; width: 100%; justify-self: end; }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 0.9rem; min-height: 52px; width: 100%;
  transition: box-shadow 160ms var(--out);
}
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.field textarea { min-height: 8.125rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--alert); box-shadow: inset 0 0 0 1px var(--alert); }
.err { display: none; color: var(--alert); font-size: 0.85rem; font-weight: 700; }
.err[data-on="1"] { display: block; }
.say--ok { display: none; border: 2px solid var(--ink); padding: 0.9rem; font-size: 0.92rem; font-weight: 600; max-width: none; }
.say--ok[data-on="1"] { display: block; }
.say--ok[data-bad="1"] { border-color: var(--alert); color: var(--alert); }

.inv .info div { border-top-color: var(--paper); }
.inv .info dt { color: var(--dim-inv); }
.inv .field input, .inv .field textarea, .inv .sel__btn, .inv .sel__l {
  color: var(--paper); background: var(--ink); border-color: var(--paper);
}
.inv .field input:focus, .inv .field textarea:focus { box-shadow: inset 0 0 0 2px var(--paper); }
.inv .field [aria-invalid="true"] { border-color: var(--alert-inv); box-shadow: inset 0 0 0 1px var(--alert-inv); }
.inv .err { color: var(--alert-inv); }
.inv .say--ok { border-color: var(--paper); }
.inv .say--ok[data-bad="1"] { border-color: var(--alert-inv); color: var(--alert-inv); }
.inv .field input::placeholder, .inv .field textarea::placeholder { color: var(--dim-inv); }

.sel { position: relative; }
.sel[data-on="1"] > select {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; overflow: hidden;
}
.sel[data-on="1"][data-open="1"] .sel__l { display: block; }
.sel__btn {
  font: inherit; font-size: 1rem; text-align: left;
  color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  padding: 0.9rem; min-height: 52px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  cursor: pointer;
  transition: box-shadow 160ms var(--out);
}
.sel__btn:focus-visible { box-shadow: inset 0 0 0 2px currentColor; }
.sel__v { color: var(--dim); }
.sel[data-set="1"] .sel__v { color: inherit; }
.inv .sel__v { color: var(--dim-inv); }
.sel__c {
  flex: none; width: 0.5625rem; height: 0.5625rem;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-0.19rem) rotate(45deg);
  transition: transform 240ms var(--out);
}
.sel[data-open="1"] .sel__c { transform: translateY(0.125rem) rotate(-135deg); }
.sel[data-open="1"] .sel__btn { box-shadow: inset 0 0 0 2px currentColor; }
.sel__l {
  position: absolute; z-index: 30; top: calc(100% - 1px); left: 0; right: 0;
  display: none;
  margin: 0; padding: 0; list-style: none;
  background: var(--paper); border: 1px solid var(--ink);
  max-height: 16.5rem; overflow-y: auto;
}
.sel__o {
  display: flex; align-items: center;
  min-height: 44px; padding: 0.65rem 0.9rem;
  cursor: pointer;
}
.sel__o + .sel__o { border-top: 1px solid rgba(0, 0, 0, 0.14); }
.inv .sel__o + .sel__o { border-top-color: rgba(233, 233, 231, 0.24); }
.sel__o[aria-selected="true"] { font-weight: 800; }
.sel__o:hover, .sel__o:focus { background: var(--ink); color: var(--paper); outline: none; }
.inv .sel__o:hover, .inv .sel__o:focus { background: var(--paper); color: var(--ink); }
.field select[aria-invalid="true"] + .sel__btn { border-color: var(--alert); }
.inv .field select[aria-invalid="true"] + .sel__btn { border-color: var(--alert-inv); }

.foot {
  border-top: 1px solid rgba(233, 233, 231, 0.22);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem) 1.5rem;
}
.foot .logo { height: 1.375rem; }
.foot__g { display: grid; gap: 1.75rem 2rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.foot__h { margin: 0 0 0.7rem; font-weight: 600; color: var(--dim-inv); }
.foot__g ul { display: grid; gap: 0.3rem; }
.foot__g a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 1px solid transparent; }
.foot__g a:hover { border-bottom-color: currentColor; }
.foot__g a[aria-current="page"] { border-bottom-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .foot__g a { min-height: 30px; }
}
.foot__q {
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(233, 233, 231, 0.22);
}
.foot__q iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(1) contrast(0.86) brightness(0.94); }
.foot__qoff { height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding: 1.25rem; color: var(--dim-inv); }
.foot__qoff p { max-width: 30ch; text-transform: none; letter-spacing: 0; }
.foot__ck { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; min-height: 30px; cursor: pointer; }
.foot__ck:hover { color: var(--paper); }

.ck {
  position: fixed; right: var(--pad); bottom: var(--pad); z-index: 70;
  width: min(21rem, calc(100vw - 2 * var(--pad)));
  background: var(--ink); color: var(--paper);
  border: 1px solid rgba(233, 233, 231, 0.22);
  padding: 1rem;
  font-size: 0.72rem;
  transition: opacity 200ms var(--out), transform 200ms var(--out);
}
.ck[data-in="0"] { opacity: 0; transform: translateY(0.5rem); }
.ck :focus-visible { outline-color: var(--paper); }
.ck__t { font-size: inherit; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.5rem; }
.ck__d { color: var(--dim-inv); line-height: 1.55; text-transform: none; letter-spacing: 0; }
.ck__a { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.9rem; }
.ck__b {
  font: inherit; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  min-height: 44px; padding: 0 0.9rem; cursor: pointer;
  background: transparent; color: var(--paper); border: 1px solid var(--paper);
  transition: background-color 160ms var(--out), color 160ms var(--out);
}
.ck__b--si, .ck__b:hover { background: var(--paper); color: var(--ink); }
.ck__b--si:hover { background: transparent; color: var(--paper); }
.ck__b:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .ck { transition: none; } }
.foot__mappa ul { margin-top: 0.75rem; }
.foot__end { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); padding-top: 1rem; border-top: 1px solid var(--paper); display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; color: var(--dim-inv); }
.foot__mh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; }
.foot__mh .foot__h { margin-bottom: 0.7rem; }
.foot__sede { margin: 0 0 0.7rem; color: var(--dim-inv); }

@media (max-width: 619.98px) {
  .foot { padding-block: 3rem; }
  .foot > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: 1rem;
  }
  .foot > .wrap > * { grid-column: 1 / -1; }
  .foot__g { display: contents; }
  .foot__g > div { margin-top: 3rem; }
  .foot__g a, .foot__g li { overflow-wrap: anywhere; }
  :root:not([data-rotta="/"]) .foot .foot__bar { margin-top: 3rem; }
  .foot__end { margin-top: 3.25rem; }
  .foot__g > div:nth-child(1) { grid-column: 1; order: 1; }
  .foot__g > div:nth-child(2) { grid-column: 2; order: 1; }
  .foot__g > div:nth-child(3) { display: none; }
  .foot__mappa { order: 3; grid-column: 1 / -1; }
  .foot__bar { order: 2; }
  .foot__end { order: 4; }
}

@media (min-width: 620px) {
  .foot__g { grid-template-columns: repeat(2, 1fr); }
  .foot__sede { display: none; }
}

.vh {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.xm { position: relative; flex: none; width: 0.97em; aspect-ratio: 1; }
.xm i {
  position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: var(--l-mark) center / 100% auto no-repeat;
  mask: var(--l-mark) center / 100% auto no-repeat;
  opacity: 0;
  transition: transform 820ms var(--out) 80ms, opacity 400ms linear 80ms;
}
.xm__t { clip-path: inset(0 0 50% 0); transform: translateY(-54%); }
.xm__b { clip-path: inset(50% 0 0 0); transform: translateY(54%); }
:root.apre .xm i { opacity: 1; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  .brand:hover .xm i { transition-duration: 260ms, 260ms; transition-delay: 0s; }
  .brand:hover .xm__t { transform: translateY(-8%); }
  .brand:hover .xm__b { transform: translateY(8%); }
}
.rv {
  opacity: 0;
  transform: translate3d(var(--rx, 0px), var(--ry, 22px), 0);
  transition:
    opacity 420ms var(--out) var(--d, 0ms),
    transform 560ms var(--out) var(--d, 0ms);
}
.rv--l { --rx: -36px; --ry: 0px; }
.rv--r { --rx: 36px; --ry: 0px; }
.rv.on { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .rv--l, .rv--r { --rx: 0px; --ry: 22px; }
}

.rvw {
  clip-path: inset(0 0 108% 0);
  transition: clip-path 720ms var(--out) var(--d, 0ms);
}
.rvw.on { clip-path: inset(0 0 -14% 0); }

.hb { padding-block: clamp(4.5rem, 11vw, 10.5rem); }
.hb--rule { border-top: 1px solid var(--ink); }
.hb--fine { padding-bottom: clamp(2rem, 4vw, 3.25rem); }
.rail {
  display: flex; align-items: baseline; gap: 0.9rem;
  margin: 0; color: var(--dim);
}
.rail--r { justify-content: flex-end; }
.rail__n { color: var(--ink); }
.inv .rail { color: var(--dim-inv); }
.inv .rail__n { color: var(--paper); }

.htxt {
  color: var(--dim); max-width: 42ch;
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.45;
}
.inv .htxt { color: var(--dim-inv); }

.hend {
  font-weight: 900;
  font-size: clamp(2.1rem, 8vw, 6.5rem);
  line-height: 0.9; letter-spacing: -0.06em;
  max-width: 15ch;
}

.blk { padding-block: clamp(5rem, 13vw, 12rem); }

.blk--su { padding-top: clamp(2.5rem, 5.5vw, 5rem); }
.blk--sd { padding-bottom: clamp(2.5rem, 5.5vw, 5rem); }
.blk__h { position: relative; }
.blk__h::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: currentColor; opacity: 0.4;
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.blk__rail {
  padding-top: 0.875rem;
  opacity: 0; transform: translateY(16px);
  transition:
    opacity 620ms var(--out) 120ms,
    transform 820ms cubic-bezier(0.16, 1, 0.3, 1) 120ms;
}
.blk__t {
  margin: 0;
  padding-top: clamp(3.25rem, 10vh, 7.5rem);
  font-weight: 900;
  font-size: clamp(2.3rem, 8.8vw, 7.8rem);
  line-height: 0.84; letter-spacing: -0.06em;
  max-width: 15ch;
}
.blk__l { display: block; overflow: hidden; padding-bottom: 0.3em; margin-bottom: -0.3em; }
.blk__l b {
  display: block; font-weight: inherit;
  transform-origin: 0 100%;
  transform: translateY(126%) rotate(1.5deg);
  transition: transform 1150ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}
.blk__l:nth-child(2) b { transition-delay: 290ms; }
.blk__l:nth-child(3) b { transition-delay: 390ms; }
.blk__h.on::before { transform: scaleX(1); }
.blk__h.on .blk__rail { opacity: 1; transform: none; }
.blk__h.on .blk__l b { transform: none; }

.bx { display: grid; border-top: 1px solid var(--ink); margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.bx__c {
  position: relative; isolation: isolate;
  display: grid; place-items: center; align-content: center;
  min-height: clamp(7rem, 13vw, 9.5rem);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  border-bottom: 1px solid var(--ink);
  text-align: center; overflow: hidden;
}
.bx__c::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  clip-path: inset(100% 0 0 0);
}
.bx__m { display: block; width: min(100%, 15rem); }
.bx__m .logo {
  width: 100%; height: clamp(1.1875rem, 2.3vw, 1.6875rem);
  background-position: center;
}
.bx__go, .bx__c > .state {
  position: absolute; left: 0; right: 0;
  bottom: clamp(0.8rem, 1.8vw, 1.25rem);
  justify-self: center;
}
.bx__c > .state { justify-self: center; width: max-content; margin-inline: auto; }
.bx__go { opacity: 0.62; }
.bx__c--off .bx__m .logo { opacity: 0.42; }
.bx__c--off .state { color: var(--dim); }

a.bx__c { transition: color 200ms var(--out); }
a.bx__c::before, a.bx__c .bx__m { transition: clip-path 280ms var(--out), transform 300ms var(--out); }
a.bx__c .bx__go { transition: opacity 200ms linear, transform 300ms var(--out); }
a.bx__c .logo { transition: filter 1ms linear 140ms; }
a.bx__c:focus-visible::before { clip-path: inset(0 0 0 0); }
a.bx__c:focus-visible { color: var(--paper); }
a.bx__c:focus-visible .logo { filter: invert(1); }
a.bx__c:focus-visible .bx__m { transform: translateY(-0.94rem); }
a.bx__c:focus-visible .bx__go { opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  a.bx__c:hover::before { clip-path: inset(0 0 0 0); }
  a.bx__c:hover { color: var(--paper); }
  a.bx__c:hover .logo { filter: invert(1); }
  a.bx__c:hover .bx__m { transform: translateY(-0.94rem); }
  a.bx__c:hover .bx__go { opacity: 1; }
}
@media (hover: none) {
  .bx__go { opacity: 1; }
}

@media (min-width: 640px) {
  .bx { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bx__c { border-left: 1px solid var(--ink); }
  .bx__c:nth-child(odd) { border-left: 0; }
}
@media (min-width: 1040px) {
  .bx { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bx__c:nth-child(odd) { border-left: 1px solid var(--ink); }
  .bx__c:first-child { border-left: 0; }
}

.foot__bar { display: none; }
.bx--foot {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  border-top-color: var(--paper);
  border-bottom: 1px solid var(--paper);
}
.bx--foot .bx__c {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(0.6rem, 1.4vw, 1rem);
  min-height: 0;
  padding: clamp(1.7rem, 3.2vw, 2.5rem) clamp(0.7rem, 1.5vw, 1rem);
  border-bottom: 0;
  border-left: 1px solid var(--paper);
  text-align: left;
}
.bx--foot .bx__c:nth-child(odd) { border-left: 0; }
.bx--foot .bx__c:nth-child(-n+2) { border-bottom: 1px solid var(--paper); }
.bx--foot .bx__c::before { background: var(--paper); }
.bx--foot .bx__m { width: clamp(7rem, 11vw, 9.5rem); flex: 0 0 auto; }
.bx--foot .bx__m .logo { height: clamp(1rem, 1.6vw, 1.35rem); filter: invert(1); }
.bx--foot .bx__c > .state {
  position: static; inset: auto;
  justify-self: auto; margin-inline: 0;
  font-size: 0.66rem; opacity: 0.7;
}
.bx--foot .bx__c--off .state { color: var(--dim-inv); }
.bx--foot a.bx__c:focus-visible { color: var(--ink); }
.bx--foot a.bx__c:focus-visible .logo { filter: none; }
.bx--foot a.bx__c:focus-visible .bx__m { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .bx--foot a.bx__c:hover { color: var(--ink); }
  .bx--foot a.bx__c:hover .logo { filter: none; }
  .bx--foot a.bx__c:hover .bx__m { transform: none; }
}
:root:not([data-rotta="/"]) .foot__bar { display: block; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
@media (max-width: 619.98px) {
  .bx--foot .bx__c {
    flex-direction: column; gap: 0.4rem;
    min-height: 6rem;
    padding: 1.7rem 0.75rem;
  }
  .bx--foot .bx__m { width: min(100%, 8rem); }
  .bx--foot .bx__m .logo { height: 0.95rem; }
}
@media (min-width: 1040px) {
  .bx--foot { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bx--foot .bx__c:nth-child(odd) { border-left: 1px solid var(--paper); }
  .bx--foot .bx__c:first-child { border-left: 0; }
  .bx--foot .bx__c:nth-child(-n+2) { border-bottom: 0; }
  :root:not([data-rotta="/"]) .foot__g { margin-top: clamp(3rem, 6vw, 4.5rem); }
}

@media (min-width: 700px) {
  .row { grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 22ch); align-items: center; }
  .row__d { grid-column: auto; text-align: right; }
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .foot__g { grid-template-columns: repeat(3, minmax(0, 0.78fr)) minmax(0, 1.35fr); }
}

.leg__k { color: var(--dim); }
.leg__t { margin-top: 1rem; }
.leg__c { max-width: 68ch; margin-top: clamp(2rem, 5vw, 3.5rem); color: var(--ink); }
.leg__c h2 { font-weight: 900; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: -0.02em; margin: 2.5rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--ink); }
.leg__c p + p, .leg__c ul + p, .leg__c .leg__tab + p { margin-top: 0.9rem; }
.leg__c ul { display: grid; gap: 0.6rem; }
.leg__c li { padding-left: 1.1rem; position: relative; }
.leg__c li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.45rem; height: 1px; background: var(--ink); }
.leg__c a { border-bottom: 1px solid currentColor; }
.leg__c code { font-family: var(--mono); font-size: 0.85em; }
.leg__tab { overflow-x: auto; margin-top: 0.9rem; }
.leg__tab table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 0.88rem; }
.leg__tab th { font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-align: left; color: var(--dim); }
.leg__tab th, .leg__tab td { padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.ck__d a { color: var(--paper); border-bottom: 1px solid currentColor; }
.form__nota { font-size: 0.8rem; color: var(--dim); }
.inv .form__nota { color: var(--dim-inv); }
.form__nota a { border-bottom: 1px solid currentColor; }
