/*
Theme Name: Kaizonext Lite Logo
Theme URI: https://kaizonext.it
Author: Kaizonext
Description: Tema editoriale leggero per Kaizonext: magazine scuro, veloce e SEO-ready senza builder.
Version: 1.0.0
Text Domain: kaizonext-lite
*/

:root {
  --bg: #07090f;
  --bg-soft: #101522;
  --panel: #151b29;
  --panel-strong: #1d2535;
  --text: #f4f7fb;
  --muted: #aab6c9;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #00d5ff;
  --pink: #ff3d8a;
  --lime: #a8ff4f;
  --gold: #ffd166;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

.wrap {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 22px;
  width: 100%;
}

.site-header {
  background: rgba(7, 9, 15, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  min-height: 96px;
  justify-content: space-between;
}

.brand {
  align-items: center;
  background: #eceff2 url("https://kaizonext.it/wp-content/uploads/2026/06/logo.png") center 53% / 232px auto no-repeat;
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 76px;
  overflow: hidden;
  width: 232px;
}

.brand-mark {
  background: var(--cyan);
  border-radius: 6px;
  box-shadow: 0 0 0 3px rgba(0, 213, 255, 0.16);
  display: inline-block;
  height: 18px;
  position: relative;
  width: 18px;
}

.brand-mark::after {
  background: var(--pink);
  border-radius: 999px;
  content: "";
  height: 8px;
  position: absolute;
  right: -4px;
  top: -4px;
  width: 8px;
}

.brand .brand-mark,
.brand span:not(.brand-mark) {
  display: none;
}

.main-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.main-nav a {
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 10px;
}

.main-nav a:hover,
.main-nav a:focus {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.site-main {
  min-height: 70vh;
}

.hero {
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

.hero-media {
  inset: 0;
  position: absolute;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(7, 9, 15, 0.95) 0%, rgba(7, 9, 15, 0.72) 47%, rgba(7, 9, 15, 0.2) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 9, 15, 0) 34%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-content {
  padding: 96px 22px 86px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.kicker {
  color: var(--cyan);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 0;
  max-width: 780px;
}

.hero p {
  color: #dbe5f5;
  font-size: 1.14rem;
  max-width: 660px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-flex;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 15px;
}

.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #00121a;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.section {
  padding: 58px 0;
}

.section.alt {
  background: var(--bg-soft);
}

.section-head {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-head h2,
.archive-title,
.page-title {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  margin: 0;
}

.section-head p,
.archive-description {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 680px;
}

.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 210px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.category-card::before {
  background: var(--accent, var(--cyan));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.category-card h3 {
  font-size: 1.4rem;
  line-height: 1.1;
  margin: 36px 0 12px;
}

.category-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.article-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}

.article-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.article-card:hover {
  border-color: rgba(0, 213, 255, 0.5);
}

.article-card .thumb {
  aspect-ratio: 16 / 9;
  background: #0c111c;
  overflow: hidden;
}

.article-card .thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.article-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.meta a {
  color: var(--cyan);
}

.article-card h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.article-card p {
  color: var(--muted);
  margin: 0;
}

.archive-header,
.page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 34px;
}

.content-area {
  padding: 42px 0 64px;
}

.post-layout {
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 760px) 1fr;
}

.single-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.single-hero-inner {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 0.9fr;
  padding: 52px 22px;
}

.single-hero h1 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  margin: 0 0 16px;
}

.single-hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

.single-hero .thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.entry-content {
  color: #e8eef8;
  font-size: 1.06rem;
}

.entry-content h2 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 34px 0 12px;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 18px;
}

.entry-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sidebar-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.sidebar-box h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.sidebar-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-box li + li {
  border-top: 1px solid var(--line);
  margin-top: 10px;
  padding-top: 10px;
}

.site-footer {
  background: #05070b;
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 34px 0;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.footer-inner strong {
  color: var(--text);
}

.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

@media (max-width: 900px) {
  .header-inner,
  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .category-grid,
  .article-grid,
  .single-hero-inner,
  .post-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .hero-content {
    padding: 74px 16px 76px;
  }

  .main-nav a {
    font-size: 0.86rem;
    padding: 7px 8px;
  }

  .brand {
    background-size: 184px auto;
    height: 60px;
    width: 184px;
  }

  .section {
    padding: 42px 0;
  }
}
