/* ==========================================================================
   CVLT BARBER LAB — sistema visivo
   Fondamento: Brandguidelines.pdf
   Verde #004C29 · Nero #111111 · Bianco osso #F2F0EF
   Type: Cinzel (capitali romane, sta per Aviano) · Cormorant Garamond
         (lettura) · Josefin Sans (utilità, sta per Blair)
   Idea: la barberia come rito. Le uniche maiuscole del sito sono quelle
   monumentali. Un solo elemento "brilla": la luce verde della copertina.
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-2: #1a1a1a;
  --ink-3: #0c0c0c;

  --bone: #f2f0ef;
  --bone-2: #e8e5e2;
  --stone: #dedad3;

  --green: #004c29;
  --green-deep: #033a20;
  --green-lit: #0a6a3c;

  --t-dim: rgba(242, 240, 239, 0.58);
  --t-faint: rgba(242, 240, 239, 0.34);
  --hair: rgba(242, 240, 239, 0.16);
  --hair-ink: rgba(17, 17, 17, 0.16);
  --t-dim-ink: rgba(17, 17, 17, 0.6);

  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-util: "Josefin Sans", "Century Gothic", system-ui, sans-serif;

  --shell: 1180px;
  --shell-wide: 1440px;
  --pad: clamp(1.5rem, 6vw, 5rem);

  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --slow: 0.9s var(--ease);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain — tattilità, tenuissima */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
}
p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--green-lit);
  color: var(--bone);
}

:focus-visible {
  outline: 2px solid var(--green-lit);
  outline-offset: 4px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* --------------------------------------------------------- layout primitives */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.shell--wide {
  max-width: var(--shell-wide);
}

.section {
  padding-block: clamp(4.5rem, 11vw, 9.5rem);
  position: relative;
}
.section--bone {
  background: var(--bone);
  color: var(--ink);
}
.section--bone .lede {
  color: var(--t-dim-ink);
}
.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.measure {
  max-width: 34ch;
}
.measure-wide {
  max-width: 60ch;
}

/* eyebrow / kicker — usato con parsimonia, in corsivo non in maiuscoletto */
.kicker {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--green-lit);
  margin: 0 0 1.1rem;
}
.section--bone .kicker {
  color: var(--green);
}

.title {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
}
.title--xl {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem);
}

/* --------------------------------------------------------- link underline */

.link {
  position: relative;
  display: inline-block;
  font-family: var(--font-util);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  padding-bottom: 0.2em;
  color: inherit;
}
.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.link:hover::after,
.link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --------------------------------------------------------- buttons */

.btn {
  --btn-fg: var(--bone);
  --btn-bg: transparent;
  --btn-line: var(--hair);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-util);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  padding: 1.05rem 2.1rem;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-line);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    translate 0.35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill, var(--bone));
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}

.btn--solid {
  --btn-fg: var(--ink);
  --btn-bg: var(--bone);
  --btn-line: var(--bone);
  --btn-fill: var(--green);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  --btn-fg: var(--bone);
  border-color: var(--green);
}

.btn--ghost {
  --btn-line: var(--t-faint);
  --btn-fill: var(--bone);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  --btn-fg: var(--ink);
  border-color: var(--bone);
}

.btn--onlight {
  --btn-fg: var(--ink);
  --btn-line: var(--hair-ink);
  --btn-fill: var(--green);
}
.btn--onlight:hover,
.btn--onlight:focus-visible {
  --btn-fg: var(--bone);
  border-color: var(--green);
}

.btn--ongreen {
  --btn-fg: var(--bone);
  --btn-line: rgba(242, 240, 239, 0.4);
  --btn-fill: var(--bone);
}
.btn--ongreen:hover,
.btn--ongreen:focus-visible {
  --btn-fg: var(--green);
  border-color: var(--bone);
}

.btn--sm {
  padding: 0.7rem 1.4rem;
  font-size: 0.85rem;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15, 15, 15, 0.72);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--hair);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: clamp(66px, 9vw, 84px);
}

