/* ============================================================
   MCKEE'S — mckees.store — Fase 1: Trekking
   Vetrina emozionale. Non un e-commerce.
   ============================================================ */

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

:root {
  --green:   #2D4A3E;
  --dark:    #1F2A24;
  --amber:   #B26A2E;
  --sand:    #F3EFE8;
  --stone:   #5C5C5C;
  --white:   #FFFFFF;
  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --dur:     700ms;
  --ff-disp: 'Fraunces', Georgia, serif;
  --ff-body: 'Inter', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: auto; }

body {
  font-family: var(--ff-body);
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
  cursor: none;
}

/* ---- GRAIN OVERLAY ---- */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- CURSOR ---- */
#cursor {
  position: fixed;
  width: 22px; height: 22px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  pointer-events: none; z-index: 10000;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease), height .3s var(--ease), border-color .3s ease;
  mix-blend-mode: difference;
}
#cursor.big { width: 54px; height: 54px; }
#cursor.inv { border-color: var(--sand); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.8rem 3rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.nav__logo-img {
  display: block;
  height: 36px;
  width: auto;
  /* Forza il logo a bianco puro su qualsiasi sfondo scuro */
  filter: brightness(0) invert(1);
  transition: opacity .3s ease;
}
.nav__logo-img:hover { opacity: .85; }
.nav__links {
  display: flex; gap: 2rem; list-style: none;
}
.nav__links a {
  font-family: var(--ff-body);
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243,239,232,.65);
  text-decoration: none;
  position: relative;
  transition: color .3s ease;
}
.nav__links a::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--amber);
  transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--sand); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.nav__cta { color: var(--amber); }
.nav__links a.nav__cta:hover { color: var(--amber); }

/* Burger mobile */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.nav__burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--sand);
  transition: transform .3s ease, opacity .3s ease;
}

/* Mobile nav drawer */
.nav__mobile {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  z-index: 150;
  opacity: 0; pointer-events: none;
  transition: opacity .4s var(--ease);
}
.nav__mobile.open { opacity: 1; pointer-events: all; }
.nav__mobile-logo {
  height: 44px; width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: .5rem;
  opacity: .85;
}
.nav__mobile-link {
  font-family: var(--ff-disp);
  font-size: 2.2rem; font-weight: 400;
  color: var(--sand); text-decoration: none;
  letter-spacing: -.01em;
  transition: color .3s ease;
}
.nav__mobile-link:hover { color: var(--amber); }
.nav__mobile-cta { color: var(--amber); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; background: var(--dark);
}
.hero__video-wrap {
  position: absolute; inset: 0; overflow: hidden;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: saturate(.72);
  transform: scale(1.10);
  animation: kenBurns 20s ease-in-out infinite alternate;
}
.hero__video-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,#1F2A24 0%,#2D4A3E 55%,#1a2e22 100%);
}
@keyframes kenBurns {
  from { transform: scale(1.10); }
  to   { transform: scale(1.00); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: rgba(18,26,20,.36);
}
.hero__content {
  position: absolute; bottom: 0; left: 0;
  padding: 4rem 3rem 5rem;
  z-index: 2; max-width: 900px;
}
.hero__eyebrow {
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243,239,232,.58);
  margin-bottom: 1.4rem;
}
.hero__title {
  font-family: var(--ff-disp);
  font-weight: 600;
  font-size: clamp(4.2rem,11vw,9.5rem);
  line-height: .9; letter-spacing: -.02em;
  color: var(--sand);
}
.hero__title .word { display: inline-block; overflow: hidden; }
.hero__title .word span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp .9s var(--ease) forwards;
}
.hero__title .word:nth-child(1) span { animation-delay: .18s; }
.hero__title .word:nth-child(3) span { animation-delay: .42s; }
@keyframes wordUp { to { transform: translateY(0); } }

