/* Studio Associato Ghiotti & Sibilia — foglio di stile unico.
   Token e valori ripresi dal design di riferimento in design/. */

:root {
  --bg:            oklch(0.975 0.012 85);
  --surface:       oklch(0.995 0.006 85);
  --text:          oklch(0.25 0.02 220);
  --text-2:        oklch(0.42 0.02 220);
  --text-3:        oklch(0.52 0.02 220);
  --text-muted:    oklch(0.55 0.02 220);
  --text-nav:      oklch(0.38 0.02 220);
  --line:          oklch(0.88 0.015 85);
  --line-soft:     oklch(0.9 0.015 85);
  --line-input:    oklch(0.84 0.015 85);
  --lake:          oklch(0.42 0.07 215);
  --lake-hover:    oklch(0.32 0.05 215);
  --lake-link:     oklch(0.45 0.08 215);
  --band:          oklch(0.28 0.035 215);
  --footer:        oklch(0.22 0.025 215);
  --brass:         oklch(0.55 0.08 65);
  --brass-on-dark: oklch(0.72 0.08 65);
  --on-dark:       oklch(0.96 0.01 85);
  --on-lake:       oklch(0.98 0.01 85);
  --dot:           oklch(0.85 0.1 140);

  --serif: Newsreader, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lake-link);
  text-decoration-color: oklch(0.8 0.04 215);
  text-underline-offset: 3px;
}
a:hover { color: var(--brass); text-decoration-color: var(--brass); }

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

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

@keyframes riseIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.page { max-width: 100%; overflow-x: hidden; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 84px;
  padding-bottom: 84px;
  scroll-margin-top: 90px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 18px;
  background: var(--lake);
  color: var(--on-lake);
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--on-lake); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.975 0.012 85 / 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-right: auto;
}
.logo:hover { color: inherit; }
.logo__name { font-family: var(--serif); font-size: 21px; letter-spacing: -0.01em; line-height: 1.1; }
.logo__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; font-size: 14.5px; }
.nav a { text-decoration: none; color: var(--text-nav); }
.nav a:hover { color: var(--brass); }

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--lake);
  color: var(--on-lake);
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.18s ease;
}
.btn-phone:hover { background: var(--brass); color: var(--on-lake); }
.btn-phone__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }

/* ---------- Pulsanti ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 16.5px;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn--primary { background: var(--lake); color: var(--on-lake); border: none; }
.btn--primary:hover { background: var(--lake-hover); color: var(--on-lake); }
.btn--ghost { border: 1px solid oklch(0.78 0.02 220); background: var(--surface); color: oklch(0.28 0.02 220); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn--block { width: 100%; margin-top: 4px; }

.btn-reset {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid oklch(0.78 0.02 220);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.btn-reset:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- Tipografia ricorrente ---------- */

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow--on-dark { color: var(--brass-on-dark); }

.h2 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.h2--services { margin-bottom: 44px; max-width: 24ch; }
.h2--zone { margin-bottom: 40px; max-width: 26ch; }
.h2--contatti { margin-bottom: 24px; }
.h2--tight { margin-bottom: 20px; }

.body-2 { margin: 0 0 16px; color: var(--text-nav); }
.body-2--last { margin-bottom: 0; }
.body-2--spaced { margin-bottom: 28px; }

/* ---------- Segnaposto immagini ---------- */

.ph {
  display: grid;
  place-items: center;
  border-radius: 4px;
  overflow: hidden;
}
.ph--lake {
  background-color: oklch(0.93 0.02 215);
  background-image: repeating-linear-gradient(135deg, oklch(0.88 0.03 215) 0 9px, oklch(0.94 0.02 215) 9px 18px);
}
.ph--warm {
  background-color: oklch(0.93 0.018 85);
  background-image: repeating-linear-gradient(135deg, oklch(0.89 0.02 85) 0 9px, oklch(0.94 0.015 85) 9px 18px);
}
.ph--dark {
  background-color: oklch(0.33 0.04 215);
  background-image: repeating-linear-gradient(135deg, oklch(0.31 0.04 215) 0 9px, oklch(0.35 0.045 215) 9px 18px);
}

.ph__label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(0.42 0.05 215);
  background: oklch(0.975 0.012 85 / 0.9);
  padding: 8px 14px;
  border-radius: 2px;
  text-align: center;
}
.ph--warm .ph__label { color: oklch(0.5 0.03 85); background: oklch(0.98 0.012 85 / 0.9); }
.ph__label--sm { font-size: 11px; padding: 7px 12px; border-radius: 0; }
.ph__label--xs { font-size: 10.5px; letter-spacing: 0.08em; padding: 6px 10px; }
.ph__label--dark {
  font-size: 11px;
  color: oklch(0.82 0.03 215);
  background: oklch(0.28 0.035 215 / 0.85);
}

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

