/* ─────────────────────────────────────────────
   Buon compleanno Mamma — Langa Astigiana
   Palette: crema / inchiostro / vino / salvia / oro
   ───────────────────────────────────────────── */

:root {
  --cream:   #f6f1e7;
  --cream-2: #efe7d8;
  --ink:     #1f1b17;
  --ink-60:  #1f1b17a6;
  --ink-35:  #1f1b1759;
  --wine:    #6b2233;
  --wine-2:  #8d3247;
  --sage:    #7d8f6a;
  --sage-2:  #5f6f4e;
  --gold:    #c08a3e;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --hand:  "Shantell Sans", "Fraunces", Georgia, cursive;
  --poem:  "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(1.25rem, 5vw, 6rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; line-height: 1.05; margin: 0; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
a { color: inherit; }

/* Grana sottile: toglie la piattezza da "template" */
.grain {
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  opacity: .04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─────────────  HERO  ───────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(4rem, 12vh, 9rem) var(--pad) clamp(12rem, 28vh, 18rem);
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, #fbf7ef 0%, var(--cream) 55%, var(--cream-2) 100%);
}

.hero__inner { position: relative; z-index: 3; max-width: 62rem; }

.eyebrow {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-2); margin-bottom: 1.6rem;
  display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: clamp(1.5rem, 6vw, 4rem); height: 1px; background: var(--sage);
}

