/* AperiSocial, courses and personal page */

:root {
    --ev-muted: #6b6460;
    --ev-line: rgba(27, 27, 27, 0.12);
    --ev-radius: 25px;
}

::selection {
    background: var(--background-dark);
    color: var(--background-color);
}

/* #region Navbar on cream pages */

.page-light .navbar .nav-link,
.page-light .navbar .nav-link:hover {
    color: var(--font-color);
}

/* Dark hero: the active link stays light until the bar turns cream */
body:not(.page-light) .navbar:not(.navbar-scrolled) .navbar-nav .nav-link.active {
    color: var(--background-color);
}

/* #endregion */

/* #region Shared */

/* Anchors land below the fixed navbar (taller on phones, menu on two rows) */
#prossimo,
#iscriviti,
#ritrova {
    scroll-margin-top: 150px;
}


.ev-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--font-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    cursor: pointer;
}

.ev-link:hover {
    color: var(--font-color);
    text-decoration-thickness: 2px;
}

.ev-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.ev-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: inherit;
    text-decoration: none;
    opacity: .8;
}

.ev-back:hover {
    color: inherit;
    opacity: 1;
}

.ev-back svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.btn-ghost,
a.btn-ghost,
button.btn-ghost,
.btn-ghost:hover,
.btn-ghost:focus {
    background: transparent;
    color: var(--font-color);
    border: 1px solid rgba(27, 27, 27, 0.3);
}

.btn:focus-visible,
.ev-link:focus-visible,
.ev-row:focus-visible,
.ev-past__tile:focus-visible {
    outline: 2px solid var(--font-color);
    outline-offset: 4px;
}

.btn[disabled] {
    opacity: .55;
    transform: none;
    box-shadow: none;
}

/* #endregion */

/* #region Hero (dark, AperiSocial) */

.ev-hero {
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    padding: 150px 0 80px;
    background: var(--background-dark);
    color: #fff;
    isolation: isolate;
}

.ev-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.ev-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .42) 45%, rgba(0, 0, 0, .7) 100%);
}

.ev-hero--plain::after {
    background:
        radial-gradient(120% 80% at 85% 10%, rgba(255, 255, 255, .06), transparent 60%),
        linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .25));
}

.ev-hero__inner {
    position: relative;
}

.ev-hero__doodle {
    position: absolute;
    right: 4%;
    top: -10px;
    width: clamp(120px, 22vw, 290px);
    height: auto;
    color: #fff;
    transform: rotate(-8deg);
    opacity: .95;
}

/* Over a real photo of glasses the drawn one is one too many: it stays on the plain dark ground */
.ev-hero:not(.ev-hero--plain) .ev-hero__doodle {
    display: none;
}

.ev-hero__spark {
    position: absolute;
    width: 46px;
    color: #fff;
}

.ev-hero__spark--a {
    right: 30%;
    top: 0;
}

.ev-hero__spark--b {
    right: 2%;
    top: 46%;
    width: 30px;
}

.ev-hero__tagline {
    display: inline-block;
    position: relative;
    margin-top: 44px;
    font-family: "Instrument Serif", var(--font-display);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: 0.01em;
}

.ev-hero__tagline::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -10px;
    bottom: -10px;
    height: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cpath d='M1 9C22 3 48 2 70 5C82 6 92 5 99 2M6 12C34 8 60 8 92 7' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    opacity: .85;
}

.ev-hero__lead {
    max-width: 560px;
    margin-top: 28px;
    font-size: 17px;
    color: rgba(255, 255, 255, .9);
}

.ev-hero__actions {
    margin-top: 32px;
}

/* Event page: shorter hero with the title */
.ev-hero--event {
    min-height: 0;
    padding: 160px 0 64px;
}

.ev-hero--event .ev-hero__doodle {
    top: auto;
    bottom: 0;
    width: clamp(100px, 16vw, 200px);
}

