/* Linfa — studio di massaggi · demo Arvis (fascia Prenotazioni)
   Contenuti FITTIZI. Identità: lenta, respirata. Motivo: il cerchio che respira.
   Palette dalla famiglia Arvis: verde notte, bosco, muschio, salvia, nebbia. */

:root {
  --notte: #0F201B;
  --notte-2: #16302A;
  --bosco: #1F4A3F;
  --muschio: #3E6A58;
  --salvia: #BFD1BE;
  --nebbia: #EEF1EA;
  --sabbia: #E9E3D6;
  --testo: #14231E;
  --grigio: #5B6762;   /* contrasto AA sui fondi chiari (era #6C7A74) */
  --linea: #D6DDD4;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --slow: cubic-bezier(.45, 0, .2, 1);
  --gutter: 20px;
  --max: 1240px;
  --bar: 0px;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (max-width: 767px) { :root { --bar: 78px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--testo); background: var(--nebbia); -webkit-font-smoothing: antialiased; padding-bottom: var(--bar); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--bosco); color: #fff; }
:focus-visible { outline: 2px solid var(--muschio); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 300; background: var(--notte); color: #fff; padding: 10px 14px; border-radius: 999px; }
.it { font-family: var(--serif); font-style: italic; font-weight: 400; }
.tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; opacity: .7; }
.h { font-size: clamp(40px, 7vw, 92px); font-weight: 300; line-height: 1; letter-spacing: -.045em; }
.h .it { letter-spacing: -.02em; }
.lead { font-size: 18px; line-height: 1.5; color: var(--grigio); max-width: 46ch; }
.fitt { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--salvia); color: var(--bosco); padding: 3px 7px; border-radius: 5px; }

/* ---------- Barra Arvis ---------- */
.arvis-bar { background: #0A1512; color: var(--nebbia); font-size: 13px; }
.arvis-bar .wrap { display: flex; align-items: center; gap: 10px 14px; min-height: 46px; padding-block: 6px; }
.arvis-bar .home { display: flex; align-items: center; gap: 6px; flex: none; }
.arvis-bar svg { width: 42px; flex: none; }
.arvis-bar p { flex: 1; opacity: .75; line-height: 1.3; }
.arvis-bar a { white-space: nowrap; font-weight: 600; }
.arvis-bar .want { background: var(--nebbia); color: var(--notte); padding: 6px 12px; border-radius: 999px; }

/* ---------- Pulsanti ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 500; font-size: 16px; white-space: nowrap; transition: transform .5s var(--ease), color .4s, box-shadow .4s; }
.btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 999px; z-index: -1; transform: scale(0); transition: transform .7s var(--ease); }
.btn:hover::before { transform: scale(40); }
.btn:active { transform: scale(.97); }
.btn-salvia { background: var(--salvia); color: var(--notte); }
.btn-salvia::before { background: var(--nebbia); }
.btn-notte { background: var(--notte); color: var(--nebbia); }
.btn-notte::before { background: var(--muschio); }
.btn-ghost { box-shadow: inset 0 0 0 1px currentColor; }
.btn-ghost::before { background: currentColor; opacity: .12; }

/* ---------- Header ---------- */
.head { position: absolute; left: 0; right: 0; z-index: 40; color: var(--nebbia); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 400; letter-spacing: -.03em; }
.logo i { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid currentColor; position: relative; animation: breathe 8s var(--slow) infinite; }
.logo i::after { content: ""; position: absolute; inset: 5px; border-radius: 999px; background: currentColor; }
.head nav { display: none; gap: 28px; font-size: 15px; opacity: .85; }
.head nav a { position: relative; }
.head nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .5s var(--ease); }
.head nav a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { .head nav { display: flex; } }
.head .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
@media (max-width: 767px) { .head .btn { display: none; } }
.head.fixed { position: fixed; top: 0; background: rgba(238, 241, 234, .82); color: var(--testo); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--linea); animation: drop .6s var(--ease); }
.head.fixed .wrap { height: 62px; }
.head.fixed .btn-salvia { background: var(--notte); color: var(--nebbia); }
@keyframes drop { from { transform: translateY(-100%); } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); background: var(--notte); color: var(--nebbia); overflow: hidden; isolation: isolate; display: grid; }
.hero .glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; left: var(--gx, 50%); top: var(--gy, 40%); transform: translate(-50%, -50%); border-radius: 999px; background: radial-gradient(circle, rgba(62, 106, 88, .55), transparent 60%); transition: left 1.2s var(--ease), top 1.2s var(--ease); pointer-events: none; }
.hero-inner { display: grid; align-content: center; justify-items: center; text-align: center; padding: 110px var(--gutter) 60px; gap: 28px; }
.orb { position: relative; width: min(74vw, 440px); aspect-ratio: 1; }
.orb .ph { position: absolute; inset: 11%; border-radius: 999px; overflow: hidden; animation: breathe 8s var(--slow) infinite; }
.orb .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); }
.orb .ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
.orb .ring text { fill: var(--salvia); font-size: 5.2px; letter-spacing: 1.6px; font-weight: 500; }
.orb .halo { position: absolute; inset: 6%; border-radius: 999px; border: 1px solid rgba(191, 209, 190, .35); animation: halo 8s var(--slow) infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.94); } 45%, 55% { transform: scale(1); } }
@keyframes halo { 0%, 100% { transform: scale(.94); opacity: .2; } 50% { transform: scale(1.08); opacity: .8; } }
@keyframes spin { to { transform: rotate(360deg); } }
.js .orb { opacity: 0; transform: scale(.85); animation: orb-in 1.8s var(--ease) .2s forwards; }
@keyframes orb-in { to { opacity: 1; transform: none; } }
.hero h1 { font-size: clamp(60px, 15vw, 190px); font-weight: 300; line-height: .9; letter-spacing: -.06em; margin-top: -.55em; position: relative; }
.hero h1 .it { letter-spacing: -.03em; color: var(--salvia); }
.js .hero h1 span { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(20px); animation: unblur 1.6s var(--ease) forwards; }
.js .hero h1 span:nth-child(2) { animation-delay: .35s; }
@keyframes unblur { to { opacity: 1; filter: none; transform: none; } }
.hero p { max-width: 36ch; font-size: 18px; opacity: .8; }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero .meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 24px; display: none; justify-content: space-between; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
@media (min-width: 900px) { .hero .meta { display: flex; } }

