/* Manuel Cid Esposito · private chef · bozza
   Discesa iceberg: avorio, sabbia, terra, notte. Nessun em dash nei testi. */

:root {
  --avorio: #f4f1ea;
  --avorio2: #ece7dc;
  --sabbia: #d5c6ab;
  --creta: #b9a07f;
  --terra: #4a3f30;
  --earth: #2f2a22;
  --night: #232019;
  --inchiostro: #2b2e29;
  --display: 'Cormorant Garamond', Georgia, serif;
  --ui: 'Jost', system-ui, sans-serif;
}

* { 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 { 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;
  padding: 1rem 1.25rem;
  color: var(--avorio);
  transition: background .4s, color .4s, box-shadow .4s;
}
.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-name { font-family: var(--display); font-size: 1.05rem; letter-spacing: .04em; }
.topbar-cta {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .22em;
  color: inherit; text-decoration: none;
  border: 1px solid currentColor; border-radius: 9999px;
  padding: .45em 1.1em;
  transition: opacity .24s;
}
.topbar-cta:hover { opacity: .7; }

/* tipografia comune */
.eyebrow {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .32em;
  opacity: .75; margin-bottom: 1.1rem;
}
h1, h2 {
  font-family: var(--display); font-weight: 300;
  line-height: 1.05; letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 9vw, 5.5rem); }
