/* ============================================================
   CORSI FORMAZIONE SANITARIA – Main Stylesheet
   ============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1a56db;
  --primary-dark:  #1347b8;
  --primary-light: #e8f0fe;
  --secondary:     #0e9f6e;
  --secondary-dark:#057a55;
  --accent:        #f59e0b;
  --dark:          #111827;
  --dark-2:        #1f2937;
  --gray-700:      #374151;
  --gray-500:      #6b7280;
  --gray-300:      #d1d5db;
  --gray-100:      #f3f4f6;
  --white:         #ffffff;
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
  --why-gradient:  linear-gradient(135deg, #0e9f6e 0%, #057a55 100%);
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.14);
  --transition:    0.25s ease;
  --font-body:     'Inter', sans-serif;
  --font-heading:  'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,86,219,0.35);
}
.btn--secondary {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}
.btn--secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14,159,110,0.35);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn--sm { padding: 9px 20px; font-size: 14px; }
.btn--full { width: 100%; justify-content: center; }

/* ── Section Helpers ── */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-badge--light {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-desc {
  font-size: 17px;
  color: var(--gray-500);
  max-width: 680px;
  margin: 0 auto;
}
.section-desc--light { color: rgba(255,255,255,0.85); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo__icon {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 18px;
}
.logo__text {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--dark);
  line-height: 1.2;
}
.logo__text strong { color: var(--primary); }
.logo--footer .logo__icon { background: rgba(255,255,255,0.2); }
.logo--footer .logo__text { color: var(--white); }
.logo--footer .logo__text strong { color: rgba(255,255,255,0.9); }

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}
.nav__link:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header__cta { margin-left: 12px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--hero-gradient);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(26,86,219,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14,159,110,0.2) 0%, transparent 40%);
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 0;
}

.hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 28px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5.5vw, 62px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}
.hero__title span {
  background: linear-gradient(90deg, #60a5fa, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero__stat-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.hero__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--dark-2);
  padding: 20px 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
}
.trust-bar__item i {
  color: var(--secondary);
  font-size: 18px;
}

/* ============================================================
   COURSES
   ============================================================ */
.courses {
  padding: 96px 0;
  background: var(--gray-100);
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--white);
  border: 2px solid var(--gray-300);
  transition: all var(--transition);
}
.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.tab-btn--active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tab-content { display: none; }
.tab-content--active { display: block; }

.courses__intro {
  background: var(--white);
  border-left: 4px solid var(--primary);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 40px;
  font-size: 15px;
  color: var(--gray-700);
}

/* Course Grid */
.courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-300);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.course-card__badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
}
.course-card__badge--i {
  background: #dbeafe;
  color: #1d4ed8;
}
.course-card__badge--ii {
  background: #d1fae5;
  color: #065f46;
}

.course-card__icon {
  width: 52px; height: 52px;
  background: var(--primary-light);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 22px;
}

.course-card__title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  flex: 1;
}

.course-card__desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}

.course-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.course-card__features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-700);
}
.course-card__features li i {
  color: var(--secondary);
  font-size: 12px;
}

.courses__cta {
  text-align: center;
  margin-top: 48px;
}

/* ============================================================
   WHY SECTION
   ============================================================ */
.why-section {
  padding: 96px 0;
  background: var(--why-gradient);
  position: relative;
  overflow: hidden;
}
.why-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}

.why__card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.why__card:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-4px);
}

.why__icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 24px;
  margin-bottom: 20px;
}

.why__card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.why__card p {
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}

.why__stats {
  display: flex;
  gap: 0;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
  position: relative;
  z-index: 1;
}
.why__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
  gap: 6px;
}
.why__stat:last-child { border-right: none; }
.why__stat-num {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.why__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  text-align: center;
}

/* ============================================================
   ECM SECTION
   ============================================================ */
.ecm-section {
  padding: 96px 0;
  background: var(--white);
}

.ecm__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.ecm__block {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}
.ecm__block:last-child { margin-bottom: 0; }

.ecm__block-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.ecm__block h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.ecm__block p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

