/* ==========================================================================
   Associazioni Cinematografiche — Stile Cinema Dark & Dashboard Semplificata
   Condiviso tra anteprima.html e il sito PHP di produzione (index.php / admin.php)
   ========================================================================== */

:root {
  --bg: #0c0e13;
  --bg-elev: #141822;
  --bg-card: #181d29;
  --bg-card-hover: #1e2433;
  --bg-input: #0f121a;
  --border: #272e3f;
  --border-light: #353f56;
  --text: #f3f5fa;
  --text-muted: #9ea8be;
  --text-dim: #6f7a93;
  --gold: #e8b84b;
  --gold-hover: #f5cb66;
  --gold-soft: rgba(232, 184, 75, 0.14);
  --cinema-red: #d94a4a;
  --green: #2eb872;
  --green-soft: rgba(46, 184, 114, 0.16);
  --danger: #e25555;
  --danger-soft: rgba(226, 85, 85, 0.15);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  --container: 1200px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top center, #171c29 0%, var(--bg) 52%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: var(--gold-hover);
}

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

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

/* ---------- Header & Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(12, 14, 19, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  color: var(--text);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #c88d21 100%);
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(232, 184, 75, 0.3);
}

.brand-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.95rem;
  cursor: pointer;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--gold);
  background: var(--gold-soft);
}

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

.search-form {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px 4px 13px;
  transition: border-color 0.18s ease;
}

.search-form:focus-within {
  border-color: var(--gold);
}

.search-form input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 0.88rem;
  width: 150px;
}

.search-form input::placeholder {
  color: var(--text-dim);
}

.search-form button {
  background: var(--bg-card);
  border: 0;
  color: var(--text-muted);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.search-form button:hover {
  color: var(--gold);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  color: var(--text);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #d49a2a 100%);
  border-color: transparent;
  color: #12141a;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover) 0%, #e0a735 100%);
  color: #0b0d11;
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  border-color: transparent;
  color: #09150f;
}

.btn-green:hover {
  background: #38ca7f;
  color: #09150f;
}

.btn-danger {
  background: var(--danger-soft);
  border-color: rgba(226, 85, 85, 0.35);
  color: #ff8f8f;
}

.btn-danger:hover {
  background: rgba(226, 85, 85, 0.28);
  color: #fff;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.82rem;
}

/* ---------- Preview Banner ---------- */
.preview-ribbon {
  background: linear-gradient(90deg, #1d2434, #252018);
  border-bottom: 1px solid rgba(232, 184, 75, 0.25);
  color: var(--text-muted);
  font-size: 0.84rem;
  padding: 8px 0;
}

.preview-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-ribbon strong {
  color: var(--gold);
}

/* ---------- Main Content ---------- */
main.site-main {
  flex: 1;
  padding: 26px 0 56px;
}

/* ---------- Hero Slideshow ---------- */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 36px;
  background: #0a0c10;
  min-height: 360px;
}

.slide-item {
  position: relative;
  display: none;
  min-height: 380px;
}

.slide-item.active {
  display: block;
  animation: fadeSlide 0.45s ease;
}

@keyframes fadeSlide {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.slide-item img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  filter: brightness(0.62);
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 12, 17, 0.94) 8%, rgba(10, 12, 17, 0.45) 55%, rgba(10, 12, 17, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px 40px;
}

.slide-kicker {
  display: inline-block;
  align-self: flex-start;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1px solid rgba(232, 184, 75, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.slide-overlay h1,
.slide-overlay h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3.1vw, 2.4rem);
  line-height: 1.18;
  color: #fff;
  max-width: 720px;
}

.slide-overlay p {
  margin: 0 0 18px;
  color: #d6dce9;
  font-size: 1.02rem;
  max-width: 650px;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 14, 19, 0.65);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.18s ease;
}

.slider-arrow:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }

.slider-dots {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.slider-dot.active {
  width: 26px;
  background: var(--gold);
}

/* ---------- Section Headings & Category Pills ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  font-size: 1.48rem;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.cat-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.cat-pill:hover,
.cat-pill.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

.cat-pill .count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.76rem;
}

/* ---------- Articles Grid & Cards ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1b2232 0%, #10131c 100%);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-card:hover .card-media img {
  transform: scale(1.04);
}

.card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(12, 14, 19, 0.82);
  color: var(--gold);
  border: 1px solid rgba(232, 184, 75, 0.45);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 700;
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.badge-cat {
  display: inline-block;
  background: var(--gold-soft);
  color: var(--gold);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.card-title {
  margin: 0 0 8px;
  font-size: 1.07rem;
  line-height: 1.35;
  color: var(--text);
}

.card-title a {
  color: inherit;
}

.card-title a:hover {
  color: var(--gold);
}

.card-excerpt {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.89rem;
  line-height: 1.55;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ---------- Article Detail Page ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.article-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

.article-detail h1 {
  margin: 12px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.2;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.article-cover {
  margin: 0 0 26px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0d12;
}

.article-cover img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
}

.article-prose {
  font-size: 1.04rem;
  line-height: 1.78;
  color: #e4e8f2;
}

.article-prose p {
  margin: 0 0 16px;
}

.article-prose h2,
.article-prose h3 {
  margin: 26px 0 10px;
  color: #fff;
}

.article-prose img {
  border-radius: var(--radius-sm);
  margin: 18px auto;
  border: 1px solid var(--border);
}

.article-prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin: 24px 0;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.related-section {
  max-width: 900px;
  margin: 38px auto 0;
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.page-btn:hover,
.page-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-soft);
}

/* ---------- Contact Box ---------- */
.contact-card {
  max-width: 740px;
  margin: 10px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-email-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 22px 0;
}

.contact-email-box a {
  font-size: 1.18rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #090b0f;
  padding: 28px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

/* ==========================================================================
   ADMIN DASHBOARD (Ultra-semplice, intuitiva, zero tecnicismi)
   ========================================================================== */
.admin-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.login-card {
  max-width: 440px;
  margin: 48px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.admin-topbar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.admin-tab {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.stat-box .num {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.stat-box .lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.form-group small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.18s ease;
}

.form-control:focus {
  border-color: var(--gold);
}

.form-control-lg {
  font-size: 1.14rem;
  font-weight: 600;
  padding: 13px 16px;
}

.upload-dropzone {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.upload-preview {
  width: 150px;
  height: 98px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0a0c10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  flex-shrink: 0;
}

.upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Visual Rich Text Editor */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #10141e;
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 8px 10px;
}

.ed-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.ed-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.editor-area {
  min-height: 290px;
  max-height: 540px;
  overflow-y: auto;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 16px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  outline: none;
}

.editor-area:focus {
  border-color: var(--gold);
}

.editor-area img {
  max-width: 340px;
  border-radius: 8px;
  margin: 10px 0;
}

/* Admin Table / List */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.admin-thumb {
  width: 76px;
  height: 52px;
  border-radius: 7px;
  background: #161b26;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 0.72rem;
}

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

.admin-row-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.admin-row-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-pill {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-published {
  background: var(--green-soft);
  color: #5ee39e;
}

.status-draft {
  background: rgba(255, 193, 7, 0.14);
  color: #ffd166;
}

.status-trashed {
  background: var(--danger-soft);
  color: #ff8f8f;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 0.92rem;
  border: 1px solid transparent;
}

.alert-success {
  background: var(--green-soft);
  border-color: rgba(46, 184, 114, 0.4);
  color: #8bf3bc;
}

.alert-warn {
  background: var(--gold-soft);
  border-color: rgba(232, 184, 75, 0.4);
  color: #f6d380;
}

.alert-danger {
  background: var(--danger-soft);
  border-color: rgba(226, 85, 85, 0.45);
  color: #ff9c9c;
}

.empty-state {
  text-align: center;
  padding: 46px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ---------- In Evidenza & Backup ---------- */
.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #c98d20 100%);
  color: #111;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.featured-section {
  background: linear-gradient(180deg, rgba(232, 184, 75, 0.07) 0%, rgba(232, 184, 75, 0.015) 100%);
  border: 1px solid rgba(232, 184, 75, 0.24);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
}

.featured-check-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-soft);
  border: 1px solid rgba(232, 184, 75, 0.36);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  cursor: pointer;
  margin-bottom: 18px;
}

.featured-check-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.btn-star {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text-muted);
}

.btn-star:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-star.active {
  background: var(--gold-soft);
  border-color: rgba(232, 184, 75, 0.55);
  color: var(--gold);
}

.backup-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .main-nav.open {
    display: flex;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .search-form {
    flex: 1;
  }
  .search-form input {
    width: 100%;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .slide-item img {
    height: 300px;
  }
  .slide-overlay {
    padding: 22px 20px;
  }
  .article-detail {
    padding: 22px 18px;
  }
  .admin-row {
    grid-template-columns: 1fr;
  }
  .admin-thumb {
    width: 100%;
    height: 130px;
  }
}
