/* =========================================================
   Alberto Agosta — Atelier del capello
   Direzione: editoriale notturno. Avorio, inchiostro, blu atelier, ottone.
   Tipografia: Playfair Display (display) + Instrument Sans (testo), self-hostate.
   ========================================================= */

/* Font self-hostati: nessuna richiesta a servizi terzi. Licenze SIL OFL in assets/fonts/OFL.txt. */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/playfair-display-latin.woff2") format("woff2");
  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: "Playfair Display";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/playfair-display-italic-latin.woff2") format("woff2");
  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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
  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;
}

:root {
  --ivory: #f5f1e9;
  --ivory-deep: #ebe4d6;
  --ink: #1a1613;
  --ink-soft: #4d453d;
  --muted: #675e54;
  --night: #12202b;
  --night-soft: #1b2e3d;
  --brass: #a9803f;
  --brass-ink: #7a5622;
  --brass-light: #d8bc86;
  --line: rgba(26, 22, 19, 0.14);
  --line-light: rgba(245, 241, 233, 0.18);
  --destructive: #b91c1c;
  --display: "Playfair Display", Didot, Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 4.6vw, 68px);
  --max: 1320px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--brass-light);
  color: var(--ink);
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--ivory);
  border-radius: 2px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Tipografia condivisa ---------- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  margin: 0;
}

.section {
  padding: clamp(76px, 9.5vw, 140px) var(--gutter);
}

.section > * {
  max-width: var(--max);
  margin-inline: auto;
}

.kicker {
  margin: 0 0 14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  color: var(--brass-ink);
}

.kicker--light {
  color: var(--brass-light);
}

.section__head {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section__head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

.section__title {
  font-size: clamp(2.15rem, 4.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn:hover {
  background: var(--night);
  transform: translateY(-1px);
}

.btn--small {
  min-height: 44px;
  padding: 0 22px;
  font-size: 0.9rem;
}

.btn--brass {
  background: var(--brass-light);
  color: var(--ink);
}

.btn--brass:hover {
  background: var(--ivory);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.btn--danger {
  background: transparent;
  color: var(--destructive);
  border-color: var(--destructive);
}

.btn--danger:hover,
.btn--danger:focus-visible {
  background: var(--destructive);
  color: var(--ivory);
  border-color: var(--destructive);
}

.link-arrow {
  position: relative;
  display: inline-block;
  min-height: 44px;
  padding-bottom: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover::after,
.link-arrow:focus-visible::after {
  transform: scaleX(1);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 233, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 241, 233, 0.96);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1500px;
  min-height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  line-height: 1;
}



.nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
  margin-left: auto;
  font-size: 0.93rem;
}

.nav a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem;
  text-decoration: none;
}

.mobile-menu a:last-child {
  border-bottom: 0;
  color: var(--brass-ink);
}

.mobile-menu__note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  min-height: calc(100svh - var(--header-h));
  background: var(--ivory);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 6vw, 84px) clamp(28px, 4.4vw, 76px)
    clamp(36px, 4vw, 52px) var(--gutter);
}

.hero__place {
  margin: 0 0 18px;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.9rem, 6.2vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
}

.hero__title span {
  display: block;
  animation: settle 1s var(--ease) both;
}

.hero__title span:nth-child(2) {
  font-style: italic;
  animation-delay: 0.1s;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__lead {
  max-width: 40ch;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  font-size: clamp(1.02rem, 1.2vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: clamp(24px, 3vw, 36px);
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 520px;
  margin: clamp(32px, 4vw, 52px) 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__facts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero__facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero__facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.3;
}

.hero__facts a {
  text-decoration: none;
}

.hero__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--night);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  animation: reveal-image 1.15s var(--ease) both;
}

