/* Barber Dave Milano — stili
   Palette ricavata dal salone: nero delle poltrone e del logo, pareti chiare,
   noce della parete attrezzata, pietra dei mattoncini. */

:root {
  --ink: #15110E;
  --ink-2: #221C17;
  --paper: #F2EDE5;
  --stone: #DDD4C7;
  --walnut: #7A5435;
  --walnut-light: #C89B6D;
  --text: #2A231D;
  --muted: #62584E;
  --muted-light: #B9AEA1;
  --line: rgba(21, 17, 14, .14);
  --line-light: rgba(242, 237, 229, .16);
  --open: #6E8B5B;
  --closed: #B5603F;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--walnut-light); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: .6rem 1rem; border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */
.eyebrow, .section-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-stretch: 110%;
  color: var(--walnut);
}
.eyebrow--light, .section-label--light { color: var(--walnut-light); }
.section-label { margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.section-label::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section-title {
  font-weight: 800;
  font-stretch: 112%;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--ink);
}
.section-title--xl {
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: .92;
  letter-spacing: -.015em;
}
.section-intro { color: var(--muted); max-width: 30rem; }

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split { display: grid; gap: 1.25rem; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr minmax(0, 26rem); }
}

/* ---------- Bottoni e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.5rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em; text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: .5rem 1.15rem; font-size: .875rem; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: rgba(242, 237, 229, .4); color: var(--paper); }
.btn--ghost-light:hover { border-color: var(--paper); background: rgba(242, 237, 229, .06); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--walnut); }
.btn__hint { font-weight: 400; font-size: .8rem; opacity: .6; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.link-arrow--light { color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-compact { border-bottom-color: var(--line-light); }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-compact .site-header__bar { height: 60px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 148px; transition: width .3s var(--ease); }
.site-header.is-compact .brand img { width: 124px; }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.site-header__phone {
  display: none; font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--muted-light);
}
.site-header__phone:hover { color: var(--paper); }

.site-nav__list { display: flex; gap: 2rem; }
.site-nav__list a {
  font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--muted-light);
  padding: .4rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s;
}
.site-nav__list a:hover, .site-nav__list a[aria-current="true"] { color: var(--paper); border-bottom-color: var(--walnut-light); }
.site-nav__mobile-extra { display: none; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  position: relative;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--paper);
  transition: transform .3s var(--ease), background-color .2s;
}
.menu-toggle__bars { top: 21px; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 1080px) {
  .site-header__phone { display: inline; }
}
@media (max-width: 899px) {
  .menu-toggle { display: block; }
  .brand img { width: 128px; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
    background: var(--ink);
    padding: 2rem var(--gutter) 3rem;
    display: flex; flex-direction: column; justify-content: space-between;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block; padding: 1rem 0; border-bottom: 1px solid var(--line-light);
    font-size: 1.7rem; font-weight: 800; font-stretch: 120%; text-transform: uppercase; color: var(--paper);
  }
  .site-nav__mobile-extra { display: grid; gap: .75rem; margin-top: 2rem; }
  .site-nav__mobile-extra p { color: var(--muted-light); font-size: .9rem; margin-top: .5rem; }
}
@media (max-width: 420px) {
  .site-header__actions .btn--sm { padding: .5rem .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--paper);
  padding-top: var(--header-h);
  display: grid;
}
.hero__text {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
  display: flex; flex-direction: column; justify-content: center;
}
.hero__title { margin: 1.25rem 0 1.5rem; }
.hero__line {
  display: block;
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  font-size: clamp(3.1rem, 10.5vw, 8.4rem);
  line-height: .86;
  letter-spacing: -.02em;
}
.hero__sub {
  display: block; margin-top: 1.1rem;
  font-weight: 500; font-stretch: 100%;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.25;
  color: var(--stone);
}
.hero__lead { max-width: 32rem; color: var(--muted-light); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__media { position: relative; min-height: 70vw; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

@media (min-width: 960px) {
  .hero { grid-template-columns: 1.1fr .9fr; min-height: 100vh; min-height: 100svh; }
  .hero__text { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); padding-right: clamp(2rem, 4vw, 4rem); }
  .hero__media { min-height: 0; }
  .hero__line { font-size: clamp(4rem, 8.4vw, 8.4rem); }
}

/* Stato aperto/chiuso */
.status { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.75rem; font-size: .9rem; font-weight: 500; }
.status--light { color: var(--stone); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted-light); flex-shrink: 0; }
.status.is-open .status__dot { background: var(--open); box-shadow: 0 0 0 4px rgba(110, 139, 91, .22); }
.status.is-closed .status__dot { background: var(--closed); }

