/* ============================================
   SELF-HOSTED FONTS
   Cormorant Garamond viene caricato da Google Fonts in index.html
   ============================================ */

/* Charlotte — solo per "Elisabetta & Matteo", brand nav/footer e titoli sezione */
@font-face {
    font-family: 'Charlotte';
    src: url('assets/font/Charlotte.ttf') format('truetype'),
         url('assets/font/Charlotte.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
    /* --- COLORI --- */
    --cream:        #faf8f3;
    --cream-warm:   #f6f1e5;
    --cream-dark:   #f0ebe0;
    --gold:         #c9a84c;
    --gold-dark:    #b08d37;
    --gold-soft:    #e8d27a;
    --gold-pale:    #d9c27a;
    --text:         #1f1f1f;
    --text-soft:    #6b6b6b;
    --text-light:   #9a9a9a;

    /* --- OMBRE --- */
    --shadow-soft:  0 4px 20px rgba(74, 59, 19, 0.06), 0 1px 3px rgba(74, 59, 19, 0.04);
    --shadow-card:  0 14px 40px rgba(74, 59, 19, 0.09), 0 3px 10px rgba(74, 59, 19, 0.05);
    --shadow-photo: 0 20px 50px rgba(74, 59, 19, 0.14), 0 6px 18px rgba(74, 59, 19, 0.08);

    /* --- FONT FAMILY --- */
    --font-charlotte: 'Charlotte', 'Parisienne', 'Brush Script MT', cursive;        /* nomi sposi */
    --font-section:   'Charlotte', 'Parisienne', 'Brush Script MT', cursive;        /* titoli sezione */
    --font-display:   'Cormorant Garamond', Garamond, 'Times New Roman', serif;    /* location names, IBAN h3 */
    --font-body:      'Cormorant Garamond', Garamond, 'Times New Roman', serif;    /* corpo, bottoni, menu */

    /* --- FONT WEIGHTS Cormorant --- */
    --fw-light:    300;
    --fw-regular:  400;
    --fw-medium:   500;
    --fw-semibold: 600;

    /* --- SPACING --- */
    --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
    --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 120px;

    /* --- LAYOUT --- */
    --container: 1080px;
    --nav-h: 60px;

    /* ============================================
       FONT SIZE CONTROL PANEL
       ============================================ */

    /* === CORPO DEL TESTO === */
    --fs-body:         20px;     /* MOBILE: era 18 */
--fs-body-lg:      20px;     /* DESKTOP: invariato */
--fs-prose:        20px;     /* OVUNQUE: invariato */
--fs-prose-mobile: 19px;     /* MOBILE override per prose */
--fs-quote:        20px;
--fs-quote-mobile: 19px;     /* MOBILE override per quote */
--fs-quote-cite:   15px;     /* era 14 */
--fs-section-lead: 19px;
--fs-section-lead-mobile: 18px;

    /* === TITOLI GRANDI === */
    --fs-hero-names:    clamp(64px, 12vw, 130px);
    --fs-section-title: clamp(56px, 7.5vw, 84px);
    --fs-location-name: clamp(28px, 3vw, 38px);
    --fs-display-md:    clamp(28px, 3vw, 36px);
    --fs-display-sm:    24px;

    /* === HERO SUPPORTING === */
    --fs-hero-eyebrow:  20px;
    --fs-hero-date:     clamp(28px, 3.5vw, 36px);

    /* === COUNTDOWN === */
    --fs-cd-num:        clamp(38px, 6vw, 52px);
    --fs-cd-num-mobile: clamp(24px, 7vw, 36px);
    --fs-cd-lbl:        12px;
    --fs-cd-lbl-mobile: 10px;
    --fs-cd-sep:        26px;
    --fs-cd-sep-mobile: 18px;

    /* === BOTTONI === */
    --fs-btn:    14px;
    --fs-btn-lg: 15px;
    --fs-btn-sm: 12px;

    /* === NAV === */
    --fs-nav-brand: 26px;
    --fs-nav-link:  14px;

    /* === TAG E LABEL UPPERCASE === */
    --fs-tag:        13px;
    --fs-time:       var(--fs-prose);
    --fs-explore:    14px;
    --fs-photo-cap:  14px;
    --fs-scroll:     16px;

    /* === FOOTER === */
    --fs-footer-names:  clamp(42px, 5vw, 56px);
    --fs-footer-date:   16px;
    --fs-footer-slogan: 35px;
    --fs-footer-top:    15px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--text);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
@media (min-width: 768px) { body { font-size: var(--fs-body-lg); } }
img { max-width: 100%; display: block; }
a { color: inherit; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 15% 8%,  rgba(201, 168, 76, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 85% 92%, rgba(201, 168, 76, 0.06) 0%, transparent 55%);
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    padding: 0 var(--s-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 248, 243, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
    z-index: 100;
}
.nav-brand {
    font-family: var(--font-charlotte);
    font-weight: 400;
    font-size: var(--fs-nav-brand);
    color: var(--gold-dark);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.nav-toggle {
    width: 44px; height: 44px;
    background: none; border: none; cursor: pointer;
    padding: 0;
    position: relative;
    color: var(--gold-dark);
    display: flex; align-items: center; justify-content: center;
}
.nav-icon {
    width: 32px; height: 32px;
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.nav-icon-open  { opacity: 1; transform: scale(1); }
.nav-icon-close { opacity: 0; transform: scale(0.7) rotate(-45deg); }
.nav-toggle.active .nav-icon-open  { opacity: 0; transform: scale(0.7) rotate(45deg); }
.nav-toggle.active .nav-icon-close { opacity: 1; transform: scale(1) rotate(0); }

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    top: 0; right: -100%;
    width: 85%; max-width: 360px;
    height: 100vh;
    background: var(--cream);
    padding: 96px var(--s-4) var(--s-4);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 99;
    border-left: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: -20px 0 50px rgba(74, 59, 19, 0.08);
}
.sidebar.active { right: 0; }
.sidebar ul { list-style: none; }
.sidebar li { margin-bottom: var(--s-1); }
.sidebar a {
    font-family: var(--font-body);
    font-size: var(--fs-nav-link);
    font-weight: var(--fw-medium);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: 18px 0;
    display: block;
    border-bottom: 1px solid rgba(201, 168, 76, 0.22);
    transition: color 0.2s ease, padding-left 0.2s ease;
}
.sidebar a:hover { color: var(--gold-dark); padding-left: 8px; }

.overlay {
    position: fixed; inset: 0;
    background: rgba(31, 31, 31, 0.35);
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 98;
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* ============================================
   BOLLE
   ============================================ */
.bubbles-bg {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.section-bubbles {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden; z-index: 1;
}
.hero, .section, .footer {
    position: relative;
    overflow: hidden;
}
.bubble {
    position: absolute;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold));
    border-radius: 50%;
    opacity: 0;
    animation: floatUp linear infinite;
    will-change: transform, opacity;
    box-shadow: 0 1px 2px rgba(176, 141, 55, 0.15);
}
@keyframes floatUp {
    0%   { transform: translateY(20px) translateX(0);  opacity: 0; }
    10%  { opacity: 0.35; }
    50%  { opacity: 0.4; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-100vh) translateX(30px); opacity: 0; }
}
@media (max-width: 768px) {
    .bubble { animation-duration: 50s !important; }
    @keyframes floatUp {
        0%   { transform: translateY(20px); opacity: 0; }
        10%  { opacity: 0.28; }
        50%  { opacity: 0.32; }
        90%  { opacity: 0.24; }
        100% { transform: translateY(-100vh); opacity: 0; }
    }
}

/* ============================================
   LAYOUT
   ============================================ */
main { position: relative; z-index: 1; }

.section { padding: var(--s-8) var(--s-3); }
@media (max-width: 640px) { .section { padding: var(--s-7) var(--s-3); } }

.section:not(.rsvp)::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 120px; height: 1px;
    background: var(--gold);
    opacity: 0.22;
    z-index: 2;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: var(--font-section);
    font-weight: 400;
    font-size: var(--fs-section-title);
    color: var(--gold-dark);
    text-align: center;
    margin-bottom: var(--s-5);
    line-height: 1.2;
    position: relative;
    padding-top: var(--s-4);
}
.section-title::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 1px;
    background: var(--gold); opacity: 0.65;
}

