/* --- ADMIN LAYOUT --- */
.admin-container {
  max-width: 1200px;
  margin: 140px auto 40px;
  padding: 0 20px;
}

.admin-nav {
  display: flex;
  gap: 10px;
  background: var(--white);
  padding: 15px 20px;
  border-radius: var(--radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.admin-nav a {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s;
}

.admin-nav a:hover, .admin-nav a.active {
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary);
  text-decoration: none;
}

/* --- FORM E INPUT --- */
.form-wrapper {
  max-width: 450px;
  margin: 0 auto;
  padding: var(--space-4) 20px;
}

.form-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
  border: 1px solid rgba(197, 160, 89, 0.1);
}

.form {
  display: grid;
  gap: 30px;
  margin-top: 20px;
}

.form-group {
  position: relative;
}

input, textarea, select {
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  width: 100%;
  transition: var(--transition);
  border-radius: 0;
}

input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

input::placeholder {
  color: #ccc;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.alt-booking {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #f4f1ea;
}

.alt-booking p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* --- TABELLE (Dashboard & Admin) --- */
.table-container {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  margin-top: var(--space-3);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: #f8f8f8;
  padding: 15px 20px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  border-bottom: 1px solid #eee;
}

td {
  padding: 18px 20px;
  border-bottom: 1px solid #f1f1f1;
  vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background-color: #fafafa; }

/* --- MESSAGGI DI FEEDBACK --- */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
  font-size: 14px;
  font-weight: 500;
}

.alert-success { background: #e6f8e6; color: var(--success); border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: var(--danger); border: 1px solid #f5c6cb; }

/* --- GRIGLIA SLOT PRENOTAZIONI --- */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: var(--space-3);
}

.slot-btn {
  padding: 12px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: white;
  color: var(--primary);
  cursor: pointer;
  transition: 0.3s;
}

.slot-btn:hover:not(:disabled) { background: var(--primary); color: white; }
.slot-btn.selected { background: var(--primary); color: white; font-weight: bold; }
.slot-btn:disabled { background: #eee; border-color: #ccc; color: #999; cursor: not-allowed; }

/* --- HERO SECTION --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-dark);
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 0 20px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeUp 1s ease-out;
}

.hero-content h1 {
  font-size: 80px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 24px;
  color: #f0f0f0;
  margin-bottom: 40px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- VIVI SECTION (Boxes) --- */
.vivi {
  background-color: var(--white);
}

.box {
  background: var(--bg);
  padding: 60px 30px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.15);
  transition: all 0.4s ease;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.box:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}