/* ========================================
   THESTEPAHEAD - CSS CENTRALIZZATO SOBRIO 
   Design Minimalista con Palette Grigia
   ======================================== */

/* === ROOT VARIABLES - SISTEMA COLORI GRIGI === */
:root {
  /* Palette Principale - Toni di Grigio */
  --primary-dark: #2c2c2c;      /* Grigio molto scuro */
  --primary-medium: #4a4a4a;    /* Grigio medio scuro */
  --primary-light: #6b6b6b;     /* Grigio medio */
  --secondary-dark: #5a5a5a;    /* Grigio secondario scuro */
  --secondary-light: #8c8c8c;   /* Grigio secondario chiaro */
  
  /* Toni Neutri */
  --neutral-white: #ffffff;
  --neutral-light: #f8f9fa;
  --neutral-medium: #e9ecef;
  --neutral-dark: #343a40;
  
  /* Grigi per Background */
  --bg-primary: #f5f5f5;
  --bg-secondary: #e8e8e8;
  --bg-tertiary: #d3d3d3;
  
  /* Toni per Feedback (sostituti dei colori vivaci) */
  --feedback-dark: #3d3d3d;     /* Sostituto del verde */
  --feedback-medium: #707070;   /* Sostituto del blu */
  --feedback-light: #9a9a9a;    /* Sostituto dell'arancione */
  
  /* Toni Arancione Chiaro per Pulsanti */
  --btn-orange-light: #fef7f0;  /* Arancione molto chiaro */
  --btn-orange-medium: #fed7aa; /* Arancione chiaro */
  --btn-orange-hover: #fdcc8a;  /* Arancione hover */
  
  /* Ombre e Bordi */
  --shadow-light: rgba(44, 44, 44, 0.1);
  --shadow-medium: rgba(44, 44, 44, 0.15);
  --shadow-strong: rgba(44, 44, 44, 0.25);
  --border-color: #d1d5db;
  
  /* Typography */
  --font-primary: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
}

/* === BASE STYLES === */
html {
  font-size: 14px;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--primary-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--neutral-white);
  padding-top: 85px;
  scroll-padding-top: 90px;
  font-weight: var(--font-weight-normal);
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, var(--neutral-light) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  color: var(--primary-dark);
}

.hero-section .lead {
  margin-bottom: 2rem;
  opacity: 0.9;
  color: var(--primary-medium);
}

.hero-section h1, .hero-section h2, .hero-section h3, 
.hero-section h4, .hero-section h5, .hero-section h6 {
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.hero-section p {
  color: var(--secondary-dark);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(255,255,255,0.03) 50%, transparent 51%);
  opacity: 0.5;
}

/* === CARDS SISTEMA === */
.card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-light);
  background: var(--neutral-white);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--primary-light);
}

.hover-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px var(--shadow-strong);
}

/* === PALETTE COLORI GRIGIA PER CLASSI BOOTSTRAP === */
.bg-primary {
  background-color: var(--primary-dark) !important;
  color: var(--neutral-white) !important;
}

.bg-secondary {
  background-color: var(--secondary-dark) !important;
  color: var(--neutral-white) !important;
}

.bg-success {
  background-color: var(--feedback-dark) !important;
  color: var(--neutral-white) !important;
}

.bg-warning {
  background-color: var(--feedback-medium) !important;
  color: var(--neutral-white) !important;
}

.bg-info {
  background-color: var(--primary-light) !important;
  color: var(--neutral-white) !important;
}

.bg-danger {
  background-color: var(--feedback-light) !important;
  color: var(--neutral-white) !important;
}

.bg-dark {
  background-color: var(--primary-dark) !important;
  color: var(--neutral-white) !important;
}

.bg-light {
  background-color: var(--bg-primary) !important;
  color: var(--primary-dark) !important;
}

/* === SISTEMA BOTTONI === */
.btn {
  border-radius: 8px;
  padding: 12px 24px;
  font-weight: var(--font-weight-medium);
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 6px;
}

/* Bottoni Primari */
.btn-primary {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  border-color: var(--btn-orange-medium);
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--btn-orange-medium) 0%, var(--btn-orange-hover) 100%);
  border-color: var(--btn-orange-hover);
  color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-dark);
  border-color: var(--btn-orange-medium);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  color: var(--primary-dark);
}