/* ---------- Il salone ---------- */
.salone__grid { display: grid; gap: 3rem; }
.salone__body { display: grid; gap: 1rem; margin-top: 1.5rem; color: var(--muted); max-width: 34rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.facts__item { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--walnut); }
.facts dd { font-weight: 600; color: var(--ink); margin-top: .2rem; }

.salone__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.5vw, 1.25rem); align-items: start; }
.salone__img { overflow: hidden; }
.salone__img picture, .salone__img img { width: 100%; }
.salone__img img { aspect-ratio: 3 / 4; object-fit: cover; }
.salone__img--wide { grid-column: 1 / -1; }
.salone__img--wide img { aspect-ratio: 3 / 2; }
.salone__img:nth-child(3) { margin-top: clamp(1.5rem, 4vw, 3.5rem); }
.salone__img figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; }

@media (min-width: 960px) {
  .salone__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .salone__text { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Servizi ---------- */
.services { background: var(--ink); color: var(--paper); }
.services .section-title { color: var(--paper); }
.services .section-intro { color: var(--muted-light); }

.menu { display: grid; gap: 2.75rem; }
@media (min-width: 900px) {
  .menu { grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); }
}
.menu__h {
  font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--walnut-light);
  padding-bottom: .9rem; border-bottom: 1px solid var(--paper);
}
.menu__item {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line-light);
}
.menu__name { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.menu__name small { display: block; font-weight: 400; font-size: .85rem; color: var(--muted-light); margin-top: .15rem; }
.menu__time { font-size: .8rem; color: var(--muted-light); white-space: nowrap; }
.menu__price { font-weight: 800; font-stretch: 115%; font-size: 1.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.services__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.services__note { font-size: .875rem; color: var(--muted-light); max-width: 34rem; }
.services__note a { color: var(--paper); font-weight: 600; white-space: nowrap; }

/* ---------- Galleria ---------- */
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 1.6vw, 1.5rem); }
.gallery__item { margin: 0; }
.gallery__item--a { grid-column: 1 / -1; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; background: var(--stone);
  cursor: zoom-in; overflow: hidden;
}
.gallery__btn img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .7s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.035); }
.gallery__item figcaption {
  display: flex; gap: .6rem; align-items: baseline;
  font-size: .82rem; color: var(--muted); margin-top: .65rem;
}
.gallery__item figcaption span { font-weight: 700; color: var(--walnut); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(12, 1fr); row-gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
  /* Due fasce asimmetriche: foto grande a sinistra sopra, a destra sotto */
  .gallery__item--a { grid-column: 1 / 6; }
  .gallery__item--b { grid-column: 7 / 10; margin-top: clamp(3rem, 7vw, 6rem); }
  .gallery__item--c { grid-column: 10 / 13; }
  .gallery__item--d { grid-column: 1 / 4; }
  .gallery__item--e { grid-column: 4 / 7; margin-top: clamp(3rem, 7vw, 6rem); }
  .gallery__item--f { grid-column: 8 / 13; margin-top: clamp(-6rem, -6vw, -3rem); }
  .gallery__item--b .gallery__btn img,
  .gallery__item--c .gallery__btn img,
  .gallery__item--d .gallery__btn img,
  .gallery__item--e .gallery__btn img { aspect-ratio: 2 / 3; }
}

/* ---------- Recensioni ---------- */
.reviews { background: var(--stone); }
.reviews__grid { display: grid; gap: 3rem; }
.reviews__scores { display: grid; gap: 1.5rem; align-content: start; }
.score { display: flex; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1.25rem; }
.score__big { font-weight: 800; font-stretch: 125%; font-size: clamp(3rem, 6vw, 4.5rem); line-height: .9; color: var(--ink); }
.score__src { font-weight: 600; font-size: .9rem; color: var(--muted); }
.reviews__date { font-size: .8rem; color: var(--muted); }

