/* Decorazioni floreali minimal per la modal calendario */
.calendar-modal-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 18px;
    width: 54px;
    height: 28px;
    background: url('images/fiori/2.png') no-repeat center/contain;
    opacity: 0.32;
    pointer-events: none;
    z-index: 2;
}
.calendar-modal-content::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 18px;
    width: 60px;
    height: 32px;
    background: url('images/fiori/3.png') no-repeat center/contain;
    opacity: 0.28;
    pointer-events: none;
    z-index: 2;
}

/* Bottone "Aggiungi al calendario" semplice e premium */
.calendar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 36px;
    background: #fff;
    color: var(--color-olive);
    font-family: var(--font-sans);
    font-size: 1.01rem;
    font-weight: 500;
    border: 1.2px solid var(--color-gold);
    border-radius: 999px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.16s, border-color 0.16s, background 0.16s;
    position: relative;
    z-index: 1;
    margin: 2.2rem auto 0 auto;
    outline: none;
    gap: 0.7em;
    animation: fade-in-up 1.2s cubic-bezier(0.6,0,0.4,1);
    box-shadow: none;
}
.calendar-btn:hover, .calendar-btn:focus {
    background: #fff;
    color: var(--color-gold);
    border-color: var(--color-gold);
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
    transform: translateY(-1px) scale(1.03);
}
.calendar-btn svg {
    margin-right: 0.5em;
    flex-shrink: 0;
    filter: none;
}
.calendar-add-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

/* Animazione fade-in-up per la comparsa */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.6,0,0.4,1), transform 1.2s cubic-bezier(0.6,0,0.4,1);
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (max-width: 600px) {
    .calendar-btn {
        padding: 12px 12px;
        font-size: 0.97rem;
    }
}
/* Wrapper per il testo sopra l'immagine travel */
.gift-text-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Card IBAN sovrapposta sopra immagine viaggio */
.iban-card-overlap {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    margin-bottom: -70px;
    /* Sovrappone la card sopra l'immagine */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.10);
}

.travel-img-wrapper {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 1;
    overflow: visible;
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Immagine viaggio a tutto schermo con bordi sfumati stile watercolor */
.travel-img-wrapper {
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    z-index: 1;
    overflow: visible;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.travel-img-wrapper::after {
    content: "";
    position: absolute;
    inset: -20px 0 -20px 0;
    /* Copre bordo superiore e inferiore */
    pointer-events: none;
    z-index: 2;


    /* Sfocatura molto alta per fondere le macchie simulando un acquarello molto bagnato in cui il bordo si disperde sullo sfondo */
    filter: blur(12px) contrast(1.2);
}

.travel-img-watercolor {
    /* ... rest of the original style ... */
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
    opacity: 0.99;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Rimosso o ridotto il border radius netto per favorire la fusione */
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    transition: opacity 0.3s;
    margin-top: -532px;

    /* Maschera sulla foto per ammorbidire i bordi inferiori e superiori irregolarmente prima delle macchie */
    -webkit-mask-image:
        radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%),
        linear-gradient(to bottom, transparent 2%, black 15%, black 85%, transparent 98%);
    mask-image:
        radial-gradient(ellipse at 50% 50%, black 60%, transparent 100%),
        linear-gradient(to bottom, transparent 2%, black 15%, black 85%, transparent 98%);
    -webkit-mask-composite: source-in, source-in;
    /* Combine the masks */
    mask-composite: intersect;
}

/* Immagine viaggio con bordi sfumati 
.travel-img-blur {
    border-radius: 30px;
    box-shadow: 0 0 0 12px #fff inset, 0 0 40px 10px #fff;
    filter: blur(1.5px) brightness(1.08) drop-shadow(0 0 18px #fff) saturate(1.1);
    transition: filter 0.3s;
}*/

.travel-img-blur:hover {
    filter: blur(0.5px) brightness(1.12) drop-shadow(0 0 24px #fff) saturate(1.2);
}

:root {
    --color-cream: #F5F0E6;
    /* Warm stone */
    --color-gold: #D4AF37;
    --color-olive: #6B705C;
    /* Muted olive */
    --color-text: #4A4A4A;
    --color-text-light: #7A7A7A;
    --font-script: 'Great Vibes', cursive;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
}

.mobile-break {
    display: none;
}

/* Envelope Overlay */
.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E8DCC0 0%, #D4C4A8 50%, #C4B59A 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Stack envelope and text */
    cursor: pointer;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
    box-sizing: border-box;
}

.envelope-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none;
}

.envelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Use dvh for mobile browsers if supported, fallback to 100% */
    height: 100dvh;
    background: linear-gradient(135deg, #E8DCC0 0%, #D4C4A8 50%, #C4B59A 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* Stack envelope and text */
    cursor: pointer;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
    box-sizing: border-box;
    overflow: hidden;
    /* Ensure no scrollbars from children */
}

.envelope-instruction {
    margin-top: 2rem;
    font-family: var(--font-sans);
    color: #4d5c3f;
    /* Matches envelope dark tone */
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* FADE TO BEIGE OVERLAY */
#transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F0E6;
    /* Beige/Cream */
    z-index: 20000;
    /* On top of envelope */
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-in-out;
    /* 0.5s faster (was 2.0s) */
}

#transition-overlay.active {
    opacity: 1;
}

/* =========================================
   ENVELOPE - USER PROVIDED CUSTOM CODE
   ========================================= */

.envelope-wrapper {
    position: relative;
    width: 320px;
    height: 220px;
    cursor: pointer;
    transition: transform 0.5s ease;
    z-index: 10;
}

.envelope-wrapper:hover {
    transform: scale(1.05);
}

.envelope-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4d5c3f;
    border-radius: 3px;
}

.envelope-back::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/texture_busta.png');
    background-size: cover;
    opacity: 0.8;
    z-index: 1;
    overflow: hidden;
    border-radius: 3px;
}

.envelope-pocket {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 3px 3px;
    /* Triangle Geometry via Borders */
    border-bottom: 110px solid #949980;
    border-left: 160px solid #828770;
    border-right: 160px solid #828770;
    border-top: 110px solid transparent;
    /* Center opening */
    box-sizing: border-box;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, 0.1));
}

.envelope-pocket-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    /* Matches pocket */
    background-image: url('images/texture_busta.png');
    background-size: cover;
    opacity: 0.8;
    /* Desktop Shape: Match pocket borders (V-cut at top) */
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0, 50% 110px);
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Flap Geometry via Clip Path */
    background-color: #93987e;
    clip-path: polygon(0 0, 100% 0, 50% 120px);
    transform-origin: top;
    transition: transform 8.0s cubic-bezier(0.4, 0, 0.2, 1), z-index 8.0s;
    z-index: 4;
    pointer-events: none;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.15));
}

.envelope-flap::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/texture_busta.png');
    background-size: cover;
    opacity: 0.8;
}

.wax-seal {
    position: absolute;
    top: 110px;
    /* Centered relative to flap tip logic */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: auto;
    z-index: 5;
    mix-blend-mode: multiply;
    /* Realistic blend */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)) contrast(1.2);
    transition: transform 8.0s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    pointer-events: none;
}

.envelope-wrapper.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
    /* Moves behind */
}

.envelope-wrapper.open .wax-seal {
    transform: translate(-50%, -50%) rotateX(180deg);
    opacity: 0;
    transition-delay: 0s;
}

/* LETTER CONTENT REMOVED */

/* ============================
   MOBILE OPTIMIZATION (FULL SCREEN)
   ============================ */

/* Mobile Transformation */
@media (max-width: 768px) {

    /* 1. Wrapper becomes the Full Screen Container */
    .envelope-wrapper {
        width: 100%;
        height: 100%;
        transform: none !important;
        /* Reset any scaling */
        cursor: default;
        overflow: hidden;
    }

    /* 2. Pocket Geometry (Bottom half of screen) */
    .envelope-pocket {
        height: 100%;
        width: 100%;
        /* Fill container */
        border-radius: 0;

        /* Triangle calculation: Center point is 50vw */
        border-bottom: 60vh solid #949980;
        /* Taller pocket */
        border-right: 50vw solid #828770;
        border-left: 50vw solid #828770;
        border-top: 40vh solid transparent;

        filter: none;
        /* Perf optimization */
    }

    /* 3. Flap Geometry (Top half of screen) */
    .envelope-flap {
        height: 100%;
        width: 100%;
        border-radius: 0;

        background-color: #93987e;
        clip-path: polygon(0 0, 100% 0, 50% 45vh);

        /* SLOW ANIMATION (5s) */
        transition: transform 8.0s cubic-bezier(0.4, 0, 0.2, 1), z-index 8.0s;
    }

    .envelope-pocket-texture {
        clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0, 50% 40vh);
    }

    /* Mobile Textures Opacity */
    .envelope-back::before,
    .envelope-pocket-texture,
    .envelope-flap::before {
        opacity: 0.6;
    }

    /* 4. Wax Seal - Centered on screen */
    .wax-seal {
        top: 45%;
        left: 50%;
        width: 120px;
        /* Bigger on mobile */
        transition: transform 8.0s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.0s ease;
    }

    /*
       5. "Inside" Shadow Animation
       The back gets a shadow overlay that grows when opened
    */
    .envelope-back {
        background-size: cover;
        /* Maintain texture */
        border-radius: 0;
    }

    .envelope-back::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 100%);
        opacity: 0;
        transition: opacity 2.5s ease-in-out;
        z-index: 2;
        /* Between back and letter */
    }

    .envelope-wrapper.open .envelope-back::after {
        opacity: 1;
        /* Shadow grows in */
    }

    /* Letter Removed */

    /* MOBILE INSTRUCTION (On the Envelope) */
    .envelope-instruction {
        position: absolute;
        bottom: 15%;
        /* Positioned on the bottom pocket */
        left: 0;
        width: 100%;
        text-align: center;
        margin-top: 0;
        z-index: 50;
        color: rgba(255, 255, 255, 0.7);
        /* Light text on dark sage */
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        font-size: 1rem;
    }
}

