.tangerine-regular {
    font-family: "Tangerine", cursive;
    font-weight: 400;
    font-style: normal;
}

.tangerine-bold {
    font-family: "Tangerine", cursive;
    font-weight: 700;
    font-style: normal;
}

:root {
    --sage: #9bb59b;
    --sage-600: #7f9a84;
    --sage-50: #f3f6f3;
    --ink: #2b2b2b;
    --muted: #6b6b6b;
    --paper: #fcfbf8;
    --gold: #c2a878;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, .08);
    --shadow-elev: 0 30px 60px rgba(0, 0, 0, .14);
    --transition: 300ms cubic-bezier(.2, .7, .2, 1);
    --s1: clamp(8px, 1.6vw, 12px);
    --s2: clamp(12px, 2.2vw, 16px);
    --s3: clamp(16px, 2.8vw, 22px);
    --s4: clamp(22px, 3.6vw, 32px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.35;
    background:
        radial-gradient(1200px 800px at 100% -20%, rgba(155, 181, 155, .15), transparent 60%),
        radial-gradient(1000px 600px at -10% 100%, rgba(155, 181, 155, .12), transparent 60%),
        var(--sage-50);
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

:focus-visible {
    outline: 3px solid var(--sage-600);
    outline-offset: 2px;
    border-radius: 8px
}

@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto
    }
}

/* VIEWPORT / SCENA LETTERA */
.viewport {
    min-height: 100dvh;
    width: 100vw;
    display: grid;
    place-items: center;
    padding: 0;
    margin: 0;
}

.letter-scene {
    width: 100vw;
    height: 100dvh;
    perspective: 1400px;
    position: relative;
}

/* ENVELOPE full-bleed su mobile */
.envelope {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(180deg, #fff, var(--paper));
    box-shadow: var(--shadow-elev);
    overflow: hidden;
    transform-style: preserve-3d;
    isolation: isolate;
    /* give a little extra local perspective for flap/card interaction */
    perspective: 1400px;
    --flap-shadow-opacity: 0.28;
}

@media (min-width:900px) {
    .envelope {
        border-radius: var(--radius-lg);
        width: min(840px, 100%);
        height: min(86vh, 900px);
        margin: 0 auto;
        top: calc((100dvh - min(86vh, 900px))/2);
    }
}

.envelope__base {
    position: absolute;
    inset: 0;
    /* slightly warmer paper for the base so flap reads on top */
    background: linear-gradient(180deg, #f7f1e6 0%, var(--paper) 40%);
    border: 1px solid rgba(0, 0, 0, .06);
    z-index: 1;
    /* subtle top inset shadow to receive flap when closed */
    box-shadow: inset 0 8px 18px rgba(0,0,0,0.03);
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.envelope__flap {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 56%;
    transform-origin: top center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* visually thicker flap with subtle paper gradient */
    background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,240,233,1));
    /* subtle inner paper texture using conic gradient overlay */
    background-image: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,240,233,1)), conic-gradient(from 180deg at 50% 100%, rgba(0,0,0,0.04), transparent 40%);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    /* make the flap movement feel snappier and more natural: small delay + smooth curve */
    transition: transform 1100ms cubic-bezier(.18,.9,.2,1) 80ms, box-shadow 380ms ease;
    z-index: 12; /* ensure flap sits clearly above base and content */
    border: 3px solid var(--sage);
    box-shadow: 0 22px 48px rgba(0,0,0,0.14);
    /* subtle bevel at the flap edge */
    --flap-edge-height: 6px;
}

/* flap thickness / shadow that is cast onto the card when flap opens */
.envelope__flap::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -6px;
    width: 130%;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,var(--flap-shadow-opacity)), transparent 60%);
    filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease, transform 1100ms cubic-bezier(.18,.9,.2,1);
    z-index: 2;
}

