:root{
    --primary-color: #007bff;
    --primary-color-2: #1e88e5;
    --primary-color-3: #1477b2;
    --primary-color-4: #e8f0fe;
    --secondary-color: #FFC107;
    
}
@font-face {
    font-family: "Comic Sans MS";
    src: url("/themes/medical/assets/fonts/comic-sans.woff") format("woff");
  }
.logo-wrapper{
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper .logo-aggiuntivo{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    animation: logoAnimation 0.5s ease-out forwards;
    animation-delay: 0s;
}


.logo-wrapper .logo-aggiuntivo{
    margin-left: 5px;
    font-family: "Comic Sans MS", "Comic Sans", cursive;
    color: #8c8989cc;
    font-size: 20px;
    font-style: italic;
}

.logo-wrapper .logo-aggiuntivo .for{
    font-size: 16px !important;
}
.logo-wrapper .sketch-line {
    align-self: flex-end;
    position: relative;
    width: 70%;
    height: 4px; /* Spessore della linea */
    background-color: transparent;
    rotate: -2deg;
    opacity: 0;
    animation-delay: 0s;
    animation: fadeIn 1s ease forwards 1s;
    pointer-events: auto;
}


/* Effetto schizzo con pseudo-elementi */
.logo-wrapper .sketch-line::before,
.logo-wrapper .sketch-line::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary-color-3);
    opacity: 0;
    transform: scaleX(1.05) rotate(var(--rotate, 0deg));
    border-radius: 2px;
    animation: underlineSlideIn 1s ease forwards 0.5s; /* Ritardo per sincronizzare con il testo */
}

.logo-wrapper .sketch-line::before {
    left: 0;
    --rotate: -1deg;
}

.logo-wrapper .sketch-line::after {
    left: 0;
    --rotate: 1deg;
    opacity: 0.8;
}

.navbar .logo-wrapper img{
    width: 50px !important;
}

.navbar .logo-wrapper .logo-aggiuntivo{
    font-size: 16px !important;
}
.navbar .logo-wrapper .logo-aggiuntivo .for{
    font-size: 12px !important;
}

.navbar .logo-wrapper .sketch-line {
    height: 2px !important;
}

.navbar .logo-wrapper .sketch-line::before,
.navbar .logo-wrapper .sketch-line::after {
    height: 2px !important;
    border-radius: 1px !important;
}


/* Animazione a comparsa */
@keyframes logoAnimation {
    0% {
        transform: translateX(-100%);
        opacity: 0;
      }
      100% {
        transform: translateX(0);
        opacity: 1;
      }
}
@keyframes fadeIn {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
}

.highlight-underline-entrance {
    position: relative;
    display: inline-block;
    color: inherit;
    opacity: 0; /* Nasconde inizialmente il testo */
    animation: fadeInText 1s ease forwards; /* Effetto di apparizione del testo */
}

.highlight-underline-entrance::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px; /* Spessore della sottolineatura */
    background-color: var(--secondary-color); /* Colore giallo estratto */
    animation: underlineSlideIn 1s ease forwards 0.5s; /* Ritardo per sincronizzare con il testo */
}

/* Animazione per il testo */
@keyframes fadeInText {
    0% {
        opacity: 0;
        transform: translateY(-10px); /* Il testo entra dall'alto */
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animazione per la sottolineatura */
@keyframes underlineSlideIn {
    0% {
        width: 0;
    }
    100% {
        width: 100%; /* La sottolineatura si estende completamente */
    }
}