/*
Theme Name: CalosPit Pro
Theme URI: https://www.calospit.com
Author: Calogero Pitrone
Author URI: https://www.calospit.com
Description: Tema Modern Executive Clean Tech sviluppato su misura per CalosPit.com. Massima leggibilità certificata WCAG AAA, tavolozza chiara e luminosa con accenti Blu Elettrico e Smeraldo, tipografia Manrope e Plus Jakarta Sans, Core Web Vitals ottimizzati.
Version: 4.0.0
Text Domain: calospit
*/

:root {
  /* TAVOLOZZA COLORI CHIARI & AD ALTO CONTRASTO (WCAG AAA) */
  --cp-bg: #f8fafc;
  --cp-bg-radial: radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
                  radial-gradient(circle at 90% 85%, rgba(2, 132, 199, 0.05) 0%, transparent 45%), #f8fafc;
  --cp-surface: #ffffff;
  --cp-surface-elevated: #ffffff;
  --cp-surface-subtle: #f1f5f9;
  
  --cp-border: #e2e8f0;
  --cp-border-light: #f1f5f9;
  --cp-border-hover: #93c5fd;
  
  /* COLORI ACCENTO VIBRANTI & SOLARI */
  --cp-primary: #2563eb;
  --cp-primary-hover: #1d4ed8;
  --cp-primary-glow: 0 4px 14px rgba(37, 99, 235, 0.25);
  
  --cp-accent: #0284c7;
  --cp-accent-hover: #0369a1;
  
  --cp-emerald: #059669;
  --cp-emerald-bg: #ecfdf5;
  --cp-emerald-border: #a7f3d0;
  
  --cp-amber: #d97706;
  --cp-amber-bg: #fffbeb;
  --cp-amber-border: #fde68a;

  /* TIPOGRAFIA & CONTRASTO WCAG AAA (Leggibilità 10/10) */
  --cp-text-heading: #0f172a;
  --cp-text-body: #334155;
  --cp-text-muted: #64748b;
  --cp-text-sub: #94a3b8;
  
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --cp-radius-sm: 8px;
  --cp-radius-md: 12px;
  --cp-radius-lg: 18px;
  --cp-radius-xl: 24px;
  
  --cp-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --cp-shadow-card: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.03);
  --cp-shadow-hover: 0 18px 36px -8px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(37, 99, 235, 0.08);
  
  --cp-max-width: 1200px;
}

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

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--cp-bg);
  background-image: var(--cp-bg-radial);
  background-attachment: fixed;
  color: var(--cp-text-body);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--cp-text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 16px 0;
}

p {
  margin: 0 0 16px 0;
}

a {
  color: var(--cp-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--cp-primary-hover);
}

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

/* ==========================================================================
   NAVBAR HEADER (LIGHT GLASSMORPHISM)
   ========================================================================== */
.cp-navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--cp-border);
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.cp-navbar-container {
  max-width: var(--cp-max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cp-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.cp-brand img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.2s ease;
}

.cp-brand:hover img {
  transform: translateY(-1px);
}

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

.cp-nav-menu li a {
  color: var(--cp-text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.cp-nav-menu li a:hover {
  color: var(--cp-primary);
  background: rgba(37, 99, 235, 0.06);
}

.cp-nav-menu li.current-menu-item a,
.cp-nav-menu li.active a {
  color: var(--cp-primary);
  background: rgba(37, 99, 235, 0.08);
  font-weight: 700;
}

/* Badge WIP pill */
.cp-wip-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: var(--cp-amber-bg);
  color: #b45309;
  border: 1px solid var(--cp-amber-border);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.2;
}

/* Toggle Mobile */
.cp-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.cp-toggle-bar {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--cp-text-heading);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==========================================================================
   LAYOUT GENERALE
   ========================================================================== */
.cp-site-content {
  min-height: calc(100vh - 180px);
  padding: 30px 20px 60px;
}

.cp-page-entry {
  max-width: var(--cp-max-width);
  margin: 0 auto;
}

/* ==========================================================================
   ELEMENTI HOME PAGE (MODERN LIGHT TECH)
   ========================================================================== */
.cp-home-wrap {
  max-width: var(--cp-max-width);
  margin: 0 auto;
}

.cp-home-wrap p:empty,
.cp-pillars-grid > p,
.cp-sw-mini-grid > p,
.cp-principles-grid > p,
.cp-home-wrap br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cp-home-hero {
  text-align: center;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 4vw, 48px);
  position: relative;
  border-radius: var(--cp-radius-xl);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-card);
  margin-bottom: 45px;
  overflow: hidden;
}

