/* I colori si modificano in assets/js/config.js */
:root {
  color-scheme: dark;
  --sfondo: #0f1416;
  --superficie: #1a2225;
  --bordo: #2e3a3e;
  --testo: #f1f5f4;
  --testo-secondario: #a9b7b7;
  --accento: #4da3ff;
}

* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--sfondo);
  color: var(--testo);
  font: 1rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.foto {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto 18px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accento);
}

h1 { font-size: 1.75rem; line-height: 1.2; }
.ruolo { margin-top: 4px; color: var(--accento); font-weight: 500; }

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 18px 0 24px;
}
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--bordo);
  border-radius: 50%;
  color: var(--testo);
}

svg { width: 22px; height: 22px; flex: none; fill: currentColor; }

.descrizione { color: var(--testo-secondario); text-wrap: balance; }

.servizi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}
.servizi li {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: 8px;
  background: var(--superficie);
  font-size: .9rem;
}

.bottoni { display: grid; gap: 12px; }
.bottone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid var(--bordo);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--testo);
  font-weight: 600;
  text-decoration: none;
}
.bottone span { min-width: 0; overflow-wrap: anywhere; }
.principale { background: var(--accento); border-color: var(--accento); color: var(--sfondo); }

a { transition: border-color .15s, filter .15s; }
a:hover { border-color: var(--accento); }
.principale:hover { filter: brightness(1.1); }
a:focus-visible { outline: 3px solid var(--testo); outline-offset: 3px; }

@media (min-width: 600px) {
  .foto { width: 168px; height: 168px; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
