:root {
  --sage: #dbe2d3;
  --cream: #f5eedf;
  --ink: #171410;
  --muted-ink: #4c443b;
  --line: rgba(23, 20, 16, 0.22);
  --card: rgba(255, 255, 255, 0.26);
  --shadow: 0 18px 40px rgba(23, 20, 16, 0.08);
  --page-column-width: 1220px;
  --page-bg: var(--cream);
}

html {
  margin: 0;
  padding: 0;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Cormorant Garamond", serif;
  color: var(--ink);
  background: var(--page-bg);
  overflow: hidden;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0;
}

.reel-scroll {
  height: 100vh;
  height: 100dvh;
  background: var(--page-bg);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 4.5rem 0;
  box-sizing: border-box;
  position: relative;
  overflow-x: clip;
}

.page-sage {
  background: var(--sage);
}

.page-cream {
  background: var(--cream);
}

.center-wrapper {
  width: min(92vw, var(--page-column-width));
  margin: 0 auto;
}

.content {
  width: 100%;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.section-heading {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-style: italic;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.01em;
  font-size: clamp(2.8rem, 5vw, 5.4rem);
}

.section-heading-right {
  text-align: center;
}

.script-subtitle,
.hero-script {
  font-family: "Monsieur La Doulaise", cursive;
  font-weight: 400;
  line-height: 1;
  color: var(--muted-ink);
}

.script-subtitle {
  font-size: clamp(2.1rem, 4vw, 4rem);
  margin: 0.5rem 0 2.2rem;
}

.hero-layout,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6rem);
  min-width: 0;
}

.hero-copy,
.split-copy {
  display: flex;
  flex-direction: column;
}

.hero-copy {
  gap: 0.9rem;
  max-width: 540px;
  justify-content: flex-start;
}

.hero-details {
  display: flex;
  flex-direction: column;
  margin-top: 1.8rem;
}

.hero-names {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.88;
  font-size: clamp(3.2rem, 6.6vw, 6.8rem);
}

.hero-script {
  margin: 0.15rem 0 1.4rem;
  font-size: clamp(1.9rem, 3.5vw, 3.7rem);
}

@media (min-width: 981px) {
  .hero-layout {
    align-items: start;
  }

  .hero-copy {
    min-height: 78vh;
    padding-top: 2.75rem;
  }

  .hero-details {
    margin-top: auto;
    padding-bottom: 12vh;
  }
}

.hero-location,
.hero-date,
.location-name,
.location-text,
.gift-text,
.allergy-text,
.info-card-text,
.gift-bank-owner,
.text-link,
.program-label,
.program-time {
  font-family: "Cormorant Garamond", serif;
}

.hero-location,
.hero-date {
  font-size: clamp(1.15rem, 1.65vw, 1.75rem);
  line-height: 1.2;
}

.hero-date {
  font-style: italic;
  font-weight: 600;
}

.hero-art,
.split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.botanical-art {
  width: min(100%, 500px);
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(23, 20, 16, 0.08));
}

.hero-botanical {
  max-height: 72vh;
}

.program-botanical {
  max-height: 68vh;
}

.program-copy {
  max-width: 620px;
}

.program-list {
  display: grid;
  gap: 0;
}

.program-row {
  display: grid;
  grid-template-columns: 150px minmax(180px, 320px);
  align-items: center;
  gap: 1.75rem;
  padding: 1.1rem 0;
}

.program-row + .program-row {
  border-top: 1px solid var(--line);
}

.program-time,
.program-label {
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.1;
}

.program-time {
  font-weight: 600;
}

.location-copy {
  max-width: 560px;
}

.location-name {
  margin-top: 1.2rem;
  font-size: clamp(1.8rem, 2.7vw, 2.8rem);
  font-weight: 600;
}

.location-subname {
  margin-top: 1rem;
  font-size: clamp(1.4rem, 2vw, 2.4rem);
  font-weight: 600;
}

.location-text {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.35;
  color: var(--muted-ink);
}

.text-link {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-self: flex-start;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
}

