/* BKSEO — pagina "lavori in corso"
   Font serviti in locale (nessuna richiesta a terzi). */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #15110a;
  --board: #221c0c;
  --line: #4a4128;
  --line-soft: #2a230f;
  --ink: #f4ede1;
  --muted: #c9bfa6;
  --soft: #b4aa90;
  --coral: #f9745f;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { color-scheme: dark; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Sfondo: scacchiera appena percepibile + alone corallo */
.board,
.glow {
  position: absolute;
  pointer-events: none;
}
.board {
  inset: 0;
  background-image: conic-gradient(var(--board) 25%, transparent 0 50%, var(--board) 0 75%, transparent 0);
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 0%, transparent 72%);
  opacity: 0.9;
}
.glow {
  width: 900px;
  height: 900px;
  right: -180px;
  top: 50%;
  margin-top: -450px;
  background: radial-gradient(circle, rgba(249, 116, 95, 0.16) 0%, rgba(249, 116, 95, 0) 62%);
}

/* Intestazione */
.top {
  position: relative;
  display: flex;
  align-items: center;
  padding: 32px 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; display: block; }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
}
.brand:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; border-radius: 6px; }

/* Contenuto */
.hero {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  padding: 24px 80px 64px;
}
.copy {
  flex: 1 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.status {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.status svg { flex-shrink: 0; display: block; }
.status .label {
  font-family: var(--display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.status .rule { width: 64px; height: 1px; background: var(--line); }

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
h1 span { display: block; }
h1 .accent { color: var(--coral); }

.lead {
  margin: 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
}

/* Logo animato */
.art {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage {
  position: relative;
  width: 460px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ring,
.ring-inner {
  position: absolute;
  border-radius: 50%;
}
.ring {
  inset: 0;
  border: 1px dashed rgba(249, 116, 95, 0.45);
  animation: spin 60s linear infinite;
}
.ring-inner {
  inset: 36px;
  border: 1px solid rgba(244, 237, 225, 0.1);
}
.logo {
  position: relative;
  width: 76%;
  height: 76%;
  filter: drop-shadow(0 0 70px rgba(249, 116, 95, 0.35));
  animation: float 7s ease-in-out infinite;
}
.logo img,
.logo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.logo svg { overflow: visible; }
.cape {
  transform-box: fill-box;
  transform-origin: 100% 0%;
  animation: cape 4.7s ease-in-out infinite;
}

/* Piè di pagina */
.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 24px 80px 32px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--soft);
}
.foot .notation { font-family: var(--display); letter-spacing: 0.06em; }

/* Animazioni */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cape {
  0%, 100% { transform: rotate(0.8deg) skewY(0.9deg); }
  50% { transform: rotate(-1.4deg) skewY(-1.2deg); }
}
.rise { animation: rise 0.9s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .ring, .logo, .rise, .cape { animation: none; }
}

/* Mobile */
@media (max-width: 900px) {
  .top { padding: 20px 24px; }
  .brand img { width: 36px; height: 36px; }
  .brand span { font-size: 19px; }

  .board {
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 90% 40% at 50% 24%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 40% at 50% 24%, #000 0%, transparent 75%);
  }
  .glow {
    width: 520px;
    height: 520px;
    right: auto;
    left: 50%;
    margin: 0 0 0 -260px;
    top: 40px;
  }

  .hero {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 24px;
    padding: 8px 24px 32px;
  }
  .art { order: -1; flex: 0 0 auto; }
  .stage { width: min(240px, 64vw); }
  .ring-inner { inset: 20px; }
  .logo { filter: drop-shadow(0 0 40px rgba(249, 116, 95, 0.35)); }
  .copy { flex: 0 0 auto; width: 100%; align-items: center; text-align: center; gap: 24px; }
  .status .label { font-size: 16px; }
  .status .rule { display: none; }
  .lead { font-size: 16px; }

  .foot {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 20px 24px 28px;
    text-align: center;
    font-size: 13px;
  }
}
