/* The barber's price list that composes itself on scroll. Colours in :root (the Playground palette). */
:root {
  --fondo: #f5f1ea;
  --carta: #fffdf9;
  --inchiostro: #1c1915;
  --spento: #c3bbaf;
  --secondario: #7a7268;
  --bordo: rgba(28, 25, 21, 0.09);
  --punti: rgba(28, 25, 21, 0.28);
  --accento: #8c2f22;
  --accento-tenue: rgba(140, 47, 34, 0.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--fondo); }
body {
  background: var(--fondo);
  color: var(--inchiostro);
  font-family: 'Mona Sans Variable', 'Mona Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.corsa { position: relative; height: 300vh; }
.palco {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.9vh, 18px);
  padding: clamp(10px, 3vh, 40px) clamp(12px, 5vw, 80px);
  overflow: hidden;
  text-align: center;
}

.occhiello {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--bordo);
  border-radius: 999px;
  background: var(--carta);
  color: var(--secondario);
  font-size: clamp(10px, min(1.2vw, 2vh), 13px);
  font-weight: 520;
  box-shadow: 0 1px 2px rgba(28, 25, 21, 0.05);
}
.occhiello svg { width: 1.15em; height: 1.15em; fill: none; stroke: var(--accento); stroke-width: 1.3; stroke-linecap: round; }

.titolo {
  font-size: clamp(20px, min(4.4vw, 5.6vh), 54px);
  line-height: 1.02;
  font-weight: 640;
  font-stretch: 88%;
  letter-spacing: -0.025em;
}
.titolo__due { display: inline-block; color: var(--spento); font-variation-settings: 'wdth' var(--w, 78), 'wght' var(--g, 520); }

/* the price list card: a figure for GSAP, its look in CSS */
.listino {
  width: min(580px, 100%, 74vh);
  background: var(--carta);
  border: 1px solid var(--bordo);
  border-radius: clamp(12px, 2vh, 18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 18px 40px -22px rgba(28, 25, 21, 0.35), 0 2px 6px rgba(28, 25, 21, 0.05);
  padding: clamp(10px, 2vh, 20px) clamp(12px, 2.6vh, 24px) clamp(10px, 2vh, 18px);
  text-align: left;
}
.listino__testa {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: clamp(6px, 1.3vh, 12px);
  border-bottom: 1px solid var(--bordo);
  font-size: clamp(9.5px, min(1.2vw, 1.9vh), 13.5px);
  color: var(--secondario);
}
.listino__nome { color: var(--inchiostro); font-weight: 620; letter-spacing: 0.01em; }
.orario { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.orario__ora { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }

.righe { list-style: none; }
.riga {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: baseline;
  column-gap: clamp(6px, 1vh, 10px);
  padding: clamp(5px, 1.25vh, 11px) 0;
  border-bottom: 1px solid rgba(28, 25, 21, 0.05);
}
.riga:last-child { border-bottom: 0; }
.riga::before {
  /* the soft light under the row being composed (opacity set by GSAP through --luce) */
  content: '';
  position: absolute;
  inset: 1px -8px;
  border-radius: 8px;
  background: var(--accento-tenue);
  opacity: var(--luce, 0);
  pointer-events: none;
}
.riga__nome {
  display: inline-block;
  overflow: hidden;
  /* room for the descenders, the mask is a touch taller than the line */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  font-size: clamp(13px, min(2vw, 2.95vh), 23px);
  line-height: 1.15;
  white-space: nowrap;
}
.riga__in { display: inline-block; font-variation-settings: 'wdth' var(--w, 92), 'wght' var(--g, 380); letter-spacing: -0.01em; }
.riga__durata {
  font-size: clamp(9px, min(1.1vw, 1.7vh), 12px);
  color: var(--secondario);
  white-space: nowrap;
}
.riga__punti {
  align-self: end;
  height: 2px;
  margin-bottom: 0.42em;
  background-image: radial-gradient(circle, var(--punti) 0.9px, transparent 1.2px);
  background-size: 6px 2px;
  background-repeat: repeat-x;
  transform-origin: 0 50%;
}
.riga__prezzo {
  font-size: clamp(13px, min(2vw, 2.95vh), 23px);
  font-weight: 620;
  white-space: nowrap;
  min-width: 2.4em;
  text-align: right;
}
.valuta { color: var(--secondario); font-weight: 480; margin-right: 1px; }

.listino__piede {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: clamp(8px, 1.6vh, 14px);
  border-top: 1px solid var(--bordo);
}
.prenota {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(7px, 1.3vh, 11px) clamp(12px, 1.8vh, 18px);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: clamp(11px, min(1.35vw, 2vh), 14px);
  font-weight: 600;
  white-space: nowrap;
  isolation: isolate;
}
.prenota__fondo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--inchiostro);
  box-shadow: 0 8px 18px -10px rgba(28, 25, 21, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  z-index: -1;
}
.prenota__testo { display: inline-block; font-variation-settings: 'wdth' var(--w, 100), 'wght' 600; }
.prenota svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) {
  .prenota:hover .prenota__fondo { background: var(--accento); }
  .riga:hover .riga__in { color: var(--accento); }
}
.passanti {
  font-size: clamp(9px, min(1.1vw, 1.7vh), 12px);
  color: var(--secondario);
  text-align: right;
}

.piede {
  padding: 28px 16px 40px;
  text-align: center;
  font-size: 12px;
  color: var(--secondario);
}

@media (max-width: 480px) {
  .passanti { display: none; }
  .listino__piede { justify-content: center; }
}
