/*
Theme Name: QualÈMeglio Gaming
Theme URI: https://quale-meglio.it
Description: Dark gaming theme per QualÈMeglio.it — guide comparative periferiche gaming e tech. Child theme di GeneratePress.
Author: QualÈMeglio.it
Author URI: https://quale-meglio.it
Template: generatepress
Version: 2.0.0
Text Domain: qualemeglio-gaming
*/

/* ═══════════════════════════════════════════════════
   QUALÈMEGLIO GAMING THEME v2.0
   Domain: quale-meglio.it
   ═══════════════════════════════════════════════════ */

/* ─── VARIABILI GLOBALI ──────────────────────────── */
:root {
  --g-dark: #0B0E17;
  --g-darker: #060810;
  --g-card: #111827;
  --g-border: #1E293B;
  --g-primary: #3B82F6;
  --g-primary-light: #60A5FA;
  --g-accent: #06D6A0;
  --g-accent2: #8B5CF6;
  --g-danger: #EF4444;
  --g-warning: #F59E0B;
  --g-text: #E2E8F0;
  --g-text-dim: #94A3B8;
  --g-text-muted: #64748B;
  --g-success: #10B981;
  --g-radius: 10px;
  --g-radius-sm: 6px;
}

/* ─── FONT ───────────────────────────────────────── */
/* Fonts loaded via wp_enqueue_style in functions.php (more reliable than @import) */

/* ─── BASE — FORCE OVERRIDE GENERATEPRESS ────────── */
/* Ultra-specific selectors to beat GP Customizer inline styles */
html body,
body.flavor-flavor,
body.flavor-flavor.flavor-flavor {
  background: var(--g-dark) !important;
  background-color: var(--g-dark) !important;
  color: var(--g-text) !important;
  font-family: 'Exo 2', -apple-system, sans-serif !important;
  line-height: 1.7;
}
/* Override ALL GeneratePress background containers */
body .site,
body .site-content,
body .content-area,
body #page,
body #content,
body .grid-container,
body .site-main,
body .container,
body .page-hero { 
  background: var(--g-dark) !important; 
  background-color: var(--g-dark) !important; 
}

html body a { color: var(--g-primary-light); transition: color 0.2s; }
html body a:hover { color: var(--g-accent); }

/* Force text colors on all GeneratePress elements */
html body p,
html body li,
html body span,
html body div,
html body td { color: var(--g-text-dim); }

