/* Jay Parice — pagina ponte. Scura, minimale, un solo punto chiaro: il bottone. */

@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0a0908;
  --coal: #12100e;
  --paper: #f4eee6;
  --ink: #f4eee6;
  --ink-2: rgba(244, 238, 230, .64);
  --ink-3: rgba(244, 238, 230, .40);
  --line: rgba(244, 238, 230, .11);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* Sfondo d'ambiente: una miniatura già sfocata, nessun filtro da calcolare sul telefono */
.ambient {
  position: fixed; inset: -12%; z-index: 0; pointer-events: none;
  background: url("/img/ambient.webp") center / cover no-repeat;
  opacity: .22;
}
.ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 50% 0%, rgba(10, 9, 8, .2), var(--bg) 78%); }
.grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: .07;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page { position: relative; z-index: 1; max-width: 460px; margin: 0 auto; }

/* ---------- Foto e nome ---------- */
.hero { position: relative; height: min(50svh, 118vw); min-height: 300px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 9, 8, .42) 0%, rgba(10, 9, 8, 0) 20%, rgba(10, 9, 8, 0) 46%, rgba(10, 9, 8, .78) 82%, var(--bg) 100%);
}
.hero-top { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; }
.mark { font: italic 400 24px/1 var(--serif); letter-spacing: -.02em; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: rgba(10, 9, 8, .46); box-shadow: inset 0 0 0 1px rgba(244, 238, 230, .16);
  font-size: 10px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.identity { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 10px; }
h1 { margin: 0; font: 400 clamp(56px, 18vw, 80px)/.88 var(--serif); letter-spacing: -.025em; }
h1 em { font-style: italic; }
.eyebrow { margin: 12px 0 0 2px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Testo e bottone ---------- */
.content { padding: 0 16px calc(36px + env(safe-area-inset-bottom)); }

/* Due bottoni gemelli affiancati (inglese e spagnolo): stessa azione, stessa destinazione */
.cta-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.cta-row::before { /* alone morbido che respira: richiama l'occhio senza gridare */
  content: ""; position: absolute; inset: -18px -8px -26px; z-index: -1; border-radius: 60px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 55%, rgba(244, 238, 230, .22), rgba(244, 238, 230, 0) 72%);
  animation: breathe 3.6s var(--ease) infinite alternate;
}
.cta {
  display: block; padding: 5px; border-radius: 30px;
  background: rgba(244, 238, 230, .07);
  box-shadow: inset 0 0 0 1px rgba(244, 238, 230, .13);
  text-decoration: none;
  transition: transform .5s var(--ease);
}
.cta:active { transform: scale(.97); }
.cta-core {
  display: flex; flex-direction: column; height: 100%; padding: 16px 12px 12px 16px; border-radius: 25px;
  background: linear-gradient(180deg, #fcf8f1 0%, #eadfce 100%);
  color: var(--coal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 18px 40px -22px rgba(0, 0, 0, .9);
}
.cta-title { margin: 0 0 14px; font: 400 25px/1 var(--serif); letter-spacing: -.015em; }
.cta-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cta-lang { font-size: 12px; font-weight: 500; color: rgba(18, 16, 14, .62); }
.cta-arrow {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--coal); color: var(--paper);
}
.cta-arrow svg { width: 17px; height: 17px; }
.cta-arrow svg { animation: nudge 2.8s var(--ease) infinite; }
.cta + .cta .cta-arrow svg { animation-delay: 1.4s; }

.soon { margin: 13px 0 0; text-align: center; font-size: 12px; letter-spacing: .02em; color: var(--ink); }

.tg {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: max-content; min-height: 44px; margin: 16px auto 0; padding: 0 20px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; color: var(--ink-2); text-decoration: none;
  transition: transform .5s var(--ease), color .5s var(--ease);
}
.tg svg { width: 16px; height: 16px; }
.tg:active { transform: scale(.97); color: var(--ink); }

/* ---------- Galleria ---------- */
.gallery { margin-top: 44px; }
.strip { display: flex; gap: 10px; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.strip::-webkit-scrollbar { display: none; }
.strip figure { position: relative; flex: 0 0 44%; margin: 0; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; scroll-snap-align: start; box-shadow: inset 0 0 0 1px var(--line); }
.strip img { width: 100%; height: 100%; object-fit: cover; }
.strip figure::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244, 238, 230, .1); background: linear-gradient(180deg, rgba(10, 9, 8, 0) 60%, rgba(10, 9, 8, .6) 100%); pointer-events: none; }
figcaption { position: absolute; z-index: 1; left: 12px; bottom: 11px; font-size: 9.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }

.foot { display: flex; justify-content: center; gap: 8px; margin-top: 40px; font-size: 11px; letter-spacing: .06em; color: var(--ink-3); }

/* ---------- Avviso in alto ---------- */
.exit { position: fixed; z-index: 30; top: 0; left: 0; right: 0; padding: max(8px, env(safe-area-inset-top)) 8px 0; transform: translateY(-115%); transition: transform .7s var(--ease); pointer-events: none; }
.exit.is-on { transform: none; pointer-events: auto; }
.exit-card { position: relative; display: flex; flex-direction: column; gap: 3px; max-width: 444px; margin: 0 auto; padding: 14px 70px 12px 18px; border-radius: 24px; background: linear-gradient(180deg, #fcf8f1 0%, #eadfce 100%); color: var(--coal); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9); }
.exit-card strong { font: 400 24px/1 var(--serif); letter-spacing: -.01em; }
.exit-how { font-size: 14px; font-weight: 500; }
.exit-how b { font-weight: 700; letter-spacing: .08em; }
.exit-alt { display: flex; gap: 16px; margin-top: 4px; font-size: 12px; color: rgba(18, 16, 14, .6); }
.exit-alt a { color: inherit; padding: 6px 0; }
.exit-alt button { padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; }
.exit-arrow { position: absolute; top: 10px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--coal); color: var(--paper); animation: point 1.3s var(--ease) infinite alternate; }
.exit-arrow svg { width: 20px; height: 20px; }

/* ---------- Movimento ---------- */
.rise { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.r1 { animation-delay: .05s; } .r2 { animation-delay: .12s; } .r3 { animation-delay: .22s; } .r4 { animation-delay: .32s; } .r5 { animation-delay: .44s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes breathe { from { opacity: .45; transform: scale(.97); } to { opacity: 1; transform: scale(1.02); } }
@keyframes nudge { 0%, 62%, 100% { transform: none; } 76% { transform: translate(3px, -3px); } }
@keyframes point { from { transform: none; } to { transform: translate(4px, -4px); } }

@media (min-width: 520px) {
  .page { padding-top: 28px; }
  .hero { border-radius: 34px; box-shadow: 0 0 0 1px var(--line); }
  .strip figure { flex-basis: 40%; }
}
@media (max-width: 374px) {
  .cta-title { font-size: 23px; }
  .cta-core { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .cta-row::before, .cta-arrow svg, .exit-arrow { animation: none; }
  .exit, .cta, .tg { transition: none; }
}
