/* =========================================================
   Hair B – foglio di stile
   Mobile first. Colori presi dal logo originale.
   ========================================================= */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Colori del marchio */
  --red: #BA151B;          /* rosso del logo */
  --red-dark: #8C0F0E;
  --ink: #231F20;          /* nero del logo */
  --paper: #F8F2EA;        /* beige chiarissimo: superfici e sezioni (niente bianco puro) */
  --cream: #F1E8DC;        /* beige sabbia per i fondi */
  --stone: #E7DBCB;        /* beige più pieno */
  --muted: #5F5753;
  --line: #D9CBB8;
  --on-ink-muted: #CFC8C3;

  /* Tipografia */
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  /* Spaziature (multipli di 4px) */
  /* in rem: lo spazio cresce insieme al testo se l'utente ingrandisce i caratteri */
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;

  /* Movimento: uscita rapida e decisa, senza rimbalzi (tutto interrompibile) */
  --ease-out: cubic-bezier(.2, .9, .25, 1);

  --radius: 4px;
  --radius-lg: 16px;
  --wrap: 1160px;
  --gutter: 20px;
  --header-h: 4rem;
  --shadow: 0 1px 2px rgba(35, 31, 32, .06), 0 8px 24px rgba(35, 31, 32, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
/* Movimento ridotto: niente scivolamenti o ingrandimenti, solo dissolvenze brevi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:active, .quickbar__btn:active, .gallery__link:active, .nav__toggle:active, .lang:active { transform: none; }
  .gallery__link img, .link-arrow .icon, .service::after { transition: none; }
  .gallery__link:hover img, .link-arrow:hover .icon { transform: none; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;           /* 17px */
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.15; }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
.visit :focus-visible, .lightbox :focus-visible { outline-color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  padding: var(--s3) var(--s4);
  background: var(--ink); color: #fff; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: var(--s3); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s3);
  min-height: 48px;
  padding: var(--s3) var(--s5);
  border: 2px solid transparent;
  border-radius: 4px;              /* pulsanti rettangolari, come nei saloni italiani */
  font: 500 .875rem/1.2 var(--font-sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .1s ease-out;
}
/* Il feedback arriva alla pressione, non al rilascio */
.btn:active { transform: scale(.97); }
.btn { max-width: 100%; text-align: center; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--stone); }
.btn--white { background: var(--paper); color: var(--red); }
.btn--white:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--lg { min-height: 64px; padding: var(--s3) var(--s6) var(--s3) var(--s5); font-size: 1rem; text-align: left; }
.btn--lg .icon { width: 24px; height: 24px; }
.btn--sm { min-height: 44px; padding: var(--s2) var(--s4); font-size: .9375rem; }
.btn__sub { display: block; margin-top: 2px; font-size: .875rem; font-weight: 400; opacity: .9; letter-spacing: .04em; text-transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px;
  font-weight: 500;
  color: var(--red);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--light { color: #fff; }

/* ---------- Intestazione ---------- */
/* Intestazione traslucida: il contenuto scorre sotto, sfocato */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 242, 234, .86);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
/* Al posto di un bordo netto, una leggera sfumatura dove il contenuto passa sotto */
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 12px;
  background: linear-gradient(rgba(35, 31, 32, .07), rgba(35, 31, 32, 0));
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.site-header.is-scrolled::after { opacity: 1; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}
.brand { display: block; padding: var(--s2) 0; border-radius: var(--radius); transition: opacity .25s, visibility .25s; }
.brand img { width: 112px; }
/* Il logo piccolo compare quando quello grande esce dallo schermo (vedi main.js; senza JavaScript: nojs.css) */
.site-header:not(.show-brand) .brand { opacity: 0; visibility: hidden; }
.site-header__end { display: flex; align-items: center; gap: var(--s2); }
.nowrap { white-space: nowrap; }

/* Cambio lingua: bandierina sempre visibile nell'intestazione */
.lang {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s3);
  border-radius: var(--radius);
  color: var(--ink); text-decoration: none;
  font: 500 .9375rem var(--font-sans);
  white-space: nowrap;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, transform .1s ease-out;
}
.lang:hover { background: var(--stone); }
.lang:active { transform: scale(.96); }
.lang__flag { flex: none; width: 24px; height: 16px; border-radius: 2px; outline: 1px solid rgba(35, 31, 32, .18); outline-offset: -1px; }
.lang__short { display: none; }
@media (max-width: 400px) {
  .lang { padding: 0 var(--s2); }
  .lang__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang__short { display: inline; }
}

