/* ============================================================
   S26 — Hair Beauty & Barber
   Palette rigorosa bianco/nero dal logo.
   Due voci tipografiche = due anime del salone:
   - Anton (sans pesante)  → Barber / Uomo
   - Cormorant Garamond    → Hair & Beauty / Donna
   ============================================================ */

:root {
  --ink: #0b0b0a;
  --ink-soft: #161615;
  --paper: #f1efe9;
  --paper-dim: #e7e4db;
  --line-dark: rgba(241, 239, 233, 0.16);
  --line-light: rgba(11, 11, 10, 0.16);
  --sans: "Anton", "Arial Narrow", Impact, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--paper); color: var(--ink); }

/* ---------- grana pellicola ---------- */
.grain {
  position: fixed;
  inset: -100px;
  z-index: 80;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 30px); }
  50% { transform: translate(30px, -50px); }
  75% { transform: translate(-30px, -20px); }
  100% { transform: translate(0, 0); }
}

/* ---------- cursore ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 200;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease);
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 52px; height: 52px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ============================== NAV ============================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(11, 11, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.nav__brand {
  font-family: var(--sans);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.nav.is-branded .nav__brand { opacity: 1; transform: none; }
.nav__brand-sub {
  font-family: var(--body);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.32em;
}
.nav__links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav__links a { position: relative; padding: 0.3rem 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: 1rem; }

.btn {
  display: inline-block;
  border: 1px solid var(--paper);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--big { padding: 1rem 2.2rem; font-size: 0.85rem; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 24px; }
.nav__burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.6s var(--ease), visibility 0s 0.6s;
}
.menu.is-open {
  clip-path: inset(0 0 0% 0);
  visibility: visible;
  transition: clip-path 0.6s var(--ease), visibility 0s;
}
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 11vw, 4.5rem);
  line-height: 1.08;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.10s; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.16s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.22s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.28s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.34s; }
.menu__links .menu__book { font-family: var(--serif); font-style: italic; text-transform: none; }
.menu__foot {
  position: absolute;
  bottom: 1.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ============================== HERO ============================== */
.hero {
  position: relative;
  z-index: 1; /* le sezioni successive gli scorrono sopra (effetto sipario) */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  overflow: hidden;
  /* tiene logo e claim lontani dall'indicatore di scroll */
  padding-bottom: clamp(90px, 16vh, 150px);
}
.hero__inner { text-align: center; will-change: transform, opacity; }
.hero__logo {
  width: min(360px, 66vw);
  height: auto;
  margin: 0 auto;
}
.hero__tag {
  margin-top: 0.85rem;
  font-size: clamp(0.85rem, 2.4vw, 1.15rem);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em; /* compensa il tracking a destra */
}
.hero__loc {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-top: 0.6rem;
}
.hero__cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.6;
}
.hero__cue i {
  width: 1px;
  height: 44px;
  background: var(--paper);
  display: block;
  animation: cue 1.8s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Tutto ciò che segue l'hero gli scorre sopra durante il pin */
.marquee, .anime, .services, .gallery, .contact, .footer {
  position: relative;
  z-index: 2;
}

/* ============================ MARQUEE ============================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: 1.1rem 0;
  background: var(--ink);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex;
  align-items: baseline;
  gap: 2.6rem;
  padding-right: 2.6rem;
  white-space: nowrap;
}
.marquee__group em {
  font-style: normal;
  font-size: 1rem;
  opacity: 0.5;
  align-self: center;
}
.mq-sans {
  font-family: var(--sans);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mq-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
}

/* ======================= DUE ANIME (split) ======================= */
.anime {
  display: flex;
  min-height: 100vh;
}
.panel {
  position: relative;
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  transition: flex 0.7s var(--ease);
  will-change: transform;
}
@media (hover: hover) and (min-width: 861px) {
  .anime:hover .panel { flex: 0.75; }
  .anime .panel:hover { flex: 1.5; }
}
.panel__bg { position: absolute; inset: 0; }
.panel__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.08);
  transition: transform 1.2s var(--ease);
}
.panel:hover .panel__bg img { transform: scale(1.02); }

.panel--barber { background: var(--ink); color: var(--paper); }
.panel--barber .panel__bg img { opacity: 0.38; }
.panel--barber .panel__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,11,10,0.92), rgba(11,11,10,0.15) 55%);
}

.panel--beauty { background: var(--paper); color: var(--ink); }
.panel--beauty .panel__bg img { opacity: 0.34; }
.panel--beauty .panel__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(241,239,233,0.94), rgba(241,239,233,0.2) 55%);
}

