/*
Theme Name: Incipit Calcistico
Theme URI: https://example.com/
Author: Antonio Esposito
Description: Tema WordPress mobile-first ispirato al layout di un portale di notizie calcistiche, con testata verde, ricerca e menu laterale.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: incipit-calcistico
*/

:root {
  --green: #176b36;
  --green-dark: #0f4d27;
  --green-light: #2b8549;
  --black: #000;
  --card: #111;
  --line: #262626;
  --muted: #999;
  --white: #fff;
  --red: #e53935;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--black); }

body {
  background: var(--black);
  color: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 30px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green);
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}

.header-inner {
  min-height: 72px;
  padding: 8px 14px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
}

.header-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
}

.header-button:hover { background: rgba(255,255,255,.1); }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.search-icon {
  width: 19px;
  height: 19px;
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
}

.search-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #fff;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
  border-radius: 2px;
}

.brand {
  text-align: center;
  line-height: 1;
  min-width: 0;
}

.brand-title {
  display: block;
  color: #fff;
  font-size: clamp(19px, 5.5vw, 27px);
  font-weight: 900;
  letter-spacing: .2px;
  white-space: nowrap;
}

.brand-author {
  display: block;
  color: #fff;
  font-size: 10px;
  font-weight: 400;
  margin-top: 5px;
  opacity: .95;
  white-space: nowrap;
}

.search-panel {
  display: none;
  background: var(--green-dark);
  padding: 10px 14px;
}

.search-panel.is-open { display: block; }

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
}

.search-form button {
  height: 38px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 700;
  cursor: pointer;
}

.live-bar {
  background: var(--green-light);
  color: #fff;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  background: #ff4545;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 0 3px rgba(255,69,69,.15);
}

.site-content {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 12px 14px 60px;
}

.news-list {
  display: flex;
  flex-direction: column;
}

.news-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.news-thumb {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: #202020;
}

.news-thumb-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #101010);
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 5px;
}

.news-category {
  color: #81c784;
  font-weight: 700;
}

.news-title {
  color: #fff;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 700;
}

.news-excerpt {
  color: #aaa;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 5px;
}

.no-news {
  color: #aaa;
  text-align: center;
  padding: 50px 20px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1998;
  background: rgba(0,0,0,.68);
  display: none;
}

.drawer-backdrop.is-open { display: block; }

.drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(310px, 84vw);
  z-index: 1999;
  background: #101010;
  transform: translateX(-105%);
  transition: transform .22s ease;
  box-shadow: 8px 0 30px rgba(0,0,0,.45);
}

.drawer.is-open { transform: translateX(0); }

.drawer-head {
  background: var(--green);
  min-height: 92px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
}

.drawer-brand {
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.drawer-menu {
  list-style: none;
  padding: 10px 0;
}

.drawer-menu a {
  display: block;
  color: #fff;
  padding: 14px 18px;
  border-bottom: 1px solid #222;
  font-size: 14px;
}

.drawer-menu a:hover { background: #191919; }

@media (min-width: 800px) {
  .header-inner { min-height: 78px; }
  .site-content { padding-left: 20px; padding-right: 20px; }
  .news-title { font-size: 16px; }
}


/* Single article */
.single-article {
  padding: 8px 0 50px;
}

.single-title {
  color: #fff;
  font-size: clamp(25px, 7vw, 38px);
  line-height: 1.14;
  font-weight: 900;
  margin: 8px 0 18px;
}

.single-image {
  width: 100%;
  margin: 0 0 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #151515;
}

.single-image img {
  display: block;
  width: 100%;
  height: auto;
}

.single-content {
  color: #e8e8e8;
  font-size: 16px;
  line-height: 1.7;
}

.single-content p {
  margin: 0 0 18px;
}

.single-content h2,
.single-content h3 {
  color: #fff;
  margin: 24px 0 10px;
  line-height: 1.25;
}

.single-content a {
  color: #81c784;
  text-decoration: underline;
}

.single-content img {
  max-width: 100%;
  height: auto;
}

.single-content ul,
.single-content ol {
  margin: 0 0 18px 22px;
}

.single-author {
  color: #9b9b9b;
  font-size: 13px;
  font-weight: 600;
  margin: -9px 0 18px;
}
