:root {
  --bg: #f9f4f4;
  --intro-bg: #f9f4f4;
  --section-bg: #f9f4f4;
  --text: #355646;
  --accent: #af6658;
  --soft: #e9ded9;
  --white: #fffdf9;
  --shadow: 0 22px 70px rgba(78, 86, 70, 0.18);
  --serif: "Libre Baskerville", Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, serif;
  --script: "The Nautigal", cursive;

  /* ===== SCALA TIPOGRAFICA ===== */
  /* Corpo testo: +1px rispetto all'originale per lettura più comoda in scroll verticale */
  --body-copy-size: 15px;
  --body-copy-line: 1.34;
  --body-copy-line-loose: 1.5; /* paragrafi lunghi (body-line, message-block, detail-list) */

  /* Label maiuscole / piccole (kicker label, small-text, announcement) */
  --fs-label-sm: 0.72rem;   /* ~11.5px — era 0.65rem (~9px), troppo piccolo su mobile */
  --fs-label-md: 0.8rem;

  /* Script font (corsivo) — 3 livelli invece di valori sparsi senza logica */
  --fs-script-xl: clamp(3.6rem, 17vw, 5.2rem);   /* nomi principali / kicker intro */
  --fs-script-lg: clamp(3.1rem, 14.5vw, 4.6rem); /* titoli sezione, marriage-word */
  --fs-script-md: clamp(2.2rem, 10.2vw, 3.1rem); /* "place" piccolo (chiesa) */
  --fs-script-md-lg: clamp(3.1rem, 14.5vw, 4.6rem); /* "place" grande (reception) = fs-script-lg */

  /* Monogramma / numeri data */
  --fs-monogram: clamp(3.6rem, 15.2vw, 4.84rem);
  --fs-date-number: 2em; /* relativo a .date-table td */

  /* Tracking in em: scala automaticamente con la dimensione del font,
     invece di un px fisso che diventa sproporzionato sul testo piccolo */
  --uppercase-tracking: 0.09em;
  --uppercase-tracking-tight: 0.07em; /* per testo già grande, es. announcement su 2 righe */
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--section-bg);
  color: var(--text);
  font-family: var(--serif);
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background-color: var(--section-bg);
  font-size: var(--body-copy-size);
  line-height: var(--body-copy-line);
  overflow: hidden;
  /* leggibilità migliore su mobile per testo piccolo */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html:has(body.is-intro-active),
body.is-intro-active {
  background: var(--intro-bg);
}

body.is-intro-active .phone-frame {
  background: var(--intro-bg);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.phone-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  height: 100dvh;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--section-bg);
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior: contain;
}

.phone-frame::-webkit-scrollbar {
  display: none;
}

.phone-frame.is-locked {
  overflow: hidden;
  touch-action: none;
}

.panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  width: 100%;
  place-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  padding: max(28px, env(safe-area-inset-top)) 14px max(34px, env(safe-area-inset-bottom));
  isolation: isolate;
  background: var(--section-bg);
}

.panel::before {
  display: none;
}

.content {
  position: relative;
  z-index: 3;
  width: min(100%, 340px);
  text-align: center;
}

/* ANIMAZIONI GENERALI */
.kicker,
.open-invite,
.details-names,
.announcement,
.date-table td,
.church-block > p,
.chef-icon,
.gift-icon,
.small-text,
.section-title,
.detail-list > p,
.message-block > p,
.iban,
.body-line,
.rsvp-actions > a {
  opacity: 0;
  transform: translate3d(var(--enter-x, 0), var(--enter-y, 16px), 0);
  will-change: opacity, transform;
}

.panel.is-active .kicker,
.panel.is-active .open-invite,
.panel.is-active .details-names,
.panel.is-active .announcement,
.panel.is-active .date-table td,
.panel.is-active .church-block > p,
.panel.is-active .chef-icon,
.panel.is-active .gift-icon,
.panel.is-active .small-text,
.panel.is-active .section-title,
.panel.is-active .detail-list > p,
.panel.is-active .message-block > p,
.panel.is-active .iban,
.panel.is-active .body-line,
.panel.is-active .rsvp-actions > a {
  animation: textReveal 780ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  animation-delay: var(--enter-delay, 0ms);
}

/* SEZIONE DETAILS: fade della card, slide solo della tabella */
.details-panel .content {
  opacity: 0;
  transform: none;
  transition: none;
}

.details-panel.is-active .content {
  opacity: 1;
}

