/* ICMED design system - BUNDLE generated by design/tools/build-compat.py (tokens + compat.generated + components). Edit design/css/*, not this file. */
/* =============================================================
   ICMED design tokens — GOAL 13C (source file; bundled into public/assets/css/design.css)
   Three layers:
     1. primitives   --ic-*   raw values (colour ramps, sizes). Direction A = default; Direction B = [data-theme="b"].
     2. semantic     --c-*, --f-*, --fs-*, --sp-*, --r-*, --sh-*   what the components use. Components never read primitives.
     3. components   defined in components.css, only from semantic tokens.
   Switching to Direction B means overriding the primitives/semantic values in the [data-theme="b"] block below: no component rule changes.
   Logo, brand and approved texts are NOT touched by tokens.
   ============================================================= */

:root {
  /* ---- 1. primitives (Direction A: the current navy / teal / gold identity, made accessible) ---- */
  --ic-navy-900: #0b1d36;
  --ic-navy-800: #0f2744;           /* brand navy, unchanged */
  --ic-navy-700: #1a365d;
  --ic-teal-700: #225d5e;
  --ic-teal-600: #2a7778;           /* UI teal (the brand teal-dark, 2 steps deeper): 5.24:1 with white, 4.98:1 on paper, 4.68:1 on the alternate paper */
  --ic-teal-500: #319795;           /* decorative only (3.5:1) */
  --ic-teal-300: #4fd1c7;           /* on dark surfaces */
  --ic-gold-500: #d69e2e;           /* decorative only */
  --ic-gold-700: #8a5d0a;           /* gold as text: 5.75:1 on white */
  --ic-indigo-700: #1818b8;         /* the indigo of the existing logo and of the IAAPP mark */
  --ic-indigo-300: #88b8e8;         /* the light blue of the existing logo */
  --ic-paper: #FAF9F7;
  --ic-paper-2: #F3F2EF;
  --ic-white: #FFFFFF;
  --ic-line: #d8d5ce;
  --ic-ink: #1A1A2E;
  --ic-ink-muted: #55556f;          /* 6.7:1 on paper */
  --ic-field-border: #767690;       /* form fields: 4.4:1 on white */

  /* ---- 2. semantic ---- */
  --c-bg: var(--ic-paper);
  --c-bg-alt: var(--ic-paper-2);
  --c-surface: var(--ic-white);
  --c-text: var(--ic-ink);
  --c-muted: var(--ic-ink-muted);
  --c-line: var(--ic-line);
  --c-primary: var(--ic-teal-600);
  --c-primary-hover: var(--ic-teal-700);
  --c-on-primary: var(--ic-white);
  --c-link: var(--ic-teal-600);
  --c-link-hover: var(--ic-teal-700);
  --c-heading: var(--ic-navy-800);
  --c-hero-from: var(--ic-navy-800);
  --c-hero-to: var(--ic-navy-700);
  --c-on-dark: var(--ic-white);
  --c-on-dark-muted: #dbe6f2;       /* 11.9:1 on navy */
  --c-on-dark-accent: var(--ic-teal-300);
  --c-decor: var(--ic-gold-500);
  --c-decor-text: var(--ic-gold-700);
  --c-focus: var(--ic-indigo-700);
  --c-focus-on-dark: var(--ic-teal-300);
  --c-footer-bg: var(--ic-navy-900);
  --c-field-border: var(--ic-field-border);
  /* the four business lines: same weight, one accent each (top rule + icon tile) */
  --line-consulenza: var(--ic-navy-700);
  --line-iaapp: var(--ic-teal-600);
  --line-formazione: var(--ic-gold-700);
  --line-magazine: var(--ic-indigo-700);

  /* typography */
  --f-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --fs-hero: clamp(1.75rem, 1.15rem + 2.6vw, 3.25rem);   /* 28px on phones → 52px on desktop */
  --fs-h1: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem);
  --fs-h2: clamp(1.375rem, 1.1rem + 1.2vw, 2rem);
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;            /* floor for running text: 13px */
  --fs-label: 0.75rem;              /* uppercase labels only */
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-body: 1.65;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* spacing: 4px base */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem; --sp-5: 1.5rem;
  --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4rem; --sp-9: 6rem;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --container: 1200px;
  --section-y: clamp(2.5rem, 2rem + 3vw, 4.5rem);

  /* shape */
  --r-sm: 6px; --r-md: 12px; --r-pill: 999px;
  --sh-1: 0 1px 3px rgba(15, 39, 68, 0.08);
  --sh-2: 0 4px 16px rgba(15, 39, 68, 0.12);
  --sh-3: 0 8px 32px rgba(15, 39, 68, 0.16);
  --tap: 44px;                      /* minimum touch target */
  --t-fast: 150ms ease;
}

