/*
Theme Name: MMCM Racing
Theme URI: https://www.mmcmracing.it
Author: MMCM Racing Team
Author URI: https://www.mmcmracing.it
Description: Tema ufficiale MMCM Racing - Sim Racing League per Assetto Corsa Competizione. Design scuro con accenti racing rosso/arancione, ottimizzato per WPDataTables. Include supporto video YouTube per hero section.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mmcm-racing
Tags: dark, racing, esports, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Colori principali */
  --mmcm-red: #e31837;
  --mmcm-red-dark: #b8142d;
  --mmcm-red-glow: rgba(227, 24, 55, 0.4);
  --mmcm-orange: #ff6b00;
  --mmcm-yellow: #ffd700;
  
  /* Sfondi */
  --bg-body: #0a0a0a;
  --bg-header: #080808;
  --bg-card: #111111;
  --bg-card-hover: #151515;
  --bg-element: #1a1a1a;
  --bg-input: #1e1e1e;
  --bg-row-odd: #141414;
  --bg-row-even: #181818;
  
  /* Bordi */
  --border-color: #2a2a2a;
  --border-light: #333333;
  --border-subtle: #222222;
  
  /* Testi */
  --text-white: #ffffff;
  --text-light: #e0e0e0;
  --text-gray: #aaaaaa;
  --text-muted: #666666;
  
  /* Font */
  --font-main: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
  --font-heading: 'Orbitron', 'Rajdhani', Arial, sans-serif;
  
  /* Transizioni */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  
  /* Ombre */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 15px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--mmcm-red-glow);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg-body);
  min-height: 100vh;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 { font-size: 2.5rem; letter-spacing: 3px; }
h2 { font-size: 2rem; letter-spacing: 2px; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1em;
  color: var(--text-light);
}

a {
  color: var(--mmcm-red);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--mmcm-orange);
}

strong, b {
  font-weight: 700;
  color: var(--text-white);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.main-content {
  flex: 1;
  padding: 40px 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: linear-gradient(180deg, var(--bg-header) 0%, rgba(8,8,8,0.95) 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

/* Logo */
.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 50px;
  width: auto;
  transition: transform var(--transition-normal);
}

.site-logo:hover img {
  transform: scale(1.05);
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-title span {
  color: var(--mmcm-red);
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  padding: 12px 16px;
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all var(--transition-fast);
  border-radius: 4px;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current_page_item > a {
  color: var(--mmcm-red);
  background: rgba(227, 24, 55, 0.1);
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  z-index: 100;
  list-style: none;
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all var(--transition-fast);
}

.nav-menu .sub-menu li a:hover {
  background: rgba(227, 24, 55, 0.1);
  color: var(--mmcm-red);
  border-left-color: var(--mmcm-red);
}

/* Sub-sub menu */
.nav-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 5px;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.menu-toggle:hover {
  border-color: var(--mmcm-red);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-white);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-body) 0%, #0f0f0f 50%, var(--bg-body) 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(227, 24, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Video Background */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

/* Per aspect ratio 16:9 */
@media (min-aspect-ratio: 16/9) {
  .hero-video {
    width: 100%;
    height: auto;
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero-video {
    width: auto;
    height: 100%;
  }
}

/* Image Background */
.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Overlay scuro */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 60px 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-title .highlight {
  color: var(--mmcm-red);
  text-shadow: 0 0 30px var(--mmcm-red-glow);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mmcm-red) 0%, var(--mmcm-red-dark) 100%);
  color: var(--text-white);
  border-color: var(--mmcm-red);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  color: var(--text-white);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border-color: var(--border-light);
}

.btn-outline:hover {
  border-color: var(--mmcm-red);
  color: var(--mmcm-red);
  background: rgba(227, 24, 55, 0.1);
}

.btn-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================
   CARDS - BOTTONI SEMPRE ALLINEATI
   ============================================ */

/* Griglia 4 colonne */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin: 40px 0;
}

@media (max-width: 1200px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* Card con altezza fissa e flex */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 30px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  /* FLEXBOX per allineamento verticale */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* Altezza minima per uniformità */
  min-height: 260px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mmcm-red), var(--mmcm-orange), var(--mmcm-red));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-color);
}

.card:hover::before {
  opacity: 1;
}

/* Icona grande */
.card-icon {
  font-size: 2rem;
  margin-right: 8px;
  line-height: 1;
  vertical-align: middle;
}

/* Titolo card */
.card-title {
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-shrink: 0; /* Non si comprime */
}

/* Descrizione - QUESTO SI ESPANDE */
.card-text {
  color: var(--text-gray);
  margin-bottom: 20px;
  flex: 1 1 auto; /* Cresce per riempire spazio */
  line-height: 1.6;
}

