/* KLIZ — pagina di manutenzione */
:root {
  --red: #c8102e;
  --red-bright: #e3263f;
  --ink: #17171b;
  --muted: #686870;
  --line: #ececef;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #fff;
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 5.5%;
  overflow-x: hidden;
}
.maintenance { width: min(1280px, 100%); margin: auto; }
.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header { min-height: 54px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 112px; height: auto; object-fit: contain; }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; border: 1px solid var(--line); border-radius: 30px;
  color: #55555c; font-size: 10px; font-weight: 700; letter-spacing: 1.4px;
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px #c8102e18; }
.hero {
  min-height: 650px; display: grid; grid-template-columns: 1.04fr .96fr;
  align-items: center; gap: 3%; padding: 55px 0 48px;
}
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px;
  color: var(--red); font-size: 10px; font-weight: 800; letter-spacing: 2px;
}
.eyebrow span { width: 25px; height: 2px; background: var(--red); }
h1 {
  margin: 0; font-family: 'Barlow Condensed', Impact, sans-serif;
  font-size: clamp(66px, 8.2vw, 112px); line-height: .86;
  font-weight: 900; letter-spacing: -1.8px;
}
h1 span { color: var(--red); }
.intro {
  max-width: 490px; margin: 28px 0 13px; color: #55555d;
  font-size: 15px; line-height: 1.85;
}
.promise { margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.7; }
.contact-panel {
  display: flex; align-items: center; margin-top: 36px; padding: 18px 21px;
  width: fit-content; min-width: min(100%, 330px);
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 12px 38px #17171b0a;
}
.contact-heading, .phone-row { display: flex; align-items: center; gap: 14px; }
.contact-icon {
  width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center;
  border-radius: 10px; background: #c8102e0d;
}
.contact-icon svg { width: 21px; height: 21px; fill: none; stroke: var(--red); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { display: block; margin-bottom: 5px; color: #85858c; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.email { color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.email:hover { color: var(--red); }
.visual {
  min-height: 480px; position: relative; display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}
.visual-glow {
  position: absolute; width: min(92%, 510px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #f5f5f6 0%, #fafafa 52%, #fff 72%);
  z-index: -2;
}
.orbit { position: absolute; border: 1px solid #e8e8eb; border-radius: 50%; transform: rotate(-18deg); }
.orbit-one { width: 94%; height: 56%; }
.orbit-two { width: 76%; height: 84%; transform: rotate(38deg); border-style: dashed; opacity: .75; }
.gamepad { width: 100%; max-width: 570px; overflow: visible; filter: drop-shadow(0 23px 20px #16161b18); }
.visual-tag { position: absolute; color: #696970; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.visual-tag b { color: var(--red); font-size: 15px; margin: 0 3px; }
.tag-top { top: 12%; right: 2%; }
.tag-bottom { bottom: 11%; left: 5%; display: flex; align-items: center; gap: 9px; }
.red-mark { width: 19px; height: 3px; background: var(--red); display: inline-block; }
.decor { position: absolute; color: var(--red); font-weight: 400; }
.decor-one { top: 23%; left: 7%; font-size: 30px; }
.decor-two { right: 8%; bottom: 23%; font-size: 22px; }
.site-footer {
  border-top: 1px solid var(--line); padding-top: 22px; color: #929299;
  font-size: 10px; letter-spacing: .3px;
}
.footer-note { font-weight: 700; letter-spacing: 1.1px; }
.footer-note i { color: var(--red); font-style: normal; padding: 0 5px; }

@media (min-width: 1500px) { .hero { min-height: 720px; } }
@media (max-width: 900px) {
  body { padding: 25px 6%; }
  .hero { min-height: auto; grid-template-columns: 1fr  .85fr; gap: 1%; padding: 75px 0 65px; }
  h1 { font-size: clamp(62px, 9vw, 88px); }
  .visual { min-height: 390px; }
  .intro { font-size: 14px; }
}
@media (max-width: 650px) {
  body { display: block; padding: 22px 6% 18px; }
  .brand img { width: 92px; }
  .status { padding: 8px 11px; font-size: 8px; letter-spacing: 1px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 65px 0 38px; }
  .hero-copy { order: 1; }
  .eyebrow { font-size: 8px; letter-spacing: 1.4px; margin-bottom: 19px; }
  h1 { font-size: clamp(65px, 17vw, 94px); }
  .intro { margin-top: 23px; font-size: 13px; line-height: 1.8; }
  .promise { font-size: 11px; }
  .contact-panel { margin-top: 27px; width: 100%; padding: 15px; }
  .visual { order: 2; min-height: 290px; margin: 0 -5%; }
  .gamepad { max-width: 420px; }
  .tag-top { top: 7%; right: 6%; }
  .tag-bottom { bottom: 5%; left: 8%; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-top: 17px; font-size: 9px; }
  .footer-note { font-size: 8px; }
}
@media (max-width: 360px) {
  .status { font-size: 7px; }
  h1 { font-size: 61px; }
  .visual { min-height: 245px; }
}

/* =========================================================
   1. SPIA DI STATO: da rosso a verde, lampeggio lento
   ========================================================= */
.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .08em;
  color: #b00;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e0202c;
  box-shadow: 0 0 0 0 rgba(224, 32, 44, .7);
  animation: pulse-dot 2.4s ease-in-out infinite, color-dot 3.6s ease-in-out infinite;
  will-change: background-color, box-shadow, transform;
}

/* il "pulse" esterno + cambio colore rosso↔verde */
@keyframes pulse-dot {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0    rgba(224,32,44,.65); }
  50%  { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(224,32,44,0);   }
  100% { transform: scale(1);   box-shadow: 0 0 0 0    rgba(224,32,44,0);   }
}

@keyframes color-dot {
  0%, 45%   { background: #e0202c; } /* rosso */
  50%, 95%  { background: #22c55e; } /* verde */
  100%      { background: #e0202c; }
}

/* =========================================================
   2. CONTROLLER: galleggiamento + leggera oscillazione
   ========================================================= */
.pad-float {
  transform-box: fill-box;
  transform-origin: center;
  animation: pad-float 6s ease-in-out infinite;
}

@keyframes pad-float {
  0%, 100% { transform: translateY(0)    rotate(-9deg); }
  50%      { transform: translateY(-14px) rotate(-7deg); }
}

/* =========================================================
   3. TASTI COLORATI: cambiano colore in sequenza
   ========================================================= */
.btn-anim {
  transform-box: fill-box;
  transform-origin: center;
  animation:
    btn-color 3.6s ease-in-out infinite,
    btn-pulse 1.8s ease-in-out infinite;
}

/* pulsazione luminosa (glow) */
@keyframes btn-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 0   transparent); }
  50%      { transform: scale(1.12); filter: drop-shadow(0 0 8px rgba(255,255,255,.55)); }
}

/* cambio colore: bianco ↔ rosso */
@keyframes btn-color {
  0%, 40%   { fill: #e8e8eb; }
  55%, 85%  { fill: #f04a58; }
  100%      { fill: #e8e8eb; }
}

/* il tasto rosso resta rosso, ma "respira" verso il bianco */
.btn-red {
  animation:
    btn-red-color 3.6s ease-in-out infinite,
    btn-pulse 1.8s ease-in-out infinite;
}

@keyframes btn-red-color {
  0%, 40%   { fill: #f04a58; }
  55%, 85%  { fill: #ffd166; }
  100%      { fill: #f04a58; }
}

/* =========================================================
   4. STRISCIA D'ACCENTO: arcobaleno desaturato, molto lento
   ========================================================= */
.accent-anim {
  animation: accent-color 20s linear infinite;
  will-change: stroke;
}

@keyframes accent-color {
  0%   { stroke: #ed293f; }
  14%  { stroke: #ff6b35; }
  28%  { stroke: #ffd166; }
  42%  { stroke: #4ade80; }
  56%  { stroke: #22d3ee; }
  70%  { stroke: #6366f1; }
  84%  { stroke: #c084fc; }
  100% { stroke: #ed293f; }
}

/* =========================================================
   5. GUSCIO INTERNO CHIARO: segue la carcassa
   ========================================================= */
.shell-top-anim {
  animation: shell-top-color 16s ease-in-out infinite;
  will-change: fill, opacity;
}

@keyframes shell-top-color {
  0%,   100% { fill: #414149; opacity: .28; }
  15%        { fill: #ffffff; opacity: .20; }
  30%        { fill: #93b4ff; opacity: .22; }
  45%        { fill: #ffe680; opacity: .22; }
  60%        { fill: #ff8a8a; opacity: .22; }
  75%        { fill: #414149; opacity: .28; }
}



@media (prefers-reduced-motion: reduce) {
  .pad-float,
  .btn-anim,
  .btn-red,
  .accent-anim,
  .shell-top-anim,
  .status-dot { animation: none; }
}