/* ==========================================================================
   Velluto Digital Wedding Invitation — Bordeaux & Ink Palette
   ========================================================================== */

:root {
  /* Palette: bordeaux-ink */
  --art-ink: #5a2233;
  --tr-pieno: #5a2233;
  --tr-carta: #f5f0e6;

  --c-ink-900: #3c1622;
  --c-ink-700: #5a2233;
  --c-ink-500: #743246;
  --c-wine-900: #3c1622;
  --c-wine-800: #3c1622;
  --c-wine-700: #5a2233;
  --c-wine-600: #743246;
  --c-wine-500: #9a5468;

  --c-ivory-50: #f5f0e6;
  --c-ivory-100: #ede6d8;
  --c-ivory-200: #e1d8c5;
  --c-ivory-300: #cdc2aa;
  --c-ivory-400: #b3a789;

  --tn-oro: #867053;
  --tn-bruno: #6a5c4b;

  --t-accent: #5a2233;
  --t-accent-soft: #9a5468;
  --t-bg-deep: #3c1622;
  --t-surface: #f5f0e6;
  --t-line: rgba(90, 34, 51, 0.22);
  --t-line-light: rgba(245, 240, 230, 0.32);

  /* Envelope colors */
  --busta-panel: #652428;
  --busta-inner: #d4d2c5;
  --cartiglio-inchiostro: #5f1e22;

  /* Typography */
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Pinyon Script", cursive;

  /* Motion & Layout */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 0.2s;
  --dur-2: 0.5s;
  --dur-3: 0.9s;
  --reveal-shift: 26px;

  --barra-h: 45px;
  --frame-max: 440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #4b1b27;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-serif);
  color: var(--c-ink-900);
  background: radial-gradient(circle at 50% 25%, #5b2231 0%, #3d1520 65%, #2d0e16 100%);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
  height: 100dvh;
}

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

button,
input,
textarea {
  font-family: inherit;
}

a {
  color: inherit;
}

/* ==========================================================================
   Centered Editorial Frame (matches mobile & desktop presentation)
   ========================================================================== */

.page-shell {
  position: relative;
  width: 100%;
  max-width: var(--frame-max);
  margin: 0 auto;
  min-height: 100dvh;
  background-color: var(--tr-pieno);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  overflow-x: clip;
}

.invito {
  position: relative;
  background-color: var(--tr-pieno);
  color: var(--c-ink-900);
  padding-bottom: var(--barra-h);
  transform-origin: center 40vh;
  transition: transform 1.15s var(--ease-out);
}

html.is-envelope-closed .invito {
  transform: scale(0.88);
}

html.is-envelope-opening .invito,
html.is-envelope-open .invito {
  transform: scale(1);
}

/* ==========================================================================
   Closed Envelope Overlay (carta-bordeaux-fiocco)
   ========================================================================== */

.music-intro {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame-max);
  height: 100dvh;
  z-index: 200;
  border: 0;
  padding: 0;
  margin: 0;
  background-color: var(--busta-panel);
  cursor: pointer;
  display: block;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.65s var(--ease-out), visibility 0.65s;
}

.music-intro.is-opening {
  background-color: transparent;
}

.music-intro.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.music-intro__key {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* Fallback CSS bi-fold doors when video canvas cannot decode (e.g. restricted file://) */
.music-intro__fallback {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}

.music-intro.is-fallback .music-intro__fallback {
  display: block;
}

.music-intro.is-fallback .music-intro__key {
  display: none;
}

.music-intro__fallback-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out), opacity 1.1s var(--ease-out);
}

.music-intro.is-fallback.is-opening .music-intro__fallback-img {
  transform: scale(1.12);
  opacity: 0;
}

.music-intro__cartiglio {
  position: absolute;
  top: 12.5%;
  left: 50%;
  width: min(33%, 148px);
  aspect-ratio: 480 / 631;
  transform: translateX(-50%) rotate(-0.6deg);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
  pointer-events: none;
  transition: transform 0.75s var(--ease-out), opacity 0.55s var(--ease-out);
  z-index: 3;
}

.music-intro.is-opening .music-intro__cartiglio {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px) scale(0.95) rotate(-0.6deg);
}

