/* Design System NovaCorsi - Stile Premium ed Istituzionale */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Palette Colori Premium */
  --primary-color: #0A1931;       /* Deep Navy - Autorevolezza istituzionale */
  --secondary-color: #00D2C4;     /* Turchese/Azzurro - Colore commerciale attivo (CTA) */
  --accent-color: #0056D2;        /* Royal Blue - Dettagli e link secondari */
  
  --primary-light: #15305B;
  --secondary-hover: #00BCAE;     /* Turchese scuro/hover */
  --accent-hover: #0045B5;        /* Royal Blue hover */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #0A1931 0%, #15305B 100%);
  --gradient-accent: linear-gradient(135deg, #0056D2 0%, #00D2C4 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-hero: radial-gradient(circle at 80% 20%, rgba(0, 210, 196, 0.06) 0%, rgba(0, 86, 210, 0.04) 50%, rgba(255, 255, 255, 1) 100%);
  --gradient-banner: radial-gradient(circle at 10% 90%, rgba(0, 210, 196, 0.15) 0%, transparent 60%);

  /* Typography */
  --text-main: #0F172A;           /* Slate 900 */
  --text-muted: #475569;          /* Slate 600 */
  --text-light: #94A3B8;          /* Slate 400 */
  
  /* Sfondi e Bordi */
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;            /* Slate 50 */
  --border-color: #E2E8F0;        /* Slate 200 */
  
  /* Stati e Feedback */
  --success: #10B981;             /* Emerald 500 */
  --warning: #F59E0B;             /* Amber 500 */
  --error: #EF4444;               /* Red 500 */
  
  /* Layout e Ombre */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max-width: 1200px;
  --border-radius: 8px;
  --border-radius-lg: 16px;
  
  /* Ombreggiature Multilivello Premium */
  --shadow-sm: 0 1px 3px rgba(10, 25, 49, 0.05);
  --shadow-md: 0 10px 20px -10px rgba(10, 25, 49, 0.08), 0 1px 3px rgba(10, 25, 49, 0.02);
  --shadow-lg: 0 20px 30px -15px rgba(10, 25, 49, 0.12), 0 4px 6px -2px rgba(10, 25, 49, 0.04);
  --shadow-hover: 0 25px 40px -15px rgba(0, 86, 210, 0.18), 0 1px 3px rgba(0, 0, 0, 0.02);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Resets di Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-bg {
  background-color: var(--bg-light);
}

/* Glassmorphism Header sticky */
header {
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  position: relative;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-grow: 1;
  gap: 24px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .nav-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
  }
}

.nav-link {
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0;
  position: relative;
  transition: color 0.3s ease;
}

/* Linea animata sotto i link */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
  color: var(--secondary-color);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--secondary-color);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary-color);
  cursor: pointer;
}

header .btn-primary {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 86, 210, 0.15);
  transition: all 0.3s ease;
}

header .btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(0, 86, 210, 0.25);
}

/* Buttons Premium */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--border-radius);
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-white);
  box-shadow: 0 4px 18px 0 rgba(0, 86, 210, 0.35), 0 2px 8px 0 rgba(0, 210, 196, 0.18);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-hover) 0%, var(--secondary-color) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 8px 25px 0 rgba(0, 86, 210, 0.45), 0 4px 15px 0 rgba(0, 210, 196, 0.28);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  box-shadow: 0 4px 10px rgba(0, 86, 210, 0.15);
  transform: translateY(-1px);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--border-radius);
}

/* Typography & Titles Accent Lines */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.2;
}

.text-center {
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Linea sotto i titoli di sezione */
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: var(--gradient-accent);
  margin: 16px auto 0 auto;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 64px auto;
  line-height: 1.6;
}

/* Hero Section */
.hero {
  background: var(--gradient-hero);
  padding: 120px 0 100px 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 20px;
}

.hero-image-container {
  display: flex;
  justify-content: center;
}

.hero-logo-box {
  background-color: var(--bg-white);
  padding: 48px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  max-width: 440px;
  position: relative;
  transition: var(--transition);
}

.hero-logo-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Badge decorativo sopra la scatola del logo */
.hero-logo-box::before {
  content: "PARTNER UFFICIALE";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 50px;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 10px rgba(0, 86, 210, 0.2);
}

.hero-logo-box img {
  max-width: 180px;
  height: auto;
  margin-bottom: 32px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-sm);
}

.badge-online {
  background-color: rgba(0, 86, 210, 0.08);
  color: var(--secondary-color);
  border: 1px solid rgba(0, 86, 210, 0.15);
}

.badge-attestato {
  background-color: rgba(0, 210, 196, 0.08);
  color: #00988e;
  border: 1px solid rgba(0, 210, 196, 0.15);
}

.badge-normativa {
  background-color: rgba(15, 23, 42, 0.06);
  color: var(--primary-color);
  border: 1px solid rgba(15, 23, 42, 0.1);
}

