/* ===== VARIABILI ===== */
:root {
    --gold: #c9a876;
    --gold-dark: #a68560;
    --gold-light: #e8ddd0;
    --cream: #fdfaf6;
    --cream-mid: #f8f4ee;
    --dark: #2a2318;
    --dark-mid: #3a3228;
    --text: #4a3f30;
    --text-light: #7a6e62;
    --white: #ffffff;
    --border: rgba(201, 168, 118, 0.2);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
    color: var(--text);
    background-color: var(--cream);
    font-size: 18px;
    line-height: 1.85;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ===== PAGE LOADER ===== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--cream);
    overflow: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: loaderFadeUp 0.9s ease both;
}
.loader-logo {
    width: min(190px, 54vw);
    height: auto;
    display: block;
    margin: 0 auto 24px;
    mix-blend-mode: multiply;
}
.loader-ornament {
    width: 180px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
.loader-ornament span {
    height: 1px;
    flex: 1;
    background: linear-gradient(to right, transparent, rgba(201, 168, 118, 0.65));
}
.loader-ornament span:last-child {
    background: linear-gradient(to left, transparent, rgba(201, 168, 118, 0.65));
}
.loader-ornament i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    animation: loaderPulse 1.25s ease-in-out infinite;
}
.loader-content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 7vw, 58px);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    color: var(--dark);
    margin-bottom: 16px;
}
.loader-content small {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-dark);
}
.loader-watercolor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(34px);
}
.loader-watercolor-left {
    width: 380px;
    height: 340px;
    top: -80px;
    left: -100px;
    background: radial-gradient(ellipse at center, rgba(201,168,118,0.13) 0%, rgba(232,221,208,0.08) 45%, transparent 70%);
}
.loader-watercolor-right {
    width: 420px;
    height: 360px;
    right: -110px;
    bottom: -100px;
    background: radial-gradient(ellipse at center, rgba(201,168,118,0.11) 0%, rgba(232,221,208,0.08) 50%, transparent 72%);
}
@keyframes loaderFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.45); opacity: 1; }
}

/* ===== WATERCOLOR BLOBS ===== */
.watercolor {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.wc-top-left {
    width: 420px; height: 380px;
    top: -80px; left: -100px;
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.12) 0%,
        rgba(212,185,148,0.08) 40%,
        transparent 70%);
    filter: blur(30px);
    transform: rotate(-20deg);
}
.wc-top-right {
    width: 350px; height: 300px;
    top: -40px; right: -80px;
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.10) 0%,
        rgba(232,221,208,0.07) 45%,
        transparent 70%);
    filter: blur(25px);
    transform: rotate(15deg);
}
.wc-bottom-left {
    width: 300px; height: 280px;
    bottom: 40px; left: -60px;
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.09) 0%,
        transparent 65%);
    filter: blur(28px);
}
.wc-bottom-right {
    width: 380px; height: 320px;
    bottom: -60px; right: -80px;
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.11) 0%,
        rgba(232,221,208,0.06) 50%,
        transparent 70%);
    filter: blur(32px);
    transform: rotate(10deg);
}
.wc-gallery-right {
    width: 400px; height: 400px;
    top: 50%; right: -100px;
    transform: translateY(-50%);
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.08) 0%, transparent 65%);
    filter: blur(40px);
}
.wc-loc-left {
    width: 350px; height: 350px;
    top: 50%; left: -80px;
    transform: translateY(-50%);
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.09) 0%, transparent 65%);
    filter: blur(35px);
}
.wc-rsvp-right {
    width: 300px; height: 300px;
    top: 20%; right: -60px;
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.08) 0%, transparent 65%);
    filter: blur(30px);
}
.wc-rsvp-left {
    width: 280px; height: 280px;
    bottom: 15%; left: -50px;
    background: radial-gradient(ellipse at center,
        rgba(201,168,118,0.07) 0%, transparent 65%);
    filter: blur(28px);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(253, 250, 246, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(253, 250, 246, 0.99);
    box-shadow: 0 2px 30px rgba(42, 35, 24, 0.06);
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 28px;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    display: block;
    height: 42px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 8px;
}
.nav-links a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    border: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.nav-links a:hover {
    color: var(--gold-dark);
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nav-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.nav-text {
    display: none;
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 22px; height: 1px;
    background: var(--text); transition: all 0.3s ease;
}
body { padding-top: 72px; }

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 64px 40px 48px;
    overflow: hidden;
    background:
        linear-gradient(rgba(253, 250, 246, 0.78), rgba(253, 250, 246, 0.84)),
        url('./images/hero-cover.jpg') center center / cover no-repeat;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(253, 250, 246, 0.2) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding: 20px 40px 12px;
}
.hero-announce {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 20px;
    animation: fadeUp 1s ease 0.2s both;
}
.divider-ornament {
    width: min(260px, 52vw);
    margin: 0 auto 10px;
    animation: fadeUp 1s ease 0.4s both;
}
.divider-ornament img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0.72;
    filter: brightness(0) saturate(100%) invert(69%) sepia(28%) saturate(508%) hue-rotate(356deg) brightness(92%) contrast(84%);
    mix-blend-mode: multiply;
}
.hero-names-title {
    line-height: 0;
    margin: 0 auto 18px;
    animation: fadeUp 1.2s ease 0.3s both;
}
.hero-names-image {
    display: block;
    width: min(100%, 900px);
    max-height: clamp(220px, 36vw, 360px);
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    mix-blend-mode: multiply;
}
.hero-date {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 2px;
    animation: fadeUp 1s ease 0.7s both;
}
.hero-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 2px;
    animation: fadeUp 1s ease 0.8s both;
}
.hero-place {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 28px;
    animation: fadeUp 1s ease 0.9s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white);
    background: var(--gold);
    padding: 16px 48px;
    text-decoration: none;
    border: 1px solid var(--gold);
    transition: all 0.4s ease;
    cursor: pointer;
    animation: fadeUp 1s ease 1s both;
}
.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(201,168,118,0.3);
}
.btn-secondary {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--dark);
    background: transparent;
    padding: 14px 36px;
    text-decoration: none;
    border: 1px solid var(--dark);
    transition: all 0.4s ease;
    cursor: pointer;
}
.btn-secondary:hover {
    background: var(--dark);
    color: var(--white);
}