.ev-hero__title {
    max-width: 14ch;
    color: #fff;
    font-size: clamp(42px, 6vw, 72px);
    text-wrap: balance;
}

.ev-hero__when {
    margin-top: 18px;
    font-size: 17px;
    color: rgba(255, 255, 255, .88);
}

/* #endregion */

/* #region Cream page head (courses, personal page) */

.ev-page-head {
    padding: 170px 0 40px;
}

.ev-page-head h1 {
    font-size: clamp(48px, 7vw, 88px);
    max-width: 16ch;
    text-wrap: balance;
}

.ev-page-head h1 span {
    font-style: italic;
    font-weight: 300;
}

.ev-page-head__lead {
    max-width: 58ch;
    margin-top: 22px;
    font-size: 17px;
    color: var(--ev-muted);
}

.ev-page-head__lead a {
    color: var(--font-color);
}

.ev-page-head--event h1 {
    font-size: clamp(42px, 6vw, 76px);
}

.ev-cover {
    display: block;
    width: 100%;
    max-height: 560px;
    margin-top: 44px;
    object-fit: cover;
    border-radius: var(--ev-radius);
}

/* #endregion */

/* #region Idea */

.ev-idea {
    padding: 100px 0 40px;
}

/* Two blocks across the whole container, each with its carousel doodle (plane for the idea, stars for who) */
.ev-idea__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ev-idea__block {
    position: relative;
    padding: 44px 44px 48px;
    border-radius: var(--ev-radius);
    background: #fff;
    border: 1px solid rgba(27, 27, 27, 0.06);
}

.ev-idea__block:nth-child(2) {
    background: var(--background-dark);
    color: var(--background-color);
}

.ev-idea__doodle {
    position: absolute;
    top: 30px;
    right: 34px;
    width: 76px;
    height: 76px;
    transform: rotate(-6deg);
}

.ev-idea h2 {
    font-size: 40px;
    margin-bottom: 22px;
    padding-right: 90px;
}

.ev-idea p {
    font-size: 18px;
    line-height: 1.7;
    max-width: 44ch;
}

/* #endregion */

/* #region Next event + sign-up */

.ev-next {
    padding: 80px 0 40px;
}

.ev-next__head {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 40px;
}

/* The date of the next one, big: it is what separates it from the calendar below */
.ev-next__date {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: var(--background-dark);
    color: var(--background-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    line-height: 1;
}

.ev-next__date b {
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 52px;
    letter-spacing: -0.02em;
    text-transform: none;
}

/* Calendar and archive: two full-width bands, sand for what is coming, dark for the evenings already held */
.ev-band {
    padding: 90px 0;
}

.ev-band--sand {
    margin-top: 50px;
    background: var(--background-secondary);
}

.ev-band--dark {
    background: var(--background-dark);
    color: var(--background-color);
}

.ev-band--dark .ev-list__lead {
    color: rgba(249, 246, 243, .72);
}

.ev-band--sand .ev-rows {
    border-top-color: rgba(27, 27, 27, .16);
}

.ev-band--sand .ev-row:hover {
    background: rgba(249, 246, 243, .7);
}

.ev-band__none {
    padding: 22px 0;
    border-top: 1px solid rgba(27, 27, 27, .16);
    border-bottom: 1px solid rgba(27, 27, 27, .16);
    color: var(--ev-muted);
}

.ev-band__none a {
    color: var(--font-color);
}

.ev-band--dark .ev-past__tile,
.ev-band--dark .ev-past__tile:hover {
    color: var(--background-color);
}

.ev-band--dark .ev-past__img {
    background: #353535;
}

.ev-band--dark .ev-past__date,
.ev-band--dark .ev-past__people {
    color: rgba(249, 246, 243, .65);
}

.ev-band--dark .ev-past__tile:focus-visible {
    outline-color: var(--background-color);
}

.ev-band--dark .btn {
    background: var(--background-color);
    color: var(--font-color);
}

.ev-band--dark .btn-ghost,
.ev-band--dark .btn-ghost:hover,
.ev-band--dark .btn-ghost:focus {
    background: transparent;
    color: var(--background-color);
    border-color: rgba(249, 246, 243, .4);
}

.ev-band--dark .ev-cards__meta {
    color: rgba(249, 246, 243, .65);
}

.ev-band--dark .ev-cards__preview {
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}

.ev-band--badges {
    padding-bottom: 110px;
}

.ev-band--dark + .ev-recover {
    padding-top: 70px;
}

/* Section titles in the logo's italic serif, each with its doodle */
.ev-idea h2.aperi-h,
.ev-next h2.aperi-h,
.ev-band h2.aperi-h {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: "Instrument Serif", var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.01em;
    font-variation-settings: normal;
}

.aperi-h__doodle {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    transform: rotate(-8deg);
}

.ev-next__sub {
    margin-top: 10px;
    font-size: 17px;
    color: var(--ev-muted);
}

.ev-next__head h2 {
    font-size: 45px;
}

.ev-next--empty {
    text-align: center;
}

.ev-next--empty p {
    max-width: 48ch;
    margin: 14px auto 26px;
}

.ev-main {
    padding: 56px 0 30px;
}

.ev-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.ev-notice {
    margin-bottom: 26px;
    padding: 14px 18px;
    border-radius: 16px;
    background: var(--background-secondary);
}

.ev-notice a {
    color: var(--font-color);
}

.ev-facts {
    margin: 0 0 34px;
    border-top: 1px solid var(--ev-line);
}

.ev-facts > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--ev-line);
}

