/* Prezento public landing. One colour per chapter, big radii, sideways motion instead of height.
   Motion only with the script (html.js) and never with prefers-reduced-motion. */

@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('fonts/fraunces-var-latin.woff2') format('woff2');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/dm-sans-normal-latin.woff2') format('woff2');
}

:root {
    --notte: #0e1a3a;
    --cobalto: #2748d9;
    --zafferano: #f6b92b;
    --smeraldo: #0b7a5f;
    --prugna: #5a2d8a;
    --mattone: #b23a22;
    --carta: #f3f5fa;
    --bianco: #ffffff;
    --testo: #4a5368;
    --linea: #cfd6e6;
    --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container: 1240px;
    --pad: max(24px, calc(50vw - 620px));
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--carta);
    color: var(--testo);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 28px;
    -webkit-font-smoothing: antialiased;
}

main {
    overflow-x: clip;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--notte);
    font-family: var(--serif);
    font-weight: 480;
    font-optical-sizing: auto;
    font-variation-settings: 'SOFT' 100;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p,
figure,
ol,
ul {
    margin: 0;
}

ol,
ul {
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: 3px solid var(--zafferano);
    outline-offset: 3px;
}

.sec :focus-visible,
.also :focus-visible {
    outline-color: var(--cobalto);
}

.skip {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--notte);
    color: var(--bianco);
}

.skip:focus {
    top: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 48px);
    margin: 0 auto;
    padding: 0 24px;
}

.i {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Buttons ---------- */

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 34px;
    border: 0;
    border-radius: 999px;
    background: var(--zafferano);
    color: var(--notte);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 560;
    line-height: 1.1;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition:
        background-color 0.2s,
        transform 0.2s,
        translate 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cta:hover {
    background: #ffd05f;
}

.cta--s {
    height: 48px;
    padding: 0 24px;
    font-size: 19px;
}

.cta--xl {
    position: relative;
    gap: 22px;
    padding: 12px 12px 12px 36px;
    overflow: hidden;
    isolation: isolate;
}

.cta--xl::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.65) 48%,
        transparent 66%
    );
    transform: translateX(-110%);
    animation: shine 5.5s ease-in-out 1.8s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-110%);
    }

    28%,
    100% {
        transform: translateX(110%);
    }
}

.cta__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    text-align: left;
}

.cta__text b {
    font-size: 34px;
    font-weight: 560;
    line-height: 1;
    letter-spacing: -0.02em;
}

.cta__text small {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    opacity: 0.8;
}

.cta__ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--notte);
    color: var(--zafferano);
    transition: transform 0.3s;
}

.cta__ico .i {
    width: 30px;
    height: 30px;
}

.cta--xl:hover .cta__ico {
    transform: rotate(-14deg) scale(1.06);
}

.btn--ghost {
    display: inline-flex;
    align-items: center;
    height: 56px;
    padding: 0 28px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: var(--bianco);
    font-weight: 600;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.btn--ghost:hover {
    background: var(--bianco);
    border-color: var(--bianco);
    color: var(--notte);
}

.round-btn {
    display: grid;
    flex: none;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--notte);
    color: var(--bianco);
    cursor: pointer;
    transition:
        background-color 0.2s,
        opacity 0.2s;
}

.round-btn:hover {
    background: var(--cobalto);
}

.round-btn:disabled {
    opacity: 0.25;
    cursor: default;
}

.round-btn:disabled:hover {
    background: var(--notte);
}

/* ---------- Header ---------- */

.header {
    position: fixed;
    inset: 16px 0 auto;
    z-index: 50;
    pointer-events: none;
}

.header__bar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    padding: 0 10px 0 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 34px -16px rgba(14, 26, 58, 0.5);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--notte);
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 520;
    line-height: 1;
    letter-spacing: -0.02em;
}

/* The logo kit of 12/11: the wordmark on the light bar, wide and low. */
.brand img {
    display: block;
    width: 150px;
    height: auto;
}

.nav {
    display: flex;
    gap: 4px;
    margin: 0 auto;
}

.nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--notte);
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    transition: background-color 0.2s;
}

.nav a:hover {
    background: var(--carta);
}

.nav a.is-on {
    background: rgba(39, 72, 217, 0.1);
    color: var(--cobalto);
}

.header__progress {
    position: absolute;
    right: 34px;
    bottom: 0;
    left: 34px;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    pointer-events: none;
}

.header__progress i {
    display: block;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--cobalto),
        var(--prugna) 40%,
        var(--mattone) 70%,
        var(--zafferano)
    );
    transform: scaleX(0);
    transform-origin: left;
}

.header__end {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav + .header__end {
    margin-left: 0;
}

.login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--notte);
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.login:hover {
    background: var(--carta);
}

.login .i {
    width: 18px;
    height: 18px;
}

.menu-btn {
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--carta);
    color: var(--notte);
    cursor: pointer;
}

.drawer {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: min(1240px, calc(100% - 32px));
    margin: 8px auto 0;
    padding: 14px;
    border-radius: 28px;
    background: var(--bianco);
    box-shadow: 0 24px 50px -20px rgba(14, 26, 58, 0.5);
    pointer-events: auto;
}

