/* Richiamo locale del font principale */
@font-face {
  font-family: "Albra";
  src: local("Albra"), local("Albra Regular");
  font-display: swap;
}

/* Variabili grafiche principali */
:root {
  --color-background: #f8f2e8;
  --color-surface: rgba(255, 252, 247, 0.8);
  --color-surface-strong: #fffaf2;
  --color-text: #0047ab;
  --color-text-soft: #0047ab;
  --color-accent: #0047ab;
  --color-line: rgba(0, 71, 171, 0.18);
  --color-line-strong: rgba(0, 71, 171, 0.85);
  --shadow-soft: 0 20px 60px rgba(0, 71, 171, 0.08);
  --radius-large: 2rem;
  --radius-medium: 1.5rem;
  --page-width: min(1120px, calc(100vw - 2rem));
  --font-display: "Albra", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Albra", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

/* Reset di base */
* {
  box-sizing: border-box;
}

html {
  background: #f8f2e8;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

::selection {
  background: var(--color-accent);
  color: #ffffff;
}

::-moz-selection {
  background: var(--color-accent);
  color: #ffffff;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

body.menu-open,
body.is-transitioning {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(10px);
}

body::before {
  top: -8rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(0, 71, 171, 0.06), transparent 70%);
}

body::after {
  bottom: -10rem;
  left: -6rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(0, 71, 171, 0.035), transparent 72%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

/* Struttura generale della pagina */
.page-shell {
  width: var(--page-width);
  margin: 0 auto;
  padding: 6.5rem 0 4rem;
}

.page-shell > section + section {
  margin-top: 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
}

p {
  line-height: 1.6;
}

/* Barra di navigazione */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 0;
  background: var(--color-background);
  z-index: 30;
}

.site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--color-background);
  z-index: -1;
}

.site-nav__title,
.site-nav__toggle {
  min-height: 4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--color-background);
  backdrop-filter: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  line-height: 1;
  color: var(--color-text);
}

.site-nav__title {
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  justify-content: flex-start;
  text-align: left;
}

.site-nav__toggle {
  width: 4rem;
  min-width: 4rem;
  font-size: 1.35rem;
  flex: 0 0 4rem;
  justify-content: flex-end;
  color: var(--color-text);
}

.site-nav__toggle i,
.menu-panel__close i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 0;
  margin-left: auto;
}