/* ---------- Come ti senti ---------- */
.section { padding-block: 96px; }
@media (min-width: 768px) { .section { padding-block: 140px; } }
.feel { display: grid; gap: 40px; }
@media (min-width: 960px) { .feel { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.feel .h { margin-top: 16px; }
.moods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.mood { padding: 12px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); font-size: 15px; transition: background-color .35s, color .35s, border-color .35s, transform .4s var(--ease); }
.mood:hover { border-color: var(--testo); transform: translateY(-2px); }
.mood[aria-pressed="true"] { background: var(--notte); color: var(--nebbia); border-color: var(--notte); }
.advice { position: relative; min-height: 360px; border-radius: 32px; background: var(--notte); color: var(--nebbia); overflow: hidden; isolation: isolate; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.advice .bg { position: absolute; inset: 0; z-index: -1; }
.advice .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .8s, transform 1.4s var(--ease); }
.advice::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,32,27,.1), rgba(15,32,27,.9)); }
.advice .empty { font-size: 22px; font-weight: 300; line-height: 1.3; opacity: .85; max-width: 22ch; }
.advice .res h3 { font-size: clamp(30px, 4vw, 46px); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; margin-top: 8px; }
.advice .res p { opacity: .8; margin-top: 12px; max-width: 40ch; }
.advice .res .facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.advice .res .facts span { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(238,241,234,.12); }
.advice .res .btn { margin-top: 22px; align-self: flex-start; }
.advice .res { animation: rise-in .8s var(--ease); }
@keyframes rise-in { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } }

/* ---------- Trattamenti ---------- */
.treat-head { display: grid; gap: 20px; }
@media (min-width: 900px) { .treat-head { grid-template-columns: 1fr auto; align-items: end; } }
.treats { margin-top: 48px; border-top: 1px solid var(--linea); }
.treat { border-bottom: 1px solid var(--linea); }
.treat > button { width: 100%; display: grid; grid-template-columns: 38px 1fr auto 30px; align-items: center; gap: 14px; padding: 24px 0; text-align: left; }
.treat .n { font-size: 13px; color: var(--grigio); font-variant-numeric: tabular-nums; }
.treat h3 { font-size: clamp(24px, 3.4vw, 42px); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; transition: transform .6s var(--ease); }
.treat > button:hover h3 { transform: translateX(8px); }
.treat .p { font-size: 15px; color: var(--grigio); white-space: nowrap; }
.treat .pm { width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--linea); position: relative; transition: transform .5s var(--ease), background-color .3s; }
.treat .pm::before, .treat .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; transition: transform .5s var(--ease); }
.treat .pm::after { transform: rotate(90deg); }
.treat.open .pm { background: var(--notte); color: var(--nebbia); border-color: var(--notte); }
.treat.open .pm::after { transform: rotate(0); }
.treat .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.treat.open .body { grid-template-rows: 1fr; }
.treat .body > div { overflow: hidden; }
.treat .inner { display: grid; gap: 20px; padding: 0 0 30px 52px; }
@media (min-width: 900px) { .treat .inner { grid-template-columns: 1fr 280px; gap: 40px; } }
.treat .inner p { color: var(--grigio); max-width: 50ch; }
.treat .inner ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.treat .inner li { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); }
.treat .inner .btn { margin-top: 20px; }
.treat .inner .ph { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; }
.treat .inner .ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .treat .inner .ph { display: none; } .treat .inner { padding-left: 0; } .treat > button { grid-template-columns: 28px 1fr 30px; } .treat .p { grid-column: 2; grid-row: 2; } }

