
/* =====================================================
   CHI SONO IO — PROSSIMI INCONTRI
   Shortcode: [am_chi_events]
===================================================== */

.am-chi-events,
.am-chi-events * {
    box-sizing: border-box;
}

.am-chi-events {
    --am-chi-bg: #fcfcfa;
    --am-chi-bg-secondary: #f7f6f3;
    --am-chi-text: #222222;
    --am-chi-text-secondary: #5f5f5f;
    --am-chi-accent: #7fa7a0;
    --am-chi-primary: #1b8a8a;
    --am-chi-primary-hover: #126b6b;
    --am-chi-border: rgba(0,0,0,.08);
    --am-chi-border-accent: rgba(127,167,160,.24);

    position: relative;
    isolation: isolate;

    width: 100%;
    overflow: hidden;

    padding:
        clamp(105px,11vw,170px)
        70px
        clamp(110px,11vw,175px);

    background: var(--am-chi-bg);
    color: var(--am-chi-text);

    font-family: "Manrope", sans-serif;
}


/* =====================================================
   BACKGROUND
===================================================== */

.am-chi-events__background {
    position: absolute;
    inset: 0;
    z-index: -2;

    overflow: hidden;
    pointer-events: none;
}

.am-chi-events__background-word {
    position: absolute;

    right: -3%;
    bottom: 2%;

    color: var(--am-chi-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(110px,15vw,240px);

    font-weight: 400;
    line-height: .8;

    letter-spacing: -.065em;

    opacity: .025;

    white-space: nowrap;
}

.am-chi-events__background-line {
    position: absolute;

    top: 0;
    left: 17%;

    width: 1px;
    height: 100%;

    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(127,167,160,.16) 14%,
            rgba(127,167,160,.16) 86%,
            transparent
        );
}

.am-chi-events__background-plane {
    position: absolute;

    display: block;

    border:
        1px solid
        rgba(127,167,160,.12);

    background:
        rgba(247,246,243,.22);
}

.am-chi-events__background-plane--one {
    top: 28%;
    right: -12%;

    width: 34vw;
    height: 35%;

    transform:
        rotate(1.7deg);
}

.am-chi-events__background-plane--two {
    bottom: 8%;
    left: -13%;

    width: 31vw;
    height: 23%;

    transform:
        rotate(-1.5deg);
}


/* =====================================================
   CONTAINER
===================================================== */

.am-chi-events__container {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1450px;

    margin:
        0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.am-chi-events__header {
    display: grid;

    grid-template-columns:
        minmax(205px,.32fr)
        minmax(0,1fr);

    gap:
        clamp(50px,8vw,130px);

    align-items: start;

    margin-bottom:
        clamp(80px,9vw,135px);
}

.am-chi-events__header-side {
    padding-top: 14px;
}

.am-chi-events__eyebrow {
    display: flex;

    align-items: center;

    gap: 15px;

    color:
        var(--am-chi-accent);

    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing: .21em;
    text-transform: uppercase;
}

.am-chi-events__index {
    color:
        var(--am-chi-primary);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 23px;
    font-weight: 500;
    line-height: 1;

    letter-spacing: 0;
}

.am-chi-events__eyebrow-line {
    display: block;

    width: 42px;
    height: 1px;

    background:
        var(--am-chi-accent);
}

.am-chi-events__side-note {
    width:
        min(100%,215px);

    margin:
        43px 0 0;

    padding-top:
        22px;

    border-top:
        1px solid
        var(--am-chi-border);

    color:
        var(--am-chi-text-secondary);

    font-size: 12px;
    font-weight: 500;
    line-height: 1.78;
}

.am-chi-events__header-content {
    width:
        min(100%,960px);

    min-width: 0;
}

.am-chi-events__title {
    max-width:
        950px;

    margin: 0;

    color:
        var(--am-chi-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(56px,6.8vw,103px);

    font-weight: 400;
    line-height: .97;

    letter-spacing:
        -.048em;

    overflow-wrap:
        break-word;
}

.am-chi-events__title em {
    display: block;

    margin-top:
        8px;

    color:
        var(--am-chi-accent);

    font-weight: 400;
    font-style: italic;
}

.am-chi-events__intro {
    width:
        min(100%,700px);

    margin:
        clamp(35px,4vw,52px)
        0
        0;

    color:
        var(--am-chi-text-secondary);

    font-size:
        clamp(16px,1.4vw,20px);

    line-height:
        1.85;
}


/* =====================================================
   GRID
===================================================== */

.am-chi-events__grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:
        clamp(24px,3vw,42px);

    align-items: stretch;
}


/* =====================================================
   EVENT CARD
===================================================== */

.am-chi-event-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.am-chi-event-card__image-link {
    display: block;

    color: inherit;
    text-decoration: none;
}


/* =====================================================
   IMAGE
===================================================== */

.am-chi-event-card__image {
    position: relative;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background:
        var(--am-chi-bg-secondary);
}

.am-chi-event-card__image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        saturate(.78)
        contrast(.95)
        brightness(1.02);

    transform:
        scale(1.002);

    transition:
        transform .75s
        cubic-bezier(.22,1,.36,1),
        filter .75s ease;
}


