/* ==================================================
   CYBER DETECTIVE — Stili generali
   Palette e componenti ispirati alla pagina Arcade.
   ================================================== */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1f2430;
  --muted: #5f6778;
  --primary: #1557ff;
  --primary-dark: #0f3eb3;
  --accent: #32c8c8;
  --navy: #092b62;
  --line: #e4e9f2;
  --shadow: 0 18px 40px rgba(18, 31, 61, 0.08);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  color: var(--text);
  background: linear-gradient(180deg, #fafafb 0%, #f1f3f8 100%);
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0 0 20px;
}

h1, h2, h3 {
  margin: 0 0 18px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  color: var(--navy);
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  color: var(--navy);
}

h3 {
  font-size: 1.3rem;
  color: var(--navy);
}

a:focus-visible {
  outline: 3px solid #e9a809;
  outline-offset: 5px;
}

.wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 40;
  padding: 12px;
  background: white;
}

.skip-link:focus {
  top: 12px;
}

/* Navigazione */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand {
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  line-height: 1.3;
}

.brand span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  text-decoration: none;
}

nav a:hover {
  background: #1557ff0d;
  color: var(--primary);
}

nav .home-button {
  color: var(--primary);
  border: 1px solid var(--line);
}

nav .nav-contact {
  color: white;
  background: var(--primary);
}

nav .nav-contact:hover {
  color: white;
  background: var(--navy);
}

/* Pulsanti e piccole etichette */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background .2s, box-shadow .2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px #1557ff24;
}

.btn-secondary {
  color: var(--primary);
  background: white;
  border: 1px solid #1557ff33;
}

.btn-secondary:hover {
  background: #eef3ff;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .07em;
  padding: 7px 12px;
  border-radius: 999px;
  background: #32c8c81c;
  color: #0e6767;
  margin-bottom: 20px;
}

.kicker {
  display: block;
  color: #17666c;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  margin-bottom: 12px;
}

/* Introduzione */
.hero {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  padding: 42px 0 60px;
}

.hero-copy, .hero-aside {
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}

.hero-copy {
  background: white;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 620px;
}

.hero-aside {
  background: var(--navy);
  color: #dce9ff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-aside h2 {
  color: white;
  font-size: 2.8rem;
}

.hero-aside .eyebrow {
  background: #32c8c81f;
  color: #7ce5e5;
  align-self: flex-start;
}

.method-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.method-tags span {
  font-size: 14px;
  border: 1px solid #ffffff40;
  padding: 5px 10px;
  border-radius: 999px;
}

/* Le tre proposte */
.section-heading {
  max-width: 870px;
  margin-bottom: 28px;
}

.overview {
  padding-bottom: 38px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.overview-card {
  display: block;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.overview-card:hover {
  border-color: var(--primary);
}

.card-number {
  display: block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.overview-card p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 16px;
}

.overview-card strong {
  font-size: 14px;
  color: var(--primary-dark);
}

.small-note {
  font-size: 14px;
  color: var(--muted);
  margin: 15px 0 0;
}

/* Percorsi: i banner mantengono integralmente le proporzioni originali */
.program {
  margin: 32px 0 52px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.program-banner {
  width: 100%;
  height: auto;
}

.program-body {
  padding: 40px;
}

.section-lead {
  font-size: 21px;
  line-height: 1.5;
  color: var(--muted);
}

.learning-grid, .mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.learning-grid article {
  background: #f3f7fc;
  padding: 26px;
  border-radius: 16px;
  border-top: 3px solid var(--accent);
}

.learning-grid p, .mission-grid p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 0;
}

.topic-label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .1em;
  color: #17666c;
  margin-bottom: 14px;
}

.program-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 32px;
}

.program-footer p {
  font-size: 15px;
  margin: 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.method-note {
  padding: 20px;
  border-radius: 16px;
  background: #f3f7fc;
}

.method-note p {
  margin: 6px 0 0;
  font-size: 16px;
}

.syllabus {
  border-left: 3px solid var(--accent);
  padding-left: 26px;
}

.syllabus ul {
  margin: 0;
  padding-left: 20px;
}

.syllabus li {
  margin-bottom: 14px;
}

.syllabus li::marker {
  color: var(--primary);
}

.mission-heading {
  margin-top: 28px;
}

.mission-grid {
  margin-top: 18px;
}

.mission-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}

/* Download e contatti */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}

.download-card h2 {
  font-size: 2rem;
}

.download-card p {
  max-width: 560px;
  margin-bottom: 0;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  flex-shrink: 0;
}

.text-link {
  color: var(--primary);
  font-size: 14px;
  text-underline-offset: 4px;
}

.contact-card {
  text-align: center;
  padding: 70px 20px;
}

.contact-card p {
  max-width: 610px;
  margin: 0 auto 24px;
}

.contact-email {
  color: var(--primary);
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  font-weight: 700;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
}

footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

/* Tablet e smartphone */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-aside h2 br {
    display: none;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-card {
    padding: 24px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .download-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .download-actions {
    flex-shrink: 1;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 140px;
  }
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }
  nav {
    gap: 3px;
  }
  nav a {
    padding: 5px 7px;
  }
  .hero {
    padding: 24px 0 42px;
    gap: 18px;
  }
  .hero-copy, .hero-aside, .program-body, .download-card {
    padding: 26px;
  }
  .hero-aside h2 {
    font-size: 2rem;
  }
  .hero-aside h2 br {
    display: initial;
  }
  .learning-grid, .mission-grid {
    grid-template-columns: 1fr;
  }
  .program {
    border-radius: 16px;
    margin-bottom: 32px;
  }
  .program-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-lead {
    font-size: 19px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 10px;
  }
  .btn {
    padding: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