/* ---------- Respira ---------- */
.breath { background: var(--notte); color: var(--nebbia); border-radius: 36px; margin-inline: 8px; overflow: hidden; position: relative; isolation: isolate; }
@media (min-width: 768px) { .breath { margin-inline: 12px; } }
.breath .bgimg { position: absolute; inset: 0; z-index: -1; }
.breath .bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; filter: grayscale(1); }
.breath-grid { display: grid; gap: 48px; justify-items: center; text-align: center; }
.breath .h { max-width: 14ch; }
.breath .h .it { color: var(--salvia); }
.breather { position: relative; width: min(70vw, 320px); aspect-ratio: 1; display: grid; place-items: center; }
.breather .c { position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(circle at 40% 35%, var(--muschio), var(--bosco) 70%); box-shadow: 0 0 80px rgba(62, 106, 88, .45); transform: scale(.55); transition: transform 4s var(--slow); }
.breather .c2 { position: absolute; inset: -8%; border-radius: 999px; border: 1px solid rgba(191,209,190,.25); transform: scale(.55); transition: transform 4s var(--slow); }
.breather[data-phase="in"] .c, .breather[data-phase="hold"] .c { transform: scale(1); }
.breather[data-phase="in"] .c2, .breather[data-phase="hold"] .c2 { transform: scale(1); }
.breather[data-phase="out"] .c, .breather[data-phase="out"] .c2 { transition-duration: 6s; }
.breather .say { position: relative; font-size: 22px; font-weight: 300; letter-spacing: -.02em; }
.breather .count { position: absolute; bottom: -44px; font-size: 13px; opacity: .6; letter-spacing: .1em; }
.breath-controls { display: flex; gap: 10px; justify-content: center; }

/* ---------- Studio e persone ---------- */
.people { display: grid; gap: 14px; margin-top: 48px; }
@media (min-width: 900px) { .people { grid-template-columns: 1.2fr 1fr 1fr; gap: 18px; } }
.quote { background: var(--sabbia); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 340px; }
.quote p { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; }
.quote small { font-size: 14px; color: var(--grigio); }
.person { position: relative; border-radius: 28px; overflow: hidden; min-height: 400px; color: #fff; isolation: isolate; }
.person img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.person:hover img { transform: scale(1.06); }
.person::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 50%, rgba(15,32,27,.85)); }
.person .info { position: absolute; left: 22px; right: 22px; bottom: 22px; }
.person h3 { font-size: 26px; font-weight: 400; letter-spacing: -.03em; }
.person p { font-size: 14px; opacity: .8; }
.person .circle-cta { position: absolute; top: 16px; right: 16px; width: 56px; height: 56px; border-radius: 999px; background: var(--nebbia); color: var(--notte); display: grid; place-items: center; font-size: 12px; font-weight: 600; transform: scale(0) rotate(-90deg); transition: transform .6s var(--ease); }
.person:hover .circle-cta, .person:focus-within .circle-cta { transform: none; }
@media (hover: none) { .person .circle-cta { transform: none; } }

