/* ============================================
   SITE DE CASAMENTO — LUCAS & LETÍCIA
   Mobile-first · Scroll Cinematográfico
============================================ */

/* ---- RESET ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ============================================
   PRELOADER
============================================ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-linen, #F0EBE3);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.preloader-logo {
    width: 360px;
    max-width: 70vw;
    height: auto;
    animation: preloaderPulse 2s ease-in-out infinite;
}

@keyframes preloaderPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* Esconde o conteúdo do site até o preloader sair */
body.is-loading .envelope-hero-wrapper,
body.is-loading .site-main,
body.is-loading .floating-shortcuts {
    opacity: 0;
}

body.is-loaded .envelope-hero-wrapper,
body.is-loaded .site-main,
body.is-loaded .floating-shortcuts {
    opacity: 1;
    transition: opacity 0.4s ease 0.1s;
}

/* ---- TOKENS ---- */
:root {
    --color-terracota: #BC6B4C;
    --color-terracota-light: #D98E6F;
    --color-terracota-dark: #9A5740;
    --color-sage: #6E7A5A;
    --color-cream: #F7F3EC;
    --color-cream-dark: #EDE7DC;
    --color-linen: #F0EBE3;
    --color-charcoal: #2A2521;
    --color-charcoal-soft: #4A3F38;
    --color-gold: #C9A87C;
    --color-paper: #FDFAF5;
    --color-envelope: #E8DFD2;
    --color-envelope-inner: #F5F0E8;
    --color-seal: #BC6B4C;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --font-handwriting: 'Dancing Script', cursive;

    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    --type-scene-title-mobile: clamp(2.18rem, 9.8vw, 3.35rem);
    --type-scene-title-desktop: clamp(2.9rem, 4.7vw, 4.35rem);
    --type-title-mobile: var(--type-scene-title-mobile);
    --type-title-desktop: var(--type-scene-title-desktop);
    --type-body-mobile: clamp(0.98rem, 3.8vw, 1.08rem);
    --type-body-desktop: clamp(1.05rem, 1.25vw, 1.18rem);
    --type-kicker: clamp(0.68rem, 1.8vw, 0.82rem);
    --type-tracking-title: 0.025em;
    --type-tracking-kicker: 0.22em;
}

html { 
    scroll-behavior: auto; 
    background-color: var(--color-linen);
    /* Paper texture base — visible behind any transparent sections */
    background-image:
        /* Thick paper grain (SVG filter for cardstock/cartolina feel) */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

body {
    font-family: var(--font-body);
    background-color: var(--color-linen); /* Tom exato do convite (vídeo) */
    color: var(--color-charcoal);
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-font-smoothing: antialiased;
    /* Paper texture — same as html for seamless feel */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

body > * {
    position: relative;
    z-index: 1;
}

.site-main {
    position: relative;
    z-index: 5;
    background-color: var(--color-linen);
    /* Paper texture on main content area */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

/* Camadas animadas pelo GSAP: evita flicker durante scrub em mobile/Safari. */
.envelope-clip,
.envelope-video,
.envelope-overlay,
.hero-layer,
.hero-title,
.hero-subtitle,
.polaroid,
.apresentacao-card,
.apresentacao-portrait,
.apresentacao-img-wrapper,
.apresentacao-title,
.apresentacao-text,
.apresentacao-caption,
.intro-carnaval-title,
.timeline-item,
.timeline-content,
.timeline-photo,
.timeline-phrase,
.transition-bg,
.transition-line,
.date-lockup,
.time-box,
.location-card,
.dresscode-image-col,
.dresscode-header,
.dresscode-block,
.section-presentes .presentes-header > *,
.section-presentes .presentes-action,
.section-rsvp .rsvp-header > *,
.section-rsvp .rsvp-action,
.section-final .final-container > *,
.floating-shortcuts {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-title,
.hero-subtitle,
.polaroid,
.apresentacao-card,
.apresentacao-portrait,
.apresentacao-title,
.apresentacao-text,
.apresentacao-caption,
.intro-carnaval-title,
.timeline-item,
.timeline-content,
.timeline-photo,
.timeline-phrase,
.transition-bg,
.transition-line,
.date-lockup,
.time-box,
.location-card,
.dresscode-image-col,
.dresscode-header,
.dresscode-block,
.floating-shortcuts {
    will-change: transform, opacity;
}

/* ============================================
   PRE-PAGE: ENVELOPE + HERO WRAPPER
   Tudo é pinado junto pelo GSAP. São 3 camadas absolutas:
   Layer 1: Vídeo (z-index: 1)
   Layer 2: Overlay "Letícia & Lucas" (z-index: 2)
   Layer 3: Hero "Nosso grande dia" (z-index: 3)
============================================ */
.envelope-hero-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* Corta o zoom do vídeo */
    background-color: transparent;
}

/* --- Layer 1: Video --- */
.envelope-clip {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.envelope-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.35); /* Zoom para cortar marca d'água */
}

/* --- Layer 2: Overlay "Letícia & Lucas" --- */
.envelope-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 18vh; /* Equidistante entre topo e selo */
    gap: 1rem;
    z-index: 2;
    pointer-events: none;
}

.envelope-subtitle {
    font-family: var(--font-body);
    font-size: var(--type-kicker);
    letter-spacing: var(--type-tracking-kicker);
    text-transform: uppercase;
    color: var(--color-terracota-dark);
    font-weight: 700;
    margin-bottom: -0.5rem;
    margin-top: 2rem;
}

.envelope-title {
    font-family: var(--font-display);
    font-size: var(--type-scene-title-mobile);
    color: var(--color-terracota-dark);
    font-weight: 400;
    text-align: center;
    line-height: 1;
    letter-spacing: var(--type-tracking-title);
    margin: 0;
}

.envelope-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    opacity: 0.5;
}

.envelope-scroll span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracota-dark);
}

.envelope-scroll-arrow {
    width: 1px;
    height: 35px;
    background-color: var(--color-terracota-dark);
    position: relative;
    opacity: 0.8;
    animation: scrollLineBob 2s ease-in-out infinite;
}

.envelope-scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--color-terracota-dark);
    border-bottom: 1px solid var(--color-terracota-dark);
}

.hero-layer {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 3;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0; /* Começa oculto (animado via GSAP) para não cobrir o vídeo prematuramente */
    pointer-events: none;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url('../assets/bg/a2-leticia.jpg'); /* Se comunica com a seção Apresentações (Grupo 1) */
    background-size: cover;
    background-position: center 42%;
    opacity: 0.25;
    filter: sepia(0.12) saturate(0.9) contrast(1.1);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 150px, black calc(100% - 150px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0px, black 150px, black calc(100% - 150px), transparent 100%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(190, 160, 120, 0.18) 100%),
        linear-gradient(90deg, rgba(240,235,227,0.96) 0%, rgba(253,250,245,0.88) 55%, rgba(232,223,210,0.7) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.15'/%3E%3C/svg%3E");
}
.hero-bg::before {
    background-attachment: fixed;
}

.hero-layer.visible {
    pointer-events: auto;
}

/* Header dentro do hero layer */
.site-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    z-index: 10;
}

.header-logo {
    height: 150px;
    width: auto;
    transition: height 0.3s var(--ease-smooth);
}

/* ============================================
   SECTION: HERO (O Convite)
============================================ */
.section-hero {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem; /* Removido o padding-top de 160px para centralizar de verdade no celular */
    overflow: hidden;
}

.hero-content {
    position: relative;
    max-width: 600px; /* Reduced to prevent overlapping with polaroids on desktop */
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-display);
    /* Frase longa: escala própria, menor que os títulos de cena,
       para caber bem entre as polaroides (antes era style inline no HTML) */
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    line-height: 1.04;
    font-weight: 400;
    color: var(--color-terracota-dark);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    letter-spacing: var(--type-tracking-title);
    opacity: 0;
}