.section-lead {
    font-family: var(--font-body);
    font-weight: var(--fw-light);
    font-style: italic;
    text-align: center;
    font-size: var(--fs-section-lead);
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto var(--s-6);
    line-height: 1.7;
}
.section-lead strong { color: var(--gold-dark); font-weight: var(--fw-medium); font-style: normal; }

/* ============================================
   ORNAMENT
   ============================================ */
.ornament {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: var(--s-5) auto;
    position: relative;
    z-index: 2;
}
.ornament-mid { margin: var(--s-6) auto; }
.dot {
    display: inline-block;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--gold-soft), var(--gold));
    box-shadow: 0 1px 2px rgba(176, 141, 55, 0.3);
}
.dot-sm { width: 6px;  height: 6px;  opacity: 0.75; }
.dot-md { width: 10px; height: 10px; opacity: 0.95; }

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: calc(var(--nav-h) + var(--s-3)) var(--s-3) var(--s-8);
    background: var(--cream);
    text-align: center;
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hero-eyebrow {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: var(--fw-light);
    font-size: var(--fs-hero-date);
    color: var(--gold-dark);
    margin-bottom: var(--s-2);
    letter-spacing: 0.02em;
}
.hero-names {
    font-family: var(--font-charlotte);
    font-weight: 400;
    font-size: var(--fs-hero-names);
    color: var(--gold-dark);
    line-height: 1;
    margin-bottom: var(--s-3);
}
.hero-names .amp {
    color: var(--gold-soft);
    font-style: italic;
}
.hero-date {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-hero-date);
    color: var(--text);
    letter-spacing: 0.06em;
    margin-bottom: var(--s-6);
}

