/* ==========================================================
   LAYOUT: wrapper + sidebar + details
   ========================================================== */

.wrapperCorsoInfo {
  display: block;
  width: 100%;
}

#detailsCorso {
  padding: 1em;
  display: flex;
  flex-direction: column;
}

.priceCorso {
  font-size: 1.5rem;
  font-family: 'Inter';
  display: flex;
  justify-content: space-between;
  padding: 0 1em;
}

.hero-meta-links {
  margin-top: 10px;
}

.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
}

.sticky-sidebar {
  /*position: sticky;*/
  /*max-height: calc(100vh - 140px);*/
  overflow-y: auto;
  top: 100px;
  /*height: 80%;*/
  border-radius: 6px;
}

/* =========================
   RESPONSIVE (<= 992px)
   ========================= */

@media (max-width: 992px) {
  .wrapperCorsoInfo {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center;
  }
}

@media (max-width: 992px) {
  #detailsCorso {
    margin-top: 1em;
    margin-left: 0 !important;
  }
}

/* ==========================================================
   HEADING: immagine + titolo
   ========================================================== */

#corsoheading {
  display: flex;
  flex-direction: column;
  /*justify-content: space-evenly;*/
  align-items: center;
  gap: 2%;
}

@media screen and (max-width: 768px) {
  #corsoheading {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
  }
}

@media screen and (max-width: 768px) {
  #corsoheading > #nomeCorso {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 768px) {
  #corsoImage {
    width: 80%;
  }
}

/* ==========================================================
   BUTTON: CartBtn (Uiverse)
   ========================================================== */

.CartBtn {
  width: 100%;
  height: 50px;
  border-radius: var(--bs-border-radius);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: .5s;
  overflow: hidden;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.103);
  position: relative;
  align-self: center;
  color: #ffffff!important;
}

.IconContainer {
  position: absolute;
  left: -48px;
  width: 40px;
  height: 40px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
  transition-duration: .5s;
}

.icon {
  border-radius: 1px;
}

.text {
  height: 100%;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255,255,255);
  z-index: 1;
  transition-duration: .5s;
  font-size: 1.04em;
  font-weight: 600;
  margin-left: 7px;
}

.CartBtn:hover .IconContainer {
  transform: translateX(80px);
  border-radius: 40px;
  transition-duration: .5s;
}

.CartBtn:hover .text {
  transform: translate(15px, 0px);
  transition-duration: .5s;
}

.CartBtn:active {
  transform: scale(0.95);
  transition-duration: .5s;
}

/* ==========================================================
   GRIGLIA CORSI: wrapper cards
   ========================================================== */

#corsiWrapper {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 15px;
  padding: 8px;
}

@media (min-width: 576px) {
  #corsiWrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  #corsiWrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================
   COURSE DETAILS: titoli sezione + card dettagli
   ========================================================== */

.course-details .section-title {
  font-size: 1.55rem;
  font-weight: 900;
  margin: 10px 0 18px;
  color: #111827;
}

.course-details .section-underline {
  display: block;
  width: 72px;
  height: 5px;
  border-radius: 6px;
  background: var(--primary-color, #1a8c75);
  margin-top: 10px;
}

.detail-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .05);
  margin-bottom: 16px;
  transition: transform .12s ease, box-shadow .2s ease;
  position: relative;
  z-index: 0;
  position: relative;
}

.detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .07);
  z-index: 5;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(26, 140, 117, .12);
  color: var(--primary-color, #1a8c75);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.detail-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 900;
  color: #111827;
}

.detail-body {
  color: #1f2937;
  font-size: 1.02rem;
  line-height: 1.65;
}

.detail-body p {
  margin: 0;
}

.detail-body ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
}

.detail-body li {
  margin: .45rem 0;
}

@media (max-width: 768px) {
  .detail-card {
    padding: 16px 16px;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .detail-title {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .detail-body {
    font-size: 1rem;
  }
}

/* ==========================================================
   COURSE CARD (lista corsi)
   ========================================================== */

.course-card {
  background-color: white;
  border-radius: 14px;
  border: 1px solid rgba(34,122,84,0.14);
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  border-color: rgba(34,122,84,0.22);
}

.course-image.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  color: #adb5bd;
  font-style: italic;
  font-size: 0.9rem;
}

.course-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #124E36;
  margin-bottom: 8px;
}

.course-description {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card {
  position: relative;
}

.course-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(34,122,84,0.95), rgba(18,78,54,0.95));
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  opacity: 0.35;
}

.course-card:hover::before {
  opacity: 0.75;
}

.course-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,122,84,0.10);
  border: 1px solid rgba(34,122,84,0.16);
  color: #1B6547;
  line-height: 1;
}