/* ---- Direction B (future): same semantic names, different values. Not active unless <html data-theme="b"> ---- */
[data-theme="b"] {
  --ic-indigo-700: #2323b4;
  --ic-teal-600: #0b7f82;
  --ic-teal-700: #09686a;
  --ic-navy-900: #08122a;
  --ic-navy-800: #0b1730;
  --ic-navy-700: #14284a;
  --ic-paper: #F4F7FB;
  --ic-paper-2: #E9EFF7;
  --ic-line: #d3dce9;
  --ic-ink: #0f1b33;
  --ic-ink-muted: #4b5a75;
  --c-primary: var(--ic-indigo-700);
  --c-primary-hover: #1a1a96;
  --c-link: var(--ic-indigo-700);
  --c-link-hover: #1a1a96;
  --c-on-dark-accent: #5eead4;
  --c-focus: var(--ic-indigo-700);
  --line-consulenza: var(--ic-indigo-700);
  --line-iaapp: var(--ic-teal-600);
  --line-formazione: #2d6aa8;
  --line-magazine: var(--ic-navy-700);
  --f-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --r-md: 8px;
}

/* GENERATED by design/tools/build-compat.py from style.css — do not edit by hand. */
.lang-btn { font-size: var(--fs-micro); }
.course-badge { font-size: var(--fs-micro); }
.course-ecm { font-size: var(--fs-micro); }
.tab-count { font-size: var(--fs-micro); }
.sort-icon { font-size: var(--fs-micro); }
.article-card__tag { font-size: var(--fs-label); }
.registry-item__status { font-size: var(--fs-micro); }
.badge { font-size: var(--fs-label); }
.news-badge { font-size: var(--fs-micro); }
.news-filter-label { font-size: var(--fs-micro); }
.news-filter-pill { font-size: var(--fs-micro); }
.news-year-select { font-size: var(--fs-micro); }
.news-topic-tag { font-size: var(--fs-micro); }
.news-card-date { font-size: var(--fs-micro); }
.news-preview-date { font-size: var(--fs-micro); }
.cert-card-icon { color: var(--c-link); }
.cert-card-issuer { font-size: var(--fs-micro); }
.faq-question::after { color: var(--c-link); }
.client-logo-placeholder { font-size: var(--fs-micro); }
.magazine-card-title { font-size: var(--fs-micro); }
.team-founder-role { color: var(--c-link); }
.team-card-role { color: var(--c-link); font-size: var(--fs-label); }
.news-ticker-label { font-size: var(--fs-label); }
.news-ticker-item time { color: var(--c-on-dark-accent); font-size: var(--fs-micro); }
.icmed-comment-label { color: var(--c-link); font-size: var(--fs-label); }
.consulting-badges-label { font-size: var(--fs-label); }
.org-position { color: var(--c-link); }
.org-cv-link:hover { color: var(--c-link); }
.iaapp-hero-eyebrow { font-size: var(--fs-label); }
.iaapp-hero-title em { color: var(--c-on-dark-accent); }
.iaapp-hero-stat-label { font-size: var(--fs-label); }
.iaapp-cert-badge { font-size: var(--fs-micro); }
.iaapp-cert-badge svg { color: var(--c-link); }
.iaapp-feature-card h3 { font-size: var(--fs-micro); }
.iaapp-feature-icon { color: var(--c-link); }
.iaapp-feature-number { color: var(--c-link); font-size: var(--fs-micro); }
.iaapp-feature-placeholder span { font-size: var(--fs-micro); }
.why-icmed-chip { font-size: var(--fs-micro); }
.timeline-year { color: var(--c-link); }
.timeline-content p { font-size: var(--fs-micro); }
.se-hero-stat-label { font-size: var(--fs-label); }
.se-section-icon { color: var(--c-link); }
.se-card-year { font-size: var(--fs-micro); }
.se-card-citations { font-size: var(--fs-micro); }
.se-card-event { color: var(--c-link); font-size: var(--fs-micro); }
.se-editorial-issue { font-size: var(--fs-micro); }
.se-editorial-date { font-size: var(--fs-micro); }
.case-study-label { color: var(--c-link); font-size: var(--fs-label); }
.map-region-item span { font-size: var(--fs-micro); }
.ecosystem-step-num { font-size: var(--fs-micro); }
.ref-accordion-header svg { color: var(--c-link); }
.ref-accordion-meta { font-size: var(--fs-micro); }
.ref-table th { font-size: var(--fs-label); }
.ref-course-badge { font-size: var(--fs-micro); }
.ref-update-year { color: var(--c-link); font-size: var(--fs-micro); }
.why-icmed-kpi-label { font-size: var(--fs-label); }
.methodology-step-duration { font-size: var(--fs-micro); }
.founder-stat-label { font-size: var(--fs-label); }
.founder-credential { font-size: var(--fs-micro); }
.ss-case-badge { font-size: var(--fs-label); }
.ss-case-duration { font-size: var(--fs-micro); }
.ss-case-label { font-size: var(--fs-micro); }
@media (max-width: 768px) {
  .iaapp-cert-badge { font-size: var(--fs-micro); }
}