/* ─── HEADER ─────────────────────────────────────── */
html body .site-header,
body #masthead,
body header.site-header,
body .site-header {
  background: var(--g-darker) !important;
  background-color: var(--g-darker) !important;
  border-bottom: 1px solid var(--g-border) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
html body .site-header a,
html body .site-header .main-title a { color: var(--g-text-dim) !important; }
html body .site-header a:hover { color: var(--g-accent) !important; }

/* Force navigation background dark */
html body .main-navigation,
html body .main-navigation .main-nav ul,
html body .main-navigation ul ul,
html body .navigation-search,
body .gen-sidebar-nav,
body .secondary-navigation {
  background: var(--g-darker) !important;
  background-color: var(--g-darker) !important;
}

.main-navigation .main-nav > ul > li > a {
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  font-size: 14px;
}

/* ─── LOGO HEADER ────────────────────────────────── */
.site-logo img, .custom-logo { max-height: 70px; width: auto; }
/* Header logo area — give more space */
html body .site-branding { padding: 8px 0; }
.qm-logo-text { font-family: 'Rajdhani', sans-serif; font-weight: 800; font-size: 24px; text-decoration: none !important; }
.qm-logo-text .q { color: var(--g-text); }
.qm-logo-text .e { color: var(--g-accent); font-size: 26px; }
.qm-logo-text .m { color: var(--g-primary-light); }
.qm-logo-text .d { color: var(--g-text-muted); font-size: 18px; }

/* ─── CONTENUTO ──────────────────────────────────── */
html body .site-content,
body .site-content { background: var(--g-dark) !important; background-color: var(--g-dark) !important; }

/* Force dark card on article — beat GP Customizer */
html body .inside-article,
body .site-main .inside-article,
body .content-area .inside-article,
body #primary .inside-article,
body article .inside-article,
body .page .inside-article,
body .single .inside-article,
body .hentry .inside-article,
.inside-article {
  background: var(--g-card) !important;
  background-color: var(--g-card) !important;
  border: 1px solid var(--g-border) !important;
  border-radius: var(--g-radius) !important;
  padding: 30px !important;
  margin-bottom: 20px;
  color: var(--g-text-dim) !important;
}
/* Override GeneratePress content area */
html body .site-main,
body .site-main { background: transparent !important; background-color: transparent !important; }
html body .container,
html body .grid-container { background: transparent !important; background-color: transparent !important; }

html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
body .entry-content h1, body .entry-content h2, body .entry-content h3 {
  font-family: 'Rajdhani', sans-serif !important;
  color: var(--g-primary-light) !important;
  font-weight: 700;
}
html body h1 { font-size: 28px; }
html body h2 { font-size: 22px; border-bottom: 1px solid var(--g-border); padding-bottom: 8px; margin-top: 32px; }
html body h3 { font-size: 18px; color: var(--g-text) !important; }

html body .entry-content p,
body .inside-article p { color: var(--g-text-dim) !important; font-size: 15px; margin-bottom: 16px; }
html body .entry-content li { color: var(--g-text-dim) !important; }
html body .entry-content strong,
body .inside-article strong { color: var(--g-text) !important; }
html body .entry-content a { color: var(--g-primary-light) !important; }
html body .entry-content a:hover { color: var(--g-accent) !important; }

/* ─── TABELLA COMPARATIVA ────────────────────────── */
.game-table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 14px; border: 1px solid var(--g-border);
  border-radius: var(--g-radius); overflow: hidden;
}
.game-table thead { background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.1)); }
.game-table th {
  color: var(--g-primary-light); font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; padding: 12px 10px; text-align: center;
}
.game-table td {
  padding: 12px 10px; border-bottom: 1px solid var(--g-border);
  text-align: center; color: var(--g-text-dim); font-size: 13px;
}
.game-table tbody tr:hover { background: rgba(59,130,246,0.04); }
.game-table .badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.badge-green { background: rgba(16,185,129,0.15); color: var(--g-success); }
.badge-blue { background: rgba(59,130,246,0.15); color: var(--g-primary-light); }
.badge-amber { background: rgba(245,158,11,0.15); color: var(--g-warning); }

/* ─── SCHEDA PRODOTTO ────────────────────────────── */
.prod-card {
  background: var(--g-card); border: 1px solid var(--g-border);
  border-radius: var(--g-radius); padding: 28px; margin: 24px 0;
  transition: border-color 0.3s;
}
.prod-card:hover { border-color: rgba(59,130,246,0.3); }
.prod-card.top {
  border-color: var(--g-accent);
  box-shadow: 0 0 20px rgba(6,214,160,0.08);
}
.prod-card h3 {
  font-size: 20px !important; margin-bottom: 4px;
  color: var(--g-text) !important;
}
.prod-sub {
  color: var(--g-text-muted); font-size: 13px;
  font-style: italic; margin-bottom: 12px;
}
.prod-badge {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.prod-badge-top { background: rgba(6,214,160,0.15); color: var(--g-accent); border: 1px solid rgba(6,214,160,0.3); }
.prod-badge-value { background: rgba(245,158,11,0.15); color: var(--g-warning); border: 1px solid rgba(245,158,11,0.3); }
.prod-badge-budget { background: rgba(59,130,246,0.15); color: var(--g-primary-light); border: 1px solid rgba(59,130,246,0.3); }

/* Punteggio */
.prod-score { display: flex; align-items: center; gap: 6px; margin: 12px 0; }
.prod-score-num {
  background: linear-gradient(135deg, var(--g-primary), var(--g-accent2));
  color: white; font-family: 'Rajdhani', sans-serif; font-weight: 800;
  font-size: 20px; padding: 2px 12px; border-radius: var(--g-radius-sm);
  line-height: 1.3;
}
.prod-score-label { color: var(--g-text-muted); font-size: 14px; }

/* Descrizione prodotto */
.prod-desc {
  color: var(--g-text-dim); font-size: 14px; line-height: 1.7;
  margin: 14px 0; padding: 14px 0; border-top: 1px solid var(--g-border);
}
.prod-desc p { margin-bottom: 10px; }

/* Specifiche tecniche */
.prod-specs {
  width: 100%; border-collapse: collapse; margin: 14px 0;
  font-size: 13px; border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm); overflow: hidden;
}
.prod-specs th {
  text-align: left; padding: 8px 12px; background: rgba(59,130,246,0.06);
  color: var(--g-text-dim); font-weight: 600; width: 40%;
  border-bottom: 1px solid var(--g-border);
}
.prod-specs td {
  padding: 8px 12px; color: var(--g-text);
  border-bottom: 1px solid var(--g-border);
}

