:root {
  --bg: #000;
  --fg: #fff;
  --fg-muted: rgba(255, 255, 255, 0.72);
  --pad: clamp(16px, 3vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-footer: "Poppins", var(--font);
}

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

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

/* ---------- Hero video (full-bleed, dietro header e footer) ---------- */
.hero {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero__video.is-ready { opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: calc(var(--pad) + env(safe-area-inset-top)) var(--pad) var(--pad);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.logo {
  display: block;
  pointer-events: auto;
  line-height: 0;
}

.logo img {
  display: block;
  width: clamp(150px, 24vw, 300px);
  height: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6em 2.2em;
  padding: var(--pad) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  font-family: var(--font-footer);
  font-weight: 400;
  font-size: clamp(13px, 1.1vw, 15px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--fg);
  outline: none;
}

/* ---------- Mobile ---------- */
@media (orientation: portrait) {
  .logo img { width: clamp(140px, 44vw, 240px); }

  .site-footer {
    flex-direction: column;
    gap: 0.9em;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { transition: none; }
}