/* ===== SECTION COMMONS ===== */
.section-label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    text-align: center;
    margin-bottom: 16px;
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1;
    font-weight: 300;
    font-style: italic;
    color: var(--dark);
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: -0.5px;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto 0;
}

/* ===== STORIA ===== */
.section-story {
    padding: 110px 40px;
    background: linear-gradient(180deg, var(--cream-mid) 0%, var(--white) 100%);
}
.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 56px;
    align-items: start;
}
.story-text p {
    font-size: 22px;
    color: var(--text);
    margin-bottom: 24px;
}
.story-text p:last-child {
    margin-bottom: 0;
    color: var(--text-light);
}
.story-houses {
    display: grid;
    gap: 22px;
}
.house-card {
    padding: 30px 28px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.78);
}
.house-icon {
    margin-bottom: 18px;
    opacity: 0.85;
}
.house-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    color: var(--dark);
    margin-bottom: 6px;
}
.house-card p {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 10px;
}
.house-card span {
    display: block;
    font-size: 18px;
    color: var(--text-light);
}

/* ===== CERIMONIA ===== */
.section-cerimonia {
    padding: 110px 40px;
    background: var(--white);
    position: relative;
}
.cerimonia-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 800px;
    margin: 0 auto 60px;
}
.cerimonia-card {
    flex: 1;
    text-align: center;
    padding: 40px 40px;
}
.cerimonia-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    opacity: 0.8;
}
.cerimonia-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 29px;
    font-weight: 400;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 10px;
}
.cerimonia-where {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text);
    margin-bottom: 4px;
}
.cerimonia-sub {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 14px;
}
.cerimonia-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-style: italic;
    color: var(--gold);
}
.cerimonia-divider {
    width: 1px;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    padding: 20px 0;
}
.c-divider-line {
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(201, 168, 118, 0.55) 18%, rgba(201, 168, 118, 0.55) 82%, transparent 100%);
    flex: 1;
}
.rsvp-deadline {
    text-align: center;
    padding: 32px;
    border: 1px solid var(--border);
    max-width: 600px;
    margin: 0 auto;
    background: var(--cream);
}
.deadline-inner span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 10px;
}
.deadline-inner strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 31px;
    font-weight: 400;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 16px;
}
.deadline-contacts {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.deadline-contacts a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}
.deadline-contacts a:hover,
.deadline-contacts a:focus {
    color: var(--gold);
}
.dot-sep { color: var(--gold); }

/* ===== GALLERY ===== */
.section-gallery {
    padding: 110px 40px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}