.site-nav__toggle svg,
.menu-panel__close svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.site-nav__toggle::before {
  content: "";
  width: 1.8rem;
  height: 1.2rem;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.site-nav__toggle i {
  display: none;
}

.menu-panel__close {
  position: relative;
}

.menu-panel__close::before,
.menu-panel__close::after {
  content: "";
  position: absolute;
  right: 0;
  width: 1.8rem;
  height: 2px;
  background: currentColor;
}

.menu-panel__close::before {
  transform: rotate(45deg);
}

.menu-panel__close::after {
  transform: rotate(-45deg);
}

.menu-panel__close i {
  display: none;
}

/* Menu fullscreen */
.menu-panel {
  position: fixed;
  inset: 0;
  padding: 1rem;
  background: rgba(248, 242, 232, 0.95);
  backdrop-filter: blur(16px);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 35;
}

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

.menu-panel__top {
  width: var(--page-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(0.9rem);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-panel__spacer {
  width: 4rem;
  height: 4rem;
  flex: 0 0 4rem;
}

.menu-panel__label,
.menu-panel__close {
  min-height: 4rem;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.menu-panel__label {
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.76);
  letter-spacing: 0.06em;
}

.menu-panel__close {
  width: 4rem;
  min-width: 4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  flex: 0 0 4rem;
  justify-content: flex-end;
}

.menu-panel__nav {
  width: var(--page-width);
  margin: 2.4rem auto 0;
  display: grid;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(1.2rem);
  transition: opacity 0.35s ease 0.04s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

.menu-panel__nav a {
  display: block;
  padding: 0.7rem 0;
  border-bottom: 0;
  color: var(--color-text);
  font-size: clamp(1.1rem, 3.1vw, 1.9rem);
  letter-spacing: -0.05em;
  text-align: left;
}

.menu-panel__nav a.is-current {
  color: var(--color-accent);
}

.menu-open .menu-panel__top,
.menu-open .menu-panel__nav {
  opacity: 1;
  transform: translateY(0);
}

/* Transizione tra pagine */
.page-transition {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--color-background);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 45;
}

.page-transition.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-transition__logo {
  width: min(28vw, 8rem);
}

.is-loading-transition .page-transition {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.is-loading-transition .page-transition__logo {
  visibility: hidden;
}

.page-transition__logo.is-spinning {
  animation: logo-spin 0.9s linear 1;
}

/* Area vuota per la costruzione delle pagine */
.page-canvas {
  min-height: calc(100vh - 10rem);
}

/* Hero dedicato alla home */
.home-shell {
  height: 100dvh;
  min-height: 100dvh;
  padding-top: 5.6rem;
  padding-bottom: 1rem;
  overflow: hidden;
}

.home-hero {
  min-height: 0;
  height: 100%;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.home-title,
.home-date {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.home-title {
  max-width: 8ch;
  font-size: clamp(3.25rem, 10vw, 7rem);
  word-spacing: 0.12em;
}

.home-title span {
  display: inline;
}

.home-date {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.home-date--mobile {
  display: none;
}

.home-video {
  width: 100%;
  height: min(44vh, calc(100vw - 1rem));
  background: var(--color-background);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-video span {
  color: #f8f2e8;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Varianti della pagina cerimonia */
.ceremony-title span,
.ceremony-date span,
.reception-title span,
.reception-date span {
  display: block;
}

.ceremony-date,
.reception-date {
  text-transform: none;
}

.home-date span + span,
.ceremony-date span + span,
.reception-date span + span {
  margin-top: 5px;
}

.reception-map-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

/* Pagina RSVP */
.rsvp-shell {
  min-height: 100dvh;
}

.rsvp-embed__frame {
  border: 1px solid var(--color-line);
  background: rgba(255, 250, 242, 0.72);
  overflow: hidden;
}

.rsvp-iframe {
  display: block;
  width: 100%;
  min-height: 70dvh;
  border: 0;
  background: transparent;
}

/* Pagina lista nozze */
.gift-shell {
  min-height: 100dvh;
}

.gift-desktop-hero {
  display: none;
}

.gift-desktop-transfer {
  display: none;
}

.gift-desktop-title {
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.25rem, 10vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.gift-desktop-meta,
.gift-desktop-notes {
  display: grid;
}

.gift-desktop-meta {
  gap: 0.35rem;
}

.gift-desktop-notes {
  gap: 0.45rem;
}

.gift-desktop-meta p,
.gift-desktop-notes p {
  font-family: var(--font-display);
  font-weight: 400;
}

.gift-desktop-meta p {
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.9;
}

.gift-desktop-notes p {
  font-size: 1.35rem;
  line-height: 1.4;
}

.gift-desktop-photo {
  width: 100%;
  height: auto;
}

.gift-desktop-brand {
  display: inline-flex;
  justify-self: center;
}

.gift-desktop-list-access {
  display: none;
  text-align: center;
}

.gift-desktop-brand img {
  width: min(34vw, 13rem);
}

.gift-desktop-transfer {
  margin-top: 32px;
  text-align: center;
}

.gift-desktop-transfer p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.4;
}

.gift-memory-desktop {
  display: none;
}

.gift-memory-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.gift-memory-page {
  display: none;
}

.gift-memory-page.is-exiting {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gift-memory-card {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1200px;
}

.gift-memory-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0.28rem;
}

.gift-memory-card__inner {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.2, 0.7, 0.16, 1);
}

.gift-memory-card.is-flipped .gift-memory-card__inner {
  transform: rotateY(180deg);
}

.gift-memory-card__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.gift-memory-card__face--back {
  background: var(--color-background);
}

.gift-memory-card__face--front {
  background: var(--color-background);
  color: var(--color-accent);
  transform: rotateY(180deg);
}

.gift-memory-card__logo {
  width: min(38%, 6.5rem);
  height: auto;
  display: block;
}

.gift-memory-card__logo--gizzi {
  width: min(43.7%, 7.475rem);
}

.gift-memory-card__placeholder {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  letter-spacing: 0.16em;
}

.gift-memory-card__image {
  width: 76.5%;
  height: 76.5%;
  display: block;
  object-fit: contain;
}

.gift-memory-card__image--parapendio {
  width: 61.2%;
  height: 61.2%;
}

.gift-memory-card__image--cassetta {
  width: 63.1125%;
  height: 63.1125%;
}

.gift-memory-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  margin-top: clamp(1.2rem, 2.2vw, 1.8rem);
}

.gift-memory-arrow {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 5.2vw, 5.4rem);
  line-height: 0.7;
  transform: scaleX(0.65);
  transform-origin: center;
}

.gift-memory-arrow:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0.25rem;
}

.gift-memory-desktop[data-memory-direction="next"] .gift-memory-page.is-entering {
  animation: memoryPageEnterNext 1.25s cubic-bezier(0.18, 0.78, 0.16, 1) both;
}

.gift-memory-desktop[data-memory-direction="next"] .gift-memory-page.is-exiting {
  animation: memoryPageExitNext 1.25s cubic-bezier(0.18, 0.78, 0.16, 1) both;
}

.gift-memory-desktop[data-memory-direction="prev"] .gift-memory-page.is-entering {
  animation: memoryPageEnterPrev 1.25s cubic-bezier(0.18, 0.78, 0.16, 1) both;
}

.gift-memory-desktop[data-memory-direction="prev"] .gift-memory-page.is-exiting {
  animation: memoryPageExitPrev 1.25s cubic-bezier(0.18, 0.78, 0.16, 1) both;
}

@keyframes memoryPageEnterNext {
  from {
    transform: translateX(105%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes memoryPageExitNext {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-105%);
  }
}

@keyframes memoryPageEnterPrev {
  from {
    transform: translateX(-105%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes memoryPageExitPrev {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(105%);
  }
}

.gift-mobile-intro {
  display: none;
}

.gift-memory-mobile,
.gift-mobile-transfer {
  display: none;
}

.gift-mobile-panel {
  border: 0;
  background: transparent;
}

.gift-mobile-panel--text {
  display: grid;
  gap: 0.5rem;
  padding: 0;
}

.gift-mobile-panel--text p {
  font-size: 1.35rem;
  line-height: 1.45;
}

.gift-notes p:first-child {
  margin-bottom: 1rem;
}

.gift-mobile-panel--photo {
  min-height: 15rem;
  background: #111111;
}

.gift-mobile-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font-size: clamp(2rem, 7.4vw, 2.95rem);
  line-height: 0.88;
  margin-bottom: 0.6rem;
}

.gift-stack-mobile {
  display: none;
}

.gift-stack-card {
  appearance: none;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
}

.gift-stack-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 0.2rem;
}

.gift-stack-card--01 {
  background: #1f5f80;
}

.gift-stack-card--02 {
  background: #ec7a2d;
}

.gift-stack-card--03 {
  background: #f4c12d;
}

.gift-stack-card--04 {
  background: #d6452d;
}

.gift-stack-card--05 {
  background: #5b7f28;
}

.gift-stack-card--06 {
  background: #9760b6;
}

.gift-stack-card--07 {
  background: #d98b92;
}

.gift-stack-card--08 {
  background: #7e6fe7;
}

.gift-stack-card--09 {
  background: #3e3e3e;
}

.gift-stack-card--10 {
  background: #9f4d1c;
}

/* Hero e introduzioni */
.hero,
.page-hero,
.details-grid,
.story-grid,
.timeline,
.cta-strip,
.form-layout,
.info-columns,
.gift-grid {
  position: relative;
  overflow: hidden;
}

.hero,
.page-hero,
.cta-strip,
.form-sidecard {
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.92), rgba(250, 244, 235, 0.76));
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius-large) + 0.35rem);
  box-shadow: var(--shadow-soft);
}

.hero {
  min-height: 72vh;
  padding: 1.5rem;
  display: flex;
  align-items: flex-end;
}

.hero__content {
  display: grid;
  gap: 1rem;
}

.hero__lead,
.page-hero__text {
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--color-text-soft);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3.5rem, 15vw, 9rem);
  line-height: 0.9;
}