/* Cards & Course Catalog - Premium Redesign */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 36px;
}

.course-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

/* Linea superiore a gradiente sul bordo card */
.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-accent);
  opacity: 0.8;
  transition: var(--transition);
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 86, 210, 0.2);
}

.course-card:hover::before {
  height: 6px;
  opacity: 1;
}

.course-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.course-card-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--primary-color);
  line-height: 1.3;
  font-weight: 700;
}

.course-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
  flex-grow: 1;
  line-height: 1.6;
}

.course-details-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.course-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.course-info-item svg {
  width: 18px;
  height: 18px;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.course-price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.course-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-price-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  letter-spacing: -0.02em;
}

.course-card-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}

.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  border-radius: var(--border-radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Advantages Grid */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 36px;
}

.advantage-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 36px;
  border-radius: var(--border-radius-lg);
  display: flex;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.advantage-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 86, 210, 0.1);
}

.advantage-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(0, 86, 210, 0.05);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.advantage-item:hover .advantage-icon {
  background: var(--gradient-accent);
  color: var(--bg-white);
  transform: scale(1.05);
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
}

.advantage-text h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.advantage-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-bullets li {
  position: relative;
  padding-left: 40px;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-bullets li strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 4px;
  font-size: 1.1rem;
}

.why-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230056D2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* FAQ Layout */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 24px 32px;
  background: none;
  border: none;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.faq-question svg {
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
  color: var(--text-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, padding 0.25s ease-out;
  padding: 0 32px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-item.active {
  border-color: rgba(0, 86, 210, 0.3);
  box-shadow: var(--shadow-md);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
  color: var(--secondary-color);
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 32px 24px 32px;
  border-top: 1px solid var(--border-color);
}

/* Premium CTA Section */
.cta-box {
  background: var(--gradient-primary);
  color: var(--bg-white);
  padding: 80px;
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Background overlay per cta premium */
.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 210, 196, 0.1) 0%, rgba(0, 86, 210, 0.05) 50%, transparent 100%);
  border-radius: 50%;
  z-index: -1;
}

.cta-box h2 {
  color: var(--bg-white);
  font-size: 2.5rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 40px auto;
  opacity: 0.85;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.cta-box .btn-secondary {
  color: var(--bg-white);
  border-color: var(--bg-white);
}

.cta-box .btn-secondary:hover {
  background-color: var(--bg-white);
  color: var(--primary-color);
}

.cta-box .btn-outline {
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-box .btn-outline:hover {
  border-color: var(--bg-white);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Catalog Sidebar & Layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.filters-sidebar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
  width: 5px;
}
.filters-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.filters-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 86, 210, 0.15);
  border-radius: 10px;
}

.filter-title-main {
  font-size: 1.3rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 800;
}

.filter-group {
  margin-bottom: 16px;
}

.filter-label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  background-color: var(--bg-white);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 4px rgba(0, 86, 210, 0.12);
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.results-count {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.05rem;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Detail Page Layout */
.course-detail-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 64px;
  align-items: start;
}

.course-detail-header {
  margin-bottom: 40px;
}

.course-detail-title {
  font-size: 2.75rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.course-card-actions {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}

.detail-badge-list {
  display: flex;
  gap: 10px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.course-detail-tabs {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.tab-section {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}

.tab-section:last-child {
  border-bottom: none;
}

.tab-section h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  font-weight: 800;
  position: relative;
}

/* Sottile accento a sinistra dei titoli di scheda */
.tab-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--gradient-accent);
  position: absolute;
  left: -16px;
  top: 4px;
  border-radius: 2px;
}

.tab-section p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.syllabus-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.syllabus-item {
  padding: 20px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--bg-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.syllabus-item:hover {
  background-color: var(--bg-white);
  border-color: rgba(0, 86, 210, 0.15);
  box-shadow: var(--shadow-sm);
}

.audience-list, .inclusion-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.audience-list li, .inclusion-list li {
  position: relative;
  padding-left: 36px;
  color: var(--text-muted);
  font-size: 1rem;
}

.audience-list li::before, .inclusion-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D2C4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Detail Sticky Sidebar */
.course-detail-sidebar {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-lg);
}

.sidebar-price-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-price-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.sidebar-info-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  padding: 24px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.98rem;
  padding: 8px 0;
}

.sidebar-info-label {
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.sidebar-info-value {
  color: var(--primary-color);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

/* Trust Box */
.trust-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-top: 32px;
  font-size: 0.9rem;
}

.trust-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.trust-item:last-child {
  margin-bottom: 0;
}

.trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Checkout Layout */
.checkout-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.checkout-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.checkout-title {
  font-size: 1.6rem;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 800;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.checkout-full-width {
  grid-column: span 2;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--primary-color);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.checkbox-group input {
  margin-top: 6px;
  width: 16px;
  height: 16px;
  accent-color: var(--secondary-color);
}

.checkbox-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  text-transform: none;
  letter-spacing: normal;
}

.checkbox-group label a {
  color: var(--secondary-color);
  font-weight: 600;
}

.validation-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
  font-weight: 500;
}

