@font-face {
  font-family: Bodoni;
  src: url("/assets/bodoni-italic.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}

.header-office {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem .8rem;
  min-height: 2.5rem;
  border: 1px solid #cbb1c3;
  border-radius: 24px;
  color: #692747;
  font-size: .79rem;
  font-weight: 700;
  white-space: nowrap;
}
.header-office i { font-size: 1.15rem; }
.header-office:hover { background: #f0e2ec; }
.office-home-link { text-decoration: underline; text-underline-offset: .2em; }

@media (min-width: 1361px) {
  .site-header--office .desktop-nav {
    position: static;
    transform: none;
    margin-inline: auto;
    gap: clamp(.55rem, 1.15vw, 1.3rem);
  }
  .site-header--office .header-contact { margin-left: 0; }
}
@media (max-width: 590px) {
  .header-office { min-width: 2.35rem; padding-inline: .5rem; }
  .header-office span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-width: 370px) {
  .site-header--office .header-office { display: none; }
}

.office-page {
  --office-paper: #faf9f6;
  --office-plum: #342236;
  --office-muted: #5b4755;
  --office-accent: #892b56;
  --office-border: #e2d3dd;
  color: var(--office-plum);
  background: var(--office-paper);
}
.office-page [hidden] { display: none !important; }
.office-page .service-header nav { font-size: .94rem; }
.office-page .service-header nav a { text-underline-offset: .2rem; }
.office-page a:focus-visible, .office-page button:focus-visible,
.office-page summary:focus-visible, .office-page input:focus-visible,
.office-page select:focus-visible, .office-page textarea:focus-visible,
.office-viewport:focus-visible { outline: 2px solid #a34a74; outline-offset: 3px; }

.office-skip {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .55rem .8rem;
  transform: translateY(-160%);
  z-index: 9;
  background: var(--office-plum);
  color: white;
}
.office-skip:focus { transform: none; }
.office-main {
  width: min(94%, 73rem);
  margin: 0 auto;
  padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2.75rem, 6vw, 5rem);
}
.office-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem);
  align-items: end;
  gap: 1.3rem 3rem;
  margin-bottom: clamp(1.45rem, 4vw, 2.7rem);
}
.office-overline {
  margin: 0 0 .45rem;
  color: var(--office-accent);
  font-size: .9rem;
  line-height: 1.45;
  font-weight: 700;
}
.office-main h1 {
  margin: 0 0 .9rem;
  font: 500 clamp(2.1rem, 5.7vw, 5rem)/1.07 Manrope,Arial,sans-serif;
  letter-spacing: -.06em;
  text-wrap: balance;
}
.office-main h1 em {
  color: var(--office-accent);
  font: italic 400 1.12em/1 Bodoni,Georgia,serif;
}
.office-lead {
  max-width: 64ch;
  margin: 0;
  color: var(--office-muted);
  font-size: clamp(1rem, 1.65vw, 1.18rem);
  line-height: 1.6;
}
.office-availability {
  display: flex;
  align-items: start;
  gap: .7rem;
  padding: .8rem 1rem;
  border: 1px solid var(--office-border);
  border-radius: 12px;
  background: #f3ebf0;
}
.office-dot {
  width: .63rem;
  height: .63rem;
  flex: none;
  margin-top: .53rem;
  border: 1px solid var(--office-accent);
  border-radius: 50%;
  background: #fff7fb;
}
.office-availability p { margin: 0; line-height: 1.4; }
.office-availability .office-booking-link { margin-top: .65rem; }
.office-availability span:last-child { color: var(--office-muted); font-size: .9rem; }
.office-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.15fr) minmax(15rem, 1fr);
  align-items: start;
  gap: 1rem;
}
.office-view {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #4d3650;
  border-radius: 16px;
  background: #2b1d30;
  color: #fbf2f8;
}
.office-view-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 1rem;
  padding: .85rem 1rem;
}
.office-view-head span { color: #e5c7d9; font-size: .86rem; }
.office-viewport {
  position: relative;
  min-width: 0;
  height: clamp(18rem, 40vw, 30rem);
  overflow: hidden;
  background: radial-gradient(ellipse at center, #59415b 0%, #2c1e31 72%);
}
.office-viewport canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}
.office-scene-placeholder {
  position: absolute;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .45rem;
  inset: 0;
  color: #f2d1e4;
  pointer-events: none;
}
.office-scene-placeholder i { font-size: 3.2rem; }
.office-viewport.is-ready .office-scene-placeholder { display: none; }
.office-zone-controls {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: .5rem;
  padding: .65rem;
  border-top: 1px solid #593e5a;
}
.office-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .3rem;
  min-height: 2.8rem;
  border: 1px solid #674b64;
  border-radius: 8px;
  background: transparent;
  color: #fff4f9;
  font: 700 .88rem/1.2 Manrope,Arial,sans-serif;
  text-align: center;
  cursor: pointer;
}
.office-zone i { font-size: 1.17rem; }
.office-zone[aria-pressed="true"], .office-zone:hover {
  background: #e8c3d7;
  border-color: #e8c3d7;
  color: #40233a;
}
.office-side {
  min-width: 0;
  padding: clamp(1rem, 2.8vw, 1.65rem);
  border: 1px solid var(--office-border);
  border-radius: 16px;
  background: #fffdfb;
}
.office-side h2, .office-bottom h2, .office-dialog h2 {
  margin: 0 0 .5rem;
  font: 400 clamp(1.65rem, 2.65vw, 2.4rem)/1.13 Bodoni,Georgia,serif;
}
.office-side-copy p, .office-bottom p {
  margin: 0 0 1rem;
  color: var(--office-muted);
  line-height: 1.55;
}
.office-primary, .office-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  padding: .62rem .95rem;
  min-height: 2.75rem;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #812b55;
  color: #fff;
  font: 700 .93rem/1.4 Manrope,Arial,sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.office-primary:hover { background: #632342; }
.office-secondary { background: #f4e8ef; color: var(--office-accent); border-color: #d7becf; }
.office-secondary:hover { background: #ead4e2; }
#office-join { margin-top: .55rem; }
.office-side details { padding-top: .8rem; margin-top: .85rem; border-top: 1px solid var(--office-border); }
.office-side summary { color: var(--office-accent); cursor: pointer; font-weight: 700; }
.office-side form, .office-dialog form:not([method]), .office-invite-form {
  display: grid;
  justify-items: start;
  width: 100%;
  gap: .45rem;
  margin-top: .65rem;
}
.office-page label { font-size: .91rem; font-weight: 700; line-height: 1.4; }
.office-page label span { font-weight: 500; }
.office-page :is(input,textarea,select) {
  width: 100%;
  min-width: 0;
  min-height: 2.7rem;
  padding: .55rem .64rem;
  border: 1px solid #c5acbc;
  border-radius: 6px;
  background: white;
  color: var(--office-plum);
  font: 1rem/1.45 Manrope,Arial,sans-serif;
}
.office-page textarea { resize: vertical; }
.office-field-help, .office-feedback {
  margin: 0 0 .35rem;
  color: var(--office-muted);
  font-size: .88rem;
  line-height: 1.45;
}
.office-feedback a, .office-text-link {
  color: var(--office-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2rem;
}
.office-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 2rem;
  margin-top: 1.4rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid #e4d3df;
  border-radius: 12px;
  background: #f1e7ee;
}
.office-bottom p { max-width: 64ch; margin: 0; }
.office-dialog {
  width: min(100% - 2rem, 30rem);
  max-height: 90dvh;
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--office-border);
  border-radius: 15px;
  background: var(--office-paper);
  color: var(--office-plum);
}
.office-dialog::backdrop { background: #2b162bcc; }
.office-dialog h2 { padding-right: 1.75rem; }
.office-dialog p { margin: 0 0 .8rem; color: var(--office-muted); line-height: 1.45; }
.office-dialog :is(select,textarea) { margin-bottom: .35rem; }
.office-close {
  position: absolute;
  display: grid;
  place-items: center;
  top: .65rem;
  right: .65rem;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e3cdda;
  border-radius: 50%;
  background: white;
  color: var(--office-plum);
  cursor: pointer;
  font-size: 1.125rem;
}
.office-invite { max-width: 46rem; }
.office-provider-links { margin: .7rem 0 0; }
.office-provider-links a { color: var(--office-accent); text-underline-offset: .2em; }
.office-invite-form {
  padding: 1.25rem;
  margin-top: 1.05rem;
  border: 1px solid var(--office-border);
  border-radius: 12px;
  background: #fffdfb;
}
.office-invite-form :is(input,textarea), #office-invite-copy { margin-bottom: .5rem; }
#office-copy-status { margin: 0; }

@media (max-width: 850px) {
  .office-layout { grid-template-columns: minmax(0,1fr); }
  .office-intro { grid-template-columns: minmax(0,1fr); }
  .office-availability { justify-self: start; }
}
@media (max-width: 560px) {
  .office-main { width: calc(100% - 1.65rem); }
  .office-viewport { height: min(87vw, 21rem); min-height: 15.5rem; }
  .office-zone { flex-direction: column; font-size: .76rem; }
  .office-zone-controls { gap: .34rem; padding: .45rem; }
  .office-page .service-header { padding: .9rem 1rem; gap: .5rem; }
  .office-page .service-logo { width: 70px; flex-shrink: 0; }
  .office-page .service-header nav { font-size: .82rem; gap: .35rem .7rem; }
}

.office-studio {
  --office-paper: #f9f4ed;
  --office-plum: #34252d;
  --office-border: #ded0c4;
  background: #f9f4ed;
}
.office-studio .office-main {
  width: min(calc(100% - 3.5rem), 82rem);
  padding-top: clamp(2.4rem, 3.8vw, 3.8rem);
}
.office-studio .office-intro {
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 18.5rem);
  align-items: end;
}
.office-studio .office-intro h1 {
  font-weight: 400;
  letter-spacing: -.075em;
}
.office-studio .office-intro h1 em { margin-left: .07em; letter-spacing: -.035em; }
.office-studio .office-availability {
  padding: .82rem .95rem;
  border: 0;
  border-left: 1px solid #ba9a86;
  border-radius: 0;
  background: transparent;
}
.office-studio .office-booking-link { border-radius: 5px; }
.office-studio .office-layout {
  grid-template-columns: minmax(0, 3.43fr) minmax(14rem, 1fr);
  gap: clamp(.85rem, 2vw, 1.6rem);
}
.office-studio .office-view {
  position: relative;
  border: 1px solid #402a36;
  border-radius: 13px;
  background: #32252f;
  box-shadow: 0 15px 40px #47312219;
}
.office-studio .office-view-head {
  min-height: 3.25rem;
  padding: .36rem .95rem;
}
.office-view-head strong,
.office-overview {
  display: inline-flex;
  gap: .46rem;
  align-items: center;
}
.office-view-head strong i,
.office-overview i { font-size: 1.1rem; }
.office-overview {
  min-height: 2.25rem;
  padding: .32rem .62rem;
  border: 1px solid #765768;
  border-radius: 5px;
  color: #fff3ec;
  background: transparent;
  font: 700 .82rem/1.2 Manrope,Arial,sans-serif;
  cursor: pointer;
}
.office-overview:hover { background: #765768; }
.office-studio .office-viewport {
  height: clamp(23rem, 41vw, 35rem);
  background: #8d705d;
}
.office-studio .office-viewport canvas { cursor: grab; }
.office-studio .office-viewport.is-looking canvas { cursor: grabbing; }
.office-studio .office-scene-placeholder {
  background: #8d705d url("materiali/studio.webp") center center / cover no-repeat;
}
.office-pin {
  position: absolute;
  z-index: 1;
  display: none;
  align-items: center;
  gap: .35rem;
  padding: .35rem .58rem;
  border: 1px solid #fff3ddae;
  border-radius: 2rem;
  color: #fff8f1;
  background: #352832ec;
  font: 700 .77rem/1.2 Manrope,Arial,sans-serif;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 3px 14px #2f1e2090;
}
.office-pin i { font-size: 1.05rem; }
.office-pin:hover { background: #7e4361; }
.office-viewport.is-ready .office-pin:not(.is-outside) { display: inline-flex; }
.office-view-hint {
  display: block;
  min-height: 2.25rem;
  padding: .60rem .95rem;
  font-size: .85rem;
  line-height: 1.4;
  color: #e6d4da;
}
.office-studio .office-zone-controls {
  padding: .6rem .65rem .65rem;
  border-color: #5a4653;
}
.office-studio .office-zone {
  min-height: 2.85rem;
  border-color: #735869;
  font-size: .87rem;
}
.office-studio .office-zone[aria-pressed="true"], .office-studio .office-zone:hover {
  background: #f4ded1;
  border-color: #f4ded1;
  color: #40233a;
}
.office-studio .office-side {
  padding: 1.35rem 1.17rem;
  border-radius: 12px;
  background: #fffaf4;
}
.office-studio .office-side h2 { font-size: clamp(1.75rem, 2.6vw, 2.45rem); }
.office-studio .office-bottom {
  padding-inline: 0;
  border: 0;
  background: transparent;
}

@media (max-width: 900px) {
  .office-studio .office-main { width: min(calc(100% - 2rem), 45rem); }
  .office-studio .office-layout { grid-template-columns: minmax(0, 1fr); }
  .office-studio .office-intro { grid-template-columns: minmax(0, 1fr); }
  .office-studio .office-availability { justify-self: stretch; padding-block: .2rem; }
  .office-studio .office-availability div { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.4rem; }
  .office-studio .office-availability .office-booking-link { margin: 0; }
  .office-studio .office-viewport { height: clamp(18rem, 70vw, 29rem); }
}
@media (max-width: 500px) {
  .office-studio .office-main { width: calc(100% - 1.4rem); padding-top: 1.65rem; }
  .office-studio .office-intro { gap: .95rem; }
  .office-studio .office-main h1 { font-size: clamp(2.28rem, 10.1vw, 3.45rem); }
  .office-studio .office-zone { font-size: .78rem; }
  .office-studio .office-zone-controls { padding: .45rem; }
  .office-viewport.is-ready .office-pin { display: none !important; }
}