/* Pro/Contro */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
@media (max-width: 600px) { .pc-grid { grid-template-columns: 1fr; } }
.pc-box { border-radius: var(--g-radius-sm); padding: 16px; }
.pc-pro {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
}
.pc-con {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.2);
}
.pc-pro h4, .pc-con h4 {
  font-family: 'Rajdhani', sans-serif !important; font-size: 12px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.pc-pro h4 { color: var(--g-success) !important; }
.pc-con h4 { color: var(--g-danger) !important; }
.pc-pro ul, .pc-con ul { list-style: none; padding: 0; margin: 0; }
.pc-pro li, .pc-con li {
  padding: 4px 0; font-size: 13px; color: var(--g-text-dim);
}
.pc-pro li::before { content: "✓ "; color: var(--g-success); font-weight: 700; }
.pc-con li::before { content: "✗ "; color: var(--g-danger); font-weight: 700; }

/* Ideale per */
.prod-ideal {
  background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.15);
  border-radius: var(--g-radius-sm); padding: 12px 16px; margin: 14px 0;
  font-size: 13px; color: var(--g-text-dim);
}
.prod-ideal strong { color: var(--g-primary-light); }

/* Link recensioni */
.prod-reviews {
  margin: 14px 0; padding: 14px 0;
  border-top: 1px solid var(--g-border);
}
.prod-reviews h4 {
  font-size: 12px !important; text-transform: uppercase;
  letter-spacing: 1px; color: var(--g-text-muted) !important;
  margin-bottom: 10px;
}
.review-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g-darker); border: 1px solid var(--g-border);
  border-radius: 20px; padding: 5px 14px; margin: 3px 4px 3px 0;
  font-size: 12px; color: var(--g-text-dim); text-decoration: none;
  transition: all 0.2s;
}
.review-link:hover {
  border-color: var(--g-primary); color: var(--g-primary-light);
  background: rgba(59,130,246,0.06);
}
.review-link .review-icon { font-size: 14px; }
.review-link-it { border-color: rgba(6,214,160,0.2); }
.review-link-it:hover { border-color: var(--g-accent); color: var(--g-accent); }
.review-link-intl { border-color: rgba(139,92,246,0.2); }
.review-link-intl:hover { border-color: var(--g-accent2); color: var(--g-accent2); }

/* CTA Affiliato */
.cta-game {
  display: inline-block;
  background: linear-gradient(135deg, var(--g-primary), var(--g-accent2));
  color: white !important; font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 15px; padding: 12px 28px;
  border-radius: var(--g-radius-sm); text-decoration: none !important;
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 14px; transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59,130,246,0.2);
}
.cta-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59,130,246,0.35);
}

/* ─── VERDETTO ───────────────────────────────────── */
.verdict-game {
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--g-radius); padding: 28px; margin: 32px 0;
}
.verdict-game h3 { color: var(--g-primary-light) !important; font-size: 20px !important; }
.verdict-game p { color: var(--g-text-dim); }

/* ─── FAQ ────────────────────────────────────────── */
.faq-game {
  background: rgba(11,14,23,0.5); border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm); margin-bottom: 8px;
}
.faq-game summary {
  padding: 14px 18px; font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 15px; color: var(--g-text);
  cursor: pointer; list-style: none;
}
.faq-game summary::-webkit-details-marker { display: none; }
.faq-game summary::before { content: "▸ "; color: var(--g-accent); }
.faq-game[open] summary::before { content: "▾ "; }
.faq-game .faq-a {
  padding: 0 18px 14px; font-size: 14px;
  color: var(--g-text-dim); line-height: 1.6;
}

