/* =========================================
   INFOMAAT DESIGN SYSTEM · Web Adaptation
   ========================================= */

/* Self-hosted fonts — sostituiscono Google Fonts CDN (no terze parti) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-800-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-800-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Brand */
  --im-blue: #1B6FB8; --im-blue-700: #155A96; --im-blue-100: #DCEAF6; --im-blue-050: #EEF5FB;
  --im-orange: #F08A24; --im-orange-700: #C86E12; --im-orange-100: #FDE6D0; --im-orange-050: #FDF3E8;
  --im-teal: #4FB8B8; --im-teal-700: #2F9090; --im-teal-100: #D9EFEF;
  /* Neutrals */
  --im-cream: #F5F2ED; --im-cream-deep: #ECE7DE; --im-paper: #FAF8F4;
  --im-line: #E2DCD0; --im-ink: #2A2A2A; --im-ink-soft: #6B6B6B; --im-ink-mute: #9A9590;
  /* Semantic */
  --im-warning: #D97706; --im-warning-bg: #FEF3E2;
  --im-success: #2F9090; --im-success-bg: #E5F2F2;
  --im-danger: #B83A3A; --im-danger-bg: #F8E5E5;
  /* Spacing (base-4) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  /* Radii & Shadows */
  --r-sm: 4px; --r-md: 8px; --r-lg: 14px; --r-xl: 20px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(42,42,42,.06), 0 1px 1px rgba(42,42,42,.04);
  --shadow-md: 0 4px 12px rgba(42,42,42,.08), 0 1px 2px rgba(42,42,42,.04);
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', Manrope, Inter, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--im-cream);
  color: var(--im-ink);
  font-family: var(--font-sans);
  font-size: 18px; /* Web base (slide usa 24px) */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--im-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--im-blue-700); }
img, svg { max-width: 100%; display: block; }

/* Container */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6); }

/* Header */
.site-header { background: var(--im-cream); padding: var(--s-5) 0; border-bottom: 1px solid var(--im-line); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 800; color: var(--im-blue); letter-spacing: -0.02em; }
.nav { display: flex; gap: var(--s-5); }
.nav-link { font-weight: 600; color: var(--im-ink-soft); font-size: 16px; padding: var(--s-3) var(--s-2); border-radius: var(--r-sm); }
.nav-link:hover, .nav-link.active { color: var(--im-blue); }

/* Focus ring globale (WCAG 2.4.7) — solo per navigazione tastiera, non per click */
:focus-visible { outline: 2px solid var(--im-blue); outline-offset: 3px; border-radius: var(--r-sm); }
.btn:focus-visible { outline-offset: 4px; }

/* prefers-reduced-motion: spegne le animazioni CSS per chi le ha disattivate a livello OS */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-enabled .fade-in { opacity: 1 !important; transform: none !important; }
}

/* Hero */
.hero { padding: var(--s-8) 0 var(--s-6); animation: fadeInUp 0.8s ease-out; }
.eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--im-blue); display: block; margin-bottom: var(--s-4); }
h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; text-wrap: balance; margin-bottom: var(--s-5); }
.subtitle { font-size: 20px; color: var(--im-ink-soft); max-width: 750px; margin-bottom: var(--s-7); text-wrap: pretty; }

/* Buttons */
.btn { display: inline-block; padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); font-weight: 600; transition: all 0.25s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--im-orange); color: var(--im-cream); }
.btn-primary:hover { background: var(--im-orange-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--im-blue); border: 2px solid var(--im-blue); }
.btn-secondary:hover { background: var(--im-blue-050); }

/* Features Grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-6); padding: var(--s-6) 0; }
.card { background: var(--im-paper); padding: var(--s-7); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border-left: 8px solid transparent; transition: transform 0.3s ease, box-shadow 0.3s ease; animation: fadeInUp 0.8s ease-out backwards; }
.card:nth-child(1) { animation-delay: 0.1s; } .card:nth-child(2) { animation-delay: 0.2s; } .card:nth-child(3) { animation-delay: 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-blue { border-left-color: var(--im-blue); } .card-teal { border-left-color: var(--im-teal); } .card-orange { border-left-color: var(--im-orange); }
.card-title { font-size: 26px; font-weight: 700; margin-bottom: var(--s-3); line-height: 1.25; }
.card p { color: var(--im-ink-soft); line-height: 1.6; }

/* Corsi Page — specialization cards */
.spec-section { padding: var(--s-6) 0; }
.spec-section-header { margin-bottom: var(--s-7); }
.specializations { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.specializations.is-2col { grid-template-columns: repeat(2, 1fr); }
.spec-card { background: var(--im-paper); border-left: 6px solid var(--im-blue); border-radius: var(--r-lg); padding: var(--s-7); box-shadow: var(--shadow-sm); }
.spec-card h3 { font-size: 28px; margin-bottom: var(--s-4); color: var(--im-ink); }
.spec-card h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--im-blue-700); margin: var(--s-4) 0 var(--s-2); }
.spec-card p { color: var(--im-ink-soft); font-size: 16px; line-height: 1.6; }