.envelope-wrapper.open .wax-seal {
    opacity: 0;
}

.main-content-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}

.main-content-hidden.visible {
    opacity: 1;
    visibility: visible;
}

.main-content-visible {
    opacity: 1;
    visibility: visible;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 400;
}

.pre-title {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 6px;

    padding: 1.5rem 3rem;
    display: inline-block;
    margin-bottom: 2rem;
    color: #fff;
    backdrop-filter: blur(5px);

}

.names-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    /* Per dispositivi mobili, il padding può essere regolato se serve */
}

.names-svg {
    width: 100%;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

.names-text {
    font-family: var(--font-script);
    font-size: 180px;
    stroke-width: 1.5px;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    fill-opacity: 0;
    /* Start transparent */
    animation: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.main-content-hidden .names-text {
    animation: none;
}

.main-content-visible .names-text {
    animation: draw 4s ease-out forwards, fadeInFill 1s ease-out 3.5s forwards;
}

.name-part {
    fill: var(--color-olive);
    stroke: var(--color-olive);
}

.amp-part {
    fill: var(--color-gold);
    stroke: var(--color-gold);
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fadeInFill {
    to {
        fill-opacity: 1;
        stroke: transparent;
    }
}

.date-container {
    font-family: var(--font-serif);
    border-top: 1px solid rgba(255, 255, 255, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    padding: 1.5rem 3rem;
    display: inline-block;
    margin-bottom: 2rem;
    color: #fff;
    backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
}

.date {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.date-sep {
    /*color: var(--color-gold);*/
    display: inline-block;
    vertical-align: middle;
    font-size: 0.7em;
    margin: 0 5px;
    opacity: 0.8;
}

.year {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.location {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 1rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Layout */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    /* For parallax */
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: blur(4px) brightness(0.85);
    opacity: 0.85;
    transform: translateZ(0);
    will-change: transform;
}

.hero-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
    z-index: 1;
    position: relative;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    animation: bounce 2.5s infinite;
    color: #fff;
    font-size: 2.5rem;
    opacity: 0.8;
    z-index: 1;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.details {
    padding: 6rem 2rem;
    background-color: var(--color-cream);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Ornamental divider */
.details::before {
    /* content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-gold);
    margin: 0 auto 2rem auto; */
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.message h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-olive);
    margin-bottom: 1.5rem;
}

.message p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 4rem;
    font-weight: 300;
}

/* Countdown */
.countdown-container h3 {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
    color: var(--color-gold);
    font-size: 1rem;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-unit span {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--color-olive);
    line-height: 1;
}

.time-unit label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.8rem;
    color: var(--color-text-light);
}

/* Calendar - Vintage Handmade Watercolor */
.calendar-container {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.calendar-wrapper {
    background-color: #fdf6e6;
    /* Slightly deeper cream color */
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    max-width: 400px;
    width: 90%;
    transform: rotate(-1deg);
    /* Watercolor Paper Texture - More defined */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.25'/%3E%3C/svg%3E");
    border-radius: 2px;
}

/* Washi Tape Effect */
.calendar-wrapper::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(2deg);
    width: 120px;
    height: 35px;
    background-color: rgba(212, 175, 55, 0.4);
    /* Gold/Washi tape color */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    /* Tape transparency/texture */
    backdrop-filter: blur(2px);
    opacity: 0.8;
    clip-path: polygon(0% 5%, 2% 0%, 5% 5%, 8% 0%, 10% 5%, 90% 5%, 92% 0%, 95% 5%, 98% 0%, 100% 5%, 100% 95%, 98% 100%, 95% 95%, 92% 100%, 90% 95%, 10% 95%, 8% 100%, 5% 95%, 2% 100%, 0% 95%);
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.calendar-header .month {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--color-olive);
    display: block;
    line-height: 1;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.05);
}

.calendar-header .year {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 4px;
    margin-top: 0.5rem;
    display: block;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    font-family: var(--font-serif);
}

.weekday {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-align: center;
    padding-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.day {
    text-align: center;
    padding: 10px 0;
    font-size: 1.1rem;
    color: var(--color-text);
    position: relative;
    z-index: 1;
    cursor: default;
}

/* Handmade organic circle for the date */
.day.special-date {
    color: #fff;
    font-weight: bold;
}

.day.special-date::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    width: 40px;
    height: 40px;
    z-index: -1;
    /* Watercolor circle simulation */
    background: radial-gradient(circle at 35% 35%, rgba(107, 112, 92, 0.9), rgba(107, 112, 92, 0.7) 50%, rgba(107, 112, 92, 0) 75%);
    background-color: var(--color-olive);
    /* fallback */
    border-radius: 60% 40% 50% 70% / 50% 60% 40% 60%;
    /* Organic pebble shape */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    animation: watercolorPulse 3s infinite alternate ease-in-out;
}

@keyframes watercolorPulse {
    0% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(0.95);
        opacity: 0.9;
    }

    100% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1.05);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .calendar-container {
        margin-top: 3rem;
    }

    .calendar-wrapper {
        width: 100%;
        max-width: 340px;
        padding: 1.5rem 0.5rem;
        /* Reduced padding */
    }

    .calendar-header .month {
        font-size: 2.5rem;
    }

    .calendar-grid {
        gap: 2px;
    }

    .day {
        font-size: 1rem;
        padding: 8px 0;
    }

    .weekday {
        font-size: 0.75rem;
    }

    .day.special-date::after {
        width: 32px;
        height: 32px;
    }
}

/* Location Details */
.location-details {
    margin-top: 5rem;
    text-align: center;
    position: relative;
}

.location-details::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-gold);
    margin: 0 auto 3rem auto;
    opacity: 0.5;
}