/* ─── DISCLAIMER AFFILIATI ───────────────────────── */
.aff-disclaimer {
  background: rgba(59,130,246,0.04);
  border-left: 3px solid var(--g-primary);
  border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
  padding: 14px 18px; font-size: 12px; color: var(--g-text-muted);
  margin: 20px 0; line-height: 1.5;
}
.aff-disclaimer a { color: var(--g-primary-light); font-size: 12px; }

/* ─── AD SLOTS ───────────────────────────────────── */
.ad-slot {
  background: var(--g-darker); border: 1px dashed var(--g-border);
  border-radius: var(--g-radius-sm); padding: 8px;
  margin: 24px 0; text-align: center; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ad-slot-header { margin: 0 0 20px; }
.ad-slot-mid { margin: 28px 0; }
.ad-slot-footer { margin: 20px 0 0; }
.ad-slot-sidebar { margin: 16px 0; }
/* Placeholder text — rimosso quando Advanced Ads inietta il banner */
.ad-slot::before {
  content: ""; font-size: 10px; color: var(--g-text-muted);
  text-transform: uppercase; letter-spacing: 1px;
}

/* ─── SIDEBAR ────────────────────────────────────── */
.widget { background: var(--g-card) !important; border: 1px solid var(--g-border) !important; border-radius: var(--g-radius); padding: 20px; margin-bottom: 16px; color: var(--g-text-dim) !important; }
.widget-title { font-family: 'Rajdhani', sans-serif !important; color: var(--g-primary-light) !important; font-size: 16px; border-bottom: 1px solid var(--g-border); padding-bottom: 8px; margin-bottom: 12px; }
.widget a { color: var(--g-primary-light) !important; }
.widget a:hover { color: var(--g-accent) !important; }

/* ─── FOOTER WIDGET AREA ─────────────────────────── */
html body .footer-widget,
html body .footer-widget p,
html body .footer-widget div,
html body #footer-widget,
html body .sidebar-footer-widget {
  color: var(--g-text-muted) !important;
  background: transparent !important;
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
}
html body .footer-widget a {
  color: var(--g-text-dim) !important;
}
/* Force footer widget area visible */
html body .site-footer .footer-widgets-container,
html body .site-footer .inside-footer-widgets {
  background: var(--g-darker) !important;
  padding: 16px 0 !important;
}

/* ─── RIMUOVI SIDEBAR — Full width ───────────────── */
/* Homepage e pagine: sempre full width, niente sidebar */
html body.page .site-content .content-area,
html body.home .site-content .content-area,
html body.page #primary,
html body.home #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
html body.page #secondary,
html body.page .sidebar,
html body.home #secondary,
html body.home .sidebar {
  display: none !important;
  width: 0 !important;
}
/* Anche sui singoli post: full width per guide lunghe */
html body.single .site-content .content-area,
html body.single #primary {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}
html body.single #secondary,
html body.single .sidebar {
  display: none !important;
  width: 0 !important;
}

/* ─── NASCONDE TITOLO PAGINA DUPLICATO ──────────── */
/* Le pagine legali hanno già h1 con icona nel contenuto.
   Nascondi il titolo auto di WordPress per evitare duplicato. */
.page .entry-header { display: none !important; }

/* ─── FOOTER ─────────────────────────────────────── */
html body .site-footer,
body footer.site-footer,
body .site-footer {
  background: var(--g-darker) !important; 
  background-color: var(--g-darker) !important;
  color: var(--g-text-muted) !important;
  border-top: 1px solid var(--g-border) !important;
}
.site-footer a { color: var(--g-text-dim) !important; }
.site-footer a:hover { color: var(--g-accent) !important; }
/* Nascondi credit GeneratePress - tutte le varianti possibili */
.site-footer .copyright-bar { display: none !important; }
.site-info { text-align: center !important; padding: 20px !important; font-size: 13px !important; color: var(--g-text-muted) !important; }
.site-info a[href*="generatepress"] { display: none !important; }
.site-info .copyright-bar { display: none !important; }
/* Nasconde "Creato con GeneratePress" in qualsiasi forma */
.footer-bar { background: var(--g-darker) !important; border-top: 1px solid var(--g-border) !important; }
.inside-site-info { color: var(--g-text-muted) !important; }
.inside-site-info a { color: var(--g-text-dim) !important; }
/* Se il filtro PHP non funziona, nasconde il link con CSS */
a[href="https://generatepress.com"] { display: none !important; }
a[href*="generatepress.com"] { display: none !important; }

/* ─── PAGINE (Legal, Chi siamo, Metodologia) ─────── */
html body.page .inside-article,
body.page .site-main .inside-article,
body.page article .inside-article {
  background: var(--g-card) !important; 
  background-color: var(--g-card) !important;
  border: 1px solid var(--g-border) !important;
  border-radius: var(--g-radius) !important; 
  max-width: 800px; 
  margin: 20px auto;
}
.page .entry-content h1 {
  font-size: 26px; color: var(--g-primary-light) !important;
}
.page .entry-content h2 {
  font-size: 20px; color: var(--g-primary-light) !important;
  border-bottom: 1px solid var(--g-border); padding-bottom: 8px;
  margin-top: 28px;
}
/* Tabelle nelle pagine legali (cookie, metodologia) */
.page .entry-content table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 13px; border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm); overflow: hidden;
}
.page .entry-content table thead,
.page .entry-content table tr:first-child th {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.06));
}
.page .entry-content table th {
  color: var(--g-primary-light); font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 10px 12px; text-align: left;
  border-bottom: 1px solid var(--g-border);
}
.page .entry-content table td {
  padding: 10px 12px; border-bottom: 1px solid var(--g-border);
  color: var(--g-text-dim); font-size: 13px;
}
.page .entry-content table tbody tr:hover {
  background: rgba(59,130,246,0.03);
}
/* Liste nelle pagine */
.page .entry-content ul, .page .entry-content ol {
  color: var(--g-text-dim); font-size: 14px; padding-left: 24px;
  margin-bottom: 16px;
}
.page .entry-content li { margin-bottom: 6px; }
/* Note/callout nelle pagine */
.page .entry-content .note,
.page .entry-content blockquote {
  background: rgba(59,130,246,0.04);
  border-left: 3px solid var(--g-primary);
  border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
  padding: 12px 16px; margin: 16px 0;
  font-size: 13px; color: var(--g-text-muted);
}
/* Strong/bold */
.page .entry-content strong { color: var(--g-text); }
/* Code inline */
.page .entry-content code {
  background: rgba(59,130,246,0.08); color: var(--g-primary-light);
  padding: 2px 6px; border-radius: 3px; font-size: 12px;
}
/* Link nelle pagine legali */
.page .entry-content a {
  color: var(--g-primary-light); text-decoration: underline;
  text-decoration-color: rgba(96,165,250,0.3);
  text-underline-offset: 2px;
}
.page .entry-content a:hover {
  color: var(--g-accent);
  text-decoration-color: rgba(6,214,160,0.5);
}