/* =============================================================
   ICMED — design system components (GOAL 13C; Direction A, tokens ready for Direction B).
   Source file: bundled with tokens.css and compat.generated.css into public/assets/css/design.css by design/tools/build-compat.py; loaded after style.css.
   Components read semantic tokens only (--c-*, --f-*, --fs-*, --sp-*, --r-*, --sh-*). No colour, size or radius literal below this line
   except the neutral white/black alphas used for overlays.
   ============================================================= */

/* ---------- 0. base: legacy variables remapped to the accessible tokens, global focus, reduced motion ---------- */
:root {
  --navy: var(--ic-navy-800);
  --navy-light: var(--ic-navy-700);
  --teal: var(--c-link);                 /* was #319795 (3.3:1 as text) → 4.8:1 */
  --teal-dark: var(--c-link-hover);
  --teal-light: var(--ic-teal-300);
  --gold-dark: var(--c-decor-text);
  --bg: var(--c-bg);
  --bg-light: var(--c-bg-alt);
  --text: var(--c-text);
  --text-muted: var(--c-muted);
  --border: var(--c-line);
  --radius: var(--r-sm);
  --radius-lg: var(--r-md);
  --shadow-sm: var(--sh-1); --shadow-md: var(--sh-2); --shadow-lg: var(--sh-3);
}
body { font-family: var(--f-body); line-height: var(--lh-body); color: var(--c-text); background: var(--c-bg); }
a { text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }
.hero :focus-visible, .page-hero :focus-visible, .news-ticker :focus-visible, .iaapp-hero :focus-visible, .site-footer :focus-visible { outline-color: var(--c-focus-on-dark); }
.skip-link { position: absolute; left: var(--sp-4); top: -4rem; z-index: 2000; background: var(--c-surface); color: var(--c-heading); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); box-shadow: var(--sh-2); font-weight: var(--fw-semibold); text-decoration: none; transition: top var(--t-fast); }
.skip-link:focus { top: var(--sp-4); }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
  .news-ticker-track { animation: none !important; }
}