.location-details h3 {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2rem;
    color: var(--color-gold);
    font-size: 1rem;
}

.venue-name {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--color-olive);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.venue-location {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.map-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid var(--color-olive);
    color: var(--color-olive);
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: transparent;
    /* Hand drawn border effect */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    position: relative;
}

.map-btn:hover {
    background-color: var(--color-olive);
    color: var(--color-cream);
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 5px 15px rgba(107, 112, 92, 0.2);
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

/* Watercolor Decorations (scoped to location-details) */
.location-details .watercolor-decoration {
    position: absolute;
    z-index: -1;
    /* Behind the text */
    opacity: 0;
    max-width: 400px;
    /* Increased size */
    width: 45vw;
    /* Increased width */
    mix-blend-mode: multiply;
    transition: all 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.location-details .watercolor-left {
    top: 39%;
    /* Offset slightly up */
    left: -250px;
    transform: translateY(-50%) rotate(-5deg) scale(0.7);

    /* Fade right (inner) and top */
    -webkit-mask-image:
        linear-gradient(to right, black 30%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
    mask-image:
        linear-gradient(to right, black 30%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.location-details .watercolor-right {
    top: 75%;
    /* Offset slightly down */
    right: -150px;
    transform: translateY(-50%) rotate(5deg) scale(0.7);

    /* Fade left (inner) and top */
    -webkit-mask-image:
        linear-gradient(to left, black 30%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
    mask-image:
        linear-gradient(to left, black 30%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, black 20%, black 100%);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.watercolor-mobile {
    display: none;
}

/* Animation trigger when parent is visible */
.location-details.visible .watercolor-decoration {
    opacity: 0.8;
}

.location-details.visible .watercolor-left {
    transform: translateY(-50%) rotate(0deg) scale(2);
    /* Rotated -20deg */
    left: -300px;
}

.location-details.visible .watercolor-right {
    transform: translateY(-50%) rotate(0deg) scale(1.8);
    /* Rotated +30deg */
    right: -300px;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .location-details .watercolor-decoration {
        width: 180px;
        /* Larger on mobile too */
        opacity: 0.5;

        /* Mobile rectangular fade */
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
        mask-image:
            linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%),
            linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
        -webkit-mask-composite: source-in;
        mask-composite: intersect;
    }

    .location-details {
        padding-bottom: 240px;
        /* Space for image below button */
        position: relative;
        /*overflow-x: hidden;*/
    }

    /* Hide desktop decorations on mobile */
    .location-details .watercolor-left,
    .location-details .watercolor-right {
        display: none !important;
    }

    /* Show and style mobile decoration */
    .watercolor-mobile {
        display: block;
        position: absolute;
        bottom: 0px;
        left: 50%;
        transform: translateX(-50%) translateY(30px);
        width: 100%;
        max-width: 350px;
        z-index: -1;
        opacity: 0;
        mix-blend-mode: multiply;
        transition: all 1.5s ease-out;
        pointer-events: none;

        /* Fade edges: top and bottom */
        -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%, black 60%, transparent 100%);
        mask-image: linear-gradient(to top, transparent 0%, black 15%, black 60%, transparent 100%);
    }

    .location-details.visible .watercolor-mobile {
        position: absolute;
        left: 50%;
        bottom: -36px;

        width: 100vw;
        /* prende tutto lo schermo */
        max-width: 100vw;

        transform: translateX(-50%) scale(1.5);
        opacity: 0.8;
        pointer-events: none;
    }

    .location-details {
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;

        width: 100vw;
        /*overflow-x: hidden;
        overflow-y: hidden;    🔑 fondamentale */
    }

    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
    }
}

/* Footer */
footer {
    padding: 3rem;
    text-align: center;
    background-color: #fff;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--color-gold);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }

    .names-text {
        font-size: 140px;
        /* Smaller font for mobile */
    }

    .date-container {
        padding: 1.5rem 1rem;
        /* Reduced horizontal padding */
        width: 100%;
        /* Ensure it fits */
        box-sizing: border-box;
    }

    .date {
        font-size: 1.8rem;
    }

    .countdown {
        gap: 1.5rem;
    }

    .time-unit span {
        font-size: 2.5rem;
    }

    .venue-name {
        font-size: 2.2rem;
    }
}

/* =========================================
   TIMELINE SECTION
   ========================================= */

.timeline-section {
    padding: 6rem 2rem;
    position: relative;
    background-color: var(--color-cream);
    overflow: hidden;
    padding-top: 20px;
}

.timeline-section::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--color-gold);
    margin: 0 auto 3rem auto;
    opacity: 0.5;
}

.timeline-title {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.2rem;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

/* Vertical Line Container */
.timeline-line-container {
    position: absolute;
    top: 5px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    z-index: 1;
}

.timeline-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.timeline-path {
    fill: none;
    stroke: var(--color-olive);
    stroke-width: 2;
    stroke-linecap: round;
    stroke: #6B705C;

    /* Animation setup */
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2.5s ease-out;
}

/* Trigger animation when parent (.timeline-container) gets .visible */
.timeline-container.visible .timeline-path {
    stroke-dashoffset: 0;
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    width: 100%;
    z-index: 2;
    min-height: 80px;
    display: flex;
    align-items: center;
    /* Vertically center icon and text with each other? Or top align? */
    justify-content: space-between;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Icon Wrapper (Circle/Placeholder) - CENTERED ABSOLUTELY */
.timeline-icon-wrapper {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-cream);
    z-index: 5;
}

/* The actual Icon/Dot */
.timeline-icon {
    width: 18px;
    height: 18px;
    background-color: transparent;
    border: 2px solid var(--color-olive);
    border-radius: 55% 45% 60% 40% / 50% 60% 40% 50%;
    transition: all 0.4s ease;
}

.timeline-item:hover .timeline-icon {
    background-color: var(--color-olive);
    transform: scale(1.1) rotate(90deg);
}

/* Base columns */
.timeline-content,
.timeline-visual {
    width: 45%;
    position: relative;
    box-sizing: border-box;
}

.timeline-content {
    /* No margins needed with flex justify space-between */
}

/* Visual container for the icon image */
.timeline-visual {
    display: flex;
    align-items: center;
    min-height: 10px;
}

/* Event Icons Style */
.event-icon {
    width: 80px;
    /* Bigger size for the "logo" feel */
    height: auto;
    filter: sepia(0.5) contrast(0.9);
    mix-blend-mode: multiply;
    display: block;
}

.event-icon-horizontal {
    width: 200px;
    /* Wider for horizontal logos */
    height: auto;
}

/* ALTERNATING SIDES LOGIC (Desktop) */

/* Odd items (1, 3, 5): Text Left, Visual right */
.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    padding-right: 40px;
}

.timeline-item:nth-child(odd) .timeline-visual {
    justify-content: flex-start;
    /* Image closest to center line? */
    padding-left: 40px;
}

/* Even items (2, 4, 6): Text Right, Visual Left */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-left: 40px;
}

.timeline-item:nth-child(even) .timeline-visual {
    justify-content: flex-end;
    /* Image closest to center line */
    padding-right: 40px;
}

/* Content Typography */
.timeline-content h4 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-olive);
    margin-bottom: 0.3rem;
    margin-top: 0;
}