/* small crease line for realism */
.envelope__flap::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -2px;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(255,255,255,0.06));
    opacity: 0.6;
    pointer-events: none;
    z-index: 6;
}

/* CARD (lettera) */
.card {
    position: absolute;
    left: 50%;
    top: 50%;
    /* start slightly below and a bit smaller so it can "swipe up" into place */
    transform: translate(-50%, 20%) scale(0.96);
    width: min(92vw, 760px);
    height: min(86vh, 820px);
    background: linear-gradient(180deg, #ffffff, #fbfaf6);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: var(--shadow-soft);
    padding: var(--s4);
    z-index: 2;

    opacity: 0;
    /* keep transitions for quick interactive changes, but the main entrance uses an animation */
    transition: box-shadow 300ms ease, transform 220ms ease;
}

/* Card visibile dopo apertura */
.card.is-open {
    /* swipe-up animation: preset C -> cubic-bezier easing, 550ms delay */
    animation: cardSwipeUp 900ms cubic-bezier(.22,.8,.2,1) 550ms forwards;
}

@keyframes cardSwipeUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20%) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Flap che si apre */
.envelope.open .envelope__flap {
    /* stronger rotation + slight translateZ to visually detach the flap */
    transform: rotateX(170deg) translateZ(18px) translateY(-6px);
    transition: transform 1100ms cubic-bezier(.18,.9,.2,1) 80ms, box-shadow 380ms ease 80ms;
    box-shadow: 0 36px 80px rgba(0,0,0,0.22);
}

.envelope.open .envelope__flap::after {
    /* when flap opens, make the shadow on the card visible */
    opacity: 1;
    transform: translateX(-50%) translateY(12px) scale(1.03);
}

/* when flap opens, card should sit slightly lower/away and get a deeper shadow */
.envelope.open .card {
    transform: translate(-50%, -52%) scale(1) rotateX(1deg);
    box-shadow: 0 48px 100px rgba(0,0,0,0.26);
}

/* When flap is closed, darken the little seam to separate flap/base visually */
.envelope .envelope__flap {
    box-shadow: 0 8px 18px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.04) inset;
}

.envelope:not(.open) .envelope__flap::after {
    /* faint seam shadow visible when flap closed */
    opacity: 0.55;
    transform: translateX(-50%) translateY(0);
}

.envelope.open .envelope__base {
    /* reduce top inset when open so base looks lighter under the flap */
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.02);
}

/* additional visual cue: darken inner base when envelope opens */
.envelope__base::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 60% at 50% 12%, rgba(0,0,0,0.12), transparent 35%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 380ms ease;
    z-index: 2;
}

.envelope.open .envelope__base::after {
    opacity: 1;
}

/* SIGILLO SEMPLICE TRASPARENTE PER IMMAGINE */
.seal {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  
  width: clamp(92px, 22vw, 124px);
  height: clamp(92px, 22vw, 124px);

  background: transparent;
  border: none;
  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 999;
}

/* L'immagine del sigillo */
.seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* mantiene proporzioni */
  pointer-events: none; /* evita click sulla img invece che sul bottone */
}



/* QUESTO è il pezzo che lo fa sparire */
.envelope.open .seal {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -70%) scale(.94);
}

.envelope.open .seal {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -70%) scale(.94)
}

/* HINT */
.hint {
    position: absolute;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 60px);
    font-weight: 500;
    z-index: 5;
    animation: breath 2.3s ease-in-out infinite;
    transition: opacity .5s ease, visibility .5s ease;
    width: 60px;
    height: 60px;
    rotate: 341deg;
}

@keyframes breath {

    0%,
    100% {
        opacity: .6
    }

    50% {
        opacity: .1
    }
}

.hint img {
    width: 100%;
}

.hide {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    animation: none;
    display: none;
}

.envelope.open~.hint {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    animation: none;
}

/* HEAD + PAGINA */
.invite-head h2 {
    letter-spacing: .3px;
    margin: 0 0 2px;
    text-align: center;
    font-size: clamp(42px, 8vw, 56px);
}

