@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; line-height: 1.4; }

/* ======= STRUTTURA TERMINALE DEI PROGETTI ======= */
.terminal-window {
    background-color: rgba(10, 10, 10, 0.85);
    border: 2px solid white;
    border-radius: 12px;
    box-shadow: 0 0 12px #ffffff, 0 0 25px rgba(255, 255, 255, 0.2);
    margin-top: 20px;
    overflow: hidden;
}

/* Barra superiore del terminale */
.terminal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px 0 20px; /* Più spazio sotto per allineare i tab al bordo */
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* Menu a Tab stile file aperti nel terminale */
.terminal-tabs {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'VT323-Regular', monospace;
    font-size: 1.8em;
    padding: 4px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #ffcc00;
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    background: rgba(10, 10, 10, 0.95);
    color: #ffcc00;
    border-color: white;
    border-bottom: 2px solid rgba(10, 10, 10, 1); /* Sovrascrive il bordo sotto */
    margin-bottom: -2px; /* Allineamento perfetto con il bordo inferiore */
    z-index: 2;
    text-shadow: 0 0 8px #ffcc0088;
}

/* Corpo interno del terminale */
.terminal-body {
    padding: 25px;
    min-height: 350px;
}

/* Finto prompt di comando statico */
.cmd-prompt {
    color: #00ffcc;
    font-size: 1.8em;
    margin-bottom: 20px;
}
.cmd-prompt span {
    color: #ffcc00;
}

/* Gestione visibilità contenuti */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ======= BOTTONE BACK ======= */
.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;
}

/* ======= MOBILE ======= */
@media (max-width: 768px) {
    h1 { font-size: 3.5em; }
    h2 { font-size: 2.2em; }
    p { font-size: 1.5em; }
    .home-wrapper { padding: 20px 16px; }
    .terminal-header { padding-top: 16px; }
    .terminal-tabs { flex-wrap: wrap; }
    .tab-btn.active { margin-bottom: 0; border-bottom: 1px solid white; }
    body { background-attachment: scroll; }
}