.music-intro__cartiglio-bg {
  position: absolute;
  inset: 0;
  background-color: #f6f1e9;
  -webkit-mask-image: url("assets/invite/etichetta/cartiglio-sagoma.webp");
  mask-image: url("assets/invite/etichetta/cartiglio-sagoma.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.music-intro__cartiglio-frame {
  position: absolute;
  inset: 0;
  background-color: rgba(95, 30, 34, 0.58);
  -webkit-mask-image: url("assets/invite/etichetta/cartiglio-cornice.webp");
  mask-image: url("assets/invite/etichetta/cartiglio-cornice.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.music-intro__cartiglio-monogramma {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.music-intro__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5.5%;
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f4ede4;
  text-shadow: 0 1px 10px rgba(12, 10, 8, 0.9);
  animation: music-hint-tenda 2.8s ease-in-out infinite;
  transition: opacity 0.35s ease;
  z-index: 3;
}

.music-intro.is-opening .music-intro__hint {
  opacity: 0;
  animation: none;
}

@keyframes music-hint-tenda {
  0%, 100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   Persistent Chrome: Top Nav, Seal, Hamburger Drawer, Bottom Nav, Audio Pill
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame-max);
  height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 95;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
  pointer-events: none;
}

.nav > * {
  pointer-events: auto;
}

.nav.is-scrolled {
  background-color: rgba(60, 22, 34, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(245, 240, 230, 0.14);
}

.seal {
  position: relative;
  width: var(--_size, 44px);
  height: var(--_size, 44px);
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 230, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--c-ivory-50);
  font-family: var(--font-serif);
  font-size: calc(var(--_size, 44px) * 0.27);
  font-weight: 500;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.seal::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px solid rgba(245, 240, 230, 0.32);
  pointer-events: none;
}

.seal--dark {
  color: var(--c-ink-700);
  border-color: rgba(90, 34, 51, 0.55);
}

.seal--dark::after {
  border-color: rgba(90, 34, 51, 0.28);
}

.seal--lg {
  --_size: 88px;
  font-size: 23px;
}

.seal--lg::after {
  inset: 5px;
}

.nav__toggle {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: var(--c-ivory-50);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Full-screen Hamburger Drawer */
.nav-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame-max);
  height: 100dvh;
  z-index: 150;
  background-color: rgba(245, 240, 230, 0.98);
  color: var(--c-ink-700);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 20px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s var(--ease-out), visibility 0.32s;
}

.nav-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.nav-menu__close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--c-ink-700);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-menu__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.nav-menu__links a {
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--c-ink-700);
  transition: opacity 0.2s ease;
}

.nav-menu__links a:hover {
  opacity: 0.7;
}

.nav-menu__langs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-wine-500);
  scrollbar-width: none;
}

.nav-menu__langs::-webkit-scrollbar {
  display: none;
}

.nav-menu__lang-btn {
  border: 0;
  background: transparent;
  padding: 2px 3px;
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.nav-menu__lang-btn.is-active {
  color: var(--c-ink-900);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-menu__sep {
  opacity: 0.45;
  user-select: none;
}

/* Fixed Bottom Bar */
.bottomnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--frame-max);
  height: var(--barra-h);
  z-index: 90;
  background-color: var(--t-surface);
  border-top: 1px solid var(--t-line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.bottomnav__item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-wine-500);
  transition: color 0.2s ease;
}

