/* Good Situations Wedding — stile comune delle pagine di consegna (v2).
   Stesso linguaggio della pagina «Titoli GS Wedding»: sala buia, nomi in GS Cond maiuscolo,
   righe sottili, etichette piccole spaziate, forme squadrate. */
:root {
  --bg: #0e0e0d;
  --panel: #171716;
  --panel-2: #1f1f1d;
  --line: #2b2b29;
  --text: #ecebe6;
  --muted: #8f8d86;
  --accent: #d9d2c3;
  --display: 'GS Cond', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- copertina: cartello «01 Titolo di testa» ---------- */
.cover { position: relative; height: 100svh; min-height: 520px; overflow: hidden; isolation: isolate; background: #000; }
.cover-img { position: absolute; inset: -8% 0 0; z-index: -2; will-change: transform; transform: translate3d(0,0,0); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 40%); will-change: transform;
  animation: kb 4.2s var(--ease) both; }
@keyframes kb { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; pointer-events: none; animation: lift 2.6s var(--ease) both; }
@keyframes lift { from { opacity: 1; } to { opacity: 0; } }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 50%, rgba(14,14,13,.05), rgba(14,14,13,.55)),
              linear-gradient(180deg, rgba(14,14,13,.35) 0%, rgba(14,14,13,0) 30%, rgba(14,14,13,0) 60%, var(--bg) 100%); }
.cover-inner { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; text-align: center;
  padding-block: calc(env(safe-area-inset-top, 0px) + 28px) calc(env(safe-area-inset-bottom, 0px) + 28px);
  padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  text-shadow: 0 2px 24px rgba(0,0,0,.45), 0 1px 3px rgba(0,0,0,.35); }
.title { grid-row: 2; display: grid; justify-items: center; gap: 20px; will-change: transform, opacity; transform: translate3d(0,0,0); }
.names { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase;
  letter-spacing: -.035em; line-height: .88; font-size: clamp(48px, 13.5vw, 168px); text-wrap: balance;
  display: flex; flex-wrap: wrap; justify-content: center; column-gap: .22em; }
.names .w { display: inline-block; overflow: hidden; padding: .02em .02em .06em; margin: -.02em -.02em -.06em; }
.names .w > span { display: inline-block; will-change: transform, opacity;
  animation: rise 1.9s var(--ease-out) both; animation-delay: calc(.7s + var(--i) * .16s); }
.names .amp > span { font-weight: 400; }
@keyframes rise { from { transform: translate3d(0, 110%, 0) rotate(2deg); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.sub { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.sub span { animation: fade 1.4s var(--ease-out) both; animation-delay: 1.55s; }
.sub span:last-child { animation-delay: 1.7s; }
.sub i { width: 36px; height: 1px; background: currentColor; display: block; transform-origin: center; box-shadow: 0 1px 3px rgba(0,0,0,.4); animation: draw 1.4s var(--ease-out) both; animation-delay: 1.4s; }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; transform: translate3d(0, 8px, 0); } }
.cover .brand { grid-row: 3; align-self: end; display: grid; justify-items: center; gap: 22px; will-change: opacity; animation: fade 1.4s var(--ease-out) both; animation-delay: 2s; }
.cue { width: 1px; height: 44px; background: linear-gradient(var(--text), transparent); opacity: .6; animation: cue 2.8s var(--ease) infinite 2.6s; transform-origin: top; transform: scaleY(0); }
@keyframes cue { 0% { transform: scaleY(0); opacity: .6; } 50% { transform: scaleY(1); opacity: .6; } 100% { transform: scaleY(1); opacity: 0; } }
.brand { display: inline-block; text-decoration: none; }
.brand img { width: 96px; height: auto; transition: opacity .2s; }
.brand:hover img { opacity: .75; }

/* ---------- etichette e pulsanti ---------- */
.kicker { margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.h2 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: -.02em; line-height: .9; font-size: clamp(36px, 6.5vw, 64px); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid var(--accent); color: var(--accent); background: transparent; text-decoration: none;
  font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); color: var(--bg); }
.btn.solid { background: var(--accent); color: var(--bg); }
.btn.solid:hover { background: var(--text); border-color: var(--text); }
.btn svg { width: 16px; height: 16px; flex: none; }

/* scheda di download: tutta cliccabile, info tecniche dentro */
.dl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 18px 20px;
  background: var(--panel); border: 1px solid var(--line); text-decoration: none; transition: background .25s, border-color .25s; }
.dl .ico { width: 44px; height: 44px; border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); transition: background .25s, color .25s; }
.dl .ico svg { width: 18px; height: 18px; }
.dl b { display: block; font-weight: 500; font-size: 16px; }
.dl small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl .go { width: 22px; height: 22px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.dl:hover { background: var(--panel-2); border-color: #3a3a37; }
.dl:hover .ico { background: var(--accent); color: var(--bg); }
.dl:hover .go { transform: translateX(4px); color: var(--text); }

/* comparsa allo scorrimento (solo se c'è JavaScript) */
.js .reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1.4s var(--ease-out), transform 1.6s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- piede ---------- */
.foot { border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 14px;
  padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px));
  padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.foot .kicker a { text-decoration: none; }
.foot .kicker a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
