/* Font self-hosted (nessuna richiesta a server esterni) */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
/* =========================================================
   ARS FUTURA FORMAZIONE — Design tokens
   ========================================================= */
:root {
  --navy-900: #0B1F3A;
  --navy-800: #122A4C;
  --navy-700: #14315C;
  --gray-50:  #F6F7F9;
  --gray-100: #EEF1F4;
  --line:     #E1E5EA;
  --white:    #FFFFFF;
  --ink:      #1C2430;
  --ink-soft: #4C5867;
  --accent:      #FF6A2B;
  --accent-dark: #E1571E;
  --accent-tint: #FFF1E9;

  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --container: 1160px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.10);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* =========================================================
   Reset
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--navy-900); line-height: 1.15; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 10px; top: 10px; }

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Signature motif — hazard stripe
   ========================================================= */
.hazard-bar {
  display: block;
  width: 92px;
  height: 8px;
  margin: 28px 0 32px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--accent),
    var(--accent) 10px,
    var(--navy-900) 10px,
    var(--navy-900) 20px
  );
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy-900);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* =========================================================
   Header (Flexbox)
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--navy-900);
}
.logo span { color: var(--accent); }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav a {
  display: inline-block;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover { background: var(--gray-100); }
.primary-nav a.nav-cta {
  background: var(--navy-900);
  color: var(--white);
  margin-left: 8px;
}
.primary-nav a.nav-cta:hover { background: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
/* animazione hamburger -> X quando il menu è aperto */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Section base
   ========================================================= */
.section { padding: 96px 0; }
.section--alt { background: var(--gray-50); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 12px;
}
.section h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); max-width: 720px; }
.section-lead {
  margin-top: 18px;
  max-width: 640px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  padding: 140px 0 110px;
}
.hero-inner { max-width: 780px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
}
.hero-sub {
  font-size: 1.1rem;
  color: #C9D3E0;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}
.hero .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.3); }
.hero .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* =========================================================
   Logo band — Social proof ticker
   ========================================================= */
.logo-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.logo-band-title {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.aziende-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.azienda-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 92px;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--navy-800);
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.azienda-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* =========================================================
   Corsi in Partenza — contenitore dinamico
   ========================================================= */
.corsi-widget {
  margin-top: 40px;
  min-height: 240px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--gray-50);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-align: center;
  padding: 32px;
}
.corsi-widget[data-state="loading"] .widget-status {
  animation: widget-pulse 1.6s ease-in-out infinite;
}
.corsi-widget[data-state="ready"] {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--font-body);
  font-size: inherit;
}
.widget-status a { color: var(--accent-dark); text-decoration: underline; }
@keyframes widget-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* =========================================================
   Two-column sections (Chi Siamo / Consulenza)
   ========================================================= */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 0.9fr 1.2fr; }
.two-col.reverse .col-highlight { order: 1; }
.two-col.reverse .col-text { order: 2; }

.col-text p { color: var(--ink-soft); margin-top: 16px; }
.col-text p:first-of-type { margin-top: 20px; }

.col-stats {
  display: grid;
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--navy-900);
}
.stat-label { color: var(--ink-soft); font-size: 0.92rem; }

/* =========================================================
   Corsi — CSS Grid: 1 col mobile / 2 col tablet / 4 col desktop
   ========================================================= */
.course-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .course-grid { grid-template-columns: repeat(4, 1fr); }
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.course-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.course-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.course-icon svg { width: 28px; height: 28px; }
.course-card h3 { font-size: 1.15rem; margin-bottom: 14px; }
.course-card ul li {
  position: relative;
  padding-left: 18px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.course-card ul li:last-child { margin-bottom: 0; }
.course-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.course-grid--partenza { margin-top: 0; }
.course-card--partenza { display: flex; flex-direction: column; }
.course-card--partenza ul { margin-bottom: 22px; }
.course-cta { margin-top: auto; align-self: flex-start; }
.code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--gray-100);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--navy-800);
}