.details-panel .details-names,
.details-panel .details-monogram,
.details-panel .announcement,
.details-panel .marriage-word,
.details-panel .church-block > p,
.details-panel.is-active .details-names,
.details-panel.is-active .details-monogram,
.details-panel.is-active .announcement,
.details-panel.is-active .marriage-word,
.details-panel.is-active .church-block > p {
  opacity: 1;
  transform: none;
  animation: none;
}

.details-panel .date-table td {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
}

.details-panel.is-active .date-table td {
  animation: textReveal 780ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
  animation-delay: var(--enter-delay, 0ms);
}

/* SEZIONE RECEPTION: solo fade, nessuno slide interno */
.reception-panel .content {
  opacity: 0;
  transform: none;
  transition: opacity 700ms ease;
}

.reception-panel.is-active .content {
  opacity: 1;
}

.reception-panel .chef-icon,
.reception-panel .detail-list > p,
.reception-panel.is-active .chef-icon,
.reception-panel.is-active .detail-list > p {
  opacity: 1;
  transform: none;
  animation: none;
}

/* DELAY / DIREZIONI */
.kicker {
  --enter-y: 22px;
  --enter-delay: 80ms;
}

.open-invite {
  --enter-y: -16px;
  --enter-delay: 340ms;
}

.details-names {
  --enter-x: -18px;
  --enter-delay: 80ms;
}

.announcement {
  --enter-y: 16px;
  --enter-delay: 280ms;
}

.date-table td:nth-child(1) {
  --enter-y: 18px;
  --enter-delay: 470ms;
}

.date-table td:nth-child(2) {
  --enter-y: 18px;
  --enter-delay: 580ms;
}

.date-table td:nth-child(3) {
  --enter-y: 18px;
  --enter-delay: 690ms;
}

.church-block p:nth-child(1) {
  --enter-y: -14px;
  --enter-delay: 850ms;
}

.church-block p:nth-child(2) {
  --enter-x: -16px;
  --enter-y: 0;
  --enter-delay: 970ms;
}

.church-block p:nth-child(3) {
  --enter-y: 16px;
  --enter-delay: 1090ms;
}

.small-text {
  --enter-y: -14px;
  --enter-delay: 90ms;
}

.section-title {
  --enter-x: 18px;
  --enter-y: 0;
  --enter-delay: 230ms;
}

.gift-icon {
  --enter-y: -16px;
  --enter-delay: 120ms;
}

.chef-icon {
  --enter-y: -16px;
  --enter-delay: 120ms;
}

.detail-list p:nth-child(1),
.message-block p:nth-child(1),
.body-line {
  --enter-x: -16px;
  --enter-y: 0;
  --enter-delay: 390ms;
}

.detail-list p:nth-child(2),
.message-block p:nth-child(2) {
  --enter-y: 16px;
  --enter-delay: 510ms;
}

.message-block p:nth-child(3) {
  --enter-x: 16px;
  --enter-y: 0;
  --enter-delay: 630ms;
}

.iban {
  --enter-y: -14px;
  --enter-delay: 750ms;
}

.rsvp-actions a:nth-child(1) {
  --enter-x: -18px;
  --enter-y: 0;
  --enter-delay: 620ms;
}

.rsvp-actions a:nth-child(2) {
  --enter-x: 18px;
  --enter-y: 0;
  --enter-delay: 760ms;
}

.content-wide {
  width: min(100%, 360px);
}

.section-counter {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  z-index: 20;
  padding: 8px 10px;
  border: 1px solid rgba(175, 102, 88, 0.22);
  background: rgba(248, 244, 244, 0.78);
  color: var(--text);
  font-size: 0.7rem;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(12px);
}

.scroll-cue {
  position: fixed;
  top: max(46px, calc(env(safe-area-inset-top) + 46px));
  right: max(17px, env(safe-area-inset-right) + 17px);
  z-index: 20;
  width: 42px;
  height: 42px;
  margin-right: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  opacity: 0.78;
  transition: opacity 300ms ease, transform 300ms ease;
}

