/* ═════════════════════════════════════════════
   MirkoRiparazioni — base: variabili, tipografia, bottoni, navbar, footer
   ═════════════════════════════════════════════ */

:root {
  --bg: #1f2328;              /* antracite */
  --bg-scuro: #171a1e;        /* antracite piu' profondo */
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: #272c32;
  --border: #343a41;
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --orange: #ff6b00;
  --orange-soft: #ff8a33;
  --radius: 18px;
  /* SF Compact Rounded nativo su Apple (via ui-rounded), Nunito come fallback web */
  --font: ui-rounded, "SF Compact Rounded", "SF Pro Rounded", -apple-system, "Nunito", system-ui, sans-serif;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: linear-gradient(165deg, #272c33 0%, #1f2328 45%, #241f1b 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* ── Luci arancioni sfocate, in movimento lento ── */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: -30%;
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
body::before {
  background:
    radial-gradient(38vw 38vw at 20% 26%, rgba(255, 107, 0, 0.26), transparent 64%),
    radial-gradient(30vw 30vw at 76% 72%, rgba(255, 138, 51, 0.18), transparent 68%);
  animation: luciLente 36s ease-in-out infinite alternate;
}
body::after {
  background:
    radial-gradient(34vw 34vw at 74% 16%, rgba(255, 107, 0, 0.17), transparent 66%),
    radial-gradient(26vw 26vw at 22% 84%, rgba(255, 90, 0, 0.15), transparent 70%),
    radial-gradient(20vw 20vw at 50% 48%, rgba(255, 150, 60, 0.10), transparent 72%);
  animation: luciLente2 52s ease-in-out infinite alternate;
}
@keyframes luciLente {
  0%   { transform: translate3d(-4%, -3%, 0) scale(1); }
  50%  { transform: translate3d(5%,  4%, 0) scale(1.14); }
  100% { transform: translate3d(-2%, 7%, 0) scale(0.96); }
}
@keyframes luciLente2 {
  0%   { transform: translate3d(3%,  4%, 0) scale(1.06); }
  50%  { transform: translate3d(-5%, -3%, 0) scale(0.94); }
  100% { transform: translate3d(2%, -6%, 0) scale(1.1); }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--orange); }

h1, h2, h3 {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); max-width: 900px; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.section-sub { color: var(--text-muted); max-width: 560px; margin-top: 14px; }

/* ── Buttons (stile pill pieno, ispirato a clinica-iphone.com) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 12px 26px;
  border-radius: 99px;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #0a0a0a;
}
.btn-primary:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.15);
}
.btn-light {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
}
.btn-light:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #0a0a0a;
  box-shadow: 0 8px 32px rgba(255, 107, 0, 0.3);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: #fff; border-color: #fff; color: #0a0a0a; }
.btn-sm { padding: 9px 20px; font-size: 0.92rem; }

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(96%, 1060px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(26, 30, 35, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: rgba(26, 30, 35, 0.93); border-color: rgba(255, 107, 0, 0.25); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.02rem; }
.nav-brand em { font-style: normal; color: var(--orange); }
.nav-logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-links { display: flex; gap: 26px; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.nav-links a { transition: color 0.2s ease; }
.nav-links a:hover { color: var(--orange); }

/* ── Footer ── */
.footer { border-top: 1px solid var(--border); padding: 26px 0; }
.footer-inner {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 600;
}

/* ── Titolo solo per i motori di ricerca ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line { animation: none; }
  body::before, body::after { animation: none; }
  .chisono-photo .tilt-inner { transform: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