.gallery-item {
    overflow: hidden;
    background: var(--cream-mid);
    transition: transform 0.5s ease;
}
.gallery-item:hover { transform: scale(1.01); }
.gallery-item.tall { grid-row: 1 / 3; }
.gallery-item.wide { grid-column: 1 / 3; }
.gallery-col-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.gallery-col-right .gallery-item { flex: 1; }
.gallery-ph {
    width: 100%; height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gold-light), var(--cream-mid));
    color: var(--text-light);
    gap: 8px;
}
.gallery-ph span {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 18px;
}
.gallery-ph small {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.6;
    text-align: center;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* ===== PROGRAMMA / TIMELINE ===== */
.section-programma {
    padding: 110px 40px;
    background: var(--white);
}
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 100px;
    top: 8px; bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold-light) 10%, var(--gold-light) 90%, transparent);
}
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 44px;
    position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.t-time {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-style: italic;
    color: var(--gold);
    min-width: 80px;
    text-align: right;
    padding-top: 2px;
    padding-right: 20px;
}
.t-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: var(--white);
    flex-shrink: 0;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}
.t-content {
    padding-left: 22px;
}
.t-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 4px;
}
.t-content p {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    color: var(--text-light);
}

/* ===== CHIESA / LOCATION ===== */
.section-chiesa {
    padding: 110px 40px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.section-chiesa .wc-loc-left {
    opacity: 0.75;
}
.chiesa-grid {
    direction: rtl;
}
.chiesa-grid > * {
    direction: ltr;
}
.section-location {
    padding: 110px 40px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.location-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 40px;
    font-weight: 400;
    font-style: italic;
    color: var(--dark);
    margin-bottom: 20px;
}
.location-detail-line {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    color: var(--text);
    margin-bottom: 6px;
}
.location-detail-line a {
    color: var(--gold);
    text-decoration: none;
}
.location-contacts {
    margin: 24px 0 32px;
    padding: 20px;
    border-left: 2px solid var(--gold-light);
}
.contact-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: var(--text);
}
.contact-row span { color: var(--text-light); }
.contact-row a { color: var(--dark); text-decoration: none; }
.contact-row a:hover { color: var(--gold); }
.map-container { position: relative; z-index: 1; }
.map-placeholder {
    aspect-ratio: 4/3;
    background: var(--cream-mid);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    text-align: center;
}
.map-placeholder p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 20px;
    color: var(--text);
}
.map-placeholder small {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-light);
}
.map-container iframe {
    width: 100%;
    aspect-ratio: 4/3;
    border: none;
    display: block;
}

/* ===== RSVP ===== */
.section-rsvp {
    padding: 110px 40px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.rsvp-note {
    text-align: center;
    font-family: 'EB Garamond', serif;
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 56px;
    margin-top: -30px;
}
.rsvp-note strong { color: var(--dark); font-weight: 500; }
.rsvp-form {
    max-width: 750px;
    margin: 0 auto;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-group.full { margin-bottom: 32px; }
.form-group label {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
}
.required-mark {
    color: var(--gold-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-left: 4px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gold-light);
    padding: 10px 0;
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gold-light);
    font-style: italic;
}
.form-group textarea { resize: vertical; min-height: 72px; }
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.field-note {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-top: 4px;
    font-style: italic;
}
.privacy-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 680px;
    margin: -4px auto 34px;
    color: var(--text-light);
}
.privacy-consent input {
    width: 16px;
    height: 16px;
    margin-top: 7px;
    accent-color: var(--gold);
    flex: 0 0 auto;
}
.privacy-consent label {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    line-height: 1.6;
}
.form-submit {
    text-align: center;
    margin-top: 16px;
}
.form-submit .btn-primary:disabled {
    opacity: 0.68;
    cursor: wait;
    transform: none;
    box-shadow: none;
}
.form-note {
    font-family: 'EB Garamond', serif;
    font-size: 16px;
    font-style: italic;
    color: var(--text-light);
    margin-top: 18px;
}
.rsvp-message {
    display: none;
    max-width: 620px;
    margin: 22px auto 0;
    padding: 14px 18px;
    border: 1px solid transparent;
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    line-height: 1.5;
}
.rsvp-message.success,
.rsvp-message.error {
    display: block;
}
.rsvp-message.success {
    color: var(--dark);
    border-color: rgba(201, 168, 118, 0.42);
    background: rgba(232, 221, 208, 0.32);
}
.rsvp-message.error {
    color: #6f342f;
    border-color: rgba(111, 52, 47, 0.25);
    background: rgba(111, 52, 47, 0.06);
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 40px;
    text-align: center;
    background: var(--dark);
}
.footer-ornament {
    width: min(320px, 58vw);
    margin: 0 auto 30px;
}
.footer-ornament img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
}
.footer-names {
    font-family: 'Cormorant Garamond', serif;
    font-size: 31px;
    font-weight: 300;
    font-style: italic;
    color: var(--gold-light);
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.footer-date {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--text-light);
}