.meta-chip--strong {
  background: rgba(34,122,84,0.16);
  border-color: rgba(34,122,84,0.28);
  font-weight: 600;
}

.courses-intro {
  max-width: 720px;
  margin-top: 12px;
  margin-bottom: 32px;
  color: #55635C;
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================
   RECENSIONI
   ========================================================== */

#recensioniContent {
  padding: 1rem 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

.recensione {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.recensione-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.recensione-utente {
  font-weight: 600;
  font-size: 1.1rem;
  color: #454545;
  font-family: 'Adamina', sans-serif;
}

.recensione-data {
  font-size: 0.85rem;
  color: #777;
}

.recensione-testo {
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0.25rem;
  white-space: pre-wrap;
}

.recensione-stelle {
  color: #ffb400;
  font-size: 1.5rem;
}

.recensione-header-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.recensione-verificato {
  background-color: #108400;
  color: white;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 18px;
  font-weight: 600;
  user-select: none;
}

/* ==========================================================
   TABS (Bootstrap)
   ========================================================== */

/* Nota: questa regola “radius” resta, poi sotto arrivano altre regole più specifiche */

.nav-tabs .nav-link {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#corsoWrapper {
  font-family: 'Noto Sans', sans-serif;
  color: #333;
}

#corsoWrapper h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

#corsoWrapper h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #444;
  font-family: 'Inter';
}

#corsoWrapper p {
  line-height: 1.6;
  font-size: 0.9rem;
}

#dettagli > .section {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

#dettagli h3 svg, #dettagli h3 i {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}

#dettagli h3 {
  gap: 0.2rem;
}

/* Seconda definizione: qui fai lo stile “underline” */

.nav-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.8rem 1.2rem;
  font-family: 'Inter';
}

.nav-tabs .nav-link.active {
  border-bottom: 3px solid #3e9614;
  background: none;
  color: #3e9614;
}

.course-heading {
  font-size: 2rem;
  font-weight: 700;
  color: #292929;
}

/* ==========================================================
   RIEPILOGO RECENSIONI
   ========================================================== */

.riepilogo-recensioni {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
  background: #ffffff;
}

.riepilogo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  margin-bottom: 12px;
}

.riepilogo-media {
  font-size: 1.8em;
  color: #f39c12;
}

.riepilogo-distribuzione {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.riepilogo-riga {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stelle-label {
  width: 30px;
  text-align: right;
}

.barra {
  flex: 1;
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
}

.barra-riempimento {
  height: 100%;
  background: #f39c12;
}

/* ==========================================================
   SIDEBAR “premium” interna
   ========================================================== */

#sidebar.sticky-sidebar {
  background: transparent;
  border-radius: 0;
}

#sidebar .price-section {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 11px;
}

#sidebar .price-old {
  color: #8a8a8a;
  text-decoration: line-through;
  font-weight: 600;
  font-size: .95rem;
}

#sidebar .discount-badge {
  background: #ffe8e8;
  color: #b10000;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 1.25rem;
}

#sidebar .price-new {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--bs-primary);
}

#sidebar .price-currency {
  font-size: 1.25rem;
  font-weight: 800;
  margin-left: 4px;
  color: var(--bs-primary);
}

#sidebar .price-note {
  color: #666;
  margin-top: 8px;
  font-size: .95rem;
}

#sidebar .cta-button {
  background: transparent;
  color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
  padding: 10px 26px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s;
  cursor: pointer;
}

#sidebar .cta-button:hover {
  background: var(--bs-primary);
  color: white;
  transform: scale(1.02);
}

#sidebar .include-title {
  font-weight: 900;
  margin-bottom: 14px;
}

#sidebar .include-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #1f2937;
}

#sidebar .include-item i {
  color: var(--primary-color, #1a8c75);
}

#sidebar .trust-box {
  background: #e8f5e9;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-size: .92rem;
  margin-top: 16px;
}

#sidebar .trust-box i {
  color: #16bd24;
  margin-right: 9px;
}

#sidebar .coming-soon {
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a8c75;
  padding: 12px 14px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #c9e7e1;
  margin-top: 12px;
}

/* ==========================================================
   HERO + titolo corso
   ========================================================== */

.hero-pills {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.hero-pills .pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(17,24,39,0.08);
  font-size: 0.9rem;
}

.hero-pills .pill i {
  color: var(--primary-color, #1a8c75);
  font-size: 1rem;
}

.hero-pills .pill strong {
  display: block;
  font-weight: 900;
  line-height: 1.1;
}

.hero-pills .pill small {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(17,24,39,0.6);
  line-height: 1.2;
}

#corsoheading {
  /*max-width: 1220px;*/
  margin: 0 auto 1.2rem;
}

