/* Font personalizzati */
@font-face {
    font-family: 'Visitor';
    src: url('fonts/visitor1.ttf') format('truetype');
}

@font-face {
    font-family: 'Basic';
    src: url('fonts/Basic5.ttf') format('truetype');
}

@font-face {
    font-family: 'MSPGothic';
    src: url('fonts/msp.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image:url("img/bg.png");
    background-repeat: repeat-y;
    background-size: 100% 30%;
    text-decoration:none;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
}

/* Mobile: padding grande sopra */
@media only screen and (max-device-width: 768px) {
    body {
        padding: 15px;
        justify-content: center;
        padding-top: 0;
    }
}

.container {
    width: 1228px;
    max-width: 100%;
    margin: 0 auto;
    margin-top: 10px;
}

@media only screen and (max-device-width: 768px) {
    .container {
        margin-top: 0;
    }
}

/* Lettore musicale */
.music-player {
    text-align: center;
    margin-bottom: 3px;
}

audio {
    height: 32px;
    width: 800px;
    max-width: 90%;
}

/* Banner superiore */
.banner {
    width: 100%;
    height: 133px;
    margin-bottom: 3px;
    position: relative;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Layout principale a 3 colonne */
.main-layout {
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    gap: 3px;
    align-items: start;
}

/* Sidebar sinistra - Navigazione */
.sidebar-left {
    background: linear-gradient(180deg, #ff69b4 0%, #87ceeb 100%);
    border: 3px solid #000;
    padding: 0;
}

.nav-header {
    background: #ff1493;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 3px solid #000;
    letter-spacing: 2px;
    font-family: 'Visitor', monospace;
    font-size: 12px;
}

.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.nav-menu a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #000;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    gap: 8px;
    font-family: 'MSPGothic', monospace;
}

.nav-menu a:hover {
    background: rgba(255,255,255,0.5);
    padding-left: 20px;
}

.nav-icon {
    font-size: 16px;
}

.socials-header {
    background: #ff1493;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 12px;
    font-weight: bold;
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
    margin-top: 10px;
    font-family: 'Visitor', monospace;
}

/* Contenuto centrale */
.main-content {
    background: #fff;
    border: 3px solid #000;
}

.content-header {
    background: linear-gradient(90deg, #ffeb3b 0%, #4caf50 100%);
    color: #000;
    padding: 15px 20px;
    font-size: 12px;
    font-weight: bold;
    border-bottom: 3px solid #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Visitor', monospace;
}

.content-body {
    padding: 20px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.6;
}

/* DISCO E PERSONAGGIO - SISTEMAZIONE */
.disc-container {
    width: 100%;
    height: 276px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#disc {
    width: 280px;
    height: 280px;
    position: absolute;
    z-index: 1;
}

#character {
    width: 180px;
    position: absolute;
    z-index: 2;
    margin-left: 90px;
    margin-top: 90px;
}

.welcome-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    margin: 20px auto;
    display: block;
    border: 3px solid #000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    position: relative;
}

.greeting {
    background: #e3f2fd;
    border: 2px solid #2196f3;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
    font-family: Georgia, 'Times New Roman', serif;
}

.greeting h2 {
    color: #1976d2;
    font-size: 18px;
    margin-bottom: 10px;
}

.text-content {
    line-height: 1.8;
    margin: 15px 0;
    font-family: Georgia, 'Times New Roman', serif;
}

.text-content p {
    margin-bottom: 12px;
}

/* Sidebar destra */
.sidebar-right {
    background: linear-gradient(180deg, #9c27b0 0%, #00bcd4 100%);
    border: 3px solid #000;
    padding: 0;
}

.right-header {
    background: #6a1b9a;
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 3px solid #000;
}

.right-content {
    padding: 15px;
    color: #fff;
}

.widget {
    background: rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.3);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.widget h3 {
    font-size: 14px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.moon-widget {
    text-align: center;
}

.moon-image {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #ddd, #666);
    border-radius: 50%;
    margin: 10px auto;
    border: 3px solid #fff;
}

.character-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(180deg, #fff 0%, #87ceeb 100%);
    border: 2px solid #000;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Link generali */
a {
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}