/* Bottoni Secondari */
.btn-secondary {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  border-color: var(--btn-orange-medium);
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--btn-orange-medium) 0%, var(--btn-orange-hover) 100%);
  border-color: var(--btn-orange-hover);
  color: var(--primary-dark);
}

/* Bottoni Success (ex-verde) */
.btn-success {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  border-color: var(--btn-orange-medium);
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--btn-orange-medium) 0%, var(--btn-orange-hover) 100%);
  border-color: var(--btn-orange-hover);
  color: var(--primary-dark);
}

.btn-outline-success {
  color: var(--primary-dark);
  border-color: var(--btn-orange-medium);
}

.btn-outline-success:hover {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  color: var(--primary-dark);
}

/* Bottoni Warning */
.btn-warning {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  border-color: var(--btn-orange-medium);
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.btn-warning:hover {
  background: linear-gradient(135deg, var(--btn-orange-medium) 0%, var(--btn-orange-hover) 100%);
  border-color: var(--btn-orange-hover);
  color: var(--primary-dark);
}

.btn-outline-warning {
  color: var(--primary-dark);
  border-color: var(--btn-orange-medium);
}

.btn-outline-warning:hover {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  color: var(--primary-dark);
}

/* Bottoni Info */
.btn-info {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  border-color: var(--btn-orange-medium);
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.btn-info:hover {
  background: linear-gradient(135deg, var(--btn-orange-medium) 0%, var(--btn-orange-hover) 100%);
  border-color: var(--btn-orange-hover);
  color: var(--primary-dark);
}

.btn-outline-info {
  color: var(--primary-dark);
  border-color: var(--btn-orange-medium);
}

.btn-outline-info:hover {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  color: var(--primary-dark);
}

/* Bottoni Danger */
.btn-danger {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  border-color: var(--btn-orange-medium);
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.btn-danger:hover {
  background: linear-gradient(135deg, var(--btn-orange-medium) 0%, var(--btn-orange-hover) 100%);
  border-color: var(--btn-orange-hover);
  color: var(--primary-dark);
}

.btn-outline-danger {
  color: var(--primary-dark);
  border-color: var(--btn-orange-medium);
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  color: var(--primary-dark);
}

/* Bottoni Dark */
.btn-dark {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  border-color: var(--btn-orange-medium);
  color: var(--primary-dark);
  font-weight: var(--font-weight-bold);
}

.btn-dark:hover {
  background: linear-gradient(135deg, var(--btn-orange-medium) 0%, var(--btn-orange-hover) 100%);
  border-color: var(--btn-orange-hover);
  color: var(--primary-dark);
}

.btn-outline-dark {
  color: var(--primary-dark);
  border-color: var(--btn-orange-medium);
}

.btn-outline-dark:hover {
  background: linear-gradient(135deg, var(--btn-orange-light) 0%, var(--btn-orange-medium) 100%);
  color: var(--primary-dark);
}

/* Bottoni Light */
.btn-light {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--primary-dark);
}

.btn-light:hover {
  background-color: var(--bg-secondary);
  border-color: var(--secondary-light);
  color: var(--primary-dark);
}

.btn-outline-light {
  color: var(--secondary-light);
  border-color: var(--secondary-light);
}

.btn-outline-light:hover {
  background-color: var(--bg-primary);
  color: var(--primary-dark);
}

/* === NAVBAR === */
.navbar-dark.bg-dark {
  background-color: var(--bg-primary) !important;
  box-shadow: 0 2px 8px var(--shadow-medium);
  border-bottom: 1px solid var(--border-color);
}

.navbar-dark .navbar-brand {
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-bold);
}

.navbar-dark .navbar-brand:hover {
  color: var(--primary-medium) !important;
}

.navbar-logo {
  height: 40px;
  width: auto;
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-medium);
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: var(--primary-medium) !important;
}

/* === DROPDOWN === */
.dropdown-menu {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 16px var(--shadow-medium);
  background: var(--neutral-white);
}

.dropdown-item {
  color: var(--primary-dark);
  padding: 12px 20px;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--bg-primary);
  color: var(--primary-dark);
}

/* === BADGES === */
.badge.bg-primary {
  background-color: var(--primary-dark) !important;
  color: var(--neutral-white) !important;
}

.badge.bg-success {
  background-color: var(--feedback-dark) !important;
  color: var(--neutral-white) !important;
}

