/* =========================================================
   Skills Power Academy — foglio di stile principale
   Colori e font del kit logo "Logo Skills Power"
   ========================================================= */

:root {
  --green: #00C96B;
  --green-dark: #00a257;
  --green-soft: rgba(0, 201, 107, .12);
  --bg: #111315;
  --bg-alt: #16191c;
  --surface: #1c2024;
  --surface-2: #23282d;
  --border: #2c3238;
  --text: #f3f4f5;
  --text-muted: #a6abb0;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --font-head: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.accent { color: var(--green); }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--green); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #07140d; }
.btn-primary:hover { background: #12dc7d; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17, 19, 21, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; line-height: 1; }
.brand-name span { color: var(--green); }
.brand-tag { display: block; font-family: var(--font-head); font-weight: 600; font-size: .58rem; letter-spacing: .22em; color: var(--text-muted); margin-top: 5px; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); text-decoration: none; }
.main-nav .btn { padding: 10px 20px; font-size: .9rem; color: #07140d; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; }
  .main-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav li:last-child a { border: 0; margin-top: 14px; text-align: center; }
  .brand-tag { display: none; }
}

/* ---------- Sezioni ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

@media (max-width: 700px) { section { padding: 68px 0; } }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 30%, rgba(0, 201, 107, .16), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; }
.hero h1 span { color: var(--green); }
.hero-lead { font-size: 1.15rem; color: var(--text-muted); max-width: 580px; margin-bottom: 32px; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius-lg); aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.hero-badge {
  position: absolute; left: -22px; bottom: 28px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.hero-badge strong { display: block; font-family: var(--font-head); }
.hero-badge span { font-size: .85rem; color: var(--text-muted); }
.hero-note { margin-top: 18px; font-size: .9rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 420px; }
  .hero-badge { left: 12px; bottom: 12px; }
}

/* ---------- Griglie e card ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .2s ease, transform .2s ease;
}
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--text-muted); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--green); transform: translateY(-3px); }

.icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }

.num {
  font-family: var(--font-head); font-weight: 800; font-size: 2.4rem;
  color: var(--green); line-height: 1; display: block; margin-bottom: 14px;
}

.card-link { display: inline-block; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--green); }

/* ---------- Problema / due colonne ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.big-quote {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35;
  border-left: 4px solid var(--green); padding-left: 24px;
}

/* ---------- Liste con check ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300C96B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ---------- Testimonianze ---------- */
.quote-card blockquote { margin: 0 0 20px; font-size: 1.02rem; color: var(--text); }
.quote-card blockquote::before { content: "“"; display: block; font-family: var(--font-head); font-size: 3rem; line-height: .8; color: var(--green); margin-bottom: 8px; }
.quote-author strong { display: block; font-family: var(--font-head); }
.quote-author span { color: var(--text-muted); font-size: .9rem; }

/* ---------- Passi ---------- */
.steps { counter-reset: step; }
.step { position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #07140d;
  font-family: var(--font-head); font-weight: 800; margin-bottom: 18px;
}

/* ---------- Chi sono ---------- */
.about-photo img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; width: 100%; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 32px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.fact strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--green); }
.fact span { font-size: .88rem; color: var(--text-muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.timeline .when { font-size: .85rem; color: var(--green); font-family: var(--font-head); font-weight: 600; }
.timeline h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.timeline p { color: var(--text-muted); margin: 0; font-size: .96rem; }

/* ---------- CTA finale ---------- */
.cta-box {
  background: linear-gradient(135deg, #0f2a1d 0%, var(--surface) 70%);
  border: 1px solid rgba(0, 201, 107, .35);
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
}
.cta-box p { color: var(--text-muted); max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-box .btn-row { justify-content: center; margin-top: 28px; }
@media (max-width: 600px) { .cta-box { padding: 44px 22px; } }

/* ---------- Intestazione pagine interne ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.page-hero p { color: var(--text-muted); font-size: 1.12rem; max-width: 720px; }
.breadcrumb { font-size: .88rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-muted); }

/* ---------- Percorsi ---------- */
.program { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 90px; }
.program:last-child { border-bottom: 0; }
.program-side .icon { width: 64px; height: 64px; }
.program-side .icon svg { width: 32px; height: 32px; }
.program-for { font-size: .95rem; color: var(--text-muted); }
@media (max-width: 800px) { .program { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Blog ---------- */
.post-card .tag, .post-meta .tag {
  display: inline-block; font-size: .75rem; font-family: var(--font-head); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--green); background: var(--green-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}
.post-card h3 { font-size: 1.2rem; }

.article { padding: 64px 0 80px; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.post-meta { color: var(--text-muted); font-size: .92rem; margin-bottom: 36px; }
.prose { font-size: 1.08rem; line-height: 1.8; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .7em; }
.prose li strong, .prose p strong { color: var(--text); }
.prose p, .prose li { color: #d7dadd; }
.prose .lead { font-size: 1.2rem; color: var(--text); }
.article-cta { margin-top: 56px; }

/* ---------- Hero con sfondo ufficio ---------- */
.hero-office {
  position: relative; overflow: hidden;
  min-height: min(calc(100vh - 72px), 820px);
  display: flex; align-items: center;
  padding: 96px 0 120px;
  background-color: #0b0d0e;
  background-image:
    linear-gradient(90deg, rgba(8, 10, 11, .95) 0%, rgba(8, 10, 11, .8) 38%, rgba(8, 10, 11, .32) 72%, rgba(8, 10, 11, .12) 100%),
    url("../img/hero-ufficio.jpg");
  background-size: cover;
  background-position: center;
}
.hero-office::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 45% 60% at 12% 30%, rgba(0, 201, 107, .16), transparent 70%);
}
.hero-office::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg-alt));
}
.hero-office .hero-grid { position: relative; z-index: 1; width: 100%; grid-template-columns: minmax(0, 1fr) 390px; }
.hero-office h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .5); }
@media (min-width: 901px) { .hero-office { padding: 64px 0 96px; } .hero-office .trust-row { margin-top: 32px; padding-top: 22px; } }
.hero-office .hero-lead { color: #c9ced2; font-size: 1.2rem; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 10px; margin-bottom: 24px;
  border: 1px solid rgba(0, 201, 107, .45); border-radius: 999px;
  background: rgba(0, 201, 107, .1);
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green);
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0, 201, 107, .25); }