.ev-facts dt {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 22px;
    line-height: 1.2;
}

.ev-facts dd {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.ev-facts__hint {
    display: block;
    font-weight: 400;
    color: var(--ev-muted);
}

.ev-facts .ev-link {
    margin-top: 6px;
    font-weight: 500;
}

.ev-desc {
    max-width: 62ch;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.7;
}

.ev-signup {
    position: sticky;
    top: 110px;
    padding: 34px;
    border-radius: var(--ev-radius);
    background: var(--background-secondary);
    border: 1px solid rgba(27, 27, 27, 0.08);
}

.ev-signup__title {
    font-size: 38px;
    margin-bottom: 12px;
}

.ev-signup__people {
    margin-bottom: 24px;
    color: var(--ev-muted);
}

.ev-signup__people b {
    color: var(--font-color);
}

.ev-signup > p {
    margin-bottom: 22px;
}

.ev-form__me {
    margin-bottom: 18px;
    font-size: 14px;
}

.ev-form__me a {
    color: var(--font-color);
}

.ev-field {
    margin-bottom: 16px;
}

.ev-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
}

.ev-field__opt {
    font-weight: 400;
    color: var(--ev-muted);
}

.ev-field input,
.ev-recover__form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(27, 27, 27, 0.14);
    background: rgba(255, 255, 255, .75);
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--font-color);
    caret-color: var(--font-color);
    outline: none;
    transition: border-color 160ms ease, background 160ms ease;
}

.ev-field input:focus,
.ev-recover__form input:focus {
    border-color: rgba(27, 27, 27, 0.5);
    background: #fff;
}

.ev-field input[aria-invalid="true"],
.ev-recover__form input[aria-invalid="true"] {
    border-color: #a23b2a;
}

.ev-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 6px 0 18px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.45;
    cursor: pointer;
}

.ev-check input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--button-color);
}

.ev-check input[aria-invalid="true"] {
    outline: 2px solid #a23b2a;
    outline-offset: 2px;
}

.ev-check a {
    color: var(--font-color);
}

.ev-form-error {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #a23b2a;
}

.ev-form__submit {
    width: 100%;
    min-height: 50px;
    font-size: 15px;
}

.ev-form__submit.is-busy {
    cursor: progress;
}