/* BOTTONE - BLOCCATO IN FONDO */
.card > .btn,
.card > a.btn {
  margin-top: auto !important; /* Spinge verso il basso */
  align-self: flex-start;
  flex-shrink: 0; /* Non si comprime */
}

/* ============================================
   WPDATATABLES STYLING - RACING THEME
   ============================================ */

/* Container principale */
.wpDataTablesWrapper,
div.wpDataTablesWrapper {
  background: #141414 !important;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,0.02) 2px, rgba(255,255,255,0.02) 4px) !important;
  border-radius: 8px !important;
  padding: 20px !important;
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(227, 24, 55, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  position: relative !important;
  overflow: hidden !important;
  margin: 25px 0 !important;
}

/* Striscia racing animata in alto */
.wpDataTablesWrapper::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--mmcm-red) 0%, var(--mmcm-orange) 50%, var(--mmcm-red) 100%) !important;
  background-size: 200% 100% !important;
  animation: racingStripe 3s linear infinite !important;
}

@keyframes racingStripe {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Hide processing */
.dataTables_processing {
  display: none !important;
}

/* Controlli tabella */
.dataTables_length,
.dataTables_length label,
.dataTables_filter label,
.dataTables_info {
  color: #b0b0b0 !important;
  font-family: var(--font-main) !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

.dataTables_length select,
.wpDataTablesWrapper select {
  background: #141414 !important;
  color: var(--text-white) !important;
  border: 2px solid #2a2a2a !important;
  border-radius: 6px !important;
  padding: 8px 30px 8px 12px !important;
  font-family: var(--font-main) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

.dataTables_length select:focus,
.wpDataTablesWrapper select:focus {
  border-color: var(--mmcm-red) !important;
  box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.4) !important;
  outline: none !important;
}

.dataTables_filter input {
  background: #141414 !important;
  border: 2px solid #2a2a2a !important;
  border-radius: 6px !important;
  padding: 10px 16px !important;
  color: var(--text-white) !important;
  font-family: var(--font-main) !important;
  min-width: 250px !important;
  transition: all 0.3s ease !important;
}

.dataTables_filter input:focus {
  border-color: var(--mmcm-red) !important;
  box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.4) !important;
  outline: none !important;
}

/* Filter row */
.wdt-filter-row {
  background: #1a1a1a !important;
}

.wdt-filter-row input,
.wdt-filter-row select {
  background: #141414 !important;
  color: var(--text-white) !important;
  border: 2px solid #2a2a2a !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

/* Bottoni */
.dt-button,
.dt-buttons .dt-button,
button.dt-button,
a.dt-button,
.wdt-button,
.wpDataTablesWrapper button,
.DTTT_button {
  background: #141414 !important;
  color: var(--text-white) !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 4px !important;
  padding: 8px 14px !important;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.dt-button:hover,
button.dt-button:hover,
a.dt-button:hover {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4) !important;
}

.dt-button.active,
.dt-button:active {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
  box-shadow: 0 0 20px rgba(227, 24, 55, 0.4) !important;
}

/* Dropdown menu dei bottoni */
.dt-button-collection,
div.dt-button-collection {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-lg) !important;
}

/* Tabella */
table.wpDataTable,
.wpDataTable {
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
  width: 100% !important;
  background: transparent !important;
  font-family: var(--font-main) !important;
}

/* Header tabella */
.wpDataTable thead th {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%) !important;
  color: var(--text-white) !important;
  font-family: var(--font-main) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  padding: 16px 20px !important;
  border: none !important;
  border-bottom: 3px solid var(--mmcm-red) !important;
  text-align: left !important;
  position: relative !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.wpDataTable thead th:hover {
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%) !important;
  color: var(--mmcm-red) !important;
}

/* Prima colonna header - strisce racing */
.wpDataTable thead th:first-child::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 8px !important;
  background: repeating-linear-gradient(180deg, var(--mmcm-red) 0px, var(--mmcm-red) 6px, transparent 6px, transparent 12px) !important;
}

/* Righe tabella */
.wpDataTable tbody tr {
  background: #141414 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border-radius: 4px !important;
}

.wpDataTable tbody tr:nth-child(odd) {
  background: #1a1a1a !important;
}

.wpDataTable tbody tr:hover {
  background: linear-gradient(90deg, rgba(227, 24, 55, 0.15) 0%, rgba(227, 24, 55, 0.05) 50%, rgba(227, 24, 55, 0.15) 100%) !important;
  transform: scale(1.005) translateX(4px) !important;
  box-shadow: -4px 0 0 var(--mmcm-red), 0 4px 20px rgba(227, 24, 55, 0.2) !important;
}

/* Celle tabella */
.wpDataTable tbody td {
  padding: 14px 20px !important;
  color: var(--text-white) !important;
  font-family: var(--font-main) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  background: transparent !important;
}