.hero-photo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}
@media (max-width: 640px) {
    .hero-photo { max-width: 75%; }
}
.photo-frame {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--gold);
    padding: 12px;
    box-shadow: var(--shadow-photo);
}
.photo-frame::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    pointer-events: none;
}
.photo-frame img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

.hero-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: var(--fw-light);
    font-size: var(--fs-quote);
    color: var(--text-soft);
    max-width: 600px;
    margin: 0 auto var(--s-6);
    line-height: 1.75;
}
.hero-quote cite {
    display: block;
    margin-top: var(--s-3);
    font-family: var(--font-body);
    font-size: var(--fs-quote);
    font-style: italic;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    text-transform: none;
}

/* ============================================
   COUNTDOWN
   ============================================ */
.countdown {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: var(--s-3);
    margin-bottom: var(--s-5);
    flex-wrap: wrap;
}
.cd-item {
    display: flex; flex-direction: column;
    align-items: center; min-width: 64px;
}
.cd-num {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--fs-cd-num);
    color: var(--gold-dark);
    line-height: 1;
}
.cd-lbl {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--fs-cd-lbl);
    text-transform: uppercase;
    letter-spacing: 0.26em;
    color: var(--text-soft);
    margin-top: 8px;
}
.cd-sep {
    color: var(--gold);
    font-size: var(--fs-cd-sep);
    line-height: 1;
    opacity: 0.5;
}

@media (max-width: 640px) {
    .countdown { flex-wrap: nowrap; gap: var(--s-1); }
    .cd-item   { min-width: 0; flex: 1; }
    .cd-num    { font-size: var(--fs-cd-num-mobile); }
    .cd-lbl    { font-size: var(--fs-cd-lbl-mobile); letter-spacing: 0.15em; }
    .cd-sep    { font-size: var(--fs-cd-sep-mobile); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--fs-btn);
    font-weight: var(--fw-medium);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 36px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--gold);
    color: #ffffff;
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.25);
}
.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    box-shadow: 0 6px 20px rgba(176, 141, 55, 0.35);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    color: var(--gold-dark);
    border-color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: #ffffff;
}
.btn-lg {
    padding: 20px 48px;
    font-size: var(--fs-btn-lg);
    letter-spacing: 0.24em;
}
.btn-sm {
    padding: 14px 24px;        /* era 10px 18px */
    font-size: 13px;            /* era 12px */
    letter-spacing: 0.18em;
}

/* ============================================
   PARKING INFO (sotto Cerimonia)
   ============================================ */
.parking-info {
    margin-top: var(--s-4);
    padding-top: var(--s-4);
    border-top: 1px dashed rgba(201, 168, 76, 0.35);
    text-align: center;
}
.parking-note {
    font-family: var(--font-body);
    font-weight: var(--fw-light);
    font-style: italic;
    font-size: var(--fs-prose);                /* ← stessa size di "Piazza Don Giuseppe..." */
    color: var(--text-soft);
    margin-bottom: var(--s-3);
    line-height: 1.65;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.parking-note strong {
    color: var(--gold-dark);
    font-weight: var(--fw-medium);
    font-style: normal;
}
.parking-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-2);
}

/* ============================================
   RSVP
   ============================================ */
