/* Jocelyne Nails & Beauty — un solo motivo: l'unghia (arco) e le righe rosa della parete del salone. */
:root {
  --ground: #FCEEF0;
  --tone: #F7D9DE;
  --stripe-a: #F2B6BF;
  --stripe-b: #EA97A6;
  --ink: #2B0F1B;
  --muted: #6B4350;
  --accent: #C2185B;
  --deep: #3B0D22;
  --pale: #FCEEF0;
  --pale-muted: #E9BFC9;

  --display: "Bodoni Moda", "Didot", "Bodoni MT", "Playfair Display", Georgia, serif;
  --text: "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.4vw, 4.25rem);

  --m: clamp(16px, 4vw, 56px);
  --gap: clamp(96px, 12vw, 176px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --arch: 999px 999px 10px 10px;
  --stripes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='8'%3E%3Crect width='80' height='8' fill='%23F2B6BF'/%3E%3Crect x='80' width='80' height='8' fill='%23EA97A6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, fieldset, figure { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hero :focus-visible, .about :focus-visible, .foot :focus-visible, .stub :focus-visible { outline-color: var(--pale); }
::selection { background: var(--accent); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--pale); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font-weight: 600; font-size: var(--step-body); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background-color .18s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #A5124C; }
.btn-ink { background: var(--ink); color: var(--pale); }
.btn-pale { background: var(--pale); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.btn-wide { width: 100%; min-height: 58px; }

.arch { border-radius: var(--arch); overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.demo-bar { background: var(--ink); color: var(--pale); text-align: center; padding: 8px var(--m); font-size: var(--step-small); font-weight: 500; }
.notice { background: var(--accent); color: #fff; text-align: center; padding: 12px var(--m); font-weight: 600; }

/* ───── Hero: le cartelle con le linguette a forma di unghia ───── */
.hero { position: relative; height: 100svh; min-height: 640px; max-height: 1000px; background: var(--deep); color: var(--pale); overflow: hidden; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--m) 0; }
.top ul { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.top a:not(.btn) { text-decoration: none; font-weight: 500; padding: 12px 0; display: inline-block; }
.top a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
.top .btn { min-height: 44px; padding: 0 22px; }
.hero-copy { text-align: center; padding: clamp(20px, 5svh, 56px) var(--m) 0; }
h1 { font-size: clamp(3.4rem, 10.4vw, 10rem); white-space: nowrap; }
.hero-lead { max-width: 50ch; margin: clamp(16px, 2.6svh, 36px) auto 0; font-size: var(--step-lead); line-height: 1.4; color: var(--pale); }

.stack { position: absolute; left: 7vw; right: 7vw; top: 52%; bottom: 0; --off: clamp(44px, 6.4svh, 60px); }
.folder { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px 10px 0 0; color: var(--ink); text-decoration: none; transition: transform .35s var(--ease); }
.folder .tab { position: absolute; bottom: calc(100% - 1px); height: 44px; padding: 0 26px; display: flex; align-items: center; background: inherit; border-radius: 999px 999px 0 0; font-weight: 600; font-size: 1.0625rem; white-space: nowrap; }
a.folder:hover, a.folder:focus-visible { transform: translateY(-10px); }
.f1 { top: 0; background: var(--stripe-b); } .f1 .tab { left: 4%; }
.f2 { top: var(--off); background: var(--stripe-a); } .f2 .tab { left: 23%; }
.f3 { top: calc(var(--off) * 2); background: #E27F93; } .f3 .tab { left: 42%; }
.f4 { top: calc(var(--off) * 3); background: var(--tone); } .f4 .tab { left: 61%; }
.f5 { top: calc(var(--off) * 4); background: var(--ground); } .f5 .tab { left: 80%; }
.front { display: flex; justify-content: space-between; gap: 32px; padding: 28px 32px 0; height: 100%; overflow: hidden; }
.front-cta p { margin-top: 12px; font-size: var(--step-small); color: var(--muted); font-weight: 500; }
.front-nails { display: flex; gap: 14px; align-items: flex-start; }
.front-nails li { width: clamp(96px, 10vw, 150px); aspect-ratio: 3 / 4.4; border-radius: var(--arch); overflow: hidden; }
.front-nails img { width: 100%; height: 100%; object-fit: cover; }

/* ───── I più richiesti ───── */
main > section { margin-top: var(--gap); }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); padding: 0 var(--m); align-items: stretch; margin-top: clamp(64px, 8vw, 120px); }
.plate-frame { position: relative; aspect-ratio: 1; border-radius: var(--arch); overflow: hidden; background: var(--tone); }
.plate-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .28s linear, transform .9s var(--ease); }
.plate-frame img.on { opacity: 1; transform: none; }
.show-text { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 8px 0; }
.show-tabs { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 28px; }
.show-tabs button { background: none; border: 0; padding: 10px 0; font-size: var(--step-lead); font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.show-tabs button[aria-selected="true"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--accent); }
.show-tabs button:hover { color: var(--ink); }
.show-body h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); }
.show-meta { margin-top: 10px; font-weight: 700; color: var(--accent); font-size: var(--step-lead); }
.show-body p:last-child { margin-top: 28px; max-width: 36ch; }
.show-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cell { display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 600; text-align: center; transition: transform .18s var(--ease); }
.cell:hover { transform: translateY(-2px); }
.cell-ink { background: var(--ink); color: var(--pale); }
.cell-tone { background: var(--tone); }

/* ───── Listino ───── */
.listino { padding: 0 var(--m); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-head p { max-width: 38ch; color: var(--muted); }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; margin: clamp(48px, 6vw, 88px) 0 36px; }
.cat-head h3 { font-family: var(--display); font-size: clamp(1.75rem, 1rem + 2.4vw, 3rem); letter-spacing: -0.02em; }
.cat-head span { color: var(--muted); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 64px; }
.item { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; align-items: start; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px; }
.item .th { width: 56px; height: 72px; border-radius: var(--arch); overflow: hidden; background: var(--tone); transition: transform .3s var(--ease); }
.item .th img { width: 100%; height: 100%; object-fit: cover; }
.item .th.blank { background: var(--stripes); }
.item:hover .th { transform: translateY(-4px) rotate(-3deg); }
.item .row { display: flex; justify-content: space-between; gap: 16px; font-weight: 700; }
.item .row span:last-child { white-space: nowrap; }
.item .desc { display: block; color: var(--muted); font-size: var(--step-small); max-width: 40ch; margin-top: 2px; }
.item .time { display: block; margin-top: 2px; color: var(--accent); font-size: var(--step-small); font-weight: 600; }
.item:hover .row span:first-child { text-decoration: underline; text-underline-offset: 5px; }

/* ───── Il salone ───── */
.about { margin-left: clamp(10px, 1.4vw, 20px); margin-right: clamp(10px, 1.4vw, 20px); background: var(--deep); color: var(--pale); border-radius: 10px; overflow: hidden; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 6vw, 96px); padding: clamp(28px, 4vw, 56px) clamp(22px, 4vw, 56px) 0; }
.about h2 { max-width: 9ch; }
.about-photo { width: min(38vw, 520px); aspect-ratio: 3 / 4; margin-top: clamp(32px, 5vw, 72px); margin-bottom: -8%; }
.about-photo img { object-position: 50% 12%; }
.about-right { display: flex; flex-direction: column; gap: 44px; padding-bottom: clamp(32px, 4vw, 56px); align-items: flex-start; justify-content: center; max-width: 420px; }
.about-right h3 { margin-bottom: 10px; }
.about-right p { color: var(--pale); }