/* Summary Card */
.summary-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.summary-course-info {
  margin-bottom: 32px;
}

.summary-course-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  font-weight: 800;
}

.summary-course-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-totals {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  margin-bottom: 40px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.summary-row-total {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary-color);
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  margin-top: 16px;
}

/* Confirmation Page */
.confirmation-container {
  max-width: 700px;
  margin: 40px auto;
  text-align: center;
  padding: 80px 48px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  background-color: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px auto;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.success-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.confirmation-container h1 {
  font-size: 2.25rem;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.confirmation-message {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.confirmation-details {
  text-align: left;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.confirmation-details h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.confirmation-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.confirmation-row:last-child {
  margin-bottom: 0;
}

.confirmation-row strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Contact page details */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 24px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(0, 86, 210, 0.05);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 22px;
  height: 22px;
}

.contact-info-text h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.contact-info-text p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Legal pages content styling */
.legal-content {
  max-width: 850px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.75rem;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.legal-content h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  margin-bottom: 20px;
  font-weight: 800;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.02rem;
  line-height: 1.65;
}

.legal-content ul {
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-left: 28px;
  font-size: 1.02rem;
}

.legal-content ul li {
  margin-bottom: 10px;
}

/* Footer layout */
footer {
  background-color: #090D1A;
  color: var(--bg-white);
  padding: 80px 0 0 0; /* Bottom padding handled by the copyright bar background */
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-col h3 {
  color: var(--bg-white);
  font-size: 1.25rem;
  margin-bottom: 28px;
  font-weight: 800;
}

.footer-logo {
  height: 76px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
  display: block;
}

.footer-col p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding-left: 0;
}

.footer-links a:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  color: #94A3B8;
  font-size: 0.9rem;
}

/* States & Loaders */
.loading-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border-color);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
  margin-bottom: 20px;
}

.error-wrapper {
  text-align: center;
  padding: 64px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  background-color: var(--bg-white);
  max-width: 550px;
  margin: 40px auto;
  box-shadow: var(--shadow-sm);
}

.error-title {
  color: var(--error);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Float Help Button Redesign */
.float-help {
  position: fixed;
  bottom: 100px;
  right: 36px;
  background: var(--gradient-accent);
  color: var(--bg-white);
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 700;
  box-shadow: 0 10px 20px -5px rgba(0, 86, 210, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  z-index: 99;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-help:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 25px -5px rgba(0, 86, 210, 0.45);
}

.float-help svg {
  width: 20px;
  height: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-grid, .why-grid, .course-detail-layout, .checkout-layout, .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .hero-image-container {
    order: -1;
  }
  
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .filters-sidebar {
    position: static;
  }
  
  .course-detail-sidebar {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 32px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-lg);
  }
  
  nav.active {
    display: flex;
  }
  
  .nav-menu {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .course-card-actions {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  
  .checkout-full-width {
    grid-column: span 1;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Card Image Styles */
.course-card-image-wrapper {
  margin: -36px -36px 28px -36px;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.course-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.course-card:hover .course-card-image {
  transform: scale(1.06);
}

/* Mockup Piattaforma Didattica */
.hero-ui-mockup {
  position: relative;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 480px;
  width: 100%;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
  z-index: 2;
}

.hero-ui-mockup:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
    transform: scale(1.1);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    transform: scale(1);
  }
}

.mockup-pulse-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--accent-color);
  margin-right: 4px;
  animation: pulse-dot 1.8s infinite ease-in-out;
}

/* WhatsApp Floating Button Hover */
.float-whatsapp:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5) !important;
  color: white !important;
}

/* Skeleton Loader Keyframes & Styles */
@keyframes skeleton-loading {
  0% {
    background-color: #E2E8F0;
  }
  50% {
    background-color: #F1F5F9;
  }
  100% {
    background-color: #E2E8F0;
  }
}

.skeleton-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  height: 160px;
  border-radius: var(--border-radius);
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-badges {
  display: flex;
  gap: 8px;
}

.skeleton-badge {
  width: 80px;
  height: 20px;
  border-radius: 4px;
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-title {
  width: 85%;
  height: 24px;
  border-radius: 4px;
  margin-bottom: 8px;
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-desc {
  width: 100%;
  height: 14px;
  border-radius: 4px;
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-info {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  margin: 8px 0;
}

.skeleton-info-item {
  width: 70px;
  height: 16px;
  border-radius: 4px;
  animation: skeleton-loading 1.5s infinite ease-in-out;
}

.skeleton-actions {
  display: flex;
  gap: 12px;
}

.skeleton-btn {
  flex: 1;
  height: 40px;
  border-radius: var(--border-radius);
  animation: skeleton-loading 1.5s infinite ease-in-out;
}