.badge.bg-warning {
  background-color: var(--feedback-medium) !important;
  color: var(--neutral-white) !important;
}

.badge.bg-info {
  background-color: var(--primary-light) !important;
  color: var(--neutral-white) !important;
}

.badge.bg-danger {
  background-color: var(--feedback-light) !important;
  color: var(--neutral-white) !important;
}

.badge.bg-secondary {
  background-color: var(--secondary-dark) !important;
  color: var(--neutral-white) !important;
}

.badge.bg-dark {
  background-color: var(--primary-dark) !important;
  color: var(--neutral-white) !important;
}

.badge.bg-light {
  background-color: var(--bg-primary) !important;
  color: var(--primary-dark) !important;
}

/* === TEXT COLORS === */
.text-primary {
  color: var(--primary-dark) !important;
}

.text-secondary {
  color: var(--secondary-dark) !important;
}

.text-success {
  color: var(--feedback-dark) !important;
}

.text-warning {
  color: var(--feedback-medium) !important;
}

.text-info {
  color: var(--primary-light) !important;
}

.text-danger {
  color: var(--feedback-light) !important;
}

.text-dark {
  color: var(--primary-dark) !important;
}

.text-muted {
  color: var(--secondary-light) !important;
}

/* === CARD HEADERS === */
.card-header.bg-primary {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark) !important;
  border-bottom: 1px solid var(--border-color);
  font-weight: var(--font-weight-bold);
}

.card-header.bg-success {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-bold);
}

.card-header.bg-warning {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-bold);
}

.card-header.bg-info {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-bold);
}

.card-header.bg-danger {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-bold);
}

.card-header.bg-secondary {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-bold);
}

.card-header.bg-dark {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark) !important;
  font-weight: var(--font-weight-bold);
}

/* Badge nelle Card Headers */
.card-header .badge.bg-light {
  background-color: var(--neutral-white) !important;
  color: var(--secondary-dark) !important;
  border: 1px solid var(--border-color);
}

/* === LAYOUT SECTIONS === */
section {
  padding: 4rem 0;
}

.bg-light {
  background-color: var(--bg-primary) !important;
}

/* === TYPOGRAPHY === */
.display-3, .display-4, .display-5, .display-6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--primary-dark);
}

.lead {
  font-size: 1.15rem;
  font-weight: var(--font-weight-normal);
  color: var(--secondary-dark);
  line-height: 1.6;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card, .feature-icon {
  animation: fadeInUp 0.6s ease-out;
}

/* === TABLES === */
.table thead {
  background-color: var(--bg-primary);
  color: var(--primary-dark);
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--bg-primary);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .display-3, .display-4 {
    font-size: 2.5rem;
  }

  .hero-section {
    padding: 1.5rem 0;
  }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }

  body {
    padding-top: 70px;
  }

  .navbar.fixed-top {
    height: auto;
    min-height: 70px;
  }
}

/* === FOCUS STATES === */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, 
.form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 3px var(--shadow-light);
  outline: none;
}

/* === FOOTER === */
footer {
  background-color: var(--primary-dark);
  color: var(--bg-primary);
  padding: 2rem 0;
}

footer a {
  color: var(--bg-primary);
  text-decoration: none;
}

footer a:hover {
  color: var(--neutral-white);
  text-decoration: underline;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--secondary-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* === FORM STYLES === */
.form-floating > .form-control-plaintext::placeholder, 
.form-floating > .form-control::placeholder {
  color: var(--secondary-light);
}

.form-floating > .form-control-plaintext:focus::placeholder, 
.form-floating > .form-control:focus::placeholder {
  color: var(--primary-light);
}

/* === SPECIAL ELEMENTS === */
.text-white .bg-white.bg-opacity-10 {
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.05) 100%) !important;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

.text-white .bg-white.bg-opacity-10 h1,
.text-white .bg-white.bg-opacity-10 h2,
.text-white .bg-white.bg-opacity-10 h3,
.text-white .bg-white.bg-opacity-10 h4,
.text-white .bg-white.bg-opacity-10 h5,
.text-white .bg-white.bg-opacity-10 h6 {
  color: var(--neutral-white) !important;
}

.text-white .bg-white.bg-opacity-10 p {
  color: var(--bg-primary) !important;
}

/* === KEYWORD STYLES === */
.keyword {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: 20px;
  margin: 4px;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  font-weight: var(--font-weight-medium);
}