.hero-title em {
    font-style: italic;
    color: var(--color-charcoal);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: var(--type-body-mobile);
    line-height: 1.64;
    color: var(--color-charcoal-soft);
    max-width: 480px;
    margin: 0 auto 1.5rem;
    font-weight: 300;
    opacity: 0; /* Hidden initially for GSAP */
}

.text-emphasis {
    color: var(--color-charcoal);
    font-family: var(--font-display);
    font-weight: 500;
    font-style: italic;
}

/* ---- HERO COLLAGE (Mobile-first) ---- */
.hero-collage {
    position: relative;
    width: 100%;
    height: clamp(200px, 32vh, 350px); /* Cresce no desktop para acomodar as fotos gigantes */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-polaroid {
    position: absolute;
    background: white;
    padding: 9px 9px 30px 9px;
    box-shadow: 0 14px 34px rgba(42,37,33,0.13);
    width: clamp(155px, 42vw, 280px); /* Menor no mobile, muito maior no desktop */
    transition: all 0.3s var(--ease-smooth);
    opacity: 0;
    border-radius: 3px;
}

.polaroid-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 2px;
}

/* Mobile overlapping collage positions */
.polaroid-left {
    top: 5px;
    left: calc(50% - clamp(80px, 22vw, 150px)); /* Afasta mais no desktop */
    transform: rotate(-6deg);
    z-index: 2;
}

.polaroid-left:hover {
    transform: rotate(-4deg) scale(1.02);
}

.polaroid-right {
    top: 25px;
    left: calc(50% + clamp(5px, 2vw, 20px));
    transform: rotate(6deg);
    z-index: 1;
}

.polaroid-right .polaroid-handwriting {
    bottom: -8px;
    right: 10px;
    transform: rotate(8deg);
}

/* ---- SCROLL PROMPT (Mobile-first) ---- */
.hero-scroll-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    z-index: 5;
    opacity: 0; /* Hidden initially for GSAP */
}

.hero-scroll-prompt span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracota);
}

.scroll-arrow {
    width: 1px;
    height: 30px;
    background-color: var(--color-terracota);
    position: relative;
    opacity: 0.8;
    animation: scrollLineBob 2s ease-in-out infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--color-terracota);
    border-bottom: 1px solid var(--color-terracota);
}

@keyframes scrollLineBob {
    0%, 100% { height: 25px; transform: translateY(0); opacity: 0.6; }
    50% { height: 35px; transform: translateY(5px); opacity: 1; }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS (Desktop - min-width: 1200px)
============================================ */
@media (min-width: 1200px) {
    .site-header {
        padding: 2vh 3vw;
    }

    .header-logo {
        height: min(15vh, 140px); /* Limit logo size by viewport height */
    }

    .section-hero {
        padding: min(18vh, 180px) 5vw 2vh; /* Use viewport height for padding */
        min-height: 100vh;
        height: 100vh; /* Force it to fit in exactly one screen */
    }

    .hero-content {
        position: static;
        max-width: 600px;
    }

    .hero-title {
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: var(--type-body-desktop);
        margin-bottom: 1.5rem; /* Reduced to keep it tight */
    }

    /* On desktop, remove the collage constraints and float the polaroids to the sides */
    .hero-collage {
        position: static;
        width: auto;
        height: auto;
        margin: 0;
        display: block;
    }

    .hero-polaroid {
        width: clamp(180px, 18vw, 240px); /* Responsive to screen width, slightly smaller to avoid vertical overflow */
        padding: 8px 8px 25px 8px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    .polaroid-handwriting {
        font-size: clamp(1.3rem, 2vw, 1.65rem);
        width: 120%;
    }

    .polaroid-left {
        top: 50%;
        left: 2vw;
        transform: translateY(-50%) rotate(-8deg);
        z-index: 1;
    }

    .polaroid-left .polaroid-handwriting {
        top: -28px;
        left: 15px;
        transform: rotate(-10deg);
    }

    .polaroid-right {
        top: 42%;
        right: 2vw;
        transform: translateY(-50%) rotate(5deg);
        z-index: 1;
    }

    .polaroid-right .polaroid-handwriting {
        bottom: -8px;
        right: 15px;
        transform: rotate(8deg);
    }
}

/* Media Query for smaller screens */
@media (max-width: 1023px) {
    .hero-collage {
        height: auto; 
        margin-top: 0.5rem;
        margin-bottom: 2rem;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 12px; /* Espaço harmônico entre as fotos */
    }
    
    .hero-polaroid {
        position: static; /* Retira o absolute para não sobreporem */
        width: clamp(135px, 42vw, 150px); /* Tamanho responsivo para caber lado a lado */
    }

    .polaroid-left, .polaroid-right {
        left: auto;
        right: auto;
        top: auto;
    }

    .header-logo {
        height: 100px; /* Logo menor para respirar melhor */
    }

    .header-left, .header-right {
        display: none; /* Hide auxiliary header text on mobile */
    }
}

/* ---- SCROLL CUE ---- */
.scroll-cue {
    position: absolute;
    bottom: clamp(1.5rem, 4vw, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    z-index: 20;
}

.scroll-cue span {
    font-family: var(--font-handwriting);
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: var(--color-terracota-light);
    opacity: 0.7;
}

.scroll-cue .arrow {
    width: 14px;
    height: 14px;
    border-right: 1.5px solid var(--color-terracota-light);
    border-bottom: 1.5px solid var(--color-terracota-light);
    transform: rotate(45deg);
    opacity: 0.5;
    animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: rotate(45deg) translate(0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(3px, 3px); opacity: 0.8; }
}



/* ============================================
   SCROLL PROGRESS DOTS
============================================ */
.scroll-progress {
    position: fixed;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1000;
}

.progress-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-terracota);
    opacity: 0.15;
    transition: all 0.4s ease;
}

.progress-dot.active {
    opacity: 1;
    transform: scale(1.6);
    box-shadow: 0 0 6px rgba(188, 107, 76, 0.4);
}

/* ============================================
   RESPONSIVE — TABLET & DESKTOP
============================================ */
@media (min-width: 1024px) {
    /* Hero Section Desktop - Imagens nas laterais */
    .hero-collage {
        position: absolute;
        top: 0;
        left: 50%;
        width: 100vw;
        height: 100vh;
        transform: translateX(-50%);
        pointer-events: none;
        margin: 0;
    }

    .hero-polaroid {
        pointer-events: auto; /* Mantém interatividade no hover */
    }

    .polaroid-left {
        top: calc(50% - 180px); /* Usando calc ao invés de translateY para evitar conflitos com a animação GSAP */
        left: clamp(5%, 10vw, 15%);
        transform: rotate(-8deg);
    }

    .polaroid-left:hover {
        transform: rotate(-4deg) scale(1.05);
    }

    .polaroid-right {
        top: calc(50% - 180px);
        left: auto;
        right: clamp(5%, 10vw, 15%);
        transform: rotate(8deg);
    }

    .polaroid-right:hover {
        transform: rotate(4deg) scale(1.05);
    }
    
    .hero-title {
        margin-top: 0;
    }

    .envelope {
        width: min(50vw, 420px);
    }

    .envelope-seal {
        width: 52px;
        height: 52px;
        bottom: calc(50% - 26px);
    }

    .seal-text { font-size: 0.7rem; }

    .abertura2-layout {
        flex-direction: row;
        max-width: 900px;
        gap: 3rem;
    }

    .polaroids-row {
        flex-direction: column;
        gap: 0;
    }

    .polaroid:nth-child(2) {
        margin-left: 0;
        margin-top: -1rem;
    }

    .bio-block { text-align: left; }

    .scroll-progress {
        right: 1.5rem;
        gap: 0.8rem;
    }

    .progress-dot {
        width: 8px;
        height: 8px;
    }
}

/* ============================================
   RESPONSIVE — DESKTOP
============================================ */
@media (min-width: 1200px) {
    .envelope {
        width: min(30vw, 440px);
    }

    .abertura2-layout {
        max-width: 1000px;
    }
}

/* ============================================
   SECTION: APRESENTAÇÕES (STORYSCROLL)
============================================ */
.section-apresentacoes {
    width: 100%;
    min-height: 100vh;
    padding: clamp(2rem, 5vh, 4rem) 0;
    display: flex;
    flex-direction: column;
    background-color: transparent;
    position: relative;
}

.apresentacao-card {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 7vh, 4.5rem);
    padding: clamp(4rem, 8vh, 6rem) 1.35rem;
    z-index: 2;
    background: transparent;
}