.nav__toggle {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 44px; min-width: 44px;
  padding: var(--s2) var(--s3);
  margin-right: calc(-1 * var(--s3));
  background: none; border: 0; border-radius: var(--radius);
  color: var(--ink);
  font: 500 1rem var(--font-sans);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease-out;
}
.nav__toggle:active { transform: scale(.95); }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav__toggle-bars { position: relative; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Menu su smartphone: pannello sotto l'intestazione */
/* Pannello pieno (non traslucido sopra l'intestazione traslucida): scende dall'intestazione
   e risale per la stessa strada. Le transizioni CSS ripartono dal punto in cui si trovano,
   quindi il menu si può riaprire o richiudere a metà movimento. */
.nav__list {
  position: absolute; left: 0; right: 0; top: 100%;
  display: block;
  padding: var(--s2) var(--gutter) var(--s5);
  background: var(--paper);
  border-top: 1px solid rgba(35, 31, 32, .08);
  box-shadow: 0 16px 24px rgba(35, 31, 32, .12);
  transform-origin: top right;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s ease, transform .28s var(--ease-out), visibility 0s linear .28s;
}
.nav__list.is-open {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s ease, transform .28s var(--ease-out), visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .nav__list, .nav__list.is-open { transform: none; }
}
.nav__list a:not(.btn) {
  display: flex; align-items: center;
  min-height: 48px;
  font-size: 1.125rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(35, 31, 32, .12);
}
.nav__list a:not(.btn):hover { color: var(--red); }
.nav__cta { padding-top: var(--s4); }

/* ---------- Prima schermata ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  padding: var(--s2) 0 var(--s7);
}
/* Le linee dei capelli dei materiali Hair B, usate come decorazione */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  background: url("../img/motivo-linee-grigio.svg") no-repeat center / contain;
  pointer-events: none;
  opacity: .9;
}
.hero::before { width: 300px; height: 590px; left: -190px; top: 0; opacity: .6; }
.hero::after { width: 300px; height: 590px; right: -190px; top: -280px; opacity: .6; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero__text { display: flex; flex-direction: column; align-items: center; width: 100%; container-type: inline-size; }
/* Foto vera di un lavoro del salone (pagina Facebook di Hair B) */
.hero__photo {
  width: min(100%, 440px);
  margin: var(--s7) auto 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--stone);
  aspect-ratio: 3 / 4;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__logo { width: min(80vw, 340px); margin: var(--s3) auto var(--s5); }

.eyebrow {
  margin-bottom: var(--s3);
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
}
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8.4vw, 3.5rem);
  /* Il titolo sta su due righe: la prima frase intera, poi «Semplicemente.».
     La dimensione segue la larghezza della colonna (circa 11 em per «Ci prendiamo cura di voi.»):
     se il titolo cambia, ricalcola questo numero. */
  font-size: min(3.5rem, calc(100cqi / 11.2));
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.02em;          /* testo grande: lettere più strette */
  margin-bottom: var(--s4);
  font-optical-sizing: auto;
  text-wrap: balance;
}
.hero__title-line { display: block; }
/* «We take care of you.» è più corta: in inglese il titolo può essere più grande */
:lang(en) .hero__title { font-size: min(3.5rem, calc(100cqi / 9)); }
.hero__title em { font-style: italic; color: var(--red-dark); }
.hero__lead { font-size: 1.125rem; max-width: 30em; margin: 0 auto var(--s5); text-wrap: balance; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s3) var(--s4); width: 100%; }
.hero__actions .btn--lg { flex: 0 1 360px; justify-content: center; }
.hero__where { margin: var(--s4) 0 0; }
.hero__where a {
  display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px;
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.hero__where .icon { width: 18px; height: 18px; color: var(--red); }
.hero .status { margin-top: var(--s2); }
.intro__body a { color: var(--red); text-underline-offset: 3px; white-space: nowrap; }

/* Stato apertura (calcolato con JavaScript) */
.status {
  display: inline-flex; align-items: center; gap: var(--s2);
  margin: var(--s5) 0 0;
  padding: var(--s1) var(--s3);
  background: var(--paper);
  border-radius: 999px;
  font-size: .9375rem;
}
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); }
.status.is-open .status__dot { background: #2F7D4A; box-shadow: 0 0 0 4px rgba(47, 125, 74, .18); }
.status--card { margin-top: var(--s4); background: var(--cream); }

/* ---------- Sezioni ---------- */
.section { padding: var(--s8) 0; }
.section-head { margin-bottom: var(--s6); }
.section-head__num {
  margin: 0 0 var(--s2);
  font-family: var(--font-serif); font-style: italic;
  font-size: 1.125rem; color: var(--red);
}
.section-head__num::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 40px; height: 1px; margin-left: var(--s3); background: currentColor;
}
.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7.5vw, 3.25rem);
  text-wrap: balance;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.015em;
  font-optical-sizing: auto;
}
.section-head__sub { margin-top: var(--s3); color: var(--muted); }
/* Etichetta sopra i titoli: dice dove sei, il titolo dice qualcosa di concreto */
.section-head__eyebrow {
  display: flex; align-items: center; gap: var(--s3);
  margin: 0 0 var(--s3);
  font-size: .8125rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red);
}
.section-head__eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head--light .section-head__eyebrow { color: var(--on-ink-muted); }

