/* === Caso · style.css === */

:root {
  --bg:           oklch(97% 0.012 75);
  --bg-deep:      oklch(94% 0.014 75);
  --ink:          oklch(20% 0.02 260);
  --ink-2:        oklch(38% 0.02 260);
  --mute:         oklch(50% 0.018 260);
  --accent:       oklch(58% 0.12 60);
  --accent-deep:  oklch(46% 0.12 55);
  --border:       oklch(86% 0.015 75);
  --border-2:     oklch(78% 0.015 75);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container:    1100px;
  --container-narrow: 760px;
  --side-pad:     clamp(20px, 5vw, 48px);

  --radius:       0;
  --nav-h:        64px;

  --t-fast:   180ms;
  --t-base:   320ms;
  --t-slow:   600ms;
  --easing:   cubic-bezier(0.22, 1, 0.36, 1); /* ease-out-quart */
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (max-width: 480px) { body { font-size: 16px; } }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.012em; color: var(--ink); }

/* === Skip link === */
.skip-link {
  position: absolute;
  left: 8px; top: 8px;
  padding: 10px 14px;
  background: var(--ink); color: var(--bg);
  font-family: var(--font-body); font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--t-fast) var(--easing);
  z-index: 200;
}
.skip-link:focus { transform: translateY(0); }

/* === Container === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}
.container--narrow { max-width: var(--container-narrow); }

/* === Navigation === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav__bar {
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.wordmark:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 4px; }

.nav__menu {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav__menu a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 4px;
  position: relative;
  letter-spacing: 0.005em;
}
.nav__menu a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 6px;
  height: 1.5px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--easing);
}
.nav__menu a:hover::after,
.nav__menu a:focus-visible::after { transform: scaleX(1); }
.nav__menu a:focus-visible { outline: none; }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--border-2);
  padding: 0;
  position: relative;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.6px;
  background: var(--ink);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform var(--t-base) var(--easing), opacity var(--t-fast) var(--easing), top var(--t-base) var(--easing);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger[aria-expanded="true"] span:nth-child(1) {
  top: 21px; transform: translateX(-50%) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  top: 21px; transform: translateX(-50%) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav__menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-deep);
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 24px var(--side-pad) 48px;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--t-base) var(--easing), visibility 0s var(--t-base);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -16px oklch(20% 0.02 260 / 0.18);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
  }
  .nav__menu.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--t-base) var(--easing), visibility 0s 0s, clip-path var(--t-base) var(--easing);
    clip-path: inset(0 0 0 0);
  }
  .nav__menu a {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 28px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav__menu a:last-child { border-bottom: none; }
  .nav__menu a::after { display: none; }
}

/* === Eyebrow === */
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-2);
  margin-bottom: 20px;
}
.eyebrow--accent { color: var(--accent-deep); }

/* === Hero === */
.hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(64px, 10vw, 112px);
  border-bottom: 1px solid var(--border);
}
.hero__claim {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 11vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  margin-bottom: 28px;
  max-width: 14ch;
}
.hero__lead {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  margin-bottom: 56px;
}
.hero__phone {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin-bottom: 40px;
  max-width: 600px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* === Phone === */
.phone {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 6vw, 44px);
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.05;
}
.phone__cc {
  color: var(--mute);
  font-weight: 400;
}
.phone__hint {
  margin-top: 14px;
  font-size: 14px;
  color: var(--mute);
}
.phone--xl {
  font-size: clamp(32px, 7.6vw, 72px);
  line-height: 1.02;
  white-space: nowrap;
}

/* === CTA pseudo-bottoni === */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 0.005em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background-color var(--t-fast) var(--easing), color var(--t-fast) var(--easing), border-color var(--t-fast) var(--easing);
}
.cta--primary {
  background: var(--ink);
  color: var(--bg);
}
.cta--primary:hover { background: var(--accent-deep); }
.cta--primary:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.cta--ghost:hover { background: var(--ink); color: var(--bg); }
.cta--ghost:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }

/* === Sezioni base === */
.section {
  padding: clamp(64px, 10vw, 144px) 0;
  border-bottom: 1px solid var(--border);
}
.section--servizi { background: var(--bg); }
.section--mestiere { background: var(--bg-deep); border-bottom: 1px solid var(--border-2); }
.section--valori { background: var(--bg); }
.section--zona { background: var(--bg-deep); border-bottom: 1px solid var(--border-2); }
.section--contatto { background: var(--bg); border-bottom: none; padding-bottom: clamp(80px, 12vw, 160px); }

.section__head { margin-bottom: clamp(36px, 5vw, 72px); }
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  max-width: 18ch;
}

/* === Servizi (asimmetrici) === */
.servizio {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: 36px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.servizio:last-child { border-bottom: 1px solid var(--border); }
.servizio--lead { padding: 48px 0; }
.servizio__num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent-deep);
  letter-spacing: 0.05em;
  padding-top: 6px;
}
.servizio__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin-bottom: 14px;
}
.servizio--lead .servizio__title {
  font-size: clamp(34px, 6vw, 56px);
  margin-bottom: 18px;
}
.servizio__copy {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.servizio--lead .servizio__copy {
  font-size: clamp(17px, 2vw, 19px);
}

@media (max-width: 600px) {
  .servizio { grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; }
  .servizio--lead { padding: 36px 0; }
  .servizio__num { font-size: 13px; }
}

/* === Mestiere === */
.mestiere__body p {
  font-size: clamp(17px, 1.9vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 22px;
}
.mestiere__body p:last-child { margin-bottom: 0; }

/* === Valori === */
.valori {
  border-top: 1px solid var(--border);
}
.valori__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 4vw, 40px);
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.valori__num {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
}
.valori__text {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink);
  max-width: 60ch;
}
@media (max-width: 600px) {
  .valori__item { grid-template-columns: 48px 1fr; gap: 14px; padding: 24px 0; }
  .valori__num { font-size: 15px; }
}

/* === Zona === */
.zona__city {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(64px, 16vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.zona__copy {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 50ch;
}

/* === Contatto === */
.contatto {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: clamp(36px, 6vw, 64px) 0;
  text-align: left;
}
.contatto__hint {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 50ch;
}

/* === Footer === */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-2);
  padding: 40px 0 32px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.wordmark--footer {
  font-size: 22px;
  display: inline-block;
  margin-bottom: 4px;
}
.footer__line {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
}
.footer__credit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.04em;
}
.footer__credit a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.footer__credit a:hover { color: var(--ink); }
.footer__credit a:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* === Reduce motion === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === Selection === */
::selection { background: var(--accent); color: var(--bg); }