.apresentacao-portrait {
    width: min(82vw, 390px);
    aspect-ratio: 0.78;
    position: relative;
    isolation: isolate;
}

.apresentacao-portrait::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 12%;
    width: 1px;
    height: 68%;
    background: var(--color-terracota-dark);
    opacity: 0.38;
    transform-origin: top;
}

.apresentacao-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 26px 60px rgba(42,37,33,0.2);
    position: relative;
    z-index: 2;
    clip-path: inset(0 0 0 0 round 34px);
}

.apresentacao-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(253,250,245,0), rgba(42,37,33,0.18));
    z-index: 1;
    pointer-events: none;
}

.apresentacao-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apresentacao-caption {
    position: absolute;
    z-index: 4;
    right: 1rem;
    bottom: -1.15rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-terracota-dark);
    background: rgba(253,250,245,0.82);
    box-shadow: 0 12px 30px rgba(42,37,33,0.08);
}

.apresentacao-content {
    text-align: center;
    max-width: 520px;
}

.apresentacao-title {
    font-family: var(--font-display);
    font-size: var(--type-scene-title-mobile);
    line-height: 1.04;
    color: var(--color-terracota-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 400;
    letter-spacing: var(--type-tracking-title);
}

.apresentacao-title span {
    color: var(--color-charcoal);
    font-style: italic;
    white-space: nowrap;
}

.apresentacao-text {
    font-family: var(--font-body);
    font-size: var(--type-body-mobile);
    line-height: 1.66;
    color: var(--color-charcoal-soft);
    font-weight: 300;
}

.apresentacao-card.reverse .apresentacao-portrait::before {
    left: auto;
    right: -1rem;
}

.apresentacao-card.reverse .apresentacao-caption {
    right: auto;
    left: 1rem;
}

@media (min-width: 768px) {
    .section-apresentacoes {
        padding: 0;
    }

    .apresentacao-card {
        grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1fr);
        gap: 8vw;
        padding: clamp(5rem, 11vh, 8rem) 5vw;
    }

    .apresentacao-portrait {
        width: min(38vw, 460px);
    }

    .apresentacao-content {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .apresentacao-title {
        font-size: var(--type-scene-title-desktop);
        margin-bottom: 1.15rem;
    }

    .apresentacao-text {
        font-size: var(--type-body-desktop);
        line-height: 1.72;
    }

    .apresentacao-card.reverse {
        grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.95fr);
    }

    .apresentacao-card.reverse .apresentacao-portrait {
        grid-column: 2;
        grid-row: 1;
    }

    .apresentacao-card.reverse .apresentacao-content {
        text-align: right;
        grid-column: 1;
        grid-row: 1;
    }
}

@media (max-width: 767px) {
    .section-apresentacoes {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: clamp(1rem, 3dvh, 1.5rem) 0 clamp(1.5rem, 4dvh, 2rem);
    }

    .apresentacao-card {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: auto;
        min-height: 88dvh;
        gap: 0.75rem;
        padding: clamp(1rem, 3dvh, 1.6rem) 1.25rem clamp(1.2rem, 4dvh, 2rem);
        align-content: center;
        justify-items: center;
        overflow: visible;
    }

    .apresentacao-portrait {
        width: min(68vw, 260px);
        margin-inline: auto;
    }

    .apresentacao-portrait::before {
        left: -0.65rem;
    }

    .apresentacao-img-wrapper {
        border-radius: 24px;
        clip-path: inset(0 0 0 0 round 24px);
    }

    .apresentacao-title {
        font-size: clamp(1.95rem, 8.5vw, 2.65rem);
        margin-bottom: 0.65rem;
    }

    .apresentacao-text {
        font-size: clamp(0.92rem, 3.6vw, 1rem);
        line-height: 1.52;
    }

    .apresentacao-caption {
        bottom: -0.9rem;
        font-size: 0.62rem;
    }

    .story-pin {
        height: auto;
        min-height: 54dvh;
        overflow: visible;
    }

    .intro-carnaval-scene {
        min-height: 54dvh;
        height: auto;
        padding: clamp(2rem, 8dvh, 3.5rem) 1.25rem;
    }
}

/* ============================================
   STORY SCENES — TERCEIRA DOBRA EM DIANTE
============================================ */
.story-pin {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    position: relative;
    background-color: transparent;
}

.story-scene {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.story-scene::before {
    display: none;
}

.story-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-copy {
    position: relative;
    z-index: 5;
    color: var(--color-charcoal);
}

.story-kicker {
    font-family: var(--font-body);
    font-size: clamp(0.68rem, 1.5vw, 0.82rem);
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-terracota-dark);
    margin-bottom: 0.9rem;
}

.story-title {
    font-family: var(--font-display);
    font-size: var(--type-scene-title-mobile);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: var(--type-tracking-title);
}

@media (min-width: 768px) {
    .story-title {
        font-size: var(--type-scene-title-desktop);
    }
}

.story-title em {
    color: var(--color-terracota-dark);
    font-style: italic;
}

.story-text-stack {
    position: relative;
    width: 100%;
    min-height: 12rem;
    margin-top: clamp(1.4rem, 4vh, 2.8rem);
}

.story-text-block {
    position: absolute;
    inset: 0;
    max-width: 34rem;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.7vw, 1.28rem);
    line-height: 1.65;
    color: var(--color-charcoal-soft);
    font-weight: 300;
}

.story-text-block p + p {
    margin-top: 0.75rem;
}

/* ---- Dobra 03: Amor de Carnaval ---- */
.story-carnaval {
    background-color: transparent;
}

.carnaval-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.carnaval-photo {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 28px 65px rgba(42,37,33,0.18);
    background: var(--color-paper);
}

.carnaval-photo-main {
    width: min(58vw, 720px);
    height: min(78vh, 720px);
    left: -6vw;
    bottom: -7vh;
    border-radius: 0 36px 36px 0;
    clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}

.carnaval-photo-cross {
    width: min(45vw, 560px);
    height: min(38vh, 360px);
    right: -5vw;
    top: 12vh;
    border-radius: 28px 0 0 28px;
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.carnaval-copy {
    width: min(88vw, 620px);
    margin-left: auto;
    margin-right: clamp(1.5rem, 8vw, 8rem);
    padding-top: clamp(14vh, 18vh, 10rem);
}

.carnaval-copy .story-text-stack {
    min-height: 13.5rem;
}

/* ---- Fio do Destino ---- */
.fate-thread-container {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(60px, 7vw, 110px);
    height: 100vh;
    z-index: 50;
    pointer-events: none;
    opacity: 0;
}

.fate-thread-svg {
    width: 100%;
    height: 100%;
}

.thread-path {
    stroke-opacity: 0.45;
}

/* ---- Dobra 04: Reencontro (Timeline + Fotos) ---- */
.story-reencontro {
    background-color: transparent;
}

.reencontro-scene {
    overflow: hidden;
}

/* Linha do tempo vertical */
.reencontro-timeline {
    position: absolute;
    left: clamp(1.8rem, 5.5vw, 7rem);
    top: 12vh;
    bottom: 12vh;
    width: 1px;
    z-index: 4;
}

.timeline-track {
    position: absolute;
    top: 0; left: 0;
    width: 1px;
    height: 100%;
    background: rgba(154,87,64,0.18);
}

.timeline-progress {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 0%;
    background: var(--color-terracota-dark);
    transform-origin: top center;
}

.timeline-mark {
    position: absolute;
    left: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.timeline-mark:nth-child(2) { top: 0%; }
.timeline-mark:nth-child(3) { top: 44%; }
.timeline-mark:nth-child(4) { top: 88%; }

.timeline-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-terracota-dark);
    flex-shrink: 0;
    transform: translateX(-4px);
    opacity: 0;
    box-shadow: 0 0 0 3px rgba(154,87,64,0.16);
}

