:root {
  --primary: #0ea5e9;

  --primary-dark: #0284c7;
  --text-dark: #1e293b;
  --text-light: #475569;
  --bg-light: #ddecffff;

  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}


.landing-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
  background: transparent;
}

.landing-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.landing-logo img {
  height: 50px;
  transition: height 0.3s;
}

.landing-nav a {
  text-decoration: none;
  color: #fff;
  margin-left: 20px;
  font-weight: 500;
}

.landing-nav .nav-label {
  color: white;
  font-weight: 600;
  margin-right: 20px;
}

.landing-header.scrolled .landing-nav a {
  color: #1e293b;
}

.landing-nav a.btn-cta {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 50px;
  box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

.landing-nav a.btn-cta:hover {
  transform: scale(1.05);
  background: var(--primary-dark);
}

.mobile-menu-toggle {
  display: none;
}



.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 160px 20px 100px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}



.btn-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #fff;
  padding: 18px 45px;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-block;
}

.btn-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

.btn-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px rgba(37, 99, 235, 0.5);
  filter: brightness(1.1);
}


.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.4);
}


.section-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.floating-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
  padding: 40px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.floating-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), #6366f1);
}

.floating-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(255, 255, 255, 0.85);
}


main,
section {
  margin-bottom: 60px;
}


.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}


.icon-box {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: var(--primary-dark);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8), 0 8px 15px -3px rgba(14, 165, 233, 0.2);
}

.scenic-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  margin-top: -100px;

  position: relative;
  z-index: 2;

  pointer-events: none;

}


.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}


.message {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: none;
}

.message.success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.message.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}


table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}

th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text-light);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-pendente {
  background: #fef9c3;
  color: #854d0e;
}

.status-assegnata {
  background: #dbeafe;
  color: #1e40af;
}

.status-chiusa {
  background: #f1f5f9;
  color: #475569;
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--primary);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-info h4 {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.stat-info .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: 'Outfit', sans-serif;
}


.modern-table-wrapper {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
}

.modern-table th {
  background: #f8fafc;
  padding: 16px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.modern-table td {
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.modern-table tr:last-child td {
  border-bottom: none;
}

.modern-table tr:hover {
  background: rgba(14, 165, 233, 0.03);
}

.modern-table td {
  padding: 20px 16px;
  color: var(--text-dark);
}

.modern-table th {
  padding: 16px;
  background: rgba(248, 250, 252, 0.8);
  font-weight: 700;
  color: #475569;
}


.badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-blue {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-green {
  background: #dcfce7;
  color: #15803d;
}

.badge-orange {
  background: #ffedd5;
  color: #9a3412;
}

.badge-purple {
  background: #f3e8ff;
  color: #6b21a8;
}

.badge-red {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  transition: all 0.3s;
  margin-top: 10px;
}

.admin-footer-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}


footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 20px;
  border-top: 1px solid #1e293b;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: block;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin-right: 20px;
}

.footer-links a:hover {
  color: var(--primary);
}


@media(max-width: 768px) {


  .landing-header {
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
  }

  .landing-logo img {
    height: 40px;
  }

  .mobile-menu-toggle {
    display: block;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #1e293b;

    z-index: 1001;
  }

  .landing-nav {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e2e8f0;
  }

  .landing-nav.active {
    display: flex !important;
  }

  .landing-nav a,
  .landing-nav .nav-label {
    margin: 0;
    display: block;
    color: #1e293b !important;
    font-size: 1.1rem;
    width: 100%;
    text-align: center;
    padding: 10px 0;
  }

  .landing-nav a.btn-cta {
    background: var(--primary);
    color: #fff !important;
    border-radius: 8px;
    max-width: none;
  }


  .hero-section {
    padding: 120px 20px 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }


  .card-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }


  .floating-card {
    padding: 25px;
    border-radius: 16px;
  }


  .section-container {
    margin: 40px auto;
  }

  main,
  section {
    margin-bottom: 40px;
  }


  .scenic-image {
    height: 250px !important;

  }

  .icon-box {
    margin: 0 auto 20px;

  }

  .floating-card h2,
  .floating-card h3 {
    text-align: center;
  }

  .floating-card p {
    text-align: center;
  }

  .floating-card .btn-hero,
  .floating-card .btn-primary {
    width: 100%;

    margin-top: 10px;
  }


  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .footer-links a {
    margin: 0;
  }
}

@media(max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
}