.timeline-content p {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 300;
}

/* Inner wrappers removed from CSS as we use direct flex children */
.timeline-content-inner {
    display: contents;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .timeline-title {
        margin-bottom: 3rem;
    }

    /* Keep centered line on mobile */
    .timeline-line-container {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Keep centered dots on mobile */
    .timeline-icon-wrapper {
        width: 32px;
        height: 32px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }

    .timeline-icon {
        width: 14px;
        height: 14px;
    }

    .timeline-item {
        margin-bottom: 3rem;
        /* Keep row direction for centering effects, do NOT force column */
        /* Flex direction is handled by nth-child rules inherited from desktop */
        padding-left: 0;
    }

    .timeline-section {

        overflow: visible;

    }

    /* Adjust widths for narrower screens */
    .timeline-content,
    .timeline-visual {
        width: 42%;
        /* Fit side by side */
    }

    /* Reduce padding around center line */
    .timeline-item:nth-child(odd) .timeline-content {
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-visual {
        padding-left: 20px;
    }

    .timeline-item:nth-child(even) .timeline-content {
        padding-left: 20px;
    }

    .timeline-item:nth-child(even) .timeline-visual {
        padding-right: 20px;
    }

    .event-icon {
        width: 70px;
    }

    .event-icon-horizontal {
        width: 120px;
    }

    /* Tighter text */
    .timeline-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.1rem;
    }

    .timeline-content p {
        font-size: 1.2rem;
    }
}

/* ============================
   GIFT SECTION
   ============================ */


.gift-section {
    padding: 6rem 2rem 6rem 2rem;
    background-color: var(--color-cream);
    text-align: center;
    position: relative;
    /*border-top: 1px solid rgba(212, 175, 55, 0.2);
     Subtle gold divider */
    overflow: hidden;
    padding-top: 9rem; /* spazio extra per il ::before */
}

.gift-section::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-gold);
    opacity: 0.5;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
    margin: 0;
}

