.elementor-widget-search{--e-search-input-color:var( --e-global-color-text );}.elementor-widget-search.e-focus{--e-search-input-color:var( --e-global-color-text );}.elementor-widget-search .elementor-pagination{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-size:var( --e-global-typography-primary-font-size );font-weight:var( --e-global-typography-primary-font-weight );line-height:var( --e-global-typography-primary-line-height );}.elementor-142 .elementor-element.elementor-element-a3c9e3e .e-search-input{background-color:var( --e-global-color-eb3adf9 );font-family:"Poppins", Sans-serif;font-size:15px;border-style:none;border-radius:100px 0px 0px 100px;}.elementor-142 .elementor-element.elementor-element-a3c9e3e .e-search-submit{background-color:var( --e-global-color-primary );border-style:solid;border-width:6px 6px 6px 0px;border-color:var( --e-global-color-secondary );}.elementor-142 .elementor-element.elementor-element-a3c9e3e{--e-search-placeholder-color:var( --e-global-color-f1de6ec );--e-search-input-color:var( --e-global-color-text );--e-search-submit-margin-inline-start:0px;--e-search-icon-submit-size:24px;--e-search-submit-icon-gap:0px;--e-search-submit-border-radius:0px 100px 100px 0px;--e-search-submit-padding:16px 16px 16px 16px;}.elementor-142 .elementor-element.elementor-element-fd4f871{--e-filter-direction:row;--e-filter-white-space:nowrap;--e-filter-justify-content:flex-start;--e-filter-item-width:initial;--e-filter-item-flex-grow:0;--e-filter-wrap:wrap;--e-filter-overflow-x:initial;--e-filter-normal-text-color:var( --e-global-color-text );}.elementor-142 .elementor-element.elementor-element-fd4f871 .e-filter-item{font-family:"Poppins", Sans-serif;font-size:12px;font-weight:500;line-height:16px;}.elementor-142 .elementor-element.elementor-element-d01bb4c{--e-filter-direction:row;--e-filter-white-space:nowrap;--e-filter-justify-content:flex-start;--e-filter-item-width:initial;--e-filter-item-flex-grow:0;--e-filter-wrap:nowrap;--e-filter-overflow-x:scroll;--e-filter-space-between:8px;--e-filter-normal-text-color:var( --e-global-color-7454dc9 );--e-filter-hover-text-color:var( --e-global-color-7454dc9 );--e-filter-active-text-color:var( --e-global-color-secondary );--e-filter-item-border-radius:6px 6px 6px 6px;}.elementor-142 .elementor-element.elementor-element-d01bb4c .e-filter-item:not( [aria-pressed=true] ):not( :hover ){background-color:var( --e-global-color-secondary );border-style:solid;border-width:1.5px 1.5px 1.5px 1.5px;border-color:var( --e-global-color-7454dc9 );}.elementor-142 .elementor-element.elementor-element-d01bb4c .e-filter-item:hover:not( [aria-pressed=true] ){background-color:var( --e-global-color-c64b578 );border-style:solid;border-width:1.5px 1.5px 1.5px 1.5px;border-color:var( --e-global-color-7454dc9 );}.elementor-142 .elementor-element.elementor-element-d01bb4c .e-filter-item[aria-pressed="true"]{background-color:var( --e-global-color-7454dc9 );}.elementor-142 .elementor-element.elementor-element-d01bb4c .e-filter-item{font-family:"Poppins", Sans-serif;font-weight:600;padding:8px 16px 8px 16px;}.elementor-142 .elementor-element.elementor-element-880c4ef{--e-filter-direction:row;--e-filter-white-space:nowrap;--e-filter-justify-content:flex-end;--e-filter-item-width:initial;--e-filter-item-flex-grow:0;--e-filter-wrap:wrap;--e-filter-overflow-x:initial;}.elementor-142 .elementor-element.elementor-element-880c4ef .e-filter-item{font-family:"Poppins", Sans-serif;font-size:12px;font-weight:500;}.elementor-widget-loop-grid .elementor-button{background-color:var( --e-global-color-accent );font-family:var( --e-global-typography-accent-font-family ), Sans-serif;font-size:var( --e-global-typography-accent-font-size );font-weight:var( --e-global-typography-accent-font-weight );line-height:var( --e-global-typography-accent-line-height );}.elementor-widget-loop-grid .elementor-pagination{font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-size:var( --e-global-typography-secondary-font-size );font-weight:var( --e-global-typography-secondary-font-weight );line-height:var( --e-global-typography-secondary-line-height );}.elementor-widget-loop-grid .e-load-more-message{font-family:var( --e-global-typography-secondary-font-family ), Sans-serif;font-size:var( --e-global-typography-secondary-font-size );font-weight:var( --e-global-typography-secondary-font-weight );line-height:var( --e-global-typography-secondary-line-height );}.elementor-142 .elementor-element.elementor-element-83e4238{--grid-columns:3;--grid-row-gap:16px;--grid-column-gap:16px;}@media(max-width:1024px){.elementor-widget-search .elementor-pagination{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );}.elementor-widget-loop-grid .elementor-pagination{font-size:var( --e-global-typography-secondary-font-size );line-height:var( --e-global-typography-secondary-line-height );}.elementor-widget-loop-grid .elementor-button{font-size:var( --e-global-typography-accent-font-size );line-height:var( --e-global-typography-accent-line-height );}.elementor-widget-loop-grid .e-load-more-message{font-size:var( --e-global-typography-secondary-font-size );line-height:var( --e-global-typography-secondary-line-height );}.elementor-142 .elementor-element.elementor-element-83e4238{--grid-columns:2;}}@media(max-width:767px){.elementor-widget-search .elementor-pagination{font-size:var( --e-global-typography-primary-font-size );line-height:var( --e-global-typography-primary-line-height );}.elementor-widget-loop-grid .elementor-pagination{font-size:var( --e-global-typography-secondary-font-size );line-height:var( --e-global-typography-secondary-line-height );}.elementor-widget-loop-grid .elementor-button{font-size:var( --e-global-typography-accent-font-size );line-height:var( --e-global-typography-accent-line-height );}.elementor-widget-loop-grid .e-load-more-message{font-size:var( --e-global-typography-secondary-font-size );line-height:var( --e-global-typography-secondary-line-height );}.elementor-142 .elementor-element.elementor-element-83e4238{--grid-columns:1;}}/* Start custom CSS for search, class: .elementor-element-a3c9e3e */.search{
    width: 45vw;
    max-width: 300px;
}/* End custom CSS */
/* Start custom CSS for loop-grid, class: .elementor-element-83e4238 *//* ==========================================================================
   TreSkill — PLP Corsi
   Tile del Loop Item + box riepilogo "Corsi scelti"
   Opzione C: la card apre la scheda, il pulsante compone il piano
   ========================================================================== */