/* ===== FADE IN SCROLL ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-container {
        max-width: 960px;
        padding: 0 28px;
        gap: 22px;
    }
    .logo img { height: 38px; }
    .nav-links { gap: 5px; }
    .nav-links a {
        width: 34px;
        height: 34px;
    }
    .nav-icon svg {
        width: 18px;
        height: 18px;
    }
    .location-grid { grid-template-columns: 1fr; gap: 48px; }
    .chiesa-grid { direction: ltr; }
    .story-grid { grid-template-columns: 1fr; gap: 40px; }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .gallery-item.tall { grid-row: auto; }
    .gallery-col-right { display: contents; }
    .gallery-item.wide { grid-column: 1 / 3; }
}

@media (max-width: 820px) {
    .container { padding: 0 24px; }
    .page-loader { padding: 28px; }
    .loader-logo { width: min(160px, 52vw); }
    .loader-ornament { width: 150px; }
    .nav-container {
        padding: 0 24px;
    }
    .logo img { height: 42px; }
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: rgba(253,250,246,0.98);
        padding: 18px 24px 24px;
        gap: 2px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open a {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        gap: 14px;
        padding: 12px 4px;
        border: none;
        border-bottom: 1px solid rgba(201, 168, 118, 0.12);
        background: transparent;
        transform: none;
    }
    .nav-links.open li:last-child a {
        border-bottom: none;
    }
    .nav-links.open .nav-icon {
        width: 28px;
        color: var(--gold-dark);
    }
    .nav-links.open .nav-icon svg {
        width: 19px;
        height: 19px;
    }
    .nav-links.open .nav-text {
        display: inline;
    }
    .hero {
        min-height: 100vh;
        align-items: center;
        padding: 80px 24px;
    }
    .hero-content { padding: 40px 20px; }
    .hero-names-image {
        width: min(100%, 620px);
        max-height: 230px;
    }
    .section-story, .section-cerimonia, .section-gallery, .section-programma, .section-chiesa,
    .section-location, .section-rsvp { padding: 80px 24px; }
    .cerimonia-grid { flex-direction: column; }
    .cerimonia-divider { width: 80px; height: 1px; padding: 0; }
    .c-divider-line {
        width: 100%;
        height: 1px;
        flex: 1;
        background: linear-gradient(to right, transparent 0%, rgba(201, 168, 118, 0.55) 18%, rgba(201, 168, 118, 0.55) 82%, transparent 100%);
    }
    .form-row { grid-template-columns: 1fr; gap: 24px; }
    .timeline::before { left: 80px; }
    .t-time { min-width: 60px; font-size: 17px; }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-item.wide { grid-column: auto; }
}

@media (max-width: 480px) {
    .hero-content { padding: 24px 8px; }
    .hero-names-image {
        max-height: 170px;
    }
    .section-title { font-size: 36px; }
    .timeline::before { left: 60px; }
    .t-time { min-width: 50px; font-size: 15px; padding-right: 14px; }
    .cerimonia-card { padding: 24px 20px; }
    .story-text p { font-size: 19px; }
    .house-card h3 { font-size: 26px; }
}

/* ===== DOT MEMORIES ===== */
.dotmemories-block {
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    padding: 60px 40px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.6);
}
.dotmemories-icon {
    margin-bottom: 24px;
    opacity: 0.75;
}
.dotmemories-intro {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 32px;
}
.dotmemories-btn {
    display: inline-block;
    margin-bottom: 20px;
    animation: none;
}
.dotmemories-note {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 8px;
}

/* ===== COUNTDOWN ===== */
.section-countdown {
    padding: 80px 40px;
    background: var(--dark);
    position: relative;
    text-align: center;
    overflow: hidden;
}
.section-countdown .section-label {
    color: rgba(201,168,118,0.6);
    margin-bottom: 40px;
}
.countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 28px;
}
.countdown-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(52px, 8vw, 88px);
    font-weight: 300;
    color: var(--gold-light);
    line-height: 1;
    letter-spacing: -2px;
    font-style: italic;
    min-width: 2ch;
    display: inline-block;
    text-align: center;
}
.countdown-label {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(201,168,118,0.55);
}
.countdown-sep {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 5vw, 60px);
    color: rgba(201,168,118,0.25);
    font-weight: 300;
    padding-bottom: 20px;
    line-height: 1;
    align-self: center;
}
.countdown-unit-seconds,
.countdown-sep-seconds {
    display: none;
}
.section-countdown.show-seconds .countdown-unit-seconds,
.section-countdown.show-seconds .countdown-sep-seconds {
    display: flex;
}
.section-countdown.show-seconds .countdown-sep-seconds {
    display: block;
}
.countdown-tagline {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    font-style: italic;
    color: rgba(201,168,118,0.45);
    margin-top: 40px;
}