/* ─── CONTATTI ───────────────────────────────────── */
.page-slug-contatti .entry-content,
.page-id .entry-content .contact-info {
  font-size: 15px;
}

/* ─── MENU NAV con icone ────────────────────────── */
.main-navigation .menu-item-icon { margin-right: 4px; }
.main-navigation .main-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: 4px;
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .inside-article { padding: 18px; }
  .prod-card { padding: 18px; }
  h1 { font-size: 22px; }
  h2 { font-size: 18px; }
  .game-table { font-size: 12px; }
  .game-table th, .game-table td { padding: 8px 6px; }
}

/* ═══════════════════════════════════════════════════
   HOMEPAGE — GAMING EDITION
   ═══════════════════════════════════════════════════ */

/* ─── HERO ───────────────────────────────────────── */
.qm-homepage { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.qm-hero { margin: 24px 0; }
.qm-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  min-height: 420px;
}
@media (max-width: 768px) {
  .qm-hero-grid { grid-template-columns: 1fr; min-height: auto; }
}

.qm-hero-main, .qm-hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--g-radius);
  border: 1px solid var(--g-border);
}
.qm-hero-main { min-height: 420px; }
.qm-hero-card { min-height: 204px; }

.qm-hero-link {
  display: block; width: 100%; height: 100%;
  text-decoration: none; color: inherit;
}