/* Barra in alto: indirizzo, giorni e telefono sempre a portata */
.topbar { background: var(--ink); color: var(--on-ink-muted); font-size: .8125rem; letter-spacing: .02em; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 36px; }
.topbar__item { display: inline-flex; align-items: center; gap: var(--s2); color: inherit; text-decoration: none; min-height: 36px; }
a.topbar__item { color: #fff; }
a.topbar__item:hover { text-decoration: underline; text-underline-offset: 3px; }
.topbar .icon { width: 14px; height: 14px; }
.topbar :focus-visible { outline-color: #fff; }
.topbar__days { display: none; }

/* In breve: tre fatti veri, in grande */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.facts__item { padding: var(--s5) var(--s2) var(--s5) 0; }
.facts__item + .facts__item { padding-left: var(--s3); border-left: 1px solid var(--line); }
.facts__item dt {
  font-family: var(--font-serif); font-size: clamp(1.5rem, 6vw, 2.75rem); line-height: 1;
  letter-spacing: -.02em; font-variant-numeric: lining-nums; color: var(--ink);
}
.facts__item dd { margin: var(--s2) 0 0; font-size: .8125rem; line-height: 1.35; color: var(--muted); }

/* Tre passi per prenotare: una sequenza vera, quindi numerata */
.booking { background: var(--paper); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step);
  display: block; margin-bottom: var(--s3);
  font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; line-height: 1; color: var(--red);
}
.step__title { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; letter-spacing: -.01em; margin-bottom: var(--s2); }
.step__title a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; white-space: nowrap; }
.step p { color: var(--muted); }
.step p a { color: var(--red); text-underline-offset: 3px; }
.section-head--light .section-head__num { color: var(--on-ink-muted); }