.scroll-cue span,
.scroll-cue span::after {
  position: absolute;
  display: block;
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.scroll-cue span {
  top: 9px;
  left: 14px;
  border-right: 2.4px solid currentColor;
  border-bottom: 2.4px solid currentColor;
  transform: rotate(45deg);
  animation: arrowFloat 1500ms ease-in-out infinite;
}

.scroll-cue span::after {
  content: "";
  display: none;
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* INTRO */
.intro-panel {
  background: var(--intro-bg);
}

.intro-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -160px;
  height: 160px;
  background: var(--intro-bg);
  pointer-events: none;
}

.intro-content {
  display: grid;
  justify-items: center;
  align-content: center;
  width: min(100%, 350px);
  min-height: 58vh;
  padding-bottom: 3vh;
  text-align: center;
}

.intro-rings {
  display: block;
  justify-self: center;
  width: 153px;
  height: 63px;
  margin: 0 auto 16px;
  background: var(--text);
  mask: url("../assets/icons/anelli.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/anelli.svg") center / contain no-repeat;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
}

.intro-panel.is-active .intro-rings {
  animation: textReveal 700ms cubic-bezier(0.2, 0.72, 0.2, 1) 60ms forwards;
}

.intro-typewriter {
  width: 0;
  max-width: max-content;
  margin: 0 auto 24px;
  overflow: hidden;
  border-right: 0;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(0.72rem, 2.9vw, 0.86rem);
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: var(--uppercase-tracking);
  font-weight: 700;
  animation: typewriter 800ms steps(16, end) 600ms forwards;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--script);
  font-size: var(--fs-script-xl);
  line-height: 0.9;
}

.intro-panel .kicker,
.intro-panel.is-active .kicker {
  opacity: 1;
  transform: none;
  animation: none;
}

.intro-names {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.name-line {
  display: block;
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.intro-panel.is-active .name-line {
  animation: textReveal 2000ms cubic-bezier(0.2, 0.72, 0.2, 1) forwards;
}

.intro-panel.is-active .name-line:nth-child(1) {
  --enter-y: 18px;
  animation-delay: 250ms;
}

.intro-panel.is-active .name-line:nth-child(2) {
  --enter-x: -14px;
  --enter-y: 0;
  animation-delay: 450ms;
}

.intro-panel .open-invite {
  --enter-y: 18px;
  --enter-delay: 1840ms;
}

/* BUTTON */
.open-invite,
.rsvp-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid rgba(175, 102, 88, 0.44);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.72);
  color: var(--text);
  font-family: var(--serif);
  font-size: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(175, 102, 88, 0.12);
  cursor: pointer;
  transition: transform 260ms ease, background 260ms ease, color 260ms ease;
}

.open-invite {
  width: min(100%, 250px);
  gap: 10px;
  padding: 0 22px 0 24px;
}

.button-arrow {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.open-invite:active,
.rsvp-actions a:active {
  transform: scale(0.97);
}

/* VIDEO */
.video-panel {
  position: relative;
  place-items: stretch;
  padding: 0;
  background: var(--section-bg);
}

.video-panel video {
  position: absolute;
  inset: 0 0 -90px;
  display: block;
  width: 100%;
  height: calc(100% + 90px);
  object-fit: cover;
  object-position: center center;
  background: var(--section-bg);
  opacity: 0;
  transition: opacity 160ms ease;
}

.video-panel.is-video-ready video {
  opacity: 1;
}

.video-note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: max(60px, calc(env(safe-area-inset-bottom) + 30px));
  z-index: 2;
  color: rgba(255, 253, 249, 0.88);
  font-size: var(--fs-label-sm);
  letter-spacing: var(--uppercase-tracking);
  text-align: center;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 10px 24px rgba(0, 0, 0, 0.48);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 450ms ease;
}
.video-note.is-video-note-hidden {
  opacity: 0;
}

.video-panel.is-active.is-video-ready .video-note:not(.is-video-note-hidden) {
  opacity: 1;
}

/* TYPOGRAPHY */
.small-text {
  margin: 0 0 16px;
  color: rgba(78, 86, 70, 0.76);
  font-size: var(--fs-label-sm);
  text-transform: uppercase;
  letter-spacing: var(--uppercase-tracking);
}

.names {
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--script);
  font-size: var(--fs-script-xl);
  font-weight: 400;
  line-height: 0.82;
}

.section-title {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: var(--script);
  font-size: var(--fs-script-lg);
  font-weight: 400;
  line-height: 0.92;
}

.body-line,
.detail-list p,
.message-block p,
.iban {
  margin: 0;
  font-size: var(--body-copy-size);
  line-height: var(--body-copy-line-loose);
}

.body-line {
  margin-bottom: 26px;
}

.detail-list {
  display: grid;
  gap: 9px;
}

.detail-list strong,
.body-line strong {
  color: var(--accent);
  font-weight: 700;
}

.place {
  color: var(--accent);
  font-family: var(--script);
  font-size: var(--fs-script-md);
  line-height: 0.95;
}

/* DETAILS */
.details-panel {
  place-items: start center;
  padding: max(32px, env(safe-area-inset-top) + 14px) 12px 0;
}

.invitation-card {
  width: min(100%, 372px);
  padding-top: clamp(40px, 6.5vh, 64px);
}