.timeline-label {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-terracota-dark);
    opacity: 0;
    white-space: nowrap;
}

/* Fotos */
.reencontro-photo {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(42,37,33,0.18);
    opacity: 0;
}

.reencontro-photo-a {
    width: min(40vw, 490px);
    height: min(56vh, 520px);
    left: clamp(4rem, 11vw, 14rem);
    top: 8vh;
    border-radius: 0 28px 28px 0;
}

.reencontro-photo-b {
    width: min(32vw, 400px);
    height: min(40vh, 360px);
    right: 5vw;
    top: 12vh;
    border-radius: 80px 24px 24px 24px;
}

.reencontro-photo-c {
    width: min(36vw, 440px);
    height: min(38vh, 340px);
    right: 14vw;
    bottom: 7vh;
    border-radius: 24px 24px 80px 24px;
}

/* Copy */
.reencontro-copy {
    position: absolute;
    left: clamp(4rem, 11vw, 14rem);
    bottom: clamp(2rem, 9vh, 5rem);
    width: min(80vw, 480px);
    z-index: 5;
}

.reencontro-text-stack {
    min-height: 10rem;
}

/* ---- Dobra 05: Lar (Full-bleed + 3D magnético) ---- */
.story-home {
    background-color: transparent;
}

.home-photo-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.home-photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.home-shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(42,37,33,0.58), rgba(42,37,33,0.18) 48%, rgba(42,37,33,0.04)),
        linear-gradient(0deg, rgba(42,37,33,0.42), rgba(42,37,33,0));
}

.home-copy {
    position: absolute;
    z-index: 3;
    left: clamp(1.5rem, 8vw, 8rem);
    bottom: clamp(2rem, 12vh, 7rem);
    width: min(86vw, 560px);
    color: var(--color-paper);
}

.home-copy .story-kicker,
.home-copy .story-title em {
    color: #F2C7A8;
}

.home-text {
    margin-top: 1.4rem;
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.4vw, 1.22rem);
    line-height: 1.7;
    font-weight: 300;
    color: rgba(253,250,245,0.88);
}

.home-note {
    margin-top: 1.2rem;
    font-family: var(--font-handwriting);
    font-size: clamp(1.7rem, 4.2vw, 3rem);
    color: #F2C7A8;
}

/* ---- Dobra 06: Pedido (Sticky + Scale-up + Flash) ---- */
.story-proposal {
    background-color: transparent;
}

.proposal-scene::before {
    background:
        radial-gradient(circle at 50% 42%, rgba(201,168,124,0.18), transparent 38%),
        linear-gradient(160deg, #2F2924, #514237);
}

.proposal-sticky-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    color: var(--color-paper);
    width: 90%;
}

.proposal-kicker {
    color: var(--color-gold) !important;
}

.proposal-sticky-title {
    font-size: clamp(3rem, 10vw, 6.5rem);
    line-height: 0.98;
}

.proposal-sticky-title em {
    color: var(--color-gold);
}

.proposal-photo-scale {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 5;
    border-radius: 28px;
    will-change: transform;
    transform-origin: center center;
    box-shadow: 0 40px 100px rgba(0,0,0,0.55);
}

.proposal-photo-detail {
    position: absolute;
    width: min(32vw, 400px);
    height: min(36vh, 340px);
    left: 6vw;
    bottom: 8vh;
    border-radius: 28px 28px 28px 120px;
    overflow: hidden;
    z-index: 6;
    box-shadow: 0 28px 80px rgba(0,0,0,0.32);
}

.proposal-flash {
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.proposal-closing {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 15;
    opacity: 0;
    pointer-events: none;
    background: rgba(47,41,36,0.72);
}

.proposal-closing-text {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4.5vw, 3.6rem);
    line-height: 1.28;
    color: var(--color-paper);
    text-align: center;
    max-width: 820px;
    font-weight: 400;
}

.proposal-closing-text em {
    color: var(--color-gold);
    font-style: italic;
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    .fate-thread-container {
        display: none;
    }

    .story-title {
        font-size: clamp(2.1rem, 12vw, 3.35rem);
    }

    .story-text-stack {
        min-height: 13rem;
    }

    .story-text-block {
        font-size: 1rem;
        line-height: 1.55;
    }

    /* Carnaval — mantido */
    .carnaval-photo-main {
        width: 72vw;
        height: 47vh;
        left: -18vw;
        bottom: -3vh;
    }

    .carnaval-photo-cross {
        width: 68vw;
        height: 24vh;
        right: -20vw;
        top: 6vh;
    }

    .carnaval-copy {
        width: auto;
        margin: 0;
        padding: 30vh 1.35rem 0;
    }

    /* Reencontro */
    .reencontro-timeline {
        left: 0.9rem;
        top: 8vh;
        bottom: 44vh;
    }

    .timeline-label {
        font-size: 0.6rem;
        letter-spacing: 0.14em;
    }

    .reencontro-photo-a {
        width: 58vw;
        height: 34vh;
        left: 2.4rem;
        top: 7vh;
        border-radius: 0 16px 16px 0;
    }

    .reencontro-photo-b {
        width: 52vw;
        height: 24vh;
        right: -6vw;
        top: 25vh;
        border-radius: 48px 14px 14px 14px;
    }

    .reencontro-photo-c {
        width: 52vw;
        height: 22vh;
        right: 4vw;
        bottom: 14vh;
        border-radius: 14px 14px 48px 14px;
    }

    .reencontro-copy {
        left: 1rem;
        right: 1rem;
        bottom: 3vh;
        width: auto;
    }

    /* Lar */
    .home-shade {
        background:
            linear-gradient(0deg, rgba(42,37,33,0.78), rgba(42,37,33,0.16) 72%, rgba(42,37,33,0.06)),
            linear-gradient(90deg, rgba(42,37,33,0.32), rgba(42,37,33,0.04));
    }

    .home-copy {
        left: 1.35rem;
        right: 1.35rem;
        bottom: 8vh;
        width: auto;
    }

    /* Pedido */
    .proposal-sticky-text {
        top: 22vh;
        transform: translateX(-50%);
    }

    .proposal-photo-detail {
        width: 52vw;
        height: 22vh;
        left: -10vw;
        bottom: 5vh;
        border-radius: 18px 18px 18px 64px;
    }

    .proposal-closing-text {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }
}

/* ============================================
   DOBRA 3.5: INTRO CARNAVAL
============================================ */
#introCarnavalWrapper {
    /* margin-top: -15vh; removed to prevent overlapping */
}

.intro-carnaval-scene {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   DOBRA 4: TIMELINE (INÍCIO)
============================================ */
/* .timeline-section removed to prevent overlapping and conflicts with .section-timeline */

.section-timeline {
    width: 100%;
    min-height: 100vh;
    position: relative;
    background-color: var(--color-linen);
    z-index: 2;
    padding: clamp(3rem, 6vh, 6rem) 0;
    /* Paper texture */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

.timeline-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    padding: 0 1.5rem;
}

.timeline-body {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(4rem, 10vh, 8rem);
    padding: clamp(2rem, 5vh, 4rem) 0;
}

.timeline-line {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 28px; /* 1.5rem padding + center of dot */
    width: 1px;
    background: rgba(154,87,64,0.18);
    z-index: 1;
}

.timeline-progress {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--color-terracota-dark);
    transform-origin: top center;
}