.cp-home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0284c7, #059669);
}

.cp-home-tag {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
}

.cp-home-hero h1 {
  font-size: clamp(2.3rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--cp-text-heading);
  margin: 0 0 16px 0;
  line-height: 1.15;
}

.cp-home-hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--cp-text-body);
  max-width: 820px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.cp-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.cp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cp-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--cp-radius-md);
  box-shadow: var(--cp-primary-glow);
  transition: all 0.25s ease;
  border: none;
}

.cp-btn-primary:hover {
  background: var(--cp-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.cp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--cp-text-heading) !important;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--cp-radius-md);
  border: 1px solid var(--cp-border);
  box-shadow: var(--cp-shadow-sm);
  transition: all 0.25s ease;
}

.cp-btn-outline:hover {
  border-color: var(--cp-primary);
  color: var(--cp-primary) !important;
  background: #f8fafc;
  transform: translateY(-2px);
}

/* STATISTICHE */
.cp-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.cp-stat-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--cp-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cp-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--cp-shadow-hover);
  border-color: var(--cp-border-hover);
}

.cp-stat-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: var(--cp-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.cp-stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin-bottom: 4px;
}

.cp-stat-sub {
  font-size: 13px;
  color: var(--cp-text-muted);
  line-height: 1.4;
}

/* SEZIONI HOME */
.cp-home-section-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 10px 0;
  color: var(--cp-text-heading);
}

.cp-home-section-sub {
  text-align: center;
  color: var(--cp-text-body);
  font-size: 16.5px;
  max-width: 720px;
  margin: 0 auto 35px;
  line-height: 1.6;
}

.cp-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 55px;
}

.cp-pillar-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 32px 26px;
  box-shadow: var(--cp-shadow-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

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

.cp-pillar-icon {
  font-size: 34px;
  margin-bottom: 18px;
}

.cp-pillar-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--cp-text-heading);
}

.cp-pillar-card p {
  color: var(--cp-text-body);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

/* SOFTWARE MINI GRID IN HOME */
.cp-sw-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 55px;
}

.cp-sw-mini-item {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-md);
  padding: 22px 20px;
  box-shadow: var(--cp-shadow-card);
  transition: all 0.25s ease;
}

.cp-sw-mini-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--cp-shadow-hover);
  border-color: var(--cp-border-hover);
}

.cp-sw-mini-item h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin: 0;
}

.cp-sw-mini-item p {
  font-size: 14.5px;
  color: var(--cp-text-body);
  line-height: 1.6;
  margin: 8px 0 0;
}

/* PRINCIPI TECNICI */
.cp-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.cp-principle-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 28px 24px;
  box-shadow: var(--cp-shadow-card);
}

.cp-principle-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin: 0 0 10px 0;
}

.cp-principle-card p,
.cp-principle-card {
  font-size: 15px;
  color: var(--cp-text-body);
  line-height: 1.65;
}

/* ==========================================================================
   PAGINA COMPETENZE (MODERN LIGHT TECH)
   ========================================================================== */
.cp-competenze-container {
  max-width: var(--cp-max-width);
  margin: 0 auto;
}

.cp-competenze-container p:empty,
.cp-competenze-container .cp-grid > p,
.cp-competenze-container .cp-meta-grid > p {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.cp-hero-header {
  text-align: center;
  padding: clamp(38px, 5vw, 56px) clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-xl);
  margin-bottom: 40px;
  box-shadow: var(--cp-shadow-card);
}

.cp-hero-badge {
  display: inline-block;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

.cp-hero-header h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--cp-text-heading);
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.cp-hero-header p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--cp-text-body);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

.cp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 45px;
}

.cp-grid > .cp-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 30px 24px;
  box-shadow: var(--cp-shadow-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.cp-grid > .cp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow-hover);
  border-color: var(--cp-border-hover);
}

.cp-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
}

