/* Faber Costruzioni — portfolio "studio": fondo minerale, inchiostro carbone, fotografia a tutta pagina, un solo accento corallo. */

:root {
  --ground: #f3f3f1;
  --paper: #ffffff;
  --ink: #161616;
  --ink-2: #575754;
  --ink-3: #8a8a86;
  --rule: #d8d8d4;
  --dark: #1b1b1a;
  --dark-2: #2a2a28;
  --accent: #d2433a;
  --accent-deep: #ad3029;
  --accent-soft: #f8e1de;
  --ok: #1d6b4b;
  --ok-soft: #ddeee5;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1320px;
  --gut: clamp(1rem, 4vw, 3rem);
  --sec: clamp(5rem, 11vw, 9rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: #fff;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  top: 1rem;
}

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

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: currentColor;
}

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

.btn {
  --bg: var(--ink);
  --fg: #fff;
  --bd: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid var(--bd);
  border-radius: 0;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.15s var(--ease);
  user-select: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn .ico {
  transition: transform 0.35s var(--ease);
}
.btn--accent {
  --bg: var(--accent);
  --bd: var(--accent);
}
.btn--line {
  --bg: transparent;
  --fg: var(--ink);
  --bd: var(--ink);
}
.btn--ghost {
  --bg: transparent;
  --fg: #fff;
  --bd: rgb(255 255 255 / 0.7);
}
.btn--sm {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}
.btn--block {
  width: 100%;
}
@media (hover: hover) {
  .btn:hover .ico:last-child {
    transform: translateX(4px);
  }
  .btn--accent:hover {
    --bg: var(--accent-deep);
    --bd: var(--accent-deep);
  }
  .btn--line:hover {
    --bg: var(--ink);
    --fg: #fff;
  }
  .btn--ghost:hover {
    --bg: #fff;
    --fg: var(--ink);
    --bd: #fff;
  }
}
.btn.is-added {
  --bg: var(--ink);
  --fg: #fff;
  --bd: var(--ink);
}

/* ---------- Barra ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(243 243 241 / 0.96);
  border-bottom: 1px solid var(--rule);
}
.bar__in {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.65rem var(--gut);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
/* marchio: una F sotto il tetto, la traversa centrale in corallo */
.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  fill: none;
  stroke-width: 8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
.brand__mark .bm-ink {
  stroke: var(--ink);
}
.brand__mark .bm-acc {
  stroke: var(--accent);
}
.brand__mark--foot {
  width: 2rem;
  height: 2rem;
  vertical-align: -0.45rem;
  margin-right: 0.6rem;
}
.brand__mark--foot .bm-ink {
  stroke: #fff;
}
.brand__mark--foot .bm-acc {
  stroke: #e0625a;
}
.brand__name {
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand__name span {
  font-weight: 400;
  color: var(--ink-2);
}
.nav {
  margin-left: auto;
}
.nav__list {
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list a {
  font-size: 0.975rem;
  text-decoration: none;
  padding: 0.5rem 0;
  background: linear-gradient(var(--ink), var(--ink)) no-repeat 0 100% / 0 1px;
  transition: background-size 0.35s var(--ease);
}
.nav__list a:hover {
  background-size: 100% 1px;
}
.bar__tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s;
}
.bar__tel:hover {
  background: var(--ink);
  color: #fff;
}
.menu-btn {
  display: none;
  width: 3rem;
  height: 3rem;
  margin-right: -0.5rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-btn__bars,
.menu-btn__bars::before,
.menu-btn__bars::after {
  display: block;
  width: 1.5rem;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.menu-btn__bars {
  position: relative;
}
.menu-btn__bars::before,
.menu-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn__bars::before {
  top: -7px;
}
.menu-btn__bars::after {
  top: 7px;
}
.menu-btn[aria-expanded="true"] .menu-btn__bars {
  background: transparent;
}
.menu-btn[aria-expanded="true"] .menu-btn__bars::before {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn[aria-expanded="true"] .menu-btn__bars::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero: un progetto a tutta pagina ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(40rem, calc(100svh - 4rem), 58rem);
  color: #fff;
  overflow: hidden;
  background: var(--dark);
}
.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img {
  object-fit: cover;
  /* l'Etna resta a destra, il testo a sinistra sulla città */
  object-position: 15% 45%;
  /* smorza il riverbero di cielo e neve sotto il testo bianco */
  filter: brightness(0.86) contrast(1.06);
  animation: settle 1.6s var(--ease) both;
}
@keyframes settle {
  from {
    transform: scale(1.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__media img {
    animation: none;
  }
}
/* velo per leggere il testo sulla foto */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(12 12 11 / 0.78) 0%, rgb(12 12 11 / 0.6) 32%, rgb(12 12 11 / 0.22) 60%, rgb(12 12 11 / 0) 80%),
    linear-gradient(180deg, rgb(12 12 11 / 0) 28%, rgb(12 12 11 / 0.78) 100%);
}
.hero__in {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5rem) var(--gut) clamp(2rem, 4vw, 3rem);
}
.hero__title {
  max-width: 14ch;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgb(0 0 0 / 0.35);
  /* sui portatili bassi il titolo scala anche con l'altezza, così l'hero resta in un colpo d'occhio */
  font-size: clamp(2.75rem, min(6.3vw, 9.5vh), 6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero__lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: rgb(255 255 255 / 0.92);
  text-shadow: 0 1px 18px rgb(0 0 0 / 0.4);
}
/* didascalia come linguetta su fondo minerale, leggibile su qualsiasi cielo */
.hero__cap {
  position: absolute;
  top: 1.5rem;
  right: var(--gut);
  padding: 0.35rem 0.65rem;
  background: var(--ground);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.hero__cap span {
  margin-right: 0.6rem;
  color: #fff;
}

/* barra di richiesta: la prima azione, sul bordo della foto */
.req {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem 2rem;
  align-items: end;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--ground);
  color: var(--ink);
}
.req__title {
  grid-column: 1 / -1;
  font-weight: 600;
  font-size: 1.05rem;
}
.req__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.req__go {
  display: grid;
  gap: 0.5rem;
  justify-items: end;
}
.req__count {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-align: right;
}
.req__count strong {
  color: var(--accent);
  font-weight: 500;
}

/* voci selezionabili (barra hero e stima) */
.voce {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s, color 0.2s;
}
.voce__n {
  display: none;
}
.voce__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--ink-3);
}
.voce__box svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: #fff;
  opacity: 0;
  transition: opacity 0.15s;
}
.voce[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.voce[aria-pressed="true"] .voce__box {
  background: var(--accent);
  border-color: var(--accent);
}
.voce[aria-pressed="true"] .voce__box svg {
  opacity: 1;
}
@media (hover: hover) {
  .voce:hover {
    border-color: var(--ink);
  }
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ---------- Casa in sezione (stima) ---------- */

.house {
  display: grid;
  gap: 1.5rem;
}
.house__draw {
  padding: 0.5rem clamp(0rem, 2vw, 1.5rem) 0;
}
.draw {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.hatch-line {
  stroke: var(--ink-3);
  stroke-width: 1;
}
.earth-line {
  stroke: var(--ink-3);
  stroke-width: 1;
  opacity: 0.6;
}
.tiles-line,
.insul-line {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1;
}
.ln {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ln--t {
  stroke-width: 1;
  opacity: 0.55;
}
.ln--b {
  stroke-width: 1.8;
}
.cut {
  stroke: var(--ink);
  stroke-width: 1.4;
}
.cut--light {
  fill: var(--rule);
}
.win {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.4;
}
.layer {
  stroke: var(--ink);
  stroke-width: 1;
}
.coppi {
  fill: none;
  stroke: var(--ink);
  stroke-width: 7;
  stroke-dasharray: 9 5;
  stroke-linecap: round;
}
.panel {
  fill: var(--ground);
  stroke: var(--ink);
  stroke-width: 1.4;
}
.gutter,
.fixture,
.sym {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.pipe {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}
.membrane {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round;
}
.wire {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.3;
  stroke-dasharray: 10 4 2 4;
}
.water {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 2.2;
  stroke-dasharray: 8 5;
}
.sun circle,
.sun path {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.3;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}
.dim path {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1;
}
.dim text {
  font-family: var(--mono);
  font-size: 15px;
  fill: var(--ink-2);
  text-anchor: middle;
}
.part {
  cursor: pointer;
}
.part.is-on .ln,
.part.is-on .cut,
.part.is-on .layer,
.part.is-on .win,
.part.is-on .panel,
.part.is-on .gutter,
.part.is-on .fixture,
.part.is-on .sym,
.part.is-on .pipe,
.part.is-on .membrane,
.part.is-on .wire,
.part.is-on .coppi,
.part.is-on .water {
  stroke: var(--accent);
}
.part.is-on .fixture,
.part.is-on .sym,
.part.is-on .gutter,
.part.is-on .panel,
.part.is-on .win {
  fill: var(--accent-soft);
}
.part.is-on .ln--t {
  opacity: 1;
}
/* la parte scelta viene ripassata, come a matita */
.part.is-drawing .ln,
.part.is-drawing .cut,
.part.is-drawing .layer,
.part.is-drawing .win,
.part.is-drawing .panel,
.part.is-drawing .gutter,
.part.is-drawing .fixture,
.part.is-drawing .sym,
.part.is-drawing .pipe,
.part.is-drawing .membrane {
  stroke-dasharray: 1;
  animation: pencil 0.8s var(--ease) both;
}
@keyframes pencil {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (hover: hover) {
  .part:hover .ln,
  .part:hover .cut,
  .part:hover .fixture,
  .part:hover .sym,
  .part:hover .panel,
  .part:hover .layer {
    stroke-width: 2.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .part.is-drawing * {
    animation: none !important;
    stroke-dasharray: none;
  }
}
.co {
  cursor: pointer;
}
.co line {
  stroke: var(--ink);
  stroke-width: 1;
}
.co circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.3;
  transition: fill 0.2s, stroke 0.2s;
}
.co text {
  font-family: var(--mono);
  font-size: 14px;
  fill: var(--ink);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.co.is-on circle {
  fill: var(--accent);
  stroke: var(--accent);
}
.co.is-on line {
  stroke: var(--accent);
}
.co.is-on text {
  fill: #fff;
}

/* legenda numerata accanto al disegno */
.legend--house {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  border-top: 1px solid var(--ink);
}
.legend--house .voce {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.35rem 0.25rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}
.legend--house .voce__n {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.75rem;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.legend--house .voce__name {
  flex: 1;
}
.legend--house .voce[aria-pressed="true"] {
  background: transparent;
  color: var(--ink);
}
.legend--house .voce[aria-pressed="true"] .voce__n {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (hover: hover) {
  .legend--house .voce:hover {
    background: var(--ground);
  }
}

/* ---------- Testate ---------- */

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.sec-title {
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  letter-spacing: -0.04em;
}
.sec-lead {
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.3vw, 1.175rem);
  color: var(--ink-2);
}

/* ---------- Manifesto ---------- */

.intro {
  padding: var(--sec) 0 calc(var(--sec) * 0.7);
}
.intro__text {
  max-width: 26ch;
  font-size: clamp(1.9rem, 3.8vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: clamp(3rem, 6vw, 5rem) 0 0;
}
.facts > div {
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.facts dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.facts dd {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Progetti: indice con anteprima ---------- */

.work {
  padding: calc(var(--sec) * 0.6) 0 var(--sec);
}
.work__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: 2rem;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.filters button {
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.975rem;
  cursor: pointer;
  transition: color 0.2s;
}
.filters button sup {
  margin-left: 0.15rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
}
.filters button:hover {
  color: var(--ink);
}
.filters button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}
.index {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.index__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.index__list li {
  border-bottom: 1px solid var(--rule);
}
.index__list li[hidden] {
  display: none;
}
.proj {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  gap: 0.25rem 1rem;
  align-items: baseline;
  width: 100%;
  padding: 1.35rem 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.proj__num {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: color 0.25s;
}
.proj__title {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition: transform 0.45s var(--ease);
}
.proj__cat {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.proj__thumb {
  display: none;
}
.proj__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.25rem 0.55rem;
  background: var(--ground);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}
.proj.is-active .proj__num,
.proj:focus-visible .proj__num {
  color: var(--accent);
}
.proj.is-active .proj__title {
  transform: translateX(0.5rem);
}
.index__preview {
  position: sticky;
  top: 6rem;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--rule);
}
.index__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.index__preview img.is-on {
  opacity: 1;
  transform: none;
}
.index__preview figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.5rem 0.8rem;
  background: var(--ground);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.index__note {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- Scheda progetto ---------- */

.psheet {
  width: min(72rem, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  overflow: auto;
}
.psheet::backdrop {
  background: rgb(10 10 10 / 0.7);
}
.psheet[open] {
  animation: sheetIn 0.5s var(--ease);
}
@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .psheet[open] {
    animation: none;
  }
}
.psheet__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.psheet__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  cursor: pointer;
}
.psheet__close .ico {
  width: 1.4rem;
  height: 1.4rem;
}
.psheet__media {
  display: grid;
  gap: 4px;
  background: var(--ground);
}
.psheet__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.psheet__body {
  padding: clamp(1.5rem, 3vw, 2.75rem);
}
.psheet__num {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
}
.psheet__title {
  margin-top: 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.psheet__meta {
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.psheet__desc {
  margin-top: 1.25rem;
  color: var(--ink-2);
}
.psheet__tags {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.psheet__tags li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.975rem;
}
.psheet__acts {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

/* ---------- Servizi ---------- */

.services {
  padding: var(--sec) 0;
  background: var(--paper);
}
.svc-list {
  border-top: 1px solid var(--ink);
}
.svc {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) 11rem 12rem;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.svc__title {
  font-size: clamp(1.3rem, 1.9vw, 1.65rem);
  letter-spacing: -0.02em;
}
.svc__desc {
  color: var(--ink-2);
  font-size: 1rem;
}
.svc__price {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.svc__price strong {
  display: block;
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Stima ---------- */

.estimate {
  padding: var(--sec) 0;
}
.est {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.est__form {
  background: var(--paper);
}
.block {
  margin: 0;
  padding: clamp(1.25rem, 2.6vw, 2rem);
  border: 0;
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}
.block:last-child {
  border-bottom: 0;
}
.block__title {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.block__title + * {
  clear: both;
}
.qty__row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto 10.5rem;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  animation: rowIn 0.45s var(--ease) both;
}
#qtyList > :first-child {
  border-top: 1px solid var(--ink);
}
@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .qty__row {
    animation: none;
  }
}
.qty__empty {
  padding: 1rem 0;
  color: var(--ink-2);
  border-top: 0 !important;
}
.qty__n {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
}
.qty__name {
  font-weight: 500;
  line-height: 1.25;
}
.qty__name small {
  display: block;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.qty__ctl {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.stepper button {
  width: 2.6rem;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}
.stepper button:hover {
  background: var(--rule);
}
.stepper input {
  width: 4.25rem;
  min-height: 2.6rem;
  border: 0;
  border-inline: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 1rem;
  text-align: center;
  color: var(--ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty__unit {
  min-width: 2.25rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink-2);
}
.qty__amt {
  font-family: var(--mono);
  font-size: 0.9375rem;
  text-align: right;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}
.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  min-width: 0;
}
.field--wide {
  grid-column: 1 / -1;
}
.field__label {
  font-weight: 500;
  font-size: 0.975rem;
}
.opt {
  font-weight: 400;
  color: var(--ink-2);
}
input[type="text"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 3.1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
  caret-color: var(--accent);
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea {
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 2.5rem;
  background: var(--paper) url("../asset/chevron.svg") no-repeat right 0.85rem center / 0.85rem;
}
input::placeholder,
textarea::placeholder {
  color: #6e6e6a;
}
input:hover,
select:hover,
textarea:hover {
  border-color: var(--ink-3);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgb(22 22 22 / 0.12);
}
.field.is-bad input,
.field.is-bad textarea {
  border-color: var(--accent);
}
.field__err {
  display: none;
  font-size: 0.9375rem;
  color: var(--accent-deep);
}
.is-bad > .field__err,
.field__err.is-on {
  display: block;
}

.seg {
  display: flex;
  border: 1px solid var(--ink);
  background: var(--paper);
}
.seg label {
  flex: 1;
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.seg span {
  display: grid;
  place-items: center;
  min-height: 2.9rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.975rem;
  text-align: center;
  transition: background-color 0.2s, color 0.2s;
}
.seg label + label span {
  border-left: 1px solid var(--rule);
}
.seg input:checked + span {
  background: var(--ink);
  color: #fff;
}
.seg input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

.slip {
  position: sticky;
  top: 6rem;
  padding: clamp(1.25rem, 2.4vw, 2rem);
  background: var(--dark);
  color: #fff;
}
.slip__title {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.75);
}
.slip__total {
  margin-top: 0.75rem;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.slip__total span span {
  white-space: nowrap;
}
.slip__from {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgb(255 255 255 / 0.75);
}
.slip__note {
  margin-top: 0.4rem;
  color: rgb(255 255 255 / 0.75);
  font-size: 0.9375rem;
}
.slip__lines {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid rgb(255 255 255 / 0.2);
  font-size: 0.9375rem;
}
.slip__lines:empty {
  display: none;
}
.slip__lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(255 255 255 / 0.8);
}
.slip__lines .nw {
  white-space: nowrap;
}
.slip__lines li > span:last-child {
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: #fff;
}
.slip__acts {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.slip .btn--line {
  --fg: #fff;
  --bd: rgb(255 255 255 / 0.7);
}
@media (hover: hover) {
  .slip .btn--line:hover {
    --bg: #fff;
    --fg: var(--ink);
    --bd: #fff;
  }
}
.slip__fine {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.7);
}

/* ---------- Lo studio ---------- */

.studio {
  padding: var(--sec) 0;
  background: var(--paper);
}
.studio__in {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.studio__text {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
  margin-top: 2rem;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--ink-2);
}
.studio__text p:first-child {
  color: var(--ink);
}
.studio__card {
  margin: 0;
  border-top: 1px solid var(--ink);
}
.studio__card > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
}
.studio__card dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
  padding-top: 0.15rem;
}
.studio__card dd {
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Zone ---------- */

.zone {
  padding: var(--sec) 0;
  background: var(--paper);
}
.zone__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.zone .sec-lead {
  margin-top: 1.5rem;
}
.zone__lists {
  display: grid;
  gap: 2rem;
}
.zone__h {
  margin: 0 0 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--ink-2);
}
.zone__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.zone__list li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  font-weight: 500;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .zone__in {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Metodo ---------- */

.method {
  padding: var(--sec) 0;
}
.method .sec-title {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.steps li::before {
  content: "0" counter(s);
  display: block;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--accent);
}
.steps h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.steps p {
  color: var(--ink-2);
}

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

.book {
  padding: var(--sec) 0;
  background: var(--dark);
  color: #fff;
}
.book__in {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.book .sec-lead {
  margin-top: 1.25rem;
  color: rgb(255 255 255 / 0.78);
}
.book__direct {
  display: grid;
  margin-top: 2.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.3);
}
.direct {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgb(255 255 255 / 0.3);
  text-decoration: none;
  min-width: 0;
}
.direct .ico,
.direct span {
  transition: transform 0.35s var(--ease);
}
.direct .ico {
  width: 1.35rem;
  height: 1.35rem;
}
.direct span {
  min-width: 0;
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}
.direct small {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.7);
}
@media (hover: hover) {
  .direct:hover .ico,
  .direct:hover span {
    transform: translateX(0.5rem);
  }
}
.book__form {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  background: var(--ground);
  color: var(--ink);
}
.attach {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.75rem 0.9rem;
  background: var(--accent-soft);
  font-size: 0.9375rem;
}
.attach[hidden] {
  display: none;
}
.attach .ico {
  color: var(--accent);
}
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--accent);
}
.consent a {
  color: var(--ink);
}
.book__send {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.book__send .btn {
  flex: 1 1 12rem;
}
.book__ok {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--ok-soft);
  color: #12452f;
  font-size: 0.9375rem;
}
.book__ok[hidden] {
  display: none;
}
.book__ok .ico {
  color: var(--ok);
}

/* ---------- FAQ ---------- */

.faq {
  padding: var(--sec) 0;
}
.faq__in {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.faq__list {
  border-top: 1px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  position: relative;
  padding: 1.25rem 3rem 1.25rem 0;
  font-weight: 500;
  font-size: 1.15rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.9rem;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease);
}
.faq summary::after {
  transform: rotate(90deg);
}
.faq details[open] summary::after {
  transform: rotate(0deg);
}
.faq details p {
  max-width: 42rem;
  padding: 0 0 1.4rem;
  color: var(--ink-2);
}

/* ---------- Chiusura ---------- */

.close {
  position: relative;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
}
.close__media,
.close__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.close__media img {
  object-fit: cover;
}
.close__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(10 10 10 / 0.55);
}
.close__in {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-top: clamp(6rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}
.close__title {
  max-width: 16ch;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  letter-spacing: -0.04em;
}
.close__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.foot {
  background: var(--dark);
  color: rgb(255 255 255 / 0.75);
  padding: 3.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  font-size: 0.975rem;
  border-top: 1px solid var(--dark-2);
}
.foot__in {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.8fr;
  gap: 2rem;
}
.foot__name {
  margin-bottom: 0.6rem;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.foot__addr {
  display: grid;
  gap: 0.6rem;
  font-style: normal;
}
.foot__addr p {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}
.foot a {
  color: #fff;
  text-decoration: none;
}
.foot a:hover {
  text-decoration: underline;
}
.foot__nav {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}
.foot__legal {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.6);
}

.dock {
  display: none;
}

/* ---------- Comparsa ---------- */

.reveal {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-pending {
  opacity: 0;
  transform: translateY(20px);
}
@media (prefers-reduced-motion: reduce) {
  .reveal.is-pending {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 1080px) {
  .nav__list {
    gap: 1.25rem;
  }
  .bar__tel span {
    display: none;
  }
  .svc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
  .svc__price {
    grid-column: 1;
  }
  .svc .btn {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .menu-btn {
    display: block;
  }
  .nav {
    order: 3;
    margin-left: 0;
  }
  .bar__tel {
    margin-left: auto;
  }
  .bar__tel span {
    display: inline;
  }
  .nav__list {
    position: fixed;
    inset: 3.9rem 0 auto 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gut) 1.5rem;
    background: var(--ground);
    border-bottom: 1px solid var(--ink);
    transform: translateY(-110%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0s 0.4s;
  }
  .nav__list.is-open {
    transform: none;
    visibility: visible;
    transition: transform 0.4s var(--ease);
  }
  .nav__list a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 1.25rem;
    background: none;
  }
  .req {
    grid-template-columns: minmax(0, 1fr);
  }
  .req__go {
    justify-items: stretch;
  }
  .req__count {
    text-align: left;
  }
  .sec-head,
  .est,
  .book__in,
  .faq__in,
  .studio__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .index {
    grid-template-columns: minmax(0, 1fr);
  }
  .index__preview {
    display: none;
  }
  .proj {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }
  .proj__thumb {
    position: relative;
    display: block;
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 0.9rem;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--rule);
  }
  .proj__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .proj__cat {
    grid-column: 2;
  }
  .proj.is-active .proj__title {
    transform: none;
  }
  .psheet__in {
    grid-template-columns: minmax(0, 1fr);
  }
  .legend--house {
    column-gap: 1rem;
  }
  .slip {
    position: static;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.5rem;
  }
  .foot__in {
    grid-template-columns: 1fr 1fr;
  }
  .foot__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom));
  }
  .bar__tel {
    padding: 0.5rem 0.7rem;
  }
  .bar__tel span {
    display: none;
  }
  .hero {
    min-height: 0;
    padding-top: 42vh;
  }
  .hero__media {
    height: 62vh;
  }
  .hero__media img {
    object-position: 55% 40%;
  }
  .hero__media::after {
    background: linear-gradient(180deg, rgb(27 27 26 / 0) 22%, rgb(27 27 26 / 0.6) 55%, rgb(27 27 26 / 1) 96%);
  }
  .hero__cap {
    top: 1rem;
  }
  .hero__in {
    padding-top: 0;
    padding-bottom: 0;
  }
  .psheet__media img + img {
    display: none;
  }
  .req {
    margin-left: calc(var(--gut) * -1);
    margin-right: calc(var(--gut) * -1);
    padding: 1.25rem var(--gut);
  }
  .voce {
    font-size: 0.9375rem;
    padding: 0.4rem 0.7rem;
  }
  .svc {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
  .svc .btn {
    justify-self: stretch;
    margin-top: 0.4rem;
  }
  .qty__row {
    grid-template-columns: 1.5rem minmax(0, 1fr);
    row-gap: 0.6rem;
  }
  .qty__ctl,
  .qty__amt {
    grid-column: 2;
  }
  .qty__amt {
    text-align: left;
  }
  .grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps li::before {
    margin-bottom: 1rem;
  }
  .studio__card > div {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }
  .psheet {
    width: 100vw;
    max-width: 100vw;
    max-height: 100svh;
    height: 100svh;
    margin: 0;
  }
  .foot__in {
    grid-template-columns: minmax(0, 1fr);
  }

  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    background: var(--dark);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dock a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-height: 4rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
  }
  .dock a + a {
    border-left: 1px solid rgb(255 255 255 / 0.14);
  }
  .dock .ico {
    width: 1.35rem;
    height: 1.35rem;
  }
  .dock__main {
    background: var(--accent);
  }
}

/* ---------- Intro (prima visita) ---------- */

.splash {
  display: none;
}
.has-intro .splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  cursor: pointer;
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.7s var(--ease-in-out);
}
.has-intro body {
  overflow: hidden;
}
.splash__in {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  transition:
    transform 0.6s var(--ease-in-out),
    opacity 0.4s var(--ease);
}
.splash__mark {
  width: clamp(4.5rem, 10vw, 7.5rem);
  height: clamp(4.5rem, 10vw, 7.5rem);
  fill: none;
  stroke: #fff;
  stroke-width: 8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}
/* ogni tratto parte nascosto e si disegna: tetto, montante, braccio, traversa */
.splash__mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: introDraw 0.55s var(--ease) forwards;
}
.splash__mark .splash__roof {
  animation-duration: 0.65s;
}
.splash__mark .splash__stem {
  animation-delay: 0.3s;
}
.splash__mark .splash__arm {
  animation-delay: 0.55s;
  animation-duration: 0.35s;
}
.splash__mark .splash__bar {
  stroke: #e0625a;
  animation-delay: 0.78s;
  animation-duration: 0.4s;
}
@keyframes introDraw {
  to {
    stroke-dashoffset: 0;
  }
}
.splash__word {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  opacity: 0;
  transform: translateY(0.4em);
  clip-path: inset(0 100% 0 0);
  animation: introWord 0.6s var(--ease) 0.95s forwards;
}
.splash__word span {
  font-weight: 400;
  color: #bdbdb8;
}
@keyframes introWord {
  to {
    opacity: 1;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}
/* il sipario si alza e scopre l'hero */
.intro-lift .splash {
  clip-path: inset(0 0 100% 0);
}
.intro-lift .splash__in {
  transform: translateY(-3rem);
  opacity: 0;
}
/* l'hero arriva subito dopo: foto che si assesta, testi in sequenza */
.has-intro .hero__media img {
  animation-play-state: paused;
}
.intro-lift .hero__media img {
  animation-play-state: running;
}
.has-intro .hero__title,
.has-intro .hero__lead,
.has-intro .req {
  opacity: 0;
  transform: translateY(16px);
}
.intro-lift .hero__title,
.intro-lift .hero__lead,
.intro-lift .req {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.intro-lift .hero__title {
  transition-delay: 0.25s;
}
.intro-lift .hero__lead {
  transition-delay: 0.32s;
}
.intro-lift .req {
  transition-delay: 0.39s;
}
@media (prefers-reduced-motion: reduce) {
  .has-intro .splash {
    display: none;
  }
}
