  @import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

  * {
      scrollbar-width: thin;
      scrollbar-color: var(--grey) transparent;

      margin: 0;
      padding: 0;
  }

  :root {

      --dark-blue: #000814;
      --dark-blue-3: #14213d;
      --light-blue: rgb(28, 37, 65);
      --light-blue-2: #0b2545;

      --white: #ffffff;
      --dark-white: #f8f9fa;
      --grey: #edede9;
      --light-grey: #e2e8f080;
      --dark-grey: #B7B7B7;
      --yellow: #fca311;

      --spacing: clamp(4rem, 10vw, 8rem);
      --min-spacing: calc(var(--spacing) / 2);
      --box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, var(--light-grey) 0px 1px 2px 0px;
      --border-radius: 0.5rem;

      /*Partner*/
      --width-item: clamp(4rem, 10vw, 10rem);
      --height-item: clamp(7rem, 10vw, 10rem);
      --quantity: 6;

      --pagefind-ui-primary: var(--dark-blue) !important;
      --pagefind-ui-text: var(--dark-blue) !important;
      --pagefind-ui-background: var(--white) !important;
      --pagefind-ui-background: none !important;
      --pagefind-ui-border: var(--dark-blue) !important;
      --pagefind-ui-tag: #eeeeee !important;

  }

  ::selection {
      background-color: var(--yellow);
      color: var(--white)
  }

  html {
      scroll-behavior: smooth;
  }

  html[data-theme="dark"] {
      --pagefind-ui-text: var(--white) !important;
      --pagefind-ui-border: var(--grey) !important;
      --pagefind-ui-primary: var(--white) !important;
  }

  body {
      background-color: var(--white);
      transition: all 0.3s ease-in-out;
      font-family: "Outfit", italic;
  }

  html[data-theme=dark] body {
      background-color: var(--dark-blue);
  }

  mark {
      background-color: #fca311;
  }

  .myHidden {
      opacity: 0;
      transform: translateY(20px);
      transition:
          opacity 0.8s ease-out,
          transform 0.8s ease-out;
  }

  .shadow-thin {
      border: 2px solid var(--grey);
  }

  html[data-theme=dark] .shadow-thin {
      border: 2px solid var(--light-grey);
  }

  .alternative-paragraph {
      color: var(--white);
  }

  html[data-theme=dark] .alternative-paragraph {
      color: var(--dark-blue);
  }

  .heading,
  .paragraph {
      color: var(--dark-blue);
      transition: all 0.3s ease-in-out;
  }

  html[data-theme=dark] .heading,
  html[data-theme=dark] .paragraph {
      color: var(--white);
      transition: all 0.3s ease-in-out;
  }

  .servizi-tecnici-avanzati {
      background-color: #000814;
  }

  .long-banner {
      box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
  }

  /*   .shadow-thin {
  	border: 2px solid rgb(0, 8, 20);
  } */

  .text-stroke-transparent {
      -webkit-text-stroke: 1px var(--dark-blue);
      color: transparent;
  }


  html[data-theme=dark] .text-stroke-transparent {
      -webkit-text-stroke: 1px var(--white);
      color: transparent;
  }

  @media screen and (max-width:640px) {

      .text-stroke-transparent {
          color: var(--dark-blue);
          -webkit-text-fill-color: var(--dark-blue);
          webkit-text-stroke: 0px #ffff;
          text-stroke: 0px #fff;

      }

      html[data-theme=dark] .text-stroke-transparent {
          color: white;
          -webkit-text-fill-color: white;
          webkit-text-stroke: 0px #ffff;
          text-stroke: 0px #fff;
      }

  }

  .stroke-white {
      -webkit-text-stroke: 1px white;
      text-stroke: 2px white;
  }

  .link-wrapper {
      position: relative;
      display: inline-block;
      overflow: hidden;
  }

  .link-wrapper::before {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background-color: var(--dark-blue);
      transform: translateX(-100%);
      transition: transform 0.3s ease;
  }

  html[data-theme=dark] .link-wrapper::before {
      background-color: var(--white);
  }

  .link-wrapper:hover::before {
      transform: translateX(0);

  }

  .link-wrapper:hover::before {
      transform-origin: right;

  }

  /*Item Servizi Tecnici | Servizi | Formazione*/
  .myDiv {
      transition: all 0.3s ease-in;
      border: 2px solid rgba(200, 200, 200, 0.3);
      border-radius: var(--border-radius);
  }

  .myDiv:hover {
      background-color: var(--grey);
      transition: all 0.3s ease-in;
      border-color: rgba(200, 200, 200, 0.6);
  }

  html[data-theme="dark"] .myDiv {
      transition: all 0.3s ease-in;
      background-color: var(--dark-blue);
  }

  html[data-theme="dark"] .myDiv:hover {
      transition: all 0.3s ease-in;
      background-color: var(--light-blue);
  }

  .imgBox {
      overflow: hidden;
      border-radius: 0.5rem 0.5rem 0 0;
  }

  .imgBox img {
      transition: all 0.3s ease-in-out;
  }

  .imgBox:hover img {
      transform: scale(1.15) rotate(5deg);
      filter: brightness(0.6);
      transition: all 0.3s ease-in-out;
  }

  .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition:
          opacity 0.8s ease-out,
          transform 0.8s ease-out;
  }

  .fade-in.show {
      opacity: 1;
      transform: translateY(0);
  }

  .move-line {
      position: relative;
      overflow: hidden;
      border-radius: 8px;

  }

  .move-line::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border-radius: 8px;
      border: 2px solid transparent;
      box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.5);
      opacity: 0;
      transition: opacity 0.3s ease-in-out;
      pointer-events: none;
  }

  .move-line:hover::before {

      opacity: 1;
      border-color: rgba(28, 37, 65, 0.7);
      animation: glowing-border 3s ease-in-out infinite;

  }

  html[data-theme=dark] .move-line:hover::before {
      border-color: rgba(255,
              255,
              255,
              0.7);
  }

  @keyframes glowing-border {
      0% {
          clip-path: polygon(0% 0%, 0% 0%, 0% 0%, 0% 0%);
      }

      25% {
          clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 100%);
      }

      50% {
          clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 100% 100%);
      }

      75% {
          clip-path: polygon(0% 0%, 0% 0%, 100% 100%, 0% 100%);
      }

      100% {
          clip-path: polygon(0% 0%,
                  0% 0%,
                  0% 0%,
                  0% 100%);

      }
  }

  .lines {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 100%;
      margin: auto;
      width: 90vw;
  }

  .line {
      position: absolute;
      width: 1px;
      height: 100%;
      top: 0;
      left: 50%;
      /* Lines start centered */
      background: rgba(255, 255, 255, 0.1);
      overflow: hidden;
  }

  .line::after {
      content: "";
      display: block;
      position: absolute;
      height: 15vh;
      width: 100%;
      top: -50%;
      left: 0;

      background: linear-gradient(to bottom,
              rgba(255, 255, 255, 0) 0%,
              var(--dark-blue) 75%,
              var(--dark-blue) 100%);
      animation: drop 7s 0s infinite;
      animation-fill-mode: forwards;
      animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
  }

  html[data-theme=dark] .line::after {
      background: linear-gradient(to bottom,
              rgba(255, 255, 255, 0) 0%,
              var(--white) 75%,
              var(--white) 100%);
  }

  /* Positioning for 4 lines */
  .line:nth-child(1) {
      margin-left: -30%;
      /* Shift far left */
  }

  .line:nth-child(1)::after {
      animation-delay: 0s;
      /* Start immediately */
  }

  .line:nth-child(2) {
      margin-left: -10%;
      /* Shift moderately left */
  }

  .line:nth-child(2)::after {
      animation-delay: 1s;
      /* Slight delay */
  }

  .line:nth-child(3) {
      margin-left: 10%;
      /* Shift moderately right */
  }

  .line:nth-child(3)::after {
      animation-delay: 2s;
      /* Further delay */
  }

  .line:nth-child(4) {
      margin-left: 30%;
      /* Shift far right */
  }

  .line:nth-child(4)::after {
      animation-delay: 3s;
      /* Last delay */
  }


  @keyframes drop {
      0% {
          top: -50%;
      }

      100% {
          top: 110%;
      }
  }