.cp-icon-blue { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.cp-icon-purple { background: #faf5ff; color: #9333ea; border: 1px solid #e9d5ff; }
.cp-icon-teal { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.cp-icon-indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.cp-icon-amber { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.cp-icon-rose { background: #fff1f2; color: #e11d48; border: 1px solid #fecdd3; }

.cp-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.cp-card-desc {
  font-size: 15.5px;
  color: var(--cp-text-body);
  margin-bottom: 18px;
  flex-grow: 1;
  line-height: 1.65;
}

.cp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  align-items: center;
}

.cp-tags br {
  display: none !important;
}

.cp-tag {
  background: var(--cp-surface-subtle);
  color: #1e293b;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--cp-border);
  display: inline-block;
  white-space: nowrap;
}

.cp-meta-section {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-xl);
  padding: 34px 30px;
  margin-top: 20px;
  box-shadow: var(--cp-shadow-card);
}

.cp-meta-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin: 0 0 18px 0;
}

.cp-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cp-meta-item {
  background: var(--cp-surface-subtle);
  padding: 22px;
  border-radius: var(--cp-radius-md);
  border: 1px solid var(--cp-border);
  height: 100%;
}

.cp-meta-item h4 {
  margin: 0 0 8px 0;
  color: var(--cp-primary);
  font-size: 16.5px;
  font-weight: 700;
}

.cp-meta-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--cp-text-body);
  line-height: 1.6;
}

/* ==========================================================================
   PAGINA SOLUZIONI REALIZZATE / LAVORI (MODERN LIGHT TECH)
   ========================================================================== */
.cp-soluzioni-wrap {
  max-width: var(--cp-max-width);
  margin: 0 auto;
}

.cp-hero-banner {
  text-align: center;
  padding: clamp(38px, 5vw, 56px) clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-xl);
  margin-bottom: 40px;
  box-shadow: var(--cp-shadow-card);
}

.cp-hero-banner h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--cp-text-heading);
  margin: 0 0 14px 0;
}

.cp-hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cp-text-body);
  max-width: 780px;
  margin: 0 auto 20px auto;
}

.cp-filter-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.cp-filter-btn {
  background: #ffffff;
  color: var(--cp-text-body);
  border: 1px solid var(--cp-border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: var(--cp-shadow-sm);
}

.cp-filter-btn:hover {
  border-color: var(--cp-primary);
  color: var(--cp-primary);
}

.cp-filter-btn.active {
  background: var(--cp-primary);
  color: #ffffff;
  border-color: var(--cp-primary);
  box-shadow: var(--cp-primary-glow);
}

.cp-section-block {
  margin-bottom: 55px;
}

.cp-sec-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--cp-border);
}

.cp-sec-title-left span {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: var(--cp-text-heading);
}

.cp-sec-badge {
  background: #eff6ff;
  color: var(--cp-primary);
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1100px) {
  .cp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.cp-cards-grid > p,
.cp-cards-grid > br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
  border: none !important;
}

.cp-tags-row br {
  display: none !important;
}

.cp-cards-grid > .cp-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  overflow: hidden;
  box-shadow: var(--cp-shadow-card);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.cp-cards-grid > .cp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cp-shadow-hover);
  border-color: var(--cp-border-hover);
}

.cp-card-thumb {
  background: #f1f5f9;
  border-bottom: 1px solid var(--cp-border-light);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cp-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cp-card:hover .cp-card-thumb img {
  transform: scale(1.02);
}

.cp-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cp-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cp-card-head .cp-card-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin: 0;
  line-height: 1.3;
}

/* STATI BADGE */
.cp-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

.cp-status-live {
  background: var(--cp-emerald-bg);
  color: #065f46;
  border: 1px solid var(--cp-emerald-border);
}

.cp-status-beta {
  background: var(--cp-amber-bg);
  color: #92400e;
  border: 1px solid var(--cp-amber-border);
}

.cp-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cp-tags-row .cp-tag {
  background: var(--cp-surface-subtle);
  border: 1px solid var(--cp-border);
  color: #334155;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
}

.cp-card-body .cp-card-desc {
  font-size: 14.5px;
  color: var(--cp-text-body);
  line-height: 1.65;
  margin-bottom: 16px;
}

.cp-feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cp-feat-list li {
  font-size: 13.5px;
  color: var(--cp-text-body);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cp-feat-check {
  color: var(--cp-emerald);
  font-weight: 800;
}

.cp-feat-list strong {
  color: var(--cp-text-heading);
}

/* DETAILS ACCORDION */
.cp-details-box {
  margin-top: auto;
  border-top: 1px solid var(--cp-border);
  padding-top: 12px;
}

.cp-details-box details summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-primary);
  user-select: none;
  outline: none;
}

.cp-details-box details[open] summary {
  margin-bottom: 10px;
}

