/*
Theme Name: Calcio News24 Lite
Theme URI: https://calcio-news24.it/
Author: Calcio News24
Description: Tema WordPress leggero, SEO-first e API-ready per hub squadre Serie A e future PWA.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: calcio-news24-lite
*/

:root {
  --cn24-primary: #0f172a;
  --cn24-primary-soft: #16233b;
  --cn24-accent: #16a34a;
  --cn24-accent-dark: #15803d;
  --cn24-background: #f8fafc;
  --cn24-card: #ffffff;
  --cn24-border: #e5e7eb;
  --cn24-muted: #64748b;
  --cn24-text: #0f172a;
  --cn24-radius: 8px;
  --cn24-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cn24-background);
  color: var(--cn24-text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

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

.cn24-container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.cn24-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.98);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.cn24-logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.cn24-logo span {
  color: #84cc16;
}

.cn24-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.cn24-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cn24-nav a {
  color: rgba(255, 255, 255, 0.88);
}

.cn24-nav a:hover,
.cn24-nav a:focus {
  color: #84cc16;
}

.cn24-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cn24-icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
}

.cn24-menu-toggle {
  display: none;
}

.cn24-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 10, 21, 0.94), rgba(15, 23, 42, 0.78) 48%, rgba(15, 23, 42, 0.58)),
    radial-gradient(circle at 70% 0%, rgba(59, 130, 246, 0.42), transparent 35%),
    linear-gradient(135deg, #020617, #0f2745 58%, #07111f);
  color: #ffffff;
}

.cn24-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 62% 30%, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 24%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 21%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    linear-gradient(165deg, transparent 42%, rgba(255, 255, 255, 0.08) 43%, transparent 44%);
  opacity: 0.72;
  pointer-events: none;
}

.cn24-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 40px;
  align-items: center;
  min-height: 430px;
  padding: 58px 0;
}

.cn24-hero h1 {
  max-width: 620px;
  margin: 0 0 18px;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  line-height: 1.02;
}

.cn24-hero h1 span {
  display: block;
  color: #84cc16;
}

.cn24-hero p {
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.06rem;
}

.cn24-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cn24-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--cn24-accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cn24-button:hover,
.cn24-button:focus {
  background: var(--cn24-accent-dark);
}

.cn24-button.is-secondary {
  border-color: rgba(255, 255, 255, 0.62);
  background: transparent;
}

.cn24-button.is-secondary:hover,
.cn24-button.is-secondary:focus {
  border-color: #84cc16;
  background: rgba(132, 204, 22, 0.12);
}

.cn24-app-box {
  position: relative;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--cn24-radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--cn24-text);
  box-shadow: var(--cn24-shadow);
}

.cn24-app-box h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.cn24-phone-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 190px;
  gap: 12px;
  margin: 16px 0;
}