.drawer[hidden] {
    display: none;
}

.drawer a:not(.cta) {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--notte);
    font-weight: 600;
}

.drawer a:not(.cta):hover {
    background: var(--carta);
}

.drawer .cta {
    margin-top: 8px;
}

/* ---------- Panels and sections ---------- */

.panel {
    margin: 16px;
    padding: 96px 0;
    overflow: hidden;
    border-radius: 48px;
}

.sec {
    padding: 88px 0 72px;
}

.head {
    margin-bottom: 52px;
}

.head h2,
.contact__big {
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.04;
}

.head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 64px;
    align-items: end;
}

.head p {
    max-width: 560px;
    font-size: 18px;
    line-height: 29px;
}

.head .head__more {
    margin-top: 14px;
    font-size: 15.5px;
    line-height: 25px;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 156px 0 0;
    background: var(--cobalto);
    color: var(--bianco);
    isolation: isolate;
}

.hero__glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(
            560px circle at var(--mx, 80%) var(--my, 22%),
            rgba(255, 255, 255, 0.17),
            transparent 70%
        ),
        radial-gradient(
            900px circle at 4% 110%,
            rgba(90, 45, 138, 0.5),
            transparent 62%
        );
    pointer-events: none;
}

.hero h1 {
    max-width: 1120px;
    color: var(--bianco);
    font-size: clamp(42px, 6.1vw, 90px);
    font-weight: 470;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.pill-foto {
    display: inline-block;
    width: 1.85em;
    height: 0.78em;
    margin: 0 0.04em;
    border-radius: 999px;
    background: var(--carta) url('img/foto-penna.webp') 0% 50% / 130% auto
        no-repeat;
    vertical-align: -0.04em;
    animation: pan 9s ease-in-out infinite alternate;
}

@keyframes pan {
    to {
        background-position: 100% 50%;
    }
}

.hero__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 56px;
    align-items: center;
    margin-top: 44px;
}