.cp-details-content {
  font-size: 13px;
  color: var(--cp-text-body);
  line-height: 1.6;
  background: var(--cp-surface-subtle);
  padding: 12px 14px;
  border-radius: var(--cp-radius-sm);
  border: 1px solid var(--cp-border);
}

.cp-details-content strong {
  color: var(--cp-text-heading);
}

.cp-btn-visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--cp-primary) !important;
  border: 1px solid var(--cp-primary);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--cp-radius-sm);
  transition: all 0.2s ease;
  margin-top: 14px;
  width: 100%;
}

.cp-btn-visit:hover {
  background: var(--cp-primary);
  color: #ffffff !important;
}

/* ==========================================================================
   PAGINA SEGNALIBRI (WORK IN PROGRESS - MODERN LIGHT)
   ========================================================================== */
.cp-wip-container {
  max-width: var(--cp-max-width);
  margin: 0 auto;
}

.cp-wip-hero {
  text-align: center;
  padding: clamp(38px, 6vw, 60px) clamp(20px, 5vw, 40px);
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid var(--cp-amber-border);
  border-radius: var(--cp-radius-xl);
  margin-bottom: 40px;
  box-shadow: var(--cp-shadow-card);
  position: relative;
  overflow: hidden;
}

.cp-wip-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #0284c7, #2563eb);
}

.cp-wip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.cp-wip-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  display: inline-block;
}

.cp-wip-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--cp-text-heading);
  margin: 0 0 14px 0;
  line-height: 1.2;
}

.cp-wip-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--cp-text-body);
  max-width: 800px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.cp-wip-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.cp-wip-card {
  background: #ffffff;
  border: 1px solid var(--cp-border);
  border-radius: var(--cp-radius-lg);
  padding: 30px 24px;
  box-shadow: var(--cp-shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.25s ease;
}

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

.cp-wip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cp-wip-icon {
  font-size: 32px;
}

.cp-wip-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.cp-status-dev {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.cp-status-next {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.cp-wip-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin: 0 0 10px 0;
}

.cp-wip-card p {
  font-size: 14.5px;
  color: var(--cp-text-body);
  line-height: 1.6;
  margin: 0 0 18px 0;
  flex-grow: 1;
}

.cp-wip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.cp-wip-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--cp-surface-subtle);
  border: 1px solid var(--cp-border);
  color: var(--cp-text-body);
}

.cp-wip-banner {
  background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
  border: 1px dashed #bfdbfe;
  border-radius: var(--cp-radius-lg);
  padding: 26px 30px;
  text-align: center;
}

.cp-wip-banner h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--cp-text-heading);
  margin: 0 0 8px 0;
}

.cp-wip-banner p {
  font-size: 14.5px;
  color: var(--cp-text-body);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER (MODERN LIGHT)
   ========================================================================== */
.cp-footer {
  background: #ffffff;
  border-top: 1px solid var(--cp-border);
  padding: 30px 20px;
  margin-top: 40px;
}

.cp-footer-container {
  max-width: var(--cp-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cp-footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cp-footer-copy {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--cp-text-heading);
}

.cp-footer-sub {
  font-size: 13.5px;
  color: var(--cp-text-muted);
}

.cp-footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.cp-footer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--cp-text-body);
}

.cp-footer-nav a:hover {
  color: var(--cp-primary);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .cp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .cp-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .cp-meta-grid {
    grid-template-columns: 1fr;
  }
  .cp-pillars-grid {
    grid-template-columns: 1fr;
  }
  .cp-principles-grid {
    grid-template-columns: 1fr;
  }
  .cp-wip-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cp-mobile-toggle {
    display: flex;
  }
  #cpNavMenuWrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--cp-border);
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  }
  #cpNavMenuWrapper.active {
    display: block;
  }
  .cp-nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .cp-nav-menu li {
    width: 100%;
  }
  .cp-nav-menu li a {
    width: 100%;
    padding: 10px 14px;
  }
  .cp-cards-grid {
    grid-template-columns: 1fr;
  }
  .cp-stats-grid {
    grid-template-columns: 1fr;
  }
  .cp-footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* ==========================================================================
   SEGNALIBRI & RISORSE (LIGHT THEME)
   ========================================================================== */
.cp-seg-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 60px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  line-height: 1.7;
}
.cp-seg-hero {
  text-align: center;
  padding: clamp(38px, 6vw, 55px) clamp(20px, 5vw, 40px);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  margin-bottom: 35px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}