.quotes { display: grid; gap: 1.75rem; }
.quotes blockquote {
  font-weight: 700; font-stretch: 108%;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem); line-height: 1.2; color: var(--ink);
}
.quotes span { display: block; font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.reviews__summary { margin-top: 2.5rem; color: var(--muted); max-width: 36rem; }
.reviews__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.75rem; color: var(--ink); }

@media (min-width: 900px) {
  .reviews__grid { grid-template-columns: 4fr 7fr; gap: clamp(3rem, 7vw, 7rem); }
}

/* ---------- Orari e contatti ---------- */
.visit__grid { display: grid; gap: 3rem; }
.visit__info { display: grid; gap: 2.25rem; align-content: start; }
.visit__block { display: grid; gap: .6rem; justify-items: start; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.visit__block:last-child { border-bottom: 0; padding-bottom: 0; }
.visit__h { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--walnut); }
.visit__block address { font-size: 1.3rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.visit__muted { color: var(--muted); font-size: .95rem; }
.visit__phone {
  font-weight: 800; font-stretch: 120%; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.1;
  color: var(--ink); text-decoration: none;
}
.visit__phone:hover { color: var(--walnut); }
.visit__block--hours .status { margin-top: 0; }

.hours { width: 100%; max-width: 26rem; border-collapse: collapse; margin-top: .5rem; }
.hours th, .hours td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); font-weight: 800; }
.hours tr.is-today th::after { content: " · oggi"; font-weight: 500; color: var(--walnut); font-size: .85rem; }

.visit__side { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); grid-template-columns: 1fr 1fr; }
.visit__photo img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.map { position: relative; background: var(--ink); color: var(--paper); min-height: 320px; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder {
  position: absolute; inset: 0; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 1.1rem;
  background:
    linear-gradient(var(--line-light) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--ink-2);
}
.map__label { font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.map__label span { font-weight: 400; font-size: .9rem; color: var(--muted-light); }
.map__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.map__note { font-size: .75rem; color: var(--muted-light); }

@media (min-width: 960px) {
  .visit__grid { grid-template-columns: 5fr 7fr; gap: clamp(3rem, 6vw, 6rem); }
}
@media (max-width: 560px) {
  .visit__side { grid-template-columns: 1fr; }
  .visit__photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: .95rem; }
.site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__brand img { width: 190px; }
.site-footer__brand p { margin-top: .9rem; font-size: .85rem; }
.site-footer__h { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--walnut-light); margin: 0 0 .9rem; }
.site-footer p + p { margin-top: .6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer__links { display: grid; gap: .45rem; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-light); font-size: .82rem;
}

/* Firma FICO */
.credit-line { display: inline-flex; align-items: center; gap: .55rem; color: var(--muted-light); }
.credit-text { letter-spacing: .04em; }
.credit-seal img { width: 26px; height: 26px; border-radius: 50%; opacity: .85; transition: opacity .2s; }
.credit-line:hover .credit-seal img { opacity: 1; }

/* ---------- Barra azioni rapide (smartphone) ---------- */
.quickbar { display: none; }
@media (max-width: 899px) {
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom));
    z-index: 40;
    transform: translateY(140%); transition: transform .35s var(--ease);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px;
    font-weight: 700; font-size: .95rem; text-decoration: none;
    background: var(--ink); color: var(--paper); border: 1px solid var(--line-light);
  }
  .quickbar a:first-child { background: var(--paper); color: var(--ink); border-color: var(--ink); }
  .site-footer { padding-bottom: 6.5rem; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(15, 12, 10, .96); color: var(--paper);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15, 12, 10, .9); }
.lightbox__figure { display: grid; gap: .8rem; justify-items: center; padding: 4rem 1rem; }
.lightbox__figure img { max-width: min(92vw, 900px); max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox__figure figcaption { font-size: .85rem; color: var(--muted-light); text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; background: transparent; color: var(--paper); cursor: pointer;
  width: 52px; height: 52px; font-size: 2rem; line-height: 1; border-radius: 50%;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(242, 237, 229, .1); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.6rem; }
.lightbox__nav--prev { left: .5rem; }
.lightbox__nav--next { right: .5rem; }

/* ---------- Comparsa discreta ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

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