@keyframes reveal-image {
  from {
    clip-path: inset(0 0 100% 0);
    transform: scale(1.04);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

.hero__media figcaption {
  position: absolute;
  left: 24px;
  bottom: 22px;
  padding: 8px 14px;
  background: rgba(18, 32, 43, 0.72);
  backdrop-filter: blur(6px);
  color: var(--ivory);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

/* ---------- Banda ---------- */

.band {
  padding: 16px var(--gutter);
  border-block: 1px solid var(--line);
  background: var(--ivory);
}

.band__item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 42px;
  max-width: var(--max);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.band__item span + span {
  position: relative;
  padding-left: 42px;
}

.band__item span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Atelier ---------- */

.atelier__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: start;
}

.atelier__text {
  max-width: 56ch;
  color: var(--ink-soft);
}

.atelier__text .lead {
  margin-top: 0;
  font-size: clamp(1.22rem, 1.7vw, 1.42rem);
  line-height: 1.55;
  color: var(--ink);
}

.atelier__text p {
  margin: 0 0 1.15em;
}

.signature {
  margin-top: 30px !important;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--brass-ink);
}

.atelier__media {
  margin: clamp(28px, 5vw, 68px) 0 0;
}

.atelier__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Foto ---------- */

.works__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.7fr);
  gap: clamp(24px, 6vw, 90px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 48px);
}

.works__intro {
  max-width: 42ch;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.98rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.filter {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  min-height: 44px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.filter:hover {
  color: var(--ink);
}

.filter.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(24px, 3vw, 38px);
}

.work {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  overflow: hidden;
  border-radius: 2px;
  text-align: left;
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s var(--ease);
}

.work:hover img,
.work:focus-visible img {
  transform: scale(1.035);
}


.work[hidden] {
  display: none;
}

.works__cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  aspect-ratio: 4 / 5;
  padding: clamp(18px, 2vw, 28px);
  background: var(--night);
  color: var(--ivory);
  border-radius: 2px;
}

.works__cta p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.2;
}

.works__cta .link-arrow {
  align-self: flex-start;
  color: var(--brass-light);
  font-size: 0.86rem;
}

.works__grid.is-filtered .works__cta {
  display: none;
}

/* ---------- Instagram ---------- */

.ig {
  position: relative;
  background: var(--ivory-deep);
  border-top: 1px solid var(--line);
}

.ig::before {
  content: "";
  position: absolute;
  top: -1px;
  left: var(--gutter);
  width: 56px;
  height: 2px;
  background: var(--brass);
}

.ig__intro {
  max-width: 30ch;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.ig__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(28px, 4vw, 48px);
}

.ig__card {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transition: transform 0.35s var(--ease);
}

.ig__card:hover {
  transform: translateY(-4px);
}

.ig__foot {
  margin-top: clamp(22px, 3vw, 34px);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 860px) { .ig__grid { gap: 14px; } }

@media (max-width: 620px) {
  .ig__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .ig__card { flex: 0 0 82vw; scroll-snap-align: center; }
  .ig__foot { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .ig__card:hover { transform: none; }
}

/* ---------- Listino ---------- */

.services {
  background: var(--ivory);
  border-top: 1px solid var(--line);
}

.services__note {
  max-width: 40ch;
  margin: 0 0 4px;
  font-size: 0.93rem;
  color: var(--muted);
}

.services__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
}

.service-group h3 {
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.service-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.service-list__name {
  font-size: 0.99rem;
  line-height: 1.35;
}

.service-list__name small {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
}

.service-list__time {
  font-size: 0.76rem;
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
}

.service-list__price {
  font-family: var(--display);
  font-size: 1.12rem;
  white-space: nowrap;
}

/* ---------- Prenotazione ---------- */

.booking {
  background: var(--night);
  color: var(--ivory);
  padding: clamp(72px, 9vw, 124px) var(--gutter);
}

.booking__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(40px, 6vw, 92px);
  max-width: var(--max);
  margin-inline: auto;
  align-items: start;
}

.booking__title {
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1.02;
  color: var(--ivory);
}

.booking__copy {
  max-width: 42ch;
  margin: 26px 0 0;
  color: rgba(245, 241, 233, 0.72);
}

.booking__points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: rgba(245, 241, 233, 0.86);
}

.booking__points li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--line-light);
}

.booking__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 7px;
  height: 7px;
  background: var(--brass-light);
  border-radius: 50%;
}

.booking__phone {
  margin-top: 26px;
  font-size: 0.92rem;
  color: rgba(245, 241, 233, 0.7);
}

.booking__phone a {
  color: var(--brass-light);
}

.booking__panel {
  background: var(--ivory);
  color: var(--ink);
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid rgba(245, 241, 233, 0.2);
}