.hero__lead {
    max-width: 580px;
    font-size: 19px;
    line-height: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero__act {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    padding-top: 4px;
    padding-bottom: 40px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 500;
}

.facts li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.facts .i {
    width: 18px;
    height: 18px;
    color: var(--zafferano);
}

/* ---------- Sideways marquees ---------- */

.marquee {
    margin-top: 64px;
    padding: 12px 0 28px;
    overflow-x: auto;
    scrollbar-width: none;
}

.marquee::-webkit-scrollbar {
    display: none;
}

.marquee.is-live {
    overflow: hidden;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: slide 90s linear infinite;
}

.marquee--rev .marquee__track {
    animation-direction: reverse;
    animation-duration: 70s;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee__set {
    display: flex;
    flex: none;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
    padding-left: 24px;
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

.doc {
    position: relative;
    flex: none;
    transition:
        translate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        rotate 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
        box-shadow 0.4s;
    height: 236px;
    overflow: hidden;
    border-radius: 26px;
    background: var(--bianco);
    box-shadow: 0 26px 44px -26px rgba(4, 10, 44, 0.7);
}

.doc:nth-child(even) {
    height: 196px;
}

.marquee .doc:hover {
    translate: 0 -10px;
    rotate: -1.5deg;
    box-shadow: 0 36px 50px -24px rgba(4, 10, 44, 0.8);
}

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

.doc figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--notte);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.also {
    padding: 0 0 88px;
}

.also__label {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto 6px;
    color: var(--notte);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 480;
    letter-spacing: -0.02em;
}

.also .marquee {
    margin-top: 0;
    padding: 14px 0;
}

.pill {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 11px;
    height: 62px;
    padding: 0 30px 0 24px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    transition:
        translate 0.3s cubic-bezier(0.3, 1.5, 0.5, 1),
        rotate 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}

.pill:hover {
    translate: 0 -4px;
    rotate: -2deg;
}

.pill--cobalto {
    background: var(--cobalto);
    color: var(--bianco);
}

.pill--zafferano {
    background: var(--zafferano);
    color: var(--notte);
}

.pill--smeraldo {
    background: var(--smeraldo);
    color: var(--bianco);
}

.pill--prugna {
    background: var(--prugna);
    color: var(--bianco);
}

.pill--mattone {
    background: var(--mattone);
    color: var(--bianco);
}

.pill--notte {
    background: var(--notte);
    color: var(--bianco);
}

/* ---------- Rails ---------- */

.rail__track {
    display: flex;
    gap: 24px;
    padding: 8px var(--pad) 28px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--pad);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
}

.rail__track::-webkit-scrollbar {
    display: none;
}

.rail__track > * {
    flex: none;
    scroll-snap-align: start;
}

.rail__track.is-drag {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

.rail__track img {
    -webkit-user-drag: none;
}

.rail__ctl {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-top: 12px;
}

.rail__bar {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: rgba(14, 26, 58, 0.12);
    overflow: hidden;
}

.rail__bar i {
    display: block;
    width: var(--w, 30%);
    height: 100%;
    margin-left: var(--x, 0%);
    border-radius: 99px;
    background: var(--notte);
}

.rail__btns {
    display: flex;
    gap: 10px;
}

@supports (animation-timeline: view(x)) {
    .rail__track > * {
        animation: rail-in linear both;
        animation-timeline: view(x);
        animation-range: entry 0% entry 70%;
    }
}

@keyframes rail-in {
    from {
        opacity: 0.4;
        transform: scale(0.93);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- The four voices ---------- */

.vc {
    display: flex;
    flex-direction: column;
    width: min(404px, 84vw);
    padding: 34px 34px 0;
    overflow: hidden;
    border-radius: 40px;
    color: var(--bianco);
}

.vc--notte {
    background: var(--notte);
}

.vc--smeraldo {
    background: var(--smeraldo);
}

.vc--prugna {
    background: var(--prugna);
}

.vc--mattone {
    background: var(--mattone);
}

.vc span {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.vc strong {
    display: block;
    margin: 6px 0 8px;
    font-family: var(--serif);
    font-size: 54px;
    font-weight: 480;
    font-variation-settings: 'SOFT' 100;
    line-height: 1;
    letter-spacing: -0.03em;
}

.vc__old p {
    font-size: 17px;
    line-height: 26px;
}

.vc small {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 19px;
    opacity: 0.9;
}

.vc__new {
    margin: 22px 0 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.vc__new p {
    margin-top: 6px;
    font-size: 19px;
    line-height: 29px;
}

.vc img {
    height: 206px;
    margin: auto -34px 0 34px;
    border-radius: 22px 0 0 0;
    object-fit: cover;
    object-position: left top;
    transform-origin: left top;
    transition: scale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vc:hover img {
    scale: 1.05;
}

/* ---------- Steps ---------- */

.steps {
    background: var(--zafferano);
    color: var(--notte);
}

.steps .head {
    margin-bottom: 56px;
}

.line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
}

.line::before {
    content: '';
    position: absolute;
    top: 29px;
    right: 0;
    left: 28px;
    height: 3px;
    border-radius: 3px;
    background: var(--notte);
    transform-origin: left;
    transition: transform 1.4s cubic-bezier(0.6, 0, 0.2, 1);
}

.js .line::before {
    transform: scaleX(0);
}

.js .line.is-in::before {
    transform: scaleX(1);
}

.line li {
    position: relative;
}

.js .line:not(.is-in) li {
    opacity: 0;
}

.line.is-in li,
.line.is-in .line__node {
    animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.line.is-in .line__node {
    animation-name: pop;
    animation-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1);
}

.line.is-in li:nth-child(2),
.line.is-in li:nth-child(2) .line__node {
    animation-delay: 0.3s;
}

.line.is-in li:nth-child(3),
.line.is-in li:nth-child(3) .line__node {
    animation-delay: 0.6s;
}

.line.is-in li:nth-child(4),
.line.is-in li:nth-child(4) .line__node {
    animation-delay: 0.9s;
}

.line__node {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--notte);
    color: var(--zafferano);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 520;
    transition:
        background-color 0.25s,
        color 0.25s,
        scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.line li:hover .line__node {
    background: var(--cobalto);
    color: var(--bianco);
    scale: 1.12;
}

.line h3 {
    margin-top: 24px;
    font-size: 30px;
}

.line p {
    margin-top: 8px;
    max-width: 270px;
    font-size: 17px;
    line-height: 26px;
}

.bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    padding: 20px 32px;
    border-radius: 999px;
    background: var(--notte);
    color: rgba(255, 255, 255, 0.88);
    font-size: 16px;
    line-height: 25px;
}

.bar .i {
    width: 26px;
    height: 26px;
    color: var(--zafferano);
}

.bar strong {
    color: var(--bianco);
}

/* ---------- Archive ---------- */

.ac {
    width: min(360px, 80vw);
}

.ac__field {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 34px;
    transform: perspective(900px) rotateX(var(--rx, 0deg))
        rotateY(var(--ry, 0deg));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ac__field::after,
.mc__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--gx, 50%) var(--gy, 0%),
        rgba(255, 255, 255, 0.3),
        transparent 55%
    );
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.ac__field.is-tilt,
.mc__card.is-tilt {
    transition-duration: 0.15s;
}

.is-tilt::after {
    opacity: 1;
}

.ac__field--cobalto {
    background: var(--cobalto);
}

.ac__field--smeraldo {
    background: var(--smeraldo);
}

.ac__field--prugna {
    background: var(--prugna);
}

.ac__field--mattone {
    background: var(--mattone);
}

.ac__field picture {
    display: contents;
}

.ac__field img {
    position: absolute;
    top: 34px;
    left: 28px;
    width: calc(100% - 28px);
    border-radius: 20px 0 0 0;
    box-shadow: -12px 12px 32px -12px rgba(4, 10, 44, 0.5);
    translate: calc(var(--tx, 0) * -18px) calc(var(--ty, 0) * -14px);
    transition: translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ac__field.is-tilt img {
    transition-duration: 0.15s;
}

.ac h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 28px;
}

.ac p {
    margin-top: 6px;
    font-size: 16px;
    line-height: 25px;
}

.ac__field--cobalto + h3 .i {
    color: var(--cobalto);
}

.ac__field--smeraldo + h3 .i {
    color: var(--smeraldo);
}

.ac__field--prugna + h3 .i {
    color: var(--prugna);
}

.ac__field--mattone + h3 .i {
    color: var(--mattone);
}

/* ---------- Documents ---------- */

.docs {
    background: var(--smeraldo);
    color: var(--bianco);
}

.docs h2,
.docs h3 {
    color: var(--bianco);
}

.docs .head p {
    color: rgba(255, 255, 255, 0.88);
}

.docs__notes {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    font-size: 15.5px;
    line-height: 24px;
}

.docs__notes li {
    display: flex;
    gap: 12px;
    align-items: center;
}

.docs__notes .i {
    width: 20px;
    height: 20px;
    color: var(--zafferano);
}

.tabs-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 36px;
}

.tabs {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 10px;
}

html:not(.js) .tabs-row {
    display: none;
}

.docs__play {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.14);
}

.docs__play:hover {
    background: rgba(255, 255, 255, 0.26);
}

.docs__play[hidden] {
    display: none;
}

.docs__play .i {
    width: 20px;
    height: 20px;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 24px 0 20px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--bianco);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.tab__time {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(11, 122, 95, 0.16);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.docs.is-auto .tab[aria-selected='true'] .tab__time {
    animation: tab-time 7s linear forwards;
}

/* After the shorthand above, which would set the clock running again. */
.docs.is-auto.is-hold .tab[aria-selected='true'] .tab__time {
    animation-play-state: paused;
}

@keyframes tab-time {
    to {
        transform: none;
    }
}

.tab:hover {
    background: rgba(255, 255, 255, 0.26);
}

.tab[aria-selected='true'] {
    background: var(--bianco);
    color: var(--smeraldo);
}

.docs__view {
    overflow: hidden;
    touch-action: pan-y;
}

.js .docs__track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.22, 0.8, 0.24, 1);
}

html:not(.js) .docs__track {
    display: grid;
    gap: 56px;
}

.panel-doc {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.6fr);
    gap: 56px;
    align-items: center;
}