/* ---------- 1. buttons: one primary, one secondary, one on-dark; 44px touch target ---------- */
.btn { min-height: var(--tap); font-family: var(--f-body); font-weight: var(--fw-semibold); line-height: 1.25; border-radius: var(--r-sm); transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.btn-primary { background-color: var(--c-primary); border-color: var(--c-primary); color: var(--c-on-primary); }
.btn-primary:hover { background-color: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btn-outline { color: var(--c-link); border-color: var(--c-link); }
.btn-outline:hover { background-color: var(--c-link); color: var(--c-on-primary); }
.btn-outline-light, .btn-outline-white { color: var(--c-on-dark); border-color: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover, .btn-outline-white:hover { background-color: rgba(255, 255, 255, 0.12); border-color: var(--c-on-dark); }
.btn-lg { min-height: 52px; padding-inline: var(--sp-6); }
.hero .btn-primary, .iaapp-hero .btn-primary { background-color: var(--ic-teal-600); border-color: var(--ic-teal-600); }

/* ---------- 2. header and navigation ---------- */
.site-header { box-shadow: 0 1px 0 var(--c-line), var(--sh-1); }
.header-inner { height: 64px; }
.logo-img { height: 38px; width: auto; aspect-ratio: 250 / 85; }
.nav-list > li > a { min-height: var(--tap); display: inline-flex; align-items: center; font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--c-text); }
.dropdown a { min-height: 40px; display: flex; align-items: center; }
.lang-btn { min-width: 36px; min-height: 32px; }
.lang-btn.is-active { background: var(--c-primary); color: var(--c-on-primary); }
.menu-toggle { width: var(--tap); height: var(--tap); }
@media (max-width: 992px) {
  .main-nav.is-open { box-shadow: var(--sh-3); border-top: 1px solid var(--c-line); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-list > li > a { width: 100%; min-height: 48px; padding-inline: var(--gutter); }
  .dropdown a { min-height: 44px; padding-inline: calc(var(--gutter) + var(--sp-4)); }
}

/* ---------- 3. ticker: slim, pausable, no motion when asked ---------- */
.news-ticker { font-size: var(--fs-small); }
.news-ticker-inner { padding-block: var(--sp-1); min-height: 40px; }
.news-ticker-track { animation-duration: 60s; }
.news-ticker:hover .news-ticker-track, .news-ticker:focus-within .news-ticker-track, .news-ticker.is-paused .news-ticker-track { animation-play-state: paused; }
.ticker-pause { flex-shrink: 0; min-width: 32px; min-height: 32px; margin-right: var(--sp-3); border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--r-sm); color: var(--c-on-dark); background: transparent; font-size: var(--fs-label); line-height: 1; cursor: pointer; position: relative; z-index: 2; }
.ticker-pause[aria-pressed="true"] span { font-size: 0; }
.ticker-pause[aria-pressed="true"] span::before { content: "▶"; font-size: var(--fs-label); }
@media (max-width: 575px) { .news-ticker-label { display: none; } }

/* ---------- 4. hero: smaller and tighter H1, readable measure, stacked actions on phones ---------- */
.hero--v2 { min-height: 0; padding-block: clamp(2.5rem, 2rem + 4vw, 5rem); background-image: linear-gradient(160deg, var(--c-hero-from) 0%, var(--c-hero-to) 100%); }
.hero--v2 .hero-content { max-width: 900px; padding-inline: var(--gutter); }
.hero--v2 .hero-title { font-family: var(--f-display); font-size: var(--fs-hero); line-height: var(--lh-tight); letter-spacing: -0.012em; max-width: 24ch; margin-inline: auto; margin-bottom: var(--sp-4); text-shadow: none; text-wrap: balance; }
.hero--v2 .hero-title::after { content: ""; display: block; width: 3.5rem; height: 3px; margin: var(--sp-4) auto 0; background: var(--c-decor); border-radius: 2px; }
.hero--v2 .hero-subtitle { font-size: clamp(1rem, 0.95rem + 0.35vw, 1.125rem); line-height: 1.7; max-width: 62ch; color: var(--c-on-dark-muted); margin-bottom: var(--sp-6); }
@media (max-width: 575px) {
  .hero--v2 .hero-actions { flex-direction: column; align-items: stretch; gap: var(--sp-3); }
  .hero--v2 .hero-actions .btn { width: 100%; }
}

/* ---------- 5. the four business lines: same card, same height, one accent each, link pinned to the bottom ---------- */
.lines-v2 { padding-block: var(--section-y); background: var(--c-surface); }
.lines-v2 .ecosystem-title { font-family: var(--f-display); font-size: var(--fs-h2); color: var(--c-heading); text-align: center; }
.lines-v2 .ecosystem-claim { color: var(--c-muted); }
.lines-v2 .services-grid, .lines-v2 .ecosystem-grid--offers { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5) !important; max-width: var(--container); }
.lines-v2 .ecosystem-connector { display: none; }
.lines-v2 .service-card { --accent: var(--line-consulenza); display: flex; flex-direction: column; align-items: flex-start; text-align: left; background: var(--c-surface); border: 1px solid var(--c-line); border-top: 4px solid var(--accent); border-radius: var(--r-md); padding: var(--sp-5); box-shadow: var(--sh-1); text-decoration: none; min-width: 0; flex: none !important; }
.lines-v2 .service-card:nth-of-type(2) { --accent: var(--line-iaapp); }
.lines-v2 .service-card:nth-of-type(3) { --accent: var(--line-formazione); }
.lines-v2 .service-card:nth-of-type(4) { --accent: var(--line-magazine); }
.lines-v2 .service-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.lines-v2 .service-icon { width: 3.25rem; height: 3.25rem; padding: 0.7rem; margin-bottom: var(--sp-4); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--c-surface)); border-radius: 50%; }
.lines-v2 .service-icon svg { width: 100%; height: 100%; }
.lines-v2 .service-title { color: var(--c-heading); font-size: var(--fs-h3); line-height: var(--lh-snug); margin-bottom: var(--sp-2); }
.lines-v2 .service-desc { color: var(--c-muted); font-size: var(--fs-small); }
.lines-v2 .insight-card-link { margin-top: auto !important; padding-top: var(--sp-3); color: var(--c-link); font-weight: var(--fw-semibold); font-size: var(--fs-small); }
@media (max-width: 992px) { .lines-v2 .services-grid, .lines-v2 .ecosystem-grid--offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) {
  .lines-v2 .services-grid, .lines-v2 .ecosystem-grid--offers { grid-template-columns: 1fr; gap: var(--sp-3) !important; }
  .lines-v2 .service-card { display: grid; grid-template-columns: 3rem 1fr; column-gap: var(--sp-3); padding: var(--sp-4); }
  .lines-v2 .service-icon { grid-row: 1 / span 2; width: 3rem; height: 3rem; margin: 0; }
  .lines-v2 .service-desc, .lines-v2 .insight-card-link { grid-column: 1 / -1; }
}
.audience-section .service-card { background: var(--c-bg); box-shadow: none; }