:root {
  --ts-navy: #101B4C;
  --ts-ink: #0F1D52;
  --ts-blue: #1F4BFF;
  --ts-orange: #E1913A;
  --ts-panel: #F4F6FA;
  --ts-line: #E3E8F2;
  --ts-grey: #6B7690;
  --ts-white: #FFFFFF;

  --ts-tile-radius: 12px;
  --ts-notch-size: 88px;
}

/* --------------------------------------------------------------------------
   1. Reset difensivo — molti temi applicano reset aggressivi
   -------------------------------------------------------------------------- */

.ts-tile,
.ts-tile * {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   2. Wrapper del Loop Item
   Elementor stampa post_class() su .e-loop-item dalla 3.12:
   post-<ID>, product_cat-<slug>, product_tag-<slug>
   -------------------------------------------------------------------------- */

.e-loop-item:has(.ts-tile) {
  display: flex;
}

/* --------------------------------------------------------------------------
   3. Card
   -------------------------------------------------------------------------- */

.ts-tile {
  position: relative;
  width: 100%;
  min-height: 100%;
  background: var(--ts-white);
  border: 1.5px solid var(--ts-line);
  border-radius: var(--ts-tile-radius);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.ts-tile:hover {
  border-color: #B9C4E4;
  box-shadow: 0 8px 20px rgba(16, 27, 76, .10);
  transform: translateY(-2px);
}

/* Stato selezionato — applicato dal JS sul wrapper .e-loop-item */
.e-loop-item.is-selected .ts-tile {
  border-color: var(--ts-blue);
  border-width: 2px;
}

.e-loop-item.is-selected .ts-tile:hover {
  box-shadow: 0 8px 20px rgba(31, 75, 255, .16);
}

/* --------------------------------------------------------------------------
   4. Media + overlay
   -------------------------------------------------------------------------- */

.ts-tile__media {
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

.ts-tile__img,
.ts-tile__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Pill modalità — overlay in alto a sinistra sull'immagine */
.ts-tile__mode {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  margin: 0 !important;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--ts-white);
  color: var(--ts-ink);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.4;
  pointer-events: none;
}

/* Varianti assegnate dal JS in base al testo del termine pa_modalita */
.ts-tile__mode.is-aula,
.ts-tile__mode.is-dalvivo {
  background: var(--ts-orange);
  color: var(--ts-white);
}

.ts-tile__mode.is-mixed {
  background: var(--ts-white);
  color: var(--ts-ink);
}

/* Notch SVG — uno solo visibile, scelto dalla categoria prodotto */
.ts-tile__notch {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: var(--ts-notch-size);
  height: auto;
  pointer-events: none;
  display: none;
}

.product_cat-future-skills .ts-tile__notch--future,
.product_cat-normativa     .ts-tile__notch--normativa,
.product_cat-leadership    .ts-tile__notch--leadership {
  display: block;
}

/* --------------------------------------------------------------------------
   5. Corpo
   -------------------------------------------------------------------------- */

.ts-tile__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px;
  padding: 16px 16px 0 16px;
}

.ts-tile__duration {
  margin: 0 !important;
  color: var(--ts-blue);
  font-size: .8rem;
  font-weight: 700;
}

.ts-tile__title {
  margin: 0 !important;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ts-ink);
}