.booking-form__summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.booking-form__summary-label {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.booking-form__summary-value {
  font-family: var(--display);
  font-size: 1.16rem;
  line-height: 1.3;
  min-height: 1.3em;
  white-space: pre-line;
}

/* Servizi: pill selezionabili e totale */
.services-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* La checkbox resta nell'albero per tastiera/screen reader, ma è invisibile. */
.service-pill input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
}

.pill-body {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.86rem;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.service-pill:hover .pill-body { border-color: var(--brass); }
.service-pill:active .pill-body { transform: scale(.97); }

.pill-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--brass);
  transition: background-color .18s var(--ease), box-shadow .18s var(--ease);
}
.pill-name { white-space: nowrap; }
.pill-price {
  font-family: var(--display);
  font-weight: 400;
  margin-left: 2px;
  white-space: nowrap;
}

.service-pill input:checked + .pill-body {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}
.service-pill input:checked + .pill-body .pill-dot {
  background: var(--brass);
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169,128,63,.22);
}
.service-pill input:focus-visible + .pill-body {
  outline: none;
  box-shadow: 0 0 0 3px rgba(169,128,63,.5);
}

.service-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.service-total__count {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.service-total__value {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--ink);
}

.field {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.field legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

.field > label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: var(--muted);
}

.optional {
  color: inherit;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 0.96rem;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

textarea {
  resize: vertical;
  min-height: 72px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(26, 22, 19, 0.3);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  background: var(--ivory-deep);
  box-shadow: 0 0 0 3px rgba(169, 128, 63, 0.35);
}

input.is-invalid,
select.is-invalid {
  border-color: #8c1d18;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.field__hint {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.field__error {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #8c1d18;
}

/* calendario */

.dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.date {
  flex: 0 0 70px;
  padding: 10px 4px 11px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  text-align: center;
  line-height: 1.25;
  font-size: 0.7rem;
  color: var(--muted);
  min-height: 44px;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}

.date strong {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}

.date:hover:not(:disabled) {
  border-color: var(--ink);
}

.date[aria-pressed="true"] {
  background: var(--night);
  border-color: var(--night);
  color: var(--ivory);
}

.date[aria-pressed="true"] strong {
  color: var(--ivory);
}

.date:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* orari */

.slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.slots__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.slot {
  min-height: 44px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 0.86rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.slot:hover:not(:disabled) {
  border-color: var(--ink);
}

.slot[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.slot:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  text-decoration: line-through;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-row .field {
  margin-top: 24px;
}

.consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 22px 0 20px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--night);
}

.consent a {
  color: var(--ink);
}

/* Consenso foto usa esattamente lo stile `.consent` delle altre checkbox. */

/* Seconda checkbox: stesso stile della privacy, ma incollata ad essa. */
.consent--email {
  margin-top: -8px;
}

.booking-form__submit {
  width: 100%;
}

.booking-form__status {
  min-height: 1.1em;
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #8c1d18;
}

/* conferma */

.booking-success {
  padding: 6px 0 2px;
}

.booking-success__mark {
  margin: 0 0 8px;
  font-family: var(--display);
  font-style: italic;
  color: var(--brass-ink);
  font-size: 1.05rem;
}

.booking-success h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.booking-success > p {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.booking-success__recap {
  margin: 24px 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.booking-success__recap div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.booking-success__recap dt {
  color: var(--muted);
}

.booking-success__recap dd {
  margin: 0;
}

.booking-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Voci ---------- */

.voices {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(32px, 6vw, 90px);
  padding: clamp(66px, 8vw, 110px) var(--gutter);
  background: var(--ivory-deep);
  border-block: 1px solid var(--line);
}

.voices > * {
  max-width: 100%;
}

.voices__quote {
  margin: 0;
  max-width: var(--max);
}

.voices__quote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.9vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.voices__quote footer {
  margin-top: 20px;
  font-size: 0.82rem;
  color: var(--muted);
}

.voices__aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding-left: clamp(0px, 2vw, 28px);
  border-left: 1px solid rgba(26, 22, 19, 0.16);
}

.voices__rating {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.voices__rating strong {
  font-family: var(--display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
  color: var(--brass-ink);
}

.voices__rating span {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.voices__second {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.voices__second span {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Contatti ---------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 7vw, 100px);
  align-items: start;
}

.contact > * {
  max-width: 100%;
}

.contact__address {
  margin: 26px 0 0;
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-style: normal;
  line-height: 1.45;
}

.contact__list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.contact__list li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}

.contact__list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hours {
  width: 100%;
  max-width: 430px;
  margin: 30px 0 26px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours caption {
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass-ink);
}

.hours th,
.hours td {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-weight: 400;
  text-align: left;
}

.hours td {
  text-align: right;
  color: var(--muted);
}

.contact__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---------- Footer ---------- */

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) var(--gutter) 40px;
  background: var(--night);
  color: var(--ivory);
}

.site-footer__brand 
.site-footer__logo {
  display: block;
  width: 220px;
  height: auto;
}

.site-footer__brand p {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(245, 241, 233, 0.62);
}

.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.site-footer__nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: rgba(245, 241, 233, 0.82);
}

.site-footer__nav a:hover {
  color: var(--brass-light);
}

.site-footer__legal {
  max-width: 360px;
  justify-self: end;
  font-size: 0.78rem;
  line-height: 1.55;
  color: rgba(245, 241, 233, 0.64);
}

.site-footer__legal p {
  margin: 0 0 10px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: clamp(16px, 4vw, 56px);
  border: 0;
  background: transparent;
  color: var(--ivory);
}

.lightbox::backdrop {
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.lightbox figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: rgba(245, 241, 233, 0.7);
}

.lightbox figcaption span:first-child {
  color: var(--brass-light);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox figcaption strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ivory);
}

