/* =========================================================
   TRAINING AREAS - CSS UNIFICATO
   Health / Business / Beauty
========================================================= */

html {
  scroll-behavior: smooth;
}

/* =========================================================
   LAYOUT GENERALE PAGINE AREA
========================================================= */
.area-page {
  padding-bottom: 30px;
}

.area-page .area-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.area-page .area-hero {
  padding: 60px 0 20px;
  text-align: center;
}

.area-page .area-main-img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 53, 84, 0.15));
}

.area-page .area-lead {
  text-align: center;
  font-size: clamp(20px, 3vw, 24px);
  color: #00456F;
  font-weight: 700;
  margin: 0 auto 60px;
  max-width: 900px;
}

.area-page .area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 40px;
}

.area-page .area-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.04);
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

.area-page .area-card:hover {
  transform: translateY(-5px);
}

.area-page .area-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #0b4b73;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.area-page .area-card h2 {
  font-size: 26px;
  color: #00456F;
  margin-bottom: 18px;
  font-weight: 800;
}

.area-page .area-card p {
  color: #4a5568;
  margin-bottom: 18px;
  font-size: 16.5px;
  line-height: 1.7;
}

.area-page .area-card p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   VARIANTI BOX
========================================================= */
.area-page .area-card--dark,
.area-page .area-card--ecosystem {
  background: #00456F;
  color: #fff;
  padding: 50px;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0, 53, 84, 0.2);
}

.area-page .area-card--dark h2,
.area-page .area-card--ecosystem h2,
.area-page .area-card--dark .area-kicker,
.area-page .area-card--ecosystem .area-kicker {
  color: #fff;
}

.area-page .area-card--dark p,
.area-page .area-card--ecosystem p {
  color: rgba(255, 255, 255, 0.88);
}

.area-page .area-card--centered {
  text-align: center;
}

.area-page .area-brand-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
  margin: 0 auto 18px;
  display: block;
}

.area-page .area-brand-logo--large {
  max-width: 210px;
}

.area-page .area-card--link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}

.area-page .area-card--link:hover {
  text-decoration: none !important;
}

.area-page .area-card--link h2 {
  text-decoration: none !important;
}

.area-page .area-card--link:hover {
  transform: translateY(-4px);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* =========================================================
   LISTE SPECIALI BUSINESS
========================================================= */
.area-page .area-focus-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding-left: 0;
}

.area-page .area-focus-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 15px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================================================
   CTA TOP
========================================================= */
.area-jump-wrap {
  text-align: center;
  margin-bottom: 60px;
}

.area-jump-anchor {
  scroll-margin-top: 30px;
}

.area-logo-divider {
  width: 100%;
  text-align: center;
  margin-bottom: 60px;
}

.area-logo-divider__box {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.area-logo-divider__box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================================
   ANIMAZIONI
========================================================= */
.area-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
}

.area-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   AREA CORSI
========================================================= */
.it-course-area {
  position: relative;
  z-index: 60;
  padding-bottom: 140px;
}

.course-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
  will-change: transform;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  z-index: 999;
}

.course-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card-format-badge {
  position: absolute;
  top: 200px;
  left: 15px;
  z-index: 20;
  transform: translateY(-50%);
  padding: 8px 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: #e3142a;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.course-card:hover .course-card-img img {
  transform: scale(1.1);
}

.course-card-icon {
  width: 78px;
  height: 78px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -30px auto 20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 10px;
}

.course-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.course-card-content {
  padding: 15px 25px 30px;
  text-align: center;
  position: relative;
  z-index: 10;
}

.course-card-title {
  font-family: 'new-science', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: #00456f;
  margin-top: 10px;
  margin-bottom: 6px;
}