/* Corsi Page — altre materie */
.other-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); padding: var(--s-6) 0; }
.other-card { background: var(--im-paper); border-left: 4px solid var(--im-line); border-radius: var(--r-lg); padding: var(--s-6); }
.other-card h3 { font-size: 20px; font-weight: 700; margin-bottom: var(--s-3); }
.other-card p { color: var(--im-ink-soft); font-size: 16px; line-height: 1.6; }

/* Footer (7.8 spec) */
.site-footer { background: var(--im-cream-deep); padding: var(--s-8) 0 var(--s-6); border-top: 1px solid var(--im-line); margin-top: var(--s-7); }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer-brand .logo img { height: 36px; }
.footer-tagline { font-size: 14px; color: var(--im-ink-soft); margin-top: var(--s-2); }
.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: var(--s-2); }
.footer-nav-list a { font-size: 15px; color: var(--im-ink); }
.footer-nav-list a:hover { color: var(--im-blue); }
.footer-contacts { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-contacts a { font-size: 15px; color: var(--im-ink-soft); }
.footer-contacts a:hover { color: var(--im-blue); }
.footer-hours { font-size: 13px; color: var(--im-ink-mute); margin-top: var(--s-1); }
.footer-legal { font-size: 13px; color: var(--im-ink-soft); line-height: 1.6; text-align: center; padding-top: var(--s-5); margin-top: var(--s-5); border-top: 1px solid var(--im-line); }
.footer-copy { font-size: 13px; color: var(--im-ink-soft); text-align: center; margin-top: var(--s-3); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Logo image — header (footer ha override .footer-brand .logo img) */
.logo img { height: 88px; max-height: 88px; width: auto; display: block; }
.logo { display: inline-flex; align-items: center; }

/* Badge "Dal 2011" */
.badge-since {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); background: var(--im-blue-050); color: var(--im-blue-700);
  border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 14px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: var(--s-4); display: inline-block;
}

/* Hero CTA group */
.hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* Sezione Numeri */
.section { padding: var(--s-6) 0; }
.section-header { margin-bottom: var(--s-7); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7); padding: var(--s-8) 0; text-align: center; max-width: 800px; margin: 0 auto; }
.stat-number { font-family: var(--font-mono); font-size: clamp(48px, 6vw, 80px); font-weight: 700; color: var(--im-blue); line-height: 1; margin-bottom: var(--s-3); display: block; }
.stat-label { font-size: 16px; color: var(--im-ink-soft); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* Banner programma Study USA */
.study-usa-banner { background: var(--im-orange-050); border-left: 8px solid var(--im-orange); border-radius: var(--r-lg); padding: var(--s-8); margin: var(--s-8) 0; }
.study-usa-banner .eyebrow { color: var(--im-orange-700); }
.study-usa-banner h2 { margin-bottom: var(--s-4); }
.study-usa-banner p { color: var(--im-ink-soft); max-width: 720px; margin-bottom: var(--s-5); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); padding: var(--s-6) 0; }
.step { text-align: center; }
.step-number { display: inline-flex; width: 64px; height: 64px; border-radius: var(--r-pill); background: var(--im-blue); color: var(--im-cream); font-family: var(--font-mono); font-weight: 700; font-size: 24px; align-items: center; justify-content: center; margin-bottom: var(--s-4); }
.step h3 { font-size: 20px; margin-bottom: var(--s-3); }
.step p { font-size: 16px; color: var(--im-ink-soft); }

