/* Katia Style Hair Studio — editoriale, nero caldo e cipria */
:root {
  --nero: #1b1715;
  --nero-2: #2a2320;
  --cipria: #f1d9cf;
  --cipria-2: #f8ece6;
  --carta: #fcf7f3;
  --corallo: #e2725b;
  --corallo-dk: #b2442e;
  --testo: #2b2421;
  --muted: #6d605a;
  --muted-lt: #c9b8b0;
  --line: #e5d3ca;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(18px, 4.5vw, 56px);
  --ease: cubic-bezier(.22, .68, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 1.0625rem; line-height: 1.65; color: var(--testo); background: var(--carta); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--corallo); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 10px; top: -60px; z-index: 100; background: var(--corallo); color: #fff; padding: 10px 14px; }
.skip:focus { top: 36px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section[id], div[id] { scroll-margin-top: 72px; }

.preview-bar { height: 28px; line-height: 28px; font-size: .74rem; letter-spacing: .06em; text-align: center; background: var(--cipria); color: var(--nero); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--nero); color: var(--cipria-2); transition: box-shadow .3s; }
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; padding: 0 var(--gutter); max-width: 1440px; margin: 0 auto; transition: height .35s var(--ease); }
.site-header.is-small .header-inner { height: 58px; }
.site-header.is-small { box-shadow: 0 1px 0 rgba(241, 217, 207, .14); }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; margin-right: auto; }
.logo-k { font-family: var(--serif); font-style: italic; font-size: 2.1rem; line-height: 1; letter-spacing: -.02em; color: var(--cipria); transition: font-size .35s var(--ease); }
.site-header.is-small .logo-k { font-size: 1.75rem; }
.logo-sub { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-lt); }
.nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.nav a { text-decoration: none; font-size: .92rem; letter-spacing: .04em; position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--corallo); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-cta a { border: 1px solid var(--corallo); padding: 7px 16px; border-radius: 40px; }
.nav-cta a::after { display: none; }
.nav-cta a:hover { background: var(--corallo); color: var(--nero); }
.header-tel { text-decoration: none; font-weight: 500; letter-spacing: .04em; color: var(--cipria); white-space: nowrap; }
.burger { display: none; }

@media (max-width: 1000px) {
  .header-tel { display: none; }
  .burger { display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; background: none; border: 1px solid rgba(241, 217, 207, .4); border-radius: 50%; cursor: pointer; }
  .burger span { display: block; width: 18px; height: 1.5px; background: var(--cipria); transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav { position: fixed; inset: var(--nav-top, 102px) 0 0 0; background: var(--nero); padding: 30px var(--gutter) 120px; overflow-y: auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .45s var(--ease), visibility 0s .45s; }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav ul { flex-direction: column; align-items: flex-start; gap: 6px; }
  .nav a { font-family: var(--serif); font-size: 2.3rem; letter-spacing: -.01em; }
  .nav-cta { margin-top: 18px; }
  .nav-cta a { font-family: var(--sans); font-size: 1rem; padding: 12px 22px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 40px; text-decoration: none; font-weight: 500; letter-spacing: .03em; font-size: .98rem; cursor: pointer; border: 1px solid transparent; transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--corallo); color: var(--nero); }
.btn-coral:hover { background: #ec8a75; }
.btn-ghost { border-color: rgba(241, 217, 207, .5); color: var(--cipria-2); }
.btn-ghost:hover { background: var(--cipria); color: var(--nero); }
.btn-dark { background: var(--nero); color: var(--cipria-2); }
.btn-dark:hover { background: var(--corallo-dk); }
.btn-block { width: 100%; }

/* ---------- labels / titles ---------- */
.label { font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--corallo-dk); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.label--light { color: var(--corallo); }
.h2 { font-family: var(--serif); font-size: clamp(2.5rem, 5.6vw, 4.8rem); line-height: .98; letter-spacing: -.025em; font-weight: 400; }
.h2 em { color: var(--corallo-dk); }

/* ---------- hero ---------- */
.hero {
  background: var(--nero); color: var(--cipria-2); position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px;
  padding: clamp(28px, 4vw, 48px) var(--gutter) clamp(40px, 5vw, 64px);
}
.hero-kicker { grid-column: 1 / -1; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-lt); margin: 0 0 4px; }
.hero-kicker span { color: var(--corallo); }
.hero-title { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; pointer-events: none; }
.hero-word {
  display: block; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(8.5rem, 27vw, 26rem); line-height: .78; letter-spacing: -.055em; color: var(--cipria);
  margin-left: -.04em; padding-top: .08em;
}
.js .hero-word .ch { display: inline-block; opacity: 0; transform: translateY(.18em); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--n) * 70ms + 100ms); }
.js .hero.is-ready .hero-word .ch { opacity: 1; transform: none; }
.hero-photo { grid-column: 6 / 13; grid-row: 2 / 4; margin: clamp(90px, 13vw, 210px) 0 0; position: relative; z-index: 1; }
.hero-photo img { width: 100%; aspect-ratio: 1110 / 585; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1110 / 585; background: linear-gradient(165deg, rgba(27, 23, 21, .62) 0%, rgba(27, 23, 21, 0) 42%); pointer-events: none; }
.hero-photo figcaption { font-size: .78rem; letter-spacing: .08em; color: var(--muted-lt); margin-top: 10px; text-align: right; }
.hero-foot { grid-column: 1 / 6; grid-row: 3; align-self: end; padding-top: 28px; position: relative; z-index: 2; }
.hero-lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); font-weight: 300; line-height: 1.55; max-width: 25em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }
.status { flex-basis: 100%; margin: 10px 0 0; font-size: .9rem; color: var(--muted-lt); display: flex; align-items: center; gap: 10px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #888); }
.status.is-open { --dot: #7fcf8b; }
.status.is-closed { --dot: var(--corallo); }

/* ---------- salone ---------- */
.salone { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: 1440px; margin: 0 auto; }
.salone-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: start; }
.salone-text { grid-column: 1 / 6; padding-top: 30px; }
.salone-text .h2 { margin-bottom: 30px; }
.salone-text p { max-width: 31em; }
.dropcap::first-letter { font-family: var(--serif); font-style: italic; float: left; font-size: 4.4em; line-height: .78; padding: 6px 10px 0 0; color: var(--corallo-dk); }
.note { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 26px; }
.salone-staff { grid-column: 7 / 12; margin: 0; }
.salone-staff figcaption { text-align: right; }
.salone-staff img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.salone-room { grid-column: 4 / 9; margin: -120px 0 0; position: relative; z-index: 2; border: 10px solid var(--carta); }
.salone-room img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 10px; letter-spacing: .02em; }
figcaption span { font-family: var(--serif); font-style: italic; color: var(--corallo-dk); margin-right: 6px; }

