/* Marco Leonardi – marcoleonardi.it */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ground: #D6CEBF;      /* tortora – company profile */
  --paper: #FFFFFF;
  --ink: #27282D;         /* grafite */
  --ink-2: #4A4944;       /* testo secondario */
  --ink-3: #55534C;       /* etichette */
  --line: #BDB4A7;
  --line-soft: #E3DCCF;
  --field: #8F887C;
  --accent: #B83C33;      /* corallo scurito per leggibilità */
  --accent-light: #E45A4E;/* corallo company profile, solo decorativo */
  --on-dark: #E3DCCF;
  --on-dark-2: #C9C2B5;
  --radius: 6px;
  --max: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section { padding-top: 112px; padding-bottom: 112px; }
.stack { display: flex; flex-direction: column; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; color: #fff; }

/* Tipografia */
.eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.label {
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.meta { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.num { font-size: 13px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
h1, h2, .display { font-family: "Inter Display", "Inter", system-ui, sans-serif; font-weight: 600; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 620px; }
.intro { font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.head { gap: 16px; max-width: 740px; }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 14px 24px; border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 500;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9C2F27; color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-size: 15px; }
.nav a { text-decoration: none; padding: 8px 0; }
.nav .btn { padding: 10px 18px; min-height: 44px; font-size: 15px; }
@media (max-width: 760px) {
  .nav .nav-link { display: none; }
  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
}

/* Hero */
/* Desktop: la foto parte alla stessa altezza del claim ("Prima capire.") */
.hero {
  padding-top: 88px; padding-bottom: 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 400px);
  grid-template-areas: "eyebrow ." "title photo" "body photo";
  grid-template-rows: auto auto 1fr;
  column-gap: 72px;
}
.hero-eyebrow { grid-area: eyebrow; margin-bottom: 24px; white-space: nowrap; }
.hero-title { grid-area: title; align-self: start; }
.hero-body { grid-area: body; gap: 28px; padding-top: 28px; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-proof { padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
.hero-photo { grid-area: photo; align-self: start; min-width: 0; padding-top: 0.12em; }

/* Tablet stretto: colonna foto più piccola */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(200px, 280px); column-gap: 40px; }
}

/* Telefono: la foto affianca il claim, così la prima schermata è piena */
@media (max-width: 640px) {
  .hero {
    padding-top: 40px; padding-bottom: 56px;
    grid-template-columns: minmax(0, 1fr) 40%;
    grid-template-areas: "eyebrow eyebrow" "title photo" "body body";
    grid-template-rows: auto auto auto;
    column-gap: 16px;
  }
  .hero-eyebrow { font-size: 12px; letter-spacing: 0.06em; margin-bottom: 18px; }
  .hero-title { font-size: clamp(32px, 10.4vw, 44px); align-self: center; }
  .hero-photo { padding-top: 0; align-self: center; }
  .hero-body { padding-top: 28px; gap: 24px; }
}
.photo { width: 100%; object-fit: cover; border-radius: 4px; background: var(--line-soft); }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-11 { aspect-ratio: 1 / 1; }

/* Sintesi */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; padding-top: 56px; padding-bottom: 56px; }
.fact { gap: 6px; }
.fact .display { font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; }
.fact p:last-child { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Card */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; gap: 16px; }
.quote { font-size: 21px; line-height: 1.35; font-weight: 500; }

/* Servizi */
.offers { display: flex; flex-wrap: wrap; gap: 24px; }
.offer { flex: 1 1 320px; min-width: 0; border: 1px solid var(--ink); border-radius: var(--radius); padding: 40px 32px; gap: 20px; }
.offer h3 { font-size: 26px; }
.offer .desc { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.offer-dark { background: var(--ink); color: #fff; }
.offer-dark .label { color: var(--on-dark-2); }
.offer-dark .desc { color: var(--on-dark); }
.offer-dark .ticks li { border-color: var(--ink-2); }
.offer-tint { background: var(--ground); border-color: var(--line); }
.offer-tint .ticks li { border-color: var(--line); }
.ticks { list-style: none; padding: 0; gap: 12px; font-size: 16px; line-height: 1.5; }
.ticks li { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.ticks strong { font-weight: 600; }
.start { border-top: 1px solid var(--ink); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 16px 64px; align-items: baseline; }
.start .display { flex: 1 1 260px; font-size: 24px; letter-spacing: -0.015em; }
.start p:last-child { flex: 999 1 480px; min-width: 0; font-size: 17px; color: var(--ink-2); }

/* Fractional / metodo */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 40px; list-style: none; padding: 0; }
.point { gap: 8px; padding-top: 16px; border-top: 1px solid var(--ink); }
.point .t { font-size: 19px; font-weight: 600; line-height: 1.3; }
.point .d { font-size: 16px; color: var(--ink-2); }
.setup { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-wrap: wrap; gap: 20px 48px; }
.setup .display { flex: 1 1 220px; font-size: 21px; letter-spacing: -0.01em; }
.setup ol { flex: 999 1 520px; min-width: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.split { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.split-main { flex: 999 1 540px; min-width: 0; gap: 40px; }
.split-side { flex: 1 1 300px; min-width: 0; max-width: 420px; gap: 12px; }
figcaption { font-size: 13px; line-height: 1.6; color: var(--ink-3); }

/* Esperienze */
.exp { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; gap: 18px; background: var(--paper); }
.exp .row { gap: 4px; }
.exp .row p:last-child { font-size: 16px; color: var(--ink-2); }
.exp .take { padding-top: 16px; border-top: 1px solid var(--line-soft); gap: 4px; }
.exp .take .label { color: var(--accent); }
.exp .take p:last-child { font-size: 16px; }

/* Chi sono */
.bio p:not(.eyebrow) { font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.creds { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }

/* Principio */
.statement { background: var(--ink); color: #fff; }
.statement .wrap { padding-top: 96px; padding-bottom: 96px; gap: 18px; }
.statement .display { font-size: clamp(28px, 3.8vw, 50px); line-height: 1.15; letter-spacing: -0.025em; max-width: 900px; font-weight: 600; }
.statement p:last-child { font-size: 14px; color: var(--on-dark-2); }

/* Contatti */
.contact-list { list-style: none; padding: 0; font-size: 16px; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span:first-child { color: var(--ink-3); }
.form { flex: 999 1 460px; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; gap: 20px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { min-width: 0; gap: 8px; }
.form-row > .field { flex: 1 1 200px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); padding: 12px 14px; border: 1px solid var(--field);
  border-radius: 4px; background: #fff; min-height: 48px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; padding: 14px 16px; border-radius: 4px; display: none; }
.form-status.ok { display: block; background: #EAF2EA; color: #1F4D2A; }
.form-status.err { display: block; background: #F8E6E4; color: #7A231C; }
@media (max-width: 520px) { .form { padding: 28px 20px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 14px; color: var(--ink-3); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--ink-3); }

/* Pagina legale */
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(34px, 4.4vw, 52px); margin-bottom: 12px; }
.legal h2 { font-size: 24px; letter-spacing: -0.01em; margin: 48px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 17px; }
.legal p + p, .legal p + ul, .legal ul + p, .legal table + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.table-scroll { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.legal table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.legal th { font-weight: 600; color: var(--ink); background: #F4F1EA; }
.legal tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .section { padding-top: 80px; padding-bottom: 80px; }
  .lead { font-size: 18px; }
  .card, .offer, .exp, .setup { padding: 26px 22px; }
  .split { gap: 40px; }
}
[id] { scroll-margin-top: 84px; }
@media (max-width: 350px) { .hero-eyebrow { white-space: normal; } }
.lead strong { font-weight: 600; color: var(--ink); }

/* Competenze */
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.skill { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; gap: 14px; }
.skill h3 { font-size: 21px; }
.skill-digital { border-top: 3px solid var(--accent); }
.skill-digital .num { color: var(--accent); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; line-height: 1.3; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--ground); color: var(--ink); }
.tools { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.tools p:last-child { font-size: 15px; color: var(--ink-2); }
@media (max-width: 640px) { .skill { padding: 24px 20px; } }