.ev-form__note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--ev-muted);
}

.ev-done {
    outline: none;
}

.ev-done__mark {
    width: 64px;
    height: 64px;
    margin-bottom: 10px;
    color: var(--font-color);
}

.ev-done p {
    margin-bottom: 20px;
}

/* #endregion */

/* #region Lists */

.ev-list {
    padding: 60px 0;
}

.ev-list h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.ev-list__lead {
    margin-bottom: 28px;
    color: var(--ev-muted);
}

.ev-rows {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    border-top: 1px solid var(--ev-line);
}

.ev-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 22px 6px;
    border-bottom: 1px solid var(--ev-line);
    color: var(--font-color);
    text-decoration: none;
    transition: background-color 200ms ease, padding 200ms ease;
}

.ev-row:hover {
    color: var(--font-color);
    background: rgba(239, 231, 218, .55);
}

.ev-row--photo {
    grid-template-columns: 150px 74px minmax(0, 1fr) auto;
}

.ev-row__img {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 18px;
    background: var(--background-secondary);
}

.ev-row__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.16, 1, .3, 1);
}

.ev-row:hover .ev-row__img img {
    transform: scale(1.04);
}

.ev-row__mark {
    width: 40%;
    color: var(--font-color);
}

.ev-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.ev-date b {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 54px;
    letter-spacing: -0.02em;
    font-variant-numeric: lining-nums;
}

.ev-date small {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ev-row__main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ev-row__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.ev-row__meta {
    font-size: 15px;
    color: var(--ev-muted);
}

.ev-row__side {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.ev-row .arrow {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: transform 300ms cubic-bezier(.16, 1, .3, 1);
}

.ev-row:hover .arrow {
    transform: translateX(4px);
}

.ev-row--off .ev-row__title,
.ev-row--off .ev-row__meta {
    text-decoration: line-through;
    opacity: .6;
}

.ev-past {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.ev-past__tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: var(--font-color);
    text-decoration: none;
}

.ev-past__tile:hover {
    color: var(--font-color);
}

.ev-past__img {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--background-dark);
    color: var(--background-color);
}

.page-light .ev-past__img {
    background: var(--background-secondary);
    color: var(--font-color);
}

.ev-past__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms cubic-bezier(.16, 1, .3, 1);
}

.ev-past__tile:hover .ev-past__img img {
    transform: scale(1.04);
}

.ev-past__mark {
    width: 42%;
}

.ev-past__date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ev-muted);
}

.ev-past__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 24px;
    line-height: 1.15;
}

.ev-past__people {
    font-size: 14px;
    color: var(--ev-muted);
}

/* Courses "coming soon" teaser */

.ev-soon {
    padding: 190px 0 90px;
}

.ev-soon .container {
    position: relative;
}

.ev-soon h1 {
    font-size: clamp(52px, 9vw, 96px);
    line-height: 1.02;
    max-width: 11ch;
    text-wrap: balance;
}

.ev-soon h1 span {
    font-style: italic;
    font-weight: 300;
}

.ev-soon__plane {
    position: absolute;
    top: -30px;
    right: 6%;
    width: clamp(90px, 14vw, 170px);
    height: auto;
    color: var(--font-color);
    transform: rotate(-8deg);
    animation: ev-soon-fly 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ev-soon-fly {
    from {
        opacity: 0;
        transform: translate(-60px, 40px) rotate(-20deg);
    }
}

.ev-soon__lead {
    max-width: 52ch;
    margin-top: 34px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--ev-muted);
}

.ev-soon__lead + .ev-soon__lead {
    margin-top: 16px;
}

.ev-soon-band {
    padding: 70px 0;
    background: var(--background-secondary);
}

.ev-soon__notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ev-soon__notes li {
    padding-top: 22px;
    border-top: 1px solid var(--ev-line);
}

