:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #252525;
  --muted: #666;
  --line: #e9e9e9;
  --header-height: 128px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
::selection { background: #e9e9e9; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; background: #fff; z-index: 30; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-height);
  background: #fff;
  pointer-events: none;
}
.brand { position: absolute; top: 0; left: 50%; height: var(--header-height); width: 230px; transform: translateX(-50%); display: grid; place-items: center; transition: left .35s ease, transform .35s ease; }
.name { position: relative; z-index: 1; text-decoration: none; font-size: 20px; letter-spacing: -.4px; white-space: nowrap; pointer-events: auto; }
.caduceus { position: absolute; width: 120px; height: 120px; top: 4px; left: calc(50% - 60px); pointer-events: none; }
body.cta-docked .brand { left: max(24px, calc((100vw - 1120px) / 2)); transform: translateX(0); }
body.cta-docked .site-header {
  --pills-height: 46px;
  --fade-start: calc(max(12px, env(safe-area-inset-top)) + var(--pills-height) + 6px);
  background: linear-gradient(to bottom, #fff 0, #fff var(--fade-start), transparent calc(var(--fade-start) + 40px));
}
body.cta-docked .brand::before {
  content: '';
  position: absolute;
  inset: -12px -40px -18px;
  background: radial-gradient(ellipse, #fff 35%, rgb(255 255 255 / .92) 52%, transparent 73%);
  pointer-events: none;
}

main { padding-top: var(--header-height); }
#contenuto { scroll-margin-top: var(--header-height); }
.hero { max-width: 1080px; margin: 0 auto; padding: 66px 28px 29px; text-align: center; }
.eyebrow { margin: 0 0 25px; color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: 1.8px; text-transform: uppercase; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
h1 { font-size: clamp(38px, 4.8vw, 66px); line-height: 1.12; letter-spacing: -2.5px; margin: 0; }
.intro { max-width: 650px; margin: 27px auto 0; color: var(--muted); font-size: 17px; line-height: 1.8; text-wrap: pretty; }
.contact-bar { padding: 16px 24px; background: #fff; }
.contact-bar.is-docked .contact-buttons { position: fixed; z-index: 25; top: max(12px, env(safe-area-inset-top)); right: max(24px, calc((100vw - 1120px) / 2)); }
.contact-bar.is-docked .button { min-height: 46px; padding: 12px 19px; font-size: 12px; }
.contact-bar.is-docked .button-secondary { background: #fff; }
.contact-bar.is-docked .button-secondary:hover { background: #f4f4f4; }
.label-short { display: none; }
.contact-buttons { display: flex; justify-content: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 54px; padding: 17px 22px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 13px; line-height: 1.45; transition: background .2s ease, color .2s ease; }
.button > span[aria-hidden] { font-size: 18px; line-height: 1; }
.button-primary { color: #fff; background: var(--ink); }
.button-primary:hover { background: #444; }
.button-secondary:hover { background: #f4f4f4; }

.about { max-width: 1120px; margin: 112px auto 0; padding: 95px 60px 125px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.2fr; gap: 90px; align-items: center; }
.portrait-wrap { display: flex; justify-content: center; }
.portrait { width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.portrait-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; background: #f5f5f5; }
.portrait-initials { font-family: Georgia, 'Times New Roman', serif; font-size: 76px; letter-spacing: -5px; color: #b7b7b7; }
.portrait-caption { margin-top: 12px; color: #767676; font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; }
.about .eyebrow { margin-bottom: 20px; }
h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -1.2px; margin: 0 0 25px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.85; margin: 0 0 16px; }
.about-copy > .about-note { color: var(--ink) !important; margin-top: 25px !important; }
.skills { margin-top: 30px; }
.skills h3 { margin: 0 0 16px; font-size: 14px; font-weight: 500; line-height: 1.6; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.skill-pills li { max-width: 100%; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: #f8f8f8; font-size: 12px; line-height: 1.5; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; max-width: 1120px; margin: 0 auto; padding: 29px 30px 36px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.8; }
.footer-role { color: var(--muted); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a span { margin-left: 15px; }

@media (max-width: 700px) {
  :root { --header-height: 128px; }
  .name { font-size: 18px; }
  .hero { padding: 45px 24px 20px; }
  .eyebrow { font-size: 9px; letter-spacing: 1.4px; margin-bottom: 22px; }
  h1 { letter-spacing: -1.5px; }
  .desktop-break { display: none; }
  .intro { font-size: 15px; line-height: 1.8; margin-top: 22px; }
  .contact-bar { padding: 12px 20px; }
  .contact-buttons { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin: auto; }
  .contact-buttons .button { flex: 0 1 auto; max-width: 100%; }
  .button { min-height: 48px; padding: 12px 16px; font-size: 12px; }
  .about { grid-template-columns: 1fr; gap: 45px; margin: 65px 24px 0; padding: 60px 0 65px; }
  .portrait { max-width: 240px; }
  .about-copy { max-width: 440px; margin: auto; }
  .site-footer { margin: 0 24px; padding: 25px 0 32px; flex-direction: column; gap: 8px; }
}

@media (max-width: 1000px) {
  .contact-bar.is-docked .label-full { display: none; }
  .contact-bar.is-docked .label-short { display: inline; }
}
@media (max-width: 700px) {
  body.cta-docked .brand { left: 16px; width: 150px; }
  body.cta-docked .name { font-size: 16px; line-height: 1.3; }
  .contact-bar.is-docked .contact-buttons { right: 16px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 5px; }
  .contact-bar.is-docked .button { min-height: 34px; padding: 7px 12px; gap: 12px; font-size: 11px; }
  body.cta-docked .site-header { --pills-height: 73px; }
}
@media (min-width: 500px) and (max-width: 700px) {
  body.cta-docked .brand { width: 180px; }
  .contact-bar.is-docked .contact-buttons { flex-direction: row; gap: 8px; }
  body.cta-docked .site-header { --pills-height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