.timeline-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(1rem, 2vh, 1.5rem);
    z-index: 2;
    opacity: 0; /* Default invisible for crossfade */
}

.timeline-dot {
    display: block;
    position: absolute;
    left: 1.35rem;
    top: 50%;
    z-index: 4;
    opacity: 0.75;
}

.timeline-content {
    max-width: 480px;
}

.timeline-text {
    margin-top: clamp(0.5rem, 2vh, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.timeline-phrase {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2.7vw, 1.28rem);
    line-height: 1.5;
    color: var(--color-charcoal-soft);
    font-weight: 300;
    margin: 0; /* Remove a margem padrão do parágrafo */
}

.timeline-highlight-phrase {
    font-family: var(--font-handwriting);
    font-size: clamp(1.4rem, 4vw, 1.9rem);
    color: var(--color-terracota-dark);
    margin-top: 1rem;
    font-weight: 600;
}

.timeline-photo {
    width: fit-content;
    max-width: min(100%, 400px);
    background: #ffffff;
    padding: 7px 7px 30px 7px;
    border-radius: 3px;
    box-shadow: 0 18px 42px rgba(42,37,33,0.14);
    display: block;
    text-align: center;
    margin: 0 auto;
}

/* --- ESTILOS DO COMPILADO (COLLAGE) --- */
.timeline-item-full {
    flex-direction: column !important;
    align-items: center !important;
    gap: clamp(1rem, 3vh, 1.8rem);
    padding-block: 6vh;
}

.timeline-item-full .timeline-content {
    max-width: 600px;
    text-align: center !important;
    /* Sem fundo: a linha do tempo (1px, 18% opacidade) atrás do texto é
       quase imperceptível — bem menos chamativa que a caixa sólida que
       havia aqui antes, que destoava do resto da página. */
    padding: 1.5rem 2rem;
    position: relative;
    z-index: 10;
}

.timeline-collage {
    width: 100%;
    max-width: 1050px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(0.8rem, 2vw, 1.6rem);
    align-items: center;
    margin-top: 0.5rem;
}

.timeline-collage .timeline-photo {
    width: fit-content;
    max-width: 235px;
    padding: 6px 6px 24px 6px;
    margin: 0 auto;
}

/* Espalhando as fotos como polaroides soltas, de cada lado da linha */
.timeline-item .timeline-collage .timeline-photo:nth-child(1) { transform: rotate(-4deg); }
.timeline-item .timeline-collage .timeline-photo:nth-child(2) { transform: rotate(5deg); }
.timeline-item .timeline-collage .timeline-photo:nth-child(3) { transform: rotate(3deg); }
.timeline-item .timeline-collage .timeline-photo:nth-child(4) { transform: rotate(-2deg); }
.timeline-item .timeline-collage .timeline-photo:nth-child(5) { 
    transform: rotate(1deg);
    justify-self: center;
}

.timeline-collage .timeline-img {
    height: auto;
    max-height: min(38vh, 310px);
}

.timeline-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: clamp(285px, 52vh, 520px);
    object-fit: contain;
    display: block;
    border-radius: 0;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-left: 0;
        gap: 0;
    }
    
    .timeline-dot {
        left: 50%;
        top: 50%; /* centraliza verticalmente na linha */
        transform: translate(-50%, -50%);
        margin-left: 0;
    }

    .timeline-content {
        width: calc(50% - 4rem);
        text-align: right;
        padding-right: 0;
    }

    .timeline-photo {
        width: fit-content;
        max-width: min(calc(50% - 4rem), 430px);
    }
    
    .timeline-item-full .timeline-content {
        width: 100%; /* quebra a regra de 50% */
    }
    
    .timeline-item-full .timeline-collage {
        width: 100%; /* quebra a regra de 50% */
    }

    /* Alterna os lados na timeline */
    .timeline-item:nth-child(odd) {
        flex-direction: row-reverse;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        text-align: left;
    }

    /* Rotação alternada das polaroides (exclui o collage que já tem rotações próprias) */
    .timeline-item:nth-child(odd) > .timeline-photo {
        transform: rotate(-3deg);
    }
    .timeline-item:nth-child(even) > .timeline-photo {
        transform: rotate(3deg);
    }
}

@media (max-width: 767px) {
    .section-timeline {
        padding-block: clamp(2rem, 4vh, 3rem);
    }

    .timeline-container,
    .timeline-body {
        height: auto;
    }

    .timeline-line {
        left: 0.85rem;
        top: 0;
        bottom: 0;
    }

    .timeline-dot {
        left: 0.85rem;
    }

    .timeline-item {
        position: relative;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: clamp(0.45rem, 1.2dvh, 0.7rem);
        padding: clamp(0.85rem, 2.2dvh, 1.2rem) 0.85rem clamp(0.85rem, 2.5dvh, 1.2rem) 1.75rem;
    }

    .timeline-content {
        width: 100%;
        max-width: 32rem;
    }

    .timeline-text {
        gap: 0.38rem;
        margin-top: 0.45rem;
    }

    .timeline-phrase {
        font-size: clamp(0.86rem, 3.45vw, 0.98rem);
        line-height: 1.36;
    }

    .timeline-highlight-phrase {
        font-size: clamp(1.18rem, 5.1vw, 1.5rem);
        margin-top: 0.2rem;
    }

    .timeline-photo {
        width: min(100%, 320px);
        max-width: min(100%, 320px);
        padding: 4px 4px 10px 4px;
        border-radius: 4px;
        box-shadow: 0 12px 28px rgba(42,37,33,0.14);
    }

    .timeline-img {
        width: 100%;
        max-width: 100%;
        height: clamp(190px, 34dvh, 245px);
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .timeline-item-full {
        gap: clamp(0.45rem, 1.4dvh, 0.75rem);
        min-height: auto;
        padding-block: clamp(0.55rem, 1.8dvh, 1rem);
        /* Simétrico: o item normal reserva espaço à esquerda pro dot da
           linha do tempo, mas aqui o conteúdo é centralizado — o padding
           herdado e assimétrico só estreitava a colagem sem necessidade. */
        padding-inline: 0.85rem;
    }

    .timeline-item-full .timeline-content {
        padding: 0.45rem 0.75rem;
    }

    /* Grade 2x2+1 trocada por tira horizontal com scroll-snap: as fotos
       dobram de tamanho (antes ~172px, agora até ~300px de largura) sem
       precisar espremer 2 por linha. Rolar de lado também deixa cada
       foto maior e mais legível na tela do que uma grade apertada. */
    .timeline-collage {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: clamp(0.7rem, 3vw, 1rem);
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -0.85rem -2.15rem;
        padding: 0.4rem 0.85rem 3rem;
        max-width: none;
    }

    .timeline-collage::-webkit-scrollbar {
        display: none;
    }

    .timeline-collage .timeline-photo {
        flex: 0 0 auto;
        width: fit-content;
        max-width: none;
        scroll-snap-align: center;
        padding: 5px 5px 14px 5px;
        margin: 0;
        box-shadow: 0 12px 28px rgba(42,37,33,0.14);
        /* Sem rotação nesta tira: mais legível ao rolar de lado do que
           polaroides tortas se sobrepondo visualmente. */
        transform: none !important;
        background: #ffffff;
    }

    .timeline-collage .timeline-img {
        width: auto;
        height: clamp(220px, 36dvh, 270px);
        /* vw em vez de %: a moldura-pai é width:fit-content (depende da
           própria imagem) — limite em % criaria dependência circular.
           É uma tira rolável, então pode ser generoso — a foto na
           horizontal (Viagem para praia, 4:3) só precisa de mais
           espaço que as verticais para não perder área em letterbox. */
        max-width: min(92vw, 340px);
        max-height: none;
        object-fit: contain;
        object-position: center;
    }

    /* Headline da collage: alinhada à esquerda no mobile */
    .timeline-item-full .timeline-content {
        text-align: left !important;
    }
    .timeline-item-full .timeline-content .story-kicker,
    .timeline-item-full .timeline-content .story-title {
        text-align: left !important;
    }

    .timeline-item-full .timeline-content .story-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.02;
    }

    #timelineItem5 .story-title {
        font-size: clamp(2.05rem, 10vw, 2.9rem);
        line-height: 1.02;
    }

    #timelineItem5 .story-title em {
        display: inline;
    }

    /* Fotos em retrato acentuado (Reencontro 1125x2000, Namoro à distância
       2062x3664, Pedido 3024x4032): a moldura larga e fixa do padrão
       (min(100%,320px)) ou cortava a foto com "cover" ou sobrava muito
       espaço em branco nas laterais com "contain". Aqui a moldura vira
       fit-content e a foto usa altura própria com largura automática —
       a polaroide "abraça" a foto, como uma de verdade, sem cortar nada. */
    #timelineItem2 .timeline-photo,
    #timelineItem5 .timeline-photo,
    #timelineItem6 .timeline-photo {
        width: fit-content;
        max-width: 100%;
    }

    #timelineItem2 .timeline-img,
    #timelineItem5 .timeline-img,
    #timelineItem6 .timeline-img {
        width: auto;
        height: clamp(300px, 52dvh, 440px);
        /* vw em vez de %: a moldura-pai é width:fit-content (seu tamanho
           depende da imagem), então um limite em % aqui criaria uma
           dependência circular e o navegador encolhia a foto sem motivo. */
        max-width: min(86vw, 318px);
        /* Rede de segurança: se o teto acima limitar a largura (fotos
           menos verticais, ex. Pedido 3:4) sem isso a imagem distorce
           esticada, pois a altura fixa não se readapta sozinha. */
        object-fit: contain;
        object-position: center;
    }

    /* Foto da chamada de vídeo (muito vertical, 1125x2436): caixa mais
       alta e foco no terço superior para mostrar os dois rostos —
       na altura padrão o corte central mostrava só um olho. */
    #timelineItem3 .timeline-img {
        height: clamp(300px, 46dvh, 380px);
        object-position: center 24%;
    }
}