/* Scroll indicator */
.hero__scroll {
  position: absolute; bottom: 2.5rem; right: 3rem;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 64px;
  background: rgba(243,239,232,.2);
  position: relative; overflow: hidden;
}
.hero__scroll-line::after {
  content: ''; position: absolute;
  top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--sand);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { top: -100%; }
  50%  { top: 0%; }
  100% { top: 100%; }
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto {
  background: var(--sand);
  padding: 9rem 3rem;
}
.manifesto__inner { max-width: 840px; }
.manifesto__phrase {
  font-family: var(--ff-disp);
  font-weight: 400;
  font-size: clamp(2rem,4.5vw,3.6rem);
  line-height: 1.15; color: var(--dark);
  margin-bottom: .35em;
}
.manifesto__phrase:nth-child(2).reveal { transition-delay: .14s; }
.manifesto__phrase:nth-child(3).reveal { transition-delay: .28s; }

/* ============================================================
   CAPITOLO
   ============================================================ */
.chapter {
  padding: 6rem 3rem;
  display: flex; align-items: flex-start; gap: 4rem;
}
.chapter__text { flex: 1; }
.chapter__eyebrow {
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.5rem;
}
.chapter__title {
  font-family: var(--ff-disp);
  font-weight: 500;
  font-size: clamp(5rem,13vw,10.5rem);
  line-height: .87; color: var(--green);
  letter-spacing: -.02em; margin-bottom: 2rem;
  transition-delay: .1s !important;
}
.chapter__subtitle {
  font-family: var(--ff-body);
  font-size: 1.05rem; font-weight: 300;
  color: var(--stone); letter-spacing: .03em;
  line-height: 1.65; max-width: 440px;
  transition-delay: .2s !important;
}
.chapter__path {
  flex-shrink: 0; width: 110px;
  transition-delay: .3s !important;
}
.chapter__path.visible { opacity: .42 !important; }

/* ============================================================
   STORIA EDITORIALE
   ============================================================ */
.story { padding: 4rem 3rem 9rem; }
.story__block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  margin-bottom: 8rem;
}
.story__block:last-child { margin-bottom: 0; }
.story__block--rev .story__video-wrap { order: 2; }
.story__block--rev .story__text { order: 1; }

.story__video-wrap { position: relative; overflow: hidden; border-radius: 2px; }
.story__video {
  width: 100%; height: 60vh;
  object-fit: cover; display: block;
  transform: translateY(0);
  transition: transform .1s linear;
}
.story__vbg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,#2D4A3E 0%,#1F2A24 100%);
  z-index: -1;
}
/* Placeholder visibile quando il video non carica */
.story__vbg::after {
  content: 'Video in caricamento';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-body); font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243,239,232,.22);
}
.story__text { transition-delay: .14s !important; }
.story__label {
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.4rem;
}
.story__title {
  font-family: var(--ff-disp);
  font-weight: 500;
  font-size: clamp(1.8rem,3.6vw,2.9rem);
  line-height: 1.08; color: var(--dark);
  letter-spacing: -.01em; margin-bottom: 1.4rem;
}
.story__body {
  font-family: var(--ff-body);
  font-size: 1rem; font-weight: 300;
  line-height: 1.78; color: var(--stone);
  max-width: 500px; letter-spacing: .01em;
}

/* ============================================================
   PRODOTTO IN SCENA
   ============================================================ */
.product {
  background: var(--green);
  padding: 7rem 3rem;
  overflow: hidden;
}
.product__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.product__eyebrow {
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243,239,232,.38); margin-bottom: 1.5rem;
}
.product__name {
  font-family: var(--ff-disp);
  font-weight: 600;
  font-size: clamp(5rem,14vw,11.5rem);
  line-height: .84; color: var(--sand);
  letter-spacing: -.02em; margin-bottom: 1.4rem;
  margin-left: -.04em;
  transition-delay: .1s !important;
}
.product__subtitle {
  font-family: var(--ff-body);
  font-size: 1rem; font-weight: 300;
  color: rgba(243,239,232,.58);
  letter-spacing: .02em; margin-bottom: 2.8rem;
  max-width: 340px;
  transition-delay: .2s !important;
}
.product__features {
  list-style: none; margin-bottom: 3.2rem;
  transition-delay: .28s !important;
}
.product__features li {
  font-family: var(--ff-body);
  font-size: .82rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(243,239,232,.46);
  padding: .7rem 0;
  border-bottom: 1px solid rgba(243,239,232,.1);
}
.product__features li:first-child { border-top: 1px solid rgba(243,239,232,.1); }
.product__cta-wrap { transition-delay: .36s !important; }
.product__cta {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); border: 1.5px solid var(--amber);
  padding: .95rem 2.1rem; text-decoration: none;
  transition: color .3s ease, background .3s ease;
}
.product__cta:hover { color: var(--sand); background: var(--amber); }
.product__note {
  display: block;
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 400;
  color: rgba(243,239,232,.25);
  letter-spacing: .04em; margin-top: .9rem;
}
.product__right { transition-delay: .18s !important; }
.product__video-wrap { position: relative; overflow: hidden; border-radius: 2px; transform: translateY(-18px); }
.product__video {
  width: 100%; height: 68vh;
  object-fit: cover; display: block;
}
.product__vbg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg,#1F2A24 0%,#243d31 100%);
  z-index: -1;
}

