/* =========================================================
   FERRO – template per barbieri · style.css
   ✏️ MODIFICA: colori e font sono qui sotto, in :root
   ========================================================= */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-variable-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f2f3f0;      /* piastrella bianca */
  --paper-2: #e8eae6;
  --ink: #1b1c1c;        /* testo */
  --muted: #5b5f61;
  --line: #d6d9d4;
  --blood: #7a1b20;      /* pelle della poltrona */
  --blood-2: #63151a;
  --on-blood: #f7eeec;
  --chrome: #a9afb2;
  --ok: #1f6b45;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125%;          /* larghezza dei titoli (62%–125%) */
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
[hidden] { display: none !important; }
html[data-lang="it"] [lang="en"], html[data-lang="en"] [lang="it"] { display: none !important; }
:focus-visible { outline: 3px solid var(--blood); outline-offset: 3px; border-radius: 4px; }
.book :focus-visible { outline-color: var(--on-blood); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

h1, h2, h3, .brand, .price__eur, .facts strong {
  font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.025em; margin: 0;
}
h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1; }
h3 { font-size: 24px; line-height: 1.1; }
p { margin: 0; }

/* ---------- Bottoni e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--blood); color: var(--on-blood);
  font: 650 16px/1 var(--font); font-stretch: 112%; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--blood-2); }
.btn:active { transform: translateY(1px); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn--light { background: var(--on-blood); color: var(--blood); }
.btn--light:hover { background: #fff; }
.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--chrome);
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-size: 26px; text-decoration: none; text-transform: uppercase; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  min-width: 44px; min-height: 42px; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); font: 600 14px/1 var(--font); cursor: pointer;
}
.lang:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: end; }
.hero__text { padding-bottom: clamp(8px, 3vw, 40px); }
.hero__title {
  font-size: clamp(44px, 6.6vw, 96px); line-height: .92; letter-spacing: -0.035em;
  margin: 18px 0 26px; text-wrap: balance;
}
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero__photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }

.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--chrome); }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }

.facts {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; padding-bottom: 8px;
}
.facts li { display: flex; flex-direction: column; gap: 4px; border-top: 2px solid var(--ink); padding-top: 14px; color: var(--muted); font-size: 15px; }
.facts strong { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; color: var(--ink); }

/* ---------- Sezioni ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding-top: 0; }
.head { display: grid; gap: 14px; max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.head p { color: var(--muted); font-size: 18px; }
.head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }

/* ---------- Listino ---------- */
.price-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.price { border-bottom: 1px solid var(--line); }
.price__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) 90px 110px; grid-template-areas: "name time eur" "desc time eur";
  column-gap: 24px; row-gap: 4px; align-items: center; padding: 22px 12px;
  transition: background .2s;
}
.price__btn:hover { background: var(--paper-2); }
.price__btn:focus-visible { outline: 3px solid var(--blood); outline-offset: -3px; }
.price__name { grid-area: name; font-size: 22px; font-weight: 700; font-stretch: 112%; }
.price__desc { grid-area: desc; color: var(--muted); font-size: 16px; }
.price__time { grid-area: time; color: var(--muted); font-size: 15px; text-align: right; }
.price__eur { grid-area: eur; font-size: 32px; text-align: right; font-variant-numeric: tabular-nums; }
.price.is-picked .price__btn { background: var(--paper-2); box-shadow: inset 4px 0 0 var(--blood); }

/* ---------- Prenotazione ---------- */
.book { background: var(--blood); color: var(--on-blood); padding: clamp(72px, 9vw, 120px) 0; }
.book__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.book__intro { position: sticky; top: 100px; display: grid; gap: 18px; }
.book__intro p { font-size: 18px; opacity: .86; max-width: 36ch; }
.book__alt a { font-weight: 700; }

.booker { display: grid; gap: 30px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; font-stretch: 112%; margin-bottom: 14px; padding: 0; }
.step__n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid currentColor; font-size: 14px; font-stretch: 100%;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 16px; border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--on-blood) 34%, transparent);
  font-weight: 600; font-size: 15px; line-height: 1.2; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover > span { border-color: var(--on-blood); }
.chip input:checked + span { background: var(--on-blood); color: var(--blood); border-color: var(--on-blood); }
.chip input:focus-visible + span { outline: 3px solid var(--on-blood); outline-offset: 3px; }
.chip small { font-weight: 500; font-size: 13px; opacity: .8; }
.chips--days .chip > span { min-width: 72px; }
.chips--times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.chips--times .chip > span { font-variant-numeric: tabular-nums; }
.hint { opacity: .8; }

.step--last { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; font-weight: 600; font-size: 15px; }
.field input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid color-mix(in srgb, var(--on-blood) 34%, transparent);
  background: color-mix(in srgb, var(--blood-2) 70%, transparent); color: var(--on-blood); font: 500 17px var(--font);
}
.field input:focus { outline: none; border-color: var(--on-blood); }