/* Prima cella (posizione) - rossa */
.wpDataTable tbody td:first-child {
  font-weight: 700 !important;
  font-size: 18px !important;
  color: var(--mmcm-red) !important;
  text-shadow: 0 0 10px rgba(227, 24, 55, 0.4) !important;
}

/* PODIO - Colori speciali */
/* 1° posto - ORO */
.wpDataTable tbody tr:nth-child(1) td:first-child {
  color: #ffd700 !important;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.6) !important;
}

.wpDataTable tbody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 30%) !important;
}

/* 2° posto - ARGENTO */
.wpDataTable tbody tr:nth-child(2) td:first-child {
  color: #c0c0c0 !important;
  text-shadow: 0 0 15px rgba(192, 192, 192, 0.6) !important;
}

/* 3° posto - BRONZO */
.wpDataTable tbody tr:nth-child(3) td:first-child {
  color: #cd7f32 !important;
  text-shadow: 0 0 15px rgba(205, 127, 50, 0.6) !important;
}

/* Immagini tabella */
.wpDataTable img {
  display: block !important;
  margin: 0 auto !important;
  max-width: 45px !important;
  max-height: 45px !important;
  width: auto !important;
  height: auto !important;
  border-radius: 50% !important;
  border: 2px solid var(--border-color) !important;
  object-fit: cover !important;
  background: var(--bg-element) !important;
}

/* Link tabella */
.wpDataTable a {
  color: var(--text-light) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  padding: 5px 12px !important;
  background: var(--bg-element) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 4px !important;
  display: inline-block !important;
  font-size: 11px !important;
  transition: all var(--transition-fast) !important;
}

.wpDataTable a:hover {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
  color: var(--text-white) !important;
}

/* Paginazione - Stile Racing */
.dataTables_paginate {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 20px !important;
  padding: 15px !important;
  background: #1a1a1a !important;
  border-radius: 6px !important;
  border-top: 2px solid var(--mmcm-red) !important;
}

.dataTables_paginate .paginate_button {
  background: #141414 !important;
  color: var(--text-white) !important;
  border: 1px solid #2a2a2a !important;
  border-radius: 4px !important;
  padding: 8px 14px !important;
  margin: 0 !important;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.dataTables_paginate .paginate_button:hover {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4) !important;
}

.dataTables_paginate .paginate_button.current {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
  box-shadow: 0 0 20px rgba(227, 24, 55, 0.4) !important;
}

.dataTables_paginate .paginate_button.disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
}

/* Statistiche positive/negative */
.stat.positive,
td.positive {
  color: #00ff88 !important;
}

.stat.negative,
td.negative {
  color: var(--mmcm-red) !important;
}

/* ============================================
   MODALS
   ============================================ */
.modal,
.modal-content,
[role="dialog"] {
  background: var(--bg-card) !important;
  color: var(--text-light) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
}

.modal-header {
  background: var(--bg-element) !important;
  border-bottom: 2px solid var(--mmcm-red) !important;
  padding: 20px !important;
}

.modal-header,
.modal-header * {
  color: var(--text-white) !important;
}

.modal-body {
  background: var(--bg-card) !important;
  padding: 25px !important;
}

.modal-body,
.modal-body * {
  color: var(--text-light) !important;
}

.modal-footer {
  background: var(--bg-element) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 15px 20px !important;
}

/* Modal checkboxes */
.modal input[type="checkbox"],
input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--bg-input) !important;
  border: 2px solid var(--border-color) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  position: relative !important;
}

.modal input[type="checkbox"]:hover,
input[type="checkbox"]:hover {
  border-color: var(--mmcm-red) !important;
}

.modal input[type="checkbox"]:checked,
input[type="checkbox"]:checked {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
}

.modal input[type="checkbox"]:checked::after,
input[type="checkbox"]:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: var(--text-white) !important;
  font-size: 14px !important;
  font-weight: bold !important;
}

/* Modal inputs */
.modal input[type="text"],
.modal input[type="search"],
.modal select,
.modal textarea {
  background: var(--bg-input) !important;
  color: var(--text-white) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  font-family: var(--font-main) !important;
}

.modal input:focus,
.modal select:focus {
  border-color: var(--mmcm-red) !important;
  outline: none !important;
}

/* Modal buttons */
.modal .btn,
.modal button {
  background: var(--bg-element) !important;
  color: var(--text-white) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  padding: 12px 24px !important;
  font-family: var(--font-main) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.modal .btn:hover,
.modal button:hover {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
}

.modal .btn-primary {
  background: var(--mmcm-red) !important;
  border-color: var(--mmcm-red) !important;
}

/* ============================================
   SELECT2
   ============================================ */
.select2-container--default .select2-selection--single {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 6px !important;
  height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-white) !important;
  line-height: 38px !important;
}

.select2-dropdown {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
}

.select2-results__option {
  color: var(--text-light) !important;
  padding: 10px 15px !important;
}