/* =====================================================
   OVERLAY
===================================================== */

.am-chi-event-card__overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(34,34,34,.01) 35%,
            rgba(34,34,34,.34) 100%
        );

    pointer-events: none;
}


/* =====================================================
   LAYERS
===================================================== */

.am-chi-event-card__layers {
    position: absolute;
    inset: 0;

    z-index: 3;

    pointer-events: none;
}

.am-chi-event-card__layers span {
    position: absolute;

    display: block;

    border:
        1px solid
        rgba(255,255,255,.28);
}

.am-chi-event-card__layers span:first-child {
    right: 8%;
    bottom: 9%;

    width: 51%;
    height: 48%;

    transform:
        rotate(1.5deg);
}

.am-chi-event-card__layers span:last-child {
    right: 14%;
    bottom: 15%;

    width: 45%;
    height: 40%;

    transform:
        rotate(-1deg);
}


/* =====================================================
   PLACEHOLDER
===================================================== */

.am-chi-event-card__placeholder {
    position: relative;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            145deg,
            rgba(127,167,160,.16),
            rgba(247,246,243,.72)
        );
}

.am-chi-event-card__placeholder span {
    position: absolute;

    display: block;

    border:
        1px solid
        rgba(127,167,160,.3);

    background:
        rgba(252,252,250,.18);
}

.am-chi-event-card__placeholder span:nth-child(1) {
    top: 13%;
    left: 12%;

    width: 66%;
    height: 70%;

    transform:
        rotate(-2deg);
}

.am-chi-event-card__placeholder span:nth-child(2) {
    top: 20%;
    left: 21%;

    width: 62%;
    height: 63%;

    transform:
        rotate(1.5deg);
}

.am-chi-event-card__placeholder span:nth-child(3) {
    top: 30%;
    left: 33%;

    width: 51%;
    height: 51%;

    border-color:
        rgba(27,138,138,.26);
}


/* =====================================================
   DATE
===================================================== */

.am-chi-event-card__date {
    position: absolute;

    bottom: 20px;
    left: 20px;

    z-index: 4;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 76px;
    min-height: 90px;

    padding: 10px;

    border:
        1px solid
        rgba(255,255,255,.46);

    background:
        rgba(252,252,250,.88);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}

.am-chi-event-card__date strong {
    color:
        var(--am-chi-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 35px;
    font-weight: 500;
    line-height: .85;
}

.am-chi-event-card__date span {
    margin-top:
        8px;

    color:
        var(--am-chi-primary);

    font-size: 9px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: .15em;

    text-transform: uppercase;
}

.am-chi-event-card__date small {
    margin-top:
        6px;

    color:
        var(--am-chi-text-secondary);

    font-size: 8px;

    letter-spacing:
        .13em;
}


/* =====================================================
   EVENT NUMBER
===================================================== */

.am-chi-event-card__number {
    position: absolute;

    top: 21px;
    right: 22px;

    z-index: 4;

    color:
        rgba(255,255,255,.82);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size: 25px;
    line-height: 1;
}


/* =====================================================
   STATUS
===================================================== */

.am-chi-event-card__status {
    position: absolute;

    top: 21px;
    left: 22px;

    z-index: 5;

    padding:
        8px
        12px;

    border:
        1px solid
        rgba(255,255,255,.60);

    background:
        rgba(252,252,250,.88);

    color:
        var(--am-chi-primary);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    font-size:
        8px;

    font-weight:
        700;

    letter-spacing:
        .14em;

    text-transform:
        uppercase;
}

.am-chi-event-card__status--full {
    background:
        rgba(34,34,34,.78);

    border-color:
        rgba(255,255,255,.30);

    color:
        #fff;
}


/* =====================================================
   CARD CONTENT
===================================================== */

.am-chi-event-card__content {
    display: flex;
    flex: 1;

    flex-direction: column;

    min-width: 0;

    padding:
        clamp(29px,3vw,39px)
        5px
        0;
}

.am-chi-event-card__meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    margin-bottom:
        22px;

    padding-bottom:
        15px;

    border-bottom:
        1px solid
        var(--am-chi-border);
}