/* ───── I lavori: una cornice, le righe della parete ───── */
.gallery { background: var(--stripes); padding: clamp(56px, 8vw, 120px) var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.gallery-text { background: var(--ground); padding: clamp(24px, 3.4vw, 48px); border-radius: 10px; justify-self: start; max-width: 520px; }
.gallery-text p { margin-top: 20px; color: var(--muted); }
.gallery-text .cap { color: var(--ink); font-weight: 700; font-size: var(--step-lead); min-height: 2.4em; }
.frame { position: relative; width: min(40vw, 460px); aspect-ratio: 4 / 5.4; border: 0; padding: 0; background: var(--tone); cursor: pointer; justify-self: center; }
.frame img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s linear; }
.frame img.on { opacity: 1; }

/* ───── Prenota: il biglietto ───── */
.book { padding: 0 var(--m); }
.ticket { position: relative; display: grid; grid-template-columns: 0.8fr 1.2fr; background: var(--tone); border-radius: 10px; }
.ticket::before, .ticket::after { content: ""; position: absolute; left: calc(40% - 16px); width: 32px; height: 32px; border-radius: 50%; background: var(--ground); z-index: 2; }
.ticket::before { top: -16px; } .ticket::after { bottom: -16px; }
.stub { background: var(--deep); color: var(--pale); border-radius: 10px 0 0 10px; }
.stub-in { height: 100%; padding: clamp(24px, 3.6vw, 52px); display: flex; flex-direction: column; gap: 32px; }
.stub-pic { flex: 1; width: 100%; min-height: 280px; }
.stub h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.recap { display: grid; gap: 18px; }
.recap dt { font-size: var(--step-small); color: var(--pale-muted); }
.recap dd { font-weight: 700; font-size: var(--step-lead); line-height: 1.2; }
.stub-note { font-size: var(--step-small); color: var(--pale-muted); }
.steps, .done { padding: clamp(24px, 3.6vw, 52px); border-left: 5px dotted var(--ground); display: grid; gap: 32px; align-content: start; min-width: 0; }
.done { gap: 18px; }
legend { font-weight: 700; font-size: var(--step-lead); padding: 0; margin-bottom: 14px; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.seg button, .times button, .days button { border: 0; background: var(--ground); border-radius: 999px; min-height: 44px; padding: 0 18px; cursor: pointer; font-weight: 600; transition: background-color .15s, color .15s, transform .15s var(--ease); }
.seg button[aria-selected="true"], .times button[aria-pressed="true"], .days button[aria-pressed="true"] { background: var(--ink); color: var(--pale); }
.seg button:active, .times button:active, .days button:active { transform: scale(.96); }
.serv-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; padding-right: 4px; }
.serv { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: var(--ground); border: 0; border-radius: 12px; padding: 12px 16px; min-height: 52px; text-align: left; cursor: pointer; transition: background-color .15s, color .15s; }
.serv small { display: block; font-size: var(--step-small); color: var(--muted); font-weight: 400; }
.serv b { white-space: nowrap; }
.serv[aria-pressed="true"] { background: var(--ink); color: var(--pale); }
.serv[aria-pressed="true"] small { color: var(--pale-muted); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { border-radius: var(--arch); min-width: 0; height: 84px; padding: 10px 2px 8px; display: grid; align-content: center; justify-items: center; gap: 2px; }
.days button span { font-size: var(--step-small); font-weight: 500; }
.days button b { font-size: 1.375rem; line-height: 1; }
.days button:disabled { background: transparent; color: var(--muted); cursor: not-allowed; }
.days button:disabled b { text-decoration: line-through; font-weight: 500; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.hint { color: var(--muted); font-size: var(--step-small); margin-top: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fields .wide { grid-column: 1 / -1; }
.fields label { display: grid; gap: 6px; font-size: var(--step-small); font-weight: 600; }
.fields input { height: 52px; border: 2px solid transparent; border-radius: 12px; background: var(--ground); padding: 0 16px; font-size: 1.0625rem; font-weight: 400; }
.fields input:focus { outline: none; border-color: var(--ink); }
.fields input.bad { border-color: var(--accent); }
.form-error { color: #9A0F45; font-weight: 600; }

/* ───── Dove siamo ───── */
.where { padding: 0 var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.addr { font-size: var(--step-lead); font-weight: 700; margin: 28px 0 16px; line-height: 1.3; }
.where-text p { max-width: 42ch; }
.where-text .btn { margin-top: 28px; }
.where-hours { background: var(--tone); border-radius: 10px; padding: clamp(24px, 3.4vw, 48px); }
.where-hours table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.where-hours td { padding: 9px 0; }
.where-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.where-hours tr.today td { color: var(--accent); font-weight: 700; }
.open-now { margin-top: 18px; font-weight: 700; }

/* ───── Chiusura ───── */
.foot { margin-top: var(--gap); background: var(--deep); color: var(--pale); padding: clamp(40px, 6vw, 80px) var(--m) 32px; }
.mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(120px, 26vw, 300px); }
.mark span { flex: 1; height: var(--h); display: flex; align-items: flex-end; justify-content: center; border-radius: var(--arch); font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 8.4vw, 8.5rem); line-height: 1; padding-bottom: .12em; color: var(--deep); background: var(--stripe-a); }
.mark span:nth-child(2n) { background: var(--stripe-b); }
.mark span:nth-child(3n) { background: var(--tone); }
.mark span:nth-child(5) { background: var(--accent); color: var(--pale); }
.foot-cols { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 24px clamp(32px, 6vw, 96px); margin-top: 56px; }
.foot-cols p { justify-self: end; text-align: right; }
.foot-cols li + li { margin-top: 6px; }
.foot-cols a { text-decoration: none; display: inline-block; padding: 6px 0; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 48px; font-size: var(--step-small); color: var(--pale-muted); }

/* ───── Entrate ───── */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .6s linear, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .folder { animation: rise .9s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 150ms); }
.f1 { --n: 0 } .f2 { --n: 1 } .f3 { --n: 2 } .f4 { --n: 3 } .f5 { --n: 4 }
@keyframes rise { from { translate: 0 60%; } to { translate: 0 0; } }
.js h1 { animation: fadeup .9s var(--ease) both; }
.js .hero-lead { animation: fadeup .9s var(--ease) .12s both; }
@keyframes fadeup { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.about-photo img { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { scale: 1; } to { scale: 1.08; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ───── Tablet e telefono ───── */
@media (max-width: 900px) {
  .showcase, .about, .gallery, .where, .ticket { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr; }
  .show-text { gap: 28px; }
  .about-photo { width: 86%; margin: 8px auto -18%; order: 3; }
  .about-left { display: contents; }
  .about-right { max-width: none; padding-bottom: 0; }
  .gallery-text { max-width: none; justify-self: stretch; }
  .frame { width: 72vw; }
  .ticket::before, .ticket::after { display: none; }
  .stub { border-radius: 10px 10px 0 0; }
  .stub-in { gap: 24px; }
  .stub-pic { display: none; }
  .steps, .done { border-left: 0; border-top: 5px dotted var(--ground); }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols p { justify-self: start; text-align: left; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .top ul { gap: 14px; font-size: var(--step-small); }
  .top .btn { display: none; }
  .hero { min-height: 600px; }
  h1 { font-size: 13.4vw; }
  .hero-lead { font-size: 1.125rem; }
  .stack { left: 0; right: 0; top: 45%; --off: 50px; }
  .folder { border-radius: 0; }
  .folder .tab { height: 36px; padding: 0 18px; font-size: .9375rem; }
  .f1 .tab { left: 4%; } .f2 .tab { left: 40%; } .f3 .tab { left: auto; right: 4%; } .f4 .tab { left: 10%; } .f5 .tab { left: auto; right: 8%; }
  .front { flex-direction: column; padding: 20px 16px 0; gap: 18px; }
  .front-cta .btn { width: 100%; }
  .front-nails li { flex: 1; width: auto; }
  .show-actions { grid-template-columns: 1fr; }
  .cell { min-height: 60px; }
  .fields { grid-template-columns: 1fr; }
  .foot-last { flex-direction: column; align-items: flex-start; }
  .sec-head { flex-direction: column; gap: 12px; }
}