/* Contact cards (sostituiscono il form) */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); padding: var(--s-7) 0; }
.contact-card { background: var(--im-paper); border-radius: var(--r-lg); padding: var(--s-7); box-shadow: var(--shadow-sm); text-align: center; text-decoration: none; color: var(--im-ink); transition: transform 0.2s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; align-items: center; gap: var(--s-3); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--im-ink); }
.contact-card.whatsapp { border-left: 8px solid #25D366; }
.contact-card.email { border-left: 8px solid var(--im-blue); }
.contact-card-icon { width: 48px; height: 48px; }
.contact-card h3 { font-size: 24px; margin: 0; }
.contact-card .contact-value { font-family: var(--font-mono); font-size: 18px; color: var(--im-blue); font-weight: 600; }
.contact-card .contact-hint { font-size: 15px; color: var(--im-ink-soft); }

/* Info cards (contatti: Come lavoriamo) */
.info-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); padding: var(--s-5) 0; }
.info-card { background: var(--im-paper); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-sm); }
.info-card h3 { font-size: 20px; margin-bottom: var(--s-3); }
.info-card p { color: var(--im-ink-soft); font-size: 16px; }

/* Callout / note box */
.callout { background: var(--im-paper); border-left: 4px solid var(--im-line); border-radius: var(--r-md); padding: var(--s-5); margin: var(--s-5) 0; }
.callout p { color: var(--im-ink-soft); font-size: 16px; margin: 0; }
.callout strong { color: var(--im-ink); }

/* Bullet list */
.content-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.content-list li { padding-left: var(--s-5); position: relative; color: var(--im-ink-soft); font-size: 17px; }
.content-list li::before { content: "—"; position: absolute; left: 0; color: var(--im-blue); font-weight: 700; }

/* Testimonials (placeholder — Andrea fornirà testi e foto) */
.testimonials { padding: var(--s-8) 0 var(--s-9); }
.testimonials .lead { color: var(--im-ink-soft); max-width: 720px; margin: var(--s-3) 0 var(--s-7); font-size: 18px; }
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
/* Stato "una sola testimonianza": card centrata, non stirata. Rimuovere
   .is-single quando si aggiungono altre card → griglia responsive 2/3 col. */
