@font-face {
    font-family : 'VT323-Regular';
    src: url(Fonts/VT323-Regular.ttf);
  } 



html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  margin: 0;
  color: white;
  font-family: 'VT323-Regular', monospace;
  background-image: url("Sfondo2.gif");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

/* ======= FONT BASE ======= */
h1 { font-family: 'VT323-Regular'; font-size: 8em; margin: 0; color: white;
     text-shadow: 0 0 10px #ffffff, 0 0 30px #ffffff66; }
h2 { font-family: 'VT323-Regular'; font-size: 4em; margin: 0; color: white;
     text-shadow: 0 0 8px #ffffff88; }
h3 { font-family: 'VT323-Regular'; font-size: 2.5em;  color: white; margin: 0 0 15px 0; }
p  { font-family: 'VT323-Regular'; font-size: 1.8em; text-align: left; margin: 8px 0; }
li { font-family: 'VT323-Regular'; font-size: 1.8em; }

/* ======= RIQUADRO ======= */
.riquadro {
    background-color: rgba(0, 0, 0, 0.75);
    border: 2px solid white;
    border-radius: 12px;
    box-shadow: 0 0 8px #ffffff, 0 0 20px #ffffff44;
    padding: 20px;
    color: white;
}

.col-sinistra {
    flex: 1;
}

.col-destra {
    flex: 2;
}

/* ======= HOME LAYOUT ======= */
.home-wrapper {
    padding: 30px 40px;
}



.home-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}


.btn-back {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    text-decoration: none;
    font-family: 'VT323-Regular';
    font-size: 1.8em;
    background: rgba(0,0,0,0.6);
    border: 2px solid white;
    border-radius: 8px;
    padding: 6px 14px;
    box-shadow: 0 0 8px #ffffff;
    transition: transform 0.2s;
    z-index: 999;
}

.btn-back:hover {
    transform: translateX(-4px);
    color: #ffcc00;
}

/* ======= NUOVO MENU A BARRA ======= */
.menu-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'VT323-Regular', monospace;
    font-size: 2.2em; /* Leggermente più grande del testo base */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 0 5px;
}

/* Effetto al passaggio del mouse e sulla scheda attiva */
.tab-btn:hover, .tab-btn.active {
    color: #ffcc00; /* Giallo retro arcade */
    text-shadow: 0 0 10px #ffcc0088;
}

.tab-btn.active {
    border-bottom: 3px solid #ffcc00;
}

/* ======= LOGICA DEI CONTENUTI ======= */
.tab-content {
    display: none; /* Di base nasconde tutti i blocchi */
}

.tab-content.active {
    display: block; /* Mostra solo quello con la classe active */
}

/* ======= MOBILE ======= */
@media (max-width: 768px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2.2em; }
    h3 { font-size: 2em; }
    p, li { font-size: 1.5em; }

    .home-wrapper { padding: 20px 16px; }

    .home-layout {
        flex-direction: column;
    }

    /* Entrambe le colonne full width su mobile */
    .col-sinistra,
    .col-destra {
        width: 100%;
        flex: none;
    }

    /* Menu tabs va a capo se non ci sta */
    .menu-tabs {
        flex-wrap: wrap;
        gap: 10px;
    }

    .tab-btn {
        font-size: 1.8em;
    }

    body {
        background-attachment: scroll;
        min-height: 100dvh;
    }
}