.keyword:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-dark) 100%);
  color: var(--neutral-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-medium);
}

/* === ARROW CONTAINERS === */
.arrow-container {
  background-color: var(--bg-primary);
  transition: all 0.3s ease;
  border-radius: 8px;
}

.arrow-container:hover {
  background-color: var(--bg-secondary);
  transform: translateX(4px);
}

.arrow-right::after {
  content: "→";
  font-size: 1.2em;
  color: var(--primary-dark);
  margin-left: 8px;
  transition: all 0.3s ease;
}

.arrow-left::after {
  content: "←";
  font-size: 1.2em;
  color: var(--primary-dark);
  margin-right: 8px;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  .arrow-right::after,
  .arrow-left::after {
    display: none;
  }
}

/* === CHAOS ITEMS === */
.chaos-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
}

.chaos-item:hover {
  background-color: var(--bg-primary);
  transform: scale(1.02);
  box-shadow: 0 4px 16px var(--shadow-light);
}

/* === ICON SIZES === */
.icon-size-60 {
  font-size: 60px;
  color: var(--primary-light);
}

.icon-size-80 {
  font-size: 80px;
  color: var(--secondary-dark);
}

.icon-size-120 {
  font-size: 120px;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

/* === UTILITIES === */
.style-reference-border {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
}

.col-width-25 {
  width: 25%;
}

.col-width-37-5 {
  width: 37.5%;
}

.max-height-120-scroll {
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.large-icon {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.gold-text-shadow {
  text-shadow: 2px 2px 4px var(--shadow-medium);
  color: var(--secondary-light);
}

/* === BOOTSTRAP ICONS === */
.icon-ai::before { content: "\f526"; font-family: "bootstrap-icons"; }
.icon-project::before { content: "\f4f2"; font-family: "bootstrap-icons"; }
.icon-growth::before { content: "\f679"; font-family: "bootstrap-icons"; }
.icon-brain::before { content: "\f228"; font-family: "bootstrap-icons"; }
.icon-people::before { content: "\f4da"; font-family: "bootstrap-icons"; }
.icon-target::before { content: "\f26c"; font-family: "bootstrap-icons"; }
.icon-book::before { content: "\f1ea"; font-family: "bootstrap-icons"; }
.icon-link::before { content: "\f455"; font-family: "bootstrap-icons"; }
.icon-rocket::before { content: "\f67c"; font-family: "bootstrap-icons"; }
.icon-palette::before { content: "\f4d1"; font-family: "bootstrap-icons"; }
.icon-email::before { content: "\f32f"; font-family: "bootstrap-icons"; }
.icon-storage::before { content: "\f3ec"; font-family: "bootstrap-icons"; }
.icon-chat::before { content: "\f27a"; font-family: "bootstrap-icons"; }
.icon-settings::before { content: "\f3da"; font-family: "bootstrap-icons"; }
.icon-check::before { content: "\f26a"; font-family: "bootstrap-icons"; }
.icon-search::before { content: "\f52d"; font-family: "bootstrap-icons"; }
.icon-stats::before { content: "\f1e6"; font-family: "bootstrap-icons"; }
.icon-time::before { content: "\f292"; font-family: "bootstrap-icons"; }
.icon-sync::before { content: "\f68a"; font-family: "bootstrap-icons"; }
.icon-upload::before { content: "\f74c"; font-family: "bootstrap-icons"; }
.icon-download::before { content: "\f2f1"; font-family: "bootstrap-icons"; }
.icon-file::before { content: "\f377"; font-family: "bootstrap-icons"; }
.icon-folder::before { content: "\f3a6"; font-family: "bootstrap-icons"; }
.icon-star::before { content: "\f586"; font-family: "bootstrap-icons"; }
.icon-heart::before { content: "\f414"; font-family: "bootstrap-icons"; }
.icon-info::before { content: "\f431"; font-family: "bootstrap-icons"; }
.icon-warning::before { content: "\f33a"; font-family: "bootstrap-icons"; }
.icon-success::before { content: "\f26a"; font-family: "bootstrap-icons"; }
.icon-error::before { content: "\f659"; font-family: "bootstrap-icons"; }

/* === NAVBAR FIXED === */
.navbar.fixed-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar.fixed-top.shadow-sm {
  box-shadow: 0 2px 8px var(--shadow-medium) !important;
}

/* === TIMELINE COMPONENTS (per Track3-ProjectTimeline) === */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-light), var(--secondary-light));
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-left: -15px;
  font-weight: var(--font-weight-bold);
  box-shadow: 0 2px 8px var(--shadow-light);
}

