/* Manuel Cid Esposito · private chef · v2
   Discesa iceberg: avorio → sabbia → terra → notte. Zero em dash. Zero dipendenze. */

@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('assets/fonts/cormorant-garamond-300-italic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-200.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('assets/fonts/jost-300.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }

:root {
  --avorio: #f4f1ea;
  --avorio2: #ece7dc;
  --sabbia: #d5c6ab;
  --terra: #4a3f30;
  --earth: #2f2a22;
  --night: #232019;
  --inchiostro: #2b2e29;
  --display: 'Cormorant Garamond', Georgia, serif;
  --ui: 'Jost', system-ui, sans-serif;
  --pad: 1.4rem;
  --dur: .24s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ui); font-weight: 300;
  color: var(--inchiostro); background: var(--avorio);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .9rem var(--pad);
  color: var(--avorio);
  transition: background var(--dur), color var(--dur), box-shadow var(--dur);
}
.topbar.scrolled {
  background: rgba(244,241,234,.92); color: var(--inchiostro);
  backdrop-filter: blur(8px);
  box-shadow: 0 .5px 0 rgba(43,46,41,.15);
}
.topbar.on-dark.scrolled {
  background: rgba(35,32,25,.88); color: var(--avorio);
  box-shadow: 0 .5px 0 rgba(244,241,234,.12);
}
.topbar-name { font-family: var(--display); font-size: 1.02rem; letter-spacing: .04em; color: inherit; text-decoration: none; white-space: nowrap; }
.topbar-cta {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .2em;
  color: inherit; text-decoration: none;
  border: 1px solid currentColor; border-radius: 9999px;
  padding: .5em 1.15em; white-space: nowrap;
  transition: opacity var(--dur);
}
.topbar-cta:hover { opacity: .7; }

/* ---------- tipografia ---------- */
.eyebrow {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .32em;
  opacity: .72; margin-bottom: 1.2rem;
}
h1, h2 { font-family: var(--display); font-weight: 300; line-height: 1.04; letter-spacing: .01em; }
h1 { font-size: clamp(2.7rem, 10vw, 6rem); }
h2 { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 1.5rem; }
.prose p { max-width: 32em; font-size: 1.05rem; margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.firma { font-family: var(--display); font-style: italic; font-size: 1.3rem; opacity: .82; margin-top: 2.6rem; }
.note { font-size: .82rem; opacity: .65; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--avorio);
  overflow: hidden; background: var(--night);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  animation: heroZoom 14s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35,32,25,.42) 0%, rgba(35,32,25,.18) 45%, rgba(35,32,25,.62) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 var(--pad); max-width: 62rem; }
.hero h1 { text-wrap: balance; }
.hero-sub { margin: 1.5rem 0 2.4rem; font-size: 1.05rem; opacity: .94; }
.hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 1px; height: 3.4rem;
  background: linear-gradient(180deg, var(--avorio), transparent);
  animation: hint 2.6s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: translateX(-50%) scaleY(.35); transform-origin: top; opacity: .35; }
  50% { transform: translateX(-50%) scaleY(1); opacity: .9; }
}

/* reveal d'apertura */
.rise { opacity: 0; transform: translateY(26px); animation: rise 1s cubic-bezier(.22,.61,.36,1) forwards; }
h1 .rise { display: inline-block; }
.d1 { animation-delay: .25s; }
.d2 { animation-delay: .45s; }
.d3 { animation-delay: .85s; }
.d4 { animation-delay: 1.1s; }
.rise:not(.d1):not(.d2):not(.d3):not(.d4) { animation-delay: .1s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- bottoni ---------- */
.btn {
  display: inline-block;
  font-family: var(--ui); font-weight: 300;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .24em;
  text-decoration: none; color: inherit;
  border: 1px solid currentColor; border-radius: 9999px;
  padding: .95em 2.3em; background: transparent; cursor: pointer;
  transition: background var(--dur), color var(--dur);
}
.bg-night .btn:hover, .bg-earth .btn:hover, .bg-terra .btn:hover, .hero .btn:hover
  { background: var(--avorio); color: var(--inchiostro); border-color: var(--avorio); }
.bg-avorio .btn:hover, .bg-avorio2 .btn:hover, .bg-sabbia .btn:hover
  { background: var(--inchiostro); color: var(--avorio); border-color: var(--inchiostro); }
.midcta { margin-top: 3rem; }

/* focus visibile ovunque */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px;
}

/* ---------- sezioni e discesa colore ---------- */
.say { padding: clamp(4.5rem, 12vh, 8rem) var(--pad); }
.wrap { max-width: 44rem; margin: 0 auto; }
.wrap.wide { max-width: 72rem; }
.bg-avorio { background: var(--avorio); }
.bg-avorio2 { background: var(--avorio2); }
.bg-sabbia { background: var(--sabbia); }
.bg-terra { background: var(--terra); color: var(--avorio); }
.bg-earth { background: var(--earth); color: var(--avorio); }
.bg-night { background: var(--night); color: var(--avorio); }
.end { padding-bottom: 0; }

/* ---------- media a piena pagina ---------- */
.full {
  position: relative; height: min(92svh, 56rem); overflow: hidden;
  background: var(--night);
}
.full img, .full video { height: 100%; }

/* ---------- formati ---------- */
.formats {
  display: flex; flex-wrap: wrap; gap: .6rem .7rem;
  list-style: none; margin-top: 2.2rem;
}
.formats li {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .22em;
  border: 1px solid rgba(43,46,41,.35); border-radius: 9999px;
  padding: .5em 1.2em; opacity: .85;
}

/* ---------- percorso ---------- */
.path { list-style: none; margin-top: .6rem; max-width: 34em; }
.path li {
  padding: .95rem 0; font-size: 1.02rem;
  border-bottom: .5px solid rgba(244,241,234,.22);
}
.path li:last-child { border-bottom: none; }

/* ---------- galleria ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin-top: 1.6rem; }
.ph { overflow: hidden; border-radius: 3px; }
.ph img, .ph video { aspect-ratio: 4 / 5; transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.ph:hover img { transform: scale(1.04); }
.gallery figcaption {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .22em;
  opacity: .6; margin-top: .5rem;
}

/* ---------- form ---------- */
.reqform { margin-top: 2.2rem; max-width: 36rem; display: grid; gap: 1.2rem; }
.row2 { display: grid; gap: 1.2rem; }
.reqform label {
  display: grid; gap: .4rem;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .2em; opacity: .85;
}
input, textarea {
  font-family: var(--ui); font-weight: 300; font-size: 1rem;
  color: var(--avorio); background: transparent;
  border: none; border-bottom: 1px solid rgba(244,241,234,.4);
  padding: .55em 0; outline: none; border-radius: 0;
  transition: border-color var(--dur);
}
input:focus, textarea:focus { border-color: var(--avorio); }
textarea { resize: vertical; }
.reqform .btn { justify-self: start; margin-top: .4rem; }
.form-note { margin-top: .1rem; }

/* ---------- footer ---------- */
.footer {
  margin-top: 5rem; padding: 1.6rem 0 2rem;
  display: flex; flex-direction: column; gap: .4rem;
  font-size: .78rem; opacity: .6;
  border-top: .5px solid rgba(244,241,234,.2);
}
.draft-tag { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- reveal allo scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  :root { --pad: 3rem; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
  .full { height: 100svh; }
  .say { padding-top: 9rem; padding-bottom: 9rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint, .hero-video { animation: none; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .ph img, .ph:hover img { transition: none; transform: none; }
}
