html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f5f5f5;
}

/* --- DESKTOP / TABLET ORIZZONTALE --- */
@media (min-width: 901px) {
    body {
        margin: 0;
    }

    .wedding-wrapper {
        height: 100vh; /* blocchiamo il wrapper alla viewport */
        display: flex;
    }

    .wedding-panel-left,
    .wedding-panel-right {
        height: 100vh; 
    }

    .wedding-panel-right {
        overflow-y: auto;  
        padding-right: 1rem;
    }

    .wedding-panel-left {
    }
}

/* Layout principale a due pannelli */

.wedding-wrapper {
    min-height: 100vh;
    display: flex;
}

.wedding-panel-left,
.wedding-panel-right {
    flex: 1 1 50%;
    position: relative;
}

@media (max-width: 1200px) {
    html, body {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .wedding-wrapper {
        min-height: 100svh;
        flex-direction: column;
    }

    .wedding-panel-left,
    .wedding-panel-right {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .wedding-panel-left {
        min-height: 42svh;
    }

    .wedding-panel-left::before {
        background-position: center 24%;
    }

    .wedding-names-block {
        left: 1.2rem;
        right: 1.2rem;
        bottom: 0.9rem;
        max-width: none;
    }

    .wedding-subtitle {
        display: none;
    }

    .wedding-names-line1,
    .wedding-names-line2 {
        font-size: 2.2rem;
    }

    .wedding-panel-right {
        overflow: visible;
        padding: 1rem;
    }

    .wedding-card-stack {
        max-width: 760px;
        margin: 1rem auto 1.5rem;
        gap: 1rem;
    }

    .wedding-card {
        max-width: none;
        padding: 1.3rem 1rem;
    }

    .invite-title {
        font-size: 1.05rem;
        letter-spacing: 0.12em;
    }

    .map-preview {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .wedding-panel-left {
        min-height: 34svh;
    }

    .wedding-card {
        padding: 1.1rem 0.9rem;
    }

    .invite-text {
        font-size: 0.88rem;
    }
}

/* Pannello sinistro */
    .wedding-panel-left::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url("images/sfondo_wedding.png");
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        opacity: 0.75;
        pointer-events: none;
    }

/* Icona menu (hamburger) */

.menu-icon {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 28px;
    background: rgba(0,0,0,0.25);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
}

    .menu-icon::before,
    .menu-icon::after,
    .menu-icon span {
        content: "";
        position: absolute;
        left: 7px;
        right: 7px;
        height: 2px;
        background: #ffffff;
        border-radius: 2px;
    }

    .menu-icon::before {
        top: 8px;
    }

    .menu-icon::after {
        bottom: 8px;
    }

    .menu-icon span {
        top: 50%;
        transform: translateY(-50%);
    }

/* Nomi in basso a sinistra */

.wedding-names-block {
    position: absolute;
    left: 2.5rem;
    bottom: 2.5rem;
    max-width: 420px;
}

.script-font {
    font-family: "Great Vibes", "Allura", "Dancing Script", cursive;
}

.wedding-names-line1,
.wedding-names-line2 {
    font-size: 2.8rem;
    line-height: 1;
}

.wedding-names-line2 {
    margin-top: -0.2rem;
}

.wedding-subtitle {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Pannello destro */

.wedding-panel-right {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
    overflow-y: auto;
    padding: 0rem 2rem;
}

    /* qui metti la tua immagine floreale (PNG trasparente) */
    .wedding-panel-right::before {
        content: "";
        position: absolute;
        inset: 0;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
        opacity: 0.75;
        pointer-events: none;
    }

/* Card centrale */
.wedding-card-stack {
    display: flex;
    flex-direction: column; /* mette le card una sotto l'altra */
    gap: 1.5rem; /* spazio verticale tra le card */
    max-width: 420px;
    width: 100%;
    margin: 2.5rem 0 3rem;
}

.wedding-card {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.9);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 420px;
    width: 100%;
}

.map-preview {
    width: 100%;
    height: 220px;
    margin: 0.8rem 0 0.9rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.map-preview iframe {
    width: 100%;
    height: 100%;
}

/* link testuali nelle card (per Google Maps) */
.card-link {
    display: inline-block;
    font-size: 0.85rem;
    text-decoration: underline;
    color: inherit;
    margin-bottom: 0.4rem;
}

/* piccola riga separatrice dentro la card */
.card-divider {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 1rem 0;
}

/* bottone usato come link (planning / lista nozze) */
.secondary-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.invite-title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.5rem;
}

.invite-text {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.6rem;
}

.invite-day {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 0.3rem;
}

.invite-date {
    font-size: 1.4rem;
    margin: 0.4rem 0;
}

.invite-location {
    font-size: 0.95rem;
    margin-bottom: 1.6rem;
}

/* Bottoni */

.primary-btn {
    border-radius: 999px;
    border: 2px solid #7ea889;
    padding: 0.7rem 1.8rem;
    background: #7ea889;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

    .primary-btn:hover {
        background: transparent;
        color: #7ea889;
    }

.full-width {
    width: 100%;
    margin-top: 0.75rem;
}

.invite-details-link {
    margin-top: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Form RSVP */

.rsvp-form-wrapper {
    margin-top: 1.8rem;
    text-align: left;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
}

.form-row {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
}

    .form-row label {
        margin-bottom: 0.25rem;
    }

.input {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 0.45rem 0.6rem;
    font-size: 0.9rem;
}

.validation-message {
    font-size: 0.75rem;
    color: #b3261e;
}

.success-message {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* PAGINE DI DETTAGLIO (RSVP, PLANNING, LISTA NOZZE, ECC.) */



/* PAGINE DI DETTAGLIO COMUNI (RSVP, PLANNING, LISTA NOZZE, ...) */

.detail-page {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 1.8rem 1.5rem; /* padding non esagerato, così non “sfora” */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto; /* la pagina scrolla SOLO se il contenuto è più alto */
    overflow-x: hidden;
}

    /* sfondo: fissato alla viewport, così NON allarga la pagina */
    .detail-page::before {
        content: "";
        position: fixed;
        inset: 0;
        background-color: #f8f8f8;
        background-image: url("images/wedding_background.png");
        background-repeat: no-repeat;
        background-position: center top;
        filter: blur(8px);
        opacity: 0.35; /* ?? molto più delicata */
        z-index: -1;
    }

.detail-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.detail-card {
    max-width: 900px;
    width: 100%;
    background: rgba(255,255,255,0.97);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    padding: 2rem 2rem;
}

.detail-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 1rem;
}

.detail-text {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* MOBILE */
@media (max-width: 900px) {
    .detail-page {
        height: 100vh;
        min-height: 100vh;
        padding: 1.5rem 1.2rem;
    }

    .detail-card {
        padding: 1.6rem 1.3rem;
        border-radius: 18px;
    }

    .detail-page::before {
        background-size: 110% auto; /* un po' più grande su mobile */
        filter: blur(10px);
        opacity: 0.3;
    }
}

/* Pianificazione dettagli pagina */

.planning-card {
    max-width: 900px;
    --planning-accent: #7ea889;
}

.planning-page-title,
.planning-page-subtitle,
.planning-section-title {
    text-align: center;
}

.planning-page-title {
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
}

.planning-page-subtitle {
    margin-bottom: 2rem;
}

.planning-section-title {
    margin: 0 0 1.6rem;
    font-size: 1.45rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.planning-timeline {
    position: relative;
    display: grid;
    gap: 1.2rem;
    padding: 0.4rem 0 0.5rem;
}

.planning-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: color-mix(in srgb, var(--planning-accent) 75%, white);
    transform: translateX(-50%);
}

.planning-event {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 0 6.2rem;
}

.planning-panel {
    max-width: 350px;
    background: rgba(255,255,255,0.94);
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    padding: 1rem 1.1rem;
}

.planning-event.left .planning-panel {
    grid-column: 1;
    justify-self: end;
    margin-right: 2.2rem;
}

.planning-event.right .planning-panel {
    grid-column: 2;
    justify-self: start;
    margin-left: 2.2rem;
}

.planning-time-pill {
    position: absolute;
    top: 50%;
    background: var(--planning-accent);
    color: #fff;
    border-radius: 999px;
    padding: 0.28rem 0.95rem;
    font-size: 0.82rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    min-width: 66px;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.55s ease-out;
}

.planning-event.left .planning-time-pill {
    left: 1rem;
    transform: translateY(-50%) translateX(-110vw);
}

.planning-event.right .planning-time-pill {
    right: 1rem;
    transform: translateY(-50%) translateX(110vw);
}

.planning-event.left .planning-time-pill.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.planning-event.right .planning-time-pill.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.planning-heading {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.planning-icon {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--planning-accent) 18%, white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
    flex-shrink: 0;
}

.planning-description {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #444;
}

@media (max-width: 900px) {
    .planning-section-title {
        font-size: 1.25rem;
    }

    .planning-timeline::before {
        left: 18px;
        transform: none;
    }

    .planning-event {
        grid-template-columns: 1fr;
        padding-left: 4.2rem;
        padding-right: 0;
        padding-top: 1.8rem;
    }

    .planning-event .planning-panel {
        grid-column: 1;
        justify-self: stretch;
        max-width: none;
        margin: 0;
    }

    .planning-time-pill,
    .planning-event.right .planning-time-pill,
    .planning-event.left .planning-time-pill {
        left: 0;
        right: auto;
        top: 0;
        transform: translateX(-100vw);
    }

    .planning-time-pill.is-visible,
    .planning-event.right .planning-time-pill.is-visible,
    .planning-event.left .planning-time-pill.is-visible {
        opacity: 1;
        transform: translateX(0);
    }

    .planning-heading {
        font-size: 0.96rem;
    }

    .planning-description {
        font-size: 0.88rem;
    }
}

/* RSVP FORM - Multiple Participants */

.participants-section {
    margin: 2rem 0 1.5rem;
    padding: 1.4rem;
    background: rgba(126, 168, 137, 0.05);
    border-radius: 14px;
    border: 1px solid rgba(126, 168, 137, 0.15);
}

.participants-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.participants-subtitle {
    margin: 0 0 1.2rem;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.participants-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 1rem;
}

.participant-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.participant-number {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

.participant-remove-btn {
    background: transparent;
    border: 1px solid #ccc;
    color: #999;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.participant-remove-btn:hover {
    border-color: #b3261e;
    color: #b3261e;
    background: rgba(179, 38, 30, 0.05);
}

.add-participant-btn {
    background: transparent;
    border: 2px dashed rgba(126, 168, 137, 0.5);
    color: #7ea889;
    padding: 0.75rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    width: 100%;
}

.add-participant-btn:hover {
    border-color: #7ea889;
    background: rgba(126, 168, 137, 0.08);
}

@media (max-width: 900px) {
    .participants-section {
        padding: 1.1rem;
        margin: 1.5rem 0 1rem;
    }

    .participant-card {
        padding: 0.9rem;
    }

    .participants-title {
        font-size: 1rem;
    }
}

/* GIFT REGISTRY PAGE */

.registry-card {
    max-width: 980px;
}

.registry-page-title,
.registry-page-subtitle {
    text-align: center;
}

.registry-page-title {
    margin-top: 0.2rem;
    margin-bottom: 0.8rem;
}

.registry-page-subtitle {
    margin-bottom: 2rem;
}

.registry-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.registry-section {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(126, 168, 137, 0.2);
    border-radius: 16px;
    padding: 1.6rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.registry-section-title {
    margin: 0 0 1.2rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.registry-section-text {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 1.2rem;
}

.registry-cta-btn {
    display: inline-block;
    background: #7ea889;
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    border: 2px solid #7ea889;
}

.registry-cta-btn:hover {
    background: transparent;
    color: #7ea889;
}

.registry-note {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

/* MONEY METHODS */

.money-method {
    background: rgba(126, 168, 137, 0.05);
    border: 1px solid rgba(126, 168, 137, 0.15);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
}

.money-method:last-child {
    margin-bottom: 0;
}

.money-method-title {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 0.03em;
}

.money-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
}

.money-label {
    font-weight: 600;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.money-value {
    color: #333;
    word-break: break-all;
    font-family: "Courier New", monospace;
}

.money-link {
    color: #7ea889;
    text-decoration: none;
    font-family: "Courier New", monospace;
}

.money-link:hover {
    text-decoration: underline;
}

.money-description {
    margin: 0.6rem 0 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
}

/* LOCATION PAGE */

.location-card-main {
    max-width: 980px;
}

.location-section {
    margin-bottom: 2rem;
}

.location-section:last-child {
    margin-bottom: 0;
}

.location-section-title {
    margin: 0 0 1.4rem;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.location-map-wrapper {
    width: 100%;
    height: 350px;
    margin-bottom: 1.6rem;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.location-map-wrapper iframe {
    width: 100%;
    height: 100%;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    margin-bottom: 1.6rem;
}

.location-card {
    background: rgba(126, 168, 137, 0.05);
    border: 1px solid rgba(126, 168, 137, 0.15);
    border-radius: 14px;
    padding: 1.4rem;
}

.location-card-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #333;
}

.location-detail {
    margin-bottom: 1rem;
}

.location-detail:last-child {
    margin-bottom: 0;
}

.location-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
    letter-spacing: 0.03em;
}

.location-text {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.location-divider {
    border: 0;
    border-top: 1px solid rgba(126, 168, 137, 0.2);
    margin: 2rem 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .location-map-wrapper {
        height: 280px;
        margin-bottom: 1.4rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .location-card {
        padding: 1.2rem;
    }

    .location-section-title {
        font-size: 1.15rem;
    }
}



