/*
Theme Name: Salient Child Theme
Description: This is a custom child theme for Salient
Theme URI:   https://themeforest.net/item/salient-responsive-multipurpose-theme/4363266
Author: ThemeNectar
Author URI:  https://themeforest.net/user/themenectar
Template: salient
Version: 1.0
*/


.list-custom {
  /* colori */
  --card-bg: #ffffff;
  --title-color: #5ba0c1;
  --text-color: #536a86;
  --number-bg: #ffdb73;
  --number-ring: rgba(255, 219, 115, 0.28);

  list-style: none;
  counter-reset: custom-list;
  margin: 0;
  padding: 0 0 0 34px;
  margin-left: -40px !important;
}

.list-custom > li {
  counter-increment: custom-list;

  position: relative;
  z-index: 1;

  background: var(--card-bg);
  border-radius: 24px;

  /* spazio a sinistra per il numero */
  padding: 25px 28px 25px 56px !important;

  margin-bottom: 14px !important;

  color: var(--text-color);

  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 1.1px;

  min-height: 102px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  box-sizing: border-box;

  box-shadow:
    0 12px 25px rgba(73, 95, 117, 0.04);
}


/* CERCHIO GIALLO INTERNO */
.list-custom > li::before {
  content: counter(custom-list, decimal-leading-zero);

  position: absolute;
  z-index: 2;

  left: -23px;
  top: 50%;
  transform: translateY(-50%);

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--number-bg);

  color: #49627d;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;

  box-shadow:
    0 2px 4px rgba(73, 95, 117, 0.12);
}


/* ALONE / CERCHIO ESTERNO TRASPARENTE */
.list-custom > li::after {
  content: "";

  position: absolute;
  z-index: 1;

  left: -31px;
  top: 50%;
  transform: translateY(-50%);

  width: 62px;
  height: 62px;

  border-radius: 50%;

  background: var(--number-ring);
}


/* TITOLI */
.list-custom > li > h3 {
  margin: 0 0 7px;

  color: var(--title-color);

  font-size: 17px;
  line-height: 1.15;
  font-weight: 700;

  letter-spacing: 1.3px;
  text-transform: uppercase;
}


/* elimina margini strani eventualmente introdotti dal tema */
.list-custom > li:last-child {
  margin-bottom: 0;
}

@media (max-width: 767px) {

  .list-custom {
    padding-left: 25px;
  }

  .list-custom > li {
    min-height: 0;

    padding:
      18px
      18px
      18px
      52px;

    border-radius: 20px;

    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0.7px;
  }

  .list-custom > li > h3 {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .list-custom > li::before {
    left: -20px;

    width: 42px;
    height: 42px;

    font-size: 13px;
  }

  .list-custom > li::after {
    left: -27px;

    width: 56px;
    height: 56px;
  }
}