.course-card-subtitle {
  font-family: 'new-science', sans-serif;
  font-weight: 400;
  font-size: 14.5px;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
  color: #00456f;
  margin-top: 0;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.course-card-desc {
  font-family: 'new-science', sans-serif;
  font-size: 14px;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 20px;
  min-height: 65px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.course-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.course-meta-item {
  background: var(--ta-gray-light);
  padding: 10px;
  border-radius: 10px;
}

.course-meta-item span {
  display: block;
  font-size: 11px;
  color: #6c757d;
  margin-bottom: 2px;
}

.course-meta-item strong {
  font-size: 13px;
  color: var(--ta-text);
}

.course-price-box {
  background: linear-gradient(135deg, var(--ta-blue), var(--ta-blue-dark));
  padding: 15px;
  border-radius: 15px;
  margin-bottom: 20px;
  color: #fff;
}

.course-price {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.course-rate {
  font-size: 13px;
  opacity: 0.9;
}

.course-btn {
  display: block;
  width: 100%;
  padding: 12px 30px;
  color: #fff;
  font-family: 'new-science', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
  z-index: 9999;
  touch-action: manipulation;
  border: 0;
}

.course-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

.course-buy-btn {
  margin-top: 8px;
  margin-bottom: 5px;
  background: var(--ta-blue);
}

.course-buy-btn:hover {
  background: var(--ta-blue-dark);
}

.course-payments {
  font-family: 'new-science', sans-serif;
  font-size: 12px;
  color: #6c757d;
  margin-top: 6px;
  text-align: center;
}

.course-payments-icons {
  margin-top: 4px;
}

.course-payments-icons i {
  font-size: 20px;
  margin: 0 4px;
  color: #003f7f;
}

/* =========================================================
   TEMI BOTTONI PER AREA
========================================================= */
.theme-health .course-btn,
.theme-business .course-btn {
  background: var(--ta-red);
}

.theme-health .course-btn:hover,
.theme-business .course-btn:hover {
  background: var(--ta-red-hover);
}

.theme-beauty .course-btn {
  background: #db2833;
}

.theme-beauty .course-btn:hover {
  background: #c2185b;
}

.theme-health .course-buy-btn,
.theme-business .course-buy-btn,
.theme-beauty .course-buy-btn {
  background: var(--ta-blue);
}

.theme-health .course-buy-btn:hover,
.theme-business .course-buy-btn:hover,
.theme-beauty .course-buy-btn:hover {
  background: var(--ta-blue-dark);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .area-page .area-card,
  .area-page .area-card--dark,
  .area-page .area-card--ecosystem {
    padding: 30px 24px;
  }

  .area-page .area-lead {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .area-page .area-focus-list {
    grid-template-columns: 1fr;
  }

  .course-card-desc {
    min-height: auto;
  }
}

@media (hover: none) and (pointer: coarse) {
  .course-card:hover {
    transform: none !important;
  }

  .course-btn:hover {
    transform: none !important;
  }
}

/* =========================================================
   JOB + ENGINEERING - CSS UNIFICATO
========================================================= */

/* struttura generale */
.simple-area-page {
  padding: 40px 0 140px;
  position: relative;
  z-index: 1;
}

.simple-area-page .simple-area-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1000;
}

.simple-area-page .simple-area-hero {
  padding: 40px 0 10px;
  text-align: center;
  position: relative;
  z-index: 1000;
}

.simple-area-page .simple-area-main-img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0,53,84,0.15));
}

.simple-area-page .simple-area-lead {
  text-align: center;
  font-size: clamp(20px, 3vw, 24px);
  color: #00456F;
  font-weight: 700;
  margin: 0 auto 60px;
  max-width: 900px;
}

.simple-area-page .simple-area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-bottom: 30px;
  position: relative;
  z-index: 1000;
}

.simple-area-page .simple-area-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0,0,0,0.04);
  padding: 40px;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  transition: transform .3s ease;
}

.simple-area-page .simple-area-card:hover {
  transform: translateY(-5px);
}

.simple-area-page .simple-area-kicker {
  font-size: 12px;
  font-weight: 800;
  color: #0b4b73;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.simple-area-page .simple-area-card h2 {
  font-size: 26px;
  color: #00456F;
  margin-bottom: 18px;
  font-weight: 800;
}

.simple-area-page .simple-area-card p {
  color: #4a5568;
  margin-bottom: 18px;
  font-size: 16.5px;
  line-height: 1.7;
}

.simple-area-page .simple-area-card p:last-child {
  margin-bottom: 0;
}

/* box scuro */
.simple-area-page .simple-area-card--dark {
  background: #00456F;
  color: #fff;
  padding: 50px;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,53,84,0.2);
}

.simple-area-page .simple-area-card--dark h2,
.simple-area-page .simple-area-card--dark .simple-area-kicker {
  color: #fff;
}

.simple-area-page .simple-area-card--dark p {
  color: rgba(255,255,255,0.88);
}

.simple-area-page .simple-area-card--dark ul {
  list-style: none;
  margin-top: 25px;
  padding-left: 0;
}

.simple-area-page .simple-area-card--dark li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

.simple-area-page .simple-area-card--dark li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 800;
}

/* link */
.simple-area-page .simple-area-link {
  display: inline-block;
  margin-top: 15px;
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.simple-area-page .simple-area-link:hover {
  opacity: 1;
  color: #fff;
}

/* cta */
.simple-area-page .simple-area-cta {
  background: #fff;
  text-align: center;
  padding: 60px 40px;
  border-radius: 28px;
  border: 1px solid rgba(0,53,84,0.1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  position: relative;
  z-index: 2000;
}

.simple-area-page .simple-area-btn {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: #00456F;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all .3s ease;
  margin-top: 20px;
  cursor: pointer;
  position: relative;
  z-index: 3000;
  pointer-events: auto !important;
}

.simple-area-page .simple-area-btn:hover {
  background: #0b4b73;
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(0,53,84,0.25);
  color: #fff;
  text-decoration: none;
}

.simple-area-page .simple-area-btn:active {
  transform: scale(0.98);
}

/* reveal */
.simple-area-page .simple-area-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s ease-out;
}

.simple-area-page .simple-area-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* fix overlay click */
.simple-area-page::before,
.simple-area-page::after,
.simple-area-page .simple-area-cta::before,
.simple-area-page .simple-area-cta::after {
  pointer-events: none !important;
}

@media (max-width: 768px) {
  .simple-area-page .simple-area-card,
  .simple-area-page .simple-area-card--dark {
    padding: 30px 24px;
  }

  .simple-area-page .simple-area-lead {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .simple-area-page .simple-area-cta {
    padding: 45px 22px;
  }
}