.qm-hero-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.qm-hero-img-placeholder {
  background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(139,92,246,0.15));
}
.qm-hero-main:hover .qm-hero-img,
.qm-hero-card:hover .qm-hero-img {
  transform: scale(1.05);
}

.qm-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,8,16,0.95) 0%, rgba(6,8,16,0.5) 50%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.qm-hero-card .qm-hero-overlay { padding: 18px; }

.qm-hero-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.qm-hero-date {
  font-size: 12px; color: var(--g-text-muted);
  font-family: 'Exo 2', sans-serif;
}

.qm-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--g-primary), var(--g-accent2));
  color: white; font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 11px;
  padding: 3px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.qm-tag-sm { font-size: 10px; padding: 2px 10px; }

.qm-hero-title {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 28px; font-weight: 800;
  color: white !important; line-height: 1.2;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.qm-hero-title-sm {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 17px; font-weight: 700;
  color: white !important; line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.qm-hero-excerpt {
  color: var(--g-text-dim); font-size: 14px;
  margin-bottom: 10px; line-height: 1.5;
}

.qm-hero-cta {
  color: var(--g-accent); font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 0.5px;
}

.qm-hero-side {
  display: flex; flex-direction: column; gap: 12px;
}

/* ─── STATS BAR ──────────────────────────────────── */
.qm-stats-bar {
  margin: 28px 0;
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  overflow: hidden;
}
.qm-stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 600px) {
  .qm-stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.qm-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 20px 16px;
  border-right: 1px solid var(--g-border);
}
.qm-stat:last-child { border-right: none; }
.qm-stat-num {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800; font-size: 28px;
  background: linear-gradient(135deg, var(--g-primary-light), var(--g-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.qm-stat-label {
  font-size: 12px; color: var(--g-text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  text-align: center;
}

/* ─── SECTION HEADERS ────────────────────────────── */
.qm-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.qm-section-title {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 22px !important; font-weight: 700;
  color: var(--g-text) !important;
  display: flex; align-items: center; gap: 10px;
  border: none !important; padding: 0 !important; margin: 0 !important;
}
.qm-section-icon { font-size: 24px; }
.qm-section-more {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 14px;
  color: var(--g-primary-light); text-decoration: none;
  transition: color 0.2s;
}
.qm-section-more:hover { color: var(--g-accent); }

.qm-category-section { margin: 36px 0; }

/* ─── CAROUSEL ───────────────────────────────────── */
.qm-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.qm-carousel::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .qm-carousel {
    grid-template-columns: repeat(3, 280px);
  }
}
@media (max-width: 600px) {
  .qm-carousel {
    grid-template-columns: repeat(3, 260px);
  }
}

/* ─── CARD ───────────────────────────────────────── */
.qm-card {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.3s, transform 0.3s;
}
.qm-card:hover {
  border-color: rgba(59,130,246,0.3);
  transform: translateY(-4px);
}
.qm-card-link {
  display: block; text-decoration: none; color: inherit;
}
.qm-card-img {
  height: 160px;
  background-size: cover; background-position: center;
  border-bottom: 1px solid var(--g-border);
  position: relative;
}
.qm-card-img-placeholder {
  background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
}
.qm-card-body { padding: 16px; }
.qm-card-title {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 16px !important; font-weight: 700;
  color: var(--g-text) !important;
  line-height: 1.3; margin-bottom: 6px !important;
}
.qm-card-excerpt {
  font-size: 13px; color: var(--g-text-muted);
  line-height: 1.5; margin-bottom: 10px;
}
.qm-card-cta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 13px;
  color: var(--g-accent);
}

/* ─── LATEST ARTICLES GRID ───────────────────────── */
.qm-latest-section { margin: 36px 0; }
.qm-latest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 600px) {
  .qm-latest-grid { grid-template-columns: 1fr; }
}

.qm-latest-card {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.qm-latest-card:hover { border-color: rgba(59,130,246,0.3); }
.qm-latest-card a {
  display: flex; text-decoration: none; color: inherit;
  height: 100%;
}
.qm-latest-img {
  width: 140px; min-height: 120px; flex-shrink: 0;
  background-size: cover; background-position: center;
  border-right: 1px solid var(--g-border);
}
@media (max-width: 500px) {
  .qm-latest-img { width: 100px; }
}
.qm-latest-body {
  padding: 14px; display: flex; flex-direction: column;
  justify-content: center; flex: 1;
}
.qm-latest-title {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 15px !important; font-weight: 700;
  color: var(--g-text) !important; line-height: 1.3;
  margin: 6px 0 8px !important;
}
.qm-latest-meta {
  display: flex; gap: 6px; font-size: 11px;
  color: var(--g-text-muted);
}

/* ─── CTA BOTTOM ─────────────────────────────────── */
.qm-cta-section {
  margin: 44px 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--g-radius);
  padding: 48px 32px;
  text-align: center;
}
.qm-cta-title {
  font-family: 'Rajdhani', sans-serif !important;
  font-size: 32px !important; font-weight: 800;
  color: var(--g-primary-light) !important;
  margin-bottom: 10px !important; border: none !important;
  padding: 0 !important;
}
.qm-cta-text {
  font-size: 15px; color: var(--g-text-dim);
  max-width: 500px; margin: 0 auto 20px;
}
.qm-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.qm-btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--g-primary), var(--g-accent2));
  color: white !important; font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: var(--g-radius-sm);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(59,130,246,0.2);
}
.qm-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59,130,246,0.35);
}
.qm-btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--g-border);
  color: var(--g-text-dim) !important; font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 15px;
  padding: 12px 28px; border-radius: var(--g-radius-sm);
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.5px;
  transition: all 0.3s;
}
.qm-btn-secondary:hover {
  border-color: var(--g-primary); color: var(--g-primary-light) !important;
}