.trust-row { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 40px 0 0; padding: 26px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.trust-row li { display: flex; flex-direction: column; }
.trust-row strong { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--text); line-height: 1.1; }
.trust-row span { font-size: .88rem; color: var(--text-muted); }

.glass-card {
  background: rgba(17, 19, 21, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-top: 3px solid var(--green);
  border-radius: 24px; padding: 34px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55);
}
.glass-card h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: .6em; }
.glass-card .eyebrow { margin-bottom: 10px; }
.glass-card .check-list li { margin-bottom: 12px; }
.glass-card .btn { width: 100%; margin-top: 8px; }

@media (max-width: 900px) {
  .hero-office {
    min-height: 0; padding: 56px 0 88px;
    background-image:
      linear-gradient(180deg, rgba(8, 10, 11, .55) 0%, rgba(8, 10, 11, .84) 45%, rgba(8, 10, 11, .97) 100%),
      url("../img/hero-ufficio-mobile.jpg");
    background-position: 60% center;
  }
  .hero-office .hero-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 18px 28px; }
  .trust-row strong { font-size: 1.3rem; }
}

/* ---------- Riquadro check-up (hero) ---------- */
.checkup-card {
  background: var(--green); color: #07140d;
  border-radius: 28px; padding: 36px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.checkup-card .eyebrow { color: #07140d; }
.checkup-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .5em; }
.checkup-card p { color: #0d2a1b; }
.checkup-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.checkup-card li { padding: 10px 0; border-top: 1px solid rgba(7, 20, 13, .18); font-weight: 500; }
.checkup-card .btn { background: #07140d; color: #fff; width: 100%; }
.checkup-card .btn:hover { background: #000; }

/* ---------- Box scuro in evidenza ---------- */
.callout {
  background: #000; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 32px;
  font-size: 1.12rem; line-height: 1.6;
}
.callout strong { color: var(--green); }

/* ---------- Profili del team ---------- */
.profile { display: flex; flex-direction: column; }
.profile-head { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; flex: none;
  object-fit: cover; object-position: 50% 20%;
  border: 3px solid var(--green);
}
.avatar-placeholder {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; color: var(--green);
}
.profile h3 { font-size: 1.4rem; margin-bottom: .2em; }
.profile .role { color: var(--green); font-weight: 500; font-size: .95rem; margin: 0; }
.profile .todo { color: #f5c451; }
.profile-lg .avatar { width: 140px; height: 140px; }
.photo-placeholder {
  width: 100%; max-width: 340px; aspect-ratio: 4 / 5;
  border: 2px dashed rgba(0, 201, 107, .45); border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.photo-placeholder span { font-family: var(--font-head); font-weight: 800; font-size: 3.5rem; color: var(--green); line-height: 1; }
.photo-placeholder small { color: #f5c451; font-size: .9rem; }

/* ---------- Dati sintetici percorso ---------- */
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.meta-row li {
  font-size: .85rem; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
}
.meta-row li strong { color: var(--green); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; padding: 0; list-style: none; }
.chips li { background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 8px 16px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list span { color: var(--text-muted); }
.contact-list a { color: var(--text); font-weight: 600; }
.contact-list a:hover { color: var(--green); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: #0d0f10; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: var(--text); }
.site-footer li a:hover { color: var(--green); }
.footer-about { color: var(--text-muted); margin-top: 16px; max-width: 320px; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  color: var(--text-muted); font-size: .85rem;
}
.footer-bottom a { color: var(--text-muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Animazione in entrata ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