.gift-title {
    position: relative;
    display: inline-block;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-olive);
    margin-bottom: 2rem;
    z-index: 1;
}

.gift-title::before,
.gift-title::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 64%;
    width: 158%;
    height: 2.6em;
    background:
        radial-gradient(ellipse at 18% 58%, rgba(245, 240, 230, 0.85) 0%, rgba(245, 240, 230, 0.42) 28%, rgba(245, 240, 230, 0) 58%),
        radial-gradient(ellipse at 42% 38%, rgba(245, 240, 230, 0.98) 0%, rgba(245, 240, 230, 0.8) 34%, rgba(245, 240, 230, 0.12) 60%, rgba(245, 240, 230, 0) 82%),
        radial-gradient(ellipse at 67% 70%, rgba(245, 240, 230, 0.9) 0%, rgba(245, 240, 230, 0.5) 26%, rgba(245, 240, 230, 0) 56%),
        radial-gradient(ellipse at 86% 45%, rgba(245, 240, 230, 0.82) 0%, rgba(245, 240, 230, 0.34) 24%, rgba(245, 240, 230, 0) 54%);
    border-radius: 48% 52% 46% 54% / 58% 44% 56% 42%;
    transform: translate(-50%, -50%) rotate(-4deg);
    filter: blur(18px);
    z-index: -1;
    pointer-events: none;
}

.gift-title::after {
    top: 82%;
    width: 136%;
    height: 1.9em;
    opacity: 0.95;
    border-radius: 58% 42% 54% 46% / 43% 57% 47% 53%;
    transform: translate(-50%, -50%) rotate(5deg);
    filter: blur(15px);
}

.gift-text {
    position: relative;
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    z-index: 1;
}

.gift-text::before,
.gift-text::after {
    content: "";
    position: absolute;
    left: 50%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 16% 60%, rgba(245, 240, 230, 0.84) 0%, rgba(245, 240, 230, 0.34) 24%, rgba(245, 240, 230, 0) 52%),
        radial-gradient(ellipse at 38% 38%, rgba(245, 240, 230, 0.95) 0%, rgba(245, 240, 230, 0.76) 34%, rgba(245, 240, 230, 0.18) 58%, rgba(245, 240, 230, 0) 80%),
        radial-gradient(ellipse at 64% 72%, rgba(245, 240, 230, 0.88) 0%, rgba(245, 240, 230, 0.42) 24%, rgba(245, 240, 230, 0) 56%),
        radial-gradient(ellipse at 86% 48%, rgba(245, 240, 230, 0.8) 0%, rgba(245, 240, 230, 0.28) 22%, rgba(245, 240, 230, 0) 50%);
}