.js .panel-doc {
    transition:
        opacity 0.6s,
        scale 0.65s cubic-bezier(0.22, 0.8, 0.24, 1);
}

.js .panel-doc[inert] {
    opacity: 0.25;
    scale: 0.92;
}

.panel-doc__text h3 {
    font-size: 38px;
}

.panel-doc__text p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 29px;
}

.frame {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 30px;
    background: var(--bianco);
}

.frame picture {
    display: contents;
}

.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.frame--contain img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* ---------- Relations and market ---------- */

.mc {
    display: flex;
    flex-direction: column;
    width: min(500px, 86vw);
    padding: 36px;
    overflow: hidden;
    border-radius: 44px;
    color: var(--bianco);
}

.mc--smeraldo {
    background: var(--smeraldo);
}

.mc--zafferano {
    background: var(--zafferano);
    color: var(--notte);
}

.mc--mattone {
    background: var(--mattone);
}

.mc--prugna {
    background: var(--prugna);
}

.mc__tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 9px;
    height: 38px;
    padding: 0 18px 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 15px;
    font-weight: 600;
}

.mc--zafferano .mc__tag {
    background: rgba(14, 26, 58, 0.1);
}

.mc__tag .i {
    width: 20px;
    height: 20px;
}

.mc h3 {
    margin-top: 24px;
    color: inherit;
    font-size: 36px;
    line-height: 1.05;
}

.mc p {
    margin-top: 12px;
    font-size: 17px;
    line-height: 27px;
}

.mc__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mc__chips li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.mc__chips .i {
    width: 16px;
    height: 16px;
}

.mc__shot {
    margin: auto -36px -36px 36px;
    padding-top: 28px;
}

.mc__shot img {
    width: 100%;
    border-radius: 22px 0 0 0;
    transform-origin: left top;
    transition: scale 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mc:hover .mc__shot img {
    scale: 1.04;
}

.mc__chart {
    margin-top: 24px;
    padding: 20px 22px 22px;
    border-radius: 26px;
    background: var(--bianco);
    color: var(--notte);
}

.mc__chart b {
    display: block;
    color: var(--testo);
    font-size: 14px;
    font-weight: 600;
}

.mc__chart-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 6px;
}

.years {
    display: flex;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: var(--carta);
}

.years button {
    height: 30px;
    padding: 0 13px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--testo);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s,
        color 0.2s;
}

.years button:hover {
    color: var(--notte);
}

.years button[aria-pressed='true'] {
    background: var(--notte);
    color: var(--bianco);
}

.bar-row {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 28px;
    gap: 12px;
    align-items: center;
    margin-top: 9px;
    font-size: 14px;
    line-height: 20px;
}

.bar-row i {
    display: block;
    width: var(--w);
    height: 12px;
    border-radius: 99px;
    background: #cfd6e6;
    transition:
        width 1s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--r, 0) * 70ms),
        background-color 0.4s;
}

.js .mc__chart:not(.is-in) .bar-row i {
    width: 0;
}