.rsvp { background: var(--cream-warm); text-align: center; }
.rsvp .container {
    background: var(--cream);
    max-width: 760px;
    padding: var(--s-8) var(--s-4);
    border: 1px solid rgba(201, 168, 76, 0.5);
    box-shadow: var(--shadow-card);
}
.rsvp .container::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    pointer-events: none;
}
@media (max-width: 640px) {
    .rsvp .container { padding: var(--s-7) var(--s-3); }
    .rsvp .container::before { inset: 8px; }
}

.explore { margin-top: var(--s-4); }
.explore-lead {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-display-md);
    color: var(--gold-dark);
    margin-bottom: var(--s-4);
    line-height: 1.1;
}
.explore-links {
    list-style: none;
    display: flex; flex-wrap: wrap;
    justify-content: center;
    gap: var(--s-2) var(--s-5);
}
.explore-links a {
    font-family: var(--font-body);
    font-size: var(--fs-explore);
    font-weight: var(--fw-medium);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gold);
    transition: color 0.2s ease, border-color 0.2s ease;
}
.explore-links a:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

.scroll-down {
    display: inline-block;
    margin-top: var(--s-7);
    font-family: var(--font-body);
    font-style: italic;
    font-weight: var(--fw-light);
    font-size: var(--fs-scroll);
    color: var(--text-soft);
    text-decoration: none;
    animation: bob 2.5s ease-in-out infinite;
}
.scroll-down span { margin-left: 8px; }
@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}

/* ============================================
   LOCATION
   ============================================ */
.location { background: var(--cream-dark); }
.location-grid {
    display: grid; grid-template-columns: 1fr;
    gap: var(--s-4); max-width: 880px; margin: 0 auto;
}
@media (min-width: 768px) {
    .location-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
}
.location-card {
    background: var(--cream);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: var(--s-6) var(--s-4);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.location-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}
.location-icon {
    width: 56px; height: 56px;
    margin: 0 auto var(--s-3);
    color: var(--gold-dark);
    display: flex; align-items: center; justify-content: center;
}
.location-icon svg { width: 100%; height: 100%; display: block; }

.location-tag {
    font-family: var(--font-body);
    font-size: var(--fs-tag);
    font-weight: var(--fw-medium);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: var(--s-3);
}
.location-name {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: var(--fs-location-name);
    color: var(--gold-dark);
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin-bottom: var(--s-3);
}
.location-addr {
    font-family: var(--font-body);
    font-weight: var(--fw-light);
    font-size: var(--fs-prose);
    color: var(--text-soft);
    margin-bottom: var(--s-1);
    line-height: 1.65;
}
.location-time {
    font-family: var(--font-body);
    font-weight: var(--fw-light);
    font-style: italic;
    font-size: var(--fs-time);
    color: var(--text);
    margin-bottom: var(--s-5);
}
.location-card .btn-primary {
    color: #ffffff;
    padding: 16px 40px;
}

/* ============================================
   STORY
   ============================================ */
.story { background: var(--cream-warm); }
.story-text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}
.story-text p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-quote);
    color: var(--text-soft);
    line-height: 1.85;
    margin-bottom: var(--s-4);
}
.story-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
    max-width: 880px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .story-photos { grid-template-columns: repeat(4, 1fr); }
}

.ph {
    display: block;                 /* ← AGGIUNTA: fa sì che <a> si comporti come un blocco */
    cursor: pointer;                /* ← AGGIUNTA: mostra la manina al passaggio del mouse */
    text-decoration: none;          /* ← AGGIUNTA: niente sottolineatura blu sotto la foto */
    position: relative;
    background: var(--cream);
    border: 1px solid rgba(201, 168, 76, 0.3);
    aspect-ratio: 4 / 5;
    align-items: center; 
    justify-content: center;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.ph::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(201, 168, 76, 0.25);
    pointer-events: none;
    z-index: 1;
}
.ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ph:has(img) figcaption { display: none; }
.ph figcaption {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: var(--fw-light);
    font-size: var(--fs-photo-cap);
    color: var(--text-soft);
    padding: 0 var(--s-2);
    text-align: center;
}

/* ============================================
   REGISTRY
   ============================================ */
.registry { background: var(--cream-dark); text-align: center; }
.registry-intro {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    font-size: var(--fs-prose);
    color: var(--text-soft);
    line-height: 1.78;
}
.registry-box {
    max-width: 520px;
    margin: 0 auto;
    background: var(--cream);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: var(--s-6) var(--s-5);
    box-shadow: var(--shadow-soft);
}
.registry-box h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-display-md);
    color: var(--gold-dark);
    margin-bottom: var(--s-4);
    line-height: 1;
}
.iban { text-align: left; }
.iban dt {
    font-family: var(--font-body);
    font-size: var(--fs-tag);
    font-weight: var(--fw-medium);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-top: var(--s-3);
}
.iban dd {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-prose);
    color: var(--text);
    margin-top: 6px;
    margin-bottom: var(--s-3);
    line-height: 1.5;
}