/* =========================================
   SECTION TRANSITION — revelada por trás da timeline
   ========================================= */
.section-transition {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 15vh 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.transition-bg {
    position: absolute;
    /* Margem vertical maior que o deslocamento do parallax (15% da própria
       altura ≈ 22vh) para a borda da foto nunca entrar na tela. */
    inset: -25% 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    will-change: transform;
}

.transition-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 1;
}

.transition-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.transition-headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 4rem);
    color: #ffffff;
    text-shadow: 0 4px 25px rgba(0,0,0,0.7), 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 400;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.transition-line {
    display: block;
    overflow: hidden;
}

.transition-headline em {
    color: var(--color-terracota-light);
    font-style: italic;
}

@media (max-width: 767px) {
    .transition-bg {
        background-position: 65% center;
    }

    /* Menor no mobile para a primeira linha não quebrar com palavra órfã */
    .transition-headline {
        font-size: clamp(1.5rem, 6.4vw, 2.5rem);
    }
}

/* =========================================
   SECTION COUNTDOWN
   ========================================= */
.section-countdown {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 15vh 20px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Kicker "Quando?" com mais destaque */
.section-countdown .story-kicker {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    letter-spacing: 0.38em;
    margin-bottom: 1.5rem;
}

.section-presentes,
.section-rsvp {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-container {
    max-width: 800px;
    text-align: center;
}

.date-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    margin-top: 1rem;
}

.date-day {
    font-family: var(--font-display);
    font-size: clamp(5rem, 15vw, 9rem);
    line-height: 0.8;
    color: var(--color-terracota);
}

.date-month-year {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.date-month {
    font-family: var(--font-handwriting);
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1;
    color: var(--color-charcoal);
    margin-bottom: 0.2rem;
}

.date-year {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    letter-spacing: 0.4em;
    color: var(--color-charcoal-soft);
}

.time-highlight {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.time-highlight::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -5%;
    width: 110%;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20' preserveAspectRatio='none'%3E%3Cpath d='M2,10 Q50,18 98,6' fill='none' stroke='%23BC6B4C' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 0;
}


.countdown-timer {
    display: flex;
    justify-content: center;
    gap: clamp(0.5rem, 2.5vw, 1rem);
    flex-wrap: nowrap;
}

.time-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: clamp(52px, 15vw, 88px);
    height: clamp(52px, 15vw, 88px);
    background-color: var(--color-linen);
    border: 1px solid rgba(188, 107, 76, 0.2);
    border-radius: 50%;
    color: var(--color-charcoal);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.time-value {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 4vw, 2.1rem);
    line-height: 1;
    color: var(--color-terracota-dark);
}

.time-label {
    font-family: var(--font-body);
    font-size: clamp(0.42rem, 1.3vw, 0.65rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.15rem;
    color: var(--color-charcoal-soft);
}

@media (min-width: 480px) {
    .countdown-timer {
        gap: 1.5rem;
    }
    .time-box {
        width: 105px;
        height: 105px;
    }
    .time-value {
        font-size: 2.6rem;
    }
    .time-label {
        font-size: 0.78rem;
        margin-top: 0.3rem;
    }
}

.text-center {
    text-align: center;
}

/* =========================================
   SECTION LOCATION
   ========================================= */
.section-location {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 15vh 20px;
    background-color: var(--color-linen);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Paper texture */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

.location-container {
    max-width: 900px;
    width: 100%;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.location-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: left;
    display: flex;
    flex-direction: column;
}

.location-photo-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.location-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.location-card:hover .location-photo {
    transform: scale(1.05);
}

.location-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--color-terracota-dark);
    margin-bottom: 0.8rem;
    font-weight: 400;
}

.location-address {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-charcoal-soft);
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-terracota);
    color: #ffffff;
    border: none;
    border-radius: 40px;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(188, 107, 76, 0.35);
}

/* Utilitários de Visibilidade */
.mobile-only {
    display: block;
}
.desktop-only {
    display: none;
}

@media (min-width: 768px) {
    .time-badge {
        padding: 0.8rem 1.8rem;
        font-size: 1.5rem;
    }
    .mobile-only {
        display: none !important;
    }
    .desktop-only {
        display: block !important;
    }
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* =========================================
   SECTION COMO CHEGAR
   ========================================= */
.section-como-chegar {
    padding: 12vh 20px;
    background-color: var(--color-linen);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

.como-chegar-container {
    max-width: 1000px;
    width: 100%;
}

.como-chegar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .como-chegar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.como-chegar-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.como-chegar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.como-chegar-icon {
    width: 56px;
    height: 56px;
    color: var(--color-terracota);
    margin-bottom: 1.2rem;
}

.como-chegar-icon svg {
    width: 100%;
    height: 100%;
}

.como-chegar-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-terracota-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}

.como-chegar-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-charcoal-soft);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.como-chegar-dica {
    font-family: var(--font-handwriting);
    font-size: 1.1rem;
    color: var(--color-terracota);
    line-height: 1.5;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-cream-dark);
}

.como-chegar-cta {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-terracota-dark);
    margin-top: 2.5rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .section-como-chegar {
        padding: clamp(2.75rem, 8dvh, 4rem) 1.05rem;
    }

    .como-chegar-card {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }

    .como-chegar-icon {
        width: 44px;
        height: 44px;
    }

    .como-chegar-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }

    .como-chegar-desc {
        font-size: 0.88rem;
    }

    .como-chegar-dica {
        font-size: 1rem;
    }
}

/* =========================================
   SECTION ONDE FICAR
   ========================================= */
.section-onde-ficar {
    padding: 12vh 20px;
    background-color: var(--color-linen);
    display: flex;
    justify-content: center;
    align-items: center;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
}