/* ---------- 6. cards, sections, page heroes (uniform radius / border / shadow) ---------- */
.service-card, .related-card, .cert-card, .resource-card, .course-card, .news-card, .magazine-card, .insight-card { border-radius: var(--r-md); }
.page-hero { background-image: linear-gradient(160deg, var(--c-hero-from) 0%, var(--c-hero-to) 100%); padding-block: clamp(2.5rem, 2rem + 4vw, 4.5rem) clamp(2rem, 1.5rem + 3vw, 3rem); }
.page-title { font-family: var(--f-display); font-size: var(--fs-h1); line-height: var(--lh-tight); text-wrap: balance; }
.page-intro { color: var(--c-on-dark-muted); }
.ecosystem-title, .section-title { color: var(--c-heading); }
.ecosystem-title { font-family: var(--f-display); font-size: var(--fs-h2); }
.ecosystem-link, .insight-card-link { color: var(--c-link); font-weight: var(--fw-semibold); }

/* ---------- 7. team: four identical cards, neutral avatar when no photograph is approved ---------- */
#team-aziendale .services-grid { align-items: stretch; }
#team-aziendale .service-card { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); box-shadow: var(--sh-1); padding: var(--sp-5); min-height: 100%; }
#team-aziendale .org-photo, .avatar-neutral { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--c-heading); object-fit: cover; aspect-ratio: 1; margin: 0 auto var(--sp-3) !important; display: block; cursor: default; }
.avatar-neutral { display: inline-flex !important; align-items: center; justify-content: center; background: var(--c-bg-alt); color: var(--c-muted); border-style: dashed; border-color: var(--c-line); }
#team-aziendale .service-title { margin-bottom: var(--sp-1); }
#team-aziendale .service-desc strong { color: var(--c-link); font-weight: var(--fw-semibold); }
/* organigramma (content is stored as HTML): same card shape, avatar only when a photograph exists */
.org-role { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: var(--sp-5); row-gap: var(--sp-1); align-items: start; text-align: left; }
.org-role > img, .org-role::before { grid-column: 1; grid-row: 1 / span 8; }
.org-role > :not(img) { grid-column: 2; }
@media (max-width: 575px) {
  .org-role { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .org-role > img, .org-role::before, .org-role > :not(img) { grid-column: 1; grid-row: auto; }
}
.org-role:not(:has(img))::before { content: ""; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--c-line); background-color: var(--c-bg-alt); background-image: radial-gradient(circle at 50% 36%, var(--c-muted) 0 15%, transparent 16%), radial-gradient(ellipse at 50% 104%, var(--c-muted) 0 38%, transparent 39%); background-repeat: no-repeat; opacity: 0.55; }
.org-position { color: var(--c-link); font-weight: var(--fw-semibold); }
.org-role > .org-cv-link { justify-self: start; }
/* GOAL 13D: on wide screens the organigramma cards sit two per row (the last one, the collegial bodies, spans both) instead of one narrow column */
@media (min-width: 992px) {
  .page-content .container:has(.org-role) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); max-width: 1100px; }
  .page-content .container:has(.org-role) > .content-block { margin-bottom: 0; align-items: flex-start; }
  .page-content .container:has(.org-role) > .content-block:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- 8. IAAPP: showcase band for the verified infographic, feature rows with icon tiles (no repeated placeholder text) ---------- */