.cn24-phone {
  width: 86px;
  height: 168px;
  border: 8px solid #020617;
  border-radius: 20px;
  background: linear-gradient(#07111f, #0f172a);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.28);
}

.cn24-phone::before {
  display: block;
  width: 42px;
  height: 6px;
  margin: 9px auto 14px;
  border-radius: 999px;
  background: #111827;
  content: "";
}

.cn24-phone::after {
  display: block;
  width: 58px;
  height: 92px;
  margin: 0 auto;
  border-radius: 6px;
  background:
    linear-gradient(var(--cn24-accent), var(--cn24-accent)) left 72px / 100% 4px no-repeat,
    linear-gradient(#334155, #334155) left 10px / 100% 18px no-repeat,
    linear-gradient(#475569, #475569) left 38px / 100% 22px no-repeat,
    linear-gradient(#64748b, #64748b) left 68px / 72% 12px no-repeat;
  content: "";
}

.cn24-phone:nth-child(2) {
  transform: rotate(8deg) translateY(8px);
}

.cn24-section {
  padding: 36px 0;
}

.cn24-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cn24-section h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.cn24-more {
  color: #3f7f10;
  font-size: 0.82rem;
  font-weight: 800;
}

.cn24-team-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 12px;
}

.cn24-team-card {
  display: grid;
  min-height: 94px;
  place-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--cn24-border);
  border-radius: var(--cn24-radius);
  background: var(--cn24-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.cn24-team-card:hover,
.cn24-team-card:focus {
  border-color: rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

.cn24-team-badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--cn24-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--cn24-primary);
  font-size: 0.72rem;
  font-weight: 900;
}

.cn24-team-card strong {
  font-size: 0.78rem;
}

.cn24-post-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cn24-post-card {
  overflow: hidden;
  border: 1px solid var(--cn24-border);
  border-radius: var(--cn24-radius);
  background: var(--cn24-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cn24-post-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #111827, #334155);
}

.cn24-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cn24-post-body {
  padding: 14px;
}

.cn24-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: #3f7f10;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cn24-post-card h3 {
  margin: 0 0 9px;
  font-size: 1rem;
  line-height: 1.25;
}

.cn24-meta {
  color: var(--cn24-muted);
  font-size: 0.78rem;
}

.cn24-home-panels {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 16px;
}

.cn24-panel,
.cn24-sidebar-box,
.cn24-single-content,
.cn24-archive-card {
  border: 1px solid var(--cn24-border);
  border-radius: var(--cn24-radius);
  background: var(--cn24-card);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.cn24-panel {
  padding: 18px;
}

.cn24-panel h3 {
  margin: 0 0 14px;
}

.cn24-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.cn24-table th,
.cn24-table td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--cn24-border);
  text-align: left;
}

.cn24-fixtures {
  display: grid;
  gap: 12px;
}

.cn24-fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.cn24-fixture strong:last-child {
  text-align: right;
}

.cn24-app-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: var(--cn24-radius);
  background: var(--cn24-primary);
  color: #ffffff;
}

.cn24-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 36px 0;
}

.cn24-page-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.cn24-intro {
  max-width: 760px;
  color: var(--cn24-muted);
  font-size: 1.05rem;
}

.cn24-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.cn24-sidebar-box {
  padding: 18px;
}

.cn24-link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cn24-link-list a {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--cn24-border);
  font-weight: 700;
}

.cn24-single-content {
  padding: 28px;
}

.cn24-single-content h1 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.cn24-single-content p {
  color: #1f2937;
}

.cn24-breadcrumb {
  margin-bottom: 18px;
  color: var(--cn24-muted);
  font-size: 0.82rem;
}

.cn24-archive-list {
  display: grid;
  gap: 16px;
}

.cn24-archive-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.cn24-footer {
  margin-top: 36px;
  padding: 34px 0;
  background: var(--cn24-primary);
  color: rgba(255, 255, 255, 0.78);
}

.cn24-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.cn24-footer a {
  color: #ffffff;
}

.cn24-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .cn24-nav,
  .cn24-header-actions {
    display: none;
  }

  .cn24-menu-toggle {
    display: grid;
  }

  .cn24-hero-inner,
  .cn24-layout,
  .cn24-app-banner {
    grid-template-columns: 1fr;
  }

  .cn24-app-box {
    display: none;
  }

  .cn24-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cn24-post-grid,
  .cn24-home-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .cn24-container {
    width: min(100% - 24px, 1160px);
  }

  .cn24-header-inner {
    min-height: 60px;
  }

  .cn24-logo {
    font-size: 1.1rem;
  }

  .cn24-hero-inner {
    min-height: 420px;
    padding: 34px 0;
  }

  .cn24-hero h1 {
    font-size: 2rem;
  }

  .cn24-section {
    padding: 26px 0;
  }

  .cn24-team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .cn24-team-card {
    min-height: 84px;
    padding: 10px 6px;
  }

  .cn24-team-badge {
    width: 38px;
    height: 38px;
  }

  .cn24-post-grid,
  .cn24-home-panels {
    grid-template-columns: 1fr;
  }

  .cn24-archive-card {
    grid-template-columns: 1fr;
  }

  .cn24-footer-inner {
    display: grid;
  }
}