.gift-text::before {
    top: 76%;
    width: 118%;
    height: calc(100% + 1.8rem);
    border-radius: 52% 48% 50% 50% / 44% 56% 46% 54%;
    transform: translate(-50%, -50%) rotate(-2deg);
    filter: blur(18px);
}

.gift-text::after {
    top: 88%;
    width: 98%;
    height: calc(100% + 0.8rem);
    opacity: 0.92;
    border-radius: 45% 55% 47% 53% / 57% 43% 55% 45%;
    transform: translate(-50%, -50%) rotate(3deg);
    filter: blur(14px);
}

.iban-card {
    background: #fff;
    padding: 2.5rem;
    display: inline-block;

    /* Hand Drawn Watercolor Border Effect */
    border: 2px solid rgba(107, 112, 92, 0.5);
    /* Semi-transparent olive for watercolor feel */
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    /* Irregular "hand drawn" shape */

    /* Watercolor bleed effect using box shadows */
    box-shadow:
        0 10px 30px rgba(107, 112, 92, 0.05),
        /* Drop shadow */
        inset 0 0 15px rgba(107, 112, 92, 0.05);
    /* Inner spread */

    transition: all 0.4s ease;
    max-width: 100%;
}

.iban-card:hover {
    transform: translateY(-5px) scale(1.01) rotate(0.5deg);
    border-color: rgba(107, 112, 92, 0.8);
    /* Darken stroke */
    border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
    /* Shift shape like liquid/paper */
    box-shadow:
        0 20px 40px rgba(107, 112, 92, 0.15),
        inset 0 0 20px rgba(107, 112, 92, 0.1);
}

.iban-label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.iban-number {
    font-family: 'Montserrat', monospace;
    /* Monospace-ish feel for numbers */
    font-size: 1.3rem;
    color: var(--color-olive);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    font-weight: 500;
    word-break: break-all;
}

.iban-holder {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.copy-iban-btn {
    background-color: transparent;
    border: 1px solid var(--color-olive);
    color: var(--color-olive);
    padding: 12px 30px;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    /* Pill shape */
}

.copy-iban-btn:hover {
    background-color: var(--color-olive);
    color: white;
}

/* ============================
   RSVP SECTION
   ============================ */
.rsvp-section {
    padding: 6rem 2rem;
    background-color: var(--color-cream);
    text-align: center;
    position: relative;
    padding-top: 9rem; /* spazio per divider */
}

.rsvp-section::before {
    content: "";
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--color-gold);
    opacity: 0.5;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
    margin: 0;
}

.rsvp-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--color-olive);
    margin-bottom: 2rem;
}

.rsvp-text {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.rsvp-btn {
    display: inline-block;
    padding: 18px 50px;
    background-color: var(--color-olive);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(107, 112, 92, 0.3);
}

.rsvp-btn:hover {
    background-color: #555d48;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(107, 112, 92, 0.4);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .gift-title {
        font-size: 2rem;
    }

    .iban-card {
        padding: 2rem 1.5rem;
        width: 100%;
        margin-top: 100px;
    }

    .iban-number {
        font-size: 1.1rem;
    }

    .travel-img-watercolor {
        margin-top: -499px;
    }

    .gift-text::before {
        display: none;
    }
}

/* ============================
   FLORAL DECORATIONS
   ============================ */

.floral-decoration {
    position: absolute;
    z-index: 10;
    pointer-events: none;
    /* Let clicks pass through */

    /* Animation Setup */
    --target-opacity: 0.85;
    /* Default opacity when visible */
    opacity: 0;
    /* Start hidden */
    transition: opacity 2s ease-out;

    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.floral-decoration.visible {
    opacity: var(--target-opacity);
}

/* Flower 1: Hero - Entering from Bottom-Right */
.flower-1 {
    width: 350px;
    /* Large */
    bottom: -100px;
    /* Hide stem */
    right: -80px;
    transform: rotate(-15deg);
}

/* Flower 2: Details - Entering from Left Top */
.flower-2 {
    display: none;
    /* Reduce clutter */
}

/* Flower 3: Details - Entering from Right Middle */
.flower-3 {
    width: 250px;
    top: 6%;
    right: -60px;
    transform: rotate(-45deg);
    /* Pointing in from right */
    --target-opacity: 0.55;
}

/* Flower 4: Timeline - Entering from Left */
.flower-4 {
    width: 300px;
    top: 15%;
    left: -90px;
    transform: rotate(45deg);
    /* Pointing in from left */
    --target-opacity: 0.55;
}

/* Flower 5: Timeline - Entering from Right Bottom */
.flower-5 {
    width: 260px;
    bottom: 50px;
    right: -70px;
    transform: rotate(-30deg);
    --target-opacity: 0.55;
}

/* Flower 6: Gift - Entering from Bottom Left */
.flower-6 {
    width: 320px;
    bottom: -80px;
    left: -80px;
    transform: rotate(20deg);
    --target-opacity: 0.55;
}

/* Mobile Adjustments for flowers */
@media (max-width: 768px) {
    .floral-decoration {
        --target-opacity: 0.4;
        /* Fade more on mobile (default) */
        max-width: 150px;
    }

    .flower-1 {
        width: 180px;
        bottom: -40px;
        right: -30px;
        --target-opacity: 0.55;
    }

    .flower-2 {
        display: none;
        /* Reduce clutter */
    }

    .flower-3 {
        width: 101px;
        top: 48%;
        right: -16px;
        --target-opacity: 0.55;
        rotate: 23deg;
    }

    .flower-4 {
        width: 108px;
        top: -4%;
        left: -45px;
        --target-opacity: 0.55;
        rotate: -23deg;
    }

    .flower-5 {
        top: 86%;
        --target-opacity: 0.55;
    }

    .flower-6 {
        width: 95px;
        bottom: -30px;
        left: -40px;
        --target-opacity: 0.55;
    }
}

@keyframes divider-grow {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 60px;
    opacity: 0.5;
  }
}