h2 { font-size: clamp(1.9rem, 6vw, 3.2rem); margin-bottom: 1.6rem; }
.prose p { max-width: 34em; margin-bottom: 1em; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.firma {
  font-family: var(--display); font-style: italic; font-size: 1.25rem;
  opacity: .8; margin-top: 3rem;
}
.note { font-size: .85rem; opacity: .65; margin-top: 2rem; }

/* sezioni e discesa colore */
.sec { padding: 5.5rem 1.25rem; }
.wrap { max-width: 72rem; margin: 0 auto; }
.sec-service { background: var(--avorio); }
.sec-how { background: var(--avorio2); }
.sec-places { background: #e3d8c0; }
.sec-materia { background: var(--sabbia); }
.sec-radici { background: var(--terra); color: var(--avorio); }
.sec-percorso { background: var(--earth); color: var(--avorio); }
.sec-orbit { background: #292520; color: var(--avorio); }
.sec-contact { background: var(--night); color: var(--avorio); padding-bottom: 0; }

/* orbit cards */
.orbit-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
.orbit-card {
  border: 1px solid rgba(244,241,234,.22); border-radius: 4px;
  padding: 1.4rem 1.4rem 1.6rem;
}
.orbit-tag {
  font-size: .64rem; text-transform: uppercase; letter-spacing: .26em;
  opacity: .6; margin-bottom: .8rem;
}
.orbit-card h3 { font-family: var(--display); font-weight: 300; font-size: 1.5rem; margin-bottom: .6rem; }
.orbit-card p { font-size: .95rem; opacity: .92; }
.orbit-card a { color: inherit; }

/* 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-media { position: absolute; inset: -8% 0; z-index: 0; }
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(35,32,25,.5) 0%, rgba(35,32,25,.3) 45%, rgba(35,32,25,.6) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 0 1.25rem; }
.hero .eyebrow { opacity: .9; }
.hero-sub { margin: 1.4rem 0 2.2rem; font-size: 1.05rem; opacity: .92; }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2;
}
.scroll-hint span {
  display: block; width: 1px; height: 3.2rem;
  background: linear-gradient(180deg, var(--avorio), transparent);
  animation: hint 2.4s ease-in-out infinite;
}
@keyframes hint {
  0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .4; }
  50% { transform: scaleY(1); opacity: .9; }
}

/* bottoni */
.btn {
  display: inline-block;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .24em;
  text-decoration: none; color: var(--avorio);
  border: 1px solid var(--avorio); border-radius: 9999px;
  padding: .9em 2.2em;
  background: transparent; cursor: pointer;
  transition: background .24s, color .24s;
}
.btn:hover { background: var(--avorio); color: var(--inchiostro); }
.btn-light { font-family: var(--ui); }

/* contesti */
.contexts {
  display: flex; gap: .75rem; flex-wrap: wrap;
  list-style: none; margin-top: 2.5rem;
}
.cat-panels { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.cat-panel {
  position: relative; overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 3;
}
.cat-panel img, .cat-panel video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cat-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 3.5rem 1.4rem 1.3rem;
  background: linear-gradient(180deg, rgba(35,32,25,0) 0%, rgba(35,32,25,.72) 78%);
  color: var(--avorio);
}
.cat-overlay h3 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem); line-height: 1.05;
}
.cat-overlay p { font-size: .92rem; opacity: .92; margin-top: .35rem; max-width: 34em; }

/* luoghi e galleria esperienze */
.places {
  display: flex; flex-wrap: wrap; gap: .5rem .6rem;
  list-style: none; margin-top: .5rem;
}
.places li { display: contents; }
.place-btn {
  font-family: var(--ui); font-weight: 300;
  font-size: .72rem; text-transform: uppercase; letter-spacing: .22em;
  border: 1px solid rgba(43,46,41,.3); border-radius: 9999px;
  padding: .4em 1.1em; opacity: .85;
  background: transparent; color: inherit; cursor: pointer;
  transition: background .24s, color .24s, opacity .24s;
}
.place-btn:hover { opacity: 1; }
.place-btn.active {
  background: var(--inchiostro); color: var(--avorio);
  border-color: var(--inchiostro); opacity: 1;
}
.story-row {
  display: grid; gap: 1.5rem; margin-top: 1.8rem;
  align-items: start;
}
.story-text { min-height: 5.5em; }
.story-text p { max-width: 38em; font-size: 1.02rem; }
.story-media { max-width: 18rem; }
.story-media .album-main {
  overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 5;
}
.story-media img, .story-media video {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.album-thumbs { display: flex; gap: .45rem; margin-top: .55rem; }
.album-thumbs button {
  width: 3.4rem; aspect-ratio: 1; overflow: hidden;
  border: 1px solid transparent; border-radius: 3px; padding: 0;
  background: none; cursor: pointer; opacity: .65;
  transition: opacity .24s, border-color .24s;
}
.album-thumbs button.active, .album-thumbs button:hover { opacity: 1; border-color: currentColor; }

/* nav topbar */
.topbar-nav { display: none; gap: 1.6rem; }
.topbar-nav a {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .22em;
  color: inherit; text-decoration: none; opacity: .75;
  transition: opacity .24s;
}
.topbar-nav a:hover { opacity: 1; }
.mapwrap {
  margin-top: 2.5rem; overflow: hidden; border-radius: 4px;
  aspect-ratio: 16 / 9; background: var(--night);
}
.mapvid { display: block; width: 100%; height: 100%; object-fit: cover; }

.gallery {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-top: 2.5rem;
}
.gallery .ph { aspect-ratio: 4 / 5; }
.gallery figcaption {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .22em;
  opacity: .65; margin-top: .55rem;
}

/* steps */
.steps { list-style: none; display: grid; gap: 2rem; margin-top: 1rem; }
.steps li { max-width: 30em; }
.steps em {
  display: block; font-style: normal;
  font-family: var(--display); font-size: 1.6rem; opacity: .5;
  margin-bottom: .3rem;
}
.steps p { font-size: 1.05rem; }

/* layout split e immagini */
.split { display: grid; gap: 2.5rem; margin-top: 1rem; }
.imgcol { display: grid; gap: 1.25rem; }
.ph {
  overflow: hidden; border-radius: 4px;
  aspect-ratio: 4 / 5;
}
.ph.wide { aspect-ratio: 16 / 9; margin-top: 2.5rem; }
.ph img { transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.ph video { display: block; width: 100%; height: 100%; object-fit: cover; }

.longread { margin-top: 2.5rem; }

/* percorso */
.path { list-style: none; margin-top: 1rem; max-width: 36em; }
.path li {
  padding: 1.1rem 0;
  border-bottom: .5px solid rgba(244,241,234,.25);
  font-size: 1.05rem;
}
.path .when {
  display: block;
  font-size: .66rem; text-transform: uppercase; letter-spacing: .28em;
  opacity: .55; margin-bottom: .35rem;
}
.path li:last-child { border-bottom: none; }

/* form */
.reqform { margin-top: 2rem; max-width: 38rem; display: grid; gap: 1.2rem; }
.row2 { display: grid; gap: 1.2rem; }
label {
  display: grid; gap: .4rem;
  font-size: .72rem; 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 .24s;
}
input:focus, textarea:focus { border-color: var(--avorio); }
textarea { resize: vertical; }
.reqform .btn { justify-self: start; margin-top: .5rem; }
.form-note { margin-top: .2rem; }

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

/* reveal di default visibile: GSAP anima solo se presente */
.reveal { opacity: 1; }

/* desktop */
@media (min-width: 768px) {
  .sec { padding: 8rem 3rem; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 3fr 2fr; align-items: start; }
  .imgcol { grid-template-columns: 1fr 1fr; align-items: start; }
  .imgcol .ph:nth-child(2) { margin-top: 3rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .orbit-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cat-panels { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .cat-panel { aspect-ratio: 16 / 10; }
  .topbar { padding: 1.25rem 3rem; }
  .topbar-nav { display: flex; }
  .story-row { grid-template-columns: 3fr 2fr; }
  .story-media { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint span { animation: none; }
}