.brand {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}
.brand img {
  height: clamp(24px, 1.1rem + 1vw, 32px);
  width: auto;
  transition: opacity 0.35s var(--ease);
}
.brand:hover img {
  opacity: 0.7;
}

.nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-family: var(--font-util);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--t-dim);
  position: relative;
  padding-bottom: 0.35em;
  transition: color 0.35s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--green-lit);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover {
  color: var(--bone);
}
.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav a[aria-current="page"] {
  color: var(--bone);
}
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-book {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--hair);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 1px;
  margin-inline: auto;
  background: var(--bone);
  transition: transform 0.4s var(--ease);
}
.nav-toggle span::before {
  transform: translateY(-5px);
}
.nav-toggle span::after {
  transform: translateY(4px);
}
.nav-open .nav-toggle span {
  background: transparent;
}
.nav-open .nav-toggle span::before {
  transform: rotate(45deg);
}
.nav-open .nav-toggle span::after {
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  /* la nav-overlay vive dentro <header>: logo e toggle devono restare sopra */
  .brand,
  .nav-toggle {
    position: relative;
    z-index: 97;
  }
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .nav-toggle span,
  .nav-toggle span::before,
  .nav-toggle span::after {
    transition:
      transform 0.45s var(--ease),
      background 0.2s var(--ease);
  }

  /* overlay a tutto schermo, rivelato con un cerchio dall'angolo del pulsante */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 95;
    margin: 0;
    background: var(--ink);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(6rem, 16vh, 9rem) var(--pad) clamp(8rem, 22vh, 11rem);
    visibility: hidden;
    clip-path: circle(0% at calc(100% - 3rem) 2.3rem);
    transition:
      clip-path 0.62s cubic-bezier(0.62, 0.03, 0.2, 1),
      visibility 0.62s;
  }
  .nav::after {
    content: "";
    position: absolute;
    right: -18%;
    bottom: -14%;
    width: 68vw;
    max-width: 460px;
    aspect-ratio: 1;
    background: url("assets/logo-mark-white.svg") center / contain no-repeat;
    opacity: 0;
    transform: scale(0.82) rotate(-10deg);
    transition:
      opacity 0.8s var(--ease) 0.2s,
      transform 0.8s var(--ease) 0.2s;
    pointer-events: none;
  }
  .nav ul {
    position: relative;
    flex-direction: column;
    gap: clamp(1.4rem, 4vh, 2.5rem);
  }
  .nav li {
    opacity: 0;
    transform: translate(-18px, 24px);
    transition:
      opacity 0.5s var(--ease),
      transform 0.62s cubic-bezier(0.62, 0.03, 0.2, 1);
  }
  .nav a {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 8.5vw, 2.6rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bone);
  }
  .nav a::after {
    height: 2px;
    background: var(--green-lit);
  }

  .nav-book {
    position: fixed;
    left: var(--pad);
    right: var(--pad);
    bottom: clamp(2rem, 7vh, 3.5rem);
    z-index: 96;
    margin: 0;
    padding-block: 1.15rem;
    visibility: hidden;
    transform: translateY(180%);
    transition:
      transform 0.55s cubic-bezier(0.62, 0.03, 0.2, 1),
      visibility 0.55s;
  }

  .nav-open .nav {
    visibility: visible;
    clip-path: circle(155% at calc(100% - 3rem) 2.3rem);
  }
  .nav-open .nav::after {
    opacity: 0.055;
    transform: none;
  }
  .nav-open .nav-book {
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.3s;
  }
  .nav-open .nav li {
    opacity: 1;
    transform: none;
  }
  .nav-open .nav li:nth-child(1) {
    transition-delay: 0.16s;
  }
  .nav-open .nav li:nth-child(2) {
    transition-delay: 0.23s;
  }
  .nav-open .nav li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .nav-open .nav li:nth-child(4) {
    transition-delay: 0.37s;
  }
  .nav-open .site-header {
    background: var(--ink);
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* menu mobile su schermi molto bassi (landscape) */
@media (max-width: 860px) and (max-height: 560px) {
  .nav {
    justify-content: flex-start;
    padding-block: clamp(4.5rem, 30vh, 6rem) 5rem;
  }
  .nav ul {
    gap: 0.9rem;
  }
  .nav a {
    font-size: 1.45rem;
  }
  .nav-book {
    bottom: 1.25rem;
  }
}

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

.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(7rem, 14vh, 10rem) clamp(3.5rem, 9vh, 6.5rem);
  overflow: hidden;
  text-align: center;
}
.hero + .section {
  padding-top: clamp(3rem, 6vw, 5.5rem);
}