.bar-row em {
    font-style: normal;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.bar-row.is-you {
    font-weight: 700;
}

.bar-row.is-you i {
    background: var(--notte);
}

.mc .mc__phrase {
    margin-top: 20px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
}

.mc .mc__note {
    margin-top: 12px;
    font-size: 13.5px;
    line-height: 20px;
    opacity: 0.9;
}

.mc__card {
    position: relative;
    overflow: hidden;
    transform: perspective(800px) rotateX(var(--rx, 0deg))
        rotateY(var(--ry, 0deg));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 22px;
    border-radius: 30px;
    background: var(--bianco);
    color: var(--notte);
}

.mc__person {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.mc__person img {
    flex: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.mc__person b {
    display: block;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 520;
    line-height: 1.15;
}

.mc__person small {
    color: var(--testo);
    font-size: 14px;
}

.mc__qr {
    position: relative;
    display: block;
    flex: none;
    overflow: hidden;
    border-radius: 12px;
}

/* The QR is being read: a line passes over it. */
.mc__qr::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 22%;
    border-bottom: 2px solid var(--cobalto);
    background: linear-gradient(180deg, transparent, rgba(39, 72, 217, 0.3));
    transform: translateY(-100%);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    60%,
    100% {
        transform: translateY(460%);
    }
}

.mc__link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin: 22px 0 18px;
    padding: 10px 16px 10px 20px;
    border-radius: 999px;
    background: var(--bianco);
    color: var(--prugna);
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    transition: background-color 0.2s;
}

.mc__link:hover {
    background: var(--zafferano);
    color: var(--notte);
}

.mc__link .i {
    width: 18px;
    height: 18px;
    transition: transform 0.25s;
}

.mc__link:hover .i {
    transform: translate(3px, -3px);
}

.mc .mc__note--soon {
    margin: auto 0 0;
    padding: 14px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
    opacity: 1;
    font-size: 14.5px;
    line-height: 22px;
}

/* ---------- Confidentiality ---------- */

.privacy {
    background: var(--notte);
    color: rgba(255, 255, 255, 0.84);
}

.privacy h2,
.privacy h3 {
    color: var(--bianco);
}

.stairs {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 24px;
}

.stairs li {
    display: flex;
    flex: 1;
}

.stairs button {
    display: flex;
    flex: 1;
    align-items: flex-end;
    gap: 10px;
    height: calc(70px + var(--h) * 40px);
    padding: 20px 22px;
    border: 0;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--bianco);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 480;
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-align: left;
    cursor: pointer;
    transition:
        translate 0.35s cubic-bezier(0.3, 1.5, 0.5, 1),
        box-shadow 0.25s;
}

.stairs li:nth-child(2) button {
    background: rgba(255, 255, 255, 0.2);
}

.stairs li:nth-child(3) button {
    background: rgba(255, 255, 255, 0.32);
}

.stairs li:nth-child(4) button {
    background: var(--bianco);
    color: var(--notte);
}

.stairs li:nth-child(5) button {
    background: var(--zafferano);
    color: var(--notte);
}

.stairs button[aria-pressed='true'] {
    translate: 0 -12px;
    box-shadow:
        0 0 0 3px var(--notte),
        0 0 0 6px var(--bianco);
}

.js .stairs:not(.is-in) button {
    opacity: 0;
}

.stairs.is-in button {
    animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) calc(var(--h) * 90ms)
        both;
}

.levels__text {
    max-width: 780px;
    margin-bottom: 56px;
    padding: 18px 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 27px;
}

.levels__text b {
    color: var(--bianco);
    font-weight: 600;
}

.levels__text.is-new {
    animation: level-in 0.45s ease;
}

@keyframes level-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
}

.stairs .i {
    width: 24px;
    height: 24px;
    margin-bottom: 1px;
}

.trio {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
}

.trio li {
    display: flex;
    gap: 18px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--zafferano);
    color: var(--notte);
}

.trio h3 {
    font-size: 23px;
    line-height: 1.15;
}

.trio p {
    margin-top: 8px;
    font-size: 16px;
    line-height: 25px;
}

/* ---------- Contact ---------- */

.contact {
    padding: 104px 0;
    background: var(--cobalto);
    color: var(--bianco);
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    gap: 72px;
    align-items: start;
}

.contact__big {
    color: var(--bianco);
    font-size: clamp(52px, 7.6vw, 112px);
    font-weight: 460;
    line-height: 0.92;
    letter-spacing: -0.045em;
}

.contact__sub {
    max-width: 520px;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 21px;
    line-height: 32px;
}

.start {
    margin-top: 44px;
    counter-reset: s;
}

.start li {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    counter-increment: s;
}

.start li::before {
    content: '0' counter(s);
    grid-row: span 2;
    color: var(--zafferano);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 520;
    line-height: 26px;
}

.start b {
    color: var(--bianco);
    font-weight: 600;
}

.start span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15.5px;
    line-height: 24px;
}

.reach {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    font-weight: 500;
}

.reach li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.reach .i {
    color: var(--zafferano);
}

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

