/* ═══════════════════════════════════════════════════════════════
   KRONOFANTASY — Landing page (index.php)
   Struttura pronta per l'inserimento della grafica definitiva.
═══════════════════════════════════════════════════════════════ */

.kf-body {
  position: relative;
  background: #05060d;
  min-height: 100vh;
}

.kf-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 9, 18, .12) 0%, rgba(7, 9, 18, .34) 100%),
    var(--kf-hero-img, linear-gradient(160deg, #171d33 0%, #0a0d18 60%, #05060d 100%)) center center / cover no-repeat;
}

.kf-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 231, 177, .18) 0%, transparent 26%),
    radial-gradient(circle at 78% 12%, rgba(132, 92, 255, .16) 0%, transparent 30%),
    linear-gradient(90deg, rgba(5, 6, 13, .68) 0%, rgba(5, 6, 13, .46) 40%, rgba(5, 6, 13, .72) 100%);
  pointer-events: none;
}

/* ── Header ── */
.kf-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(7, 9, 18, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.kf-brand { display: flex; align-items: center; gap: 12px; }
.kf-brand-icon { width: 36px; height: 36px; color: var(--gold); flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(255, 209, 102, .45)); }
.kf-brand-name { font-size: 19px; font-weight: 900; letter-spacing: .16em; color: #f3ead2; text-transform: uppercase; }
.kf-status { display: inline-flex; align-items: center; gap: 6px; margin-left: 14px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kf-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.kf-status.maintenance .kf-status-dot { background: var(--red); box-shadow: 0 0 8px var(--red); }

.kf-nav { display: flex; gap: 30px; }
.kf-nav a { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.kf-nav a:hover, .kf-nav a.active { color: #fff; }

.kf-header-actions { display: flex; align-items: center; gap: 10px; }

/* ── Bottoni ── */
.kf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 10px; font-weight: 800; font-size: 13.5px; letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kf-btn:hover { transform: translateY(-2px); }
.kf-btn-gold { background: linear-gradient(135deg, #f2cf7e, #c9973f); color: #241a05 !important; box-shadow: 0 10px 26px rgba(201, 151, 63, .3); }
.kf-btn-ghost { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .2); color: #fff !important; }
.kf-btn-ghost:hover { border-color: var(--gold); }
.kf-btn-lg { padding: 15px 28px; font-size: 15px; }
.kf-btn-sm { padding: 8px 14px; font-size: 11.5px; width: 100%; }

/* ── Hero ──
   Un'unica scena di sfondo continua (castello + eroe) copre l'intero hero;
   il testo a sinistra e news/social a destra sono overlay, non riquadri separati. */
.kf-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 760px); justify-content: end; gap: 40px; padding: clamp(40px, 7vh, 72px) clamp(18px, 6vw, 90px) clamp(54px, 9vh, 90px); min-height: calc(100vh - 78px); align-items: center; }
.kf-hero-bg { position: absolute; inset: 0; z-index: 0; background: transparent; }
.kf-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 11, 20, .08) 0%, rgba(9, 11, 20, .12) 100%); }
.kf-hero > * { position: relative; z-index: 1; }

.kf-hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  max-width: min(760px, 100%);
  margin-left: auto;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(10, 13, 26, .48), rgba(10, 13, 26, .2));
  backdrop-filter: blur(8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.kf-hero-sigil { width: 58px; height: 58px; color: var(--gold); filter: drop-shadow(0 0 16px rgba(255, 209, 102, .4)); }
.kf-hero-title { font-size: clamp(44px, 7vw, 90px); font-weight: 900; letter-spacing: .01em; line-height: .95; margin: 4px 0 0; background: linear-gradient(180deg, #fff 0%, #e4d09a 55%, #a9822f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kf-hero-tagline { font-size: clamp(13px, 1.6vw, 17px); letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin: 0; }
.kf-hero-desc { color: #d8dfef; font-size: 15px; line-height: 1.85; max-width: 520px; margin: 6px 0 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.kf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }

.kf-feature-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 36px; max-width: 620px; }
.kf-feature-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.kf-feature-item svg { width: 22px; height: 22px; color: var(--gold); }
.kf-feature-item .kf-feature-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 209, 102, .4); background: rgba(7, 9, 18, .38); backdrop-filter: blur(6px); }
.kf-feature-item b { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #f0ecff; }
.kf-feature-item span { font-size: 9.5px; color: #c2cbe0; line-height: 1.3; }

/* ── Colonna arte / social / news ── */
.kf-hero-art { position: relative; min-height: 480px; }

.kf-social-rail { position: absolute; right: 0; top: 6%; display: flex; flex-direction: column; gap: 12px; z-index: 5; }
.kf-social-rail a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; transition: border-color .15s, transform .15s; }
.kf-social-rail a:hover { border-color: var(--gold); transform: translateY(-2px); }
.kf-social-rail svg { width: 18px; height: 18px; }

.kf-news-card { position: absolute; right: 0; bottom: 0; width: min(300px, 92%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; backdrop-filter: blur(16px); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.kf-news-card h3 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.kf-news-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.kf-news-list li { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; font-size: 12px; }
.kf-news-title { display: flex; gap: 8px; align-items: flex-start; color: #e9e6f5; }
.kf-news-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); margin-top: 5px; flex-shrink: 0; }
.kf-news-date { color: var(--muted); white-space: nowrap; font-size: 10.5px; }
.kf-news-empty { color: var(--muted); font-size: 12px; }

/* ── Gallery ── */
.kf-gallery { padding: 70px clamp(18px, 6vw, 90px) 90px; text-align: center; }
.kf-gallery-heading { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 0 40px; color: var(--gold); letter-spacing: .4em; font-size: 13px; text-transform: uppercase; font-weight: 800; }
.kf-gallery-heading::before, .kf-gallery-heading::after { content: ''; flex: 0 1 100px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.kf-gallery-heading::after { background: linear-gradient(90deg, var(--gold), transparent); }
.kf-gallery-row { display: flex; align-items: center; gap: 20px; max-width: 1700px; margin: 0 auto; }
.kf-gallery-arrow { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s; }
.kf-gallery-arrow:hover { border-color: var(--gold); }
.kf-gallery-arrow svg { width: 16px; height: 16px; }
.kf-gallery-track { flex: 1; display: grid; grid-template-columns: 1fr; gap: 24px; }
.kf-gallery-item { position: relative; aspect-ratio: 21 / 9; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #1c2136, #0a0d18); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; transition: border-color .3s ease, box-shadow .3s ease; }
.kf-gallery-item:hover { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 44px rgba(0, 0, 0, .55), 0 0 60px rgba(212, 175, 55, .25); }
.kf-gallery-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s ease, filter .6s ease; }
.kf-gallery-item:hover img { transform: scale(1.08); filter: brightness(1.12) saturate(1.15); }
.kf-gallery-item span { position: relative; z-index: 1; font-size: 13px; color: var(--muted); letter-spacing: .05em; }
.kf-gallery-item img ~ span { font-size: 20px; font-weight: 700; color: #fff; padding: 10px 22px; border-radius: 10px; background: rgba(0, 0, 0, .5); backdrop-filter: blur(2px); transition: background .3s ease; }
.kf-gallery-item:hover img ~ span { background: rgba(0, 0, 0, .3); }
.kf-gallery-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .25); }
.kf-gallery-play svg { width: 42px; height: 42px; color: #fff; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }

/* ── Footer ── */
.kf-footer { text-align: center; padding: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; letter-spacing: .08em; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .kf-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 44px; }
  .kf-hero-art { min-height: 260px; order: -1; }
  .kf-social-rail { display: none; }
  .kf-news-card { position: static; width: 100%; margin-top: 18px; }
  .kf-feature-icons { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .kf-hero-content { margin-left: 0; }
}
@media (max-width: 640px) {
  .kf-hero-content { padding: 22px 18px; border-radius: 22px; }
  .kf-gallery-item { aspect-ratio: 4 / 3; }
  .kf-nav { display: none; }
  .kf-header-actions .kf-btn span.kf-btn-label-long { display: none; }
}