.gift-section::before {
    animation: divider-grow 1.2s cubic-bezier(0.6,0,0.4,1);
}

.rsvp-section::before {
    animation: divider-grow 1.2s cubic-bezier(0.6,0,0.4,1);
}

.timeline-section::before {
    animation: divider-grow 1.2s cubic-bezier(0.6,0,0.4,1);
}

.location-details::before {
    animation: divider-grow 1.2s cubic-bezier(0.6,0,0.4,1);
}

.thankyou-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(245,240,230,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}
.thankyou-modal.visible {
    opacity: 1;
    pointer-events: all;
}
.thankyou-modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.10);
    padding: 2.5rem 2rem 2rem 2rem;
    text-align: center;
    max-width: 350px;
}
.thankyou-modal-content h2 {
    color: var(--color-olive);
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}
.thankyou-modal-content p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.calendar-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(245,240,230,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    /* Decorazioni floreali */
    overflow: visible;
}
.calendar-modal.visible {
    opacity: 1;
    pointer-events: all;
}
.calendar-modal-content {
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 4px 24px 0 rgba(191,160,70,0.07);
    padding: 2.2rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    max-width: 340px;
    position: relative;
    border: 1.5px solid var(--color-gold);
    animation: modal-pop 0.7s cubic-bezier(0.6,0,0.4,1);
    font-family: var(--font-sans);
}
.calendar-modal-content h3 {
    color: var(--color-olive);
    font-family: var(--font-sans);
    font-size: 1.08rem;
    margin-bottom: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.calendar-link {
    display: block;
    margin: 0.7em 0;
    padding: 0.8em 0;
    border-radius: 18px;
    background: #fff;
    color: var(--color-olive);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 1.01rem;
    font-weight: 500;
    border: 1.2px solid var(--color-gold);
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    box-shadow: none;
}
.calendar-link.google,
.calendar-link.apple {
    background: #fff;
    color: var(--color-olive);
    border: 1.2px solid var(--color-gold);
}
.calendar-link:hover {
    background: #fffbe9;
    color: var(--color-gold);
    border-color: var(--color-gold);
}
.calendar-modal-close {
    margin-top: 1.2em;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.98rem;
    cursor: pointer;
    text-decoration: underline;
    font-family: var(--font-sans);
    opacity: 0.7;
    transition: color 0.18s, opacity 0.18s;
}
.calendar-modal-close:hover {
    color: var(--color-gold);
    opacity: 1;
}
/* Floreal decorations */
.calendar-modal-content::before {
    content: '';
    position: absolute;
    top: -38px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 110px;
    height: 54px;
    background: url('images/fiori/2.png') no-repeat center/contain;
    opacity: 0.7;
    pointer-events: none;
    z-index: 2;
}

/* Bottone "Aggiungi al calendario" premium */
.calendar-add-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
    animation: fade-in-up 1.2s cubic-bezier(0.6,0,0.4,1);
}
@media (max-width: 600px) {
    .calendar-btn {
        padding: 14px 18px;
        font-size: 0.98rem;
    }
}
.calendar-modal-content::after {
    content: '';
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%) rotate(3deg);
    width: 120px;
    height: 60px;
    background: url('images/fiori/3.png') no-repeat center/contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: 2;
}
@keyframes modal-pop {
    0% { transform: scale(0.85) translateY(40px); opacity: 0; }
    80% { transform: scale(1.04) translateY(-6px); opacity: 1; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
@media (max-width: 600px) {