.hero__light {
  position: absolute;
  inset: -18% -20% -28%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      50% 55% at 30% 30%,
      rgba(10, 106, 60, 0.55),
      transparent 68%
    ),
    radial-gradient(46% 56% at 72% 54%, rgba(0, 76, 41, 0.6), transparent 70%),
    radial-gradient(
      62% 46% at 50% 92%,
      rgba(10, 106, 60, 0.2),
      transparent 74%
    ),
    radial-gradient(
      34% 30% at 52% 14%,
      rgba(10, 106, 60, 0.3),
      transparent 70%
    );
  filter: blur(72px) saturate(1.1);
  animation: aurora 24s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 3%, 0) scale(1.1);
  }
  100% {
    transform: translate3d(4%, -1%, 0) scale(1.04);
  }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    130% 90% at 50% 42%,
    transparent 52%,
    rgba(9, 9, 9, 0.42) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__logo {
  width: clamp(232px, 44vw, 560px);
  margin: 0 auto;
  height: auto;
  filter: drop-shadow(0 0 46px rgba(10, 106, 60, 0.28));
}
.hero__tagline {
  position: relative;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  padding-bottom: clamp(1rem, 2.4vw, 1.5rem);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.9rem, 0.6rem + 1.15vw, 1.55rem);
  letter-spacing: 0.24em;
  color: var(--bone);
}
.hero__tagline::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(56px, 12vw, 120px);
  height: 1px;
  background: var(--green-lit);
  translate: -50% 0;
  transform: scaleX(0);
}
.js .hero__tagline::after {
  animation: rule-in 0.9s var(--ease) 1.2s forwards;
}
@keyframes rule-in {
  to {
    transform: scaleX(1);
  }
}

.hero__sub {
  margin: clamp(1.25rem, 3vw, 1.9rem) auto 0;
  max-width: 40ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--t-dim);
  font-style: italic;
  text-wrap: balance;
}

.hero__actions {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  display: none;
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 4vh, 2.5rem);
  z-index: 2;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-util);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--t-faint);
}
.hero__scroll i {
  position: relative;
  display: block;
  width: 1px;
  height: 52px;
  background: var(--t-faint);
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 16px;
  background: var(--bone);
  animation: scrollcue 2.4s var(--ease) infinite;
}
@keyframes scrollcue {
  0% {
    transform: translateY(-16px);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(52px);
    opacity: 0;
  }
}

/* page-load sequence — l'unico momento orchestrato; solo con JS attivo,
   senza JS tutto resta visibile da subito */