.ts-tile__title a {
  color: inherit;
  text-decoration: none;
}

/* Stretched link: il titolo estende l'area cliccabile a tutta la card */
.ts-tile__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ts-tile__title a:focus-visible {
  outline: none;
}

.ts-tile:has(.ts-tile__title a:focus-visible) {
  outline: 3px solid var(--ts-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   6. Pulsante "Aggiungi al piano"
   z-index 2 per stare sopra lo stretched link
   -------------------------------------------------------------------------- */

.ts-tile__footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 16px !important;
}

.ts-pick {
  position: relative;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  padding: 13px 14px;
  border: 1.5px solid var(--ts-ink);
  border-radius: 8px;
  background: var(--ts-white);
  color: var(--ts-ink);
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}

.ts-pick:hover {
  background: #EEF1F8;
}

.ts-pick:focus-visible {
  outline: 3px solid var(--ts-blue);
  outline-offset: 2px;
}

.e-loop-item.is-selected .ts-pick {
  background: var(--ts-blue);
  border-color: var(--ts-blue);
  color: var(--ts-white);
}

.e-loop-item.is-selected .ts-pick:hover {
  background: #1740DC;
}

.ts-pick__tick {
  display: none;
  font-size: 1rem;
  line-height: 1;
}

.e-loop-item.is-selected .ts-pick__tick {
  display: inline;
}

/* --------------------------------------------------------------------------
   7. Box riepilogo "Corsi scelti"
   -------------------------------------------------------------------------- */

.ts-plan {
  position: sticky;
  top: 24px;
  align-self: start;
  background: var(--ts-white);
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-tile-radius);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(16, 27, 76, .06);
}

.ts-plan__count {
  margin: 0 0 4px;
  color: var(--ts-blue);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.ts-plan__hours {
  margin: 0 0 16px;
  color: var(--ts-ink);
  font-size: .95rem;
}

.ts-plan__hours strong {
  font-weight: 700;
}

.ts-plan__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  max-height: 260px;
  overflow-y: auto;
}

.ts-plan__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ts-line);
  font-size: .9rem;
  line-height: 1.35;
}

.ts-plan__item:last-child {
  border-bottom: 0;
}

.ts-plan__item-title {
  flex: 1;
}

.ts-plan__item-hours {
  color: var(--ts-grey);
  font-size: .82rem;
  white-space: nowrap;
}

.ts-plan__remove {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ts-grey);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.ts-plan__remove:hover {
  background: var(--ts-panel);
  color: var(--ts-ink);
}

.ts-plan__remove:focus-visible {
  outline: 2px solid var(--ts-blue);
  outline-offset: 1px;
}

.ts-plan__empty {
  margin: 0 0 16px;
  color: var(--ts-grey);
  font-size: .9rem;
  font-style: italic;
}

.ts-plan__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ts-plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--ts-line);
  background: transparent;
  color: var(--ts-ink);
}

.ts-plan__btn--primary {
  background: var(--ts-blue);
  border-color: var(--ts-blue);
  color: var(--ts-white);
}

.ts-plan__btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ts-plan__btn:focus-visible {
  outline: 3px solid var(--ts-blue);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   8. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .ts-plan {
    position: static;
  }
}

@media (max-width: 767px) {
  :root {
    --ts-notch-size: 72px;
  }

  .ts-tile__title {
    font-size: .95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ts-tile,
  .ts-pick {
    transition: none !important;
  }

  .ts-tile:hover {
    transform: none;
  }
}/* End custom CSS */