.invite-head p {
    margin: 4px 0 0;
    color: var(--muted);
    text-align: center;
}

.pages {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    height: 100%;
}

.page {
    place-items: center;
    padding: var(--s1);
    background: linear-gradient(180deg, #fff, #fbfbf7);
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    min-height: calc(100% - 10px);
    text-align: center;
    position: relative;
}

.intro-copy {
    max-width: 52ch;
    font-size: clamp(16px, 3.8vw, 18px);
    color: var(--ink);
    margin: 2em auto 1em auto;
    padding: 5px;
    background: rgb(250, 250, 250, 0.6);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    box-shadow: 1px 1px 5px rgb(0, 0, 0, 0.2);
    opacity: 0;
}

.card.is-open .intro-copy {
    animation: fadeInText 1s ease forwards 0.5s;
    animation-delay: 2s;
}

@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-names {
    font-size: clamp(60px, 8vw, 52px);
    margin: 6px 0 4px;
}

.intro-date {
    color: var(--muted)
}

.divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 18px auto;
}

/* ICONE & CTA */
.icon-row {
    margin-top: 14px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.icon-chip {
    --size: 48px;
    width: var(--size);
    height: var(--size);
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid #9bb59b85;
    color: var(--sage);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    text-decoration: none;
    font-size: 18px;
    z-index: 2;
    position: relative;
    background: rgba(250, 250, 250, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 1px 1px 11px 0px rgba(0, 0, 0, 0.3);
}

.icon-chip:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 0, 0, .2);
    background: linear-gradient(180deg, #ffffff, #f7f4ee);
}

.icon-chip:active {
    transform: translateY(0)
}

.icon-box {
    position: relative;
    min-height: 240px;
}

.gift-label {
    margin-left: -10px;
    padding-left: 10px;
    opacity: 0;
}

.card.is-open .gift-label{
    /* animation shorthand: name duration timing-function delay fill-mode */
    animation: fadeInLeft 1s ease 2.5s forwards;
    animation-delay: 2.5s;
}

.restaurant {
    position: absolute;
    bottom: 75%;
    left: 20px;
   
}


.church {
    position: absolute;
    right: 20px;
    z-index: 999;
    bottom: 75%;
}

.gift {
    left: 20px;
    position: absolute;
    bottom: 30%;
    z-index: 999;
}

label {
    background: var(--sage);
    padding: 4px 6px;
    color: white;
    font-size: 12px;
    font-family: "Caveat", cursive;
}

.chi {
    position: absolute;
    top: 50%;
    transform: translate(0px, -50%);
    left: -50px;
    padding-right: 15px;
    opacity: 0;
}

.card.is-open .chi{
    animation: fadeInRight 1s ease 2.5s forwards;
    animation-delay: 2s;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(20px) translateY(-50%);
        will-change: transform, opacity;
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.rest {
    padding-left: 20px;
    margin-left: -15px;
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

.card.is-open .rest{
    /* animation shorthand: name duration timing-function delay fill-mode */
    animation: fadeInLeft 1s ease 2.5s forwards;
    animation-delay: 1.5s;
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        /* do not use commas inside transform() — use space-separated transforms */
        transform: translateX(-20px) translateY(-50%);
        /* help performance */
        will-change: transform, opacity;
    }

    100% {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.bottom-img {
    position: absolute;
    z-index: 0;
    bottom: -30px;
    left: 10px;
    width: 200px;
    height: 300px;
}

.flower-1 {
    position: absolute;
    z-index: 0;
    left: -200px;
    top: -200px;
    rotate: 26deg;
    opacity: 0.23;
}

.flower-2 {
    position: absolute;
    z-index: 1;
    height: 180px;
    width: 180px;
    rotate: 21deg;
    bottom: 0px;
    left: -40px;
}

.flower-2 img {
    width: 100%;
}

@media (max-width: 520px) {
    .card {
        padding: var(--s3);
        height: 100%;
        margin-top: .5em;
    }
}

/* —— Modal RSVP —— */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    z-index: 1000;
}

.modal-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto;
}

.modal-card {
    width: min(96vw, 760px);
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-elev);
    border: 1px solid rgba(0, 0, 0, .06);
    overflow: hidden;
    position: relative;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    background: linear-gradient(180deg, #ffffff, #fbfbf7);
}

.modal-title {
    font-family: 'Playfair Display', serif;
    margin: 0;
    font-size: 20px;
}

.modal-close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
}

.modal-close:focus {
    outline: 2px solid var(--sage-600);
    outline-offset: 2px;
}

.modal-body {
    padding: 0;
}

.modal-body iframe {
    width: 100%;
    height: 72vh;
    min-height: 520px;
    border: 0;
}

@media (max-width:600px) {
    .modal-card {
        width: min(98vw, 640px);
    }

    .modal-body iframe {
        height: 82vh;
        min-height: 520px;
    }
}

.modal-card .flower-2 {
    rotate: 23deg;
    top: -80px;
    bottom: auto;
    left: -40px;
}

/* DATE LAYOUT ELEGANTE */
.date-wrap {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-family: 'Playfair Display', serif;
}

.date-side {
    font-size: clamp(16px, 3.8vw, 18px);
    color: var(--muted);
    letter-spacing: .5px;
}

/* ROMBO PERFETTAMENTE CENTRATO */
.date-diamond {
    width: 70px;
    height: 70px;
    background: white;
    border: 1px solid rgba(194, 168, 120, .55);
    transform: rotate(45deg);
    transform-origin: center center;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    position: relative;
}

.date-inner {
    transform: rotate(-45deg);
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}

.date-number {
    font-size: clamp(22px, 6vw, 30px);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.1;
}

.date-year {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--sage-600);
    letter-spacing: .5px;
    margin-top: 2px;
}