.onde-ficar-container {
    max-width: 900px;
    width: 100%;
}

.onde-ficar-intro {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-charcoal-soft);
    text-align: center;
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.onde-ficar-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .onde-ficar-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.onde-ficar-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.onde-ficar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.onde-ficar-icon {
    width: 52px;
    height: 52px;
    color: var(--color-terracota);
    margin-bottom: 1.2rem;
}

.onde-ficar-icon svg {
    width: 100%;
    height: 100%;
}

.onde-ficar-card h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--color-terracota-dark);
    margin-bottom: 1rem;
    font-weight: 400;
}

.onde-ficar-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-charcoal-soft);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.onde-ficar-dica {
    font-family: var(--font-handwriting);
    font-size: 1.1rem;
    color: var(--color-terracota);
    line-height: 1.5;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid var(--color-cream-dark);
}

.onde-ficar-cta {
    text-align: center;
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-terracota-dark);
    margin-top: 2.5rem;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

@media (max-width: 767px) {
    .section-onde-ficar {
        padding: clamp(2.75rem, 8dvh, 4rem) 1.05rem;
    }

    .onde-ficar-intro {
        font-size: 0.92rem;
        margin-bottom: 1.5rem;
    }

    .onde-ficar-card {
        padding: 1.5rem 1.2rem;
        border-radius: 12px;
    }

    .onde-ficar-icon {
        width: 44px;
        height: 44px;
    }

    .onde-ficar-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.7rem;
    }

    .onde-ficar-desc {
        font-size: 0.88rem;
    }

    .onde-ficar-dica {
        font-size: 1rem;
    }
}

/* =========================================
   SECTION DRESSCODE
   ========================================= */
.section-dresscode {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 15vh 20px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dresscode-container {
    max-width: 1000px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .dresscode-container {
        grid-template-columns: 5fr 6fr; /* Imagem um pouco mais estreita que o texto */
        gap: 5rem;
    }
}

.dresscode-image-col {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dresscode-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

@media (max-width: 767px) {
    .section-countdown,
    .section-dresscode {
        height: 100vh;
        height: 100dvh;
        min-height: 100dvh;
        padding: clamp(1.25rem, 4dvh, 2rem) 1.05rem;
        align-items: center;
        overflow: hidden;
    }

    .section-location {
        height: auto;
        min-height: 100dvh;
        padding: clamp(2.75rem, 8dvh, 4rem) 1.05rem;
        align-items: flex-start;
        overflow: visible;
    }

    .date-lockup {
        margin-bottom: 2rem;
    }

    .location-grid {
        position: static;
        gap: 1rem;
        margin-top: 0.65rem;
        min-height: 0;
    }

    .section-location .story-title {
        margin-bottom: 0.85rem !important;
    }

    .location-card {
        position: static;
        inset: auto;
        padding: 0.85rem;
        border-radius: 12px;
        justify-content: flex-start;
    }

    .location-photo-wrapper {
        height: min(18dvh, 128px);
        margin-bottom: 0.65rem;
    }

    .location-card h3 {
        font-size: 1.55rem;
        margin-bottom: 0.45rem;
    }

    .location-address {
        font-size: 0.82rem;
        line-height: 1.38;
        margin-bottom: 0.45rem;
    }

    .time-badge {
        font-size: 1rem;
        padding: 0.35rem 0.8rem;
        margin-bottom: 0.65rem;
    }

    .map-container iframe {
        height: min(20dvh, 138px);
    }

    .dresscode-container {
        gap: 1.2rem;
    }

    .dresscode-image-col {
        order: 3;
    }

    .dresscode-text-col {
        order: 2;
    }

    .dresscode-img {
        max-height: 26dvh;
        width: min(100%, 260px);
    }

    .section-dresscode {
        height: auto !important;
        min-height: 100dvh;
        overflow: visible !important;
        padding-block: clamp(3.5rem, 9dvh, 5rem);
    }

    .dresscode-title {
        font-size: clamp(1.85rem, 8vw, 2.35rem);
        margin-bottom: 0.8rem;
    }

    .dresscode-block {
        margin-bottom: 0.8rem;
    }

    .dresscode-block h3 {
        font-size: clamp(1.75rem, 7vw, 2.15rem);
        margin-bottom: 0.2rem;
    }

    .dresscode-block p {
        font-size: 0.88rem;
        line-height: 1.38;
    }

    .section-presentes,
    .section-rsvp {
        min-height: 100dvh;
        padding: clamp(2.75rem, 8dvh, 4rem) 1.15rem;
    }

    .section-final {
        padding: clamp(2.75rem, 8dvh, 4rem) 1.15rem;
    }
}

.dresscode-text-col {
    text-align: left;
}

.dresscode-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--color-charcoal);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.1;
}

.dresscode-title em {
    color: var(--color-terracota-dark);
    font-style: italic;
}

.dresscode-block {
    margin-bottom: 2rem;
}

.dresscode-block h3 {
    font-family: var(--font-handwriting);
    font-size: 2.5rem;
    color: var(--color-terracota-light);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.dresscode-block p {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-charcoal-soft);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.dresscode-alert {
    font-size: 0.95rem !important;
    color: var(--color-terracota-dark) !important;
    font-style: italic;
}

/* ============================================
   SECTION RSVP
============================================ */
.section-rsvp {
    padding: 12vh 2rem;
    background-color: var(--color-cream);
    position: relative;
    z-index: 5;
}

.rsvp-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    text-align: center;
}

.rsvp-action {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.rsvp-header {
    margin-bottom: 3rem;
}

.rsvp-subtitle {
    font-family: var(--font-body);
    color: var(--color-charcoal-soft);
    margin-top: 1rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--color-cream);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-terracota);
    background: #fff;
}

.btn-primary {
    background-color: var(--color-terracota);
    color: var(--color-cream);
    border: none;
    padding: 1.1rem 2.8rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: var(--color-terracota-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-charcoal-soft);
    border: 1px solid var(--color-charcoal-soft);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--color-charcoal);
}

.btn-block {
    display: block;
    width: 100%;
}

.rsvp-error {
    color: #d9534f;
    font-family: var(--font-body);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: center;
    background: #fdf2f2;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #d9534f;
}

.guests-list {
    margin-bottom: 2rem;
}

.guest-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-item:hover {
    border-color: var(--color-terracota-light);
}

.guest-item input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--color-terracota);
}

.guest-item label {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-charcoal);
    cursor: pointer;
    flex: 1;
}

.rsvp-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rsvp-success-box {
    padding: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    color: var(--color-terracota);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .rsvp-container {
        padding: 2rem;
    }
}

/* ============================================
   SECTION: PRESENTES
============================================ */
.section-presentes {
    padding: 12vh 1.5rem;
    background-color: var(--color-paper);
}

.presentes-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.presentes-header {
    margin-bottom: 2.5rem;
}

.presentes-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-charcoal-soft);
    max-width: 500px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.presentes-action {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.gift-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.gift-card:hover {
    transform: translateY(-5px);
}

.gift-img-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: var(--color-cream);
}

.gift-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gift-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.gift-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-terracota);
    margin: 1rem 0 1.5rem;
}

.btn-gift {
    width: 100%;
}

/* ============================================
   MODAL PIX
============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--color-paper);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    position: relative;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-charcoal-soft);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-terracota);
}

.modal-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-charcoal);
    font-family: var(--font-display);
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-terracota);
    margin-bottom: 1.5rem;
}

.modal-qr-container {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border: 2px solid var(--color-cream-dark);
    border-radius: 12px;
    padding: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-qr-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal-instructions {
    font-size: 0.95rem;
    color: var(--color-charcoal-soft);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.modal-pix-copy-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-pix-copy-area input {
    padding: 14px;
    border: 1px solid var(--color-cream-dark);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-charcoal);
    background: #fff;
    text-align: center;
}

.copy-success-msg {
    color: var(--color-sage);
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: 12px;
}

/* ============================================
   ATALHOS FLUTUANTES
============================================ */
.floating-shortcuts {
    position: fixed;
    bottom: 25px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
}