.bottomnav__item span {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.bottomnav__item.is-active {
  color: var(--c-ink-900);
}

.bottomnav__item.is-active span {
  border-bottom-color: var(--c-ink-900);
}

/* Floating Music Toggle */
.music-toggle {
  position: fixed;
  bottom: calc(var(--barra-h) + 18px);
  left: max(16px, calc(50% - var(--frame-max) / 2 + 16px));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(90, 34, 51, 0.22);
  background-color: rgba(245, 240, 230, 0.94);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  color: var(--c-ink-900);
  cursor: pointer;
  z-index: 92;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

html.is-envelope-open .music-toggle {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.music-toggle:not(.is-playing) {
  animation: music-pulse 2.4s ease-in-out infinite;
}

@keyframes music-pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 0 0 rgba(245, 240, 230, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28), 0 0 0 8px rgba(245, 240, 230, 0);
  }
}

.music-toggle__bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.music-toggle__bars i {
  display: block;
  width: 2.5px;
  background-color: var(--c-ink-900);
  border-radius: 1px;
  height: 6px;
}

.music-toggle__bars i:nth-child(1) {
  height: 8px;
}

.music-toggle__bars i:nth-child(2) {
  height: 13px;
}

.music-toggle__bars i:nth-child(3) {
  height: 5px;
}

.music-toggle.is-playing .music-toggle__bars i {
  animation: music-bar 0.9s ease-in-out infinite alternate;
}

.music-toggle.is-playing .music-toggle__bars i:nth-child(2) {
  animation-delay: 0.22s;
}

.music-toggle.is-playing .music-toggle__bars i:nth-child(3) {
  animation-delay: 0.45s;
}

@keyframes music-bar {
  0% {
    height: 4px;
  }
  100% {
    height: 14px;
  }
}

/* ==========================================================================
   Shared Typography & Ornament Utilities
   ========================================================================== */

.eyebrow {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tn-bruno);
}

.eyebrow--ivory {
  color: rgba(245, 240, 230, 0.78);
}

.script-title {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(36px, 9.5vw, 48px);
  line-height: 1.15;
  -webkit-text-stroke: 0.02em currentColor;
  paint-order: stroke fill;
}

.u-tnum {
  font-variant-numeric: lining-nums tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--c-ink-900);
  background-color: transparent;
  color: var(--c-ink-900);
  cursor: pointer;
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, opacity var(--dur-1) ease;
}

.btn:hover:not(:disabled) {
  background-color: var(--c-ink-900);
  color: var(--c-ivory-50);
}

.btn--solid {
  background-color: var(--c-ink-900);
  color: var(--c-ivory-50);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(245, 240, 230, 0.45);
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.link-underline:hover {
  border-bottom-color: var(--c-ivory-50);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-shift));
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Section 1: Hero (#top)
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100dvh - var(--barra-h));
  min-height: 755px;
  padding: 68px 14px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--t-bg-deep);
  background-image:
    radial-gradient(95% 130% at 50% 25%, transparent 55%, rgba(0, 0, 0, 0.28)),
    url("assets/invite/tn-fondo-velluto.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: normal, overlay;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  width: min(88%, 358px);
  aspect-ratio: 648 / 1117;
  background: url("assets/invite/tn-cartiglio.webp") center / contain no-repeat;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.34));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 23% 15% 19%;
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tn-bruno);
}

.hero__names {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(44px, 12vw, 54px);
  line-height: 0.94;
  color: var(--tn-oro);
  -webkit-text-stroke: 0.025em currentColor;
  paint-order: stroke fill;
}

.hero__names span {
  display: block;
}

.hero__amp {
  font-size: 0.5em;
  line-height: 1.05;
  margin: 3px 0;
}

.hero__kicker {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  color: var(--tn-bruno);
}

.hero__meta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__date {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--tn-bruno);
}

.hero__loc {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tn-bruno);
  max-width: 14ch;
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-ivory-100);
  animation: scroll-cue-bob 2.4s ease-in-out infinite;
}

@keyframes scroll-cue-bob {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.78;
  }
  50% {
    transform: translateX(-50%) translateY(5px);
    opacity: 1;
  }
}

/* ==========================================================================
   Section 2 & 3: Countdown (#countdown) + Our Story (#storia) Cream Arch Card
   ========================================================================== */

.cream-sheet {
  background-color: var(--tr-carta);
  color: var(--c-ink-900);
  border-radius: 0 0 9999px 9999px;
  overflow: hidden;
  padding-bottom: 14px;
}

