html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-image: url('texture/knitted.png');
    background-repeat: repeat;
    background-size: auto;
    display: flex;
    flex-direction: column;
}

/* Header fisso */
header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 100%;
    padding: 1em 0;
    background-image: url('texture/knitted.png');
}

/* Footer normale, NON fixed/absolute */
footer {
    background-image: url('texture/knitted.png');
    background-repeat: repeat;
    background-size: auto;
    color: #EFEFEF;
    text-align: center;
    padding: 10px 0;
    font-family: 'Lato', sans-serif;
    position: relative;
}

/* Main che riempie lo spazio tra header e footer */
#main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;   /* spazio per header */
    padding-bottom: 60px; /* spazio per footer */
    box-sizing: border-box;
}

/* Container centrato */
#container {
    width: 647px;
    height: 225px;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}


/* Header nav list styling */
#ulitems {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0; /* Rimuovi il gap tra gli elementi */
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
    width: auto; /* Lascia che la larghezza sia determinata dai contenuti */
}

/* Menu links */
#ulitems li {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Imposta una larghezza fissa per le categorie (modifica in base alle tue esigenze) */
    width: 160px; /* Imposta una larghezza fissa */
    text-align: center; /* Centra il testo */
}

/* Rendi il testo centrato e grassetto */
#ulitems li a {
    text-decoration: none;
    color: currentColor;
    transition: color 0.3s;
    font-weight: bold;  /* Rende il testo in grassetto */
    font-family: 'Lato', sans-serif;
    display: block;  /* Assicurati che il link prenda tutta la larghezza della cella */
    width: 100%; /* Imposta la larghezza al 100% della cella */
}

/* Hover effetto */
#ulitems li a:hover {
    opacity: 0.7;
}

/* Divider item */
#ulitems .divider {
    width: 11px; /* Larghezza del separatore */
    height: 58px;
    background-repeat: no-repeat;
    background-size: auto;
    background-position: center top;
    display: inline-block;
}

/* Divider texture per ciascuna voce */
.divider.texture-0 {
    background-image: url('texture/embroidery0v.png');
}

.divider.texture-1 {
    background-image: url('texture/embroidery1v.png');
}

.divider.texture-2 {
    background-image: url('texture/embroidery2v.png');
}


#container {
    width: 647px;
    height: 225px;
    position: relative;
    margin: 0 auto; /* Centra orizzontalmente */
}

/* Le immagini ora sono posizionate in modo assoluto rispetto a #container */
.image {
    width: 121px;
    height: 225px;
    object-fit: cover;
    position: absolute;
    top: 0;
    cursor: pointer;
}

#leftImage {
    left: 200px;
}

#rightImage {
    left: 326px;
}


#instagram, #spotify, #youtube, #fragfest {
  position: absolute;
  opacity: 0;
  pointer-events: auto;
}

#instagram, #spotify, #youtube {
  width: 10px;
  height: 10px;
  top: 70px;
  z-index: 1;
}

#fragfest {
  width: 33px;
  height: 3.3px;
  top: 75px;
  left: 303px;
}

#instagram {
  left: 303.5px;
}

#youtube {
  left: calc(303.5px + 10px + 5px);
}

#spotify {
  left: calc(303.5px + 2 * (10px + 5px));
}

footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 11px;
    background-image: url('texture/embroidery0h.png');
    background-repeat: repeat-x;
    background-size: auto;
    position: absolute;
    top: 0;
    left: 0;
}

footer.texture-0::before {
    background-image: url('texture/embroidery0h.png');
}

footer.texture-1::before {
    background-image: url('texture/embroidery1h.png');
}

footer.texture-2::before {
    background-image: url('texture/embroidery2h.png');
}

footer {
    width: 100%;
    background-image: url('texture/knitted.png');
    background-repeat: repeat;
    background-size: auto;
    color: #EFEFEF;
    text-align: center;
    padding: 10px 0;
    position: relative;
    bottom: 0;
    /*border-top: 1px solid #EFEFEF;*/
    font-family: 'Lato', sans-serif;
}

footer a {
    color: currentColor;
    text-decoration: none;
    font-weight: bold;
}

.widget {
    display: none;
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background-color: #151616;
    border: 2px solid currentColor;
    color: #EFEFEF;
    z-index: 1000;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.widget-content {
    position: relative;
}

.close-widget {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}


#musicGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.card {
    background: #111;
    color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}

.card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card-text {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
}

.card-artist {
    font-size: 0.95rem;
    font-weight: 600;
    color: #bbb;
    font-family: 'Orbitron', sans-serif;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Orbitron', sans-serif;
}









#aboutSection {
    padding: 2rem;
    color: white;
}

.about-card {
    display: flex;
    gap: 2rem;
    background: #111;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    align-items: center; /* centratura verticale */
    justify-content: center;
    flex-wrap: wrap;
}


/* Lista personaggi */
.char-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.char-btn {
    background: #222;
    border: 2px solid #efefef;
    padding: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    transition: background 0.3s;
}

.char-btn.active {
    background: #efefef;
    color: #111;
}

.char-btn {
    width: 110px;
    height: 110px;
    padding: 0;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.char-btn img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #efefef;
}

/* Foto centrale ingrandita */
.char-photo {
    display: flex;
    align-items: stretch;
    height: calc(4 * 110px + 3 * 1rem); /* 4 immagini + 3 gap da 1rem */
}

.char-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    border: 2px solid #efefef;
    box-shadow: 0 0 15px #efefef;
}


.char-photo h3 {
    margin-top: 1rem;
    font-size: 1.4rem;
    color: #efefef;
}

/* Statistiche */
.char-stats {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 300px;
}

.stat-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0.5rem 0;
	font-family: 'Lato', sans-serif;
	color: white;
}

.stat-label {
	width: 100px;
	text-align: left;
	font-size: 1.4rem;
}

.bars {
	display: flex;
	gap: 4px;
}

.bar {
	width: 5px;
	height: 20px;
	background-color: #444;
	border-radius: 2px;
}

.bar.filled {
	background-color: #efefef;
}


.about-text {
    width: 100%;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-text h2 {
    font-size: 1.8rem;
    color: #efefef;
    margin: 0;
    font-weight: 700;
	font-family: 'Lato', sans-serif;
}

.about-text p {
    font-size: 1rem;
    color: #ccc;
    margin: 1.3rem 0 0;
    font-size: 1.4rem;
	font-family: 'Lato', sans-serif;
}
