/* Francesco Boraso — sito personale */

:root {
  --bg: #ffffff;
  --soft: #f7f3f2;
  --text: #221a1b;
  --muted: #6b5f60;
  --line: #e8e0df;
  --brand: #7b1e2e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 750; }
h2 { font-size: 1.6rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; margin: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; }
.nav { display: flex; gap: 20px; font-size: .95rem; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover { color: var(--brand); }
@media (max-width: 600px) { .nav a:not(:last-child) { display: none; } }

/* Button */
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; font: inherit; font-weight: 600; text-decoration: none;
}
.btn:hover { background: #631624; }

/* Hero */
.hero { padding: 56px 0; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: center; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
@media (max-width: 680px) {
  .hero { padding: 36px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero .photo { order: -1; width: 120px; }
}

/* Foto profilo */
.photo { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--soft); margin: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Servizi e prezzi */
.prices { list-style: none; padding: 0; margin: 0 0 16px; }
.prices li { display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.prices li:first-child { border-top: 1px solid var(--line); }
.prices p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .97rem; max-width: 62ch; }
.prices strong { font-weight: 650; white-space: nowrap; }

/* Lavori */
.work { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.work img { border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 680px) { .work { grid-template-columns: 1fr; gap: 20px; } }

/* Contatti */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 680px) { .contact { grid-template-columns: 1fr; gap: 28px; } }
.form { display: grid; gap: 14px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
input, textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; color: var(--muted); }
.consent input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.direct { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

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