/* ============================================================
   formequotidiane — landing
   Palette dalla Brand Guideline (Milano, marzo 2026):
   White #ffffff · Off White #faf9f6 · Black #000000 · Matte Black #28282b
   Neutri: #e1e0dd #c8c7c4 #969593 #646362 · caldi #f1eee6 #e8e3d5
   Font: Helvetica Neue
   ============================================================ */

:root {
  --white: #ffffff;
  --off: #faf9f6;
  --black: #000000;
  --matte: #28282b;
  --grey-1: #e1e0dd;
  --grey-2: #c8c7c4;
  --grey-3: #969593;
  --grey-4: #646362;
  --warm-1: #f1eee6;
  --stage: #ddd9d6; /* fondo limbo del video, campionato dal grezzo */
  --max: 1440px;
  --pad: clamp(24px, 6vw, 96px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--off);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
  line-height: 1.55;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  background: transparent;
  transition: background .5s ease, box-shadow .5s ease;
}
.site-header.solid {
  background: rgba(250, 249, 246, .92);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  box-shadow: inset 0 -1px 0 var(--grey-1);
}
.brand-logo { height: 16px; width: auto; }
.site-nav { display: flex; gap: clamp(20px, 3vw, 44px); }
.site-nav a {
  font-size: 14px;
  letter-spacing: .01em;
  color: var(--matte);
  opacity: .82;
  transition: opacity .25s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { opacity: 1; }
.site-nav a:focus-visible, .brand:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--matte);
  outline-offset: 4px;
}

/* ---------- hero ---------- */

.hero-wrap {
  height: 440svh;   /* film 0–90% + sosta finale */
  position: relative;
}
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  /* limbo campionato dal video: più scuro in alto, più caldo in basso */
  background: linear-gradient(180deg, #d7d3d0 0%, #e0dfdd 100%);
}
.hero-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-aspect-ratio: 1/1) {
  /* mobile / portrait: mai ritagliare la coreografia orizzontale */
  .hero-stage { background: var(--stage); }
  .hero-stage video { object-fit: contain; }
}

/* didascalie di capitolo: opacità + fill tipografico pilotati da JS sul frame visibile.
   --fill 0→1: il testo parte chiaro e si colora di nero pieno da sinistra a destra. */
.hero-caption {
  --fill: -0.16;
  position: absolute;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  max-width: 440px;
  opacity: 0;
  will-change: opacity;
  pointer-events: none;
}
.hero-caption.cap-left { right: auto; left: var(--pad); }
.hero-caption .cap-kicker {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: 18px;
}
.hero-caption .cap-line {
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: transparent;
  background-image: linear-gradient(90deg,
    var(--black) 0%,
    var(--black) calc((var(--fill) - 0.08) * 100%),
    #adaba8 calc((var(--fill) + 0.08) * 100%),
    #adaba8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@media (max-aspect-ratio: 1/1) {
  .hero-caption, .hero-caption.cap-left {
    right: auto;
    left: 50%;
    top: auto;
    bottom: 14svh;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    max-width: 86vw;
  }
  .hero-caption .cap-line { font-size: clamp(22px, 6vw, 32px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-caption { display: none; }
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-size: 13px;
  letter-spacing: .14em;
  color: var(--grey-4);
  opacity: .8;
  transition: opacity .8s ease;
  animation: hint 2.6s ease-in-out infinite;
}
.hero-hint.hidden { opacity: 0; animation: none; }
@keyframes hint {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ---------- sezioni ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(120px, 18vh, 220px) var(--pad);
}

.kicker {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-3);
  margin-bottom: clamp(20px, 3vh, 36px);
}

.display {
  font-size: clamp(42px, 7vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--black);
}

.headline {
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.lede {
  margin-top: clamp(32px, 5vh, 56px);
  max-width: 620px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--matte);
}

.muted { color: var(--grey-4); }

/* manifesto */
.section-manifesto { padding-top: clamp(140px, 22vh, 260px); }

/* due colonne editoriali */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.col-copy p + p { margin-top: 1.4em; }
.col-copy p { max-width: 480px; font-size: clamp(16px, 1.25vw, 19px); }

/* ---------- collezione ---------- */

.collection {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.chapter { padding: clamp(90px, 14vh, 170px) 0; }
.chapter + .chapter { border-top: 1px solid var(--grey-1); }

.chapter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.chapter-head .kicker { margin-bottom: 0; }

.chapter-figure {
  background: var(--stage);
  overflow: hidden;
}
.chapter-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.chapter-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: clamp(28px, 4vh, 44px);
}
.chapter-note {
  max-width: 440px;
  font-size: 16px;
  color: var(--matte);
}

/* swatch: campioni materia, discreti */
.swatches { display: flex; gap: 12px; align-items: center; padding-top: 6px; }
.swatch {
  display: inline-flex;
  width: 16px; height: 16px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(40, 40, 43, .14);
}
.swatch i { flex: 1; background: var(--c); }
.swatch.pair { width: 22px; border-radius: 9px; }

/* ---------- materia / luce ---------- */

.section-light {
  max-width: none;
  background: linear-gradient(180deg, var(--matte) 0%, #1d1d1f 100%);
  text-align: left;
}
.section-light > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.kicker-light { color: var(--grey-3); }
.display-light {
  color: var(--off);
  font-size: clamp(34px, 5vw, 76px);
}

/* ---------- cta ---------- */

.section-cta { text-align: left; }
.cta-row {
  margin-top: clamp(36px, 6vh, 60px);
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 15px 34px;
  background: var(--black);
  color: var(--off);
  font-size: 15px;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: background .3s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--matte); }
.cta-contact { font-size: 14px; line-height: 1.6; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--matte);
  color: var(--grey-2);
  padding: clamp(70px, 10vh, 110px) var(--pad) 48px;
}
.footer-logo { height: 15px; width: auto; margin-bottom: 56px; }
.footer-meta {
  display: flex;
  gap: clamp(48px, 8vw, 140px);
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.7;
}
.footer-legal {
  margin-top: 64px;
  font-size: 12px;
  color: var(--grey-4);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2, .6, .2, 1), transform .9s cubic-bezier(.2, .6, .2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .chapter-foot { flex-direction: column; }
  .site-nav a { font-size: 13px; }
  .brand-logo { height: 13px; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-wrap { height: 100svh; }
  .hero-hint { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