.page-hero {
  min-height: 50vh;
  padding: 1.5rem;
  display: grid;
  align-content: end;
  gap: 1rem;
}

/* Card di contenuto */
.details-grid,
.story-grid,
.timeline__items,
.info-columns,
.gift-grid,
.form-layout {
  display: grid;
  gap: 1rem;
}

.detail-card,
.story-card,
.timeline-card,
.info-panel,
.gift-card,
.rsvp-form {
  padding: 1.4rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: rgba(255, 250, 242, 0.72);
}

.detail-card__label,
.story-card__label {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.detail-card h2,
.story-card h2,
.timeline__intro h2,
.info-panel h2,
.gift-card h2,
.form-sidecard h2 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
  margin-bottom: 0.8rem;
}

.story-card--highlight {
  background: var(--color-accent);
  color: #f8f2e8;
}

.story-card--highlight .story-card__label {
  color: rgba(248, 242, 232, 0.72);
}

.text-link {
  display: inline-flex;
  margin-top: 1.4rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid currentColor;
}

/* Sezione timeline */
.timeline {
  padding: 1.4rem;
  border: 1px solid var(--color-line);
  border-radius: calc(var(--radius-large) + 0.25rem);
  background: rgba(255, 250, 242, 0.58);
}

.timeline__intro {
  max-width: 42rem;
}