/* Il salone */
.intro { background: var(--paper); }
.intro__big {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 5vw, 2rem);
  line-height: 1.3;
  letter-spacing: -.01em;
  font-optical-sizing: auto;
  text-wrap: pretty;
  margin-bottom: var(--s5);
}
.intro__big strong { font-weight: 500; color: var(--red-dark); }
.intro__body p:not(.intro__big) { max-width: 36em; color: var(--muted); }

/* Servizi */
.services { background: var(--cream); }
.services__list { display: grid; gap: var(--s4); }
.service {
  position: relative;
  padding: var(--s6) var(--s5);
  background: var(--paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service::after {
  content: ""; position: absolute; left: var(--s5); right: var(--s5); bottom: 0;
  height: 3px; background: var(--red); transform: scaleX(.12); transform-origin: left;
  transition: transform .4s;
}
@media (hover: hover) and (pointer: fine) {
  .service:hover::after { transform: scaleX(1); }
}
.service__icon { width: 48px; height: 48px; color: var(--red); margin-bottom: var(--s4); }
.service__title { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 400; margin-bottom: var(--s2); }
.service p { color: var(--muted); }
.services__note { margin-top: var(--s6); max-width: 40em; }
.services__note .link-arrow { margin-top: var(--s1); }

/* Galleria */
.gallery-section { background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.gallery__item { display: flex; flex-direction: column; min-width: 0; }
.gallery__item--wide { grid-column: 1 / -1; }
.gallery__link {
  display: block; overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--cream);
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
}
.gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gallery__link:hover img { transform: scale(1.03); }
}

/* ---------- Entrata morbida degli elementi (main.js aggiunge .has-reveal; senza JavaScript è tutto subito visibile) ---------- */
.has-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.has-reveal .reveal.is-in { opacity: 1; transform: none; }
/* La foto della prima schermata si assesta piano mentre la pagina si apre */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img { animation: hero-settle 1.6s var(--ease-out) both; }
}
@keyframes hero-settle {
  from { transform: scale(1.08); }
  to { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .has-reveal .reveal { transform: none; transition: opacity .3s ease; transition-delay: 0ms; }
}
.gallery__link { transition: transform .1s ease-out; -webkit-tap-highlight-color: transparent; }
.gallery__link:active { transform: scale(.98); }
.gallery__caption { margin: var(--s2) 0 0; font-size: .9375rem; color: var(--muted); }
.gallery__ph {
  position: relative;
  display: flex; align-items: flex-end;
  aspect-ratio: 4 / 5;
  padding: var(--s3);
  border-radius: var(--radius-lg);
  background: var(--stone) url("../img/motivo-linee-chiaro.svg") no-repeat 30% 40% / 90% auto;
  overflow: hidden;
}
.gallery__ph span {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.gallery__item--more { justify-content: flex-start; }
.gallery__fb {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s4);
  aspect-ratio: 3 / 4;
  padding: var(--s4);
  border-radius: var(--radius-lg);
  background: var(--ink); color: #fff;
  font-family: var(--font-serif); font-size: 1.125rem; line-height: 1.3;
  text-decoration: none;
  transition: background-color .2s;
}
.gallery__fb .icon { width: 32px; height: 32px; color: var(--on-ink-muted); }
.gallery__fb:hover { background: var(--red); }
.gallery__fb:hover .icon { color: #fff; }

/* Orari */
.hours { background: var(--stone); }
.hours__card {
  padding: var(--s5) var(--s4);
  background: var(--paper);
  border-radius: var(--radius-lg);
}
.hours__list { margin: 0; display: grid; gap: var(--s1); }
.hours__row {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; align-items: start; gap: var(--s1) var(--s4);
  padding: var(--s3) var(--s3);
  border-radius: var(--radius);
}
.hours__row dt { font-weight: 500; }
.hours__row dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.hours__slot { display: block; }
.hours__sep { display: none; color: var(--line); padding: 0 2px; }
.hours__note { display: block; font-size: .8125rem; color: var(--muted); }
.hours__row--closed dd { color: var(--muted); }
.hours__row.is-today { background: var(--cream); border-radius: var(--radius); }
.hours__row.is-today::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--red); border-radius: 2px;
}
.hours__row.is-today dt::after {
  content: "oggi"; margin-left: var(--s2);
  padding: 2px var(--s2);
  border-radius: 999px;
  background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px;
}
:lang(en) .hours__row.is-today dt::after { content: "today"; }

