/* === STILE BASE === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  background-color: rgb(161, 161, 161);
  color: #000000;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* === HEADER === */
header {
  background-color: #222;
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  letter-spacing: 1px;
}

/* === NAVIGAZIONE === */
nav {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  padding-left: 2rem;
}

.btn {
  display: inline-block;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.15s ease;
}

.btn:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.btn.active {
  background-color: #0066cc;
}

/* === SEZIONE FILTRI === */
.filters {
  margin: 1.5rem 0;
  text-align: center;
}

.filters label {
  font-weight: 600;
  margin-right: 0.5rem;
  color: #000000;
}

.filters select {
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: border 0.2s ease;
}

.filters select:hover {
  border-color: #888;
}

/* === GALLERIA === */
.galleria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  padding: 1rem 1.5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.quadro {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.quadro:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.quadro img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

/* === INFO QUADRO === */
.info {
  padding: 0.8rem 0.6rem 1rem;
}

.info h3 {
  margin: 0.4rem 0;
  font-size: 1.05rem;
  color: #222;
  font-weight: 600;
}

.info p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
  color: #555;
}

.info em {
  color: #777;
  font-size: 0.85rem;
}

/* === HOME === */
.home {
  flex: 1;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bgnd-logo {
  background-image: url('logo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.bio {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.artist-photo {
  width: 280px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.description {
  flex: 1;
}

.description h2 {
  margin-bottom: 1rem;
  color: #222;
}

.description p {
  margin-bottom: 1.5rem;
  text-align: justify;
}

/* === FOOTER === */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  font-size: 0.95rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
  margin-top: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  nav {
    flex-wrap: wrap;
  }

  .bio {
    flex-direction: column;
    align-items: center;
  }

  .artist-photo {
    width: 200px;
  }

  .galleria {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .info h3 {
    font-size: 0.95rem;
  }

  .info p {
    font-size: 0.85rem;
  }
}

/* === MODAL IMMAGINI CENTRATE === */
.modal {
  display: none; /* nascosto di default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);

  justify-content: center;
  align-items: center;
}

.modal-content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90%;
  max-height: 90%;
}

.modal-content {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
}

#caption {
  color: #fff;
  text-align: center;
  margin-top: 10px;
  font-size: 1.1rem;
}


.close {
  position: absolute;
  top: 40px;
  right: 60px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}

/* === TORNA SU === */
#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  font-size: 1.6rem;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: background 0.3s, transform 0.3s;
}

#scrollTopBtn:hover {
  background-color: #004a99;
  transform: translateY(-3px);
}