.am-chi-event-card__meta span,
.am-chi-event-card__meta time {
    font-size: 8px;
    font-weight: 700;
    line-height: 1.4;

    letter-spacing:
        .14em;

    text-transform:
        uppercase;
}

.am-chi-event-card__meta span {
    color:
        var(--am-chi-primary);
}

.am-chi-event-card__meta time {
    color:
        var(--am-chi-text-secondary);

    text-align:
        right;
}

.am-chi-event-card__title {
    margin: 0;
}

.am-chi-event-card__title a {
    color:
        var(--am-chi-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(34px,3.1vw,47px);

    font-weight: 400;
    line-height: 1.04;

    letter-spacing:
        -.035em;

    text-decoration:
        none;

    overflow-wrap:
        break-word;

    transition:
        color .35s ease;
}

.am-chi-event-card__description {
    margin:
        22px 0 0;

    color:
        var(--am-chi-text-secondary);

    font-size:
        clamp(13px,1vw,15px);

    line-height:
        1.82;
}


/* =====================================================
   DETAILS
===================================================== */

.am-chi-event-card__details {
    display: grid;

    gap: 0;

    margin-top:
        31px;

    border-top:
        1px solid
        var(--am-chi-border);
}

.am-chi-event-card__detail {
    display: grid;

    grid-template-columns:
        105px
        minmax(0,1fr);

    gap: 18px;

    padding:
        15px
        0;

    border-bottom:
        1px solid
        var(--am-chi-border);
}

.am-chi-event-card__detail-label {
    color:
        var(--am-chi-accent);

    font-size: 9px;
    font-weight: 700;

    letter-spacing:
        .15em;

    text-transform:
        uppercase;
}

.am-chi-event-card__detail-value {
    min-width: 0;

    color:
        var(--am-chi-text);

    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;

    overflow-wrap:
        break-word;
}

.am-chi-event-card__detail--last
.am-chi-event-card__detail-value {
    color:
        var(--am-chi-primary);
}

.am-chi-event-card__detail--full
.am-chi-event-card__detail-value {
    color:
        var(--am-chi-text-secondary);
}


/* =====================================================
   LINK
===================================================== */

.am-chi-event-card__link {
    display: inline-flex;

    align-items: center;

    gap: 15px;

    align-self:
        flex-start;

    margin-top:
        auto;

    padding-top:
        31px;

    color:
        var(--am-chi-primary);

    font-size: 10px;
    font-weight: 700;

    letter-spacing:
        .16em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    transition:
        gap .3s ease,
        color .3s ease;
}

.am-chi-event-card__link svg,
.am-chi-events__empty-link svg,
.am-chi-events__footer-link svg {
    width: 22px;
    height: 22px;

    fill: none;

    stroke:
        currentColor;

    stroke-width:
        1.5;

    stroke-linecap:
        round;

    stroke-linejoin:
        round;

    transition:
        transform .3s ease;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.am-chi-events__empty {
    display: grid;

    grid-template-columns:
        minmax(310px,.58fr)
        minmax(0,1fr);

    gap:
        clamp(65px,9vw,145px);

    align-items:
        center;

    padding:
        clamp(70px,8vw,110px)
        0;

    border-top:
        1px solid
        var(--am-chi-border);

    border-bottom:
        1px solid
        var(--am-chi-border);
}

.am-chi-events__empty-layers {
    position: relative;

    width:
        min(100%,390px);

    height:
        260px;
}

.am-chi-events__empty-layers span {
    position: absolute;

    top: 50%;

    display: block;

    width: 62%;
    height: 70%;

    border:
        1px solid
        var(--am-chi-border-accent);

    background:
        rgba(247,246,243,.35);
}

.am-chi-events__empty-layers span:nth-child(1) {
    left: 0;

    opacity: .36;

    transform:
        translateY(-50%)
        rotate(-2deg);
}

.am-chi-events__empty-layers span:nth-child(2) {
    left: 21%;

    opacity: .55;

    transform:
        translateY(-50%)
        rotate(1.2deg);
}

.am-chi-events__empty-layers span:nth-child(3) {
    right: 0;

    border-color:
        rgba(27,138,138,.25);

    background:
        rgba(252,252,250,.84);

    transform:
        translateY(-50%);
}

.am-chi-events__empty-content {
    width:
        min(100%,680px);

    min-width: 0;
}

.am-chi-events__empty-label {
    display: block;

    margin-bottom:
        24px;

    color:
        var(--am-chi-accent);

    font-size: 10px;
    font-weight: 700;

    letter-spacing:
        .19em;

    text-transform:
        uppercase;
}

.am-chi-events__empty-content h3 {
    margin: 0;

    color:
        var(--am-chi-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(41px,4.7vw,68px);

    font-weight: 400;
    line-height: 1.02;

    letter-spacing:
        -.04em;

    overflow-wrap:
        break-word;
}

.am-chi-events__empty-content h3 em {
    display: block;

    margin-top:
        7px;

    color:
        var(--am-chi-accent);

    font-weight: 400;
    font-style: italic;
}

.am-chi-events__empty-content p {
    width:
        min(100%,560px);

    margin:
        28px 0 0;

    color:
        var(--am-chi-text-secondary);

    font-size: 15px;
    line-height: 1.85;
}

.am-chi-events__empty-link,
.am-chi-events__footer-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    min-height:
        54px;

    padding:
        16px
        26px;

    border-radius:
        999px;

    background:
        var(--am-chi-primary);

    color:
        #ffffff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing:
        .16em;

    text-decoration:
        none;

    text-transform:
        uppercase;

    transition:
        background-color .3s ease,
        transform .3s ease;
}

.am-chi-events__empty-link {
    margin-top:
        34px;
}


/* =====================================================
   FOOTER
===================================================== */

.am-chi-events__footer {
    display: grid;

    grid-template-columns:
        12px
        minmax(0,900px)
        auto;

    gap:
        clamp(25px,4vw,55px);

    align-items:
        center;

    margin-top:
        clamp(95px,10vw,155px);

    padding-top:
        clamp(60px,7vw,95px);

    border-top:
        1px solid
        var(--am-chi-border);
}

.am-chi-events__footer-mark {
    display: block;

    width: 11px;
    height: 11px;

    background:
        var(--am-chi-primary);

    box-shadow:
        0 0 0 8px
        rgba(27,138,138,.08);
}

.am-chi-events__footer-copy {
    max-width:
        850px;

    min-width: 0;
}

.am-chi-events__footer-label {
    display: block;

    margin-bottom:
        15px;

    color:
        var(--am-chi-accent);

    font-size: 9px;
    font-weight: 700;

    letter-spacing:
        .18em;

    text-transform:
        uppercase;
}

.am-chi-events__footer-copy p {
    margin: 0;

    color:
        var(--am-chi-text);

    font-family:
        "Cormorant Garamond",
        Georgia,
        serif;

    font-size:
        clamp(30px,3.5vw,52px);

    font-weight: 400;
    line-height: 1.2;

    letter-spacing:
        -.035em;
}

.am-chi-events__footer-link {
    white-space:
        nowrap;
}


/* =====================================================
   HOVER
===================================================== */

@media (hover:hover) {

    .am-chi-event-card:hover
    .am-chi-event-card__image img {
        filter:
            saturate(.9)
            contrast(.98)
            brightness(1.02);

        transform:
            scale(1.045);
    }

    .am-chi-event-card__title a:hover {
        color:
            var(--am-chi-primary);
    }

    .am-chi-event-card__link:hover {
        gap:
            22px;

        color:
            var(--am-chi-primary-hover);
    }

    .am-chi-event-card__link:hover svg,
    .am-chi-events__empty-link:hover svg,
    .am-chi-events__footer-link:hover svg {
        transform:
            translateX(4px);
    }

    .am-chi-events__empty-link:hover,
    .am-chi-events__footer-link:hover {
        background:
            var(--am-chi-primary-hover);

        transform:
            translateY(-2px);
    }
}


/* =====================================================
   <= 1280
===================================================== */

@media(max-width:1280px) {

    .am-chi-events {
        padding-right:
            48px;

        padding-left:
            48px;
    }

    .am-chi-events__grid {
        gap:
            30px;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media(max-width:1024px) {

    .am-chi-events {
        padding:
            115px
            38px
            125px;
    }

    .am-chi-events__header {
        grid-template-columns:
            155px
            minmax(0,1fr);

        gap:
            45px;

        margin-bottom:
            95px;
    }

    .am-chi-events__grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap:
            70px
            32px;
    }

    .am-chi-events__empty {
        grid-template-columns:
            250px
            minmax(0,1fr);

        gap:
            65px;
    }

    .am-chi-events__empty-layers {
        height:
            190px;
    }

    .am-chi-events__footer {
        grid-template-columns:
            12px
            minmax(0,1fr);
    }

    .am-chi-events__footer-link {
        grid-column:
            2;

        justify-self:
            start;

        margin-top:
            8px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media(max-width:767px) {

    .am-chi-events {
        padding:
            88px
            20px
            95px;
    }

    .am-chi-events__background-word {
        right:
            -45%;

        bottom:
            2%;

        font-size:
            100px;
    }

    .am-chi-events__background-line {
        left:
            20px;

        opacity:
            .65;
    }

    .am-chi-events__header {
        display:
            block;

        margin-bottom:
            67px;
    }

    .am-chi-events__header-side {
        padding-top:
            0;
    }

    .am-chi-events__eyebrow {
        font-size:
            9px;
    }

    .am-chi-events__index {
        font-size:
            21px;
    }

    .am-chi-events__eyebrow-line {
        width:
            31px;
    }

    .am-chi-events__side-note {
        display:
            none;
    }

    .am-chi-events__header-content {
        margin-top:
            25px;
    }

    .am-chi-events__title {
        font-size:
            clamp(47px,13.5vw,67px);

        line-height:
            .99;
    }

    .am-chi-events__intro {
        margin-top:
            29px;

        font-size:
            15px;

        line-height:
            1.82;
    }

    .am-chi-events__grid {
        grid-template-columns:
            minmax(0,1fr);

        gap:
            72px;
    }

    .am-chi-event-card__date {
        bottom:
            17px;

        left:
            17px;

        width:
            70px;

        min-height:
            85px;
    }

    .am-chi-event-card__number {
        top:
            17px;

        right:
            17px;

        font-size:
            22px;
    }

    .am-chi-event-card__status {
        top:
            17px;

        left:
            17px;
    }

    .am-chi-event-card__content {
        padding:
            27px
            0
            0;
    }

    .am-chi-event-card__meta {
        align-items:
            flex-start;
    }

    .am-chi-event-card__title a {
        font-size:
            clamp(36px,10.5vw,47px);
    }

    .am-chi-event-card__description {
        font-size:
            14px;
    }

    .am-chi-event-card__detail {
        grid-template-columns:
            92px
            minmax(0,1fr);
    }

    .am-chi-events__empty {
        display:
            block;

        padding:
            65px
            0;
    }

    .am-chi-events__empty-layers {
        width:
            min(100%,310px);

        height:
            165px;

        margin-bottom:
            52px;
    }

    .am-chi-events__empty-content h3 {
        font-size:
            clamp(39px,11vw,52px);
    }

    .am-chi-events__empty-content p {
        font-size:
            14px;

        line-height:
            1.82;
    }

    .am-chi-events__empty-link {
        width:
            100%;
    }

    .am-chi-events__footer {
        grid-template-columns:
            10px
            minmax(0,1fr);

        gap:
            22px;

        margin-top:
            83px;

        padding-top:
            58px;
    }

    .am-chi-events__footer-mark {
        width:
            9px;

        height:
            9px;

        box-shadow:
            0 0 0 6px
            rgba(27,138,138,.08);
    }

    .am-chi-events__footer-copy p {
        font-size:
            clamp(29px,8.5vw,39px);

        line-height:
            1.25;
    }

    .am-chi-events__footer-link {
        grid-column:
            1 / -1;

        width:
            100%;

        margin-top:
            19px;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media(max-width:390px) {

    .am-chi-events {
        padding-right:
            17px;

        padding-left:
            17px;
    }

    .am-chi-events__title {
        font-size:
            45px;
    }

    .am-chi-event-card__title a {
        font-size:
            35px;
    }

    .am-chi-event-card__detail {
        grid-template-columns:
            82px
            minmax(0,1fr);

        gap:
            13px;
    }

    .am-chi-events__footer-copy p {
        font-size:
            28px;
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media(prefers-reduced-motion:reduce) {

    .am-chi-events *,
    .am-chi-events *::before,
    .am-chi-events *::after {
        animation:
            none !important;

        transition:
            none !important;
    }
}