.js .hero__logo,
.js .hero__tagline,
.js .hero__sub,
.js .hero__actions,
.js .hero__scroll {
  opacity: 0;
}
.js .hero__logo {
  animation: hero-logo 1.1s var(--ease) 0.15s forwards;
}
.js .hero__tagline {
  animation: fade 1s var(--ease) 0.8s forwards;
}
.js .hero__sub {
  animation: fade 1s var(--ease) 1s forwards;
}
.js .hero__actions {
  animation: fade 1s var(--ease) 1.2s forwards;
}
.js .hero__scroll {
  animation: fade 1.2s var(--ease) 1.6s forwards;
}
@keyframes hero-logo {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------- reveal (titoli) */

.reveal {
  transition:
    opacity var(--slow),
    transform var(--slow),
    filter var(--slow);
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(7px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* --------------------------------------------------------- manifesto */

.manifesto {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 1.1rem + 2.4vw, 2.9rem);
  line-height: 1.32;
  font-weight: 400;
  max-width: 22ch;
  text-transform: none;
  letter-spacing: 0;
  text-wrap: balance;
}
.manifesto em {
  font-style: italic;
  color: var(--green-lit);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.split--center {
  align-items: center;
}
@media (max-width: 820px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------- listino servizi */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.listing {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.section--bone .listing {
  border-top-color: var(--hair-ink);
}

.listing li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 0;
  border-bottom: 1px solid var(--hair);
}
.section--bone .listing li {
  border-bottom-color: var(--hair-ink);
}
.listing li::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--green-lit);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.listing li:hover::before {
  transform: scaleX(1);
}

.listing__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.85rem);
  text-transform: none;
  letter-spacing: 0;
}

.listing__desc {
  grid-column: 1 / -1;
  max-width: 58ch;
  color: var(--t-dim);
  font-size: 1.05rem;
  margin: 0.35rem 0 0;
}
.section--bone .listing__desc {
  color: var(--t-dim-ink);
}

.listing__price {
  font-family: var(--font-util);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  color: var(--green-lit);
  white-space: nowrap;
}
.section--bone .listing__price {
  color: var(--green);
}

.listing__meta {
  grid-column: 1 / -1;
  font-family: var(--font-util);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--t-faint);
  margin-top: 0.6rem;
}
.section--bone .listing__meta {
  color: var(--t-dim-ink);
}

/* --------------------------------------------------------- rito (verde) */

.sanctum {
  position: relative;
  background: var(--green);
  color: var(--bone);
  overflow: hidden;
  padding-block: clamp(5rem, 13vw, 10rem);
}
.sanctum__light {
  position: absolute;
  inset: -30% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      40% 50% at 25% 30%,
      rgba(10, 106, 60, 0.55),
      transparent 70%
    ),
    radial-gradient(44% 52% at 78% 72%, rgba(3, 58, 32, 0.7), transparent 72%);
  filter: blur(70px);
}
.sanctum .shell {
  position: relative;
  z-index: 1;
}
.sanctum__mark {
  position: absolute;
  right: -5%;
  bottom: -10%;
  width: clamp(200px, 38vw, 440px);
  opacity: 0.07;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.sanctum__head {
  max-width: 22ch;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.sanctum__head .kicker {
  color: rgba(242, 240, 239, 0.7);
}

.ritual {
  list-style: none;
  margin: 0;
  padding: 0 0 0 3.75rem;
  position: relative;
  counter-reset: step;
}
.ritual::before {
  content: "";
  position: absolute;
  left: 2.7rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 1px;
  background: rgba(242, 240, 239, 0.32);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.3s var(--ease);
}
.ritual.is-in::before {
  transform: scaleY(1);
}

.ritual li {
  position: relative;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) 0;
  max-width: 52ch;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.js .ritual li {
  opacity: 0;
  transform: translateX(18px);
}
.js .ritual.is-in li {
  opacity: 1;
  transform: none;
}
.ritual.is-in li:nth-child(1) {
  transition-delay: 0.35s;
}
.ritual.is-in li:nth-child(2) {
  transition-delay: 0.48s;
}
.ritual.is-in li:nth-child(3) {
  transition-delay: 0.61s;
}
.ritual.is-in li:nth-child(4) {
  transition-delay: 0.74s;
}
.ritual.is-in li:nth-child(5) {
  transition-delay: 0.87s;
}
.ritual.is-in li:nth-child(6) {
  transition-delay: 1s;
}

.ritual li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: -3.75rem;
  width: 2rem;
  top: clamp(1.35rem, 2.7vw, 1.9rem);
  text-align: right;
  font-family: var(--font-util);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(242, 240, 239, 0.7);
}

.ritual h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.7rem);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.3rem;
}
.ritual p {
  color: rgba(242, 240, 239, 0.72);
  font-size: 1.05rem;
}