.testimonials-grid.is-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.testimonial-card { background: var(--im-paper); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: var(--s-4); }
.testimonial-card .avatar { width: 80px; height: 80px; border-radius: var(--r-pill); object-fit: cover; flex-shrink: 0; }
.testimonial-card blockquote { font-size: 17px; line-height: 1.6; color: var(--im-ink); margin: 0; font-style: italic; }
.testimonial-card cite { display: flex; flex-direction: column; gap: var(--s-1); font-style: normal; }
.testimonial-card cite strong { font-size: 15px; color: var(--im-ink); font-weight: 700; }
.testimonial-card cite span { font-size: 14px; color: var(--im-ink-soft); }
@media (min-width: 600px) { .testimonials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== Study USA page ===== */
/* Docente */
.teacher { display: flex; gap: var(--s-7); align-items: flex-start; flex-wrap: wrap; }
.teacher-photo img { width: 280px; height: 280px; max-width: 280px; border-radius: var(--r-pill); object-fit: cover; box-shadow: var(--shadow-md); }
.teacher-bio { flex: 1; min-width: 280px; }
.teacher-bio h3 { font-size: 28px; margin-bottom: var(--s-1); }
.teacher-role { font-family: var(--font-mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--im-blue); margin-bottom: var(--s-4); }
.teacher-bio p { color: var(--im-ink-soft); font-size: 16px; margin-bottom: var(--s-3); }
.teacher-bio p:last-child { margin-bottom: 0; }

/* Syllabus table */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.syllabus-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--im-paper); }
.syllabus-table thead th { background: var(--im-blue); color: var(--im-cream); text-align: left; padding: var(--s-4) var(--s-5); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.syllabus-table tbody td { padding: var(--s-4) var(--s-5); border-top: 1px solid var(--im-line); color: var(--im-ink-soft); font-size: 16px; vertical-align: top; }
.syllabus-table .col-week { font-family: var(--font-mono); font-weight: 700; color: var(--im-blue); white-space: nowrap; }
.syllabus-table .col-type { font-weight: 700; color: var(--im-ink); white-space: nowrap; }

/* FAQ (details/summary nativo) */
.faq-list { display: flex; flex-direction: column; gap: var(--s-3); }
.faq-item { background: var(--im-paper); border-radius: var(--r-md); box-shadow: var(--shadow-sm); border-left: 4px solid var(--im-blue); }
.faq-item summary { padding: var(--s-5); font-weight: 700; font-size: 17px; color: var(--im-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; line-height: 1; color: var(--im-blue); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 var(--s-5) var(--s-5); }
.faq-item .faq-answer p { color: var(--im-ink-soft); font-size: 16px; margin: 0; }

/* CTA band (sfondo blu, knockout cream) */
.cta-band { background: var(--im-blue); border-radius: var(--r-lg); padding: var(--s-8); text-align: center; }
.cta-band h2 { color: var(--im-cream); margin-bottom: var(--s-3); }
.cta-band p { color: var(--im-blue-100); max-width: 620px; margin: 0 auto var(--s-6); }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-secondary { color: var(--im-cream); border-color: var(--im-cream); }
.cta-band .btn-secondary:hover { background: var(--im-blue-700); color: var(--im-cream); }

/* ===== Legal pages (privacy, cookie) ===== */
.legal { max-width: 760px; }
.legal-section { margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--im-line); }
.legal-section:first-of-type { margin-top: var(--s-5); padding-top: 0; border-top: none; }
.legal-section h2 { font-size: 22px; margin-bottom: var(--s-4); }
.legal-section h3 { font-size: 17px; margin: var(--s-5) 0 var(--s-3); }
.legal-section p { color: var(--im-ink-soft); margin-bottom: var(--s-4); }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section strong { color: var(--im-ink); }
.legal-section a { font-weight: 600; }
.legal-section address { font-style: normal; color: var(--im-ink-soft); line-height: 1.9; }
.legal-updated { font-family: var(--font-mono); font-size: 14px; color: var(--im-ink-mute); margin-top: var(--s-4); }

/* ===== Test pages ===== */
/* Eyebrow color variants */
.eyebrow-orange { color: var(--im-orange-700); }
.eyebrow-teal { color: var(--im-teal-700); }

/* Hub cards (test.html) */
.test-card { display: flex; flex-direction: column; }
.test-card h2 { font-size: 24px; margin: var(--s-2) 0 var(--s-3); line-height: 1.2; }
.test-card > p { color: var(--im-ink-soft); font-size: 16px; margin-bottom: var(--s-4); }
.test-list { list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.test-list li { font-size: 14px; color: var(--im-ink-soft); line-height: 1.7; padding-left: var(--s-4); position: relative; }
.test-list li::before { content: "·"; position: absolute; left: 0; color: var(--im-blue); font-weight: 700; }
.test-card .btn { margin-top: auto; align-self: flex-start; }

/* Indice ancore (TOC) */
.toc { background: var(--im-paper); border-radius: var(--r-lg); padding: var(--s-6); box-shadow: var(--shadow-sm); border-left: 6px solid var(--im-blue); }
.toc h2 { font-size: 18px; margin-bottom: var(--s-4); }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc > ul { columns: 2; column-gap: var(--s-7); }
.toc li { margin-bottom: var(--s-2); break-inside: avoid; }
.toc a { font-size: 15px; color: var(--im-ink-soft); }
.toc a:hover { color: var(--im-blue); }
.toc ul ul { margin: var(--s-2) 0 var(--s-3) var(--s-5); }
.toc ul ul a { font-size: 14px; }
.toc-group { font-weight: 700; color: var(--im-ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }

/* Schede test */
.test-scheda { scroll-margin-top: var(--s-5); margin-top: var(--s-7); max-width: 820px; }
.test-scheda h2 { font-size: 26px; margin-bottom: var(--s-4); }
.test-scheda h3 { font-size: 21px; margin-bottom: var(--s-4); }
.test-scheda > p { color: var(--im-ink-soft); margin-bottom: var(--s-4); }
.test-sub { margin-left: var(--s-5); border-left: 2px solid var(--im-line); padding-left: var(--s-6); }

/* Box dettagli */
.detail-box { background: var(--im-paper); border-left: 6px solid var(--im-blue); border-radius: var(--r-lg); padding: var(--s-6); margin: var(--s-5) 0; }
.detail-box dl { margin: 0; }
.detail-box dl > div { display: flex; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--im-line); }
.detail-box dl > div:first-child { border-top: none; padding-top: 0; }
.detail-box dt { flex: 0 0 140px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--im-blue-700); }
.detail-box dd { margin: 0; flex: 1; color: var(--im-ink-soft); font-size: 15px; }
.prepariamo { font-style: italic; color: var(--im-ink-soft); font-size: 15px; margin-top: var(--s-4); }

/* Seasonal banner (home) — striscia blu sotto l'hero */
.season-banner { display: block; background: var(--im-blue); color: var(--im-cream); padding: var(--s-5) var(--s-6); border-radius: var(--r-lg); text-align: center; font-weight: 700; font-size: 17px; text-decoration: none; transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; line-height: 1.5; }
.season-banner:hover { background: var(--im-blue-700); color: var(--im-cream); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.season-banner .arrow { display: inline-block; margin: 0 var(--s-2); font-family: var(--font-mono); opacity: 0.9; }

/* ===== Materiali — hub cards ===== */
a.material-card { color: inherit; text-decoration: none; }
.material-card { display: flex; flex-direction: column; }
.material-card .badge-coming { display: inline-block; background: var(--im-teal-100); color: var(--im-teal-700); font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); margin-bottom: var(--s-3); align-self: flex-start; }
.material-card .btn { margin-top: auto; align-self: flex-start; }
.material-card.is-disabled { opacity: 0.55; cursor: not-allowed; }
.material-card.is-disabled:hover { transform: none; box-shadow: var(--shadow-sm); }

/* ===== Materiali — lista per sezioni ===== */
.materials-list { margin-top: var(--s-6); }
.materials-section-title { font-size: 26px; font-weight: 700; color: var(--im-ink); margin-bottom: var(--s-3); line-height: 1.25; }
.materials-section-intro { font-size: 17px; color: var(--im-ink-soft); margin: 0 0 var(--s-6); max-width: 760px; line-height: 1.5; }
.materials-rows { display: flex; flex-direction: column; }
.material-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-5); padding: 20px 24px; border-bottom: 1px solid var(--im-line); transition: background-color 200ms ease; }
.material-row:last-child { border-bottom: none; }
.material-row:hover { background: var(--im-paper); }
.material-row-num { font-family: var(--font-mono); font-weight: 600; font-size: 22px; color: var(--im-blue); width: 48px; text-align: left; }
.material-row-body { min-width: 0; }
.material-row-title { font-size: 19px; font-weight: 700; color: var(--im-ink); margin: 0 0 4px; }
.material-row-topics { font-size: 15px; color: var(--im-ink-soft); margin: 0; line-height: 1.4; }
.material-row-desc { font-size: 14px; color: var(--im-ink-mute); margin: 6px 0 0; line-height: 1.5; max-width: 640px; }
.material-row-actions { display: flex; gap: 12px; }
.material-row-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--im-line); background: transparent; color: var(--im-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: all 200ms ease; }
.material-row-btn:hover { border-color: var(--im-blue); color: var(--im-blue); background: var(--im-blue-050); }
.material-row-btn-primary { background: var(--im-blue); color: var(--im-cream); border-color: var(--im-blue); }
.material-row-btn-primary:hover { background: var(--im-blue-700); color: var(--im-cream); border-color: var(--im-blue-700); }
.material-row-btn-icon { font-family: var(--font-mono); font-weight: 600; font-size: 11px; padding: 3px 6px; border-radius: 3px; background: rgba(0,0,0,0.06); letter-spacing: 0.04em; }
.material-row-btn-primary .material-row-btn-icon { background: rgba(255,255,255,0.15); }
@media (max-width: 720px) {
  .material-row { grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-4); padding: var(--s-4) var(--s-5); }
  .material-row-num { font-size: 18px; width: auto; }
  .material-row-actions { grid-column: 1 / -1; flex-wrap: wrap; }
}

/* Animations base — progressive enhancement: hidden only when JS is active */
.js-enabled .fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js-enabled .fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
  .site-header .container { flex-direction: column; gap: var(--s-4); }
  .logo img { height: 64px; max-height: 64px; }
  .nav { gap: var(--s-3); flex-wrap: wrap; justify-content: center; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; }
  .specializations, .specializations.is-2col, .steps, .contact-cards, .info-cards, .other-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-6); }
  .teacher-photo img { width: 220px; height: 220px; }
  .cta-band { padding: var(--s-7) var(--s-5); }
  .toc > ul { columns: 1; }
  .detail-box dl > div { flex-direction: column; gap: var(--s-1); }
  .detail-box dt { flex-basis: auto; }
  .test-sub { margin-left: 0; padding-left: var(--s-5); }
}