.btn-floating {
    background-color: var(--color-paper);
    color: var(--color-charcoal);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 1.3rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid var(--color-cream-dark);
}

.btn-floating:hover {
    transform: scale(1.1) translateY(-2px);
    background-color: var(--color-cream);
}

/* ============================================
   SECTION FINAL
============================================ */
.section-final {
    background-color: var(--color-linen);
    padding: 12vh 2rem;
    text-align: center;
}

.final-container {
    max-width: 600px;
    margin: 0 auto;
}

.final-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    color: var(--color-charcoal);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.final-title em {
    color: var(--color-terracota);
    font-style: italic;
}

.final-names {
    font-family: var(--font-handwriting);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: var(--color-terracota-light);
    margin-bottom: 0.5rem;
}

.final-date {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-charcoal-soft);
    opacity: 0.7;
}

@media (max-width: 767px) {
    .section-presentes,
    .section-rsvp {
        min-height: 100dvh;
        padding: clamp(2.75rem, 8dvh, 4rem) 1.15rem;
    }

    .section-final {
        padding: clamp(2.75rem, 8dvh, 4rem) 1.15rem;
    }

    .presentes-header,
    .rsvp-header {
        margin-bottom: 1.5rem;
    }

    .presentes-subtitle,
    .rsvp-subtitle {
        font-size: 0.96rem;
        line-height: 1.48;
    }

    .rsvp-container {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   FECHAMENTO — NOVA IDENTIDADE VISUAL
============================================ */
.section-presentes,
.section-rsvp,
.section-final {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--color-linen);
    color: var(--color-charcoal);
}
.section-apresentacoes,
.section-countdown,
.section-timeline,
.section-location,
.section-como-chegar,
.section-onde-ficar,
.section-dresscode,
.section-presentes,
.section-rsvp,
.section-final {
    position: relative;
    isolation: isolate;
}

.section-apresentacoes::before,
.section-countdown::before,
.section-timeline::before,
.section-location::before,
.section-como-chegar::before,
.section-onde-ficar::before,
.section-dresscode::before,
.section-presentes::before,
.section-rsvp::before,
.section-final::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    filter: sepia(0.12) saturate(0.9) contrast(1.1);
    /* Transição imperceptível de uma dobra para outra (fade nas bordas verticais) */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, black 150px, black calc(100% - 150px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0px, black 150px, black calc(100% - 150px), transparent 100%);
}

.section-apresentacoes::before,
.section-countdown::before,
.section-timeline::before,
.section-location::before,
.section-como-chegar::before,
.section-onde-ficar::before,
.section-dresscode::before,
.section-presentes::before,
.section-rsvp::before,
.section-final::before {
    background-attachment: fixed;
}

/* --- Agrupamento Harmônico de Marcas d'Água --- */
/* A mesma imagem flui por várias dobras, garantindo suavidade e continuidade */

/* Grupo 1: História (Apresentações e Timeline) */
.section-apresentacoes::before {
    background-image: url('../assets/bg/a2-leticia.jpg');
    background-position: center 42%;
}

.section-timeline::before {
    background-image: url('../assets/bg/a4-reencontro.jpg');
    background-position: center 48%;
}

/* Grupo 2: O Casamento (Data, Local e Traje) */
.section-countdown::before,
.section-location::before,
.section-como-chegar::before,
.section-onde-ficar::before,
.section-dresscode::before {
    background-image: url('../assets/bg/a5-lar.jpg');
    background-position: center 45%;
}

/* Grupo 3: Fechamento (Presentes, RSVP e Final) */
.section-presentes::before,
.section-rsvp::before,
.section-final::before {
    background-image: url('../assets/fotos-casal/Foto final.jpg');
    background-position: center 45%;
}

.section-final::before {
    opacity: 0.32;
}

.section-apresentacoes::after,
.section-countdown::after,
.section-timeline::after,
.section-location::after,
.section-como-chegar::after,
.section-onde-ficar::after,
.section-dresscode::after,
.section-presentes::after,
.section-rsvp::after,
.section-final::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        /* Warm vignette — soft darkening at edges like aged paper */
        radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(190, 160, 120, 0.18) 100%),
        /* Existing linen gradient */
        linear-gradient(90deg, rgba(240,235,227,0.96) 0%, rgba(253,250,245,0.88) 55%, rgba(232,223,210,0.7) 100%),
        /* SVG noise for cardstock grain */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.15'/%3E%3C/svg%3E");
}

.presentes-container,
.rsvp-container,
.final-container {
    width: min(100%, 700px);
    margin: 0 auto;
    text-align: center;
}

.section-presentes,
.section-rsvp {
    padding: clamp(6rem, 14vh, 9rem) clamp(1.35rem, 8vw, 7rem);
    align-items: center;
    justify-content: center;
}

.section-final {
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(6rem, 15vh, 10rem) clamp(1.35rem, 8vw, 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-presentes .story-kicker,
.section-rsvp .story-kicker,
.section-final .final-date {
    color: var(--color-terracota-dark);
    opacity: 1;
}

.section-presentes .story-title,
.section-rsvp .story-title,
.section-final .final-title {
    color: var(--color-charcoal);
    /* Sem max-width em ch: os títulos já têm <br> manual no HTML
       controlando a quebra; um limite em caracteres forçava fonte
       gigante para preencher a "caixa" estreita. */
    line-height: 0.98;
    margin-bottom: clamp(1.1rem, 3vh, 1.8rem);
    text-shadow: 0 16px 42px rgba(154,87,64,0.08);
}

.section-presentes .story-title em,
.section-rsvp .story-title em,
.section-final .final-title em {
    color: var(--color-terracota-dark);
}

.presentes-header,
.rsvp-header {
    margin-bottom: clamp(1.25rem, 4vh, 2rem);
}

.presentes-subtitle,
.rsvp-subtitle {
    color: var(--color-charcoal-soft);
    max-width: 31rem;
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.22rem);
    line-height: 1.58;
}

.presentes-action,
.rsvp-action {
    justify-content: center;
    padding: 0;
}

.section-presentes .btn-primary,
.section-rsvp .btn-primary {
    background: transparent;
    color: var(--color-terracota-dark);
    border: 1px solid rgba(154,87,64,0.5);
    border-radius: 0;
    padding: 1rem 1.25rem;
    min-width: min(100%, 260px);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(253,250,245,0.76), 0 18px 40px rgba(154,87,64,0.12);
}

.section-presentes .btn-primary:hover,
.section-rsvp .btn-primary:hover {
    background: rgba(188,107,76,0.08);
    border-color: var(--color-terracota-dark);
}

.rsvp-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.final-names {
    color: var(--color-terracota-dark);
    margin-bottom: 0.25rem;
}

@media (max-width: 767px) {
    #introCarnavalWrapper.story-pin {
        height: auto;
        min-height: 44dvh;
    }

    #introCarnavalWrapper .intro-carnaval-scene {
        height: auto;
        min-height: 44dvh;
        padding: clamp(1.75rem, 6dvh, 2.75rem) 1.25rem;
    }

    .section-presentes,
    .section-rsvp,
    .section-final {
        min-height: 100dvh;
        padding: clamp(4.5rem, 11dvh, 6rem) 1.35rem;
        align-items: center;
        justify-content: center;
    }



    .presentes-subtitle,
    .rsvp-subtitle {
        font-size: 1rem;
        line-height: 1.48;
    }

    .section-presentes .btn-primary,
    .section-rsvp .btn-primary {
        width: 100%;
        min-width: 0;
        padding: 1rem 0.95rem;
        font-size: 0.88rem;
    }

    .final-names {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}
