/* Alessandro Ferreri — Precision Studio */
/* Warm stone + charcoal, refined architectural minimalism */

:root {
  --accent: oklch(0.48 0.10 38);
  --accent-hover: oklch(0.42 0.09 38);
  --bg: oklch(0.96 0.004 68);
  --surface: oklch(0.98 0.003 68);
  --text: oklch(0.22 0.008 38);
  --muted: oklch(0.45 0.006 50);
  --border: oklch(0.90 0.004 68);
  --hero-bg: oklch(0.22 0.008 38);
  --hero-text: oklch(0.96 0.004 68);
  --footer-bg: oklch(0.18 0.006 40);
  --footer-text: oklch(0.78 0.005 50);
  --card-bg: oklch(0.99 0.002 70);
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
}
@supports not (color: oklch(0 0 0)) {
  :root {
    --accent: #9b7340;
    --accent-hover: #856335;
    --bg: #f8f6f3;
    --surface: #fdfcfa;
    --text: #36322d;
    --muted: #736e66;
    --border: #e6e2dd;
    --hero-bg: #36322d;
    --hero-text: #f8f6f3;
    --footer-bg: #2e2b27;
    --footer-text: #c8c4be;
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul { padding-left: 1.1rem; }
img, svg { display: block; max-width: 100%; }

.container {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
}
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.25rem); }

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 28px;
}
.kicker::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--accent);
}
.eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--hero-text);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.96 0.004 68 / 0.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: var(--radius);
  background: var(--text); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em; flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__title {
  font-weight: 600; font-size: 0.92rem; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__subtitle { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.01em; }

.nav { display: none; gap: 28px; align-items: center; }
.nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 16px 24px; box-shadow: var(--shadow); }
.nav a { font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: color 0.2s; letter-spacing: 0.01em; }
.nav a:hover { color: var(--text); }
.nav__cta {
  padding: 8px 20px; background: var(--accent); color: #fff !important;
  border-radius: var(--radius); font-weight: 600; transition: background 0.2s;
  letter-spacing: 0.01em;
}
.nav__cta:hover { background: var(--accent-hover); }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  padding: 56px 0 64px;
  background: var(--hero-bg);
  color: var(--hero-text);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero__grid {
  position: relative; display: grid; gap: 40px; align-items: start;
}
.hero__content { display: grid; gap: 22px; }
.hero h1 { color: var(--hero-text); }
.hero p { font-size: 1.02rem; color: rgba(255,255,255,0.7); max-width: 55ch; line-height: 1.75; }

.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta-pill {
  padding: 6px 14px; border-radius: 3px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem; font-weight: 500; color: var(--hero-text);
  letter-spacing: 0.02em;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.9rem; border: none; cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 6px 20px rgba(155,115,64,0.25);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary {
  background: rgba(255,255,255,0.08); color: var(--hero-text);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn--outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #fff; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; padding: 28px;
  display: grid; gap: 20px;
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}
.hero-card__label {
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4); font-weight: 600;
}
.hero-card__phone { font-size: 1.4rem; font-weight: 700; letter-spacing: 0.02em; }
.hero-card__phone a { color: var(--hero-text); }
.hero-card__list { display: grid; gap: 14px; }
.hero-card__item { display: grid; gap: 2px; }
.hero-card__item span { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.hero-card__item strong { font-size: 0.92rem; font-weight: 600; }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--surface); }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 640px; }
.section-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

/* Approach */
.approach-grid {
  display: grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.approach-step {
  padding: 32px 28px; background: var(--card-bg);
  display: grid; gap: 12px;
}
.step-num {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--text); color: var(--bg);
  display: grid; place-items: center;
  font-weight: 700; font-size: 0.85rem; letter-spacing: 0.05em;
}
.approach-step h3 { margin: 0; }
.approach-step p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* Services */
.services-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); }
.service-item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 26px; background: var(--card-bg);
}
.service-dot {
  width: 32px; height: 32px; border-radius: var(--radius);
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 0.95rem; flex-shrink: 0;
}
.service-item h3 { margin: 0 0 4px; font-size: 1.02rem; }
.service-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* About */
.about-grid { display: grid; gap: 36px; align-items: start; }
.about-text { display: grid; gap: 18px; }
.about-text p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.about-highlights { list-style: none; padding: 0; display: grid; gap: 10px; }
.about-highlights li {
  position: relative; padding-left: 22px; font-size: 0.92rem; line-height: 1.6;
}
.about-highlights li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; background: var(--accent);
  border-radius: 2px;
}
.about-accent {
  background: var(--text); color: var(--bg);
  border-radius: var(--radius); padding: 36px 32px;
  display: grid; gap: 14px;
  position: relative;
}
.about-accent::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  border-radius: var(--radius) var(--radius) 0 0;
}
.about-accent blockquote {
  font-size: 1.05rem;
  font-style: italic; line-height: 1.65; opacity: 0.9;
  padding-left: 16px;
}
.about-accent cite { font-size: 0.82rem; font-style: normal; opacity: 0.6; letter-spacing: 0.04em; text-transform: uppercase; }

/* Contact */
.contact-grid { display: grid; gap: 36px; }
.contact-info { display: grid; gap: 16px; }
.contact-card {
  padding: 22px 26px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.contact-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px;
}
.contact-card p, .contact-card a { font-size: 0.95rem; }
.contact-card a { color: var(--accent); font-weight: 600; }
.contact-cta { display: grid; gap: 16px; }
.contact-cta p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }

/* Footer */
.footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: 48px 0 32px;
}
.footer__grid { display: grid; gap: 32px; margin-bottom: 32px; }
.footer-card h3 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 10px; color: rgba(255,255,255,0.6);
}
.footer-card p, .footer-card li { font-size: 0.88rem; color: var(--footer-text); }
.footer-card ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.footer-card a { color: var(--hero-text); font-weight: 500; }
.footer__copy {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px; font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.02em;
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (min-width: 760px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .hero { padding: 72px 0 80px; }
  .hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
  .approach-grid { grid-template-columns: repeat(3, 1fr); }
  .services-list { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .hero { padding: 88px 0 96px; }
  .services-list { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
}