/* ═══════════════════════════════════════════════════
   NUCLEAR OVERRIDES — Last resort over GP Customizer
   These run LAST so they beat inline styles from GP
   ═══════════════════════════════════════════════════ */

/* GP Customizer often adds inline styles via <style> tag.
   These selectors use maximum specificity + !important. */

html body.flavor-flavor.flavor-flavor,
html body[class],
html body {
  background-color: #0B0E17 !important;
  font-family: 'Exo 2', -apple-system, sans-serif !important;
}

html body[class] .site-header,
html body[class] #masthead {
  background-color: #060810 !important;
}

html body[class] .inside-article,
html body[class] article .inside-article,
html body[class] .post .inside-article,
html body[class] .page .inside-article {
  background-color: #111827 !important;
  color: #94A3B8 !important;
}

html body[class] h1,
html body[class] h2,
html body[class] .entry-title {
  font-family: 'Rajdhani', sans-serif !important;
  color: #60A5FA !important;
}

html body[class] .site-footer,
html body[class] footer {
  background-color: #060810 !important;
}

/* Kill GP credit in all forms */
html body .site-info a[href*="generatepress"],
html body a[href*="generatepress.com"],
html body .site-info .copyright-bar,
html body .footer-bar .copyright-bar {
  display: none !important;
  visibility: hidden !important;
  font-size: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Sidebar widget dark backgrounds */
html body[class] .widget,
html body[class] #secondary .widget {
  background-color: #111827 !important;
  border: 1px solid #1E293B !important;
  border-radius: 10px;
  color: #94A3B8 !important;
}

/* Navigation dropdowns */
html body[class] .main-navigation ul ul,
html body[class] .main-navigation .main-nav ul ul {
  background-color: #060810 !important;
  border: 1px solid #1E293B !important;
}

html body[class] .main-navigation ul ul a {
  color: #94A3B8 !important;
}

/* Mobile menu */
html body[class] .menu-toggle,
html body[class] .mobile-menu-control-wrapper .menu-toggle {
  color: #E2E8F0 !important;
}