/* ---------- Buono regalo (carta che si gira) ---------- */
.gift { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .gift { grid-template-columns: 1fr 1fr; gap: 72px; } }
.card3d { perspective: 1400px; width: min(100%, 460px); justify-self: center; cursor: pointer; }
.card3d .in { position: relative; aspect-ratio: 1.6; transform-style: preserve-3d; transition: transform 1s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); }
.card3d.flipped .in { --flip: 180deg; }
.card3d .face { position: absolute; inset: 0; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(15,32,27,.6); }
.card3d .front { background: radial-gradient(circle at 80% 20%, var(--muschio), var(--notte) 70%); color: var(--nebbia); }
.card3d .front::after { content: ""; position: absolute; right: -20%; bottom: -40%; width: 70%; aspect-ratio: 1; border-radius: 999px; border: 1px solid rgba(191,209,190,.3); box-shadow: 0 0 0 30px rgba(191,209,190,.05), 0 0 0 60px rgba(191,209,190,.04); }
.card3d .front b { font-size: 28px; font-weight: 400; letter-spacing: -.03em; }
.card3d .front .val { font-size: 44px; font-weight: 300; letter-spacing: -.05em; }
.card3d .front small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.card3d .back { background: var(--sabbia); color: var(--testo); transform: rotateY(180deg); }
.card3d .back p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; }
.card3d .back small { font-size: 12px; color: var(--grigio); }
.card3d .shine { position: absolute; inset: 0; border-radius: 22px; pointer-events: none; background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.18), transparent 40%); }
.values { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.values button { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--linea); background: #fff; font-size: 15px; transition: background-color .3s, color .3s; }
.values button[aria-pressed="true"] { background: var(--notte); color: var(--nebbia); border-color: var(--notte); }

/* ---------- Visita ---------- */
.visit { display: grid; gap: 14px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1fr 1fr; gap: 18px; } }
.panel { background: #fff; border: 1px solid var(--linea); border-radius: 28px; padding: 28px; }
.panel h3 { font-size: 28px; font-weight: 300; letter-spacing: -.04em; margin-bottom: 14px; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--linea); font-size: 15px; }
.hours li:last-child { border: 0; }
.hours li.today { font-weight: 600; color: var(--bosco); }
.hours li.today span:first-child::after { content: "oggi"; margin-left: 8px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; background: var(--bosco); color: #fff; padding: 2px 6px; border-radius: 5px; vertical-align: 2px; }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; font-weight: 300; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--grigio); font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--salvia); color: var(--bosco); margin-bottom: 16px; }
.status i { width: 7px; height: 7px; border-radius: 999px; background: currentColor; animation: breathe 3s var(--slow) infinite; }
.status.closed { background: var(--sabbia); color: #6B5B40; }

/* ---------- CTA e footer ---------- */
.cta { text-align: center; }
.cta .h { max-width: 13ch; margin: 18px auto 0; }
.cta .h .it { color: var(--muschio); }
.cta .btn { margin-top: 34px; }
.foot { background: var(--notte); color: rgba(238,241,234,.7); padding-block: 64px 28px; font-size: 14px; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.foot .logo { color: var(--nebbia); font-size: 30px; }
.foot h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--nebbia); margin-bottom: 8px; font-weight: 500; }
.foot a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(238,241,234,.12); font-size: 12px; }

/* ---------- Barra mobile ---------- */
.dock { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 6px; padding: 6px; border-radius: 26px; background: rgba(15, 32, 27, .92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transform: translateY(140%); transition: transform .6s var(--ease); }
.dock.show { transform: none; }
.dock a, .dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; border-radius: 20px; background: rgba(255,255,255,.07); color: var(--nebbia); font-size: 12px; font-weight: 500; }
.dock svg { width: 20px; height: 20px; }
.dock .main { background: var(--salvia); color: var(--notte); flex-direction: row; gap: 8px; font-size: 15px; font-weight: 600; }
@media (min-width: 768px) { .dock { display: none; } }