.timeline__items {
  margin-top: 1.2rem;
}

.timeline-card span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--color-text-soft);
}

.timeline-card h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
}

/* Fascia call to action */
.cta-strip {
  padding: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

.cta-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button-link {
  min-height: 3.2rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #f8f2e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-link--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-line-strong);
}

/* Form RSVP */
.rsvp-form {
  display: grid;
  gap: 1rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.5rem;
}

.rsvp-form span {
  font-size: 0.95rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--color-line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.56);
  color: var(--color-text);
  resize: vertical;
}

.form-feedback {
  min-height: 1.5rem;
  color: var(--color-text-soft);
}

.form-sidecard {
  padding: 1.5rem;
}

/* Animazioni d’ingresso */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes principali */
@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Adattamento tablet e desktop */
@media (min-width: 720px) {
  .page-shell {
    padding-top: 7rem;
  }

  .home-shell {
    padding-top: 5.6rem;
    padding-bottom: 1.25rem;
  }

  .menu-panel__nav {
    margin-top: 0;
    padding-top: 0.15rem;
  }

  .home-hero {
    --home-image-offset: 0rem;
    --home-shell-bottom: 1.25rem;
    --home-image-height: calc(100dvh - 5.6rem - var(--home-shell-bottom) - var(--home-image-offset));
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto;
    column-gap: 1rem;
    row-gap: 1.5rem;
  }

  .home-title {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
    font-size: clamp(5.5rem, 8.2vw, 8.2rem);
    white-space: nowrap;
    line-height: 0.84;
    word-spacing: 0.18em;
    z-index: 2;
  }

  .home-date--desktop {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
    display: block;
    align-self: end;
    font-size: clamp(2.3rem, 3.45vw, 3.45rem);
    line-height: 0.84;
    z-index: 2;
  }

  .home-video {
    grid-column: 4 / -1;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: end;
    width: min(100%, calc(max(22rem, var(--home-image-height)) * 0.75));
    height: max(22rem, var(--home-image-height));
    margin-top: var(--home-image-offset);
    z-index: 1;
  }

  .home-date--mobile {
    display: none;
  }

  .ceremony-hero {
    --ceremony-title-size: clamp(5.5rem, 8.2vw, 8.2rem);
    --ceremony-title-leading: 0.84;
    --ceremony-image-offset: 0rem;
    --ceremony-image-size: calc(100dvh - 5.6rem - var(--ceremony-shell-bottom) - var(--ceremony-image-offset));
    --ceremony-shell-bottom: 1.25rem;
  }

  .ceremony-title {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
    font-size: var(--ceremony-title-size);
    line-height: 0.84;
    white-space: normal;
    word-spacing: 0.18em;
    z-index: 2;
  }

  .ceremony-date--desktop {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
    display: block;
    align-self: end;
    font-size: clamp(2.3rem, 3.45vw, 3.45rem);
    line-height: 0.84;
    z-index: 2;
  }

  .ceremony-video {
    grid-column: 4 / -1;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: end;
    width: min(100%, max(24rem, var(--ceremony-image-size)));
    height: max(24rem, var(--ceremony-image-size));
    margin-top: var(--ceremony-image-offset);
    z-index: 1;
  }

  .ceremony-date--mobile {
    display: none;
  }

  .reception-hero {
    --reception-title-size: clamp(4.7rem, 7vw, 7rem);
    --reception-title-leading: 0.84;
    --reception-image-offset: 0rem;
    --reception-shell-bottom: 1.25rem;
    --reception-image-height: calc(100dvh - 5.6rem - var(--reception-shell-bottom) - var(--reception-image-offset));
  }

  .reception-title {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: none;
    font-size: var(--reception-title-size);
    line-height: 0.84;
    white-space: normal;
    word-spacing: 0.12em;
    z-index: 2;
  }

  .reception-date--desktop {
    grid-column: 1 / span 3;
    grid-row: 1 / span 3;
    display: block;
    align-self: end;
    font-size: clamp(2.3rem, 3.45vw, 3.45rem);
    line-height: 0.84;
    z-index: 2;
  }

  .reception-video {
    grid-column: 4 / -1;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: end;
    width: min(100%, calc(max(22rem, var(--reception-image-height)) * 1.5));
    height: max(22rem, var(--reception-image-height));
    margin-top: var(--reception-image-offset);
    z-index: 1;
  }

  .reception-date--mobile {
    display: none;
  }

  .gift-shell {
    --gift-subtitle-size: clamp(1.3175rem, 1.9975vw, 1.9975rem);
    --gift-subtitle-leading: 1.02;
    --gift-section-gap: clamp(2.6rem, 5vw, 4.6rem);
    width: var(--page-width);
    padding-top: 5.6rem;
    padding-bottom: 3rem;
  }

  .gift-desktop-hero {
    --gift-title-size: clamp(5.5rem, 8.2vw, 8.2rem);
    --gift-title-leading: 0.84;
    --gift-image-offset: 0rem;
    --gift-shell-top: 5.6rem;
    --gift-shell-bottom: 1.25rem;
    --gift-image-height: calc(100dvh - var(--gift-shell-top) - var(--gift-shell-bottom) - var(--gift-image-offset));
    --gift-image-width: calc(max(24rem, var(--gift-image-height)) * 0.75);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, var(--gift-image-width));
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    column-gap: 1rem;
    row-gap: 1.5rem;
  }

  .gift-desktop-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    display: contents;
  }

  .gift-desktop-title {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    max-width: none;
    font-size: var(--gift-title-size);
    line-height: 0.84;
    white-space: nowrap;
    word-spacing: 0.18em;
    z-index: 2;
  }

  .gift-desktop-notes {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: stretch;
    width: auto;
    margin-top: 0;
    text-align: left;
    z-index: 2;
  }

  .gift-desktop-notes p {
    font-size: var(--gift-subtitle-size);
    line-height: var(--gift-subtitle-leading);
    white-space: normal;
  }

  .gift-desktop-notes p + p {
    margin-top: 0.35em;
  }

  .gift-desktop-photo {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: stretch;
    width: 100%;
    height: max(24rem, var(--gift-image-height));
    margin-top: var(--gift-image-offset);
    object-fit: contain;
    z-index: 1;
  }

  .gift-desktop-brand {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: var(--gift-section-gap);
  }

  .gift-desktop-brand img {
    width: min(56vw, 24rem);
  }

  .gift-desktop-list-access {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 5px;
    margin-top: 0;
    margin-bottom: var(--gift-section-gap);
  }

  .gift-desktop-list-access p {
    font-family: var(--font-display);
    font-size: var(--gift-subtitle-size);
    line-height: var(--gift-subtitle-leading);
  }

  .gift-mobile-intro,
  .gift-stack-mobile {
    display: none;
  }

  .gift-memory-desktop {
    display: block;
    width: 100%;
    margin-top: 0;
    margin-bottom: var(--gift-section-gap);
  }

  .gift-memory-controls {
    display: none;
  }

  .gift-desktop-transfer {
    display: grid;
    gap: 5px;
    margin-top: 32px;
  }

  .gift-desktop-transfer p {
    font-size: var(--gift-subtitle-size);
    line-height: var(--gift-subtitle-leading);
  }

  .gift-memory-page.is-active,
  .gift-memory-page.is-exiting {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.8rem);
  }

  .details-grid,
  .story-grid,
  .info-columns,
  .gift-grid,
  .form-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline__items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-strip {
    grid-template-columns: minmax(0, 1.2fr) auto;
    align-items: end;
  }

  .hero,
  .page-hero {
    padding: 2rem;
  }

  .detail-card,
  .story-card,
  .timeline-card,
  .info-panel,
  .gift-card,
  .rsvp-form,
  .form-sidecard,
  .timeline,
  .cta-strip {
    padding: 1.8rem;
  }
}