.hero__title {
  font-family: var(--hand);
  font-size: clamp(2.9rem, 10vw, 9rem);   /* Shantell è più larga: scendo di misura */
  font-weight: 700;
  line-height: 1.02;                       /* le sue ascendenti hanno bisogno d'aria */
  letter-spacing: -.015em;
  margin: 0 0 1.8rem;
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .accent {
  color: var(--wine);
  position: relative;
}
/* sottolineatura disegnata a mano sotto "Mamma" */
.hero__title .accent::after {
  content: ""; position: absolute; left: 1%; right: -3%; bottom: .02em; height: .075em;
  background: var(--gold); border-radius: 99px;
  transform: scaleX(0); transform-origin: left;
  animation: underline 1.1s var(--ease) 1.5s forwards;
}
@keyframes underline { to { transform: scaleX(1) rotate(-.6deg); } }

.hero__title .word {
  display: inline-block;
  transform: translateY(105%) rotate(3deg);
  animation: rise .95s var(--ease) forwards;
}
.hero__title .line:nth-child(1) .word:nth-child(1) { animation-delay: .15s; }
.hero__title .line:nth-child(1) .word:nth-child(2) { animation-delay: .27s; }
.hero__title .line:nth-child(2) .word { animation-delay: .42s; }
@keyframes rise { to { transform: translateY(0) rotate(0); } }

.hero__sub { max-width: 34rem; color: var(--ink-60); font-size: 1.06rem; }

.scroll-cue {
  display: inline-flex; align-items: center; gap: .55rem;
  margin-top: 2.4rem; text-decoration: none;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-35);
  transition: color .3s;
}
.scroll-cue:hover { color: var(--wine); }
.scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* colline in parallasse */
.hero__hills { position: absolute; inset: auto 0 0 0; height: 62%; z-index: 1; }
.hero__hills .hill { position: absolute; inset: auto 0 0 0; width: 110%; left: -5%; height: 100%; }
.hill--3 path { fill: #dfe3d2; }
.hill--2 path { fill: #c3cfae; }
.hill--1 path { fill: var(--sage); }
.hill--3 { transform: translateY(var(--p3, 0)); }
.hill--2 { transform: translateY(var(--p2, 0)); }
.hill--1 { transform: translateY(var(--p1, 0)); }

/* filari di vite: righe diagonali ripetute */
.vines {
  position: absolute; inset: auto 0 0 0; height: 30%; z-index: 2;
  background-image: repeating-linear-gradient(78deg,
    #4e5c41 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 95%);
          mask-image: linear-gradient(to top, #000 20%, transparent 95%);
  opacity: .55;
}

/* ─────────────  INTRO  ───────────── */

.intro {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 4rem; align-items: start;
  padding: clamp(5rem, 14vh, 10rem) var(--pad);
  max-width: 90rem; margin-inline: auto;
}
@media (min-width: 800px) { .intro { grid-template-columns: 8rem minmax(0, 44rem); } }

.intro__num {
  font-family: var(--serif); font-size: 1rem; color: var(--gold);
  letter-spacing: .1em; padding-top: .55rem;
  border-top: 1px solid var(--ink-35); width: 3.5rem;
}

.lead { font-family: var(--serif); font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; margin-bottom: 1.4rem; }
.lead em { color: var(--wine); }
.intro__body p:last-child { color: var(--ink-60); max-width: 34rem; }

/* ─────────────  REVEAL / GIFT  ───────────── */

.packs {
  padding: clamp(3rem, 8vh, 6rem) var(--pad) clamp(5rem, 12vh, 9rem);
  max-width: 62rem; margin-inline: auto;
}
.packs__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.packs__head h2 { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 300; margin: 1.2rem 0 .8rem; }
.packs__sub { color: var(--ink-60); margin: 0; }

/* Ogni pacchetto è autonomo: si apre da solo, resta aperto. */
.pack { border-top: 1px solid #e3d9c6; }
.pack:last-of-type { border-bottom: 1px solid #e3d9c6; }

.pack__head {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(1.6rem, 3.5vw, 2.4rem) 0 clamp(1.2rem, 2.5vw, 1.8rem);
}

.pack__label { display: flex; flex-direction: column; gap: .2rem; }
.pack__n    { font-family: var(--serif); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.pack__from { font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 2rem); line-height: 1.1; }
.pack__card { padding-bottom: clamp(2rem, 5vw, 3.5rem); }

/* scatola */
.giftbox {
  position: relative; display: block; flex: none;
  width: 96px; height: 92px;
  animation: float 4.5s ease-in-out infinite;
}
/* sfasa il galleggiamento: tre scatole a tempo non sembrano vive */
.pack:nth-of-type(2) .giftbox { animation-delay: -1.5s; }
.pack:nth-of-type(3) .giftbox { animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.giftbox__body {
  position: absolute; inset: 30px 6px 0 6px;
  background: linear-gradient(160deg, var(--wine-2), var(--wine));
  border-radius: 6px;
  box-shadow: 0 22px 40px -18px #6b223366;
}
.giftbox__lid {
  position: absolute; top: 15px; left: 0; right: 0; height: 22px;
  background: linear-gradient(160deg, #9c3a51, var(--wine-2));
  border-radius: 6px;
  transform-origin: left bottom;
  transition: transform .7s var(--ease);
  z-index: 2;
}
.giftbox__ribbon {
  position: absolute; top: 15px; bottom: 0; left: 50%; width: 11px; margin-left: -5.5px;
  background: var(--gold); z-index: 3;
  transition: opacity .35s;
}
/* un pacchetto per mittente, un colore per pacchetto */
.giftbox--sage .giftbox__body { background: linear-gradient(160deg, #8fa079, var(--sage-2)); }
.giftbox--sage .giftbox__lid  { background: linear-gradient(160deg, #9fb088, #7d8f6a); }
.giftbox--gold .giftbox__body { background: linear-gradient(160deg, #d09a4e, #a8712c); }
.giftbox--gold .giftbox__lid  { background: linear-gradient(160deg, #dcaa62, #c08a3e); }
.giftbox--sage .giftbox__ribbon { background: var(--cream); }
.giftbox--gold .giftbox__ribbon { background: var(--wine); }

/* Le scatole sono decorazione: restano aperte, il coperchio appoggiato di lato. */
.giftbox.is-open .giftbox__lid { transform: translate(-20px, -30px) rotate(-22deg); }
.giftbox.is-open .giftbox__ribbon { opacity: 0; }

/* carta regalo */
.gift {
  position: relative;
  background: #fffdf8;
  border: 1px solid #e3d9c6;
  border-radius: 4px;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  box-shadow: 0 40px 70px -45px #1f1b1740;
}
.gift::before { /* angolo piegato */
  content: ""; position: absolute; top: 0; right: 0; width: 46px; height: 46px;
  background: linear-gradient(225deg, var(--cream-2) 50%, transparent 50%);
  border-left: 1px solid #e3d9c6; border-bottom: 1px solid #e3d9c6;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(28px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.gift__kicker { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.gift__title { font-size: clamp(1.9rem, 5.2vw, 3.6rem); font-weight: 300; margin-bottom: .9rem; }
.gift__title em { color: var(--wine); font-weight: 600; }
.gift__meta { color: var(--ink-35); font-size: .88rem; letter-spacing: .04em; margin-bottom: 2.2rem; }

.gift__facts {
  list-style: none; margin: 0 0 2.4rem; padding: 0;
  display: grid; gap: 0;
  border-top: 1px solid #e3d9c6;
}
.gift__facts li {
  display: flex; justify-content: space-between; gap: 1.5rem;
  padding: .85rem 0; border-bottom: 1px solid #ece4d5;
}
.gift__facts .k { color: var(--ink-35); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.gift__facts .v { font-family: var(--serif); font-size: 1.05rem; text-align: right; }
@media (min-width: 760px) { .gift__facts { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 99px;
  background: var(--ink); color: var(--cream);
  text-decoration: none; font-size: .9rem; letter-spacing: .03em;
  transition: background .35s, transform .35s var(--ease);
}
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .35s var(--ease); }
.btn:hover { background: var(--wine); transform: translateY(-2px); }
.btn:hover svg { transform: translate(3px, -3px); }


/* ─────────────  GALLERIA  ───────────── */

.gallery {
  padding: clamp(3rem, 9vh, 7rem) var(--pad) clamp(4rem, 11vh, 8rem);
  max-width: 90rem; margin-inline: auto;
}
.gallery__head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.gallery__head h2 { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 300; margin: 1.2rem 0 .8rem; }
.gallery__sub { color: var(--ink-60); max-width: 30rem; margin: 0; }

.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.2rem, 3vw, 2.5rem);
}
@media (min-width: 860px) {
  .shots { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .shot--tall   { grid-column: span 4; }
  .shot--offset { margin-top: clamp(2rem, 6vw, 5rem); }
  .shot--wide   { grid-column: span 4; margin-top: clamp(1rem, 3vw, 2.5rem); }
}

.shot { margin: 0; }

/* il bottone è solo il contenitore cliccabile: niente stile da bottone */
.shot__btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--cream-2);
  border-radius: 3px; overflow: hidden;
  position: relative;
  box-shadow: 0 30px 55px -40px #1f1b1799;
}
.shot__btn::after {           /* velo caldo: le foto entrano nella palette */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #6b223314, transparent 45%, #c08a3e14);
  pointer-events: none;
}
.shot__btn img {
  display: block; width: 100%; height: auto;
  transition: transform 1.1s var(--ease), filter .6s;
  filter: saturate(.94) contrast(1.02);
}
.shot__btn:hover img { transform: scale(1.035); filter: saturate(1) contrast(1.02); }
.shot__btn:focus-visible { outline: 2px solid var(--wine); outline-offset: 5px; }

.shot figcaption {
  display: flex; align-items: baseline; gap: .7rem;
  margin-top: .9rem;
  font-size: .84rem; color: var(--ink-60); letter-spacing: .02em;
}
.shot__n { font-family: var(--serif); color: var(--gold); font-size: .8rem; letter-spacing: .1em; }

.link-inline {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: clamp(2rem, 5vw, 3.5rem);
  font-size: .92rem; color: var(--wine);
  text-decoration: none;
  border-bottom: 1px solid #6b223340;
  padding-bottom: .25rem;
  transition: border-color .3s, gap .3s var(--ease);
}
.link-inline:hover { border-color: var(--wine); gap: .8rem; }
.link-inline svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }

/* ─────────────  LIGHTBOX  ───────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: #1f1b17f2;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: 100%; max-height: 100%;
  border-radius: 3px;
  transform: scale(.96); transition: transform .45s var(--ease);
  box-shadow: 0 40px 80px -30px #000;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 44px; height: 44px;      /* target comodo anche col pollice */
  border: 0; border-radius: 50%;
  background: #f6f1e71f; color: var(--cream);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background .3s;
}
.lightbox__close:hover { background: #f6f1e733; }

body.no-scroll { overflow: hidden; }


/* ─────────────  SCARPE (pacchetto 02)  ─────────────
   Le foto sono 191×207 da catalogo: ingrandirle le sgrana.
   Restano piccole e incorniciate, come schede. */

.shoes {
  display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2rem);
  margin: 0 0 2rem;
}
.shoe { margin: 0; flex: 0 1 auto; text-align: center; }
.shoe img {
  display: block;
  width: 191px; max-width: 100%; height: auto;
  background: #fff;
  border: 1px solid #e3d9c6; border-radius: 3px;
  padding: .5rem;
  transition: transform .5s var(--ease);
}
.shoe:hover img { transform: translateY(-4px); }
.shoe figcaption {
  margin-top: .7rem;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-35);
}

.gift__note { color: var(--ink-60); font-size: .95rem; margin: 0; }

/* ─────────────  POESIE  ───────────── */

.gift--poem { background: linear-gradient(180deg, #fffdf8, #fdf9f0); }

.poem__title {
  font-family: var(--poem);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 300; font-style: italic;
  color: var(--wine);
  margin-bottom: 1.8rem;
}

.poem {
  font-family: var(--poem);
  /* Il Garamond ha un occhio piccolo: va montato più grande di un sans
     per leggersi allo stesso modo. */
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.7;
  color: var(--ink);
  max-width: 44ch;              /* i versi non devono mai andare a capo da soli */
}
.poem p { margin: 0 0 1.5em; }
.poem p:last-child { margin-bottom: 0; }

/* I versi in anafora: il "La mamma," ripetuto è la struttura della poesia,
   quindi lo rendo visibile con un filo verticale invece di nasconderlo. */
.poem__anaphora {
  display: flex; flex-direction: column; gap: .55em;
  padding-left: 1.1rem;
  border-left: 2px solid var(--gold);
}

.poem__shout {
  font-family: var(--hand);
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  font-weight: 700;
  color: var(--wine);
  line-height: 1.1;
  margin: .3em 0 .6em !important;
}

.poem__close {
  font-family: var(--poem); font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--wine);
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #ece4d5;
}

/* la poesia di chiusura sta su una card centrata: allineo a sinistra i versi */
.poem--letter { margin-inline: auto; text-align: left; }
.letter__wish {
  font-family: var(--hand);
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--wine);
  line-height: 1.15;
  margin: 2.5rem 0 .6rem;
}
.letter__card { text-align: center; }

/* ─────────────  MARQUEE  ───────────── */

.alpaca-strip {
  border-block: 1px solid #e0d6c3;
  background: var(--cream-2);
  padding: 1.1rem 0;
  overflow: hidden;
}
.marquee__track {
  display: flex; gap: 2.2rem; width: max-content;
  font-family: var(--serif); font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--sage-2); white-space: nowrap;
  animation: slide 26s linear infinite;
}
.marquee__track .dot { color: var(--gold); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ─────────────  GIORNATA  ───────────── */

.day { padding: clamp(5rem, 14vh, 10rem) var(--pad); max-width: 90rem; margin-inline: auto; }
.day__head { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.day__head h2 { font-size: clamp(2rem, 5.5vw, 4rem); font-weight: 300; max-width: 20ch; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: #e3d9c6; border-block: 1px solid #e3d9c6; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { background: var(--cream); padding: 2.2rem 1.6rem 2.6rem; transition: background .4s; }
.step:hover { background: #fffdf8; }
.step__time { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.step h3 { font-size: 1.4rem; margin-bottom: .7rem; }
.step p { color: var(--ink-60); font-size: .96rem; margin: 0; }

/* ─────────────  LETTERA  ───────────── */

.letter { padding: clamp(4rem, 12vh, 9rem) var(--pad) clamp(6rem, 16vh, 11rem); display: flex; justify-content: center; }
.letter__card {
  max-width: 44rem; text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  border: 1px solid #e3d9c6; border-radius: 2px;
  background: linear-gradient(180deg, #fffdf8, var(--cream));
}
.letter__kicker { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.letter__text { font-family: var(--serif); font-size: clamp(1.4rem, 3.6vw, 2.3rem); line-height: 1.35; margin-bottom: 2rem; }
.signature {
  font-family: var(--serif); font-style: italic; color: var(--wine);
  font-size: 1.3rem; margin: 0;
}

/* ─────────────  FOOTER  ───────────── */

.foot {
  border-top: 1px solid #e3d9c6;
  padding: 1.8rem var(--pad);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-35);
}
.foot__dot { color: var(--gold); }

/* ─────────────  ANIMAZIONI SCROLL  ───────────── */

[data-anim] { opacity: 0; transform: translateY(24px); }
[data-anim].is-visible {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-anim="lines"] { transform: translateY(30px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  [data-anim] { opacity: 1; transform: none; }
  .hero__title .word { transform: none; }
  html { scroll-behavior: auto; }
}

/* ─────────────  MOBILE  ─────────────
   Il grosso è già fluido (clamp + grid mobile-first).
   Qui solo gli aggiustamenti che il telefono chiede davvero. */

@media (max-width: 640px) {

  body { font-size: 1rem; line-height: 1.6; }

  /* niente riquadri che escono dallo schermo */
  .hero { padding-bottom: 9rem; min-height: 92svh; }
  .hero__title { font-size: clamp(2.7rem, 15vw, 4.6rem); }
  .hero__sub { font-size: 1rem; }
  .hero__hills { height: 46%; }

  .eyebrow { font-size: .7rem; letter-spacing: .18em; }
  .eyebrow::before { width: 1.5rem; }

  .intro__num { padding-top: .4rem; }

  /* la scatola non deve occupare mezzo schermo */
  .giftbox { width: 150px; height: 140px; }
  .giftbox__body { inset: 45px 8px 0 8px; }
  .giftbox__lid { top: 22px; height: 32px; }
  .giftbox__ribbon { top: 22px; width: 16px; margin-left: -8px; }

  .gift__facts li { flex-direction: column; gap: .2rem; padding: .8rem 0; }
  .gift__facts .v { text-align: left; }

  /* bottone a piena larghezza: pollice felice */
  .btn { width: 100%; justify-content: center; padding: 1.05rem 1.5rem; }

  .marquee__track { animation-duration: 18s; gap: 1.4rem; }

  .step { padding: 1.8rem 1.2rem 2rem; }
  .step__time { margin-bottom: 1rem; }

  .letter__card { text-align: left; }

  .foot { font-size: .68rem; letter-spacing: .14em; }
}

/* schermi molto stretti (iPhone SE & co.) */
@media (max-width: 380px) {
  .hero__title { font-size: 2.45rem; }
  .gift__title { font-size: 1.7rem; }
}

/* landscape su telefono: l'hero non deve mangiare tutto */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-block: 4rem 7rem; }
  .hero__hills { height: 55%; }
  .scroll-cue { display: none; }
}

/* su touch niente hover appiccicoso */
@media (hover: none) {
  .giftbox:hover .giftbox__lid { transform: none; }
  .step:hover { background: var(--cream); }
}

/* galleria e lightbox su telefono */
@media (max-width: 640px) {
  .shot--offset, .shot--wide { margin-top: 0; }
  .shot figcaption { font-size: .8rem; }
  .link-inline { font-size: .88rem; }
  .lightbox { padding: .75rem; }
  .lightbox__close { top: .5rem; right: .5rem; }
  /* titolo scritto a mano: su schermo stretto va tenuto più compatto */
  .hero__title { line-height: 1.0; letter-spacing: -.02em; }
}

/* i tre pacchetti su telefono */
@media (max-width: 640px) {
  .pack__head { gap: 1rem; padding: 1.4rem 0 1rem; }
  .giftbox { width: 74px; height: 72px; }
  .giftbox__body   { inset: 24px 5px 0 5px; }
  .giftbox__lid    { top: 12px; height: 18px; }
  .giftbox__ribbon { top: 12px; width: 9px; margin-left: -4.5px; }
  .giftbox.is-open .giftbox__lid { transform: translate(-15px, -23px) rotate(-22deg); }

  .shoes { gap: 1rem; justify-content: center; }
  .shoe img { width: 150px; }

  .poem { font-size: 1.08rem; line-height: 1.65; }
  .poem__anaphora { padding-left: .85rem; }
  .letter__card { text-align: left; }
}
