@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  --ivory:       #F5F0E8;
  --parchment:   #EAE2D2;
  --dark:        #18100A;
  --text:        #3A2E22;
  --bronze:      #96784A;
  --bronze-lt:   #C4A97A;
  --white:       #FCFAF5;
  --crimson:     #8B1A1A;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 20px;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.9;
}

/* ─── HEADINGS ─── */
h1, h2, h3 {
  font-family: 'IM Fell English', serif;
  color: var(--crimson);
  font-weight: 400;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed; top: 0; width: 100%;
  background: var(--white);
  z-index: 200;
  border-bottom: 1px solid rgba(24,16,10,.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1100px; margin: 0 auto; padding: 0 2rem; height: 66px;
}
.nav-logo {
  font-family: 'IM Fell English', serif;
  font-size: 1.25rem; font-style: italic;
  color: var(--crimson); text-decoration: none; letter-spacing: .04em;
}
.nav-links { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .65rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--dark); text-decoration: none;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--bronze); }
.nav-toggle {
  display: none; flex-direction: column; cursor: pointer; gap: 5px; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 1.5px; background: var(--dark); display: block;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── HERO (sfondo beige, testo scuro) ─── */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment);
  padding-top: 66px;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero-slide.active { opacity: 1; }
/* Placeholder: trasparenti → mostra il parchment di sfondo.
   Quando aggiungi le foto: background-image: url('foto1.jpg') ecc. */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(234, 226, 210, 0.55); /* si opacizza sulle foto */
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 2rem;
}
.hero-logo {
  width: clamp(260px, 45vw, 480px);
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.hero-amp {
  display: block; font-size: .36em; font-style: italic;
  font-family: 'IM Fell English', serif; font-weight: 400;
  letter-spacing: .05em; text-transform: none;
  color: var(--bronze); opacity: .8; margin: .55rem 0;
}
.hero-rule {
  width: 38px; height: 1px; background: var(--bronze);
  margin: 1.8rem auto;
}
.hero-meta {
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text); line-height: 2.3;
}
.hero-btn {
  display: inline-block; margin-top: 2.5rem; padding: .8rem 2.4rem;
  border: 1px solid var(--bronze); color: var(--dark);
  text-decoration: none; font-size: .62rem; letter-spacing: .26em;
  text-transform: uppercase; transition: background .3s, color .3s;
}
.hero-btn:hover { background: var(--dark); color: var(--white); }

/* ─── FIORI ─── */
.flower-bar {
  display: block; width: 100%; max-width: 420px;
  margin: 0 auto; overflow: visible;
}
.flower-bar-sm {
  display: block; width: 100%; max-width: 240px;
  margin: 0 auto; overflow: visible;
}

/* ─── PAGE HERO ─── */
.page-hero {
  margin-top: 66px; padding: 4rem 2rem 2.5rem;
  text-align: center; background: var(--parchment);
  border-bottom: 1px solid rgba(24,16,10,.08);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.15; }
.page-hero .page-subtitle {
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--bronze); margin-top: .6rem; font-family: 'Cormorant Garamond', serif;
}
.page-hero .flower-bar { margin-top: 1.5rem; }

/* ─── SECTIONS ─── */
.section { max-width: 760px; margin: 0 auto; padding: 4rem 2rem; }
.section h2 { font-size: 1.85rem; margin-bottom: .3rem; line-height: 1.2; }
.section h3 { font-size: 1.25rem; margin: 2rem 0 .3rem; }
.bronze-rule { width: 34px; height: 1px; background: var(--bronze); margin-bottom: 1.8rem; }
.section p { margin-bottom: .75rem; color: var(--text); }

/* ─── DETAILS CARD ─── */
.details-card {
  background: var(--white); border: 1px solid rgba(24,16,10,.1);
  padding: 3rem 2.5rem; text-align: center;
  max-width: 560px; margin: 3rem auto;
}
.card-label {
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bronze); display: block; margin-bottom: 1.4rem;
  font-family: 'Cormorant Garamond', serif;
}
.details-card h2 { font-size: 1.85em; margin-bottom: .25rem; }
.card-date { font-size: .87em; color: var(--bronze); letter-spacing: .12em; font-family: 'Cormorant Garamond', serif; }
.card-rule { width: 28px; height: 1px; background: var(--bronze); margin: 1.4rem auto; }
.venue-name {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 1.2em; color: var(--crimson); display: block; margin-bottom: .2rem;
}
.venue-address { font-size: .93em; color: var(--text); display: block; font-family: 'Cormorant Garamond', serif; }
.card-desc { color: var(--text); margin-top: .9rem; line-height: 1.8; font-family: 'Cormorant Garamond', serif; }
.card-photo {
  display: block; width: calc(100% + 5rem); margin: 2rem -2.5rem -3rem;
}