/* Adattamento desktop compresso e zoom elevato */
@media (min-width: 720px) and (max-width: 1180px), (min-width: 720px) and (max-height: 860px) {
  .home-shell {
    padding-top: 5.6rem;
    padding-bottom: 0.9rem;
  }

  .home-hero {
    --home-image-offset: 0rem;
    --home-shell-bottom: 0.9rem;
    --home-image-height: calc(100dvh - 5.6rem - var(--home-shell-bottom) - var(--home-image-offset));
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr auto;
    row-gap: 1.3rem;
  }

  .home-title {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: clamp(4.3rem, 7.4vw, 6.6rem);
    line-height: 0.88;
    white-space: nowrap;
    word-spacing: 0.14em;
    z-index: 2;
  }

  .home-date--desktop {
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
    align-self: end;
    font-size: clamp(1.8rem, 3.1vw, 2.75rem);
    line-height: 0.88;
    z-index: 2;
  }

  .home-video {
    grid-column: 5 / -1;
    grid-row: 1 / span 3;
    justify-self: end;
    width: min(100%, calc(max(18rem, var(--home-image-height)) * 0.75));
    height: max(18rem, var(--home-image-height));
    margin-top: var(--home-image-offset);
  }

  .ceremony-hero {
    --ceremony-title-size: clamp(4.3rem, 7.4vw, 6.6rem);
    --ceremony-title-leading: 0.88;
    --ceremony-image-offset: 0rem;
    --ceremony-image-size: calc(100dvh - 5.6rem - var(--ceremony-shell-bottom) - var(--ceremony-image-offset));
    --ceremony-shell-bottom: 0.9rem;
  }

  .ceremony-title {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: var(--ceremony-title-size);
    line-height: 0.88;
    white-space: normal;
    word-spacing: 0.14em;
  }

  .ceremony-date--desktop {
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
    align-self: end;
    font-size: clamp(1.8rem, 3.1vw, 2.75rem);
    line-height: 0.88;
    z-index: 2;
  }

  .ceremony-video {
    grid-column: 5 / -1;
    grid-row: 1 / span 3;
    justify-self: end;
    width: min(100%, max(20rem, var(--ceremony-image-size)));
    height: max(20rem, var(--ceremony-image-size));
    margin-top: var(--ceremony-image-offset);
  }

  .reception-hero {
    --reception-title-size: clamp(4.3rem, 7.4vw, 6.6rem);
    --reception-title-leading: 0.88;
    --reception-image-offset: 0rem;
    --reception-shell-bottom: 0.9rem;
    --reception-image-height: calc(100dvh - 5.6rem - var(--reception-shell-bottom) - var(--reception-image-offset));
  }

  .reception-title {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: var(--reception-title-size);
    line-height: 0.88;
    white-space: normal;
    word-spacing: 0.14em;
    z-index: 2;
  }

  .reception-date--desktop {
    grid-column: 1 / span 4;
    grid-row: 1 / span 3;
    align-self: end;
    font-size: clamp(1.8rem, 3.1vw, 2.75rem);
    line-height: 0.88;
    z-index: 2;
  }

  .reception-video {
    grid-column: 5 / -1;
    grid-row: 1 / span 3;
    justify-self: end;
    width: min(100%, calc(max(18rem, var(--reception-image-height)) * 1.5));
    height: max(18rem, var(--reception-image-height));
    margin-top: var(--reception-image-offset);
    z-index: 1;
  }

  .gift-shell {
    --gift-subtitle-size: clamp(1.0625rem, 1.7vw, 1.5725rem);
    --gift-subtitle-leading: 1.05;
    --gift-section-gap: clamp(2rem, 4vw, 3.2rem);
    padding-top: 5.6rem;
    padding-bottom: 2.5rem;
  }

  .gift-desktop-hero {
    --gift-title-size: clamp(4.3rem, 7.4vw, 6.6rem);
    --gift-title-leading: 0.88;
    --gift-shell-top: 5.6rem;
    --gift-shell-bottom: 0.9rem;
    --gift-image-width: calc(max(20rem, var(--gift-image-height)) * 0.75);
    grid-template-columns: minmax(0, 1fr) minmax(20rem, var(--gift-image-width));
    row-gap: 1.3rem;
  }

  .gift-desktop-copy {
    display: contents;
  }

  .gift-desktop-notes {
    grid-column: 1;
  }

  .gift-desktop-title {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: start;
    font-size: var(--gift-title-size);
    line-height: 0.88;
    white-space: nowrap;
    word-spacing: 0.14em;
  }

  .gift-desktop-notes p {
    font-size: var(--gift-subtitle-size);
    line-height: var(--gift-subtitle-leading);
  }

  .gift-desktop-photo {
    grid-column: 2;
    width: 100%;
    height: max(20rem, var(--gift-image-height));
  }

  .gift-desktop-brand img {
    width: min(52vw, 21rem);
  }

  .gift-memory-desktop {
    margin-top: 0;
    margin-bottom: var(--gift-section-gap);
  }

  .gift-memory-page.is-active,
  .gift-memory-page.is-exiting {
    gap: clamp(0.8rem, 1.6vw, 1.35rem);
  }

  .gift-desktop-transfer p {
    font-size: var(--gift-subtitle-size);
    line-height: var(--gift-subtitle-leading);
  }

}

