/* ===== RESET E BASE ===== */
h1, h1 a, h1 a img {
  margin: 0;
  padding: 0;
  border: none;
}
h1 a { display: inline-block; text-decoration: none; }
h1 a img { display: block; margin: 0 auto; }

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  background: #fff;
  color: #000;
}

.container {
  width: 100%;
  max-width: 900px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
header {
  background: #fff;
  padding: 1rem;
  text-align: center;
}

header img {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

header nav {
  margin: 0 0 1rem 0;
}

nav {
  margin: 0.5rem 0 1rem;
}

nav a {
  margin: 0 0.2rem;
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
  font-variant: small-caps;
}

nav a:hover { color: #555; text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  background: #fff;
  text-align: center;
  margin: 0;
  padding: 0;
}

.footerText {
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 0.5px;
}

/* ===== IMMAGINI ===== */
img.image {
  border-radius: 50%;
  width: 150px;
  height: 150px;
  border: 2px solid #666;
  object-fit: cover;
}

/* ===== MAIN & INTRO TEXT ===== */
main {
  flex: 1;
  padding: 1rem;
  text-align: center;
}

.introText, .contactText {
  margin-top: 2.5rem;
  font-weight: 400;
  color: #444;
  font-family: Arial, sans-serif;
  line-height: 1.7;
}

.introText { font-size: 0.9rem; line-height: 1.8; font-variant: small-caps; letter-spacing: 2px; }
.contactText { font-size: 0.8rem; letter-spacing: 0.5px; }
.aboutText { font-size: 0.8rem; letter-spacing: 0.5px;  color: #666; line-height: 1.6;margin-bottom: 0.7rem; }
.aboutText > div {
  margin-bottom: 0.7rem; /* o 1rem per più spazio */
}

.introText div, .contactText div { margin: 0.2rem 0; }
.introText .divider, .contactText .divider {
  font-weight: 400;
  font-size: 0.7rem;
  text-align: center;
  margin: 0;
  color: #ddd;
}
.introText a, .contactText a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 2.5px;
  color: #000;
  font-weight: 400;
}

/* ===== SELECTION PAGE ===== */
.selectionTitle { margin: 2.5rem 0 1.5rem; font-size: 0.9rem; letter-spacing: 2px; font-variant: small-caps; }

.carouselWrapper { position: relative; overflow: hidden; margin: 0; }
.carouselContainer { display: flex; transition: transform 0.5s ease; }
.projectBlock { flex: 0 0 100%; display: flex; flex-direction: column; gap: 1.8rem; }
.projectItem { display: flex; flex-direction: column; gap: 0; font-size: 0.9rem; line-height: 1.3; }

.line, .line2Descr, .line2, .line3 { text-align: center; margin: 0 auto; width: 280px; }
.line { justify-content: center; align-items: flex-end; font-variant: small-caps; }
.line1Title { font-size: 0.9rem; letter-spacing: 1px; color: #444; }
.line1Descr { font-size: 0.6rem; margin-left: 0.2rem; letter-spacing: 1px; }
.line2Descr { font-size: 0.9rem; letter-spacing: 3.5px; font-weight: 700; font-variant: small-caps; }
.line2, .line3 { font-size: 0.7rem; }
.line2 { color: #000; }
.line3 { color: #666; }

/* ===== PULSANTI CAROUSEL ===== */
.carouselPrev, .carouselNext {
  position: absolute; top: 50%; left: 50%;
  width: 2rem; height: 2rem;
  border-radius: 50%; border: none;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.carouselPrev { transform: translate(calc(-50% - 150px), -50%); }
.carouselNext { transform: translate(calc(-50% + 150px), -50%); }

.carouselPrev, .carouselNext { z-index: 20; }


/* ===== INDICATORI PAGINA ===== */
.pageIndicator {
  display: flex; justify-content: center; gap: 0.5rem;
  margin: 1.5rem 0 0; font-size: 1.2rem; background: #fff;
}
.pageIndicator div { width: 8px; height: 8px; border-radius: 50%; background: #ccc; }
.pageIndicator div.active { background: #444; }

/* ===== AUDIO PAGE ===== */
.progressContainer { width: 280px; height: 1px; background: #bbb; position: relative; }
.progress { width: 1px; height: 12px; background: black; position: absolute; top: 50%; left: 0; transform: translateY(-50%); }

.playPause, .playButton {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;           /* niente bordo di default */
  border-radius: 3px;     /* arrotondato */
  background: #fff;       /* sfondo bianco */
  width: 1.5em;
  height: 1.5em;
  font-size: 1rem;
  font-family: Arial, Helvetica, sans-serif;
  color: #444;
  transition: transform 0.1s;
}



.trackTitle { margin-top: 0; font-size: 0.9rem; font-weight: 400; color: #444; line-height: 1; font-variant: small-caps; letter-spacing: 0.2px; }
.trackSubtitle { color: #8c7400; font-weight: 400; font-size: 0.85rem; }
.trackBlock { display: inline-block; text-align: left; width: 280px; }
.aboutBlock { display: inline-block; text-align: left; width: 280px; }

.space { text-align: center; color: #bbb; margin: 2rem 0; }

.waveform { display: flex; justify-content: center; gap: 2px; height: 8px; width: 280px; position: relative; }
.waveform .bar { width: 1px; background: #ccc; transition: background 2.5s; top: 50%; position: relative; transform: translateY(-50%); }
.waveform .bar.active { background: #444; }
#barsContainer { display: flex; align-items: center; gap: 2px; height: 40px; }
.bar { width: 3px; background: #444; }

/* ===== TRACK CONTAINER ===== */
.trackContainer {
  display: inline-block;
  text-align: left;
  margin-top: 2.5rem; /* puoi avere valori diversi per il primo track */
}

/* Se vuoi variare il margine top per gli altri track */
.trackContainer.mt0 {
  margin-top: 0rem;
}

/* ===== TRACK INFO ===== */
.trackInfo {
  margin-bottom: 0rem;
  text-align: center;
}

/* ===== PLAY / WAVEFORM CONTAINER ===== */
.trackPlayer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== MEDIA QUERY ===== */
@media (max-width: 600px) { .progressContainer { width: 80%; } }