.garland {
  display: block;
  margin: 0 auto;
  background-color: var(--art-ink);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.garland--straight {
  width: 92%;
  aspect-ratio: 1164 / 356;
  margin-top: 12px;
  -webkit-mask-image: url("assets/invite/tn-ghirlanda-dritta.webp");
  mask-image: url("assets/invite/tn-ghirlanda-dritta.webp");
}

.garland--top {
  width: 94%;
  aspect-ratio: 1165 / 572;
  margin-top: -6px;
  -webkit-mask-image: url("assets/invite/tn-ghirlanda-alto.webp");
  mask-image: url("assets/invite/tn-ghirlanda-alto.webp");
}

.garland--bottom {
  width: 84%;
  aspect-ratio: 1078 / 527;
  margin-top: 22px;
  -webkit-mask-image: url("assets/invite/tn-ghirlanda-basso.webp");
  mask-image: url("assets/invite/tn-ghirlanda-basso.webp");
}

.count {
  padding: 6px 18px 34px;
  text-align: center;
}

.count__eyebrow {
  margin-top: 14px;
  color: rgba(106, 92, 75, 0.7);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.count__title {
  margin-top: 6px;
  color: var(--c-ink-900);
  font-size: clamp(36px, 9.5vw, 44px);
}

.count__clock {
  margin: 30px auto 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.count__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.count__medallion {
  width: clamp(68px, 19vw, 84px);
  aspect-ratio: 1197 / 1688;
  background: url("assets/invite/tn-medaglione.webp") center / contain no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 3px 10px rgba(60, 22, 34, 0.08));
}

.count__num {
  font-family: var(--font-serif);
  font-size: clamp(22px, 6.2vw, 27px);
  font-weight: 500;
  color: var(--tn-oro);
  line-height: 1;
}

.count__label {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tn-bruno);
}

/* Our Story */
.storia {
  padding: 8px 20px 10px;
  text-align: center;
}

.storia__frame {
  width: min(86%, 320px);
  margin: 0 auto;
  border-style: solid;
  border-color: transparent;
  border-width: clamp(28px, 8vw, 42px);
  border-image-source: url("assets/invite/tn-cornice-foto.webp");
  border-image-slice: 571 576 362;
  border-image-width: 1.746 1.761 1.107;
  border-image-repeat: stretch;
  filter: drop-shadow(0 6px 16px rgba(60, 22, 34, 0.1));
}

.storia__photo {
  width: 100%;
  aspect-ratio: 1024 / 687;
  object-fit: cover;
}

.storia__caption {
  margin: 26px auto 0;
  max-width: 31ch;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tn-bruno);
}

/* ==========================================================================
   Section 4: Location (#travel) — Deep Burgundy
   ========================================================================== */

.section-burgundy {
  background-color: var(--tr-pieno);
  color: var(--c-ivory-50);
  padding: 54px 22px 64px;
  text-align: center;
}

.sindex {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 34px;
}

.sindex__fregio {
  width: 118px;
  aspect-ratio: 784 / 92;
  background-color: rgba(245, 240, 230, 0.65);
  -webkit-mask-image: url("assets/invite/tn-fregio.webp");
  mask-image: url("assets/invite/tn-fregio.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  margin-bottom: 12px;
}

.sindex__fregio--dark {
  background-color: rgba(90, 34, 51, 0.45);
}

.sindex__title {
  color: inherit;
}

.venues {
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.venue {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue__art {
  width: 100%;
  background-color: rgba(245, 240, 230, 0.92);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  margin-bottom: 24px;
}

.venue__art--tempietto {
  max-width: 310px;
  aspect-ratio: 1300 / 655;
  -webkit-mask-image: url("assets/invite/tn-tempietto.webp");
  mask-image: url("assets/invite/tn-tempietto.webp");
}

.venue__art--villa {
  max-width: 340px;
  aspect-ratio: 1300 / 582;
  -webkit-mask-image: url("assets/invite/tn-villa.webp");
  mask-image: url("assets/invite/tn-villa.webp");
}

.venue__tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(245, 240, 230, 0.72);
  margin-bottom: 6px;
}

.venue__name {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--c-ivory-50);
}

.venue__meta {
  margin: 8px 0 18px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: rgba(245, 240, 230, 0.85);
}

.venue__meta strong {
  font-weight: 600;
  font-size: 17px;
  color: var(--c-ivory-50);
}

.travel__notes {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.travel__notes p {
  margin: 0;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.84);
}

/* ==========================================================================
   Pill-Shaped Cream Arches (#program, #gift, #faq)
   ========================================================================== */

.arch-section {
  background-color: var(--tr-pieno);
  padding: 10px 0;
}

.arch {
  background-color: var(--tr-carta);
  color: var(--c-ink-900);
  border-radius: 220px;
  padding: 26px 24px 24px;
  overflow: hidden;
  text-align: center;
}

.arch__body {
  padding: 28px 6px 18px;
}

/* ==========================================================================
   Section 5: The Day / Programme (#program)
   ========================================================================== */

.psp {
  --psp-spine: 35%;
  position: relative;
  margin: 34px auto 12px;
  text-align: left;
  padding: 4px 0;
}

.psp::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: var(--psp-spine);
  width: 1px;
  background-color: rgba(90, 34, 51, 0.24);
}

