.toggle {
      --width: 90px;
      --height: calc(var(--width) / 3);

      position: relative;
      display: inline-block;
      width: var(--width);
      height: var(--height);
      box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
      border-radius: var(--height);
      cursor: pointer;
    }

    .toggle input {
      display: none;
    }

    .toggle .slider {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: var(--height);
      background-color: #ccc;
      transition: all 0.4s ease-in-out;
    }

    .toggle .slider::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: calc(var(--height));
      height: calc(var(--height));
      border-radius: calc(var(--height) / 2);
      background-color: #fff;
      box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
      transition: all 0.4s ease-in-out;
    }

    .toggle input:checked+.slider {
      background-color: #2196F3;
    }

    .toggle input:checked+.slider::before {
      transform: translateX(calc(var(--width) - var(--height)));
    }
.toggle .labello {
    position: absolute;
    top: 9px;
    left: 0;
    width: 100%;
    height: 100%;
    font-size: 12px;
    font-family: Calibri, sans-serif;
    transition: all 0.4s ease-in-out;
}

.toggle .labello::after {
    content: attr(data-off);
    position: absolute;
    right: 14px;
    color: #4d4d4d;
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

.toggle .labello::before {
    content: attr(data-on);
    position: absolute;
    left: 14px;
    color: #ffffff;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.toggle input:checked~.labello::after {
    opacity: 0;
}

.toggle input:checked~.labello::before {
    opacity: 1;
}