.location-photo {
  border-radius: 42% 42% 0 0 / 18% 18% 0 0;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.location-photo {
  width: min(100%, 500px);
  aspect-ratio: 0.86;
}

.info-section {
  display: grid;
  gap: 3.2rem;
  min-width: 0;
}

.info-heading-wrap {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr minmax(120px, 180px);
  align-items: center;
  gap: 1.5rem;
}

.info-heading {
  justify-self: center;
  width: min(100%, 880px);
  text-align: center;
}

.decorative-floral {
  opacity: 0.72;
  width: 100%;
  max-width: 145px;
  align-self: center;
}

.decorative-right {
  justify-self: end;
}

@media (min-width: 981px) {
  #informazioni .section-heading {
    white-space: nowrap;
  }

  .decorative-left,
  .decorative-right {
    justify-self: center;
    transform: translateY(8px);
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.info-card {
  padding: 1.75rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 260px;
  box-sizing: border-box;
}

.info-card-title {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.7vw, 2rem);
  line-height: 1.1;
}

.info-card-text {
  font-size: clamp(0.98rem, 1.14vw, 1.18rem);
  line-height: 1.48;
  color: var(--muted-ink);
}

.allergy-panel {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem);
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.allergy-text {
  margin: 1rem auto 0;
  max-width: 680px;
  font-size: clamp(1.22rem, 1.8vw, 1.7rem);
  line-height: 1.38;
  color: var(--muted-ink);
}

#allergie .section-heading {
  font-size: clamp(2.3rem, 4.1vw, 4.2rem);
  line-height: 1;
}

.allergy-cta {
  margin: 2rem auto 0;
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  padding: 0.95rem 1.3rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.52);
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  font-weight: 600;
  text-align: center;
}

.allergy-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.gift-copy {
  max-width: 600px;
}

.gift-text {
  margin-top: 1rem;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  line-height: 1.35;
  color: var(--muted-ink);
}

.gift-bank {
  margin-top: 2rem;
  display: grid;
  gap: 0.3rem;
}

.gift-bank-label {
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gift-bank-value {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 600;
  word-break: break-word;
}

.gift-bank-owner {
  font-size: clamp(1.15rem, 1.45vw, 1.35rem);
  line-height: 1.3;
  color: var(--muted-ink);
}

.gift-botanical {
  width: min(100%, 500px);
  max-height: 72vh;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

#intro.fade-in {
  opacity: 0;
  transform: none;
  transition: opacity 0.8s ease-out;
}

#intro.fade-in.visible {
  opacity: 1;
}

#intro .hero-botanical {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s ease-out 0.12s, transform 1s ease-out 0.12s;
}

#intro.visible .hero-botanical {
  opacity: 1;
  transform: translateY(0);
}

footer {
  scroll-snap-align: start;
  padding: 1.25rem 0 6rem;
  background: var(--page-bg);
  text-align: center;
}

footer p {
  font-size: 1.2rem;
  color: var(--muted-ink);
}