/* ===== CALENDAR SAVE ===== */
.section-calendar {
    padding: 72px 40px;
    background: linear-gradient(180deg, var(--dark) 0%, var(--cream-mid) 100%);
}
.calendar-save {
    max-width: 920px;
    margin: 0 auto;
    padding: 36px 42px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 34px;
    background: rgba(253, 250, 246, 0.95);
    border: 1px solid rgba(232, 221, 208, 0.9);
    box-shadow: 0 22px 50px rgba(42, 35, 24, 0.08);
}
.calendar-mark {
    width: 86px;
    min-height: 100px;
    border: 1px solid var(--gold-light);
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--dark);
}
.calendar-mark span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 46px;
    font-style: italic;
    line-height: 0.9;
}
.calendar-mark small {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 8px;
}
.calendar-copy .section-label {
    text-align: left;
    margin-bottom: 10px;
}
.calendar-copy h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    color: var(--dark);
    margin-bottom: 12px;
}
.calendar-copy p {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-light);
}
.calendar-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 230px;
}
.calendar-btn {
    width: 100%;
    padding-left: 22px;
    padding-right: 22px;
    text-align: center;
    animation: none;
}

/* ===== IBAN ===== */
.section-iban {
    padding: 110px 40px;
    background: var(--cream-mid);
}
.iban-block {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}
.iban-intro {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 40px;
}
.iban-card {
    border: 1px solid var(--border);
    background: var(--white);
    padding: 40px 44px;
    text-align: left;
    position: relative;
}
.iban-row {
    display: flex;
    gap: 20px;
    margin-bottom: 22px;
    align-items: baseline;
    flex-wrap: wrap;
}
.iban-row:last-of-type { margin-bottom: 28px; }
.iban-lbl {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-light);
    min-width: 90px;
    flex-shrink: 0;
    padding-top: 4px;
}
.iban-val {
    font-family: 'EB Garamond', serif;
    font-size: 19px;
    color: var(--dark);
    flex: 1;
}
.iban-code {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--dark);
}
.iban-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dark);
    background: none;
    border: 1px solid var(--border);
    padding: 10px 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.iban-copy:hover {
    background: var(--gold-light);
    border-color: var(--gold);
    color: var(--dark);
}
.iban-copy.copied {
    color: var(--dark);
    border-color: var(--gold);
    background: var(--gold-light);
}
.iban-note {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    color: var(--text-light);
    margin-top: 18px;
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ===== ALLOGGI ===== */
.section-alloggi {
    padding: 110px 40px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}
.alloggi-intro {
    font-family: 'EB Garamond', serif;
    font-size: 20px;
    color: var(--text);
    line-height: 1.8;
    text-align: center;
    margin-top: -40px;
    margin-bottom: 60px;
}
.alloggi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}
.alloggio-card {
    padding: 36px 32px;
    border: 1px solid var(--border);
    background: var(--cream);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.3s ease;
}
.alloggio-card:hover {
    box-shadow: 0 8px 32px rgba(201,168,118,0.12);
}
.alloggio-badge {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}
.alloggio-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 400;
    font-style: italic;
    color: var(--dark);
    line-height: 1.1;
}
.alloggio-desc {
    font-family: 'EB Garamond', serif;
    font-size: 17px;
    color: var(--text);
    line-height: 1.7;
    flex: 1;
}
.alloggio-detail {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}
.alloggio-detail a { color: var(--gold); text-decoration: none; }
.alloggio-btn {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    padding: 12px 24px;
}
.alloggi-tip {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 28px;
    border-left: 2px solid var(--gold-light);
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    color: var(--text-light);
}
.alloggi-tip a { color: var(--gold); text-decoration: none; }
.alloggi-tip svg { flex-shrink: 0; }

@media (max-width: 1024px) {
    .alloggi-grid { grid-template-columns: 1fr 1fr; }
    .calendar-save {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .calendar-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        min-width: 0;
    }
}
@media (max-width: 768px) {
    .section-iban, .section-alloggi { padding: 80px 24px; }
    .section-calendar { padding: 54px 24px; }
    .section-countdown { padding: 60px 24px; }
    .iban-card { padding: 28px 24px; }
    .countdown-unit { padding: 0 12px; }
    .alloggi-grid { grid-template-columns: 1fr; }
    .dotmemories-block { padding: 40px 24px; }
    .calendar-save {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 34px 24px;
        gap: 24px;
    }
    .calendar-copy .section-label { text-align: center; }
    .calendar-actions {
        flex-direction: column;
        width: 100%;
    }
}
