@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1d2d5f;
  --blue-dark: #141f45;
  --orange: #f39237;
  --orange-text: #b4560a;
  --ink: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --radius: 20px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--blue); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(29,45,95,.45); }
.btn-primary { background: var(--orange); color: var(--blue); }
.btn-primary:hover { background: #f6a350; }
.btn-dark { background: var(--blue); color: #fff; }
.btn-dark:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--line); color: var(--blue); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-wa { background: #128c4a; color: #fff; }
.btn-wa:hover { background: #0f7a40; }
.btn-sm { padding: 10px 20px; border-radius: 999px; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nav a:hover { color: var(--blue); }
.nav .nav-ext { font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .9rem; padding-left: 24px; border-left: 1px solid var(--line); }
.nav a.btn { color: var(--blue); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blue); }

/* Hero */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(29,45,95,.07);
  color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.hero h1 span { color: var(--orange-text); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.fact-card {
  background: var(--blue); color: #fff; border-radius: 28px; padding: 34px;
  box-shadow: 0 30px 60px -30px rgba(29,45,95,.6);
}
.fact-card h2 { color: #fff; font-size: 1.25rem; margin-bottom: 20px; }
.fact-card li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.14); }
.fact-card li:first-child { border-top: 0; padding-top: 0; }
.fact-card .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: var(--blue); display: grid; place-items: center; }
.fact-card strong { display: block; font-size: 1.05rem; }
.fact-card span.sub { color: #cbd5e1; font-size: .92rem; }

/* Sections */
section { padding: 92px 0; }
.section-head { max-width: 46em; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px; position: relative; }
.card h3 { font-size: 1.4rem; margin-bottom: .5em; }
.card p { color: var(--muted); margin: 0; }
.card .ico { width: 56px; height: 56px; border-radius: 16px; background: #eef2ff; color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.card.featured { border: 2px solid var(--orange); box-shadow: 0 24px 50px -30px rgba(243,146,55,.8); }
.card.featured .ico { background: #fff4e8; }
.tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--orange); color: var(--blue);
  padding: 4px 14px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}

/* Corsi */
.courses { background: var(--blue); color: #fff; border-radius: 64px 64px 0 0; }
.courses h2, .courses h3 { color: #fff; }
.courses .section-head p { color: #cbd5e1; }
.course-card { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; padding: 30px; }
.course-card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--orange); color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.course-card h3 { font-size: 1.25rem; }
.course-card p { color: #cbd5e1; font-size: .98rem; margin: 0; }
.audience { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.audience li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 22px; }
.audience strong { display: block; font-size: 1.1rem; margin: 10px 0 4px; }
.audience span { color: #cbd5e1; font-size: .92rem; }
.audience svg { color: var(--orange); }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; padding: 32px; border-radius: 24px; background: var(--bg-soft); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 18px;
}
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }

/* Reviews / consent placeholders */
.reviews { background: var(--bg-soft); }
.embed-box { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; min-height: 220px; display: grid; place-items: center; text-align: center; }
.embed-box p { color: var(--muted); max-width: 34em; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-grid h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.contact-grid h2 span { color: var(--orange-text); }
.contact-list { display: grid; gap: 22px; margin: 32px 0; }
.contact-list li { display: flex; gap: 18px; align-items: center; }
.contact-list .ico { flex: none; width: 52px; height: 52px; border-radius: 16px; background: #eef2ff; color: var(--blue); display: grid; place-items: center; }
.contact-list small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-list a { font-size: 1.2rem; font-weight: 700; color: var(--blue); text-decoration: none; }
.contact-list a:hover { color: var(--orange-text); }
.map-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 32px; padding: 28px; }
.map-card address { font-style: normal; display: flex; gap: 14px; margin-bottom: 20px; color: var(--muted); }
.map-card address strong { display: block; color: var(--blue); font-size: 1.15rem; }
.map-frame { height: 300px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; text-align: center; padding: 20px; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-frame p { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid img { height: 56px; width: auto; margin-bottom: 18px; background: #fff; padding: 6px 10px; border-radius: 10px; }
.footer-grid h2 { color: #fff; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .8rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.footer-bottom a:hover, .footer-bottom button:hover { color: #fff; }

/* Cookie banner */
.consent {
  position: fixed; inset: auto 16px 16px 16px; z-index: 1000; display: none;
}
.consent.open { display: block; }
.consent-in {
  max-width: 880px; margin: 0 auto; background: #0f172a; color: #e2e8f0; border-radius: 24px; padding: 22px 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.consent p { flex: 1 1 340px; margin: 0; font-size: .92rem; }
.consent a { color: #fff; font-weight: 700; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn { padding: 11px 22px; font-size: .92rem; }
.consent .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.consent .btn-ghost:hover { border-color: #fff; }

/* Mobile quick bar */
.quick-bar { display: none; }

/* Legal pages */
.legal { padding: 64px 0 96px; min-height: 60vh; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal .box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 32px; margin-top: 28px; }
.legal .box p { color: var(--muted); }
.legal .box a.iubenda-embed { display: inline-block; }

/* Reveal (solo se JS attivo) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* Icone e utilità */
.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .audience { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .courses { border-radius: 40px 40px 0 0; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 22px; display: none; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav .nav-ext { border-left: 0; padding-left: 0; }
  .nav a.btn { margin-top: 16px; border-bottom: 2px solid transparent; text-align: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .brand img { height: 44px; }
  .audience, .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .quick-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: #fff; border-top: 1px solid var(--line); padding: 8px 12px; gap: 10px;
  }
  .quick-bar .btn { padding: 11px 10px; border-radius: 12px; }
  .consent { inset: auto 10px 74px 10px; }
}