/* Contatti e come arrivare */
.visit {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
}
.visit::before {
  content: ""; position: absolute; right: -120px; bottom: -160px;
  width: 360px; height: 700px;
  background: url("../img/motivo-linee-scuro.svg") no-repeat center / contain;
  opacity: .5; pointer-events: none;
}
.visit .wrap { position: relative; }
.visit__grid { display: grid; gap: var(--s7); }
.visit__title {
  display: flex; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
  font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400;
}
.visit__title .icon { width: 24px; height: 24px; color: var(--on-ink-muted); }
.visit__address { font-size: 1.25rem; line-height: 1.5; margin-bottom: var(--s3); }
.visit__hint { margin-bottom: var(--s5); }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); margin-top: var(--s5); }
.visit p { color: var(--on-ink-muted); }
.contact-list li { padding: var(--s2) 0; }
.contact-list li:first-child { padding-top: 0; }
/* Ogni contatto: icona + valore (l'etichetta resta per i lettori di schermo) */
.contact-list__value {
  display: inline-flex; align-items: center; gap: var(--s3); min-height: 44px;
  font-size: 1.125rem; text-decoration: none; overflow-wrap: anywhere;
}
.contact-list__value .icon { flex: none; width: 22px; height: 22px; color: var(--on-ink-muted); }
.contact-list__value:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-list__value--big { font-family: var(--font-serif); font-size: 2rem; letter-spacing: .01em; }

/* Invito finale */
.cta-band {
  position: relative; overflow: hidden;
  padding: var(--s8) 0;
  background: var(--red); color: #fff;
  text-align: center;
}
.cta-band :focus-visible { outline-color: #fff; }
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: -120px;
  width: 300px; height: 590px; transform: translateX(-200%); opacity: .35;
  background: url("../img/motivo-linee-chiaro.svg") no-repeat center / contain;
  pointer-events: none;
}
.cta-band__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-band__title { font-family: var(--font-serif); font-size: clamp(2rem, 7vw, 3rem); font-weight: 400; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; margin-bottom: var(--s2); }
.cta-band__text { font-size: 1.125rem; margin-bottom: var(--s5); }

/* Piè di pagina */
.site-footer {
  padding: var(--s7) 0 calc(var(--s7) + 72px);   /* spazio per la barra rapida */
  background: var(--cream); color: var(--muted);
  font-size: .9375rem;
}
.site-footer__grid { display: grid; gap: var(--s5); }
.site-footer__brand img { width: 160px; }
.site-footer strong { color: var(--ink); font-weight: 500; }
.site-footer a { color: var(--ink); text-underline-offset: 3px; }
.site-footer__info a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__info p { line-height: 1.5; }
.site-footer__links ul { display: flex; flex-direction: column; }
.site-footer__links a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; }
.site-footer__copy { margin-top: var(--s3); }