/* ---------- Prenotazione ---------- */
.sheet-back { position: fixed; inset: 0; z-index: 200; background: rgba(15, 32, 27, .55); opacity: 0; pointer-events: none; transition: opacity .5s; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet { position: fixed; z-index: 201; left: 0; right: 0; bottom: 0; max-height: 92svh; overflow-y: auto; overscroll-behavior: contain; background: var(--nebbia); border-radius: 30px 30px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .7s var(--ease); }
@media (min-width: 768px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; max-height: 88vh; border-radius: 30px; transform: translate(-50%, -40%) scale(.95); opacity: 0; transition: transform .7s var(--ease), opacity .4s; padding: 24px 30px; } }
.booking-open .sheet-back { opacity: 1; pointer-events: auto; }
.booking-open .sheet { transform: none; }
@media (min-width: 768px) { .booking-open .sheet { transform: translate(-50%, -50%); opacity: 1; } }
.booking-open { overflow: hidden; }
.grab { width: 40px; height: 5px; border-radius: 999px; background: var(--linea); margin: 0 auto 14px; }
@media (min-width: 768px) { .grab { display: none; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; }
.sheet-top h2 { font-size: 28px; font-weight: 300; letter-spacing: -.04em; }
.x { width: 40px; height: 40px; border-radius: 999px; background: #fff; font-size: 20px; display: grid; place-items: center; }
.dots { display: flex; gap: 6px; margin: 16px 0 22px; }
.dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--linea); transition: width .5s var(--ease), background-color .4s; }
.dots i.on { width: 28px; background: var(--bosco); }
.dots i.done { background: var(--muschio); }
.st { display: none; }
.st.on { display: block; animation: st-in .6s var(--ease); }
@keyframes st-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }
.q { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.q small { font-weight: 400; color: var(--grigio); }
.opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--linea); text-align: left; transition: border-color .25s, background-color .25s, color .25s; }
.opt + .opt { margin-top: 8px; }
.opt:hover { border-color: var(--testo); }
.opt[aria-pressed="true"] { background: var(--notte); color: var(--nebbia); border-color: var(--notte); }
.opt b { font-weight: 500; }
.opt span { font-size: 13px; opacity: .65; }
.durs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dur { padding: 22px 16px; border-radius: 22px; background: #fff; border: 1px solid var(--linea); text-align: center; transition: background-color .25s, color .25s, border-color .25s; }
.dur b { display: block; font-size: 34px; font-weight: 300; letter-spacing: -.04em; }
.dur span { font-size: 14px; opacity: .7; }
.dur[aria-pressed="true"] { background: var(--notte); color: var(--nebbia); border-color: var(--notte); }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 62px; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.days::-webkit-scrollbar { display: none; }
.chip { min-height: 48px; border-radius: 16px; background: #fff; border: 1px solid var(--linea); font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--testo); }
.chip[aria-pressed="true"] { background: var(--notte); color: var(--nebbia); border-color: var(--notte); }
.chip:disabled { opacity: .3; cursor: not-allowed; }
.day { display: flex; flex-direction: column; align-items: center; padding: 10px 0; }
.day small { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; opacity: .6; }
.day b { font-size: 20px; font-weight: 500; }
.day em { font-style: normal; font-size: 11px; opacity: .6; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field textarea { font: inherit; font-size: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--linea); background: #fff; color: var(--testo); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--muschio); box-shadow: 0 0 0 3px rgba(62,106,88,.15); }
.check { display: flex; gap: 10px; font-size: 13px; color: var(--grigio); }
.check input { width: 18px; height: 18px; accent-color: var(--bosco); flex: none; }
.check a { text-decoration: underline; }
.recap { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.recap span { font-size: 13px; background: var(--salvia); color: var(--bosco); padding: 5px 10px; border-radius: 999px; font-weight: 500; }
.snav { display: flex; gap: 8px; margin-top: 22px; }
.snav .next { flex: 1; }
.snav .prev { width: 52px; padding: 0; }
.snav .btn:disabled { opacity: .3; pointer-events: none; }
.done { text-align: center; }
.done .orb-ok { width: 110px; height: 110px; margin: 4px auto 18px; border-radius: 999px; background: radial-gradient(circle at 40% 35%, var(--muschio), var(--bosco)); display: grid; place-items: center; color: var(--nebbia); animation: breathe 5s var(--slow) infinite; }
.done .orb-ok svg { width: 44px; }
.done .orb-ok path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-size: 30px; font-weight: 300; letter-spacing: -.04em; }
.done p { color: var(--grigio); margin-top: 8px; }
.demo-note { margin-top: 20px; font-size: 13px; background: var(--salvia); color: var(--bosco); padding: 12px 14px; border-radius: 16px; text-align: left; }
.demo-note a { font-weight: 700; text-decoration: underline; }

/* ---------- Comparsa ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease), filter 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .orb, .js .hero h1 span { opacity: 1; transform: none; filter: none; }
}

/* ---------- selettore di lingua ---------- */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 99px; background: rgba(127,127,127,.12); }
.lang-switch button { font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1; padding: 6px 7px; border: 0; border-radius: 99px; background: none; color: inherit; opacity: .8; cursor: pointer; transition: opacity .2s, background-color .2s; }
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { opacity: 1; background: rgba(127,127,127,.25); }

/* parole lunghe (tedesco): vanno a capo con il trattino invece di allargare la pagina */
:lang(de) p, :lang(de) li, :lang(de) dd { -webkit-hyphens: auto; hyphens: auto; }

/* etichetta "oggi" negli orari, nelle altre lingue */
:lang(de) .hours li.today span:first-child::after { content: "heute"; }
:lang(fr) .hours li.today span:first-child::after { content: "aujourd’hui"; }
:lang(en) .hours li.today span:first-child::after { content: "today"; }
.hours li { flex-wrap: wrap; }
.hours li span:last-child { margin-left: auto; }