.psp__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--psp-spine) 1fr;
  align-items: start;
  padding-bottom: 34px;
}

.psp__item:last-child {
  padding-bottom: 6px;
}

.psp__time {
  padding-right: 18px;
  text-align: right;
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--c-wine-500);
  padding-top: 4px;
}

.psp__dot {
  position: absolute;
  left: var(--psp-spine);
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--c-ink-700);
  transform: translateX(-50%);
}

.psp__content {
  padding-left: 18px;
}

.psp__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-ink-900);
}

.psp__desc {
  margin: 8px 0 0;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--c-wine-500);
}

/* ==========================================================================
   Section 6: Dress Code (#dress)
   ========================================================================== */

.dress {
  position: relative;
  background-color: var(--tr-pieno);
  color: var(--c-ivory-50);
  padding: 68px 24px 72px;
  text-align: center;
  overflow: hidden;
}

.dress__lilies {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 0 18px;
}

.dress__lilies::before,
.dress__lilies::after {
  content: "";
  position: absolute;
  top: 8px;
  width: clamp(58px, 16vw, 76px);
  aspect-ratio: 590 / 1816;
  background-color: rgba(245, 240, 230, 0.78);
  -webkit-mask-image: url("assets/invite/tn-filo-calle.webp");
  mask-image: url("assets/invite/tn-filo-calle.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}

.dress__lilies::before {
  left: -10px;
}

.dress__lilies::after {
  right: -10px;
  transform: scaleX(-1);
}

.dress__title {
  margin: 46px 0 16px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(36px, 9.5vw, 44px);
  line-height: 1.15;
  color: var(--c-ivory-50);
}

.dress__note {
  margin: 0 auto;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.88);
}

.dress__swatches {
  margin: 34px auto 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.dress__swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 240, 230, 0.55);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Section 7: Gift List (#gift)
   ========================================================================== */

.gift__subtitle {
  margin: 28px 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 25px;
  color: var(--c-ink-900);
}

.gift__copy {
  margin: 0 auto 28px;
  max-width: 32ch;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--c-wine-500);
}

.iban__panel {
  margin: 26px auto 0;
  max-width: 340px;
  overflow: hidden;
}

.iban__panel[hidden] {
  display: none;
}

.iban__card {
  border: 1px solid var(--c-ink-900);
  padding: 20px 16px 22px;
  background-color: var(--c-ivory-50);
}

.iban__holder {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-wine-500);
}

.iban__code {
  margin: 12px 0 16px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--c-ink-900);
  word-break: break-all;
}

/* ==========================================================================
   Section 8: RSVP (#rsvp)
   ========================================================================== */

.rsvp {
  background-color: var(--tr-pieno);
  padding: 48px 18px 54px;
}

.rsvp__card {
  background-color: var(--tr-carta);
  color: var(--c-ink-900);
  border-radius: 18px;
  padding: 32px 22px 30px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.rsvp__heading {
  text-align: center;
  margin-bottom: 24px;
}

.rsvp__heading .eyebrow {
  color: var(--c-wine-500);
  margin-bottom: 4px;
}

.guest-block {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(90, 34, 51, 0.14);
}

.guest__name {
  margin: 0 0 16px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--c-ink-900);
}

.choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(90, 34, 51, 0.28);
  margin-bottom: 22px;
}

.choice--wrap {
  grid-template-columns: repeat(2, 1fr);
}

.choice__opt {
  padding: 12px 8px;
  border: 0;
  background-color: transparent;
  color: var(--c-ink-700);
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.choice__opt + .choice__opt {
  border-left: 1px solid rgba(90, 34, 51, 0.22);
}

.choice--wrap .choice__opt:nth-child(n + 3) {
  border-top: 1px solid rgba(90, 34, 51, 0.22);
}

.choice--wrap .choice__opt:nth-child(3) {
  border-left: 0;
}

.choice__opt.is-selected {
  background-color: var(--c-ink-900);
  color: var(--c-ivory-50);
}

.field__label {
  display: block;
  margin-bottom: 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-wine-600);
}