/* Ottimizzazioni mobile */
@media (max-width: 719px) {
  .site-nav {
    width: var(--page-width);
    z-index: 40;
  }

  .menu-panel {
    z-index: 70;
  }

  .site-nav__toggle {
    position: relative;
    z-index: 2;
  }

  .menu-panel__nav {
    margin-top: 0;
    padding-top: 0.15rem;
    gap: 0.3rem;
  }

  .menu-panel__nav a {
    font-size: clamp(1.6rem, 7vw, 2.35rem);
    padding: 0.5rem 0;
  }

  .home-shell {
    width: var(--page-width);
    padding-top: 6rem;
    padding-bottom: 0.75rem;
  }

  .gift-shell {
    width: var(--page-width);
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .gift-mobile-intro {
    display: grid;
    gap: 1.35rem;
    margin-top: 0;
    margin-bottom: 1.6rem;
  }

  .gift-shell > .gift-mobile-intro {
    margin-top: 0;
  }

  .gift-mobile-title {
    max-width: none;
    font-family: var(--font-display);
    font-size: clamp(2.85rem, 10.6vw, 4.2rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    white-space: normal;
    word-spacing: 0.08em;
  }

  .gift-mobile-photo {
    display: block;
    width: 100%;
    align-self: start;
    aspect-ratio: 3 / 4;
    height: auto;
    object-fit: contain;
    object-position: center bottom;
    background: var(--color-background);
  }

  .gift-mobile-panel--text {
    gap: 0.45rem;
    text-align: left;
  }

  .gift-mobile-panel--text p,
  .gift-mobile-list-access p,
  .gift-mobile-transfer p {
    font-family: var(--font-display);
    font-size: 1.35rem;
    line-height: 1.08;
  }

  .gift-notes p:first-child {
    margin-bottom: 0.65rem;
  }

  .gift-mobile-list-access {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
  }

  .gift-mobile-brand {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .gift-mobile-brand img {
    width: min(68vw, 18rem);
  }

  .gift-memory-mobile {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.6rem;
  }

  .gift-memory-mobile .gift-memory-card__inner {
    aspect-ratio: 1.45 / 1;
  }

  .gift-mobile-transfer {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    margin-top: 0;
  }

  .gift-memory-desktop {
    display: none;
  }

  .gift-stack-mobile {
    display: none;
  }

  .gift-stack-card {
    --stack-shift: 0px;
    position: relative;
    display: block;
    width: min(100%, 23rem);
    height: 12.8rem;
    margin: 0 auto;
    border: 1px solid var(--color-line-strong);
    cursor: pointer;
    transform: translateY(var(--stack-shift));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
  }

  .gift-stack-card + .gift-stack-card {
    margin-top: -8.3rem;
  }

  .gift-stack-mobile[data-stack-open="true"] .gift-stack-card.is-active {
    box-shadow: 0 22px 45px rgba(0, 71, 171, 0.16);
  }

  .home-hero {
    min-height: 0;
    grid-template-rows: auto auto auto;
    gap: 0.9rem;
  }

  .home-title {
    max-width: none;
    font-size: clamp(2.85rem, 10.6vw, 4.2rem);
    white-space: normal;
    word-spacing: 0.08em;
    line-height: 0.9;
  }

  .home-title span {
    display: block;
  }

  .home-date--desktop {
    display: none;
  }

  .home-date--mobile {
    display: block;
    font-size: clamp(2rem, 7.4vw, 2.95rem);
    line-height: 0.88;
  }

  .ceremony-title {
    max-width: none;
    font-size: clamp(2.85rem, 10.6vw, 4.2rem);
    white-space: normal;
    word-spacing: 0.08em;
    line-height: 0.9;
  }

  .ceremony-title span {
    display: block;
  }

  .ceremony-date--desktop {
    display: none;
  }

  .ceremony-date--mobile {
    display: block;
    font-size: clamp(2rem, 7.4vw, 2.95rem);
    line-height: 0.88;
  }

  .reception-title {
    max-width: none;
    font-size: clamp(2.85rem, 10.6vw, 4.2rem);
    white-space: normal;
    word-spacing: 0.08em;
    line-height: 0.9;
  }

  .reception-title span {
    display: block;
  }

  .reception-date--desktop {
    display: none;
  }

  .reception-date--mobile {
    display: block;
    font-size: clamp(2rem, 7.4vw, 2.95rem);
    line-height: 0.88;
  }

  .reception-video {
    align-self: start;
    height: min(40vh, calc((100vw - 1rem) * 0.66));
  }

  .ceremony-video {
    align-self: start;
    height: min(40vh, calc(100vw - 1rem));
  }

  .home-video {
    align-self: start;
    aspect-ratio: auto;
    height: min(40vh, calc(100vw - 1rem));
  }

  .home-video img {
    object-fit: cover;
    object-position: center center;
  }

  body[data-page="Home"] .home-shell {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  body[data-page="Home"] .home-hero {
    height: auto;
  }

  body[data-page="Home"] .home-video {
    display: block;
    width: min(100%, 23rem);
    height: auto !important;
    max-height: none;
    aspect-ratio: auto;
    justify-self: center;
    overflow: visible;
  }

  body[data-page="Home"] .home-video img {
    width: 100%;
    height: auto !important;
    max-height: none;
    object-fit: contain !important;
    object-position: center top;
  }

  .page-transition__logo {
    width: min(36vw, 7rem);
  }
}
