@font-face {
    font-family: 'margaretbold';
    src: url('./fonts/margaret-bold-webfont.woff2') format('woff2'),
         url('./fonts/margaret-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'trapblack';
    src: url('./fonts/trap-black-webfont.woff2') format('woff2'),
         url('./fonts/trap-black-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'inktrapbold';
    src: url('./fonts/trap-bold-webfont.woff2') format('woff2'),
         url('./fonts/trap-bold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'trapextra_bold';
    src: url('./fonts/trap-extrabold-webfont.woff2') format('woff2'),
         url('./fonts/trap-extrabold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'traplight';
    src: url('./fonts/trap-light-webfont.woff2') format('woff2'),
         url('./fonts/trap-light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'trapmedium';
    src: url('./fonts/trap-medium-webfont.woff2') format('woff2'),
         url('./fonts/trap-medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'trapregular';
    src: url('./fonts/trap-regular-webfont.woff2') format('woff2'),
         url('./fonts/trap-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'trapsemi_bold';
    src: url('./fonts/trap-semibold-webfont.woff2') format('woff2'),
         url('./fonts/trap-semibold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

.text-fv{
    font-family: 'margaretbold';
}

body, html{
    font-family: 'trapregular';
}

/* Non ci sono cambiamenti per queste classi, rimangono uguali */
.frosted-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

h1{
    font-family: 'margaretbold';
}

/* Stili per il menu mobile a schermo intero */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;   /* 100% della larghezza della viewport */
    height: 100vh;  /* 100% dell'altezza della viewport */
    background-color: rgba(0, 0, 0, 0.9); /* Nero con 90% di opacità */
    display: flex;
    flex-direction: column; /* Impila le voci verticalmente */
    justify-content: center; /* Centra verticalmente */
    align-items: center;   /* Centra orizzontalmente */
    z-index: 55; /* Sopra la navbar (z-50) ma sotto il pollice (z-60) e il bottone di chiusura (z-70) */

    /* Animazione di entrata/uscita */
    visibility: hidden;
    opacity: 0;
    transform: translateY(100vh); /* Inizia fuori dallo schermo in basso */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s;

    /* Backdrop Filter Blur */
    backdrop-filter: blur(8px); /* Applica la sfocatura allo sfondo sottostante */
    -webkit-backdrop-filter: blur(8px); /* Prefisso per compatibilità Safari */
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 0.9;
    transform: translateY(0); /* Entra in posizione */
}

/* Stili per le voci di menu all'interno dell'overlay */
.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 2rem; /* Grandi per essere ben visibili */
    font-weight: bold;
    color: white;
}

.mobile-menu-links li {
    margin-bottom: 12px; /* Spazio tra le voci */
}

.mobile-menu-links .nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    transition: color 0.3s ease, background-color 0.3s ease;
    font-family: 'margaretbold';
}

.mobile-menu-links .nav-link:hover,
.mobile-menu-links .nav-link:focus {
    color: #55bab9; /* Blu chiaro al hover/focus */
}

/* Stile specifico per il bottone CTA nel menu mobile */
.mobile-menu-links .mobile-cta {
    display: inline-block; /* Per applicare padding e sfondo */
    margin-top: 30px; /* Spazio extra dal menu */
    background-color: #3b82f6; /* Blu di Tailwind come esempio */
    padding: 12px 24px;
    border-radius: 9999px; /* Pill shape */
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.mobile-menu-links .mobile-cta:hover {
    background-color: #2563eb; /* Blu più scuro al hover */
}




#thumb-menu-wrapper {
    transition: transform 0.3s ease; 
}
#thumb-shape-svg {
    filter: blur(10px);
}
#thumb-menu-wrapper:hover {
    transform: translateX(10px) translateY(10px); /* Il pollice spunta di più all'hover */
}

.thumb-icon {
    position: absolute;
    bottom: 30px; 
    right: 30px; 
    width: 60px; 
    height: 60px; 
    transform: rotate(0deg); 
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#thumb-path {
    transition: fill 0.3s ease; /* Aggiungi questa linea */
}

#thumb-menu-wrapper #mobile-menu-button-fixed .thumb-icon.rotate {
    transform: rotate(45deg); 
}




/*********************** TERMINAL ***********************/

.typing-demo {
    background: rgba(20, 20, 35, 0.8);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    width: 95%;
    max-width: 660px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', Courier, monospace;
    /* Aggiunto per evitare sfarfallio del testo durante le transizioni */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    z-index: 53;
}

.terminal-header {
    background: linear-gradient(90deg, #3e4c51 0%, #22282A 100%);
    padding: 12px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: move;
    user-select: none;
}

.terminal-header:hover {
    background: linear-gradient(90deg, #3e4c51 0%, #344449 100%);
}

.typing-demo.dragging {
    transition: none !important;
    z-index: 10000;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.terminal-button.close {
    background: #ea5b0c;
}

.terminal-button.minimize {
    background: #ffbd2e;
}

.terminal-button.maximize {
    background: #28ca42;
}

.terminal-button:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.terminal-title {
    margin-left: auto;
    font-size: 13px;
    color: #92A6B0;
    font-weight: 500;
}

.terminal-content {
    padding: 30px;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 500;
    /* Rimuovi overflow: hidden se vuoi che il cursore lampeggi anche se è "fuori" */
    overflow-wrap: break-word; /* Assicura che le parole lunghe vadano a capo */
}

.code-line {
    display: block;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease;
    white-space: pre-wrap; /* Mantieni gli spazi e vai a capo normalmente */
    visibility: hidden; /* Nascondi inizialmente la riga completa */
}

/* Stili per le sottoclassi di .code-line (già presenti e ok) */
.prompt {
    color: #64ffda;
    font-weight: bold;
    margin-right: 2px;
}

.keyword {
    color: #c792ea;
    font-weight: bold;
}

.function {
    color: #82aaff;
    font-weight: bold;
}

.operator {
    color: #89ddff;
    font-weight: bold;
}

.property {
    color: #ea5b0c;
    font-weight: bold;
}

.string {
    color: #c3e88d;
}

.number {
    color: #f78c6c;
    font-weight: bold;
}

.comment {
    color: #546e7a;
    font-style: italic;
}

/* Cursore principale alla fine dell'animazione o per input utente */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; } /* Rendi il bottone solo semi-trasparente, non totalmente invisibile */
}

/* Classe per applicare l'animazione di blink al bottone */
.animate-blink {
    animation: blink 1s steps(1) infinite;
}

/* Se hai ancora cursors in altre parti o per il temp-cursor, mantieni queste: */
.cursor, .temp-cursor {
    animation: blink-regular 1s steps(1) infinite; /* Nome diverso per non interferire */
    display: inline-block;
    width: 8px; /* Larghezza del cursore */
    height: 1em; /* Altezza del cursore */
    background-color: #64ffda; /* Colore del cursore */
    margin-left: 2px;
    vertical-align: text-bottom;
}

@keyframes blink-regular {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}


/* Animazione di apparizione fluida */
.code-line.visible {
    opacity: 1;
    transform: translateX(0);
    visibility: visible; /* Rendi visibile quando la classe 'visible' è aggiunta */
}

/* Effetto glow per elementi speciali (già presente e ok) */
.function, .keyword {
    text-shadow: 0 0 10px currentColor;
}

/* Effetto hover per l'intero terminale (già presente e ok) */
.typing-demo:hover {
    box-shadow: 0 25px 50px rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Stili per fullscreen (già presenti e ok) */
.typing-demo.fullscreen {
    transition: all 0.5s ease;
}

.typing-demo.fullscreen .terminal-content {
    padding: 50px;
    font-size: 20px;
}

.typing-demo.fullscreen .terminal-header {
    padding: 20px;
}

.typing-demo.fullscreen .terminal-button {
    width: 16px;
    height: 16px;
}

.typing-demo.fullscreen .terminal-title {
    font-size: 16px;
}

/*********************** TERMINAL ***********************/

.v{
    fill: #55bab9;
}
.v-point{
    fill: #ea5b0c;
}

/* --- Colori del logo per sfondo scuro (dark) --- */
.logo-colors-light {
    --logo-color-primary: #55bab9; /* Il tuo verde originale */
    --logo-color-secondary: #ea5b0c; /* Il tuo arancione originale */
    --logo-color-tertiary: #22282A; /* Il tuo nero originale */
}

/* --- Colori del logo per sfondo chiaro (light) --- */
.logo-colors-dark {
    --logo-color-primary: #55bab9; /* Un blu scuro o nero adatto per sfondo chiaro */
    --logo-color-secondary: #ea5b0c; /* Un rosso più brillante per contrasto */
    --logo-color-tertiary: #92a6b0; /* Un grigio scuro */
    /* Puoi scegliere i colori che preferisci per il set 'light' */
}

/* Transizioni per i colori del logo */
#logo path {
    transition: fill 300ms ease-in-out;
}

.text-subtitle{
    font-family: 'Courier New', Courier, monospace;
}

.dotted_bg{
    background-image: url('/site/templates/assets/dotted_bg.svg');
    background-position: 50%;
    background-repeat: repeat;
    background-size: 4em 4em;
    width: 100%;
    height: 100%;
    position: relative;
    inset: 0%;
}


.logo-slider .swiper-wrapper {
    /* Assicurati che l'animazione di transizione sia definita in Swiper JS (con speed) */
    /* e che non ci siano transizioni CSS che la ostacolano */
    transition-timing-function: linear !important; /* Forza una transizione lineare senza accelerazioni/decelerazioni */
}

.logo-slider .swiper-slide {
    width: auto; /* Sovrascrivi se Swiper sta impostando larghezze fisse */
    flex-shrink: 0; /* Impedisce alle slide di ridursi */
}

.floating-div:before {
    content: '';
    position: absolute;
    top: 99.5%; 
    left: 0;
    width: 100%;
    height: 40px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.6) 0%, 
        rgba(0, 0, 0, 0.1) 57%, 
        rgba(0, 0, 0, 0) 80% 
    );
    filter: blur(8px); 
    z-index: 0; 
    transform: translateY(-10px); 
}
  
.scramble-btn {
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.025em;
    font-variant-numeric: tabular-nums;
}
.scramble-char {
    display: inline-block;
}

@media (max-width: 768px) {
    .terminal-header {
        gap: 12px;
    }
    .terminal-content {
        padding: 20px;
        font-size: 14px;
    }
    .code-line{
        margin-bottom: 3px;
    }
}


.cards__wrapper {
    grid-column-gap: .13em;
    grid-row-gap: .13em;
    background-color: var(--color--background-secondary);
    outline-color: var(--color--background-secondary);
    outline-offset: 0em;
    border-radius: 1.5em;
    outline-width: .13em;
    outline-style: solid;
    flex-flow: column;
    width: 100%;
    padding: 0;
    display: flex;
    position: relative;
  }

.code-block {
    position: relative;
}

.code-block::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 2.5rem;
    bottom: 2.5rem;
    width: 1px;
    background-color: #ea5b0c;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .code-block::before {
        left: -0.7rem; /* Margine ridotto per mobile */
    }
}

p{
    margin-bottom: 1.42rem !important;
    line-height: 1.4;
}
.body-html{
    text-indent: 1.5em;
}

.body-html ul{
    margin-left: 2.8rem !important;
    margin-bottom: 1.42rem !important;
    text-indent: 0;
    li{
        list-style: inside;
        line-height: 1.4;
    }
}


.align_center{
    margin: 0 auto;
}