.quick-nav {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.quick-nav-toggle {
  pointer-events: auto;
  border: 1px solid rgba(23, 20, 16, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.quick-nav-list {
  pointer-events: auto;
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  width: min(88vw, 320px);
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  border-radius: 14px;
  border: 1px solid rgba(23, 20, 16, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  max-height: 40vh;
  overflow: auto;
}

.quick-nav.open .quick-nav-list {
  display: grid;
}

.quick-nav-list a {
  display: block;
  border: 1px solid rgba(23, 20, 16, 0.14);
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-style: italic;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
}

.quick-nav-list a.is-active {
  background: rgba(219, 226, 211, 0.95);
}

.lang-switch {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1201;
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 20, 16, 0.18);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lang-btn {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.2rem 0.35rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.lang-btn.is-active {
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(23, 20, 16, 0.16);
}

@media (max-width: 980px) {
  .hero-layout,
  .split-section,
  .info-heading-wrap,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .page {
    min-height: 100vh;
    min-height: 100dvh;
    scroll-snap-stop: always;
    padding: 4rem 0;
  }

  .hero-copy,
  .split-copy,
  .program-copy,
  .location-copy,
  .gift-copy {
    max-width: none;
  }

  .hero-details {
    margin-top: 0;
  }

  .hero-layout {
    text-align: left;
    gap: 1.5rem;
  }

  .hero-art {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .program-copy {
    order: 2;
  }

  .split-visual {
    order: 1;
    width: 100%;
  }

  .info-heading {
    width: 100%;
  }

  .section-heading-right {
    text-align: center;
  }

  .decorative-right,
  .decorative-left {
    max-width: 120px;
  }
}

@media (max-width: 640px) {
  .quick-nav {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 10px;
  }

  .lang-switch {
    top: 8px;
    right: 8px;
    left: auto;
  }

  .reel-scroll {
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
  }

  .page {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    scroll-snap-stop: always;
    padding: 3rem 0 3.25rem;
  }

  .center-wrapper {
    width: min(90vw, var(--page-column-width));
  }

  .hero-layout,
  .split-section {
    gap: 1.35rem;
  }

  .hero-copy {
    align-items: center;
    gap: 0.65rem;
    text-align: center;
  }

  .hero-names {
    font-size: clamp(2.35rem, 13vw, 4rem);
    line-height: 0.92;
  }

  .hero-details {
    order: 3;
    align-items: center;
    text-align: center;
  }

  .hero-art {
    order: 2;
  }

  .hero-script {
    margin: 0.1rem 0 0.8rem;
    font-size: clamp(1.55rem, 9vw, 2.35rem);
  }

  .hero-location,
  .hero-date,
  .location-text,
  .gift-text,
  .allergy-text,
  .info-card-text,
  .program-time,
  .program-label,
  .gift-bank-owner {
    font-size: 1.15rem;
  }

  .hero-date,
  .hero-location {
    line-height: 1.25;
    text-align: center;
  }

  .program-botanical {
    width: min(72vw, 320px);
    max-height: 20vh;
  }

  .hero-botanical,
  .gift-botanical {
    width: min(72vw, 320px);
    max-height: 43vh;
  }

  .location-photo {
    border-radius: 32px 32px 0 0;
  }

  .program-copy {
    gap: 0;
  }

  .section-heading {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    line-height: 0.98;
  }

  .script-subtitle {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    margin: 0.35rem 0 1rem;
  }

  .program-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.85rem 0;
  }

  .program-time {
    font-size: 1.1rem;
    letter-spacing: 0.04em;
  }

  .program-label {
    font-size: 1.32rem;
  }

  .location-name {
    margin-top: 0.8rem;
    font-size: 1.7rem;
  }

  .location-subname {
    margin-top: 0.4rem;
    font-size: 1.5rem;
  }

  .location-text,
  .gift-text,
  .allergy-text,
  .info-card-text {
    line-height: 1.42;
  }

  .text-link {
    margin-top: 1rem;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
  }

  .info-section {
    gap: 2rem;
  }

  .info-heading-wrap {
    gap: 1rem;
  }

  .decorative-floral {
    display: none;
  }

  #informazioni .section-heading {
    white-space: normal;
  }

  .info-card {
    padding: 1.2rem 1rem 1.05rem;
  }

  .info-card-title {
    margin-bottom: 0.55rem;
    font-size: 1.7rem;
  }

  .info-card {
    min-height: auto;
  }

  .allergy-panel {
    width: 100%;
    margin-inline: auto;
    padding: 1.35rem 0.9rem;
  }

  .allergy-cta {
    margin-top: 1.4rem;
    width: 100%;
    max-width: 100%;
    padding: 0.85rem 0.9rem;
    font-size: 1.05rem;
  }

  .allergy-icon {
    width: 42px;
    height: 42px;
  }

  .gift-bank {
    margin-top: 1.4rem;
  }

  .gift-bank-value {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .quick-nav-list {
    width: min(90vw, 320px);
    grid-template-columns: 1fr;
  }
}