/* Barra rapida su smartphone */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2);
  padding: var(--s2) var(--s3) calc(var(--s2) + env(safe-area-inset-bottom));
  background: rgba(248, 242, 234, .86);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 -6px 20px rgba(35, 31, 32, .08);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .3s, visibility .3s;
}
.quickbar.is-visible { transform: none; visibility: visible; }
.quickbar__btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; border-radius: 4px;
  border: 2px solid var(--ink);
  font-weight: 500; text-decoration: none;
  background: var(--paper);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .1s ease-out;
}
.quickbar__btn:active { transform: scale(.97); }
.quickbar__btn--call { background: var(--red); border-color: var(--red); color: #fff; }

/* Visualizzatore foto */
.lightbox {
  position: fixed; inset: 0;
  width: 100%; max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: var(--s8) var(--s3) var(--s7);
  border: 0;
  background: rgba(20, 17, 18, .96); color: #fff;
}
.lightbox::backdrop { background: rgba(20, 17, 18, .8); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
/* Il visualizzatore nasce dalla foto toccata (--ox/--oy) e ci ritorna alla chiusura */
.lightbox {
  opacity: 0;
  transform: scale(.94);
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: opacity .2s ease, transform .3s var(--ease-out), overlay .3s allow-discrete, display .3s allow-discrete;
}
.lightbox[open] { opacity: 1; transform: none; }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(.94); } }
/* La foto segue il dito 1:1 (vedi main.js) */
.lightbox__figure { touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.lightbox__figure.is-dragging { cursor: grabbing; }
.lightbox__img { -webkit-user-drag: none; pointer-events: none; }
.lightbox__btn, .lightbox__close { touch-action: manipulation; transition: background-color .2s, transform .1s ease-out; }
.lightbox__close:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox[open] { transform: none; }
  @starting-style { .lightbox[open] { transform: none; } }
}
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--s3); max-width: 100%; max-height: 100%; }
.lightbox__img { max-width: 100%; max-height: calc(100dvh - 200px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox__caption { text-align: center; color: var(--on-ink-muted); max-width: 40em; }
.lightbox__count { position: absolute; top: var(--s4); left: var(--s4); margin: 0; font-size: .9375rem; color: var(--on-ink-muted); }
.lightbox__btn, .lightbox__close {
  position: absolute;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1); color: #fff;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%;
  font: 400 1.75rem/1 var(--font-sans);
  cursor: pointer;
}
.lightbox__btn:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn--prev:active { transform: scale(.94); }
.lightbox__btn--next:active { transform: scale(.94); }
.lightbox__close { top: var(--s3); right: var(--s3); }
.lightbox__btn--prev { left: var(--s3); bottom: var(--s3); }
.lightbox__btn--next { right: var(--s3); bottom: var(--s3); }
.lightbox__btn[hidden] { display: none; }

/* ---------- Pagina interna (privacy) ---------- */
.page { padding: var(--s7) 0 var(--s8); background: var(--paper); }
.page__head { margin-bottom: var(--s6); }
.page h1 { font-family: var(--font-serif); font-size: clamp(2rem, 7vw, 3rem); font-weight: 400; }
.page h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 400; margin: var(--s7) 0 var(--s3); }
.page .prose { max-width: 42em; }
.page .prose ul { list-style: disc; padding-left: var(--s5); margin-bottom: var(--s4); }
.page .prose li { margin-bottom: var(--s2); }
.page .prose a { color: var(--red); text-underline-offset: 3px; }
.page .prose a.btn { text-decoration: none; }
.page .prose a.btn--red { color: #fff; }
.page .prose a.btn--ghost { color: var(--ink); }
.page .prose a.btn--ghost:hover { color: var(--paper); }
.page__updated { color: var(--muted); font-size: .9375rem; }
.page--error { min-height: 60vh; display: flex; align-items: center; }

/* =========================================================
   Schermi più grandi
   ========================================================= */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .services__list { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .hours__card { padding: var(--s6); }
  .gallery { gap: var(--s4); }
}

/* Tablet: i tre passi per prenotare uno accanto all'altro */
@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  :root { --header-h: 80px; --gutter: 40px; }
  body { font-size: 1.125rem; }

  /* Menu orizzontale */
  .nav__toggle { display: none; }
  .nav__list, .nav__list.is-open {
    position: static; display: flex; align-items: center; gap: var(--s5);
    padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__list a:not(.btn) {
    min-height: 44px; font-size: 1rem; border: 0;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px;
    text-decoration-color: transparent;
    transition: text-decoration-color .2s ease, color .2s ease;
  }
  .nav__list a:not(.btn):hover { text-decoration-color: currentColor; }
  .nav__cta { padding: 0; }
  .brand img { width: 136px; }
  .site-header__end { gap: var(--s4); }

  .hero { padding: var(--s8) 0 var(--s9); }
  .hero::before { width: 520px; height: 1010px; left: -170px; top: -60px; opacity: .9; }
  .hero::after { width: 420px; height: 820px; right: -100px; top: -380px; opacity: .9; }
  .cta-band::before { transform: translateX(-260%); opacity: .45; }
  .hero__logo { width: 420px; margin-top: 0; }
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: var(--s8);
    align-items: center;
  }
  .hero__photo { margin: 0; }
  .hero__lead { font-size: 1.25rem; }

  .section { padding: var(--s9) 0; }
  .intro__grid, .hours__grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s8); align-items: start; }
  .intro__grid .section-head, .hours__grid .section-head { position: sticky; top: calc(var(--header-h) + var(--s6)); }

  .service { padding: var(--s7) var(--s6); }
  .topbar__days { display: inline-flex; }
  .facts__item { padding: var(--s6) var(--s5) var(--s6) 0; }
  .facts__item + .facts__item { padding-left: var(--s6); }
  .facts__item dd { font-size: .9375rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .hours__slot { display: inline; }
  .hours__sep { display: inline; }

  .gallery { gap: var(--s5); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__fb { padding: var(--s5); font-size: 1.375rem; }

  .visit__grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--s7); }
  .visit::before { width: 520px; height: 1010px; right: -60px; bottom: -380px; }

  .cta-band { padding: var(--s9) 0; }

  .site-footer { padding-bottom: var(--s7); }
  .site-footer__grid { grid-template-columns: 1fr 1.4fr 1fr; gap: var(--s7); align-items: start; }

  .quickbar { display: none; }

  .lightbox { padding: var(--s8) var(--s9); }
  .lightbox__btn--prev { left: var(--s5); bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox__btn--next { right: var(--s5); bottom: auto; top: 50%; transform: translateY(-50%); }
  .lightbox__close { top: var(--s5); right: var(--s5); }
  .lightbox__img { max-height: calc(100dvh - 180px); }
}