.ev-soon__mark {
    width: 22px;
    height: 22px;
    margin-bottom: 18px;
}

.ev-soon__notes p {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.2;
    text-wrap: balance;
}

.ev-soon__notes em {
    font-style: italic;
}

@media (max-width: 767px) {
    .ev-soon {
        padding: 150px 0 60px;
    }

    .ev-soon__plane {
        top: -10px;
        right: 12px;
        width: 64px;
    }

    .ev-soon__lead {
        font-size: 17px;
    }

    .ev-soon__notes {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-soon__plane {
        animation: none;
    }
}

/* #endregion */

/* #region Recover */

.ev-recover {
    padding: 40px 0 90px;
}

.ev-recover__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    padding: 40px;
    border-radius: var(--ev-radius);
    background: var(--background-dark);
    color: var(--background-color);
}

.ev-recover__box h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

.ev-recover__box p {
    color: rgba(249, 246, 243, .85);
}

.ev-recover__box > .btn {
    justify-self: start;
    background: var(--background-color);
    color: var(--font-color);
}

/* Signed-in variant: a quiet strip, not a second call to action */
.ev-recover__box--me {
    display: flex;
    justify-content: space-between;
    padding: 28px 36px;
    background: var(--background-secondary);
    color: var(--font-color);
}

.ev-recover__box--me h2 {
    font-size: 30px;
    margin-bottom: 6px;
}

.ev-recover__box--me p {
    color: rgba(27, 27, 27, .75);
}

.ev-recover__box--me > .btn {
    flex-shrink: 0;
    background: var(--button-color);
    color: var(--background-color);
}

.ev-recover__form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ev-recover__form input {
    flex: 1 1 220px;
    background: rgba(255, 255, 255, .95);
}

.ev-recover__form .btn {
    min-height: 48px;
    background: var(--background-color);
    color: var(--font-color);
}

.ev-recover__form .ev-form-error {
    flex-basis: 100%;
    color: #f0b3a6;
}

.ev-recover__ok {
    flex-basis: 100%;
    font-size: 14px;
}

/* #endregion */

/* #region Not found */

.ev-solo {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 170px 0 80px;
}

.ev-solo p {
    max-width: 46ch;
    margin: 18px 0 28px;
}

/* #endregion */

/* #region Sticky CTA (mobile) */

.ev-sticky {
    display: none;
}

@media (max-width: 991px) {
    .ev-sticky {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 1040;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 20px;
        border-radius: 999px;
        background: var(--background-dark);
        color: var(--background-color);
        font-size: 14px;
        box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
        transition: transform 400ms cubic-bezier(.16, 1, .3, 1), opacity 300ms ease;
    }

    .ev-sticky.is-hidden {
        transform: translateY(140%);
        opacity: 0;
        pointer-events: none;
    }
}

/* #endregion */

/* #region Personal page */

.ev-me-head h1 span {
    font-style: italic;
    font-weight: 300;
}

.ev-me-head {
    padding-bottom: 20px;
}

/* Three numbers at a glance: what is coming, what was done, badges */
.ev-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.ev-stats li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 20px 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(27, 27, 27, .08);
    font-size: 15px;
    font-weight: 500;
}

.ev-stats b {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 30px;
    line-height: 1;
}

.ev-me-head__who {
    margin-top: 16px;
    font-size: 14px;
    color: var(--ev-muted);
}

.ev-me-head__who a {
    color: var(--font-color);
}

.ev-cards {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 28px;
}

.ev-cards__preview {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    margin-bottom: 14px;
    border-radius: 18px;
    background: var(--background-dark);
    box-shadow: 0 18px 40px rgba(27, 27, 27, .14);
}

.ev-cards__link {
    display: block;
    border-radius: 18px;
    transition: transform 400ms cubic-bezier(.16, 1, .3, 1);
}

.ev-cards__link:hover {
    transform: translateY(-4px) rotate(-1deg);
}

