* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.footer {
  background-color: #f8f3ef;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.9rem;
  color: #444;
  border-top: 1px solid #e0d8d0;
  z-index: 2;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 1rem;
}

.footer-column.left {
  text-align: left;
}

.footer-column.center {
  text-align: center;
}

.footer-column.right {
  text-align: right;
}

.company-info p {
  margin: 0.3rem 0;
}

.btn-bug {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  background-color: #a16b78;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out;
}

.btn-bug:hover {
  background-color: #8b5864;
}
/* Contenuto profilo */
.dashboard-content {
  flex-grow: 1;
  padding: 2rem;
  margin-left: 0;
}

.dashboard-nav {
  background-color: #f8f3ef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e8e2dd;
  font-family: 'Segoe UI', sans-serif;
  z-index: 2;
}

.dashboard-nav .logo {
  font-size: 1.6rem;
  font-weight: bold;
  color: #a16b78;
}

.dashboard-nav .menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.dashboard-nav .menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.dashboard-nav .menu li a:hover {
  color: #a16b78;
}

.logout-form {
  margin-left: 10px;
}
button.logout-btn {
  padding: 6px 10px;
  border: none;
  background: #e53935;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
button.logout-btn:hover {
  background-color: #c82333;
}

body {
  width: 100%;
  height: 100%;
  margin: 0px;
  min-height: 100px;
  background-color: #f8f3ef; /* o il colore che vuoi */
}

body {
  min-height: 100vh;
}
.hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #a16b78;
  padding: 2rem;
}


.hero h1 {
  font-size: 2.4rem;
  font-weight: bold;
}

.hero h1 span {
  color: #7b4b94;
}

.hero p {
  font-size: 1.2rem;
  color: #666;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-item img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.overlay-container {
  position: relative;
  width: 100vw;
  height: 40vh;
  overflow: hidden;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  background-color: #f8f3ef;
  color: #a16b78;
  font-weight: 500;
  border: 1px solid #e5d6d6;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.profile-btn:hover {
  background-color: #eaddd9;
  color: #000;
}

.profile-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
/* Sidebar fissa a sinistra */
.sidebar {
  width: 250px;
  background-color: #f8f3ef;
  border-right: 1px solid #ddd;
  position: relative;
  flex-shrink: 0;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar-header img {
  height: 40px;
  margin-bottom: 10px;
}

.sidebar-header h3 {
  margin: 0;
  font-size: 16px;
  color: #555;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
}

.sidebar-nav a {
  text-decoration: none;
  color: #333;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar-nav a:hover {
  background-color: #eaeaea;
}

.logo-container {
  width: 100%;
  max-width: 300px;
  min-width: 100px; 
  margin: 0 auto;
}
.page-wrapper {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 80px); /* sottrae altezza header se necessario */
}

.user-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

.user-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #a16b78;
}

.user-name {
  font-size: 1.8rem;
  color: #a16b78;
  font-weight: 600;
  margin: 0;
}

.titolo-sezione {
  font-size: 1.4rem;
  color: #7b4b94;
  margin: 2rem 0 1rem;
  border-bottom: 2px solid #e8e2dd;
  padding-bottom: 0.5rem;
}

.user-info-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.user-info-table th,
.user-info-table td {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid #f0eae6;
}

.user-info-table th {
  background-color: #fdf8f6;
  color: #a16b78;
  font-weight: 600;
  width: 30%;
}

.user-info-table td {
  color: #444;
}

.upload-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem 2rem;
  background-color: #f8f3ef;
}

.upload-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  max-width: 500px;
  width: 100%;
}

.upload-form h2 {
  font-size: 1.5rem;
  color: #a16b78;
  margin-bottom: 1.5rem;
}

.upload-form label {
  display: block;
  font-weight: 600;
  color: #444;
  margin-bottom: 0.5rem;
}

.upload-form input[type="text"],
.upload-form input[type="file"] {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-family: inherit;
}

.btn-upload {
  background-color: #a16b78;
  color: white;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
}

.btn-upload:hover {
  background-color: #8b5864;
}
.recent-uploads {
  margin-top: 3rem;
}

.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.image-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 200px;
  text-align: center;
}

.image-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.raccolte-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.raccolta-card {
  width: 200px;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.raccolta-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  position: relative;
}

.popup-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.popup-header img {
  width: 120px;
  border-radius: 8px;
}

#nome-popup {
  font-size: 1.2rem;
  flex-grow: 1;
}

.close-btn {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.immagini-thumb {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.immagini-thumb img {
  width: 100px;
  border-radius: 6px;
}

.upload-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  color: #333;
  border: 1px solid #aaa;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
  z-index: 9999;
  transition: opacity 0.3s ease;
}
.hidden {
  display: none;
}
