/* GestionApp Landing – Bento Grid + Glassmorphism */
:root {
  --primary: #1E40AF;
  --primary-vibrant: #3B82F6;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.2);
  --radius: 24px;
  --radius-lg: 32px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 48px rgba(0, 0, 0, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: #0f172a url('assets/bg-haccp-specific.png') no-repeat center center fixed;
  background-size: cover;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0.7) 100%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* Glassmorphism navbar */
.landing-nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 12px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  transition: all 0.3s ease-out;
}
.landing-nav .logo { font-weight: 700; font-size: 1.25rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4); text-align: center; line-height: 1.3; }
.landing-nav .logo-tagline { font-size: 0.58em; font-weight: 500; opacity: 0.95; display: block; margin-top: 2px; }
.landing-nav a {
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 14px;
  transition: all 0.3s ease-out;
  font-weight: 500;
}
.landing-nav a:hover { background: rgba(255,255,255,0.2); color: #fff; }
.landing-nav .btn-cta {
  background: var(--primary-vibrant);
  color: #fff !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  animation: pulse-glow 2.5s ease-in-out infinite;
}
.landing-nav .btn-cta:hover {
  background: #2563eb;
  transform: scale(1.03);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.55);
}
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.gap-2 { gap: 8px; }
.flex-wrap { flex-wrap: wrap; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 26px rgba(59, 130, 246, 0.6); }
}

/* Hero */
.landing-hero {
  text-align: center;
  padding: 2rem 1rem 3rem;
  max-width: 720px;
  margin: 0 auto;
}
.landing-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.45), 0 0 40px rgba(0,0,0,0.3);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-align: center;
  line-height: 1.25;
}
.landing-hero .hero-tagline {
  display: block;
  font-size: 0.38em;
  font-weight: 600;
  margin-top: 0.35em;
  letter-spacing: 0.01em;
  opacity: 0.95;
}
.landing-hero .subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 2px 10px rgba(0,0,0,0.4);
}

/* Bento Grid – Funzionalità */
.bento-section { max-width: 1100px; margin: 0 auto 4rem; padding: 0 1rem; }
.bento-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
  margin-bottom: 1.25rem;
  padding-left: 4px;
}
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.bento-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease-out;
  box-shadow: var(--shadow);
}
.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,255,255,0.35);
}
.bento-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(59, 130, 246, 0.25);
  color: var(--primary-vibrant);
}
.bento-card .icon svg { width: 24px; height: 24px; }
.bento-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin: 0 0 6px; text-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.35); }
.bento-card p { font-size: 0.9rem; color: rgba(255,255,255,0.95); margin: 0; line-height: 1.45; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }

/* Pricing */
.pricing-section { max-width: 1100px; margin: 0 auto 4rem; padding: 0 1rem; }
.pricing-section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.4);
  text-align: center;
  margin-bottom: 1.5rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.price-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-out;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.price-card.featured {
  transform: scale(1.04);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2), 0 12px 40px rgba(0,0,0,0.15);
  animation: float-card 4s ease-in-out infinite;
}
.price-card.featured:hover { transform: scale(1.06) translateY(-4px); }
@keyframes float-card {
  0%, 100% { transform: scale(1.04) translateY(0); }
  50% { transform: scale(1.04) translateY(-6px); }
}
.price-card.featured::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-vibrant), #60a5fa);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
  animation: border-glow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes border-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}
.badge-risparmio {
  display: inline-block;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  animation: float-badge 2.5s ease-in-out infinite;
}
@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.price-card h3 { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 8px; text-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4); }
.price-card .price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-vibrant);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  margin: 0 0 4px;
}
.price-card .price span { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.95); text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.price-card .detail { font-size: 0.9rem; color: rgba(255,255,255,0.95); margin: 0 0 1.25rem; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.price-card .detail-risparmio { margin-top: 0.25rem; }
.pricing-note { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin: 1rem 0 0; text-align: center; text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.price-card .btn-scegli {
  display: inline-block;
  margin-top: auto;
  padding: 12px 24px;
  background: var(--primary-vibrant);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease-out;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.price-card .btn-scegli:hover {
  background: #2563eb;
  transform: scale(1.04);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.5);
}

/* Footer CTA + link account */
.landing-footer {
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 2rem 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.landing-footer p { margin: 0 0 12px; color: rgba(255,255,255,0.98); font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,0.4); }
.landing-footer a {
  color: var(--primary-vibrant);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease-out;
}
.landing-footer a:hover { color: #93c5fd; text-decoration: underline; }
.landing-footer .btn-demo {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease-out;
}
.landing-footer .btn-demo:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.02);
}
.landing-footer .account-link { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--glass-border); font-size: 0.95rem; }
.landing-footer .powered-by { margin-top: 1rem; padding-top: 0.75rem; font-size: 0.8rem; opacity: 0.85; }
.landing-footer .powered-by a { color: rgba(255,255,255,0.9); }

/* Magnetic effect (light) – JS will add slight movement */
.btn-magnetic { transition: transform 0.2s ease-out; }