.ev-cards__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.ev-cards__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 22px;
    line-height: 1.15;
}

.ev-cards__meta {
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--ev-muted);
}

.ev-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ev-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ev-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 20px;
    border-radius: var(--ev-radius);
    border: 1px dashed rgba(27, 27, 27, .25);
    text-align: center;
}

.ev-badge__num {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 1px solid rgba(27, 27, 27, .25);
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 46px;
    color: var(--ev-muted);
}

.ev-badge__label {
    font-weight: 600;
}

.ev-badge__bar {
    width: 70%;
    height: 4px;
    border-radius: 2px;
    background: rgba(27, 27, 27, .1);
    overflow: hidden;
}

.ev-badge__bar i {
    display: block;
    height: 100%;
    background: var(--font-color);
}

.ev-badge__left {
    font-size: 14px;
    color: var(--ev-muted);
}

.ev-badge--got {
    border: 0;
    background: var(--background-dark);
    color: var(--background-color);
}

.ev-badge--got .ev-badge__num {
    border-color: transparent;
    background: var(--background-color);
    color: var(--font-color);
}

.ev-badge--got .btn {
    background: var(--background-color);
    color: var(--font-color);
}

.ev-badge--got .btn-ghost {
    background: transparent;
    color: var(--background-color);
    border-color: rgba(249, 246, 243, .4);
}

/* #endregion */

/* #region Responsive */

@media (max-width: 991px) {
    .ev-body,
    .ev-idea__grid,
    .ev-recover__box {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ev-signup {
        position: static;
    }

    .ev-row--photo {
        grid-template-columns: 110px minmax(0, 1fr) auto;
    }

    .ev-row--photo .ev-date {
        display: none;
    }
}

@media (max-width: 576px) {
    .ev-hero {
        min-height: 88vh;
        padding: 150px 0 56px;
    }

    .ev-hero__doodle {
        top: -40px;
        right: 0;
    }

    .ev-hero__spark {
        display: none;
    }

    .ev-hero--event {
        padding: 150px 0 48px;
    }

    .ev-idea {
        padding-top: 56px;
    }

    .ev-idea__block {
        padding: 30px 24px 34px;
    }

    .ev-idea__doodle {
        top: 22px;
        right: 22px;
        width: 54px;
        height: 54px;
    }

    .ev-idea h2 {
        padding-right: 64px;
    }

    .ev-idea p {
        font-size: 17px;
    }

    .ev-idea h2,
    .ev-list h2,
    .ev-next__head h2 {
        font-size: 34px;
    }

    .ev-next__head {
        gap: 18px;
    }

    .ev-idea h2.aperi-h,
    .ev-next h2.aperi-h,
    .ev-band h2.aperi-h {
        font-size: 42px;
    }

    .aperi-h__doodle {
        width: 34px;
        height: 34px;
    }

    .ev-next__date {
        width: 84px;
        height: 84px;
    }

    .ev-next__date b {
        font-size: 38px;
    }

    .ev-band {
        padding: 60px 0;
    }

    .ev-row {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 16px;
        padding: 18px 2px;
    }

    .ev-row__side {
        grid-column: 2;
        font-size: 13px;
    }

    .ev-row .arrow {
        display: none;
    }

    .ev-row--photo {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .ev-row--photo .ev-row__side {
        grid-column: 2;
    }

    .ev-date b {
        font-size: 42px;
    }

    .ev-row__title {
        font-size: 24px;
    }

    .ev-facts > div {
        grid-template-columns: 90px 1fr;
    }

    .ev-signup,
    .ev-recover__box {
        padding: 26px 20px;
    }

    .ev-recover__box--me {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .ev-past {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ev-past__title {
        font-size: 19px;
    }

    .ev-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ev-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ev-row,
    .ev-row__img img,
    .ev-past__img img,
    .ev-row .arrow,
    .ev-sticky {
        transition: none;
    }
}

/* #endregion */
