:root {
  --bg: #07111f;
  --bg-soft: #0d1d31;
  --surface: rgba(10, 19, 33, 0.82);
  --surface-2: rgba(18, 31, 52, 0.9);
  --text: #f5f7fb;
  --muted: #b8c3d9;
  --gold: #cfa75b;
  --gold-2: #f0d69b;
  --aqua: #78d9e6;
  --violet: #a98bff;
  --line: rgba(255,255,255,0.12);
  --shadow: 0 16px 40px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Exo', sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(120,217,230,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(169,139,255,0.16), transparent 28%),
    linear-gradient(180deg, #03070d 0%, #07111f 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { color: var(--muted); }

.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }
.center { text-align: center; }

h1, h2 {
  font-family: 'Merienda', cursive;
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.7rem); }
h2 { font-size: clamp(1.8rem, 3vw, 3rem); }
h3, h4, h5 { font-family: 'Exo', sans-serif; margin: 0 0 .75rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .82rem;
  color: var(--gold-2);
  margin-bottom: 1rem;
}

.brand-gradient {
  background: linear-gradient(90deg, var(--gold-2) 0%, var(--gold) 28%, var(--aqua) 62%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(4, 9, 16, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-weight: 700;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
}

.brand small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .04em;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: .65rem .85rem;
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--muted);
  font-weight: 500;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--text); }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  min-width: 250px;
  padding: .8rem;
  border-radius: 18px;
  background: rgba(7, 14, 24, 0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  z-index: 1200;
}
.dropdown-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -.45rem;
  height: .55rem;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel { display: block; }
.dropdown-panel a {
  display: block;
  padding: .65rem .75rem;
  border-radius: 12px;
}
.dropdown-panel a:hover { background: rgba(255,255,255,0.06); }

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2,6,12,0.88) 0%, rgba(2,6,12,0.56) 48%, rgba(2,6,12,0.72) 100%),
    url('assets/lumen-sfondo.jpg') center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 25%, rgba(3,7,13,0.35) 80%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.hero-copy p.lead {
  font-size: 1.15rem;
  max-width: 760px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-card {
  justify-self: end;
  background: rgba(5, 10, 18, 0.78);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 1.5rem;
  max-width: 400px;
  box-shadow: var(--shadow);
}
.hero-card .stat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 1rem;
}
.stat-box strong {
  display: block;
  font-size: 1.7rem;
  color: var(--gold-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  border-radius: 999px;
  padding: .95rem 1.4rem;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a1305;
}
.btn-secondary {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.btn-outline {
  border: 1px solid rgba(207,167,91,0.45);
  background: transparent;
  color: var(--gold-2);
}

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 1.4rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.card.soft { background: rgba(255,255,255,0.04); }
.card h3 { font-size: 1.2rem; }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(207,167,91,.25), rgba(120,217,230,.12));
  border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.callout {
  background: linear-gradient(135deg, rgba(207,167,91,0.14), rgba(120,217,230,0.08));
  border: 1px solid rgba(207,167,91,0.25);
}

.module-grid .card { height: 100%; }
.module-grid h3 { min-height: 3.2rem; }
.module-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: .92rem;
}

.placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  border: 1px dashed rgba(255,255,255,0.22);
  background:
    radial-gradient(circle at top left, rgba(120,217,230,.15), transparent 30%),
    radial-gradient(circle at bottom right, rgba(169,139,255,.18), transparent 30%),
    rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  padding: 1rem;
}

.page-hero {
  padding: 7rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4,9,16,0.82), rgba(4,9,16,0.94)),
    url('assets/lumen-sfondo.jpg') center 15%/cover no-repeat;
  opacity: .75;
}
.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.breadcrumb span { color: var(--gold-2); }

.feature-list, .topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .8rem;
}
.feature-list li, .topic-list li {
  padding: .95rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
}

.module-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .5rem;
  bottom: .5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(120,217,230,0.2));
}
.timeline-item {
  position: relative;
  padding: 0 0 1.3rem 1.4rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.03rem;
  top: .35rem;
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 0 5px rgba(207,167,91,0.16);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.03);
}
th, td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}
th { color: var(--gold-2); font-weight: 700; }

.faq-item {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 1.1rem 1.2rem;
  font: inherit;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.faq-answer {
  display: none;
  padding: 0 1.2rem 1.2rem;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question span:last-child { transform: rotate(45deg); }

.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(2,6,12,0.76);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 2rem;
  align-items: center;
}
.footer p { margin: .35rem 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1rem;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .hero-grid,
  .module-layout,
  .footer-grid,
  .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-card { justify-self: start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(5, 10, 18, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .dropdown-panel {
    position: static;
    display: block;
    min-width: 0;
    margin-top: .5rem;
    background: rgba(255,255,255,0.03);
    box-shadow: none;
  }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}


/* Home refinement */
.hero-home {
  min-height: auto;
  padding: 5.5rem 0 4.5rem;
}
.hero-grid-home {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
  align-items: start;
  gap: 2.5rem;
}
.hero-copy-home {
  position: relative;
  max-width: 760px;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 28px;
  background: rgba(4, 9, 16, 0.62);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  backdrop-filter: blur(8px);
}
.hero-copy-home::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(7,17,31,0.20), rgba(7,17,31,0.10));
  pointer-events: none;
}
.hero-copy-home > * {
  position: relative;
  z-index: 1;
}
.hero-copy-home .lead {
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.hero-copy-home h1 {
  max-width: 900px;
}
.hero-card-home {
  width: 100%;
  max-width: 420px;
  justify-self: end;
}
.hero-poster {
  min-height: 290px;
  aspect-ratio: auto;
}
.hero-card-copy h2 {
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-top: 1.2rem;
}
.stat-home .stat-box strong {
  font-size: 1.3rem;
  line-height: 1.2;
}
.home-focus-grid,
.home-bottom-grid {
  align-items: stretch;
}

@media (max-width: 1180px) {
  .hero-grid-home {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero-card-home {
    justify-self: start;
    max-width: 720px;
  }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 74px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(5, 10, 18, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-menu.open { display: flex; }
  .dropdown-panel {
    position: static;
    display: block;
    min-width: 0;
    margin-top: .5rem;
    background: rgba(255,255,255,0.03);
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .hero-home { padding: 6.5rem 0 4rem; }
  .hero-copy-home { padding: 1.1rem 1rem 1.25rem; border-radius: 22px; }
  .hero-poster { min-height: 240px; }
}

.text-box {
    background: rgba(10, 18, 30, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    padding: 30px;
    border-radius: 16px;

    max-width: 700px;
    
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.text-box p {
    line-height: 1.6;
    color: #e6edf5;
}

.text-box h1,
.text-box h2 {
    color: #ffffff;
}