.iban dd.iban-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(17px, 4vw, 24px);
    color: var(--gold-dark);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    margin-top: 6px;
    margin-bottom: var(--s-3);
}
.iban dd.iban-code #ibanValue {
    white-space: nowrap;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Bottone "Copia" sotto IBAN */
.iban-copy {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold-dark);
    border: 1px solid var(--gold);
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-medium);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
}
.iban-copy:hover {
    background: var(--gold);
    color: #ffffff;
}
.iban-copy.copied {
    background: var(--gold-dark);
    color: #ffffff;
    border-color: var(--gold-dark);
}
.iban-copy svg { flex-shrink: 0; }

/* ============================================
   GALLERY
   ============================================ */
.gallery { background: var(--cream); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
@media (min-width: 640px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 10px; } }

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    background: var(--cream-dark);
    border: 1px solid rgba(201, 168, 76, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--fs-display-sm);
    color: var(--gold);
    opacity: 0.8;
    box-shadow: var(--shadow-soft);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}
.gallery-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   GLIGHTBOX OVERRIDE
   ============================================ */
body.glightbox-open {
    overflow: hidden !important;
    height: 100vh;
}
.glightbox-container,
.glightbox-clean .gcontainer,
.glightbox-container .gcontainer {
    overflow: hidden !important;
    background: rgba(20, 20, 20, 0.96) !important;
}
.glightbox-container .gslider,
.gslider {
    height: 100vh !important;
    overflow: hidden !important;
}
.glightbox-container .gslide,
.gslide {
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important;
}
.gslide-inner-content {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}
.ginner-container,
.gslide-media,
.gslide-image {
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    overflow: hidden !important;
}
.glightbox-container .gslide-image img,
.gslide-image img,
.gslider img {
    object-fit: contain !important;
    max-width: 96vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
}
@media (max-width: 768px) {
    .glightbox-container .gslide-image img,
    .gslide-image img,
    .gslider img {
        max-width: 94vw !important;
        max-height: 82vh !important;
    }
}
.gprev, .gnext, .gclose { z-index: 9999 !important; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--cream-dark);
    text-align: center;
    padding: var(--s-7) var(--s-3) var(--s-5);
    border-top: 1px solid rgba(201, 168, 76, 0.3);
}
.footer .ornament {
    margin-top: 0;
    margin-bottom: var(--s-4);
    position: relative;
    z-index: 2;
}
.footer-names,
.footer-date,
.footer-slogan,
.footer-top { position: relative; z-index: 2; }

.footer-names {
    font-family: var(--font-charlotte);
    font-weight: 400;
    font-size: var(--fs-footer-names);
    color: var(--gold-dark);
    line-height: 1;
}
.footer-date {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--fs-footer-date);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-soft);
    margin: var(--s-2) 0 var(--s-3);
}
.footer-slogan {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: var(--fw-light);
    font-size: var(--fs-footer-slogan);
    color: var(--text-light);
    margin-bottom: var(--s-3);
}
.footer-top {
    font-family: var(--font-body);
    font-weight: var(--fw-medium);
    font-size: var(--fs-footer-top);
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}
.footer-top:hover { color: var(--gold-dark); }

/* ============================================        
   MOBILE — leggibilità testo (nonni-friendly)
   ============================================ */
@media (max-width: 640px) {
    .hero-quote,
    .story-text p {
        font-size: var(--fs-quote-mobile);
    }
    .location-addr,
    .registry-intro,
    .iban dd,
    .parking-note {
        font-size: var(--fs-prose-mobile);
    }
    .section-lead {
        font-size: var(--fs-section-lead-mobile);
    }
    .hero-eyebrow,
    .hero-date {
        font-size: clamp(22px, 5vw, 28px);
    }
    .iban dt,
    .location-tag {
        font-size: 14px;
    }
    .footer-slogan {
        font-size: 30px;
    }
    .btn,
    .btn-lg {
        font-size: 14px;
    }
}


/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .bubbles-bg, .section-bubbles { display: none; }
    .location-card:hover, .gallery-item:hover, .btn-primary:hover { transform: none; }
}
