:root {
  --bg: #eef3ef;
  --ink: #12303a;
  --muted: #4b6670;
  --sun: #f2b632;
  --teal: #2a7f82;
  --dial-size: clamp(240px, 52vmin, 360px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* Quadrante: anello con una lancetta che gira lentamente */
.dial {
  position: relative;
  width: var(--dial-size);
  height: var(--dial-size);
  border: 3px solid var(--teal);
  border-radius: 50%;
  margin-bottom: 2.5rem;
}

.dial::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(42, 127, 130, 0.45);
  border-radius: 50%;
}

.dial__hand {
  position: absolute;
  inset: 0;
  animation: tick 60s linear infinite;
}

.dial__hand::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  background: var(--sun);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--bg);
}

@keyframes tick { to { transform: rotate(360deg); } }

/* Il logo sta al centro del quadrante */
.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(var(--dial-size) * 0.62);
  height: auto;
  max-height: calc(var(--dial-size) * 0.62);
  object-fit: contain;
}

h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--muted);
}

.contact { margin: 1.5rem 0 0; }

a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .dial__hand { animation: none; }
}