/* --------------------------------------------------------- galleria */

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: start;
}
.frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--hair);
  aspect-ratio: 4 / 5;
}
.section--bone .frame {
  background: linear-gradient(150deg, var(--bone-2), var(--bone));
  border-color: var(--hair-ink);
}
.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/logo-mark-white.svg") center / 34% no-repeat;
  opacity: 0.09;
  transition: transform 0.7s var(--ease);
}
.section--bone .frame::after {
  background-image: url("assets/logo-mark-black.svg");
  opacity: 0.07;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.9s var(--ease),
    filter 0.9s var(--ease);
}
.frame:hover img {
  transform: scale(1.04);
}
.frame:hover::after {
  transform: scale(1.08) rotate(2deg);
}
.frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-util);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--bone);
  background: linear-gradient(transparent, rgba(9, 9, 9, 0.72));
  transform: translateY(0.4rem);
  opacity: 0;
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.frame:hover figcaption,
.frame:focus-within figcaption {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .frame figcaption {
    opacity: 1;
    transform: none;
  }
}

.frame--tall {
  grid-column: span 2;
  aspect-ratio: 3 / 5;
}
.frame--wide {
  grid-column: span 4;
  aspect-ratio: 16 / 10;
}
.frame--half {
  grid-column: span 3;
  aspect-ratio: 16 / 11;
}
.frame--third {
  grid-column: span 2;
  aspect-ratio: 4 / 5;
}

@media (max-width: 820px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .frame,
  .frame--tall,
  .frame--wide,
  .frame--half,
  .frame--third {
    grid-column: span 1;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }
}

/* --------------------------------------------------------- team */

.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 780px) {
  .team {
    grid-template-columns: 1fr;
  }
}
.member__portrait {
  aspect-ratio: 3 / 4;
  background: linear-gradient(150deg, var(--ink-2), var(--ink-3));
  border: 1px solid var(--hair);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.section--bone .member__portrait {
  background: linear-gradient(150deg, var(--bone-2), var(--bone));
  border-color: var(--hair-ink);
}
.member__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member__portrait span {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--t-faint);
}
.section--bone .member__portrait span {
  color: rgba(17, 17, 17, 0.26);
}
.member h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.4rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.15rem;
}
.member__role {
  font-family: var(--font-util);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--green-lit);
  margin-bottom: 0.75rem;
}
.section--bone .member__role {
  color: var(--green);
}
.member p {
  color: var(--t-dim);
  font-size: 1.02rem;
}
.section--bone .member p {
  color: var(--t-dim-ink);
}

/* --------------------------------------------------------- prose / valori */

.prose,
.prose p {
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  color: var(--t-dim);
  max-width: 46ch;
}
.section--bone .prose,
.section--bone .prose p {
  color: var(--t-dim-ink);
}

.creed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
}
.creed li {
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 0;
  border-bottom: 1px solid var(--hair);
}
.section--bone .creed,
.section--bone .creed li {
  border-color: var(--hair-ink);
}
.creed h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.75rem);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}
.creed p {
  color: var(--t-dim);
  max-width: 56ch;
  font-size: 1.05rem;
}
.section--bone .creed p {
  color: var(--t-dim-ink);
}

/* --------------------------------------------------------- page head */

.page-head {
  padding-block: clamp(8rem, 14vw, 11rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.page-head__light {
  position: absolute;
  inset: -40% -20% auto;
  height: 60vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    40% 60% at 20% 0%,
    rgba(10, 106, 60, 0.32),
    transparent 70%
  );
  filter: blur(60px);
}
.page-head .shell {
  position: relative;
  z-index: 1;
}
.page-head h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.5vw, 5.5rem);
  letter-spacing: 0.05em;
}
.page-head p {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
  font-style: italic;
  color: var(--t-dim);
}

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

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4.5rem, 11vw, 8rem);
  background: var(--ink-3);
}
.cta__light {
  position: absolute;
  inset: -50% -20%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    36% 60% at 50% 50%,
    rgba(10, 106, 60, 0.34),
    transparent 70%
  );
  filter: blur(70px);
  animation: aurora 26s ease-in-out infinite alternate;
}
.cta .shell {
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: clamp(2rem, 1.3rem + 3.6vw, 3.8rem);
  margin-bottom: 2rem;
}
.cta__note {
  margin-top: 1.75rem;
  font-family: var(--font-util);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--t-faint);
}