.iaapp-showcase { padding-block: var(--section-y); background: var(--c-surface); }
.iaapp-showcase-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); justify-items: center; text-align: center; }
.iaapp-showcase-fig { max-width: 1000px; width: 100%; }
.iaapp-showcase h2 { font-family: var(--f-display); font-size: var(--fs-h2); color: var(--c-heading); margin-bottom: var(--sp-3); }
.iaapp-showcase-fig { margin: 0; border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg); padding: var(--sp-3); box-shadow: var(--sh-1); }
.iaapp-showcase-fig img { width: 100%; height: auto; display: block; border-radius: var(--r-sm); }
.iaapp-feature-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; max-height: 220px; border-radius: var(--r-md); background: color-mix(in srgb, var(--line-iaapp) 8%, var(--c-surface)); border: 1px solid var(--c-line); color: var(--line-iaapp); }
.iaapp-feature-tile svg { width: 64px; height: 64px; stroke-width: 1.25; }
.iaapp-feature-number { color: var(--c-link); }
.iaapp-hero { background-image: linear-gradient(160deg, var(--c-hero-from) 0%, var(--c-hero-to) 100%); }
.iaapp-hero-title em { color: var(--c-on-dark-accent); }
.iaapp-gallery { padding-block: var(--section-y); }
.iaapp-gallery h2 { font-family: var(--f-display); font-size: var(--fs-h2); color: var(--c-heading); margin-bottom: var(--sp-2); }
.iaapp-gallery-intro { color: var(--c-muted); max-width: 70ch; margin-bottom: var(--sp-5); }
.iaapp-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.iaapp-frame { margin: 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1); overflow: hidden; }
.iaapp-frame-bar { height: 28px; background: var(--c-bg-alt); display: flex; align-items: center; gap: 6px; padding: 0 12px; border-bottom: 1px solid var(--c-line); }
.iaapp-frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-line); display: block; }
.iaapp-frame img { width: 100%; height: auto; display: block; }
.iaapp-frame figcaption { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--c-line); font-size: var(--fs-small); }
.iaapp-frame figcaption strong { display: block; color: var(--c-heading); }
.iaapp-frame figcaption span { color: var(--c-muted); }
@media (max-width: 992px) { .iaapp-showcase-grid { grid-template-columns: 1fr; gap: var(--sp-5); } .iaapp-feature-tile { max-height: 140px; } .iaapp-gallery-grid { grid-template-columns: 1fr; } }