.hero {
  padding-top: 72px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
  scroll-margin-top: 90px;
}
.hero__text { animation: riseIn 0.7s ease both; }
.hero .eyebrow { margin-bottom: 22px; }
.hero__title {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero__lead { margin: 0 0 30px; font-size: 18.5px; color: var(--text-2); max-width: 52ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media { min-height: 380px; border: 1px solid var(--line); }

/* ---------- Numeri ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.stats__item { padding: 34px 28px; border-right: 1px solid var(--line-soft); }
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child { padding-right: 0; border-right: none; }
.stats__value { font-family: var(--serif); font-size: 46px; line-height: 1; letter-spacing: -0.02em; }
.stats__unit { font-size: 30px; }
.stats__label { margin-top: 8px; font-size: 15px; color: oklch(0.45 0.02 220); }

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

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 40px 56px;
  align-items: start;
}

.people {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card__media { height: 220px; border-radius: 0; }
.card__body { padding: 26px 26px 28px; }
.card__name { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 26px; letter-spacing: -0.01em; }
.card__role {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}
.card__text { margin: 0; font-size: 15.5px; color: var(--text-2); }

.card-dark {
  background: var(--band);
  color: var(--on-dark);
  border-radius: 4px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.card-dark__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.tutele {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 15px;
  color: var(--line);
}
.tutele li { padding-left: 16px; border-left: 2px solid var(--brass); }

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

.band-light {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
/* I servizi sono sei: su schermo largo tre colonne riempiono due righe esatte,
   evitando le celle vuote che auto-fit lascerebbe con quattro colonne. */
@media (min-width: 900px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}
.service {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service__num { font-family: var(--mono); font-size: 11px; color: var(--brass); }
.service__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.service__text { margin: 0; font-size: 15.5px; color: var(--text-2); }

/* ---------- Rete fornitori ---------- */

.rete {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
}
.pill-note {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15.5px;
}
.pill-note__check { font-family: var(--serif); font-size: 22px; color: var(--brass); }

.rete__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rete__tile { height: 190px; }
.rete__tile--offset { margin-top: 28px; }

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

.band-dark {
  background: var(--band);
  color: var(--on-dark);
  scroll-margin-top: 90px;
}
.zone {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.zone__item { padding-top: 22px; border-top: 1px solid oklch(0.45 0.04 215); }
.zone__title { margin: 0 0 10px; font-family: var(--serif); font-weight: 400; font-size: 23px; }
.zone__text { margin: 0; font-size: 15.5px; color: oklch(0.84 0.02 215); }
.zone__map { margin-top: 40px; height: 260px; }

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

.contatti {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 56px;
  align-items: start;
}

.call-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 14px;
  background: var(--lake);
  color: var(--on-lake);
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.call-card:hover { background: var(--lake-hover); color: var(--on-lake); }
.call-card__kicker {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}
.call-card__number { display: block; font-family: var(--serif); font-size: 30px; line-height: 1.2; }

.notice {
  margin: 0 0 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 3px;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--text-2);
}

.details {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 22px;
  font-size: 15.5px;
}
.details dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 4px;
}
.details dd { margin: 0; }
.details__break { word-break: break-word; }

/* ---------- Form ---------- */

.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 30px;
}

.form { display: grid; gap: 16px; }
.form[hidden] { display: none; }
.form__title { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 27px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.form__foot { margin: 0; font-size: 12.5px; color: var(--text-muted); }

.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.field input,
.field select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-input);
  border-radius: 3px;
  background: oklch(1 0 0);
}
.field select { padding: 0 12px; }
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-input);
  border-radius: 3px;
  background: oklch(1 0 0);
  resize: vertical;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid oklch(0.55 0.08 215);
  outline-offset: -1px;
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: oklch(0.52 0.15 25); }

.checkbox {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--lake);
  flex: none;
}

.form-done { display: flex; flex-direction: column; gap: 14px; padding: 20px 0; }
.form-done[hidden] { display: none; }
.form-done__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 27px; }
.form-done__text { margin: 0; font-size: 15.5px; color: var(--text-2); }

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

.site-footer { background: var(--footer); color: oklch(0.86 0.015 85); }
.site-footer__grid {
  padding-top: 52px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.site-footer a { color: oklch(0.86 0.015 85); word-break: break-word; }
.site-footer a:hover { color: var(--brass-on-dark); }
.site-footer__name { font-family: var(--serif); font-size: 22px; color: var(--on-dark); }
.site-footer__sub { margin-top: 6px; font-size: 14.5px; }
.site-footer__addr { margin-top: 14px; font-size: 14.5px; }
.site-footer__col { font-size: 14px; display: flex; flex-direction: column; gap: 8px; }
.site-footer__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(0.68 0.02 215);
}
.site-footer__legal { color: oklch(0.72 0.015 85); }
.site-footer__bar { border-top: 1px solid oklch(0.3 0.03 215); }
.site-footer__bar .container {
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 12.5px;
  color: oklch(0.7 0.015 85);
}

/* ---------- Adattamenti piccoli schermi ---------- */

@media (max-width: 700px) {
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero__media { min-height: 260px; }

  .stats__item {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
  }
  .stats__item:last-child { border-bottom: none; }

  .rete__tile--offset { margin-top: 0; }
  .zone__map { height: 200px; }
  .form-panel { padding: 24px 20px; }
  .details { grid-template-columns: 1fr; gap: 4px 0; }
  .details dd { margin-bottom: 12px; }
}

@media (max-width: 520px) {
  .site-header__row { gap: 12px 16px; }
  .nav { gap: 16px; font-size: 14px; order: 3; width: 100%; }
  .btn-phone { flex: none; }
}