/* --------------------------------------------------------- status pill */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-util);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--t-dim);
}
.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-lit);
  position: relative;
  flex-shrink: 0;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--green-lit);
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  80%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.status[data-state="closed"] .status__dot {
  background: var(--t-faint);
}
.status[data-state="closed"] .status__dot::after {
  display: none;
}

/* --------------------------------------------------------- contatti */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
}
@media (max-width: 900px) {
  .hero__scroll {
    display: flex;
  }
  .contact {
    grid-template-columns: 1fr;
  }
}

.info + .info {
  margin-top: 2.25rem;
}
.info h2 {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  margin-bottom: 0.7rem;
}
.info p {
  font-size: 1.08rem;
  margin: 0.1rem 0;
  color: var(--t-dim);
}
.info a {
  color: var(--bone);
  border-bottom: 1px solid var(--t-faint);
  padding-bottom: 1px;
  transition: border-color 0.35s var(--ease);
}
.info a:hover {
  border-color: var(--green-lit);
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-util);
  font-size: 0.95rem;
}
.hours td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--hair);
  color: var(--t-dim);
}
.hours tr:last-child td {
  border-bottom: 0;
}
.hours td:last-child {
  text-align: right;
}
.hours tr.is-today td {
  color: var(--green-lit);
}

.map {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-top: 1.25rem;
  border: 1px solid var(--hair);
  filter: grayscale(1) invert(0.92) contrast(0.9) brightness(0.95);
}

.booking {
  border: 1px solid var(--hair-ink);
  background: var(--bone);
  color: var(--ink);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  align-self: start;
}
.booking h2 {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

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

.site-footer {
  position: relative;
  background: var(--ink-3);
  overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7rem) 2rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: clamp(260px, 40vw, 520px);
  aspect-ratio: 1;
  background: url("assets/logo-mark-white.svg") center / contain no-repeat;
  opacity: 0.025;
  pointer-events: none;
}
.site-footer .shell {
  position: relative;
  z-index: 1;
}
.footer-brand {
  width: clamp(200px, 32vw, 400px);
  height: auto;
  margin-bottom: clamp(3rem, 7vw, 5rem);
  opacity: 0.92;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}
.footer-grid h2 {
  font-family: var(--font-util);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: none;
  color: var(--t-faint);
  margin-bottom: 1rem;
}
.footer-grid p,
.footer-grid a {
  color: var(--t-dim);
  font-size: 1.05rem;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer-grid a:hover {
  color: var(--bone);
}
.footer-bottom {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-util);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--t-faint);
}

/* --------------------------------------------------------- utilities */

.center {
  text-align: center;
}
.stack-sm > * + * {
  margin-top: 1rem;
}
.mt-lg {
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 860px) {
  .section-head {
    margin-bottom: 2.25rem;
  }
}

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

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero__actions {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .cta .btn {
    width: 100%;
    max-width: 340px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
  }
  .site-footer::before {
    top: -12%;
    opacity: 0.03;
  }
}

@media (max-width: 460px) {
  .ritual {
    padding-left: 2.85rem;
  }
  .ritual::before {
    left: 1.95rem;
  }
  .ritual li::before {
    left: -2.85rem;
    width: 1.5rem;
  }
  .booking {
    padding: 1.1rem;
  }
}

/* schermi bassi / landscape: la hero non occupa più tutto il viewport */
@media (max-height: 620px) and (min-width: 500px) {
  .hero {
    min-height: auto;
    padding-block: 7rem 3.5rem;
  }
  .hero__scroll {
    display: none;
  }
}
