.schedule-hero {
    min-height: 82vh;
    display: flex;
    color: #fff;
    background: linear-gradient(rgba(49, 24, 18, .28), rgba(49, 24, 18, .62)), url('../assets/img/cerimonia-aquarela-limpa.png') center / cover no-repeat;
}

.overlay {
    width: 100%;
    padding: clamp(120px, 13vw, 172px) max(24px, 8vw) 70px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

.date-heading > p {
    margin-bottom: clamp(2rem, 5vw, 4.5rem);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .3em;
}

.date-heading h1 {
    font-size: clamp(2.5rem, 6vw, 5.6rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .11em;
}

.timeline {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 75rem;
    min-height: 9rem;
    margin: 5rem auto 0;
}

.timeline-curve {
    position: absolute;
    z-index: -1;
    top: 1.65rem;
    left: 0;
    width: 100%;
    height: 6rem;
    overflow: visible;
}

.timeline-curve path {
    fill: none;
    stroke: rgba(255, 255, 255, .88);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.timeline-event {
    display: grid;
    grid-template-rows: 2.4rem 3rem auto;
    justify-items: center;
    align-items: start;
    padding-inline: .5rem;
}

.timeline-event i {
    width: .85rem;
    height: .85rem;
    margin-top: .25rem;
    border: 2px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .08);
}

.timeline-event:nth-of-type(2) i { transform: translateY(1.05rem); }
.timeline-event:nth-of-type(3) i { transform: translateY(-.15rem); }
.timeline-event:nth-of-type(4) i { transform: translateY(1.05rem); }
.timeline-event:nth-of-type(5) i { transform: translateY(.75rem); }
.timeline-event span { max-width: 13rem; line-height: 1.4; }

.place {
    padding: clamp(80px, 10vw, 144px) max(24px, 8vw);
    display: grid;
    grid-template-columns: minmax(17rem, .65fr) minmax(36rem, 1.35fr);
    align-items: center;
    gap: clamp(48px, 5vw, 86px);
    background-color: #f7f3eb;
    background-image: linear-gradient(rgba(247, 243, 235, .16), rgba(247, 243, 235, .16)), url('../assets/img/papel-amassado.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.place > * {
    min-width: 0;
}

.script { color: var(--wine); font-family: var(--font-script); font-size: clamp(2.5rem, 4.6vw, 4.25rem); line-height: 1; }
.place h2 { margin: 2rem 0; font-size: .85rem; text-transform: uppercase; letter-spacing: .17em; }
.place address { font-size: clamp(1.15rem, 2vw, 1.55rem); font-style: normal; line-height: 1.55; }
.place-links { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.map-button,
.instagram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.3rem;
    border: 1px solid var(--wine);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: color .2s, background .2s, transform .2s;
}

.map-button { color: #fff; background: var(--wine); }
.instagram-button { color: var(--wine); background: transparent; }
.map-button:hover, .instagram-button:hover { color: #fff; background: var(--navy); border-color: var(--navy); transform: translateY(-2px); }

.map-visual {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: clamp(8px, .8vw, 13px);
    border: 1px solid rgba(75, 11, 32, .3);
    background: #f7f3eb;
    box-shadow: 0 28px 60px rgba(31, 35, 47, .15);
    width: 100%;
    max-width: 100%;
}

.map-visual::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: clamp(14px, 1.2vw, 20px);
    border: 1px solid rgba(255, 255, 255, .65);
    pointer-events: none;
}

.map-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center;
    transition: transform .25s ease;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.map-visual.is-interacting .map-image { transition: none; }

.map-zoom-hint,
.map-reset { display: none; }

.map-visual figcaption {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: clamp(18px, 1.8vw, 28px);
    min-width: min(82%, 31rem);
    padding: .75rem 1.4rem;
    border: 1px solid rgba(75, 11, 32, .28);
    color: var(--wine);
    background: rgba(247, 243, 235, .9);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .66rem;
    box-shadow: 0 8px 24px rgba(31, 35, 47, .12);
    transform: translateX(-50%);
    backdrop-filter: blur(4px);
}

.map-visual figcaption span {
    display: block;
    font-family: var(--font-script);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    line-height: 1;
    text-transform: none;
    letter-spacing: 0;
}

.notice {
    padding: clamp(70px, 8vw, 110px) max(24px, 5vw);
    background: linear-gradient(rgba(247, 243, 235, .72), rgba(247, 243, 235, .72)), url('../assets/img/textura-caligrafia.png') center / 900px auto repeat;
    border-block: 1px solid rgba(75, 11, 32, .12);
}

.notice-box {
    position: relative;
    max-width: 68rem;
    margin: auto;
    padding: clamp(54px, 6vw, 76px) clamp(24px, 6vw, 80px);
    border: 2px solid rgba(91, 57, 39, .9);
    text-align: center;
    background: rgba(247, 243, 235, .54);
}

.notice-icon {
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 3px solid var(--brown);
    border-radius: 50%;
    color: var(--brown);
    background: #f7f3eb;
    font-size: 2.4rem;
    font-weight: 700;
    transform: translate(-50%, -50%);
}

.notice-box p { margin: auto; font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.7; }

@media (max-width: 900px) {
    .place { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .place-content { width: 100%; min-width: 0; }
    .place-links { justify-content: center; }
    .map-visual { width: min(100%, 48rem); margin: auto; }
}

@media (max-width: 700px) {
    .site-header {
        width: 100%;
        max-width: 100vw;
        padding-inline: 20px;
    }
    .site-header .menu-button {
        position: relative;
        inset: auto;
        flex: 0 0 45px;
        margin-left: auto;
        transform: none;
    }
    .schedule-hero { min-height: 780px; }
    .overlay { padding: 105px 20px 48px; }
    .date-heading h1 span { display: none; }
    .date-heading h1 { line-height: 1.35; }
    .timeline { grid-template-columns: 1fr; min-height: 0; margin-top: 3rem; text-align: left; }
    .timeline-curve { display: none; }
    .timeline-event { position: relative; display: grid; grid-template-columns: 70px 30px 1fr; grid-template-rows: 66px; align-items: center; justify-items: start; padding: 0; }
    .timeline-event::before { content: ""; position: absolute; top: 0; bottom: 0; left: 84px; border-left: 1px solid rgba(255, 255, 255, .82); }
    .timeline-event:first-of-type::before { top: 50%; }
    .timeline-event:last-of-type::before { bottom: 50%; }
    .timeline-event strong { grid-column: 1; }
    .timeline-event i, .timeline-event:nth-of-type(n) i { z-index: 1; grid-column: 2; margin: 0; transform: none; }
    .timeline-event span { grid-column: 3; }
    .place {
        padding: 72px 18px 80px;
        gap: 42px;
    }
    .script {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        font-size: clamp(2.35rem, 11.5vw, 3.1rem);
        line-height: 1.06;
        overflow-wrap: normal;
    }
    .place h2 { margin: 1.6rem 0; }
    .place address {
        font-size: clamp(1rem, 4.5vw, 1.15rem);
        overflow-wrap: break-word;
    }
    .place-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .map-button,
    .instagram-button {
        width: min(100%, 19rem);
        min-height: 52px;
        padding: .9rem 1rem;
        white-space: normal;
    }
    .map-visual {
        width: 100%;
        max-width: 100%;
        padding: 6px;
        touch-action: pan-y;
        overscroll-behavior: contain;
    }
    .map-visual.is-zoomed {
        touch-action: none;
        cursor: grab;
    }
    .map-visual.is-interacting { cursor: grabbing; }
    .map-visual::before { inset: 11px; }
    .map-image {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }
    .map-visual figcaption {
        width: calc(100% - 32px);
        min-width: 0;
        max-width: calc(100% - 32px);
        bottom: 14px;
        padding: .6rem .75rem;
        letter-spacing: .08em;
        font-size: .56rem;
    }
    .map-visual figcaption span {
        font-size: clamp(1rem, 5.2vw, 1.25rem);
        line-height: 1.08;
    }
    .map-zoom-hint {
        position: absolute;
        z-index: 4;
        top: 16px;
        left: 50%;
        display: block;
        width: max-content;
        max-width: calc(100% - 32px);
        padding: .42rem .72rem;
        border: 1px solid rgba(75, 11, 32, .16);
        border-radius: 999px;
        color: var(--wine-dark);
        background: rgba(247, 243, 235, .88);
        font-size: .65rem;
        letter-spacing: .06em;
        box-shadow: 0 5px 16px rgba(31, 35, 47, .1);
        transform: translateX(-50%);
        transition: opacity .2s ease;
        pointer-events: none;
        backdrop-filter: blur(4px);
    }
    .map-visual.is-zoomed .map-zoom-hint {
        opacity: 0;
    }
    .map-reset:not([hidden]) {
        position: absolute;
        z-index: 5;
        top: 14px;
        right: 14px;
        display: block;
        padding: .48rem .7rem;
        border: 1px solid rgba(75, 11, 32, .3);
        border-radius: 999px;
        color: var(--wine-dark);
        background: rgba(247, 243, 235, .94);
        font: 600 .62rem/1 var(--font-serif);
        text-transform: uppercase;
        letter-spacing: .07em;
        cursor: pointer;
        box-shadow: 0 5px 16px rgba(31, 35, 47, .12);
    }
    .notice { background-size: 640px auto; }
    .notice-box { padding: 52px 22px 36px; }
}

@media (max-width: 390px) {
    .overlay { padding-inline: 16px; }
    .timeline-event { grid-template-columns: 62px 26px minmax(0, 1fr); }
    .timeline-event::before { left: 74px; }
    .timeline-event span { min-width: 0; }
    .script { font-size: clamp(2.2rem, 11.5vw, 2.8rem); }
    .place { padding-inline: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .map-button, .instagram-button { transition: none; }
    .map-image, .map-zoom-hint { transition: none; }
}