.lightbox figcaption span:last-child {
  font-size: 0.78rem;
}

.lightbox__close {
  position: absolute;
  top: 0;
  right: 0;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(245, 241, 233, 0.4);
}

.lightbox__nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 22px;
  font-size: 0.82rem;
  color: rgba(245, 241, 233, 0.6);
}

.lightbox__nav button {
  min-height: 44px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--ivory);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(245, 241, 233, 0.3);
}

/* ---------- CTA mobile ---------- */

.mobile-cta {
  display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  }

  .hero__title {
    font-size: clamp(3rem, 7.8vw, 5rem);
  }

  .works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .works__cta {
    grid-column: span 2;
    aspect-ratio: auto;
    min-height: 190px;
  }

  .services__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking__intro {
    max-width: 560px;
  }

  /* Su mobile il pannello prenotazione resta fisso in alto mentre scrolli l'intro */
  .booking__panel {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    z-index: 50;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero__copy {
    padding-inline: var(--gutter);
    padding-bottom: 40px;
  }

  .hero__media {
    order: -1;
    height: 62svh;
    min-height: 380px;
  }

  .hero__facts {
    margin-top: 40px;
  }

  .atelier__grid,
  .works__head,
  .section__head--split,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .atelier__media {
    margin-top: 8px;
  }

  .voices {
    grid-template-columns: minmax(0, 1fr);
  }

  .voices__aside {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid rgba(26, 22, 19, 0.16);
  }

  .voices__second {
    max-width: 34ch;
  }

  .contact__media {
    order: -1;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .services__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-list li {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 1rem;
  }

  .site-header__inner {
    min-height: 66px;
    gap: 12px;
  }

  :root {
    --header-h: 66px;
  }



  .hero__title {
    font-size: clamp(2.9rem, 13vw, 4.2rem);
  }

  .hero__actions {
    gap: 18px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .hero__facts div:last-child {
    grid-column: 1 / -1;
  }

  .band__item {
    gap: 8px 22px;
    font-size: 0.72rem;
  }

  .band__item span + span {
    padding-left: 22px;
  }

  .works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .work {
    margin-bottom: 0;
  }

  /* iOS ingrandisce i campi sotto i 16px al focus: mantieni 16px su mobile. */
  input[type=text],
  input[type=tel],
  input[type=email],
  input[type=checkbox],
  select,
  textarea {
    font-size: 16px;
  }

  .field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .date {
    flex-basis: 64px;
  }

  .voices__aside {
    flex-direction: column;
    gap: 22px;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 22px;
  }

  .site-footer__legal {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .lightbox img {
    max-height: 60vh;
  }

  .mobile-cta {
    position: fixed;
    left: 14px;
    right: 70px;
    width: auto;
    bottom: 14px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid rgba(245, 241, 233, 0.22);
    border-radius: 999px;
    background: var(--night);
    color: var(--ivory);
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), visibility 0.4s;
  }

  .mobile-cta::after {
    content: "→";
    font-size: 1rem;
  }

  .mobile-cta.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Sticky bottom booking bar (mobile) */
  .booking-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: flex;
    align-items: center;
    background: var(--night);
    color: var(--ivory);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(245, 241, 233, 0.15);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease);
  }
  .booking-bar.is-visible {
    transform: translateY(0);
  }
  .booking-bar.is-hidden,
  .booking-bar[hidden] {
    display: none !important;
  }
  .booking-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 100%;
  }
  .booking-bar__summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .booking-bar__label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(245, 241, 233, 0.55);
  }
  .booking-bar__value {
    font-family: var(--display);
    font-size: 1.05rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .booking-bar__submit {
    flex-shrink: 0;
    padding: 10px 20px;
    font-size: 0.88rem;
    border-radius: 999px;
  }
  /* Adjust mobile-cta position when booking-bar is visible */
  .booking-bar.is-visible ~ .mobile-cta,
  .mobile-cta.has-booking-bar {
    bottom: calc(14px + 72px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .work:hover img {
    transform: none;
  }
}
/* ---------- faq ---------- */
.faq__list { max-width: 760px; margin: 24px auto 0; }
.faq__item { border-bottom: 1px solid var(--line, rgba(26,22,19,.12)); padding: 14px 0; }
.faq__item summary { cursor: pointer; font-family: var(--display, Georgia, serif); font-size: 1.05rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--brass, #a9803f); }
.faq__item[open] summary::after { content: "−"; }
.faq__item p { margin: 10px 0 0; color: var(--muted, #675e54); font-size: 0.92rem; line-height: 1.6; }

/* ---------- whatsapp float ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 95; width: 48px; height: 48px; border-radius: 50%; background: var(--night); color: var(--ivory); border: 1px solid var(--brass); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); text-decoration: none; transition: transform .2s var(--ease), background-color .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); background: var(--night-soft); }
.wa-float svg { width: 28px; height: 28px; }
/* La regola va dopo la base: a parità di specificità vince l'ordine sorgente. */
@media (max-width: 620px) {
  .wa-float { right: 12px; bottom: 14px; width: 44px; height: 44px; }
  .wa-float svg { width: 24px; height: 24px; }
  body { padding-bottom: 64px; }
}
@media (min-width: 900px) { .wa-float { display: none; } }
/* ---------- logo ---------- */
.brand__logo { height: 48px; width: auto; display: block; }
@media (max-width: 560px) { .brand__logo { height: 36px; } }

/* ---------- Informativa privacy e testi legali ---------- */
.legal {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(48px, 7vw, 100px) var(--gutter) clamp(72px, 10vw, 140px);
}
.legal h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.legal h2 {
  margin-top: clamp(2.2em, 4vw, 3em);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.18;
}
.legal p,
.legal li {
  margin: 0 0 1em;
  color: var(--ink-soft);
}
.legal .kicker { color: var(--brass-ink); }
.legal .legal__updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}
.legal .legal__notice {
  margin: clamp(28px, 4vw, 40px) 0;
  padding: 16px 20px;
  border-left: 3px solid var(--brass);
  background: var(--ivory-deep);
  font-size: 0.92rem;
}
.legal .legal__notice strong { color: var(--ink); }
.legal ul {
  margin: 0 0 1.4em;
  padding-left: 1.25em;
}
.legal__list { margin: 0 0 1.4em; }
.legal__list dt {
  margin-top: 1.4em;
  font-family: var(--display);
  font-size: 1.16rem;
  font-weight: 500;
  color: var(--ink);
}
.legal__list dd {
  margin: 8px 0 0;
  color: var(--ink-soft);
}
.legal code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 3px;
  background: var(--ivory-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.legal__table-wrap {
  margin: 24px 0;
  overflow-x: auto;
}
.legal__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.legal__table caption {
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--display);
  font-style: italic;
  color: var(--brass-ink);
}
.legal__table th,
.legal__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.legal__table thead th {
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.legal > .link-arrow {
  margin-top: clamp(2.5em, 5vw, 4em);
}

/* ---------- Rifiniture della revisione ---------- */

/* Instagram: il post resta un poster locale finché il visitatore non sceglie
   di caricare l'embed di Meta. Niente riquadri bianchi se lo script è bloccato. */
.ig__poster {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ivory-deep);
}

.ig__embed {
  display: block;
  width: 100%;
  margin: 0;
  border: 1px solid #dedede;
  border-radius: 12px;
  background: #fff;
  color: #1a1613;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.ig__embed:hover,
.ig__embed:focus-visible {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  transform: translateY(-2px);
}

.ig__embed-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ivory-deep);
}

.ig__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig__embed-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
}

.ig__embed-by {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 15px;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  text-transform: uppercase;
}

.ig__embed-icon {
  position: relative;
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.ig__embed-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1.2px solid currentColor;
  border-radius: 50%;
}

.ig__embed-account { text-transform: none; }

.ig__embed-title {
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.4;
  color: #1a1613;
}

.ig__embed-caption {
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.4;
  color: #1a1613;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Reveal editoriale: la sezione entra in vista con una maschera, non un fade
   generico. Con reduced-motion il contenuto è subito visibile. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  clip-path: inset(0 0 12% 0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), clip-path 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
}

/* Grana da pellicola, appena percettibile: dà materia alle grandi superfici
   piatte senza aggiungere richieste di rete. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Contrasto delle etichette piccole e dell'outline: il brass puro è sotto
   4,5:1 sull'avorio, il brass-ink no. */
:focus-visible { outline-color: var(--brass-ink); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; clip-path: none; transition: none; }
  body::after { display: none; }
}

/* ---------- Chicche della vetrina ---------- */

.hero__slot {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.hero__slot strong { color: var(--ink); font-weight: 600; }

.slot__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
  animation: slot-pulse 1.9s ease-out infinite;
}

@keyframes slot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(169, 128, 63, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(169, 128, 63, 0); }
}