.booker__foot { display: grid; gap: 14px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--on-blood) 25%, transparent); }
.summary { font-size: 19px; font-weight: 600; min-height: 1.5em; }
.error { background: var(--on-blood); color: var(--blood); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.booker__foot .btn { justify-self: start; min-height: 56px; padding: 0 32px; font-size: 17px; }

/* ---------- Barbieri ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: clamp(28px, 4vw, 48px); }
.barber { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; padding-top: 18px; border-top: 2px solid var(--ink); }
.barber img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; width: 100%; background: var(--paper-2); }
.barber__text { display: grid; gap: 8px; align-content: end; }
.barber h3 { font-size: clamp(28px, 3vw, 36px); }
.barber__text p { color: var(--muted); }

/* ---------- Lavori ---------- */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.works img { aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; width: 100%; background: var(--paper-2); }

/* ---------- Negozio e recensioni ---------- */
.shop { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 120px) 0; }
.shop__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.shop__photo { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; width: 100%; }
.shop__text { display: grid; gap: 36px; }
.review { margin: 0; display: grid; gap: 10px; padding-left: 22px; border-left: 2px solid var(--blood); }
.review blockquote { margin: 0; font-size: clamp(19px, 1.8vw, 23px); line-height: 1.4; max-width: 44ch; }
.review figcaption { color: var(--chrome); font-size: 15px; }

/* ---------- Dove siamo ---------- */
.where { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.where > div:first-child { display: grid; gap: 24px; justify-items: start; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; color: var(--muted); }
.hours tr.is-today td { font-weight: 700; color: var(--ink); }
address { font-style: normal; line-height: 1.7; }
.map { min-height: 420px; border-radius: 4px; overflow: hidden; background: var(--paper-2); display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }
.map__consent { align-self: center; justify-self: center; max-width: 380px; padding: 28px; display: grid; gap: 16px; justify-items: start; }
.map__consent p { color: var(--muted); font-size: 15px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blood); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 15px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand--footer { color: var(--ink); font-size: 22px; }

/* ---------- Bottone fisso su telefono ---------- */
.fab {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30;
  display: none; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px;
  background: var(--blood); color: var(--on-blood); font-weight: 650; text-decoration: none;
  box-shadow: 0 10px 30px rgba(60, 10, 14, .35);
  transform: translateY(140%); transition: transform .3s;
}
.fab.is-visible { transform: none; }

/* ---------- Pagina privacy ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1; margin-bottom: 20px; }
.legal h2 { font-size: 26px; margin: 48px 0 14px; }
.legal p, .legal li { color: #34383a; }
.legal ul { padding-left: 20px; display: grid; gap: 10px; }
.legal p + p, .legal .table-wrap + p { margin-top: 14px; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.legal table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; border-bottom: 2px solid var(--ink); }
.fill { background: #f6e3a6; padding: 0 3px; border-radius: 3px; }

/* ---------- Animazione d'ingresso (solo il titolo) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title, .js .hero__lead, .js .hero__cta { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__lead { animation-delay: .12s; }
  .js .hero__cta { animation-delay: .2s; }
  .js .hero__photo img { animation: unveil 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes unveil { from { transform: scale(1.08); opacity: .4; } }
  .chip input:checked + span { animation: pop .25s ease-out; }
  @keyframes pop { 50% { transform: scale(1.05); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Tablet ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .book__grid, .shop__grid, .where { grid-template-columns: 1fr; }
  .book__intro { position: static; }
  .works { grid-template-columns: repeat(2, 1fr); }
  .shop__photo { aspect-ratio: 16 / 10; }
}

/* ---------- Telefono ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__title { margin: 14px 0 18px; }
  .hero__photo { aspect-ratio: 4 / 3; margin: 0 calc(var(--gutter) * -1); border-radius: 0; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts li { flex-direction: row; align-items: baseline; gap: 14px; border-top-width: 1px; padding: 12px 0; }
  .facts li:first-child { border-top-width: 2px; }
  .facts strong { min-width: 84px; font-size: 28px; }
  .head--row { grid-template-columns: 1fr; }
  .price__btn { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name eur" "desc eur" "time eur"; padding: 18px 12px; column-gap: 16px; }
  .price__time { text-align: left; font-size: 14px; }
  .price__name { font-size: 19px; }
  .price__eur { font-size: 26px; }
  .step--last { grid-template-columns: 1fr; }
  .chips--days { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .chips--days::-webkit-scrollbar { display: none; }
  .chips--days .chip { flex: 0 0 auto; }
  .booker__foot .btn { justify-self: stretch; }
  .fab { display: flex; }
  .map, .map iframe { min-height: 340px; }
  .footer { padding-bottom: 96px; }
}
