:root {
  --bronze: #b08a58;
  --bronze-deep: #8a6a3e;
  --stone: #5e5854;
  --stone-deep: #3f3a37;
  --mist: #f4f1ef;
  --focus: #8a6a3e;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: #fff;
  color: #1f2328;
  padding: 0.5rem 0.8rem;
}

.lang {
  display: flex;
  gap: 0.15rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.45rem;
  opacity: 0.55;
  text-decoration: none;
  color: inherit;
}

.lang-btn.is-active,
.lang-btn:hover,
.lang-btn:focus-visible {
  opacity: 1;
}

.social {
  list-style: none;
  display: flex;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.social a {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  opacity: 0.8;
}

.social svg {
  width: 1.05rem;
  height: 1.05rem;
}

.social a:hover,
.social a:focus-visible {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: inherit;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.map-wrap {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  filter: grayscale(0.3) contrast(1.04);
}

.map-gate {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(94, 88, 84, 0.08), rgba(94, 88, 84, 0.18)),
    repeating-linear-gradient(-45deg, transparent, transparent 12px, rgba(94, 88, 84, 0.05) 12px, rgba(94, 88, 84, 0.05) 13px);
}

.map-gate p {
  margin: 0;
  max-width: 28rem;
  line-height: 1.5;
}

.map-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.map-ext-inline {
  font-size: 0.82rem;
}

.map-ext {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  background: rgba(63, 58, 55, 0.92);
  color: #f4f1ef;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.7rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-ok,
.form-err {
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
}

.form-ok {
  background: rgba(176, 138, 88, 0.18);
}

.form-err {
  background: rgba(160, 60, 40, 0.12);
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.contact-form .req {
  color: var(--bronze-deep);
}

.contact-form .opt {
  opacity: 0.55;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid rgba(94, 88, 84, 0.28);
  background: transparent;
  padding: 0.72rem 0.8rem;
  color: inherit;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.contact-form button,
.btn {
  justify-self: start;
  cursor: pointer;
  border: 0;
  padding: 0.85rem 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.contact-form .check,
.consent .check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  letter-spacing: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-form .check input,
.consent .check input {
  width: auto;
  margin-top: 0.2rem;
}

.form-note {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.72;
  line-height: 1.45;
}

.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 4.6rem;
  z-index: 50;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.1rem 1.15rem 1.15rem;
  background: rgba(32, 28, 26, 0.96);
  color: #f4f1ef;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.consent-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.consent-copy p:last-of-type {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.88;
}

.consent-copy a,
.footer-links a,
.footer-links .linkish {
  color: #c4a574;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.consent .btn {
  background: #c4a574;
  color: #2c2622;
}

.consent .btn.ghost {
  background: transparent;
  color: #f4f1ef;
  border: 1px solid rgba(244, 241, 239, 0.28);
}

.consent-panel {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

.consent-panel[hidden] {
  display: none;
}

.demo-switch {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 2rem);
  gap: 0.35rem;
  background: rgba(63, 58, 55, 0.92);
  color: #f4f1ef;
  padding: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.demo-switch a {
  color: #f4f1ef;
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  opacity: 0.7;
}

.demo-switch a.is-current,
.demo-switch a:hover {
  opacity: 1;
  background: rgba(176, 138, 88, 0.35);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal,
.footer-links {
  margin: 0 0 0.35rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-links a,
.linkish {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-page {
  width: min(760px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 3.5rem 0 6rem;
  line-height: 1.6;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
}

.legal-page h2 {
  margin: 1.8rem 0 0.6rem;
  font-size: 1.15rem;
}

.legal-page a {
  color: var(--bronze-deep);
}

.legal-page ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}

.legal-page li + li {
  margin-top: 0.35rem;
}

.legal-meta {
  font-size: 0.92rem;
  color: var(--stone);
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0.6rem 0 1.2rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(94, 88, 84, 0.22);
}

.legal-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-table code {
  font-size: 0.86em;
}

.legal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 6vw;
  border-bottom: 1px solid rgba(94, 88, 84, 0.16);
}

.legal-top .brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.legal-top .brand img {
  width: 40px;
  height: 40px;
}

.atelier-header,
.studio-header,
.lab-header,
.piazza-header {
  position: relative;
}

.reveal {
  opacity: 1;
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }

  .consent {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 5.2rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