/* ---------- servizi ---------- */
.servizi { background: var(--cipria-2); padding: clamp(72px, 10vw, 130px) 0; }
.servizi-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; align-items: end; margin-bottom: 44px; }
.servizi-head .label { grid-column: 1 / -1; }
.servizi-intro { color: var(--muted); max-width: 26em; justify-self: end; margin: 0; }
.tablist { display: flex; gap: 6px clamp(18px, 3vw, 44px); flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.tablist [role="tab"] { background: none; border: 0; padding: 0 0 14px; cursor: pointer; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-style: italic; color: #a8968d; position: relative; transition: color .25s; }
.tablist [role="tab"]:hover { color: var(--testo); }
.tablist [role="tab"][aria-selected="true"] { color: var(--nero); }
.tablist [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--corallo); transform: scaleX(0); transition: transform .4s var(--ease); }
.tablist [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.panel[hidden] { display: none; }
.panel.is-in { animation: fadeUp .5s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.svc { list-style: none; margin: 0; padding: 0; counter-reset: s; columns: 2; column-gap: 40px; }
.svc li { counter-increment: s; break-inside: avoid; padding: 16px 0 14px; border-top: 1px solid var(--line); position: relative; padding-left: 44px; }
.svc li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 17px; font-family: var(--serif); font-style: italic; color: var(--corallo-dk); font-size: 1rem; }
.svc h3 { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; margin-bottom: 4px; letter-spacing: -.01em; }
.svc p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.panel-fig { margin: 0; }
.panel-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.panel-fig--land img { aspect-ratio: 4 / 3; }
.panel-aside { background: var(--nero); color: var(--cipria-2); padding: 30px; }
.quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.25; }

/* ---------- lavori (galleria trascinabile) ---------- */
.lavori { background: var(--nero); color: var(--cipria-2); padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.lavori .h2 em { color: var(--corallo); }
.lavori-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.rail-ctrl { display: flex; align-items: center; gap: 10px; }
.rail-hint { margin: 0 10px 0 0; font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-lt); }
.rail-hint::after { content: " ⟷"; letter-spacing: 0; }
.rail-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(241, 217, 207, .45); background: none; cursor: pointer; display: grid; place-items: center; transition: background .25s, border-color .25s; }
.rail-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--cipria); stroke-width: 1.6; }
.rail-btn:hover { background: var(--corallo); border-color: var(--corallo); }
.rail-btn:hover svg { stroke: var(--nero); }
.rail-btn:disabled { opacity: .35; cursor: default; background: none; }
.rail { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; scroll-snap-type: x proximity; scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging .rail-open { pointer-events: none; }
.rail-track { list-style: none; margin: 0; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; gap: clamp(14px, 2vw, 26px); width: max-content; }
.js .rail-track { transform: translateX(120px); opacity: 0; transition: transform 1.3s var(--ease), opacity .9s var(--ease); }
.js .lavori.is-in .rail-track { transform: none; opacity: 1; }
.rail-item { flex: none; scroll-snap-align: start; }
.rail-item:nth-child(even) { margin-top: 48px; }
.rail-open { display: block; padding: 0; border: 0; background: #000; cursor: inherit; overflow: hidden; }
.rail-open img { height: clamp(340px, 54vh, 520px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; user-select: none; -webkit-user-drag: none; }
.rail-item--wide .rail-open img { aspect-ratio: 16 / 10; }
.rail-open:hover img { transform: scale(1.035); }
.rail-item p { margin: 12px 0 0; font-size: .86rem; letter-spacing: .03em; color: var(--muted-lt); }
.rail-item p span { font-family: var(--serif); font-style: italic; color: var(--corallo); margin-right: 6px; }
.rail-progress { height: 1px; background: rgba(241, 217, 207, .2); margin-top: 34px; position: relative; }
.rail-progress span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--corallo); transform-origin: left; transform: scaleX(var(--p, .12)); }

/* ---------- prodotti ---------- */
.prodotti { padding: clamp(72px, 10vw, 130px) 0; }
.prodotti-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 96px); }
.prodotti-head .h2 { margin-bottom: 36px; }
.prodotti-fig { margin: 0; max-width: 440px; }
.prodotti-fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.brands { margin: 0; }
.brand { display: grid; grid-template-columns: minmax(150px, 2fr) 5fr; gap: 10px 30px; padding: 26px 0; border-top: 1px solid var(--line); align-items: baseline; }
.brand:last-child { border-bottom: 1px solid var(--line); }
.brand dt { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -.02em; transition: color .3s, transform .4s var(--ease); }
.brand:hover dt { color: var(--corallo-dk); transform: translateX(6px); }
.brand dd { margin: 0; color: var(--muted); }