@media (max-width: 420px) {
    .date-wrap {
        gap: 14px;
    }

    .date-diamond {
        width: 58px;
        height: 58px;
    }
}

.hours {
    display: block;
    margin-top: 15px;
    font-size: clamp(14px, 3vw, 16px);
    color: var(--muted);
    letter-spacing: .5px;
    font-family: 'Playfair Display', serif;
}

/* =========================
   ANIMAZIONE DATA ELEGANTE
   ========================= */

/* Stato iniziale: blocco data leggermente più in basso e trasparente */
.date-wrap {
    opacity: 0;
    transform: translateY(14px);
}

/* Quando la card si apre */
.card.is-open .date-wrap {
    animation: dateWrapIn 0.7s cubic-bezier(.23, 1, .32, 1) forwards;
}

/* Rombo: micro-zoom con leggero “overshoot” */
.date-diamond {
    transform: rotate(45deg) scale(0.8);
}

.card.is-open .date-diamond {
    animation: diamondIn 0.8s cubic-bezier(.23, 1.1, .32, 1) 0.1s forwards;
}

/* Testi laterali: entrano leggermente dai lati */
.date-side {
    opacity: 0;
}

.card.is-open .date-side.left {
    animation: dateSideLeftIn 0.6s ease-out 0.15s forwards;
}

.card.is-open .date-side.right {
    animation: dateSideRightIn 0.6s ease-out 0.15s forwards;
}

/* Numero e anno: leggero fade-up con ritardo */
.date-number,
.date-year {
    opacity: 0;
    transform: translateY(6px);
}

.card.is-open .date-number {
    animation: dateNumberIn 0.5s ease-out 0.2s forwards;
}

.card.is-open .date-year {
    animation: dateYearIn 0.5s ease-out 0.3s forwards;
}

/* -------- KEYFRAMES -------- */