/* FAQ */
.ecm__faq-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.ecm__faq-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ecm__faq-card h3 i { color: var(--primary); }

.faq-list { display: flex; flex-direction: column; gap: 4px; }

.faq-item { border-bottom: 1px solid var(--gray-300); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--primary);
  font-weight: 300;
  flex-shrink: 0;
}
.faq-question.open::after { content: '−'; }
.faq-question:hover { color: var(--primary); }

.faq-answer {
  display: none;
  padding: 0 0 14px;
}
.faq-answer p {
  font-size: 13px;
  color: var(--gray-700);
  line-height: 1.7;
}
.faq-answer.open { display: block; }

.ecm__cta-card {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  color: var(--white);
}
.ecm__cta-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 16px;
}
.ecm__cta-card h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.ecm__cta-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  line-height: 1.6;
}
.ecm__cta-card .btn--primary {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.ecm__cta-card .btn--primary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: 96px 0;
  background: var(--gray-100);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-300);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card__stars { display: flex; gap: 4px; }
.testimonial-card__stars i { color: var(--accent); font-size: 14px; }

.testimonial-card__text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.75;
  font-style: italic;
  flex: 1;
  border-left: 3px solid var(--primary-light);
  padding-left: 16px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card__avatar {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.testimonial-card__author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.testimonial-card__author span {
  font-size: 13px;
  color: var(--gray-500);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 96px 0;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(14,159,110,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.final-cta__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.final-cta__content .section-badge { margin-bottom: 20px; }

.final-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}

.final-cta__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.82);
  margin-bottom: 32px;
  line-height: 1.7;
}

.final-cta__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.final-cta__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.9);
}
.final-cta__list li i { color: #34d399; font-size: 16px; }

/* Contact Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.contact-form__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.contact-form__subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.form-group--checkbox input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.form-group--checkbox label { font-size: 12px; font-weight: 400; color: var(--gray-700); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  padding: 64px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin: 16px 0 20px;
  line-height: 1.7;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__contacts a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__contacts a:hover { color: var(--white); }
.footer__contacts a i { color: var(--secondary); }

.footer__links h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--white); }

.footer__bottom {
  padding: 20px 0;
  background: rgba(0,0,0,0.2);
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px; height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 4px 16px rgba(26,86,219,0.4);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ecm__grid { grid-template-columns: 1fr; }
  .final-cta__inner { grid-template-columns: 1fr; gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); padding: 20px 24px; border-bottom: 1px solid var(--gray-300); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
  .nav.open { display: block; }
  .nav__list { flex-direction: column; gap: 4px; }
  .nav__link { display: block; padding: 12px 16px; }
  .nav__toggle { display: flex; }
  .header__cta { display: none; }

  .hero__stats { gap: 32px; }
  .hero__stat-value { font-size: 28px; }

  .trust-bar__inner { gap: 20px; }

  .courses__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }

  .why__stats { flex-direction: column; }
  .why__stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .why__stat:last-child { border-bottom: none; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .contact-form { padding: 28px 20px; }

  .back-to-top { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .tabs { flex-direction: column; align-items: stretch; }
  .tab-btn { justify-content: center; }
}

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

.hero__badge, .hero__title, .hero__subtitle, .hero__actions, .hero__stats {
  animation: fadeInUp 0.7s ease both;
}
.hero__title    { animation-delay: 0.1s; }
.hero__subtitle { animation-delay: 0.2s; }
.hero__actions  { animation-delay: 0.3s; }
.hero__stats    { animation-delay: 0.4s; }

/* reCAPTCHA note */
.recaptcha-note {
  font-size: 11px;
  color: var(--gray-500);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.recaptcha-note a {
  color: var(--primary);
  text-decoration: underline;
}

/* Honeypot – completamente nascosto */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Form inline message */
.form-message {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: block;
}
.form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  display: block;
}

/* Submit button loading state */
.btn--loading {
  opacity: 0.75;
  pointer-events: none;
  cursor: not-allowed;
}

/* Form success state */
.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success i {
  font-size: 56px;
  color: var(--secondary);
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.form-success p {
  font-size: 15px;
  color: var(--gray-500);
}