/* Forms */
html body[class] input,
html body[class] textarea,
html body[class] select {
  background-color: #0B0E17 !important;
  border: 1px solid #1E293B !important;
  color: #E2E8F0 !important;
  border-radius: 6px;
}
html body[class] input:focus,
html body[class] textarea:focus {
  border-color: #3B82F6 !important;
  outline: none;
}

/* Comments area */
html body[class] .comments-area {
  background: transparent !important;
}
html body[class] .comment-body {
  background-color: #111827 !important;
  border: 1px solid #1E293B !important;
  border-radius: 10px;
  padding: 16px;
}

/* Pagination */
html body[class] .nav-links a,
html body[class] .page-numbers {
  background-color: #111827 !important;
  border: 1px solid #1E293B !important;
  color: #94A3B8 !important;
  border-radius: 6px;
  padding: 6px 12px;
}
html body[class] .nav-links a:hover,
html body[class] .page-numbers:hover,
html body[class] .page-numbers.current {
  background-color: #3B82F6 !important;
  color: white !important;
  border-color: #3B82F6 !important;
}

/* ═══ ARCHIVE / CATEGORY PAGES ═══════════════════════ */
/* Fix sfondo bianco nella description categoria */
html body.archive .page-header,
html body.category .page-header,
html body.tag .page-header,
html body .page-header {
  background-color: var(--g-card) !important;
  background: var(--g-card) !important;
  border: 1px solid var(--g-border) !important;
  border-radius: var(--g-radius) !important;
  padding: 24px 30px !important;
  margin-bottom: 20px !important;
}
html body .page-header .page-title,
html body .archive-title {
  color: var(--g-accent) !important;
  font-family: 'Rajdhani', sans-serif !important;
}
html body .page-header .archive-description,
html body .page-header .taxonomy-description,
html body .page-header p {
  color: var(--g-text-dim) !important;
}

/* ═══ FULL WIDTH FORCE ═══════════════════════════════ */
/* Nuclear: forza content area al 100% ovunque */
html body .site-content .content-area,
html body #primary,
body.no-sidebar .site-content .content-area,
body.no-sidebar #primary,
body .content-area {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}
html body #secondary,
html body .sidebar,
html body .widget-area,
body.no-sidebar #secondary,
body.no-sidebar .sidebar {
  display: none !important;
  width: 0 !important;
  overflow: hidden !important;
}

/* ═══ ENTRY META / POST INFO ═════════════════════════ */
/* Fix colore data/autore/categoria in fondo ai post */
html body .entry-meta,
html body .entry-meta a,
html body .cat-links,
html body .cat-links a,
html body .tags-links a,
html body .post-categories,
html body .post-categories a,
html body .entry-footer,
html body .entry-footer a {
  color: var(--g-text-muted) !important;
}
html body .entry-meta a:hover,
html body .cat-links a:hover,
html body .entry-footer a:hover {
  color: var(--g-accent) !important;
}

/* Background scuro per entry-footer meta bar */
html body .entry-meta,
html body .entry-footer {
  background: rgba(59,130,246,0.04) !important;
  padding: 8px 12px !important;
  border-radius: var(--g-radius-sm);
  margin-top: 16px;
}

/* ═══ COMMENTS AREA ══════════════════════════════════ */
html body .comments-area .comment-reply-title,
html body #reply-title {
  color: var(--g-text) !important;
  font-family: 'Rajdhani', sans-serif !important;
}
html body .comment-form label {
  color: var(--g-text-dim) !important;
}
html body .comment-form .submit,
html body .form-submit input[type="submit"] {
  background: linear-gradient(135deg, var(--g-primary), #8B5CF6) !important;
  color: white !important;
  border: none !important;
  padding: 10px 24px !important;
  border-radius: var(--g-radius-sm) !important;
  font-family: 'Rajdhani', sans-serif !important;
  font-weight: 700 !important;
  cursor: pointer;
}

/* ═══ FOOTER FORCE ═══════════════════════════════════ */
html body .site-footer,
html body footer,
html body .site-info,
html body .inside-site-info {
  background-color: #060810 !important;
  color: #64748B !important;
  border-top: 1px solid #1E293B !important;
}
html body .site-info a,
html body .inside-site-info a,
html body .site-footer a {
  color: #94A3B8 !important;
}