.form {
    position: relative;
    padding: 40px;
    border-radius: 44px;
    background: var(--bianco);
    color: var(--testo);
}

.form h3 {
    font-size: 30px;
}

.form > p:first-of-type {
    margin-top: 8px;
    font-size: 16px;
    line-height: 25px;
}

.fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.fields label {
    display: grid;
    gap: 6px;
}

.fields .full {
    grid-column: 1 / -1;
}

.fields label > span {
    color: var(--notte);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.fields input:not([type='checkbox']),
.fields textarea {
    width: 100%;
    border: 1.5px solid var(--linea);
    border-radius: 16px;
    background: var(--bianco);
    color: var(--notte);
    font: inherit;
    font-size: 16px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.fields input:not([type='checkbox']) {
    height: 54px;
    padding: 0 16px;
}

.fields textarea {
    padding: 14px 16px;
    resize: vertical;
}

.fields input:focus,
.fields textarea:focus {
    border-color: var(--cobalto);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(39, 72, 217, 0.18);
}

.fields [aria-invalid='true'] {
    border-color: var(--mattone);
}

.fields .consent {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.fields .consent span {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    color: var(--testo);
}

.fields .consent a {
    color: var(--cobalto);
    text-decoration: underline;
}

.fields input[type='checkbox'] {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--cobalto);
}

.fields input[type='checkbox'][aria-invalid='true'] {
    outline: 2px solid var(--mattone);
    outline-offset: 2px;
}

.trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form__status {
    margin-top: 14px;
    font-size: 15px;
    line-height: 23px;
}

.form__status:empty {
    display: none;
}

.form__status.is-ok {
    color: var(--smeraldo);
    font-weight: 600;
}

.form__status.is-error {
    color: var(--mattone);
    font-weight: 600;
}

.form button.cta {
    position: relative;
    width: 100%;
    height: 66px;
    margin-top: 20px;
    font-size: 24px;
}

.form button.cta:disabled {
    opacity: 0.6;
    cursor: default;
}

.form.is-busy button.cta {
    color: transparent;
}

.form.is-busy button.cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 3px solid var(--notte);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.form__status.is-ok {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.form__status.is-ok::before {
    content: '';
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--smeraldo)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / 14px no-repeat;
    animation: pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.form .note {
    margin-top: 14px;
    color: var(--testo);
    font-size: 13.5px;
    line-height: 20px;
    text-align: center;
}

/* ---------- Footer ---------- */

.footer {
    margin: 16px;
    padding: 72px 0 32px;
    border-radius: 48px;
    background: var(--notte);
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 24px;
}

.footer .brand {
    color: var(--bianco);
}

/* On the night blue of the footer, the wordmark in negative. */
.footer .brand img {
    width: 160px;
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) auto;
    gap: 56px;
    align-items: start;
}

.footer__about p {
    max-width: 330px;
    margin-top: 16px;
}

.footer__nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer__nav h3 {
    margin-bottom: 12px;
    color: var(--bianco);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.footer__nav a {
    display: block;
    padding: 3px 0;
}

.footer a:hover {
    color: var(--bianco);
    text-decoration: underline;
}

.footer__kreita {
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.footer__kreita img {
    padding: 8px 14px;
    border-radius: 14px;
    background: var(--bianco);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px 32px;
    flex-wrap: wrap;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 13.5px;
}

/* ---------- Floating call to action ---------- */

.float-cta {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 62px;
    padding: 0 30px 0 24px;
    border-radius: 999px;
    background: var(--zafferano);
    box-shadow: 0 20px 38px -14px rgba(14, 26, 58, 0.6);
    color: var(--notte);
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 560;
    letter-spacing: -0.01em;
    transform: translateY(160%);
    transition:
        transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.1),
        background-color 0.2s;
}

.float-cta .i {
    width: 24px;
    height: 24px;
}

.float-cta.is-on {
    transform: none;
}

.float-cta.is-on .i {
    animation: nudge 1.4s ease-in-out 0.6s 2;
}

@keyframes nudge {
    0%,
    60%,
    100% {
        transform: none;
    }

    15% {
        transform: rotate(-16deg) scale(1.1);
    }

    30% {
        transform: rotate(12deg) scale(1.1);
    }

    45% {
        transform: rotate(-6deg);
    }
}

.float-cta:hover {
    background: #ffd05f;
}

/* ---------- Reveals, words that rise, figures ---------- */

.js .rv {
    opacity: 0;
}

.js .rv.is-in {
    animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1)
        calc(var(--rv, 0) * 90ms) both;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pop {
    from {
        transform: scale(0.3);
    }

    to {
        transform: none;
    }
}

.is-split .sw {
    display: inline-block;
    padding-bottom: 0.12em;
    margin-bottom: -0.12em;
    overflow: hidden;
    vertical-align: top;
}

.is-split.is-done .sw {
    overflow: visible;
}

.is-split .sc {
    display: inline-block;
    transform: translateY(115%);
}

.is-split.is-in .sc {
    transform: none;
    animation: word-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1)
        calc(var(--n) * 45ms + 120ms) both;
}

.is-split .pill-foto {
    transform: scaleX(0);
}

.is-split.is-in .pill-foto {
    transform: none;
    animation:
        pill-in 0.9s cubic-bezier(0.3, 1.4, 0.5, 1)
            calc(var(--n) * 45ms + 250ms) both,
        pan 9s ease-in-out 2s infinite alternate;
}

@keyframes word-up {
    from {
        transform: translateY(115%);
    }

    to {
        transform: none;
    }
}

@keyframes pill-in {
    from {
        transform: scaleX(0);
    }

    to {
        transform: none;
    }
}

.contact__big.is-in .sc {
    animation-timing-function: cubic-bezier(0.3, 1.5, 0.5, 1);
}

.contact__big .sc {
    transition:
        translate 0.3s cubic-bezier(0.3, 1.6, 0.5, 1),
        color 0.3s;
}

.contact__big.is-done .sc:hover {
    translate: 0 -0.08em;
    color: var(--zafferano);
}

[data-count] {
    font-variant-numeric: tabular-nums;
}

/* ---------- Motion preferences ---------- */

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

    .marquee__track {
        animation: none;
    }

    .marquee.is-live {
        overflow-x: auto;
    }

    .marquee__set[aria-hidden='true'] {
        display: none;
    }

    .rail__track > * {
        animation: none;
    }

    .line::before,
    .docs__track,
    .float-cta {
        transition: none;
    }

    .js .line::before {
        transform: none;
    }

    .cta--xl::before,
    .pill-foto,
    .mc__qr::after,
    .float-cta.is-on .i,
    .line.is-in li,
    .line.is-in .line__node,
    .stairs.is-in button,
    .levels__text.is-new {
        animation: none;
    }

    .cta--xl::before,
    .mc__qr::after {
        display: none;
    }

    .js .line:not(.is-in) li,
    .js .stairs:not(.is-in) button {
        opacity: 1;
    }

    .js .mc__chart:not(.is-in) .bar-row i {
        width: var(--w);
    }

    .js .panel-doc,
    .bar-row i,
    .doc,
    .pill,
    .vc img,
    .mc__shot img,
    .stairs button {
        transition: none;
    }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .nav {
        display: none;
    }

    .nav + .header__end {
        margin-left: auto;
    }

    .menu-btn {
        display: grid;
    }

    .head--split {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        align-items: start;
    }

    .hero__row {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        align-items: start;
    }

    .panel-doc {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .contact__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 56px;
    }

    .footer__top {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .trio {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 48px;
    }

    .line::before {
        display: none;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 26px;
    }

    .panel,
    .footer {
        margin: 8px;
        padding: 64px 0;
        border-radius: 32px;
    }

    .footer {
        padding-bottom: 28px;
    }

    .sec {
        padding: 64px 0 48px;
    }

    .head {
        margin-bottom: 36px;
    }

    .head p {
        font-size: 16.5px;
        line-height: 27px;
    }

    .header {
        inset: 10px 0 auto;
    }

    .header__bar {
        gap: 8px;
        width: calc(100% - 20px);
        height: 60px;
        padding: 0 8px 0 18px;
    }

    .header .brand img {
        width: 130px;
    }

    .header .cta--s {
        height: 44px;
        padding: 0 16px;
        font-size: 17px;
    }

    .login {
        display: none;
    }

    .hero {
        padding-top: 112px;
    }

    .hero h1 {
        font-size: clamp(36px, 10.4vw, 52px);
    }

    .hero__lead {
        font-size: 17px;
        line-height: 27px;
    }

    .hero__act {
        width: 100%;
    }

    .cta--xl {
        width: 100%;
        justify-content: space-between;
        padding-left: 28px;
    }

    .cta__text b {
        font-size: 30px;
    }

    .cta__ico {
        width: 60px;
        height: 60px;
    }

    .marquee {
        margin-top: 44px;
    }

    .doc {
        height: 172px;
        border-radius: 20px;
    }

    .doc:nth-child(even) {
        height: 144px;
    }

    .facts {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 8px;
    }

    .vc strong {
        font-size: 46px;
    }

    .line {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 36px;
    }

    .line li {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        column-gap: 18px;
    }

    .line__node {
        grid-row: span 2;
    }

    .line h3 {
        margin-top: 4px;
        font-size: 26px;
    }

    .bar {
        align-items: flex-start;
        margin-top: 44px;
        padding: 20px 22px;
        border-radius: 28px;
    }

    .tab {
        height: 46px;
        padding: 0 18px 0 14px;
        font-size: 15px;
    }

    .panel-doc__text h3 {
        font-size: 30px;
    }

    .frame {
        border-radius: 22px;
    }

    .mc {
        padding: 28px;
        border-radius: 36px;
    }

    .mc h3 {
        font-size: 30px;
    }

    .mc__shot {
        margin: auto -28px -28px 28px;
    }

    .bar-row {
        grid-template-columns: 112px minmax(0, 1fr) 26px;
        gap: 10px;
    }

    /* On the narrowest cards the QR goes under the name. */
    .mc__card {
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px;
    }

    .mc__person {
        flex: 1 1 170px;
        gap: 12px;
    }

    .mc__person img {
        width: 52px;
        height: 52px;
    }

    .mc__qr {
        margin-left: auto;
    }

    .mc__qr img {
        display: block;
        width: 72px;
        height: 72px;
    }

    .also {
        padding-bottom: 56px;
    }

    .pill {
        height: 54px;
        font-size: 16px;
    }

    .levels__text {
        padding: 16px 20px;
        font-size: 16px;
        line-height: 25px;
    }

    .tabs-row {
        margin-bottom: 28px;
    }

    .docs__play {
        width: 46px;
        height: 46px;
    }

    .contact {
        padding: 64px 0;
    }

    .contact__big {
        font-size: clamp(52px, 17vw, 84px);
    }

    .contact__sub {
        font-size: 18px;
        line-height: 28px;
    }

    .form {
        padding: 28px 22px;
        border-radius: 32px;
    }

    .fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer__nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .float-cta {
        right: 12px;
        bottom: 12px;
        height: 56px;
        font-size: 21px;
    }

    .rail__track {
        align-items: flex-start;
    }

    .rail__ctl {
        gap: 20px;
    }

    .round-btn {
        width: 50px;
        height: 50px;
    }
}

/* ---------- Privacy and cookie policy ---------- */

.legal {
    padding: 148px var(--pad) 96px;
}

.legal__inner {
    max-width: 820px;
    margin: 0 auto;
    color: var(--testo);
    font-size: 17px;
    line-height: 28px;
}

.legal__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px 6px 10px;
    border-radius: 999px;
    background: rgba(39, 72, 217, 0.1);
    color: var(--cobalto);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.legal__kicker .i {
    width: 18px;
    height: 18px;
}

.legal h1 {
    color: var(--notte);
    font-family: var(--serif);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 480;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.legal__date {
    margin: 14px 0 40px;
    font-size: 14px;
}

.legal__lead {
    margin-bottom: 8px;
    color: var(--notte);
    font-size: 20px;
    line-height: 31px;
}

.legal h2 {
    margin: 48px 0 12px;
    color: var(--notte);
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 520;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.legal p + p,
.legal p + ul,
.legal ul + p,
.legal .table-wrap + p {
    margin-top: 14px;
}

.legal ul {
    display: grid;
    gap: 10px;
    padding-left: 22px;
    list-style: disc;
}

.legal li::marker {
    color: var(--cobalto);
}

.legal b {
    color: var(--notte);
    font-weight: 600;
}

.legal a:not(.cta) {
    color: var(--cobalto);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal a:not(.cta):hover {
    color: var(--notte);
}

.legal__box {
    margin-top: 28px;
    padding: 22px 26px;
    border-left: 4px solid var(--cobalto);
    border-radius: 26px;
    background: var(--bianco);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--linea);
    border-radius: 22px;
    background: var(--bianco);
}

.legal table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15.5px;
    line-height: 24px;
}

.legal th,
.legal td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
}

.legal th {
    background: var(--carta);
    color: var(--notte);
    font-weight: 600;
}

.legal tr + tr td {
    border-top: 1px solid var(--linea);
}

.legal code {
    padding: 2px 7px;
    border-radius: 7px;
    background: var(--carta);
    color: var(--notte);
    font-size: 14px;
    white-space: nowrap;
}

.footer--legal {
    padding: 36px 0;
}

.footer--legal .footer__bottom {
    align-items: center;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.footer--legal .footer__kreita {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 767px) {
    .legal {
        padding: 112px 20px 64px;
    }

    .legal__inner {
        font-size: 16px;
        line-height: 26px;
    }

    .legal__lead {
        font-size: 18px;
        line-height: 28px;
    }

    .legal h2 {
        margin-top: 40px;
        font-size: 24px;
    }

    .legal__box {
        padding: 18px 20px;
    }

    /* Tables become one card per row; the later columns say what they are. */
    .legal table {
        min-width: 0;
    }

    .legal thead {
        display: none;
    }

    .legal tr,
    .legal td {
        display: block;
    }

    .legal td {
        padding: 4px 18px;
    }

    .legal td:first-child {
        padding-top: 16px;
        color: var(--notte);
    }

    .legal td:last-child {
        padding-bottom: 16px;
    }

    .legal tr + tr td {
        border-top: 0;
    }

    .legal tr + tr {
        border-top: 1px solid var(--linea);
    }

    .legal td[data-label]::before {
        content: attr(data-label) ': ';
        color: var(--notte);
        font-weight: 600;
    }
}

/* Below a laptop the five steps do not fit side by side: they become bars of growing length. */
@media (max-width: 1023px) {
    .stairs {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .stairs li {
        flex: none;
        width: calc(40% + var(--h) * 12%);
    }

    .stairs button {
        align-items: center;
        height: auto;
        padding: 18px 22px;
        font-size: 19px;
    }

    .stairs button[aria-pressed='true'] {
        translate: 10px 0;
    }

    .stairs li:last-child button[aria-pressed='true'] {
        translate: none;
    }
}

/* The narrowest phones: the floating button already asks for the demo. */
@media (max-width: 359px) {
    .header .cta--s {
        display: none;
    }
}