.booking-progress { margin: 0 0 18px; }
.booking-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.booking-progress__bar { height: 2px; margin-top: 9px; background: var(--line); }
.booking-progress__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brass);
  transition: width 0.4s var(--ease);
}
.booking-progress[data-step="1"] .booking-progress__bar i { width: 33.3%; }
.booking-progress[data-step="2"] .booking-progress__bar i { width: 66.6%; }
.booking-progress[data-step="3"] .booking-progress__bar i { width: 100%; }
.booking-progress[data-step="1"] .booking-progress__steps span:first-child,
.booking-progress[data-step="2"] .booking-progress__steps span:nth-child(2),
.booking-progress[data-step="3"] .booking-progress__steps span:last-child {
  color: var(--ink);
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .work img { filter: grayscale(1); }
  .work:hover img,
  .work:focus-visible img { filter: none; }
}

.footer-marquee {
  grid-column: 1 / -1;
  display: flex;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
}
.footer-marquee__text {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--brass-light);
  animation: marquee-slide 26s linear infinite;
}
@keyframes marquee-slide { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
  .slot__dot { animation: none; }
  .footer-marquee__text { animation: none; }
  .link-arrow::after { transition: none; }
}

.ig__embed-cover .ig__poster { aspect-ratio: auto; }

/* La filosofia in hero: più testo, ma la stessa larghezza di lettura. */
.hero__philosophy { max-width: 52ch; }
.hero__philosophy p {
  margin: 0 0 0.8em;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero__philosophy .hero__lead {
  margin-bottom: 0.9em;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
}

/* La pill resta davvero nascosta quando non ci sono slot: `display` inline
   di base vinceva sull'attributo hidden del browser. */
.hero__slot[hidden] { display: none; }
.hero__title span:nth-child(2) { font-style: normal; }

.service-group__note {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

.services__closing {
  margin: clamp(36px, 5vw, 64px) 0 0;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

/* Foto facoltativa nella richiesta: anteprima piccola, nessun layout shift. */
.photo-field { margin-top: 18px; }
.photo-field input[type=file] {
  display: block;
  width: 100%;
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.photo-field__preview {
  display: block;
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  margin-top: 8px;
  border: 1px solid var(--line);
}
.photo-field__preview[hidden] { display: none; }

.photo-field input[type=file] {
  font-size: 0;
  color: transparent;
}
.photo-field input[type=file]::file-selector-button {
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.photo-field input[type=file]::file-selector-button:hover {
  background: var(--ink);
  color: var(--ivory);
}
