/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --ink: #16323D;          /* petrolio scuro: testo e titoli */
  --ink-soft: #3E5961;     /* testo secondario */
  --stone: #EEEBE3;        /* sfondo pietra */
  --stone-deep: #E4E0D5;   /* superfici leggermente più scure */
  --ochre: #C68A2E;        /* accento: dettagli e CTA secondarie */
  --sage: #6E7D63;         /* colore di supporto */
  --rule: rgba(22, 50, 61, 0.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-space: clamp(4rem, 10vw, 7.5rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  font-variation-settings: "opsz" 96;
}

p { margin: 0 0 1em; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ochre); }

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--ink);
  color: var(--stone);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { top: 0.75rem; }

/* ==========================================================
   Header
   ========================================================== */
.site-header { border-bottom: 1px solid var(--rule); }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.25rem;
}

.brand { text-decoration: none; display: block; }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}
.brand-role {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ochre); }

/* ==========================================================
   Bottoni
   ========================================================== */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--stone); }
.btn-primary:hover { background: #0F252D; border-color: #0F252D; }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ochre); }
.btn-secondary:hover { background: rgba(198, 138, 46, 0.14); }

/* ==========================================================
   Hero
   ========================================================== */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.5rem, 9vw, 7rem);
}

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  letter-spacing: -0.015em;
  max-width: 12ch;
}
.hero h1 em { font-style: italic; color: var(--sage); font-weight: 400; }

.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-intro { max-width: 34rem; margin-top: 1rem; }

.hero-art { width: 100%; max-width: 380px; justify-self: end; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Illustrazione: unica animazione della pagina (disegno delle linee) */
.hero-art path, .hero-art circle {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-bone  { stroke: var(--ink); stroke-width: 2; }
.line-soft  { stroke: var(--sage); stroke-width: 1.5; }
.line-pulse { stroke: var(--ochre); stroke-width: 2.25; }
.line-arc   { stroke: var(--ochre); stroke-width: 1.25; }

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  animation-delay: var(--delay, 0s);
}
.dot { opacity: 0; animation: appear 0.4s ease-out forwards; animation-delay: var(--delay, 0s); fill: var(--ochre); stroke: none; }

@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ==========================================================
   Sezioni
   ========================================================== */
.section { padding-block: var(--section-space); border-top: 1px solid var(--rule); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1.5rem clamp(2rem, 6vw, 5rem);
}

.section h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }

/* Chi sono */
.bio p { max-width: 40rem; }

.credentials {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  max-width: 40rem;
}
.credentials li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}
.credentials li:last-child { border-bottom: 1px solid var(--rule); }
.credentials .year {
  font-family: var(--font-display);
  color: var(--sage);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Prestazioni */
.services {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}
.services li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 2rem;
  padding-block: 1.1rem;
  border-top: 1px solid var(--rule);
}
.services li:last-child { border-bottom: 1px solid var(--rule); }
.services .service-name { font-family: var(--font-display); font-size: 1.3rem; }
.services .service-price { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.services-note { margin-top: 1.25rem; font-size: 0.95rem; color: var(--ink-soft); }

/* Sedi: lista con divisori sottili, niente card */
.locations {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  counter-reset: sede;
}
.location {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
  counter-increment: sede;
}
.location:last-child { border-bottom: 1px solid var(--rule); }

.location h3 { font-size: 1.75rem; }
.location h3::before {
  content: counter(sede, decimal-leading-zero);
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sage);
  margin-bottom: 0.35rem;
}
.location-place { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.4rem; }

.location address { font-style: normal; margin-bottom: 0.75rem; }
.map-link { font-weight: 500; text-decoration-color: var(--ochre); text-decoration-thickness: 1.5px; }

.hours { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1.25rem; }
.hours dt { font-weight: 500; }
.hours dd { margin: 0; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Contatti */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  margin: 3rem 0 0;
}
.contact-grid > div { border-top: 2px solid var(--ink); padding-top: 1rem; }
.contact-grid dt { font-weight: 500; color: var(--ink-soft); margin-bottom: 0.4rem; }
.contact-grid dd { margin: 0; }
.contact-big {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  text-decoration: none;
  word-break: break-word;
}
.contact-big:hover { text-decoration: underline; text-decoration-color: var(--ochre); }

.booking-note {
  margin-top: 3rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
  max-width: 44rem;
}
.booking-note .actions { margin-top: 1.25rem; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { background: var(--ink); color: var(--stone); font-size: 0.95rem; }
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.5rem;
}
.site-footer p { margin: 0; }
.site-footer .studio { font-family: var(--font-display); font-size: 1.15rem; }
.site-footer .legal { color: rgba(238, 235, 227, 0.75); }
.site-footer :focus-visible { outline-color: var(--ochre); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .location { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .location-hours { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 260px; order: -1; }
  .section-head { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .location { grid-template-columns: 1fr; }
  .credentials li { grid-template-columns: 1fr; gap: 0.15rem; }
  .actions .btn { flex: 1 1 100%; text-align: center; }
}

/* ==========================================================
   Movimento ridotto: illustrazione già disegnata, nessuno scroll animato
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .draw { animation: none; stroke-dashoffset: 0; }
  .dot  { animation: none; opacity: 1; }
}