.details-names {
  margin: 0 0 clamp(18px, 3.2vh, 28px);
  font-size: clamp(2.68rem, 11.84vw, 3.72rem);
  line-height: 1.04;
  text-align: center;
}

.details-names span {
  display: inline-block;
  padding-left: 0;
}

.details-monogram {
  display: inline-grid;
  grid-template-columns: 1em 2px 1em;
  align-items: center;
  gap: 18px;
  margin: 20px auto 14px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: var(--fs-monogram);
  font-weight: 400;
  line-height: 1;
}

.details-monogram span:nth-child(2) {
  width: 2px;
  height: 0.9em;
  background: rgba(78, 86, 70, 0.72);
}

.details-monogram span:first-child,
.details-monogram span:last-child {
  justify-self: center;
}

.announcement {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 0 20px 0;
  color: var(--text);
  font-size: var(--fs-label-md);
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: var(--uppercase-tracking-tight);
  font-weight: 700;
}

.announcement span {
  display: block;
  width: auto;
  max-width: max-content;
  overflow: hidden;
  border-right: 0;
  white-space: nowrap;
}

.details-panel.is-active .announcement span {
  animation: none;
}

.marriage-word {
  margin: 5px 0 clamp(24px, 4.2vh, 28px);
  color: var(--accent);
  font-family: var(--script);
  font-size: var(--fs-script-lg);
  line-height: 0.92;
}

.date-table {
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0 auto clamp(28px, 4.5vh, 44px);
  width: min(100%, 350px);
  color: var(--text);
}

.date-table tr {
  background:
    linear-gradient(to right, transparent calc(33.333% - 1px), rgba(78, 86, 70, 0.72) calc(33.333% - 1px), rgba(78, 86, 70, 0.72) calc(33.333% + 1px), transparent calc(33.333% + 1px)),
    linear-gradient(to right, transparent calc(66.666% - 1px), rgba(78, 86, 70, 0.72) calc(66.666% - 1px), rgba(78, 86, 70, 0.72) calc(66.666% + 1px), transparent calc(66.666% + 1px));
}

.date-table td {
  width: 33.333%;
  height: clamp(66px, 9.6vh, 82px);
  padding: 0 7px;
  border: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: var(--uppercase-tracking);
  text-align: center;
  text-transform: uppercase;
  vertical-align: middle;
}

.date-table span {
  display: block;
  color: var(--accent);
  font-size: var(--fs-date-number);
  font-weight: 700;
  line-height: 1.1;
}

.church-block {
  display: grid;
  gap: 0;
  color: var(--accent);
  text-align: center;
}

.church-block p {
  margin: 0 0 8px 0;
}

.church-block p:first-child,
.church-block p:last-child,
.reception-panel .detail-list p:not(.place, .reception-note) {
  color: var(--text);
  font-size: var(--body-copy-size);
  font-weight: 700;
  line-height: var(--body-copy-line);
  letter-spacing: var(--uppercase-tracking);
  text-transform: uppercase;
}

.church-block p:first-child {
  margin-bottom: 9px;
}

.church-block p:last-child {
  margin-top: 5px;
  font-size: 12px;
}

.church-block .place {
  font-size: var(--fs-script-md);
  line-height: 0.95;
}

.reception-panel .detail-list .place {
  margin: 18px 0 28px;
  font-size: var(--fs-script-md-lg);
  line-height: 0.92;
}

.reception-note {
  margin-top: 20px !important;
  color: var(--text);
  font-size: var(--body-copy-size);
  font-weight: 700;
  line-height: var(--body-copy-line);
}

.reception-note span {
  display: inline-block;
  color: var(--accent);
  font-family: var(--script);
  font-size: var(--fs-script-md);
  font-weight: 400;
  line-height: 0.9;
  margin-bottom:5px;
}

/* GIFT */
.message-block {
  display: grid;
  gap: 10px;
}

.message-block p {
  font-size: var(--body-copy-size);
  line-height: var(--body-copy-line-loose);
}

.message-separator {
  display: block;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}

.chef-icon {
  display: block;
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  background: var(--accent);
}

.gift-icon {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 28px;
  background: var(--accent);
}

.gift-icon {
  mask: url("../assets/icons/regalo.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/regalo.svg") center / contain no-repeat;
}

.chef-icon {
  mask: url("../assets/icons/cheers.svg") center / contain no-repeat;
  -webkit-mask: url("../assets/icons/cheers.svg") center / contain no-repeat;
}

.no-wrap {
  font-weight: 700;
  white-space: nowrap;
}

.text-accent,
.message-block strong .text-accent {
  color: var(--accent) !important;
}