/* ============================================================
   PROSSIMI CAPITOLI
   ============================================================ */
.chapters { padding: 8rem 3rem; background: var(--white); }
.chapters__eyebrow {
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 3.5rem;
}
.chapters__grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2px;
}
.chapters__card {
  position: relative;
  background: var(--sand);
  padding: 3rem 2.5rem;
  overflow: hidden; cursor: not-allowed;
}
.chapters__card:nth-child(1).reveal { transition-delay: 0s; }
.chapters__card:nth-child(2).reveal { transition-delay: .1s; }
.chapters__card:nth-child(3).reveal { transition-delay: .2s; }
.chapters__card:nth-child(4).reveal { transition-delay: .3s; }
.chapters__card.visible {
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .88; }
}
.chapters__card::after {
  content: ''; position: absolute; inset: 0;
  background: var(--green); opacity: 0;
  transition: opacity .4s ease;
}
.chapters__card:hover::after { opacity: .05; }
.chapters__card-eyebrow {
  font-family: var(--ff-body);
  font-size: .63rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.4rem;
  position: relative; z-index: 1;
}
.chapters__card-title {
  font-family: var(--ff-disp);
  font-weight: 500; font-size: 2.2rem;
  color: var(--green); line-height: 1.1;
  letter-spacing: -.01em;
  position: relative; z-index: 1;
}
.chapters__card-num {
  position: absolute; bottom: -.12em; right: .08em;
  font-family: var(--ff-disp); font-weight: 600;
  font-size: 9rem; color: var(--green);
  opacity: .07; line-height: 1;
  pointer-events: none; user-select: none;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { background: var(--sand); padding: 8rem 3rem; }
.newsletter__inner { max-width: 640px; }
.newsletter__phrase {
  font-family: var(--ff-disp);
  font-weight: 400;
  font-size: clamp(1.8rem,3.6vw,2.9rem);
  line-height: 1.2; color: var(--dark);
  margin-bottom: 3.2rem;
}
.newsletter__form { transition-delay: .14s !important; }
.newsletter__field {
  display: flex; align-items: flex-end;
  gap: 1.5rem; margin-bottom: 1rem;
}
.newsletter__input {
  flex: 1; background: none; border: none;
  border-bottom: 1.5px solid var(--green);
  padding: .7rem 0;
  font-family: var(--ff-body); font-size: 1rem; font-weight: 400;
  color: var(--dark); outline: none;
  transition: border-color .3s ease;
}
.newsletter__input::placeholder { color: rgba(31,42,36,.32); }
.newsletter__input:focus { border-color: var(--amber); }
.newsletter__btn {
  background: none; border: none;
  font-family: var(--ff-body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); cursor: none;
  position: relative; padding-bottom: 2px; white-space: nowrap;
}
.newsletter__btn::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--amber);
  transition: width .3s var(--ease);
}
.newsletter__btn:hover::after { width: 100%; }
.newsletter__disclaimer {
  font-family: var(--ff-body);
  font-size: .7rem; font-weight: 400;
  color: var(--stone); letter-spacing: .03em; opacity: .7;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); padding: 5rem 3rem 3rem; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem; margin-bottom: 3.5rem;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: .9rem;
}
.footer__logo-img {
  display: block;
  height: 42px;
  width: auto;
  /* Forza il logo a bianco puro su fondo scuro */
  filter: brightness(0) invert(1);
  transition: opacity .3s ease;
}
.footer__logo-img:hover { opacity: .8; }
.footer__payoff {
  font-family: var(--ff-body);
  font-size: .76rem; font-weight: 400;
  color: rgba(243,239,232,.32);
  letter-spacing: .04em; line-height: 1.65; max-width: 240px;
}
.footer__col-title {
  font-family: var(--ff-body);
  font-size: .63rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(243,239,232,.28); margin-bottom: 1.4rem;
}
.footer__nav { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.footer__nav a {
  font-family: var(--ff-body);
  font-size: .88rem; font-weight: 300;
  color: rgba(243,239,232,.5);
  text-decoration: none; position: relative;
  transition: color .3s ease;
}
.footer__nav a::after {
  content: ''; position: absolute;
  bottom: -1px; left: 0; width: 0; height: 1px;
  background: var(--amber); transition: width .3s var(--ease);
}
.footer__nav a:hover { color: var(--sand); }
.footer__nav a:hover::after { width: 100%; }
.footer__cta-link { color: var(--amber) !important; font-weight: 500 !important; }
.footer__cta-link:hover { color: var(--amber) !important; }
.footer__sep { height: 1px; background: var(--stone); opacity: .22; margin-bottom: 1.8rem; }
.footer__copy {
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 400;
  color: rgba(243,239,232,.22);
  letter-spacing: .04em; line-height: 1.75;
}
.footer__copy a { color: inherit; text-decoration: underline; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--dark);
  padding: .9rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  z-index: 9000;
  transform: translateY(100%);
  transition: transform .5s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p {
  font-family: var(--ff-body);
  font-size: .73rem; font-weight: 400;
  color: rgba(243,239,232,.48); letter-spacing: .02em;
}
.cookie-banner a { color: inherit; }
.cookie-banner__btn {
  flex-shrink: 0; background: none;
  border: 1px solid rgba(243,239,232,.18);
  font-family: var(--ff-body);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(243,239,232,.48);
  padding: .45rem 1.1rem; cursor: none;
  transition: border-color .3s ease, color .3s ease;
  white-space: nowrap;
}
.cookie-banner__btn:hover { border-color: var(--sand); color: var(--sand); }

/* ============================================================
   LINK GENERALI
   ============================================================ */
a { cursor: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  body { cursor: auto; }
  a, button { cursor: auto; }
  #cursor { display: none; }

  .nav { padding: 1.4rem 1.5rem; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero__content { padding: 2.5rem 1.5rem 4rem; }
  .hero__scroll  { right: 1.5rem; }

  .manifesto { padding: 5rem 1.5rem; }

  .chapter { padding: 4rem 1.5rem; flex-direction: column; gap: 1.5rem; }
  .chapter__path { display: none; }

  .story { padding: 3rem 1.5rem 5rem; }
  .story__block {
    grid-template-columns: 1fr; gap: 2rem; margin-bottom: 5rem;
  }
  .story__block--rev .story__video-wrap { order: 0; }
  .story__block--rev .story__text { order: 0; }
  .story__video { height: 52vw; min-height: 240px; }

  .product { padding: 5rem 1.5rem; }
  .product__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .product__video { height: 55vw; min-height: 280px; }
  .product__video-wrap { transform: none; }

  .chapters { padding: 5rem 1.5rem; }
  .chapters__grid { grid-template-columns: 1fr 1fr; }
  .chapters__card { padding: 2rem 1.5rem; }

  .newsletter { padding: 5rem 1.5rem; }
  .newsletter__field { flex-direction: column; align-items: flex-start; gap: .8rem; }

  .footer { padding: 3.5rem 1.5rem 2rem; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .cookie-banner { padding: .8rem 1.5rem; flex-direction: column; align-items: flex-start; gap: .6rem; }
}

@media (max-width: 540px) {
  .chapters__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(3.4rem,18vw,5rem); }
}