/* ---------- feste ---------- */
.feste { background: var(--corallo); color: var(--nero); }
.feste-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: center; padding-top: 30px; padding-bottom: 30px; }
.feste h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; letter-spacing: -.01em; }
.feste p { margin: 0; max-width: 34em; }

/* ---------- orari + dove ---------- */
.orari { padding: clamp(72px, 10vw, 130px) 0; background: var(--carta); }
.orari-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 96px); align-items: start; }
.orari-col .h2 { margin-bottom: 26px; }
.badge { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 14px; border-radius: 40px; border: 1px solid var(--line); margin-bottom: 20px; }
.badge.is-open { background: #1f4d2b; border-color: #1f4d2b; color: #fff; }
.badge.is-closed { background: var(--nero); border-color: var(--nero); color: var(--cipria); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; }
.hours th { font-family: var(--serif); font-size: 1.2rem; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--corallo-dk); }
.hours tr.is-today th { font-style: italic; }
.hours tr.is-today th::after { content: "oggi"; font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; background: var(--corallo); color: var(--nero); padding: 3px 8px; border-radius: 20px; margin-left: 10px; vertical-align: 3px; }
.small { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.dove-photo { margin: 0 0 20px; }
.dove-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.dove-addr { font-size: 1.15rem; margin-bottom: 18px; }
.dove-addr strong { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: -.01em; }
.map { position: relative; aspect-ratio: 16 / 9; background: var(--cipria-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dove-links { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.dove-links a { text-decoration-color: var(--corallo); text-underline-offset: 5px; font-weight: 500; }

/* ---------- prenota ---------- */
.prenota { background: var(--nero); color: var(--cipria-2); padding: clamp(72px, 10vw, 130px) 0; position: relative; overflow: hidden; }
.prenota .h2 em { color: var(--corallo); }
.prenota-bg { position: absolute; right: -4vw; bottom: -9vw; font-family: var(--serif); font-style: italic; font-size: clamp(12rem, 34vw, 32rem); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(241, 217, 207, .14); pointer-events: none; user-select: none; }
.prenota-grid { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 6vw, 96px); align-items: start; }
.prenota-text .h2 { margin-bottom: 26px; }
.prenota-text p { color: #e6d6ce; max-width: 28em; }
.prenota-text a { color: var(--corallo); font-weight: 500; }
.form { background: var(--cipria-2); color: var(--testo); padding: clamp(22px, 3.5vw, 40px); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; padding: 0; }
.opt { text-transform: none; letter-spacing: 0; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--testo); background: transparent; border: 0; border-bottom: 1px solid #a99187; border-radius: 0; padding: 10px 2px; min-height: 46px; transition: border-color .2s, background .2s; }
textarea { border: 1px solid #a99187; padding: 10px; resize: vertical; }
select { background: transparent; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--corallo-dk); background: rgba(255, 255, 255, .55); }
.field.bad input, .field.bad select { border-color: #b3261e; }
.err { color: #a1271b; font-size: .84rem; margin: 5px 0 0; }
.err:empty { display: none; }
.seg { display: flex; border: 1px solid #a99187; border-radius: 40px; overflow: hidden; }
.seg label { flex: 1; margin: 0; text-transform: none; letter-spacing: .02em; font-size: .95rem; color: var(--testo); cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.seg span { display: block; text-align: center; padding: 10px 6px; transition: background .2s, color .2s; }
.seg input:checked + span { background: var(--nero); color: var(--cipria); }
.seg input:focus-visible + span { outline: 2px solid var(--corallo); outline-offset: -4px; }
.form-msg { margin: 14px 0 0; font-size: .95rem; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #1f4d2b; }
.form-msg.ko { color: #a1271b; }

/* ---------- footer ---------- */
.site-footer { background: #120f0e; color: var(--muted-lt); padding: 54px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-logo { font-family: var(--serif); font-style: italic; font-size: 2.6rem; color: var(--cipria); line-height: 1; margin-bottom: 8px; }
.footer-logo span { font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; margin-left: 10px; color: var(--muted-lt); }
.footer-small { font-size: .88rem; }
.site-footer a { color: var(--cipria-2); }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #2c2522; margin-top: 34px; padding-top: 18px; font-size: .8rem; color: #a18f87; }
.footer-legal p { margin: 0; }

/* ---------- action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--nero); border-top: 1px solid rgba(241, 217, 207, .2); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; text-decoration: none; color: var(--cipria-2); font-size: .78rem; letter-spacing: .06em; }
  .action-bar a:first-child { background: var(--corallo); color: var(--nero); font-weight: 500; }
  .action-bar svg { width: 21px; height: 21px; fill: currentColor; }
  body { padding-bottom: 62px; }
}

/* ---------- viewer ---------- */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); color: var(--cipria-2); overflow: visible; }
.viewer::backdrop { background: rgba(18, 15, 14, .92); }
.viewer img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; }
.viewer-cap { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin: 12px 0 0; text-align: center; }
.viewer-close { position: absolute; top: -50px; right: 0; background: var(--corallo); color: var(--nero); border: 0; border-radius: 40px; padding: 8px 18px; cursor: pointer; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-title, .hero-photo, .hero-foot { grid-column: 1; }
  .hero-word { font-size: clamp(7rem, 36vw, 15rem); }
  .hero-photo { grid-row: auto; margin: -9vw 0 0 12%; }
  .hero-foot { grid-row: auto; }
  .salone-grid { grid-template-columns: 1fr 1fr; }
  .salone-text { grid-column: 1 / -1; padding-top: 0; }
  .salone-staff { grid-column: 1 / 2; }
  .salone-room { grid-column: 2 / 3; margin: 80px 0 0 -40px; }
  .servizi-head { grid-template-columns: 1fr; }
  .servizi-intro { justify-self: start; margin-top: 16px; }
  .panel { grid-template-columns: 1fr; }
  .panel-fig { max-width: 420px; }
  .svc { columns: 1; }
  .prodotti-grid, .orari-grid, .prenota-grid { grid-template-columns: 1fr; }
  .feste-inner { grid-template-columns: 1fr; justify-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-word { font-size: 39vw; padding-top: .16em; }
  .hero-photo { margin: 18px 0 0 0; }
  .hero-photo::before { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .salone-grid { grid-template-columns: 1fr; }
  .salone-staff, .salone-room { grid-column: 1; }
  .salone-room { margin: -40px 0 0 22%; }
  .salone-staff figcaption { text-align: left; padding-right: 30%; min-height: 3.2em; }
  .tablist { gap: 6px 16px; }
  .tablist [role="tab"] { font-size: 1.4rem; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .brand { grid-template-columns: 1fr; padding: 20px 0; }
  .rail-item:nth-child(even) { margin-top: 28px; }
  .rail-open img { height: 380px; }
  .rail-item--wide .rail-open img { height: 240px; }
  .rail-hint { display: none; }
  .lavori-head { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .rail-track, .js .hero-word .ch { opacity: 1 !important; transform: none !important; }
}