/* ---------- 9. forms and the contact chooser ---------- */
.form-group input, .form-group select, .form-group textarea { border: 1px solid var(--c-field-border); border-radius: var(--r-sm); min-height: var(--tap); font-size: var(--fs-body); background: var(--c-surface); }
.form-group label { font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--c-text); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 3px solid var(--c-focus); outline-offset: 1px; border-color: var(--c-focus); }
.chooser-v2 { font-size: 0 !important; display: flex; flex-wrap: wrap; margin-bottom: var(--sp-5) !important; }
.chooser-v2 strong { flex: 0 0 100%; font-size: var(--fs-body); color: var(--c-heading); margin-bottom: var(--sp-3); }
.chooser-v2 a { flex: 1 1 calc(50% - var(--sp-3)); margin: 0 var(--sp-3) var(--sp-3) 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); display: flex; align-items: center; min-height: 56px; padding: var(--sp-3) var(--sp-4); background: var(--c-surface); border: 1px solid var(--c-line); border-left: 4px solid var(--accent, var(--c-link)); border-radius: var(--r-sm); color: var(--c-heading); text-decoration: none; }
.chooser-v2 a:nth-of-type(1) { --accent: var(--line-consulenza); }
.chooser-v2 a:nth-of-type(2) { --accent: var(--line-iaapp); }
.chooser-v2 a:nth-of-type(3) { --accent: var(--line-formazione); }
.chooser-v2 a:nth-of-type(4) { --accent: var(--line-magazine); }
.chooser-v2 a:hover { box-shadow: var(--sh-2); }
.chooser-v2 br { display: none; }
.chooser-v2 span { flex: 0 0 100%; font-size: var(--fs-small); color: var(--c-muted); }
.chooser-v2 span a { display: inline; min-height: 0; padding: 0; border: 0; background: none; color: var(--c-link); text-decoration: underline; }
@media (max-width: 575px) { .chooser-v2 a { flex-basis: 100%; margin-right: 0; } }

