/* Identità DV Soft: token da dvsoft.it (Elementor kit 16).
   Font locali, sfondo #020205, accento #319C9D, titoli di peso 800. */
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/fonts/be-vietnam-pro/latin-400.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/fonts/be-vietnam-pro/latin-600.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/assets/fonts/be-vietnam-pro/latin-800.woff2') format('woff2');
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #020205;
  --paper: #15171e;
  --ink: #fff;
  --muted: #b9bbc3;
  --line: #34363f;
  --accent: #319c9d;
  --link: #72c6c5;
  --focus: #a0d080;
}
* { box-sizing: border-box; }
html {
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  color: var(--ink);
}
body { margin: 0; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}
::selection { background: var(--accent); color: #fff; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.brand-header {
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { width: 198px; height: 57px; object-fit: contain; }
.logo-light { display: none; }
.logo-dark { display: block; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.header-link::before {
  content: '';
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  background: var(--paper);
}
.identity { padding: 44px; }
.identity-heading { min-width: 0; }
.identity-heading.has-photo {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}
.portrait {
  display: block;
  width: 112px;
  height: 112px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}
.person-name {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.person-name span { display: block; }
.person-name .surname { color: var(--accent); }
.role { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; }
.role strong { font-weight: 600; color: var(--ink); }
.description {
  max-width: 31ch;
  margin: 32px 0;
  color: #d6d7dd;
  font-size: 18px;
  line-height: 1.7;
}
.save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 16px 24px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .025em;
  transition: background .18s ease, color .18s ease;
}
.save:hover { background: transparent; color: var(--link); }
.save .arrow { font-size: 26px; font-weight: 400; }
.save-note {
  max-width: 38ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0 0;
}
.details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 44px 40px 32px;
  background: #0b0d12;
  border-left: 1px solid var(--line);
}
.contact-list { margin: 0; }
.contact-item { padding: 20px 0; }
.contact-item + .contact-item { border-top: 1px solid var(--line); }
.contact-item:first-child { padding-top: 0; }
.contact-item dt {
  color: var(--muted);
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.contact-item dd { margin: 0; }
.contact-item a {
  display: inline-block;
  min-height: 36px;
  padding: 4px 0;
  font-size: clamp(15px, 1.65vw, 18px);
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
  text-underline-offset: 6px;
  transition: color .18s ease;
}
.contact-item a:hover { color: var(--link); text-decoration: underline; }
.share {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.share:hover { color: var(--link); }
.share[hidden] { display: none; }
.share-status { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.share-status:empty { display: none; }
.share-fallback { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.share-fallback input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.help { margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.help summary { min-height: 36px; color: var(--muted); font-size: 12px; line-height: 1.6; cursor: pointer; }
.help p { max-width: 70ch; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.directory { max-width: 820px; margin: 32px auto 0; }
.directory h1 {
  margin: 0 0 24px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.directory h1 span { color: var(--accent); }
.directory > .intro { max-width: 45ch; margin: 0 0 40px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.people { border-top: 1px solid var(--line); }
.person-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: border-color .18s ease;
}
.person-link:hover { border-color: var(--accent); }
.person-summary { display: flex; align-items: center; gap: 24px; min-width: 0; }
.person-summary > span { min-width: 0; }
.person-link strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -.03em; overflow-wrap: anywhere; }
.person-link:hover strong { color: var(--link); }
.person-link small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.person-link .arrow { color: var(--accent); font-size: 28px; }
.portrait-compact { width: 64px; height: 64px; flex-shrink: 0; }
.simple { max-width: 680px; padding: 60px 0; }
.simple h1 { font-size: 40px; font-weight: 800; line-height: 1.2; }
.simple p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.simple a { color: var(--link); text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 900px) and (min-width: 741px) {
  .identity, .details { padding: 32px 28px; }
  .identity-heading.has-photo { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 740px) {
  .shell { max-width: 560px; padding: 0 22px; }
  .brand-header { min-height: 102px; gap: 16px; }
  .logo { width: 162px; height: 46px; }
  .header-link { max-width: 15ch; font-size: 9px; gap: 8px; line-height: 1.6; }
  .profile { grid-template-columns: 1fr; }
  .identity { padding: 30px 26px; }
  .identity-heading.has-photo { grid-template-columns: 80px minmax(0, 1fr); gap: 18px; }
  .portrait:not(.portrait-compact) { width: 80px; height: 80px; }
  .person-name { margin-bottom: 10px; font-size: clamp(28px, 7.5vw, 38px); }
  .role { font-size: 12px; }
  .description { margin: 24px 0 28px; font-size: 16px; }
  .save { padding: 16px 18px; }
  .save-note { max-width: none; }
  .details { padding: 28px 26px; gap: 20px; border-left: 0; border-top: 1px solid var(--line); }
  .contact-item { padding: 17px 0; }
  .contact-item a { min-height: 40px; font-size: 16px; }
  .footer { align-items: flex-start; gap: 12px; padding-top: 24px; font-size: 10px; }
  .directory { margin-top: 24px; }
  .directory > .intro { font-size: 16px; margin-bottom: 28px; }
  .person-link { padding: 24px 0; gap: 12px; }
  .person-summary { gap: 16px; }
  .person-link strong { font-size: 21px; }
  .person-link small { font-size: 12px; }
  .help { margin-top: 24px; }
}
@media (max-width: 359px) {
  .shell { padding: 0 16px; }
  .identity, .details { padding-left: 20px; padding-right: 20px; }
  .identity-heading.has-photo { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .portrait:not(.portrait-compact) { width: 64px; height: 64px; }
  .portrait-compact { width: 48px; height: 48px; }
  .person-summary { gap: 12px; }
  .person-link strong { font-size: 18px; }
  .save { padding-left: 14px; padding-right: 14px; letter-spacing: 0; }
  .logo { width: 140px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