.select2-results__option--highlighted {
  background: var(--mmcm-red) !important;
}

.select2-search__field {
  background: var(--bg-input) !important;
  color: var(--text-white) !important;
  border: 1px solid var(--border-color) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--text-white);
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--mmcm-red);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--text-white);
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--mmcm-red);
  box-shadow: 0 0 0 3px var(--mmcm-red-glow);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-light);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: var(--mmcm-red);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--mmcm-orange);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--mmcm-red) var(--bg-body);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
  background: var(--mmcm-red);
  color: var(--text-white);
}

::-moz-selection {
  background: var(--mmcm-red);
  color: var(--text-white);
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }
.mt-5 { margin-top: 50px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }
.mb-5 { margin-bottom: 50px; }

.py-1 { padding-top: 10px; padding-bottom: 10px; }
.py-2 { padding-top: 20px; padding-bottom: 20px; }
.py-3 { padding-top: 30px; padding-bottom: 30px; }
.py-4 { padding-top: 40px; padding-bottom: 40px; }
.py-5 { padding-top: 50px; padding-bottom: 50px; }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .nav-menu > li > a {
    padding: 10px 12px;
    font-size: 12px;
  }
}

@media (max-width: 992px) {
  .menu-toggle {
    display: block;
  }
  
  .main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    display: none;
    padding: 20px;
  }
  
  .main-navigation.active {
    display: block;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-menu > li > a {
    padding: 15px;
    border-bottom: 1px solid var(--border-subtle);
  }
  
  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 20px;
    display: none;
  }
  
  .nav-menu li.menu-open > .sub-menu {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 10px 0;
  }
  
  .site-logo img {
    height: 40px;
  }
  
  .hero-section {
    min-height: 50vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .card {
    padding: 20px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .wpDataTablesWrapper {
    padding: 15px !important;
  }
  
  .wpDataTable thead th {
    font-size: 9px !important;
    padding: 8px 5px !important;
  }
  
  .wpDataTable tbody td {
    font-size: 11px !important;
    padding: 8px 5px !important;
  }
  
  .wpDataTable img {
    max-width: 35px !important;
    max-height: 35px !important;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

/* ============================================
   EXTRA WPDATATABLES FIXES
   Per massima compatibilità
   ============================================ */

/* Bottoni export/print - massima specificità */
div.wpDataTablesWrapper div.dt-buttons button.dt-button,
div.wpDataTablesWrapper div.dt-buttons a.dt-button,
.wpDataTablesWrapper .dt-buttons > button,
.wpDataTablesWrapper .dt-buttons > a.dt-button,
.wpDataTables .dt-buttons button,
table.dataTable ~ .dt-buttons button {
  background: #1e1e1e !important;
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  border: 2px solid #444444 !important;
  border-radius: 6px !important;
  padding: 10px 18px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

div.wpDataTablesWrapper div.dt-buttons button.dt-button:hover,
div.wpDataTablesWrapper div.dt-buttons a.dt-button:hover {
  background: #e31837 !important;
  border-color: #e31837 !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4) !important;
}

/* Input ricerca tabella */
.wpDataTablesWrapper .dataTables_filter input,
div.dataTables_filter input {
  background: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
  border-radius: 6px !important;
  padding: 10px 16px !important;
}

/* Select numero righe */
.wpDataTablesWrapper .dataTables_length select,
div.dataTables_length select {
  background: #1e1e1e !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
  border-radius: 6px !important;
  padding: 8px 30px 8px 12px !important;
}

/* Info e label */
.wpDataTablesWrapper .dataTables_info,
.wpDataTablesWrapper .dataTables_length label,
.wpDataTablesWrapper .dataTables_filter label,
div.dataTables_info,
div.dataTables_length label,
div.dataTables_filter label {
  color: #aaaaaa !important;
}

/* Paginazione */
.wpDataTablesWrapper .dataTables_paginate .paginate_button,
div.dataTables_paginate .paginate_button {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
  border-radius: 5px !important;
  padding: 8px 14px !important;
  margin: 0 3px !important;
}

.wpDataTablesWrapper .dataTables_paginate .paginate_button:hover,
div.dataTables_paginate .paginate_button:hover {
  background: #e31837 !important;
  border-color: #e31837 !important;
}

.wpDataTablesWrapper .dataTables_paginate .paginate_button.current,
div.dataTables_paginate .paginate_button.current {
  background: #e31837 !important;
  border-color: #e31837 !important;
}

/* Nascondi processing */
.dataTables_processing,
div.dataTables_processing {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Filtri colonne */
.wdt-filter-row input,
.wdt-filter-row select,
.wpDataTable .wdt-filter-row input,
.wpDataTable .wdt-filter-row select {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
}

.wdt-filter-row input:focus,
.wdt-filter-row select:focus {
  border-color: #555555 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Checkbox stilizzati */
input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  background: #1e1e1e !important;
  border: 2px solid #444444 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  position: relative !important;
}

input[type="checkbox"]:hover {
  border-color: #e31837 !important;
}

input[type="checkbox"]:checked {
  background: #e31837 !important;
  border-color: #e31837 !important;
}

input[type="checkbox"]:checked::after {
  content: '✓' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: bold !important;
}

/* Modali */
.modal-content,
.modal-dialog .modal-content,
div.modal-content {
  background: #151515 !important;
  color: #e0e0e0 !important;
  border: 1px solid #333333 !important;
  border-radius: 12px !important;
}

.modal-header {
  background: #1a1a1a !important;
  border-bottom: 2px solid #e31837 !important;
}

.modal-header,
.modal-header *,
.modal-title {
  color: #ffffff !important;
}

.modal-body {
  background: #151515 !important;
}

.modal-body,
.modal-body *,
.modal-body p,
.modal-body span,
.modal-body label {
  color: #e0e0e0 !important;
}

.modal-footer {
  background: #1a1a1a !important;
  border-top: 1px solid #333333 !important;
}

.modal .btn,
.modal button,
.modal-footer .btn,
.modal-footer button {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #444444 !important;
  border-radius: 6px !important;
  padding: 10px 20px !important;
}

.modal .btn:hover,
.modal button:hover {
  background: #e31837 !important;
  border-color: #e31837 !important;
}

.modal .btn-primary,
.modal button.btn-primary {
  background: #e31837 !important;
  border-color: #e31837 !important;
}

/* Select2 dropdown */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  background: #1e1e1e !important;
  border: 1px solid #333333 !important;
  border-radius: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #ffffff !important;
}

.select2-dropdown {
  background: #151515 !important;
  border: 1px solid #333333 !important;
}

.select2-results__option {
  color: #e0e0e0 !important;
  padding: 10px 15px !important;
}

.select2-results__option--highlighted,
.select2-results__option:hover {
  background: #e31837 !important;
  color: #ffffff !important;
}

.select2-search__field {
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
}

/* ============================================
   PAGINA SIMCONNECT - STILE SPECIFICO
   ============================================ */

/* Contenitore principale SimConnect */
.page-slug-simhub-mmcm-simconnect .entry-content,
.simconnect-page,
body[class*="simhub-mmcm-simconnect"] .entry-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero SimConnect */
.simconnect-hero,
.page-slug-simhub-mmcm-simconnect h1:first-of-type {
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid #e31837;
  box-shadow: 0 10px 40px rgba(227, 24, 55, 0.2);
}

/* Badge versione */
.version-badge,
.entry-content p:has(strong:contains("Versione")) {
  display: inline-block;
  background: linear-gradient(135deg, #e31837, #ff6b00);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  margin: 15px 0;
}

/* Sezione NOVITÀ - Verde/Teal */
.simconnect-new,
.entry-content h2:contains("Novità"),
.entry-content h2:contains("NUOVO") {
  background: linear-gradient(135deg, #0d7377 0%, #14a085 100%);
  color: white;
  padding: 25px;
  border-radius: 15px;
  margin: 30px 0;
}

/* Card Feature Box */
.feature-card,
.entry-content > h3 {
  background: linear-gradient(145deg, #1e1e2e, #252540);
  border-left: 4px solid #e31837;
  padding: 20px 25px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.entry-content > h3::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #e31837;
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
}

/* Box Cosa Fa - con checkmark verdi */
.what-it-does,
.entry-content h2:contains("Cosa fa") + *,
.entry-content p:has(strong:contains("✓")),
.entry-content p strong:first-child:contains("✓") {
  background: linear-gradient(135deg, #1a2a1a, #1e3a1e);
  border: 1px solid #2ecc71;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 10px 0;
}

/* Checkmark verde */
.entry-content p:contains("✓"),
.entry-content strong:contains("✓") {
  color: #2ecc71 !important;
}

/* Box numerati per funzionalità */
.entry-content h3:contains("1."),
.entry-content h3:contains("2."),
.entry-content h3:contains("3."),
.entry-content h3:contains("4."),
.entry-content h3:contains("5."),
.entry-content h3:contains("6."),
.entry-content h3:contains("7.") {
  background: linear-gradient(135deg, #252535, #1a1a2e);
  padding: 20px 25px;
  border-radius: 12px;
  margin: 25px 0 15px 0;
  border-left: 4px solid #3498db;
  position: relative;
}

/* Box Download/Installer - VERDE evidenziato */
.download-box,
.entry-content h2:contains("Auto-Installer"),
.entry-content h2:contains("Installer") {
  background: linear-gradient(135deg, #155724 0%, #1e7e34 100%);
  color: white;
  padding: 30px;
  border-radius: 15px;
  margin: 30px 0;
  text-align: center;
  border: 2px solid #28a745;
  box-shadow: 0 8px 30px rgba(40, 167, 69, 0.3);
}

/* Bottoni download */
.entry-content a[href*="github"],
.entry-content a[href*="download"],
.entry-content a:contains("Scarica"),
.download-btn {
  display: inline-block;
  background: linear-gradient(135deg, #e31837, #c0142b);
  color: white !important;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  margin: 10px 5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(227, 24, 55, 0.4);
  border: none;
}

.entry-content a[href*="github"]:hover,
.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 24, 55, 0.5);
  background: linear-gradient(135deg, #ff2a4a, #e31837);
}

/* Box requisiti */
.requirements-box,
.entry-content h3:contains("Requisiti") + * {
  background: #1a1a2e;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

/* Steps di installazione */
.install-steps,
.entry-content ol {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
}

.entry-content ol > li {
  background: linear-gradient(135deg, #1e1e30, #252545);
  border-radius: 10px;
  padding: 20px 20px 20px 70px;
  margin: 15px 0;
  position: relative;
  border-left: 3px solid #3498db;
}

.entry-content ol > li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #e31837, #ff6b00);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

/* Box FAQ */
.faq-box,
.entry-content h2:contains("FAQ") {
  background: linear-gradient(135deg, #2c2c54, #3d3d6b);
  padding: 25px;
  border-radius: 15px;
  margin: 30px 0;
}

.faq-item,
.entry-content h4 {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 8px;
  margin: 15px 0;
  border-left: 3px solid #ff6b00;
}

.entry-content h4::before {
  content: '❓ ';
}

/* Box link utili - Grid */
.useful-links,
.entry-content h2:contains("Link utili") + * {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

/* Card link */
.link-card,
.entry-content a[href*="github.com"],
.entry-content a[href*="discord"],
.entry-content a[href*="youtube"] {
  display: block;
  background: linear-gradient(145deg, #252535, #1a1a2e);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  border: 1px solid #333;
  transition: all 0.3s ease;
}

.link-card:hover,
.entry-content a[href*="github.com"]:hover,
.entry-content a[href*="discord"]:hover {
  transform: translateY(-5px);
  border-color: #e31837;
  box-shadow: 0 10px 30px rgba(227, 24, 55, 0.2);
}

/* Emoji come icone */
.entry-content h3 span:first-child,
.icon-emoji {
  font-size: 1.5em;
  margin-right: 10px;
}

/* Box messaggi vocali */
.voice-messages,
.entry-content p:has(span:contains("🔊")),
.entry-content p:contains("🔊") {
  background: linear-gradient(135deg, #1a2a3a, #1e3a4a);
  border: 1px solid #3498db;
  border-radius: 10px;
  padding: 15px 20px;
  margin: 10px 0;
  font-family: 'Courier New', monospace;
  color: #5dade2;
}

/* Box alert/warning */
.alert-box,
.entry-content p:contains("⚠️"),
.entry-content blockquote {
  background: linear-gradient(135deg, #3a2a1a, #4a3a1e);
  border-left: 4px solid #f39c12;
  padding: 15px 20px;
  border-radius: 0 10px 10px 0;
  margin: 15px 0;
}

/* Box successo/conferma */
.success-box,
.entry-content p:contains("✅") {
  background: linear-gradient(135deg, #1a3a2a, #1e4a3a);
  border-left: 4px solid #2ecc71;
  padding: 15px 20px;
  border-radius: 0 10px 10px 0;
  margin: 15px 0;
}

/* Troubleshooting box */
.troubleshoot-box,
.entry-content h3:contains("Risoluzione"),
.entry-content h3:contains("problemi") {
  background: linear-gradient(135deg, #3a1a1a, #4a1e1e);
  border: 1px solid #e74c3c;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

/* Footer SimConnect */
.simconnect-footer,
.entry-content p:last-of-type:contains("MMCM SimConnect") {
  text-align: center;
  padding: 30px;
  background: linear-gradient(135deg, #0a0a15, #1a1a2e);
  border-radius: 15px;
  margin-top: 40px;
  border-top: 3px solid #e31837;
}

/* Video embed */
.entry-content iframe[src*="youtube"],
.video-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin: 30px auto;
  display: block;
  max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .entry-content ol > li {
    padding-left: 60px;
  }
  
  .entry-content ol > li::before {
    left: 15px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .download-btn,
  .entry-content a[href*="github"] {
    display: block;
    margin: 10px 0;
  }
}

/* ========================================
   MMCM SimConnect - Stili Pagina
   ======================================== */

.mmcm-container { max-width: 900px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.7; padding: 20px; }
.mmcm-header { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: white !important; padding: 40px; border-radius: 12px; margin-bottom: 30px; text-align: center; }
.mmcm-header h1 { margin: 0 0 10px 0; font-size: 2.2em; color: white !important; }
.mmcm-header p { margin: 0; color: white !important; }
.mmcm-header .subtitle { font-size: 1.2em; opacity: 0.9; }
.mmcm-header .version { margin-top: 15px; font-size: 1em; opacity: 0.7; }

.mmcm-intro { background: #1a1a2e; padding: 25px; border-radius: 10px; margin-bottom: 30px; border-left: 4px solid #e63946; }
.mmcm-intro p { margin: 0; font-size: 1.1em; color: #e0e0e0 !important; }

.mmcm-novita { background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%); color: white !important; padding: 30px; border-radius: 12px; margin-bottom: 30px; }
.mmcm-novita h2 { margin: 0 0 20px 0; color: white !important; }
.mmcm-novita .badge { background: #95d5b2; color: #1b4332; padding: 5px 12px; border-radius: 20px; font-size: 0.7em; margin-right: 10px; display: inline-block; }
.mmcm-novita-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.mmcm-novita-item { background: rgba(255,255,255,0.15); padding: 20px; border-radius: 8px; }
.mmcm-novita-item h3 { margin: 0 0 10px 0; color: white !important; font-size: 1.1em; }
.mmcm-novita-item p { margin: 0; color: white !important; opacity: 0.95; }

.mmcm-section-title { color: #ffffff !important; border-bottom: 3px solid #e63946; padding-bottom: 10px; margin-top: 40px; margin-bottom: 20px; }

.mmcm-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 30px; }
.mmcm-card { background: #1a1a2e; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.3); border-left: 4px solid #2d6a4f; color: #e0e0e0; }

.mmcm-feature-box { background: #1a1a2e; padding: 25px; border-radius: 10px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.mmcm-feature-box h3 { color: #5dade2 !important; margin: 0 0 15px 0; }
.mmcm-feature-box p { margin: 0 0 10px 0; color: #d0d0d0; }
.mmcm-feature-box ul { margin: 10px 0; padding-left: 20px; color: #d0d0d0; }

.mmcm-tags { margin: 15px 0; }
.mmcm-tag { background: #2a2a3e; padding: 8px 15px; border-radius: 20px; display: inline-block; margin: 5px; font-size: 0.9em; color: #e0e0e0; }

.mmcm-highlight { background: #3d3d1a; padding: 15px; border-radius: 5px; border-left: 4px solid #ffc107; margin-top: 15px; color: #ffd700; }

.mmcm-assistant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
.mmcm-assistant-quali { background: #1a2a3a; padding: 15px; border-radius: 8px; color: #5dade2; }
.mmcm-assistant-gara { background: #1a3a2a; padding: 15px; border-radius: 8px; color: #5dde5d; }
.mmcm-assistant-track { background: #3a2a1a; padding: 15px; border-radius: 8px; color: #ffc107; }

.mmcm-terminal { background: #0a0a12; padding: 25px; border-radius: 10px; margin-bottom: 30px; font-family: 'Courier New', monospace; border: 1px solid #333; }
.mmcm-terminal .comment { color: #666; margin: 5px 0; }
.mmcm-terminal .message { color: #00ff88; margin: 5px 0; }

.mmcm-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 30px; }
.mmcm-info-yes { background: #1a3a2a; padding: 25px; border-radius: 10px; border: 2px solid #28a745; }
.mmcm-info-yes h3 { color: #5dde5d !important; margin: 0 0 15px 0; }
.mmcm-info-yes p { margin: 0; color: #a0e0a0; font-size: 1.1em; }
.mmcm-info-no { background: #3a1a1a; padding: 25px; border-radius: 10px; border: 2px solid #dc3545; }
.mmcm-info-no h3 { color: #ff6b6b !important; margin: 0 0 15px 0; }
.mmcm-info-no p { margin: 0; color: #e0a0a0; }

.mmcm-why { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white !important; padding: 30px; border-radius: 12px; margin-bottom: 30px; text-align: center; }
.mmcm-why h2 { margin: 0 0 15px 0; color: white !important; }
.mmcm-why p { margin: 0; font-size: 1.1em; color: white !important; }

.mmcm-install { background: #1a1a2e; border-radius: 12px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.mmcm-install-step { display: flex; align-items: center; padding: 20px; border-bottom: 1px solid #2a2a3e; }
.mmcm-install-step:last-child { border-bottom: none; }
.mmcm-install-num { background: #e63946; color: white; width: 40px; height: 40px; min-width: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; margin-right: 20px; }
.mmcm-install-step div { color: #d0d0d0; }
.mmcm-install-step a { color: #5dade2; }
.mmcm-install-done { background: #1a3a2a; }
.mmcm-install-done .mmcm-install-num { background: #28a745; }

/* AUTO-INSTALLER SECTION */
.mmcm-autoinstaller { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); color: white !important; padding: 30px; border-radius: 12px; margin-bottom: 30px; }
.mmcm-autoinstaller h2 { margin: 0 0 15px 0; color: white !important; }
.mmcm-autoinstaller p { color: white !important; }
.mmcm-autoinstaller-box { background: rgba(255,255,255,0.15); padding: 20px; border-radius: 10px; margin-top: 20px; }
.mmcm-autoinstaller-box h3 { color: white !important; margin: 0 0 15px 0; }
.mmcm-autoinstaller-steps { counter-reset: step-counter; list-style: none; padding: 0; margin: 0; }
.mmcm-autoinstaller-steps li { counter-increment: step-counter; padding: 10px 0 10px 50px; position: relative; border-bottom: 1px solid rgba(255,255,255,0.2); color: white; }
.mmcm-autoinstaller-steps li:last-child { border-bottom: none; }
.mmcm-autoinstaller-steps li::before { content: counter(step-counter); position: absolute; left: 0; top: 10px; background: white; color: #f7931e; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.mmcm-autoinstaller-btn { display: inline-block; background: white; color: #f7931e !important; padding: 15px 30px; border-radius: 8px; text-decoration: none !important; font-weight: bold; margin-top: 20px; transition: all 0.3s ease; }
.mmcm-autoinstaller-btn:hover { background: #f0f0f0; color: #f7931e !important; transform: translateY(-3px); }
.mmcm-autoinstaller-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.mmcm-autoinstaller-feature { background: rgba(255,255,255,0.2); padding: 15px; border-radius: 8px; text-align: center; color: white; }

/* TROUBLESHOOTING TABLE */
.mmcm-troubleshoot { margin-top: 20px; }
.mmcm-troubleshoot-item { background: rgba(255,255,255,0.1); padding: 15px; border-radius: 8px; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.mmcm-troubleshoot-problem { background: rgba(0,0,0,0.2); padding: 8px 12px; border-radius: 5px; font-weight: bold; flex: 1; min-width: 200px; color: white; }
.mmcm-troubleshoot-solution { flex: 2; min-width: 250px; color: white; }

.mmcm-code { background: rgba(0,0,0,0.3); padding: 3px 8px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.9em; }

.mmcm-video { background: #1a1a2e; color: white !important; padding: 30px; border-radius: 12px; margin-bottom: 30px; text-align: center; border: 2px solid #ff0000; }
.mmcm-video h2 { margin: 0 0 15px 0; color: white !important; }
.mmcm-video p { margin: 0 0 20px 0; color: #d0d0d0 !important; }
.mmcm-video-btn { display: inline-block; background: #ff0000; color: white !important; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: bold; transition: all 0.3s ease; }
.mmcm-video-btn:hover { background: #cc0000; color: white !important; transform: translateY(-3px); }

.mmcm-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 30px; }
.mmcm-link { display: block; padding: 20px; border-radius: 10px; text-decoration: none !important; text-align: center; transition: all 0.3s ease; }
.mmcm-link-github { background: #24292e; color: white !important; }
.mmcm-link-download { background: #2ea44f; color: white !important; }
.mmcm-link-discord { background: #5865F2; color: white !important; }
.mmcm-link-autoinstall { background: #f7931e; color: white !important; }
.mmcm-link:hover { opacity: 0.9; transform: translateY(-3px); }
.mmcm-link-icon { font-size: 2em; display: block; margin-bottom: 5px; }
.mmcm-link-title { font-weight: bold; display: block; }
.mmcm-link-sub { opacity: 0.7; display: block; font-size: 0.9em; }

.mmcm-faq { margin-bottom: 30px; }
.mmcm-faq-item { background: #1a1a2e; border: 1px solid #2a2a3e; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.mmcm-faq-q { background: #252535; padding: 15px 20px; font-weight: bold; color: #ffffff; }
.mmcm-faq-a { padding: 15px 20px; border-top: 1px solid #2a2a3e; color: #d0d0d0; }

.mmcm-footer { background: #1a1a2e; color: white !important; padding: 25px; border-radius: 12px; text-align: center; border-top: 3px solid #e63946; }
.mmcm-footer p { margin: 5px 0; color: white !important; }

/* REQUISITI BOX */
.mmcm-requisiti { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0; }
.mmcm-requisito { background: rgba(255,255,255,0.2); padding: 8px 15px; border-radius: 20px; font-size: 0.9em; color: white; }

/* Responsive SimConnect */
@media (max-width: 768px) {
  .mmcm-container { padding: 10px; }
  .mmcm-header { padding: 25px; }
  .mmcm-header h1 { font-size: 1.6em; }
  .mmcm-novita-grid { grid-template-columns: 1fr; }
  .mmcm-info-grid { grid-template-columns: 1fr; }
  .mmcm-links { grid-template-columns: 1fr; }
  .mmcm-install-step { flex-direction: column; text-align: center; }
  .mmcm-install-num { margin-right: 0; margin-bottom: 10px; }
}