.cp-seg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0284c7, #059669);
}
.cp-seg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}
.cp-seg-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 10px #2563eb;
  display: inline-block;
}
.cp-seg-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
  line-height: 1.2;
}
.cp-seg-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #475569;
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.7;
}

.cp-seg-banner-ai {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
}
.cp-seg-banner-ai h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.cp-seg-banner-ai p {
  font-size: 14.5px;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}
.cp-seg-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #059669;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}
.cp-seg-banner-btn:hover {
  background: #047857;
  transform: translateY(-2px);
}

.cp-seg-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 45px;
}
@media (max-width: 900px) {
  .cp-seg-cards {
    grid-template-columns: 1fr;
  }
}
.cp-seg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.cp-seg-card:hover {
  transform: translateY(-4px);
  border-color: #93c5fd;
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.12);
}
.cp-seg-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cp-seg-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.cp-icon-box-blue { background: #eff6ff; border: 1px solid #bfdbfe; }
.cp-icon-box-green { background: #ecfdf5; border: 1px solid #a7f3d0; }
.cp-icon-box-indigo { background: #eef2ff; border: 1px solid #c7d2fe; }
.cp-seg-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.cp-seg-card h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.cp-seg-card p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 18px 0;
  flex-grow: 1;
}
.cp-seg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.cp-seg-tag {
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-weight: 600;
}

.cp-seg-projects-section {
  margin-top: 30px;
}
.cp-seg-projects-section h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
}
.cp-seg-grid-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .cp-seg-grid-projects {
    grid-template-columns: 1fr;
  }
}
.cp-seg-grid-projects > p,
.cp-seg-grid-projects > br,
.cp-seg-cards > p,
.cp-seg-cards > br,
.cp-ai-grid > p,
.cp-ai-grid > br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cp-seg-proj-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px 24px;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.cp-seg-proj-card:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow: 0 14px 28px -6px rgba(37, 99, 235, 0.15);
}
.cp-seg-proj-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cp-seg-proj-title {
  color: #0f172a;
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
}
.cp-seg-proj-arrow {
  color: #2563eb;
  font-weight: 800;
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.cp-seg-proj-card:hover .cp-seg-proj-arrow {
  transform: translateX(4px);
}
.cp-seg-proj-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   GUIDE & TUTORIAL AI (LIGHT THEME)
   ========================================================================== */
.cp-ai-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 15px 70px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  line-height: 1.7;
}
.cp-ai-hero {
  text-align: center;
  padding: clamp(38px, 6vw, 55px) clamp(20px, 5vw, 40px);
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  margin-bottom: 35px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
}
.cp-ai-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #0284c7, #059669);
}
.cp-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}
.cp-ai-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 10px #2563eb;
  display: inline-block;
}
.cp-ai-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
  line-height: 1.2;
}
.cp-ai-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #475569;
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.cp-ai-search-bar {
  max-width: 550px;
  margin: 0 auto;
  position: relative;
}
.cp-ai-search-bar input {
  width: 100%;
  padding: 14px 20px 14px 46px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cp-ai-search-bar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cp-ai-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.cp-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 35px;
}
@media (max-width: 640px) {
  .cp-ai-grid {
    grid-template-columns: 1fr;
  }
}
.cp-guide-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
}
.cp-guide-card:hover {
  transform: translateY(-5px);
  border-color: #93c5fd;
  box-shadow: 0 16px 32px -8px rgba(37, 99, 235, 0.14);
}
.cp-guide-cover-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
}
.cp-guide-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cp-guide-card:hover .cp-guide-cover {
  transform: scale(1.04);
}
.cp-guide-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid #e2e8f0;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.cp-guide-body {
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.cp-guide-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 12px;
}
.cp-guide-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.22rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
  line-height: 1.35;
}
.cp-guide-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.cp-guide-title a:hover {
  color: #2563eb;
}
.cp-guide-excerpt {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.65;
  margin: 0 0 20px 0;
  flex-grow: 1;
}
.cp-guide-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cp-guide-link {
  color: #2563eb;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.cp-guide-link:hover {
  gap: 10px;
}

.cp-ai-banner-seg {
  background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.05);
}
.cp-ai-banner-seg h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px 0;
}
.cp-ai-banner-seg p {
  font-size: 14.5px;
  color: #334155;
  margin: 0;
  line-height: 1.6;
}
.cp-ai-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d97706;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  transition: transform 0.2s, background 0.2s;
  white-space: nowrap;
}
.cp-ai-banner-btn:hover {
  background: #b45309;
  transform: translateY(-2px);
}