@keyframes dateWrapIn {
    0% {
        opacity: 0;
        transform: translateY(14px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes diamondIn {
    0% {
        transform: rotate(45deg) scale(0.8);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    60% {
        transform: rotate(45deg) scale(1.04);
        box-shadow: 0 10px 26px rgba(0, 0, 0, .10);
    }

    100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    }
}

@keyframes dateSideLeftIn {
    0% {
        opacity: 0;
        transform: translateX(-14px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dateSideRightIn {
    0% {
        opacity: 0;
        transform: translateX(14px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes dateNumberIn {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dateYearIn {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}




.seal-monogram {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: clamp(30px, 9vw, 36px);
    color: #92af92;
    letter-spacing: .20rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}


.link-txt {
    color: var(--sage);
    font-family: 'Playfair Display';
    font-size: 12px;
    border: 1px solid var(--sage);
    padding: 4px 8px;
    cursor: pointer;
    position: relative;
    z-index: 999;
    margin-top: -15px;
    border-radius: 15px;
    box-shadow: 1px 1px 5px rgb(0, 0, 0, 0.2);
    background: var(--paper);
}

.dress-section {
    position: absolute;
    z-index: 999;
    bottom: 30%;
    right: 20px;
    opacity: 0;
}

.card.is-open .dress-section{
    animation: bounceInUp 1s ease 2.5s forwards;
    animation-delay: 3s;
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(100%);
        will-change: transform, opacity;
    }

    60% {
        opacity: 1;
        transform: translateY(-10%);
    }

    80% {
        transform: translateY(5%);
    }

    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}

.dress-grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    gap: 5px;
}

.dress-grid>div {
    border-radius: 100%;
    width: 18px;
    height: 18px;
    box-shadow: 1px 1px 5px rgb(0, 0, 0, 0.2);
}

.dress-section>label {
    width: 80%;
    display: block;
    margin: 10px auto;
    box-shadow: 1px 1px 5px rgb(0, 0, 0, 0.2);
}

.sage {
    background: #89a187;
}

.clear-sage {
    background: #aeb997;
}

.pinky {
    background: #f0c7c1;
}

.panna {
    background: #fdf6e6;
}


/* =========================
   INTRO NAMES – TYPING EFFECT
   ========================= */

.intro-names {
    position: relative;
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;

    /* stato iniziale */
    width: 0;
    opacity: 0;

    /* manteniamo il resto della tua estetica (font già da .tangerine-regular) */
}

/* Quando la card si apre, parte il typing */
.card.is-open .intro-names {
    animation: introTyping 2s steps(18, end) 0.55s forwards;
}

/* Curset “elegante” alla fine del testo */
.intro-names::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0px;

    width: 2px;
    height: 1.2em;
    background: var(--sage-600);

    opacity: 0;
}

/* Il cursore lampeggia solo quando la scritta sta “scrivendo” */
.card.is-open .intro-names::after {
    animation: caretBlink 0.75s step-end infinite,
    hideCaret 0s linear forwards 2.55s;
}


/* -------- KEYFRAMES -------- */

/* Digita gradualmente da 0 a N caratteri */
@keyframes introTyping {
    0% {
        width: 0;
        opacity: 1;
    }

    100% {
        width: 14ch;
        opacity: 1;
    }
}

/* Lampeggio del cursore */
@keyframes caretBlink { 

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Svuota il cursore a fine typing */
@keyframes hideCaret {
  to { opacity: 0; }
}

.caveat-regular {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.rsvp-section {
    position: absolute;
    z-index: 999;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
}

.main-cta {
    padding: 8px;
    min-width: 200px;
    background: rgb(250, 250, 250, 0.6);
    backdrop-filter: blur(3px);
    border-radius: 15px;
    box-shadow: 1px 1px 5px rgb(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.main-cta:hover {
    box-shadow: 2px 2px 8px rgb(0, 0, 0, 0.3);
}

.main-cta label {
    margin-top: 14px;
    border-radius: 10px;
    font-size: 16px;
}