/* ─── MAP ─── */
.map-wrap {
  width: 100%; height: 400px; margin: 1rem 0 .5rem;
  border: 1px solid rgba(24,16,10,.1); overflow: hidden;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-link {
  font-size: .75rem; color: var(--bronze); letter-spacing: .05em;
  text-decoration: none; border-bottom: 1px solid var(--bronze-lt);
  padding-bottom: 1px; display: inline-block; margin-bottom: 2rem;
  font-family: 'Cormorant Garamond', serif;
}
.map-link:hover { color: var(--crimson); border-bottom-color: var(--crimson); }

/* ─── DIRECTIONS ─── */
.dir-block {
  background: var(--white); border: 1px solid rgba(24,16,10,.1);
  padding: 1.8rem 2rem; margin: 1.2rem 0;
}
.dir-block h3 { margin-top: 0; }
.dir-block p { margin-bottom: .45rem; }
.dir-airports {
  margin-top: .9rem; padding-top: .9rem;
  border-top: 1px solid var(--parchment);
  color: var(--text); opacity: .8;
  font-family: 'Cormorant Garamond', serif;
}

/* ─── ACTIVITIES ─── */
.act-intro { margin-bottom: .5rem; }
.act-section-label {
  font-size: 1.85rem; letter-spacing: .05em; text-transform: none;
  color: var(--crimson); margin: 2.5rem 0 1rem; display: block;
  font-family: 'IM Fell English', serif;
}
.act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.act-card {
  background: var(--white); border: 1px solid rgba(24,16,10,.1);
  padding: 1.8rem; transition: box-shadow .25s;
}
.act-card:hover { box-shadow: 0 4px 18px rgba(24,16,10,.07); }
.act-tag {
  display: inline-block; font-size: .55rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bronze);
  border: 1px solid var(--bronze-lt); padding: .12rem .45rem; margin-bottom: .7rem;
  font-family: 'Cormorant Garamond', serif;
}
.act-card h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.act-card p { margin: 0; }
.act-photo {
  display: block; width: 100%; margin-top: 3rem;
  border: 1px solid rgba(24,16,10,.1);
}

/* ─── IBAN ─── */
.iban-box {
  background: var(--white); border: 1px solid rgba(24,16,10,.1);
  border-left: 3px solid var(--bronze); padding: 1.8rem 2rem; margin: 1.8rem 0;
}
.iban-label {
  font-size: .58rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bronze); display: block; margin-bottom: .5rem;
  font-family: 'Cormorant Garamond', serif;
}
.iban-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem; color: var(--crimson); display: block; margin-bottom: .25rem;
}
.iban-int { color: var(--text); font-family: 'Cormorant Garamond', serif; }

/* ─── RSVP ─── */
.rsvp-box {
  background: var(--white); border: 1px solid rgba(24,16,10,.1); margin: 1.5rem 0;
}
.rsvp-box iframe { width: 100%; min-height: 680px; border: 0; display: block; }
.rsvp-placeholder { padding: 4rem 2rem; text-align: center; }
.rsvp-placeholder p {
  font-family: 'IM Fell English', serif; font-style: italic;
  font-size: 1.05rem; color: var(--crimson); margin-bottom: .4rem;
}
.rsvp-placeholder span { color: var(--text); font-family: 'Cormorant Garamond', serif; }

/* ─── SABATO SERA ─── */
.sabato-section {
  background: var(--parchment); border-top: 1px solid rgba(24,16,10,.08);
  padding: 3.5rem 2rem; text-align: center;
}
.sabato-section h2 { font-size: 1.85rem; margin-bottom: .3rem; }
.sabato-section .sab-sub {
  font-size: .82rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bronze); display: block; margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
}
.sabato-section p {
  max-width: 560px; margin: 0 auto .7rem; color: var(--text);
}

/* ─── MUSIC BUTTON ─── */
#music-toggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 300;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); border: 1px solid rgba(24,16,10,.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 2px 12px rgba(24,16,10,.1);
  transition: background .2s; color: var(--bronze); user-select: none;
}
#music-toggle:hover { background: var(--parchment); }
#music-toggle.playing { background: var(--crimson); color: var(--white); border-color: var(--crimson); }

/* ─── FOOTER ─── */
footer {
  background: var(--dark); color: rgba(252,250,245,.38);
  text-align: center; padding: 3rem 2rem;
  font-size: .68rem; letter-spacing: .12em;
  border-top: 1px solid rgba(255,255,255,.06);
  font-family: 'Cormorant Garamond', serif;
}
.footer-names {
  font-family: 'IM Fell English', serif;
  font-size: 1.55rem; font-style: italic;
  color: rgba(252,250,245,.82); display: block; margin-bottom: .4rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--white); flex-direction: column;
    padding: 1.5rem 2rem 2rem; gap: 1.1rem;
    border-bottom: 1px solid rgba(24,16,10,.1);
    box-shadow: 0 8px 20px rgba(24,16,10,.06);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .details-card { padding: 2rem 1.5rem; }
  .iban-num { font-size: 1.05rem; }
  .act-grid { grid-template-columns: 1fr; }
}