.panel__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.panel__smiley {
  width: clamp(64px, 7vw, 96px);
  margin-bottom: 1.4rem;
}
.panel__mark {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1.2rem;
}
.panel__mark i { font-style: italic; padding: 0 0.06em; }
.panel__title {
  font-family: var(--sans);
  font-size: clamp(3.4rem, 8.5vw, 8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400;
}
.panel__title--serif {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.panel__title--serif em { font-style: italic; }
.panel__hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.65;
}
.panel__hint--serif { font-family: var(--serif); font-style: italic; font-size: 1.05rem; letter-spacing: 0.12em; text-transform: none; }
.panel__arrow {
  position: absolute;
  right: clamp(2rem, 5vw, 4rem);
  bottom: clamp(2rem, 5vw, 4rem);
  font-size: 1.4rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.panel:hover .panel__arrow { opacity: 1; transform: none; }

/* ============================ SERVIZI ============================ */
.services { display: flex; }
.services__col {
  flex: 1;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
}
.services__col--uomo { background: var(--ink); color: var(--paper); }
/* la colonna uomo (più corta) resta in vista mentre scorre il listino donna */
@media (min-width: 861px) {
  .services__col--uomo {
    position: sticky;
    top: 0;
    align-self: flex-start;
  }
}
.services__col--donna { background: var(--paper); color: var(--ink); }

.kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 1rem;
}
.services__title {
  font-family: var(--sans);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
}
.services__title--serif {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  text-transform: none;
}

.services__list { flex: 1; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.05rem 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.services__col--uomo .row { border-bottom: 1px solid var(--line-dark); }
.services__col--donna .row { border-bottom: 1px solid var(--line-light); }
.services__col--donna .row span:first-child { font-family: var(--serif); font-size: clamp(1.15rem, 1.7vw, 1.45rem); font-weight: 500; }
.row span:last-child { white-space: nowrap; font-size: 0.92em; opacity: 0.8; }
.row small {
  display: block;
  font-size: 0.72em;
  opacity: 0.65;
  font-family: var(--body);
  letter-spacing: 0.02em;
}

/* ============================ GALLERIA ============================ */
.gallery {
  background: var(--ink);
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
}
.gallery__head { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.gallery__title {
  font-family: var(--sans);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1;
  text-transform: uppercase;
  font-weight: 400;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}
.gfig { position: relative; }
.gfig--a { grid-column: 1 / span 5; margin-top: clamp(2rem, 8vw, 7rem); }
.gfig--b { grid-column: 7 / span 6; }
.gfig--c { grid-column: 3 / span 9; margin-top: clamp(1rem, 4vw, 3rem); }
.gfig__frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.gfig--c .gfig__frame { aspect-ratio: 16 / 10.8; }
.gfig__frame img {
  width: 100%;
  height: 116%;
  object-fit: cover;
  filter: grayscale(0.9) contrast(1.04);
  will-change: transform;
  transition: filter 0.6s var(--ease);
}
/* mostra una porzione più alta della vetrina (taglia meno dall'alto) */
.gfig--c .gfig__frame img { object-position: 50% 12%; }
.gfig:hover .gfig__frame img { filter: grayscale(0) contrast(1); }
.gfig figcaption {
  margin-top: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
}

/* ============================ CONTATTI ============================ */
.contact {
  position: relative;
  background: var(--ink);
  padding: clamp(4rem, 9vw, 8rem) var(--pad) 0;
  overflow: hidden;
}
.contact__title {
  font-family: var(--sans);
  font-size: clamp(3.4rem, 10vw, 9rem);
  line-height: 0.98;
  text-transform: uppercase;
  font-weight: 400;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.crow {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.crow__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.5;
}
.crow__value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  font-weight: 500;
  position: relative;
}
.crow__value::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--paper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.crow__value:hover::after { transform: scaleX(1); transform-origin: left; }
.crow__ext { font-family: var(--body); font-size: 0.8em; }

.contact__hours { padding-top: 0.4rem; }
.contact__hours-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
}
.contact__hours dl div {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}
.contact__hours dt { letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; font-weight: 600; opacity: 0.6; align-self: center; }
.contact__hours .btn--big { margin-top: 2.2rem; display: block; text-align: center; }
.contact__hours-note {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  opacity: 0.5;
  text-align: center;
}

.contact__giant {
  margin-top: clamp(3rem, 8vw, 7rem);
  line-height: 0.78;
  text-align: center;
  pointer-events: none;
}
.contact__giant span {
  font-family: var(--sans);
  font-size: clamp(10rem, 32vw, 34rem);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(241, 239, 233, 0.22);
  display: inline-block;
  transform: translateY(0.14em);
  will-change: transform;
}

/* ============================ FOOTER ============================ */
.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  padding: 1.4rem var(--pad);
  border-top: 1px solid var(--line-dark);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  background: var(--ink);
}

/* ============================ REVEAL ============================ */
[data-reveal] .rl { display: block; overflow: hidden; }
[data-reveal] .rw { display: inline-block; will-change: transform; }

/* ============================ MOBILE ============================ */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav .btn--book { display: none; }

  .anime { flex-direction: column; }
  /* banner a mezza altezza, seguiti dal proprio listino */
  .panel { min-height: 45svh; }
  .anime .services__col { flex: none; }

  .services { flex-direction: column; }

  .gallery__grid { display: flex; flex-direction: column; gap: 2.5rem; }
  .gfig { margin-top: 0 !important; }

  .contact__grid { grid-template-columns: 1fr; }
}

/* ======================= REDUCED MOTION ======================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .cursor { display: none; }
  .hero__cue i { animation: none; }
  .marquee__track { transform: none !important; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