/* =========================================================
   Consulenza
   ========================================================= */
.check-list { margin-top: 20px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-soft); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--navy-900);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.fund-box {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.fund-box::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 140px;
  height: 16px;
  background: repeating-linear-gradient(-45deg, var(--accent), var(--accent) 10px, transparent 10px, transparent 20px);
  opacity: 0.9;
}
.fund-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.fund-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 14px; }
.fund-box p { color: #C9D3E0; }
.fund-tags { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.fund-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
}

/* =========================================================
   Team — CSS Grid
   ========================================================= */
.team-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-role { color: var(--accent-dark); font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--ink-soft);
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-section { background: var(--gray-50); color: var(--navy-900); text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; justify-items: center; }
.cta-section h2 { color: var(--navy-900); }
.cta-section p { color: var(--navy-900); font-weight: 500; font-size: 1.05rem; }
.cta-section .btn-primary { background: var(--navy-900); color: var(--white); }
.cta-section .btn-primary:hover { background: var(--navy-800); transform: translateY(-2px); }

/* =========================================================
   Footer (Flexbox)
   ========================================================= */
.site-footer { background: var(--navy-900); color: #C9D3E0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 0 36px;
}
.footer-logo { color: var(--white); margin-bottom: 10px; }
.footer-company p { font-size: 0.88rem; color: #8FA0B8; margin-bottom: 4px; }
.footer-company .footer-logo { font-size: 1.05rem; color: var(--white); margin-bottom: 12px; }
.footer-contacts p { margin-bottom: 8px; }
.footer-contacts a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; }
.footer-bottom p { font-size: 0.82rem; color: #8FA0B8; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-legal {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  order: 2;
}
.footer-legal a { font-size: 0.82rem; color: #8FA0B8; }
.footer-legal a:hover { color: var(--accent); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .two-col.reverse .col-highlight,
  .two-col.reverse .col-text { order: initial; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    visibility: hidden;
    background: var(--white);
    transition: grid-template-rows var(--transition), visibility 0s linear 220ms;
  }
  .primary-nav.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    border-bottom: 1px solid var(--line);
    transition: grid-template-rows var(--transition), visibility 0s;
  }

  .primary-nav ul {
    min-height: 0;
    overflow-y: auto;
    max-height: calc(100vh - 76px);
    max-height: calc(100dvh - 76px);
    flex-direction: column;
    align-items: stretch;
    padding: 0 24px;
    gap: 4px;
    transition: padding var(--transition);
  }
  .primary-nav.is-open ul { padding: 12px 24px 20px; }
  .primary-nav a { text-align: center; }
  .primary-nav a.nav-cta { margin-left: 0; }

  .hero { padding: 110px 0 80px; }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; }
}

/* =========================================================
   Contenuto legale — Privacy Policy / Cookie Policy
   ========================================================= */
.legal-page {
  padding: 64px 0 100px;
}
.legal-page .container { max-width: 820px; }
.legal-page .eyebrow { margin-bottom: 8px; }
.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}
.legal-page .legal-updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-page h3 {
  font-size: 1.02rem;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--navy-800);
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 12px;
}
.legal-page ul { margin-bottom: 16px; }
.legal-page ul li {
  position: relative;
  padding-left: 20px;
}
.legal-page ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-page strong { color: var(--ink); }
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}
.legal-page th, .legal-page td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.legal-page th {
  background: var(--gray-50);
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}
.legal-page a.inline-link {
  color: var(--accent-dark);
  text-decoration: underline;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
}
.legal-back:hover { color: var(--accent); }

.legal-page .legal-company { margin-bottom: 16px; }
.legal-page .legal-company p { margin-bottom: 0; }

mark.placeholder {
  background: #FFE08A;
  color: var(--ink);
  font-weight: 600;
  padding: 0 4px;
  border-radius: 3px;
}