/* ---------- 10. footer: requests first, accordions on phones ---------- */
.footer-v2 { background: var(--c-footer-bg); color: var(--c-on-dark-muted); padding-block: var(--sp-6) var(--sp-4); font-size: var(--fs-small); }
.footer-v2 a { color: var(--c-on-dark-muted); text-decoration: none; display: inline-block; padding-block: 2px; }
.footer-v2 a:hover { color: var(--c-on-dark); text-decoration: underline; }
.footer-v2-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--sp-6); padding-bottom: var(--sp-5); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-v2-brand .logo-text { font-family: var(--f-display); font-size: 1.75rem; color: var(--c-on-dark); font-weight: var(--fw-bold); }
.footer-v2-brand .footer-tagline { margin-block: var(--sp-2); color: var(--c-on-dark-muted); }
.footer-v2-h { font-family: var(--f-body); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-on-dark); margin-bottom: var(--sp-3); }
.footer-v2-req-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); }
.footer-v2-req-grid a { display: flex; align-items: center; min-height: var(--tap); padding: var(--sp-2) var(--sp-3); border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--r-sm); color: var(--c-on-dark); font-weight: var(--fw-semibold); }
.footer-v2-req-grid a:hover { background: rgba(255, 255, 255, 0.08); }
.footer-v2-req-more { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-3); }
.footer-v2-req-more a { min-height: 32px; }
.footer-v2-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); padding-block: var(--sp-5); }
.footer-v2-acc summary { list-style: none; cursor: default; font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-on-dark); font-weight: var(--fw-semibold); margin-bottom: var(--sp-2); }
.footer-v2-acc summary::-webkit-details-marker { display: none; }
.footer-v2-acc .footer-links { list-style: none; }
@media (min-width: 769px) { .footer-v2-acc .footer-links li a { min-height: 28px; } .footer-v2-acc .footer-links { display: grid; gap: 2px; } }
.footer-v2 .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: var(--sp-4); color: var(--c-on-dark-muted); }
@media (max-width: 768px) {
  .footer-v2-top { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-v2-cols { grid-template-columns: 1fr; gap: 0; padding-block: var(--sp-3); }
  .footer-v2-acc { border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
  .footer-v2-acc summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 48px; margin: 0; }
  .footer-v2-acc summary::after { content: "+"; font-size: 1.25rem; line-height: 1; }
  .footer-v2-acc[open] summary::after { content: "–"; }
  .footer-v2-acc .footer-links { padding-bottom: var(--sp-3); display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-4); }
}
@media (max-width: 380px) { .footer-v2-req-grid { grid-template-columns: 1fr; } .footer-v2-acc .footer-links { grid-template-columns: 1fr; } }

/* ---- GOAL 13G: IAAPP brand marks (official files, never resized by file: only the displayed height changes) ---- */
/* !important: the generic rules of style.css (.service-icon img, .related-card-icon img …) must never stretch an official mark */
img.brand-mark { height: var(--brand-h, 48px) !important; width: auto !important; max-width: none !important; display: block; object-fit: contain; }
.brand-plate { display: inline-flex; align-items: center; background: var(--c-surface); border-radius: var(--r-md); padding: var(--sp-3); box-shadow: var(--sh-1); }
.brand-lockup { display: inline-flex; align-items: center; gap: var(--sp-3); }
.brand-name { font-weight: var(--fw-bold); font-size: var(--fs-h3); color: var(--c-heading); line-height: 1.2; }
.iaapp-hero-brand { margin-bottom: var(--sp-4); }
.iaapp-spotlight-brand { margin-bottom: var(--sp-3); }
.service-icon--brand, .related-card-icon--brand { width: auto !important; height: auto !important; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.pillar-brand { margin-bottom: var(--sp-3); }
.area-brand { margin-bottom: var(--sp-3); }
.iaapp-sectors { padding-block: var(--section-y); background: var(--c-bg-alt); }
.iaapp-sectors-intro { text-align: center; color: var(--c-muted); max-width: 62ch; margin: 0 auto var(--sp-5); }
.iaapp-sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--sp-5); }
.sector-card { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: var(--sp-5); }
.sector-card-brand { display: flex; align-items: center; min-height: calc(72px + 2 * var(--sp-3)); } /* Gene sits on a plate: the reserved height keeps the five titles on one line */
.sector-card h3 { color: var(--c-heading); font-size: var(--fs-h3); margin: 0; }
.sector-card p { color: var(--c-muted); margin: 0; }
.sector-card .btn { margin-top: auto; }
.iaapp-sectors-note { text-align: center; color: var(--c-muted); font-size: var(--fs-small); max-width: 70ch; margin: var(--sp-5) auto 0; }
@media (max-width: 575px) {
  img.brand-mark { height: min(var(--brand-h, 48px), 64px) !important; }
  .sector-card-brand { min-height: calc(64px + 2 * var(--sp-3)); }
  .brand-name { font-size: 1rem; }
  .lines-v2 .service-card:has(.service-icon--brand) { grid-template-columns: auto 1fr; }
}
