*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Ubuntu', 'Titillium Web', -apple-system, sans-serif;
  color: #2d3748;
  background: #f0fdf4;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6,
.nav__link, .btn, .logo,
.hero__title, .hero__subtitle, .hero__label, .hero__stat-num,
.section__title, .section__desc, .section__label,
.card__title, .card__cat, .card__price, .card__tag,
.breadcrumb, .footer h4,
.cart-item__name, .cart-item__cat, .cart-item__price,
.cart-summary__row--total, .cart-total__row,
.faq-question, .faq-question button,
.benefit__num, .how-step, .how-step__num,
.checkout-form label, .form-group label {
  font-family: 'Titillium Web', 'Ubuntu', sans-serif;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim-fade-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }
.anim-delay-6 { animation-delay: 0.6s; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #00543C;
  transition: background 0.3s, box-shadow 0.3s;
}
.header--scrolled { box-shadow: 0 4px 20px rgba(0,84,60,0.3); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.logo span { color: #a7f3d0; font-weight: 900; }
.logo img { display:block; max-height:56px; width:auto; }
.logo--footer img { max-height:44px; }

/* ===== NAV ===== */
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav__link:hover, .nav__link--active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 4px; }
.nav__toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; transition: 0.3s; }
.nav__toggle span { background: #fff; }
.nav__close { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 300px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    padding: 80px 24px 24px;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    align-items: stretch;
  }
  .nav--open { right: 0; }
  .nav__close {
    display: block;
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    font-size: 32px; color: #64748b;
    cursor: pointer;
  }
  .nav__link {
    color: #334155;
    padding: 12px 16px;
    font-size: 16px;
  }
  .nav__link--active, .nav__link:hover {
    background: #dcfce7;
    color: #00543C;
  }
  .nav__toggle span { background: #fff; }
  .header__inner { flex-wrap: nowrap; }
  .header .btn--small { display: none; }
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #00543C 0%, #007A5E 50%, #00A86B 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(167,243,208,0.08);
}
.hero__inner { display: flex; align-items: center; gap: 60px; position: relative; z-index: 1; }
.hero__content { flex: 1; }
.hero__label {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(167,243,208,0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 20px;
}
.hero__title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__title span { color: #a7f3d0; }
.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 600px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; margin-top: 48px; }
.stat { text-align: center; }
.stat__number { display: block; font-size: 32px; font-weight: 900; color: #fff; }
.stat__label { font-size: 14px; color: rgba(255,255,255,0.7); }
.hero--sm { padding: 110px 0 50px; }
.hero--sm .hero__title { font-size: 32px; }
.hero--sm .hero__subtitle { font-size: 16px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn--primary {
  background: #fff;
  color: #00543C;
}
.btn--primary:hover { background: #a7f3d0; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }
.btn--outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.btn--green {
  background: #25D366;
  color: #fff;
}
.btn--green:hover { background: #20bd5a; transform: translateY(-2px); }
.btn--lg { padding: 16px 36px; font-size: 16px; border-radius: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--whatsapp {
  background: #25D366;
  color: #fff;
}
.btn--whatsapp:hover { background: #20bd5a; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section--gray { background: #f0fdf4; }
.section--white { background: #fff; }
.section__header { text-align: center; margin-bottom: 48px; }
.section__title {
  font-size: 34px;
  font-weight: 800;
  color: #00543C;
  line-height: 1.2;
}
.section__desc {
  margin-top: 12px;
  font-size: 17px;
  color: #4a5568;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CATEGORY STRUCTURE ===== */
.cat-structure { display: flex; flex-direction: column; gap: 28px; }
.cat-group {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #bbf7d0;
}
.cat-group__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #00543C;
}
.cat-group__title a { color: #00543C; display: flex; align-items: center; gap: 8px; }
.cat-group__title a:hover { color: #007A5E; }
.cat-group__icon { font-size: 22px; }
.cat-group__badge {
  display: inline-block;
  padding: 2px 10px;
  background: #dcfce7;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  color: #00543C;
  margin-left: 8px;
}
.cat-group__sub {
  margin: 12px 0;
  padding-left: 8px;
}
.cat-group__sub > strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.cat-group__items { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-group__item {
  display: inline-block;
  padding: 7px 14px;
  background: #f0fdf4;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
  transition: all 0.2s;
}
.cat-group__item:hover { background: #00543C; color: #fff; }
.cat-group__item-row { display: flex; align-items: center; gap: 4px; }
.cat-group__item-row .cat-group__item { flex:1; display:block; }
.cat-group__item-wa {
  display:inline-flex; align-items:center; justify-content:center;
  width:36px; height:36px; border-radius:50%; background:#25D366; color:#fff;
  font-size:16px; transition:all 0.2s; flex-shrink:0;
}
.cat-group__item-wa:hover { transform:scale(1.1); background:#128C7E; }

/* ===== INFO CARDS ===== */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.info-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid #bbf7d0;
  text-align: center;
}
.info-card__icon { font-size: 36px; margin-bottom: 12px; }
.info-card h3 { font-size: 18px; font-weight: 700; color: #00543C; margin-bottom: 8px; }
.info-card p { font-size: 14px; color: #4a5568; line-height: 1.6; }

/* ===== PRICE TABLE ===== */
.price-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.price-table th, .price-table td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #bbf7d0; }
.price-table th { background: #00543C; color: #fff; font-weight: 700; font-size: 14px; }
.price-table tr:nth-child(even) { background: #f0fdf4; }
.price-table td { font-size: 14px; }
.price-table .price { font-weight: 700; color: #00543C; }
.price-table .price--sale { color: #16a34a; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin: 32px 0; }
.feature-card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  text-align: center;
}
.feature-card__icon { font-size: 28px; margin-bottom: 8px; }
.feature-card h4 { font-size: 15px; font-weight: 700; color: #00543C; margin-bottom: 4px; }
.feature-card p { font-size: 13px; color: #4a5568; }

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.breadcrumb a { color: #a7f3d0; transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.7; }

/* ===== WHY SECTION ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.why-card {
  background: #fff;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  text-align: center;
}
.why-card__num {
  font-size: 32px;
  font-weight: 900;
  color: #00543C;
  display: block;
}
.why-card p { font-size: 14px; color: #4a5568; margin-top: 4px; }

/* ===== FOOTER ===== */
.footer {
  background: #003d2b;
  color: rgba(255,255,255,0.8);
  padding: 60px 0 0;
}
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer__col h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer__col p, .footer__col a { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 2; display: block; }
.footer__col a:hover { color: #a7f3d0; }
.footer__desc { margin-top: 12px; max-width: 300px; }
.footer__social { display: flex; gap: 12px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  transition: all 0.2s;
}
.footer__social a:hover { background: #a7f3d0; color: #00543C; }
.footer__bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===== TABS ===== */
.ec-tabs {
  display: flex; gap: 0; margin-bottom: 40px;
  border-bottom: 2px solid #e2e8f0;
}
.ec-tab {
  flex: 1; padding: 16px 24px; text-align: center;
  font-family: 'Titillium Web', sans-serif;
  font-size: 16px; font-weight: 700; color: #64748b;
  background: none; border: none; cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.25s;
}
.ec-tab:hover { color: #00543C; }
.ec-tab--active {
  color: #00543C; border-bottom-color: #00543C;
}
.ec-tab-content { display: none; }
.ec-tab-content--active { display: block; }

/* ===== MONDO SCUOLA ITEMS ===== */
.ec-ms-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; padding: 16px 20px; border-radius: 12px;
  border: 1px solid #e2e8f0; transition: all 0.25s; margin-top: 8px;
}
.ec-ms-item:hover { border-color: #93c5fd; box-shadow: 0 4px 16px rgba(0,84,60,0.06); }
.ec-ms-item__info { flex: 1; min-width: 0; }
.ec-ms-item__title { font-size: 15px; font-weight: 700; color: #1e293b; }
.ec-ms-item__desc { font-size: 13px; color: #64748b; margin-top: 2px; }
.ec-ms-item__meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ec-ms-item__tag {
  padding: 3px 10px; background: #dcfce7; border-radius: 50px;
  font-size: 11px; font-weight: 700; color: #00543C; white-space: nowrap;
}
.ec-ms-item__wa {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; border-radius: 50%; font-size: 16px; transition: all 0.2s;
}
.ec-ms-item__wa:hover { transform: scale(1.1); }

/* ===== FILTER INPUT ===== */
.filter-input {
  padding: 12px 18px; border: 2px solid #e2e8f0; border-radius: 12px;
  font-family: 'Titillium Web', sans-serif; font-size: 15px;
  color: #1e293b; outline: none; transition: border-color 0.2s;
}
.filter-input:focus { border-color: #00543C; }
.filter-input::placeholder { color: #94a3b8; }

/* ===== FILTER BUTTONS ===== */
.filter-buttons { display: flex; gap: 8px; }
.filter-btn {
  padding: 8px 16px; border-radius: 50px; border: 2px solid #e2e8f0;
  background: #fff; font-family: 'Titillium Web', sans-serif;
  font-size: 13px; font-weight: 600; color: #475569;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.filter-btn:hover { border-color: #00543C; color: #00543C; }
.filter-btn--active { background: #00543C; border-color: #00543C; color: #fff; }

/* ===== RESPONSIVE ===== */
.course-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
.course-sidebar { position: sticky; top: 100px; }

@media (max-width: 900px) {
  .course-detail-grid { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
  .filter-buttons { flex-wrap: wrap; }
  .ec-ms-item { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .hero__title { font-size: 32px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .hero__actions { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .section__title { font-size: 26px; }
  .footer__inner { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 10px 12px; font-size: 12px; }
  .hero__title { font-size: 28px; }
  .hero--sm .hero__title { font-size: 22px; }
  .hero--sm { padding: 100px 0 36px; }
  .course-sidebar { padding: 20px; }
  .sidebar-price { font-size: 22px; }
  .container { padding: 0 16px; }
}