.field__textarea,
.field__input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(90, 34, 51, 0.26);
  background: transparent;
  padding: 8px 0;
  font-size: 15.5px;
  color: var(--c-ink-900);
  outline: none;
  border-radius: 0;
}

.field__textarea {
  min-height: 54px;
  resize: vertical;
}

.field__textarea::placeholder,
.field__input::placeholder {
  color: rgba(116, 50, 70, 0.55);
}

.field__textarea:focus,
.field__input:focus {
  border-bottom-color: var(--c-ink-900);
}

.rsvp__kids {
  margin-bottom: 26px;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  color: var(--c-ink-700);
  user-select: none;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--c-ink-900);
  cursor: pointer;
}

.kids-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed rgba(90, 34, 51, 0.2);
}

.kids-panel[hidden] {
  display: none;
}

.kids-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.kids-count-row label {
  font-size: 14.5px;
  color: var(--c-ink-700);
}

.kids-count-row input {
  width: 68px;
  text-align: center;
  border: 1px solid rgba(90, 34, 51, 0.28);
  background: transparent;
  padding: 6px 8px;
  font-size: 15px;
  color: var(--c-ink-900);
}

.child-card {
  padding: 16px 0;
  border-top: 1px solid rgba(90, 34, 51, 0.14);
}

.child-card__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  color: var(--c-ink-900);
}

.field__helper {
  margin: -14px 0 16px;
  font-size: 12.5px;
  color: var(--c-wine-500);
}

.rsvp__thought {
  margin-bottom: 20px;
}

.rsvp__privacy {
  margin: 0 0 16px;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(90, 34, 51, 0.62);
}

.rsvp__privacy a {
  text-decoration: underline;
}

.rsvp__status {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--c-ink-700);
  background-color: var(--c-ivory-100);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--c-ink-900);
}

.rsvp__status[hidden] {
  display: none;
}

/* ==========================================================================
   Section 9: FAQ (#faq)
   ========================================================================== */

.faq__list {
  margin: 26px auto 10px;
  border-top: 1px solid rgba(90, 34, 51, 0.2);
}

.faq__item {
  border-bottom: 1px solid rgba(90, 34, 51, 0.2);
}

.faq__q {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 20px 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--c-ink-900);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 400;
  text-align: center;
}

.faq__q span:first-child {
  padding-left: 22px;
}

.faq__icon {
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  color: var(--c-ink-700);
  width: 22px;
  text-align: center;
}

.faq__a {
  padding: 0 14px 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--c-wine-500);
}

.faq__a[hidden] {
  display: none;
}

/* ==========================================================================
   Section 10: Footer
   ========================================================================== */

.foot {
  padding: 68px 24px 64px;
  text-align: center;
  color: var(--c-ivory-50);
  background-color: var(--t-bg-deep);
  background-image:
    radial-gradient(95% 130% at 50% 25%, transparent 55%, rgba(0, 0, 0, 0.28)),
    url("assets/invite/tn-fondo-velluto.webp");
  background-size: cover, cover;
  background-position: center, center;
  background-blend-mode: normal, overlay;
}

.foot__love {
  margin: 28px 0 6px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--c-ivory-50);
}

.foot__names {
  margin: 0;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(38px, 10vw, 48px);
  line-height: 1.15;
  color: var(--c-ivory-50);
  -webkit-text-stroke: 0.02em currentColor;
  paint-order: stroke fill;
}

.foot__date {
  margin: 14px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 240, 230, 0.8);
}

.foot__contact {
  margin-top: 44px;
}

.foot__contact p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(245, 240, 230, 0.82);
}

.foot__credit {
  display: inline-block;
  margin-top: 26px;
  font-size: 12px;
  color: rgba(245, 240, 230, 0.72);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .scroll-cue,
  .music-intro__hint,
  .music-toggle:not(.is-playing),
  .music-toggle.is-playing .music-toggle__bars i {
    animation: none;
  }
}