#nomeCorso {
  font-family: 'Inter';
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin: 0;
  color: #ffffff;
}

.course-subtitle {
  margin-top: .8rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #5f6368;
  max-width: 70ch;
}

.hero-section {
  position: relative;
  border-radius: 18px;
  padding: 28px 26px;
  background: linear-gradient( 135deg, rgba(26,140,117,0.20), rgba(62,150,20,0.12) );
  border: 1px solid rgba(26,140,117,0.22);
  box-shadow: 0 14px 34px rgba(0,0,0,0.07);
  overflow: hidden;
}

.hero-inner {
  max-width: 96ch;
}

.badge-professional {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
}

.badge-professional i {
  color: rgba(255,255,255,0.85);
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: rgba(17, 24, 39, .78);
  margin: 0;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 18px 16px;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .hero-lead {
    font-size: 1.02rem;
  }
}

/* ==========================================================
   DEMO BUTTON – elegante, professionale
   ========================================================== */

.demo-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.35);
  background: linear-gradient( 135deg, rgba(197,197,197,0.09), rgba(208,208,208,0.38) );
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
}

.demo-button:hover {
  border-style: solid;
  background: linear-gradient( 135deg, rgba(26,140,117,0.12), rgba(62,150,20,0.08) );
  transform: translateY(-1px);
}

/* Icona */

.demo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(251,251,251,0.23);
  color: var(--primary-color, #fefefe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

/* Testo */

.demo-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ebebeb;
  line-height: 1.2;
}

.demo-text small {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(17,24,39,0.6);
}

/* Active (click) */

.demo-button:active {
  transform: scale(0.98);
}

/* Wrapper timeline + demo */

.hero-bottom {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
}

/* Timeline prende più spazio */

.hero-bottom .hero-flow {
  flex: 1 1 auto;
}

/* Demo CTA a destra, discreta */

.hero-demo-cta .cta-button {
  width: 100%;
}

.demo-note {
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(17,24,39,0.6);
}

/* Mobile: tutto sotto */

@media (max-width: 768px) {
  .hero-bottom {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .hero-demo-cta {
    width: 100%;
  }
}

/* ===== HERO: 2 colonne desktop, stack mobile ===== */

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
    align-items: center;
  }
}

.hero-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 992px) {
  .hero-badges {
    gap: 12px;
  }
}

/* HERO FLOW: pulito, minimale, allineato */

#corsoheading .hero-flow {
  width: 100%;
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

#corsoheading .flow-item {
  background: transparent;
  border: none;
  padding: 0;
}

#corsoheading .flow-icon {
  background: transparent;
  width: auto;
  height: auto;
  border-radius: 0;
}

#corsoheading .flow-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(26,140,117,.12);
  color: var(--primary-color, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex: 0 0 auto;
}

#corsoheading .flow-title {
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
}

#corsoheading .flow-text {
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255,255,255,0.75);
}

#corsoheading .flow-arrow {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  color: rgba(255,255,255,0.6);
}

/* Mobile: in colonna */

/* ==========================================================
   EMPTY STATE (inline box)
   ========================================================== */

.empty-inline {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .04);
}

.empty-inline-title {
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.empty-inline-text {
  color: #6b7280;
  line-height: 1.5;
  font-size: 0.98rem;
}

.btn:hover {
  transform: scale(1.02);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -15%;
  /*width: 420px;*/
  height: 420px;
  background: radial-gradient( circle, rgba(26,140,117,0.22), transparent 70% );
  pointer-events: none;
}

#nomeCorso-sidebar {
  font-family: 'Inter';
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  line-height: 1.15;
  margin: 0;
  color: #0f172a;
}

/* Card video: compatta e isolata */

.detail-card--video {
  isolation: isolate;
}

.detail-card--video:hover {
  transform: none!important;
}

/* Header: pulsante discreto a destra */

.detail-card--video .detail-header {
  justify-content: space-between;
}

.detail-card--video .detail-header > :first-child {
}

.video-toggle {
  margin-left: auto;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  color: #111827;
  font-weight: 700;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.video-toggle:hover {
  background: rgba(0,0,0,.06);
}

/* Body collassato: non occupa spazio */

.detail-card--video.is-collapsed .video-body {
  display: none;
}

/* Player: stabile, non gigante */

.video-embed {
  width: 100%;
  max-width: 920px;
  margin: 8px 0 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
  z-index: 0;
}

.video-embed iframe, .video-embed video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 0;
}

/* Link: piccolo e allineato, non urlato */

.video-link {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.video-link .meta-link {
  background: rgba(17,24,39,0.04);
  color: #111827;
  font-weight: 700;
}

