/* =============================================
   POPUP DEL GIORNO DEL MATRIMONIO
   Stessi colori e caratteri del sito (style.css)
   ============================================= */

.ed-page-btn { margin-top: 40px; }

.ed-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(10, 22, 54, 0.78);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ed-overlay[hidden] { display: none; }

.ed-modal {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: auto;
    background: #fff;
    color: rgb(18, 38, 84);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(186, 192, 198, 0.5);
    animation: edIn 0.35s ease-out;
}
@keyframes edIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.ed-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ed-modal:focus { outline: none; }
.ed-close:hover { background: rgba(255, 255, 255, 0.25); }

.ed-head {
    background: linear-gradient(135deg, rgb(24, 51, 112) 0%, rgb(18, 38, 84) 100%);
    color: #fff;
    text-align: center;
    padding: 44px 28px 30px;
}
.ed-date { font-size: 13px; letter-spacing: 2px; color: rgb(186, 192, 198); margin-bottom: 14px; text-transform: uppercase; }
.ed-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 600; line-height: 1.1; margin-bottom: 8px; color: #fff; }
.ed-sub { font-size: 18px; font-weight: 300; color: rgb(220, 224, 228); }

.ed-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 16px; }

.ed-share {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    text-align: left;
    padding: 16px 14px 16px 16px;
    background: linear-gradient(135deg, rgb(24, 51, 112), rgb(18, 38, 84));
    color: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(24, 51, 112, 0.35);
    transition: transform 0.25s, box-shadow 0.25s;
    -webkit-tap-highlight-color: transparent;
}
.ed-share:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(24, 51, 112, 0.45); }
.ed-share:active { transform: scale(0.98); }
.ed-share-icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; justify-content: center; }
.ed-share-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ed-share-body { flex: 1; min-width: 0; }
.ed-share-title { display: block; font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; line-height: 1.15; margin-bottom: 4px; color: #fff; }
.ed-share-text { display: block; font-size: 14px; line-height: 1.45; color: rgb(220, 224, 228); }
.ed-share-go { flex-shrink: 0; width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.ed-event { border: 1px solid rgb(220, 224, 228); border-left: 4px solid rgb(186, 192, 198); padding: 18px 18px 20px; background: #fff; }
.ed-event.is-next { border-left-color: rgb(24, 51, 112); background: rgb(246, 248, 252); box-shadow: 0 6px 20px rgba(24, 51, 112, 0.12); }
.ed-event-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.ed-time { font-size: 26px; font-weight: 700; color: rgb(24, 51, 112); letter-spacing: 1px; }
.ed-event h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; color: rgb(24, 51, 112); }
.ed-place { font-size: 16px; line-height: 1.6; color: rgb(18, 38, 84); margin-bottom: 8px; }
.ed-note { font-size: 15px; line-height: 1.5; color: rgb(24, 51, 112); font-weight: 600; margin-bottom: 14px; }
.ed-place + .ed-btn { margin-top: 8px; }

.ed-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 15px 18px;
    background: #fff;
    color: rgb(24, 51, 112);
    border: 2px solid rgb(24, 51, 112);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
}
.ed-btn:hover, .ed-btn:focus-visible { background: rgb(24, 51, 112); color: #fff; }

.ed-pill {
    position: fixed;
    left: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 9990;
    padding: 14px 22px;
    border: 2px solid rgb(186, 192, 198);
    background: rgb(24, 51, 112);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-radius: 999px;
}
.ed-pill[hidden] { display: none; }

.ed-close:focus-visible, .ed-btn:focus-visible, .ed-share:focus-visible, .ed-pill:focus-visible { outline: 3px solid rgb(186, 192, 198); outline-offset: 2px; }

body.ed-lock { overflow: hidden; }

@media (max-width: 480px) {
    .ed-head { padding: 40px 20px 26px; }
    .ed-head h2 { font-size: 32px; }
    .ed-body { padding: 16px 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .ed-modal { animation: none; }
}

/* Sezione "oggi" al posto del countdown in homepage */
.countdown.ed-inline { padding: 70px 20px 80px; }
.countdown.ed-inline .section-title { margin-bottom: 10px; }
.ed-inline-sub { margin-top: 0; margin-bottom: 28px; font-size: 18px; font-weight: 300; color: rgb(24, 51, 112); }
.ed-inline-body { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; text-align: left; }
@media (max-width: 480px) { .countdown.ed-inline { padding: 50px 14px 60px; } .ed-inline-sub { margin-bottom: 20px; } .countdown.ed-inline .section-title { font-size: 40px; } }