.timeline-content {
  flex: 1;
}

/* === GRADIENTS PERSONALIZZATI === */
.bg-gradient {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%) !important;
  color: var(--neutral-white);
}

.bg-gradient-light {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%) !important;
  color: var(--primary-dark);
}

/* === MODERN CARD VARIANTS === */
.card-modern {
  border: none;
  border-radius: 16px;
  background: var(--neutral-white);
  box-shadow: 0 4px 16px var(--shadow-light);
  backdrop-filter: blur(10px);
}

.card-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px var(--shadow-light);
}

/* === AI PAGES HEADER SYSTEM === */
/* Header turchese per tutte le pagine AI */
.ai-header-turquoise {
  background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%) !important;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

/* Titoli delle pagine AI - nero leggibile */
.ai-title-dark {
  color: #1a1a1a !important;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Sottotitoli delle pagine AI - grigio scuro */  
.ai-subtitle-gray {
  color: #333 !important;
  font-weight: 400;
  opacity: 0.9;
}

/* Variante per titoli più piccoli nelle sezioni */
.ai-section-title {
  color: #1a1a1a !important;
  font-weight: 600;
}

/* Testo normale nelle sezioni AI per buon contrasto */
.ai-text-readable {
  color: #2c2c2c !important;
}

/* === TEST PAGE ANIMATED STYLES === */

/* Simple vertical gradient background */
body.test-page {
  background: linear-gradient(to top, #e0f0f0, #f5f5f5);
  background-attachment: fixed;
  position: relative;
}

/* Gradienti modulari per sezioni */
body.gradient-ai {
  background: linear-gradient(to top, #e0f0f0, #f5f5f5);
  background-attachment: fixed;
  position: relative;
}

/* Container pioggia globale che copre tutta la pagina */
body.test-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
}



/* Hero Section with Animated Gradient Background */
.test-hero-section {
  min-height: 70vh;
  background: transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}



/* Content section with simple background */
.test-content-section {
  background: transparent;
  position: relative;
}

/* Floating elements section with transparent background */
.floating-elements-section {
  min-height: 50vh;
  background: transparent;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Effetto Pioggia Leggerissima dal Basso verso l'Alto */
.floating-circle {
  position: fixed;
  border-radius: 50%;
  background: linear-gradient(45deg, rgba(100, 149, 237, 0.25), rgba(30, 144, 255, 0.35));
  backdrop-filter: blur(1px);
  animation: gentleRain linear infinite;
  box-shadow: 0 0 5px rgba(30, 144, 255, 0.15);
  z-index: -1;
}

/* Gocce di pioggia di diverse dimensioni */
.circle-1 {
  width: 6px;
  height: 16px;
  bottom: -20px;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 12s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-2 {
  width: 4px;
  height: 12px;
  bottom: -10px;
  left: 15%;
  animation-delay: -2s;
  animation-duration: 15s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-3 {
  width: 8px;
  height: 20px;
  bottom: -10px;
  left: 25%;
  animation-delay: -4s;
  animation-duration: 18s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-4 {
  width: 3px;
  height: 10px;
  bottom: -10px;
  left: 35%;
  animation-delay: -1s;
  animation-duration: 14s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-5 {
  width: 5px;
  height: 14px;
  bottom: -10px;
  left: 45%;
  animation-delay: -3s;
  animation-duration: 16s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-6 {
  width: 4px;
  height: 18px;
  bottom: -10px;
  left: 55%;
  animation-delay: -5s;
  animation-duration: 13s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-7 {
  width: 7px;
  height: 24px;
  bottom: -10px;
  left: 65%;
  animation-delay: -2.5s;
  animation-duration: 20s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-8 {
  width: 3px;
  height: 8px;
  bottom: -10px;
  left: 75%;
  animation-delay: -6s;
  animation-duration: 11s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-9 {
  width: 5px;
  height: 16px;
  bottom: -10px;
  left: 85%;
  animation-delay: -1.5s;
  animation-duration: 17s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-10 {
  width: 4px;
  height: 12px;
  bottom: -10px;
  left: 95%;
  animation-delay: -4.5s;
  animation-duration: 19s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Gocce aggiuntive per effetto più ricco */
.circle-11 {
  width: 3px;
  height: 14px;
  bottom: -10px;
  left: 10%;
  animation-delay: -7s;
  animation-duration: 22s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-12 {
  width: 5px;
  height: 18px;
  bottom: -10px;
  left: 20%;
  animation-delay: -8s;
  animation-duration: 16s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-13 {
  width: 4px;
  height: 10px;
  bottom: -10px;
  left: 30%;
  animation-delay: -3.5s;
  animation-duration: 21s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-14 {
  width: 6px;
  height: 22px;
  bottom: -10px;
  left: 40%;
  animation-delay: -6.5s;
  animation-duration: 18s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-15 {
  width: 3px;
  height: 12px;
  bottom: -10px;
  left: 50%;
  animation-delay: -9s;
  animation-duration: 15s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-16 {
  width: 5px;
  height: 16px;
  bottom: -10px;
  left: 60%;
  animation-delay: -2.8s;
  animation-duration: 23s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-17 {
  width: 4px;
  height: 14px;
  bottom: -10px;
  left: 70%;
  animation-delay: -5.5s;
  animation-duration: 17s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-18 {
  width: 7px;
  height: 26px;
  bottom: -10px;
  left: 80%;
  animation-delay: -7.5s;
  animation-duration: 24s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-19 {
  width: 3px;
  height: 8px;
  bottom: -10px;
  left: 90%;
  animation-delay: -4.2s;
  animation-duration: 14s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

.circle-20 {
  width: 5px;
  height: 20px;
  bottom: -10px;
  left: 78%;
  animation-delay: -8.5s;
  animation-duration: 25s;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}

/* Animazione pioggia gentile dal basso verso l'alto */
@keyframes gentleRain {
  0% {
    transform: translateY(0px) translateX(0px);
    opacity: 0;
  }
  5% {
    opacity: 0.4;
  }
  20% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.5;
    transform: translateY(-50vh) translateX(-2px);
  }
  80% {
    opacity: 0.4;
  }
  95% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-110vh) translateX(-5px);
    opacity: 0;
  }
}

/* Aggiorniamo la posizione iniziale di tutte le gocce */
.circle-1, .circle-2, .circle-3, .circle-4, .circle-5,
.circle-6, .circle-7, .circle-8, .circle-9, .circle-10,
.circle-11, .circle-12, .circle-13, .circle-14, .circle-15,
.circle-16, .circle-17, .circle-18, .circle-19, .circle-20 {
  bottom: -20px !important;
}

/* Rendiamo tutte le gocce più allungate e sottili */
.circle-1 { width: 1.5px !important; height: 22px !important; }
.circle-2 { width: 1px !important; height: 18px !important; }
.circle-3 { width: 2px !important; height: 26px !important; }
.circle-4 { width: 0.8px !important; height: 16px !important; }
.circle-5 { width: 1.2px !important; height: 20px !important; }
.circle-6 { width: 1.5px !important; height: 24px !important; }
.circle-7 { width: 2px !important; height: 28px !important; }
.circle-8 { width: 1px !important; height: 14px !important; }
.circle-9 { width: 1.5px !important; height: 22px !important; }
.circle-10 { width: 1.2px !important; height: 18px !important; }
.circle-11 { width: 1px !important; height: 20px !important; }
.circle-12 { width: 1.8px !important; height: 24px !important; }
.circle-13 { width: 1.2px !important; height: 16px !important; }
.circle-14 { width: 2px !important; height: 30px !important; }
.circle-15 { width: 1px !important; height: 18px !important; }
.circle-16 { width: 1.5px !important; height: 22px !important; }
.circle-17 { width: 1.2px !important; height: 20px !important; }
.circle-18 { width: 2px !important; height: 32px !important; }
.circle-19 { width: 1px !important; height: 14px !important; }
.circle-20 { width: 1.5px !important; height: 26px !important; }





/* Responsive adjustments for test page */
@media (max-width: 768px) {
  .test-hero-section {
    min-height: 50vh;
    padding: 2rem 0;
  }
  
  .floating-circle {
    display: none; /* Hide floating particles on mobile for performance */
  }
  
  .test-hero-section h1 {
    font-size: 2.5rem;
  }
}



/* === FINE CSS CENTRALIZZATO === */