.iban {
  margin-top: 24px;
  padding: 14px 12px;
  border: 1px solid rgba(175, 102, 88, 0.24);
  background: rgba(255, 253, 249, 0.46);
  color: var(--accent);
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

/* RSVP */
.rsvp-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.rsvp-actions a {
  width: 100%;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 0 20px;
  background: rgba(255, 253, 249, 0.78);
  text-align: left;
}

.rsvp-actions a span {
  min-width: 0;
}

.rsvp-actions a strong {
  font-weight: 700;
}

.whatsapp-icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
  fill: currentColor;
}

/* FLOWERS */
.floral-panel {
  background: var(--section-bg);
}

.floral-panel:not(.details-panel) {
  padding-bottom: max(198px, calc(env(safe-area-inset-bottom) + 178px));
}

.phone-frame.show-fixed-flowers .fixed-flowers {
  opacity: 0.72;
}

.phone-frame.show-fixed-flowers .fixed-flowers-border {
  opacity: 1;
}

.fixed-flowers {
  position: fixed;
  left: 50%;
  bottom: max(0px, env(safe-area-inset-bottom));
  z-index: 1;
  width: min(96vw, 413px);
  max-width: none;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: none;
  user-select: none;
}

.fixed-flowers-border {
  position: fixed;
  left: 50%;
  bottom: max(0px, env(safe-area-inset-bottom));
  z-index: 2;
  width: 100%;
  max-width: 430px;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: none;
}

.corner-flowers {
  position: absolute;
  right: -106px;
  bottom: -110px;
  width: min(92vw, 390px);
  opacity: 0.45;
  transform: rotate(-16deg);
  pointer-events: none;
  user-select: none;
}

/* KEYFRAMES */
@keyframes arrowFloat {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }

  50% {
    transform: translateY(8px) rotate(45deg);
  }
}

@keyframes textReveal {
  0% {
    opacity: 0;
    transform: translate3d(var(--enter-x, 0), var(--enter-y, 16px), 0);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }

  to {
    width: 16ch;
  }
}

@keyframes caretBlink {
  0%,
  100% {
    border-color: transparent;
  }

  50% {
    border-color: currentColor;
  }
}

/* DESKTOP FRAME */
@media (min-width: 520px) {
  body {
    display: grid;
    place-items: center;
    background:
      linear-gradient(90deg, rgba(78, 86, 70, 0.1), rgba(248, 244, 244, 0) 22%, rgba(248, 244, 244, 0) 78%, rgba(78, 86, 70, 0.1)),
      radial-gradient(circle at top, #fffdf9, #eee5e0);
  }

  .phone-frame {
    max-width: 430px;
    box-shadow: var(--shadow);
  }

  .section-counter {
    right: calc(50% - 199px);
  }

  .scroll-cue {
    right: calc(50% - 199px);
  }

  .date-table td {
    font-size: 12.5px;
  }
}

/* SMALL HEIGHT */
@media (max-height: 720px) {
  .details-panel {
    padding-top: max(24px, env(safe-area-inset-top) + 10px);
  }

  .invitation-card {
    padding-top: 28px;
  }

  .details-names {
    margin-bottom: 14px;
    font-size: clamp(2.44rem, 10.88vw, 3.16rem);
  }

  .announcement {
    font-size: var(--fs-label-sm);
  }

  .marriage-word {
    margin-bottom: 22px;
    font-size: clamp(2.9rem, 13vw, 3.96rem);
  }

  .date-table {
    margin-bottom: 22px;
  }

  .date-table td {
    height: 58px;
    padding: 0 7px;
    font-size: 11.5px;
  }

  .church-block .place {
    font-size: clamp(2rem, 9.2vw, 2.86rem);
  }

  .reception-panel .detail-list .place {
    font-size: clamp(2.9rem, 13vw, 3.96rem);
  }

  .fixed-flowers {
    bottom: max(0px, env(safe-area-inset-bottom));
    width: min(96vw, 413px);
  }
}

/* ACCESSIBILITÀ */
@media (prefers-reduced-motion: reduce) {
  html,
  .phone-frame {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .intro-typewriter {
    width: auto;
    border-right: 0;
  }

  .announcement span {
    width: auto;
    border-right: 0;
  }

  .intro-rings,
  .kicker,
  .name-line,
  .open-invite,
  .details-names,
  .announcement,
  .date-table td,
  .church-block > p,
  .chef-icon,
  .gift-icon,
  .small-text,
  .section-title,
  .detail-list > p,
  .message-block > p,
  .iban,
  .body-line,
  .rsvp-actions > a,
  .details-panel .content,
  .reception-panel .content {
    opacity: 1;
    transform: none;
  }
}