@media (min-width: 1200px) {
  .hero__title { font-size: min(4rem, calc(100cqi / 11.2)); }
  :lang(en) .hero__title { font-size: min(4rem, calc(100cqi / 9)); }
  /* Su schermi larghi la foto guida la prima schermata */
  .hero { padding-top: var(--s6); }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); }
  .hero__photo { width: 100%; aspect-ratio: 5 / 6; }
}

/* Stampa: solo l'essenziale */
@media print {
  .site-header, .quickbar, .lightbox, .hero::before, .hero::after, .visit::before, .cta-band::before { display: none !important; }
  .visit, .site-footer { background: #fff; color: #000; }
}

/* I numeri di telefono non vanno mai a capo */
a[href^="tel:"] { white-space: nowrap; }

/* Trasparenza ridotta: superfici piene, niente sfocatura */
@media (prefers-reduced-transparency: reduce) {
  .site-header, .quickbar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .quickbar { border-top-color: var(--line); }
}

/* Contrasto elevato: fondi pieni, bordi netti, testi secondari più scuri */
@media (prefers-contrast: more) {
  :root { --muted: #3A3431; --line: #8A817C; }
  .site-header, .quickbar { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header { border-bottom: 1px solid var(--ink); }
  .site-header::after { display: none; }
  .service, .hours__card, .status { border: 1px solid var(--ink); }
}

@media (max-width: 380px) {
  .topbar__address { font-size: .75rem; }
}

/* In stampa: tutto visibile anche se non si è scorsa la pagina */
@media print {
  .has-reveal .reveal { opacity: 1 !important; transform: none !important; }
}
