:root {
  --bg-dark: #050b1d;
  --accent-blue: #2563eb;
  --accent-glow: rgba(37, 99, 235, 0.5);
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text-main: #ffffff;
  --text-dim: #cbd5e1;
  --nav-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  background-image: radial-gradient(
      circle at 20% 30%,
      rgba(37, 99, 235, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(147, 51, 234, 0.1) 0%,
      transparent 40%
    );
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* --- MENU SUPERIORE --- */
.navbar {
  height: var(--nav-height);
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  background: rgba(5, 11, 29, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent-blue);
}

.logo_img {
  margin-top: 4px;
  height: 56px;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

/* --- MAIN CONTENT --- */
/* .wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 0 60px 0;
  background-image: url("./Home_jurex_sfondo.png");
  background-repeat: no-repeat;
  background-size: cover;
} */

.wrapper {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 0 60px 0;
  overflow: hidden;
}

.wrapper::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: url("./images/Home_jurex_sfondo.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.1);
  z-index: 0;
}

.wrapper > * {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1100px;
  width: 90%;
  text-align: center;
}

header {
  margin-bottom: 60px;
}

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  /* -webkit-text-fill-color: transparent; */
}

.subtitle {
  font-size: 1.2rem;
  /* color: var(--text-dim); */
  font-weight: 300;
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.6;
}

.main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: left;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 25px;
  color: #c05ee6;
  /* color: var(--accent-blue); */
}

.card h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.card p {
  font-size: 0.95rem;
  /* color: var(--text-dim); */
  line-height: 1.6;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: all 0.3s ease;
  /* box-shadow: 0 4px 15px var(--accent-glow); */

  border: 1.5px solid #80eaff;
  box-shadow: inset 0 0 8px rgba(128, 234, 255, 0.3),
    0 0 12px rgba(86, 204, 242, 0.6), 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 50%;
}

.btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
  box-shadow: inset 0 0 10px rgba(128, 234, 255, 0.4),
    0 0 20px rgba(86, 204, 242, 0.8);
}

/* --- FOOTER --- */
footer {
  background: rgba(5, 11, 29, 0.9);
  padding: 60px 0 30px 0;
  border-top: 1px solid var(--glass-border);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-grid {
  width: 90%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 1rem;
  color: var(--text-main);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  color: var(--text-dim);
  font-size: 1.2rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: white;
}

.copyright {
  width: 90%;
  max-width: 1200px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  } /* In un sito reale qui andrebbe un menu hamburger */
  h1 {
    font-size: 2rem;
  }
  .card {
    padding: 30px;
  }
}
