/*
 * Smart ECM — global UI overhaul.
 *
 * Drop-in stylesheet loaded after the Webflow theme on every page
 * (static HTML + Next.js routes). Provides:
 *   1. A modern design-token layer (--se-*) matching the
 *      radioprotezione-2026 landing aesthetic, anchored on the site's
 *      existing #0c4964 primary.
 *   2. Aggressive overrides for the legacy Webflow classes used
 *      across the static HTML (headings, buttons, cards, sections)
 *      so every page gets the new look without editing markup.
 *   3. `se-*` component classes used by the Next.js course pages.
 *
 * NOTE: the Fraunces + Hanken Grotesk @import used to live here, which
 * made every React route issue a render-blocking cross-origin Google
 * Fonts request even though app/layout.tsx already self-hosts those exact
 * faces via next/font. The @import now lives in /legacy-fonts.css, loaded
 * only by the static .html pages (which have no next/font). React routes
 * load this file font-free.
 */

/* ============================================================
   1. Tokens & base — "Editorial Clinical" design language.
   Navy ink + royal cobalt + bright azure on warm paper, with a
   Fraunces serif display face over a Hanken Grotesk text face.
   ============================================================ */

:root {
  /* Brand blues */
  --se-ink: #0a1c3a;            /* deep navy: dark sections, footer, strong ink */
  --se-ink-700: #0f2a52;
  --se-primary: #1d4ed8;        /* royal cobalt */
  --se-primary-600: #1942b4;
  --se-primary-700: #14328a;
  --se-primary-50: #eef3ff;
  --se-primary-100: #dbe6ff;
  --se-azure: #4f86f7;          /* bright azure accent */
  --se-azure-soft: #a9c6ff;
  --se-accent: #9ec0ff;         /* legacy alias (footer brand, rules) */

  /* Ink & text */
  --se-text: #15243f;
  --se-text-secondary: #51607a;
  --se-text-tertiary: #8893a6;

  /* Lines & surfaces */
  --se-border: #e8e4da;         /* warm hairline */
  --se-border-strong: #d9d3c6;
  --se-surface: #ffffff;        /* cards, header */
  --se-surface-2: #f6f4ee;      /* warm paper — alternating sections */
  --se-surface-3: #e9f0fa;      /* cool tint — hero base, media wells */
  --se-paper: #fbfaf5;          /* warm page tone for gradient ends */

  --se-radius-sm: 8px;
  --se-radius: 14px;
  --se-radius-lg: 20px;
  --se-radius-xl: 28px;

  /* Shadows — soft, navy-tinted, editorial */
  --se-shadow-card: 0 1px 2px rgba(10, 28, 58, 0.04),
    0 12px 30px -18px rgba(10, 28, 58, 0.22);
  --se-shadow-card-hover: 0 2px 6px rgba(10, 28, 58, 0.06),
    0 26px 50px -22px rgba(20, 50, 138, 0.34);
  --se-shadow-cta: 0 16px 34px -16px rgba(20, 60, 160, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);

  /* Prefer the self-hosted next/font faces on the React routes (the
     --font-* vars are set on <html> by app/layout.tsx); the static
     .html pages have no such vars and fall back to the named families
     loaded by /legacy-fonts.css. */
  --se-font: var(--font-hanken, "Hanken Grotesk"), ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --se-font-display: var(--font-fraunces, "Fraunces"),
    var(--font-hanken, "Hanken Grotesk"), ui-serif, Georgia,
    "Times New Roman", serif;
}

html,
body {
  font-family: var(--se-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--se-text);
  background: var(--se-surface);
}

/* Display face: optical sizing on, refined tracking. Applied to the
   big editorial headings; sub-headings stay on the grotesque for a
   crisp hierarchy contrast. */
.se-font-display,
.heading-01,
.heading-02,
.heading-03,
.sx-hero__title,
.sx-section__title,
.sx-cta__title,
.sx-split__body h3,
.se-h1,
.w-richtext h2,
.sx-faq-title {
  font-family: var(--se-font-display) !important;
  font-optical-sizing: auto;
  font-weight: 580;
}

/* ============================================================
   2. Typography overrides (Webflow heading classes)
   ============================================================ */

.heading-01,
.heading-02 {
  font-weight: 580 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.06 !important;
  color: var(--se-ink) !important;
  font-size: clamp(2rem, 3.5vw + 1rem, 3.4rem) !important;
}

.heading-03 {
  font-weight: 600 !important;
  letter-spacing: -0.012em !important;
  line-height: 1.14 !important;
  color: var(--se-ink) !important;
  font-size: clamp(1.65rem, 2vw + 0.9rem, 2.25rem) !important;
}

.heading-04,
.value-title {
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--se-text) !important;
  font-size: 1.15rem !important;
  line-height: 1.3 !important;
}

._16-px-regular,
._16-px-medium,
._18-px-medium,
._18-px-medium-copy {
  color: var(--se-text-secondary);
  line-height: 1.6;
}

._16-px-medium,
._18-px-medium,
._18-px-medium-copy {
  font-weight: 600;
  color: var(--se-text);
}

.neutral-01 {
  color: #ffffff !important;
}

.neutral-03 {
  color: var(--se-text-secondary) !important;
}

.neutral-04 {
  color: var(--se-text) !important;
}

a {
  color: var(--se-primary);
}

a:hover {
  color: var(--se-primary-600);
}

/* ============================================================
   3. Layout: sections + container
   ============================================================ */

.section-padding {
  padding: 64px 0 !important;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 88px 0 !important;
  }
}

.bg-neutral-02,
.bg-neutral-02-copy {
  background: var(--se-surface-2) !important;
}

.container.w-container,
.w-layout-blockcontainer.container {
  max-width: 1140px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* ============================================================
   4. Header & Footer
   ============================================================ */

.header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--se-border);
  position: sticky;
  top: 0;
  z-index: 60;
}

.header-content-wrapper {
  padding: 10px 0 !important;
}

.logo-name,
.footer-name {
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  font-size: 1.35rem !important;
  color: var(--se-text) !important;
}

.nav-item {
  padding: 8px 10px !important;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: var(--se-primary-50);
}

.nav-item.w--current p,
.nav-item:hover p {
  color: var(--se-primary) !important;
}

.header-button {
  background: var(--se-primary) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 10px 18px !important;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease;
  border: 0 !important;
}

.header-button:hover {
  background: var(--se-primary-600) !important;
  transform: translateY(-1px);
}

.header-button p {
  color: #fff !important;
}

.footer-section {
  background: var(--se-ink) !important;
  color: #e2e8ef !important;
  padding: 56px 0 40px !important;
  margin-top: 64px;
}

.footer-section ._16-px-regular,
.footer-section ._16-px-regular.neutral-04,
.footer-section .text-opacity {
  color: #cbd5e0 !important;
}

.footer-section .footer-name,
.footer-section .footer-name strong {
  color: #ffffff !important;
}

.footer-menu p {
  color: #cbd5e0 !important;
  transition: color 0.15s ease;
}

.footer-menu:hover p {
  color: #ffffff !important;
}

.line-03 {
  background: var(--se-accent) !important;
}

/* ============================================================
   5. Buttons
   ============================================================ */

/* NOTE: .btn-primary intentionally NOT styled here — it's owned by the
   smart-ecm design system in globals.css (radioprotezione landing CTA).
   Overriding it would conflict with the lucide ArrowRight icon and
   produce a double-arrow on the purchase card CTA. */
.button-primary-copy {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px !important;
  background: var(--se-primary) !important;
  color: #ffffff !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 15.5px !important;
  text-decoration: none;
  box-shadow: var(--se-shadow-cta);
  transition: background 0.15s ease, transform 0.12s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
  border: 0 !important;
}

.button-primary-copy:hover {
  background: var(--se-primary-600) !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(37, 99, 235, 0.55),
    0 0 0 4px rgba(37, 99, 235, 0.1);
}

.button-primary-copy:active {
  transform: translateY(0);
}

.button-primary-copy .button-bg {
  display: none !important;
}

.button-primary-copy .button-text {
  position: static !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  inset: auto !important;
  transform: none !important;
  padding: 0 !important;
}

.button-primary-copy .button-text p,
.button-primary-copy p {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 15.5px !important;
  margin: 0 !important;
}

.button-primary-copy::after {
  content: "→";
  font-weight: 400;
  font-size: 16px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.button-primary-copy:hover::after {
  transform: translateX(3px);
}

.button-primary-copy.w-button {
  appearance: none !important;
  border: 0 !important;
}

/* Secondary outline button */
.secondary-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 22px !important;
  background: #ffffff !important;
  color: var(--se-primary) !important;
  border: 1.5px solid var(--se-primary) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease,
    transform 0.12s ease;
}

.secondary-button:hover {
  background: var(--se-primary) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.secondary-button:hover .text-secondary p,
.secondary-button:hover p {
  color: #fff !important;
}

.secondary-button .bg-secondary-button {
  display: none !important;
}

.secondary-button .button-area,
.secondary-button .text-secondary {
  position: static !important;
  background: transparent !important;
  padding: 0 !important;
}

.secondary-button .text-secondary p {
  color: var(--se-primary) !important;
  font-weight: 600 !important;
  margin: 0 !important;
}

/* ============================================================
   6. Hero
   ============================================================ */

.demo-hero-section,
.hero-section {
  background: linear-gradient(180deg, var(--se-surface-3) 0%, #ffffff 100%);
  padding: 64px 0 72px !important;
}

@media (min-width: 768px) {
  .demo-hero-section,
  .hero-section {
    padding: 96px 0 80px !important;
  }
}

.hero-left-content {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 32px;
}

.hero-left-content .heading-01 {
  margin-bottom: 24px !important;
}

.hero-image-01 {
  border-radius: var(--se-radius-lg);
  box-shadow: var(--se-shadow-card);
  max-height: 520px;
  object-fit: cover;
  width: 100%;
}

.about-hero-image,
.contact-information img {
  border-radius: var(--se-radius);
}

/* ============================================================
   7. Cards: core values, blog, about, contact
   ============================================================ */

.core-valus-content-wrapper,
.about-content-wrapper {
  text-align: center;
}

.core-valus-title,
.team-section-title {
  margin-bottom: 36px !important;
}

.core-valus-card-wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.single-core-card {
  background: var(--se-surface) !important;
  border: 1px solid var(--se-border) !important;
  border-radius: var(--se-radius-lg) !important;
  padding: 28px 24px !important;
  box-shadow: var(--se-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 14px;
  text-align: left;
  opacity: 1 !important;
}

.single-core-card:hover {
  transform: translateY(-3px);
  border-color: var(--se-primary);
  box-shadow: var(--se-shadow-card-hover);
}

.core-icon {
  width: 48px !important;
  height: 48px !important;
  padding: 10px;
  background: var(--se-primary-50);
  border-radius: 12px;
  object-fit: contain;
}

.core-card-text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Blog cards */
.blog-collection-list-02,
.blog-collection-list-wrapper-02 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 22px !important;
}

.blog-collection-item,
.blog-card-content {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  overflow: hidden;
  box-shadow: var(--se-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.blog-collection-item:hover,
.blog-card-content:hover {
  transform: translateY(-3px);
  border-color: var(--se-primary);
  box-shadow: var(--se-shadow-card-hover);
}

.blog-image-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--se-surface-3);
}

.blog-image-wrap img,
.blog-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  transition: transform 0.4s ease;
}

.blog-collection-item:hover .blog-image {
  transform: scale(1.04);
}

.blog-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--se-text) !important;
  margin: 12px 18px 6px !important;
}

.blog-subtitle {
  font-size: 14.5px !important;
  color: var(--se-text-secondary) !important;
  line-height: 1.55 !important;
  margin: 0 18px 14px !important;
}

.blog-date-category {
  padding: 0 18px 16px !important;
  font-size: 12px !important;
  color: var(--se-text-tertiary) !important;
  letter-spacing: 0.03em;
}

/* About / counter */

.about-counter-wrapper {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 18px !important;
  margin-top: 32px;
}

.about-counter {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--se-shadow-card);
}

/* Contact section */

.contact-section {
  background: var(--se-surface-2);
}

.contact-content-area,
.contact_us_form,
.contact_us_form_div,
.contact-form-block {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  box-shadow: var(--se-shadow-card);
  padding: 28px;
}

/* ============================================================
   8. Forms (register, contact, login)
   ============================================================ */

input.w-input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
select.w-select,
select,
textarea.w-input,
textarea {
  border: 1px solid var(--se-border-strong) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 15px !important;
  font-family: var(--se-font) !important;
  color: var(--se-text) !important;
  background: var(--se-surface) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: none !important;
  height: auto !important;
}

input.w-input:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--se-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

label,
.field-label,
.w-form-label {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--se-text) !important;
  margin-bottom: 6px !important;
}

button.w-button,
input.w-button[type="submit"] {
  background: var(--se-primary) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 13px 24px !important;
  font-weight: 600 !important;
  font-size: 15.5px !important;
  font-family: var(--se-font) !important;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

button.w-button:hover,
input.w-button[type="submit"]:hover {
  background: var(--se-primary-600) !important;
  transform: translateY(-1px);
}

/* ============================================================
   9. Force-show Webflow opacity-hidden elements
   ============================================================ */

/* Webflow loads with opacity:0 expecting JS-driven fade-in. When that
   JS fails to run (or our backend bypasses it), entire sections stay
   invisible. Force them visible. */
[style*="opacity:0"],
[style*="opacity: 0"] {
  opacity: 1 !important;
}

/* ============================================================
   10. CTA / closing section
   ============================================================ */

.cat-section,
.starting-process-section,
.cta-section {
  background:
    radial-gradient(90% 130% at 88% -10%, rgba(79, 134, 247, 0.5) 0%, transparent 55%),
    linear-gradient(135deg, var(--se-ink) 0%, var(--se-primary-700) 60%, var(--se-primary-600) 100%) !important;
  padding: 64px 0 !important;
  color: #fff;
}

.cat-section .heading-03,
.starting-process-section .heading-03,
.cta-section .heading-03,
.cat-section ._16-px-regular,
.starting-process-section ._16-px-regular,
.cta-section ._16-px-regular {
  color: #ffffff !important;
}

.cat-section .secondary-button,
.starting-process-section .secondary-button {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--se-primary) !important;
}

.cat-section .secondary-button:hover,
.starting-process-section .secondary-button:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
}

.cat-section .secondary-button .text-secondary p,
.starting-process-section .secondary-button .text-secondary p {
  color: var(--se-primary) !important;
}

.cat-section .secondary-button:hover .text-secondary p,
.starting-process-section .secondary-button:hover .text-secondary p {
  color: #ffffff !important;
}

/* ============================================================
   11. Legacy courses listing card (still used on some HTML pages)
   ============================================================ */

.courses-collection-list-03 {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 22px !important;
}

.courses-card-02 {
  background: var(--se-surface) !important;
  border: 1px solid var(--se-border) !important;
  border-radius: var(--se-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: var(--se-shadow-card) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
  display: flex !important;
  flex-direction: column !important;
}

.courses-card-02:hover {
  transform: translateY(-3px);
  border-color: var(--se-primary);
  box-shadow: var(--se-shadow-card-hover);
}

.courses-image {
  width: 100% !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

.courses-card-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--se-text) !important;
  line-height: 1.3 !important;
}

.courses-image-title {
  position: relative;
}

.courses-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 11px;
  border-radius: 999px;
  z-index: 2;
}

.courses-category p {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--se-primary) !important;
  margin: 0 !important;
}

/* ============================================================
   12. Article / info-ecm rich content
   ============================================================ */

.blog-content-wrapper,
.w-richtext {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: var(--se-text-secondary);
}

.w-richtext :where(h1, h2, h3, h4) {
  color: var(--se-text);
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}

.w-richtext h2 {
  font-size: 1.7rem;
  font-weight: 800;
}

.w-richtext h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.w-richtext p {
  margin: 0 0 1em;
}

.w-richtext a {
  color: var(--se-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.w-richtext blockquote {
  border-left: 3px solid var(--se-primary);
  background: var(--se-surface-2);
  margin: 1.4em 0;
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  color: var(--se-text);
  font-style: normal;
}

.w-richtext ul,
.w-richtext ol {
  padding-left: 1.4em;
}

.w-richtext li {
  margin: 0.35em 0;
}

.w-richtext img {
  border-radius: var(--se-radius);
  max-width: 100%;
  height: auto;
  margin: 1.2em 0;
}

/* ============================================================
   13. se-* components (Next.js course pages)
   ============================================================ */

.se-section {
  background: var(--se-surface);
  padding: 48px 0 64px;
}

.se-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.se-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 960px) {
  .se-grid {
    grid-template-columns: 2fr 1fr;
    gap: 40px;
  }
}

.se-stack > * + * {
  margin-top: 32px;
}

.se-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.se-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

.se-chip--primary {
  background: var(--se-primary-50);
  color: var(--se-primary);
}

.se-chip--muted {
  background: #f1f5f9;
  color: #475569;
}

.se-h1 {
  font-size: clamp(1.85rem, 2.5vw + 1rem, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--se-text);
  margin: 0 0 10px;
}

.se-subtitle {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--se-text-secondary);
  margin: 0 0 24px;
  max-width: 62ch;
}

.se-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--se-text);
  margin: 0 0 14px;
}

.se-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--se-radius-lg);
  overflow: hidden;
  background: var(--se-surface-3);
}

.se-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.se-cover--mobile {
  aspect-ratio: 21 / 9;
  margin-bottom: 24px;
}

@media (min-width: 960px) {
  .se-cover--mobile {
    display: none;
  }
}

@media (max-width: 959px) {
  .se-cover--desktop {
    display: none;
  }
}

.se-keyinfo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding: 20px 22px;
  background: var(--se-surface-2);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius);
  margin: 0;
}

@media (min-width: 720px) {
  .se-keyinfo {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.se-keyinfo dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--se-text-tertiary);
  margin-bottom: 4px;
}

.se-keyinfo dd {
  font-size: 15px;
  font-weight: 600;
  color: var(--se-text);
  margin: 0;
  line-height: 1.4;
}

.se-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.se-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--se-surface-2);
  border: 1px solid var(--se-border);
  color: var(--se-text);
}

.se-prose {
  color: var(--se-text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
}

.se-prose :where(h1, h2, h3, h4) {
  color: var(--se-text);
  letter-spacing: -0.012em;
}

.se-prose h3 {
  font-size: 1.05rem;
  margin: 18px 0 6px;
}

.se-prose p {
  margin: 0 0 12px;
}

.se-prose ul,
.se-prose ol {
  padding-left: 22px;
  margin: 0 0 12px;
}

.se-prose li {
  margin: 4px 0;
}

.se-prose strong {
  color: var(--se-text);
}

.se-author {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--se-surface-2);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius);
}

.se-author__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--se-surface-3);
}

.se-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.se-author__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--se-text);
  margin: 0 0 4px;
}

.se-author__bio {
  font-size: 14.5px;
  color: var(--se-text-secondary);
  line-height: 1.55;
  margin: 0;
}

.se-faq {
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius);
  overflow: hidden;
  background: var(--se-surface);
}

.se-faq > details + details {
  border-top: 1px solid var(--se-border);
}

.se-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--se-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.15s ease;
}

.se-faq summary::-webkit-details-marker {
  display: none;
}

.se-faq summary:hover,
.se-faq summary:focus-visible {
  background: var(--se-primary-50);
  outline: none;
}

.se-faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--se-primary);
  border-bottom: 2px solid var(--se-primary);
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.se-faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.se-faq__answer {
  padding: 0 16px 16px;
  color: var(--se-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.se-purchase {
  background: var(--se-surface);
  border: 1.5px solid var(--se-primary);
  border-radius: var(--se-radius-lg);
  box-shadow: var(--se-shadow-cta);
  padding: 24px;
}

.se-purchase__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.se-purchase__price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--se-text);
  line-height: 1;
  letter-spacing: -0.02em;
}

.se-purchase__credits {
  font-size: 15px;
  font-weight: 500;
  color: var(--se-text);
}

.se-purchase__status {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--se-primary);
}

.se-purchase__status--soon {
  color: #64748b;
}

.se-purchase__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  background: var(--se-primary);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 0;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.se-purchase__cta:hover {
  background: var(--se-primary-600);
  transform: translateY(-1px);
  color: #ffffff !important;
}

.se-purchase__cta::after {
  content: "→";
}

.se-feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.se-feature-list--bordered {
  border-top: 1px solid var(--se-border);
  margin-top: 18px;
  padding-top: 18px;
}

.se-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--se-text);
  padding: 5px 0;
  line-height: 1.5;
}

.se-feature-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--se-primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.5 4.5l-7 7-3-3' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M13.5 4.5l-7 7-3-3' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

.se-feature-list li.is-highlight {
  color: var(--se-primary);
  font-weight: 700;
}

.se-sidebar {
  order: 1;
}

.se-main {
  order: 2;
}

@media (min-width: 960px) {
  .se-sidebar {
    order: 2;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .se-main {
    order: 1;
  }
}

.se-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--se-border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 50;
  box-shadow: 0 -6px 16px -6px rgba(0, 0, 0, 0.08);
}

.se-mobile-cta__price-block {
  min-width: 0;
}

.se-mobile-cta__credits {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--se-text-tertiary);
  line-height: 1;
  margin: 0 0 4px;
}

.se-mobile-cta__price {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  color: var(--se-text);
}

.se-mobile-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--se-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
}

.se-mobile-cta__btn:hover {
  background: var(--se-primary-600);
}

.se-mobile-cta__btn::after {
  content: "→";
}

@media (min-width: 960px) {
  .se-mobile-cta {
    display: none;
  }
}

.se-has-mobile-cta {
  padding-bottom: 92px;
}

@media (min-width: 960px) {
  .se-has-mobile-cta {
    padding-bottom: 0;
  }
}

.se-courses-section {
  background: linear-gradient(180deg, var(--se-surface-3) 0%, #ffffff 100%);
  padding: 64px 0 88px;
}

.se-courses-header {
  text-align: center;
  margin-bottom: 40px;
}

.se-courses-header .se-h1 {
  margin-bottom: 14px;
}

.se-courses-header p {
  color: var(--se-text-secondary);
  font-size: 16.5px;
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 auto;
}

.se-course-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .se-course-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .se-course-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.se-course-card {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
  box-shadow: var(--se-shadow-card);
}

.se-course-card:hover {
  transform: translateY(-3px);
  border-color: var(--se-primary);
  box-shadow: var(--se-shadow-card-hover);
}

.se-course-card__media {
  aspect-ratio: 16 / 10;
  background: var(--se-surface-3);
  overflow: hidden;
  position: relative;
}

.se-course-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.se-course-card:hover .se-course-card__media img {
  transform: scale(1.04);
}

.se-course-card__credits-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--se-primary);
  letter-spacing: 0.02em;
}

.se-course-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.se-course-card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  color: var(--se-text);
  margin: 0 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.se-course-card__desc {
  font-size: 14.5px;
  color: var(--se-text-secondary);
  line-height: 1.5;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.se-course-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--se-border);
}

.se-course-card__price {
  font-size: 20px;
  font-weight: 800;
  color: var(--se-text);
  line-height: 1;
}

.se-course-card__price-empty {
  font-size: 13px;
  color: var(--se-text-tertiary);
  font-weight: 500;
}

.se-course-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--se-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.se-course-card__btn:hover {
  background: var(--se-primary-600);
}

.se-course-card__btn::after {
  content: "→";
}

/* ============================================================
   15. sx-* — new site chrome (header, footer) + marketing components
   ============================================================ */

/* Reset everything inside sx-* so legacy Webflow CSS can't bleed in */
.sx-header,
.sx-footer,
.sx-section,
.sx-hero,
.sx-cta {
  box-sizing: border-box;
}

.sx-header *,
.sx-footer *,
.sx-section *,
.sx-hero *,
.sx-cta * {
  box-sizing: border-box;
}

/* ---- Header ---- */

.sx-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: saturate(170%) blur(16px);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid rgba(232, 228, 218, 0.6);
  width: 100%;
  /* Center the bar content vertically no matter the header's height. */
  display: flex;
  align-items: center;
}

.sx-menu-toggle {
  /* Fixed at the viewport top (not absolute at the document top) so that
     toggling the menu — which focuses this checkbox — doesn't scroll the
     page back to the top to bring it into view. */
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.sx-header__inner {
  flex: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Dim the page below the header while the mobile menu is open. Sits at
   body level (outside the backdrop-filtered header) so it resolves fixed
   against the viewport. */
.sx-scrim {
  position: fixed;
  /* Just below the header (64px bar + 1px border) so only the page is dimmed. */
  top: 65px;
  left: 0;
  right: 0;
  bottom: 0;
  /* It's a <label>: cancel the leaked form-label margin that would
     otherwise leave a 6px ungreyed strip at the bottom. */
  margin: 0 !important;
  /* Above the cookie banner (z 9999) / its settings modal (z 10000) so
     those get dimmed too; the menu and header sit above this. */
  z-index: 2147483646;
  background: rgba(20, 24, 33, 0.45);
  opacity: 0;
  visibility: hidden;
  cursor: pointer;
  transition: opacity 0.34s ease, visibility 0s linear 0.34s;
}

.sx-menu-toggle:checked ~ .sx-scrim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.34s ease;
}

/* Lift the header bar above the scrim/menu while open so the brand and
   burger stay visible and tappable. Above the scrim (and thus the cookie
   banner it dims). */
.sx-menu-toggle:checked ~ .sx-header {
  /* Same z as the open menu so the bar and menu read as one continuous
     surface — no shadow cast between them. */
  z-index: 2147483647;
}

@media (min-width: 920px) {
  .sx-scrim {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sx-scrim {
    transition: visibility 0s linear 0.34s;
  }
}

.sx-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--se-text);
  font-family: var(--se-font);
}

.sx-brand__name {
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  color: var(--se-ink);
  /* Hug the glyphs so the wordmark's optical centre matches the
     geometric centre of the burger/buttons in the flex-centred row —
     otherwise the reserved descender space pushes the text up and the
     burger looks low. */
  line-height: 1;
  position: relative;
  /* On desktop the wordmark sits beside the nav links ("Chi siamo",
     etc.), which carry no vertical nudge — keep it flush so the row
     reads as centred. The mobile nudge (against the burger) is applied
     in the max-width media query below. */
  top: 0;
}

.sx-brand__name strong {
  color: var(--se-primary);
  font-weight: 700;
}

/* Bump the wordmark on mobile so it sits more confidently beside the
   40px burger. */
@media (max-width: 919px) {
  .sx-brand__name {
    font-size: 1.24rem;
    /* The caps sit slightly high within the line box (no descenders in
       "Smart ECM"); nudge down ~0.1em to optically centre the wordmark
       against the 40px burger. */
    top: 0.1em;
  }
}

.sx-nav {
  display: none;
  margin-left: 20px;
  gap: 4px;
  flex: 1;
}

@media (min-width: 920px) {
  .sx-nav {
    display: flex;
  }
}

.sx-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--se-text);
  text-decoration: none;
  transition: background 220ms cubic-bezier(0.4, 0, 0.2, 1),
    color 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-nav__link:hover {
  background: var(--se-primary-50);
  color: var(--se-primary);
}

.sx-nav__label {
  display: inline-block;
}

/* ---- Global click-to-spinner (NavigationSpinner.tsx) ---- */

.sx-click-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 1em;
}

.sx-click-spinner__ring {
  width: 1.1em;
  height: 1.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: sx-click-spin 720ms linear infinite;
  display: inline-block;
  opacity: 0.85;
}

@keyframes sx-click-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-click-spinner__ring {
    animation-duration: 1.6s;
  }
}

.sx-nav__link.is-current {
  color: var(--se-primary);
  background: var(--se-primary-50);
  font-weight: 600;
}

/* ---- Nav dropdown (hover/focus reveal, CSS-only) ---- */

.sx-nav__group {
  position: relative;
  display: inline-flex;
}

.sx-nav__link--has-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.sx-nav__caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  /* Rotate around the geometric centre so the chevron stays
     vertically aligned with the label baseline. The 45deg version
     visually drops because the bottom-right corner is the lowest
     point — nudge it up by half its height so the tip sits on the
     label's optical centre. */
  transform: translateY(-3px) rotate(45deg);
  transform-origin: center;
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 220ms ease;
  opacity: 0.65;
  flex-shrink: 0;
}

.sx-nav__group:hover .sx-nav__caret,
.sx-nav__group:focus-within .sx-nav__caret {
  /* Pointing up after open — keep the same vertical anchor so the
     swap doesn't make the chevron jump. */
  transform: translateY(1px) rotate(-135deg);
  opacity: 1;
}

.sx-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 320px;
  max-width: 380px;
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.18),
    0 4px 12px -4px rgba(15, 23, 42, 0.08);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.18s ease, visibility 0.15s ease;
  /* Hover-intent: keep the panel open briefly after the cursor leaves
     so a small downward "overshoot" toward the menu doesn't slam it
     shut before the pointer reaches the panel. */
  transition-delay: 0.35s;
  z-index: 90;
}

/* Invisible "hover bridge" so moving the cursor from the trigger to
   the panel doesn't drop the hover state (the translate gap otherwise
   breaks the hover chain). Generous height + a little horizontal slop
   keeps the hover chain intact for a diagonal cursor path. */
.sx-dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  right: -16px;
  height: 18px;
}

.sx-nav__group:hover .sx-dropdown,
.sx-nav__group:focus-within .sx-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 2px);
  /* Open immediately — the delay only applies to closing. */
  transition-delay: 0s;
}

.sx-dropdown__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sx-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--se-text);
  transition: background-color 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-dropdown__item:hover {
  background: var(--se-primary-50);
}

.sx-dropdown__item-thumb {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--se-surface-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 180ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-dropdown__item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sx-dropdown__item-thumb--arrow {
  background: var(--se-primary-50);
  color: var(--se-primary);
  font-size: 20px;
  font-weight: 600;
  transition: background-color 180ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-dropdown__item:hover .sx-dropdown__item-thumb--arrow {
  transform: translateX(3px);
}

.sx-dropdown__item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sx-dropdown__item-title {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--se-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sx-dropdown__item-meta {
  font-size: 12px;
  color: var(--se-text-tertiary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sx-dropdown__item-meta-sep {
  opacity: 0.6;
}

.sx-dropdown__item:hover .sx-dropdown__item-title {
  color: var(--se-primary);
}

.sx-dropdown__empty {
  display: block;
  padding: 12px;
  font-size: 13px;
  color: var(--se-text-tertiary);
}

.sx-dropdown__see-all {
  margin-top: 4px;
  border-top: 1px solid var(--se-border);
  padding-top: 12px;
  border-radius: 0 0 10px 10px;
}

/* Hide dropdown when the mobile nav layout takes over */
@media (max-width: 919px) {
  .sx-dropdown {
    display: none;
  }
}

.sx-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Top-nav buttons: on hover just lift slightly (like the course-page
   CTAs) — no colour change, no added shadow. */
.sx-header__actions .sx-btn:hover {
  transform: translateY(-2px);
}

.sx-header__actions .sx-btn--primary:hover {
  background: var(--se-primary);
  box-shadow: var(--se-shadow-cta);
}

.sx-header__actions .sx-btn--secondary:hover {
  background: #ffffff;
  color: var(--se-primary);
}

/* Below the burger breakpoint the Accedi / Iscriviti buttons fold into
   the mobile menu, so they aren't shown twice / crowding the header —
   only the burger remains beside the brand. */
@media (max-width: 919px) {
  .sx-header__actions .sx-btn {
    display: none;
  }
}

.sx-burger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--se-border);
  background: var(--se-surface);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 0;
  /* It's a <label>, so the global form-label `margin-bottom: 6px` leaks
     in and inflates the header bar — reset it. */
  margin: 0 !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sx-burger:hover {
  background: var(--se-surface-2);
  border-color: var(--se-border-strong);
}

.sx-burger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: var(--se-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (min-width: 920px) {
  .sx-burger {
    display: none;
  }
}

/* Animated reveal: instead of toggling display (which pops), the menu
   stays in flow and slides open via max-height / padding / opacity so
   it expands and collapses smoothly. */
.sx-mobile-nav {
  /* Float over the page just below the sticky 64px header. Fixed against
     the viewport (lives outside the backdrop-filtered header). */
  position: fixed;
  /* Start exactly at the header's bottom edge (64px bar + 1px border). */
  top: 65px;
  left: 0;
  right: 0;
  /* Above the scrim, alongside the lifted header bar. */
  z-index: 2147483647;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 0;
  padding: 0 12px;
  border-top: 1px solid transparent;
  /* Grey bottom border marks where the menu ends. */
  border-bottom: 1px solid transparent;
  background: var(--se-surface);
  /* Transparent (not none) so the shadow can fade in/out symmetrically. */
  box-shadow: 0 16px 28px rgba(20, 24, 33, 0);
  opacity: 0;
  /* One shared timing for every property so closing is a clean reverse
     of opening. */
  transition: max-height 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    padding-top 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    padding-bottom 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.34s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.34s ease,
    box-shadow 0.34s ease;
}

.sx-menu-toggle:checked ~ .sx-mobile-nav {
  /* Headroom over the rows (incl. the Corsi FAD course submenu) so the
     menu never clips; kept reasonably snug to limit collapse lag. */
  max-height: 680px;
  padding-top: 0;
  padding-bottom: 14px;
  border-top-color: var(--se-border);
  border-bottom-color: var(--se-border);
  box-shadow: 0 16px 28px rgba(20, 24, 33, 0.1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .sx-mobile-nav {
    transition: none;
  }
}

.sx-menu-toggle:checked ~ .sx-header .sx-burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sx-menu-toggle:checked ~ .sx-header .sx-burger span:nth-child(2) {
  opacity: 0;
}

.sx-menu-toggle:checked ~ .sx-header .sx-burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.sx-mobile-nav__item {
  display: flex;
  flex-direction: column;
}

.sx-mobile-nav__link {
  display: block;
  padding: 12px 8px;
  border-bottom: 1px solid var(--se-border);
  color: var(--se-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.sx-mobile-nav__link.is-current {
  color: var(--se-text);
  font-weight: 600;
}

/* Course submenu under Corsi FAD — indented secondary rows mirroring
   the desktop dropdown. */
.sx-mobile-nav__item:has(.sx-mobile-nav__sub) > .sx-mobile-nav__link {
  border-bottom-color: transparent;
}

.sx-mobile-nav__sub {
  display: flex;
  flex-direction: column;
  padding-left: 14px;
}

.sx-mobile-nav__sublink {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid var(--se-border);
  color: var(--se-text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 14.5px;
}

/* 'Vedi tutti i corsi' reads exactly like the course rows above it —
   the arrow in the label is enough to mark it as the see-all link. */

/* Accedi + Iscriviti as a button pair on one row. */
.sx-mobile-nav__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sx-mobile-nav__actions .sx-btn {
  flex: 1;
}

/* No floating CTA shadow / hover lift inside the menu — keep the pair
   flat and aligned. */
.sx-mobile-nav__actions .sx-btn--primary,
.sx-mobile-nav__actions .sx-btn--primary:hover {
  box-shadow: none;
  transform: none;
}

/* ---- Buttons ---- */

.sx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 11px;
  font-family: var(--se-font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease,
    box-shadow 0.2s ease;
  line-height: 1;
}

.sx-btn--sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 9px;
}

.sx-btn--lg {
  padding: 15px 26px;
  font-size: 16.5px;
  border-radius: 13px;
}

.sx-btn--primary {
  background: var(--se-primary);
  color: #ffffff;
  box-shadow: var(--se-shadow-cta);
}

.sx-btn--primary:hover {
  background: var(--se-primary-600);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -16px rgba(20, 60, 160, 0.6),
    0 0 0 4px rgba(37, 99, 235, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.sx-btn--primary::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.2s ease;
}

.sx-btn--primary:hover::after {
  transform: translateX(3px);
}

.sx-btn--secondary {
  background: #ffffff;
  color: var(--se-primary);
  border: 1.5px solid var(--se-primary);
}

.sx-btn--secondary:hover {
  background: var(--se-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.sx-btn--ghost {
  background: transparent;
  color: var(--se-text);
  border: 1px solid var(--se-border);
}

.sx-btn--ghost:hover {
  border-color: var(--se-primary);
  color: var(--se-primary);
}

/* ---- Containers ---- */

.sx-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.sx-container--narrow {
  max-width: 800px;
}

.sx-section {
  padding: 72px 0;
}

@media (min-width: 768px) {
  .sx-section {
    padding: 96px 0;
  }
}

.sx-section--tight {
  padding: 48px 0;
}

.sx-section--muted {
  background: var(--se-surface-2);
}

.sx-section--gradient {
  background: linear-gradient(180deg, var(--se-surface-3) 0%, #ffffff 100%);
}

/* Hairline rule between adjacent white sections, used instead of an
   alternating muted background to keep the page light and editorial. */
.sx-section--divider {
  border-top: 1px solid var(--se-border);
}

/* Blue provider badge (Chi siamo → ICP), matching the avatar tile on the
   course pages but rendered as a circle. */
.sx-icp-badge {
  width: 84px;
  height: 84px;
  margin: 32px auto 0;
  border-radius: 50%;
  background: var(--se-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--se-font);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

/* Match the space below the badge to the space above it. The compound
   selector outranks the base `.sx-section__head` margin defined later. */
.sx-section__head.sx-section__head--badge {
  margin-bottom: 32px;
}

/* ---- Hero ---- */

.sx-hero {
  position: relative;
  padding: 56px 0 28px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--se-border);
}

@media (min-width: 768px) {
  .sx-hero {
    padding: 92px 0 44px;
  }
}

/* Warm-paper tint behind the title section — matches the greyish band
   used on the course landing pages. The default hero is top-weighted
   (more padding above than below); even out the padding so the title
   sits centred in the band without changing its overall height
   (56+28 → 42/42, 92+44 → 68/68). */
.sx-hero--tinted {
  background: var(--se-surface-2);
  display: flex;
  align-items: center;
  min-height: 196px;
  padding-top: 42px;
  padding-bottom: 42px;
}

@media (min-width: 768px) {
  .sx-hero--tinted {
    min-height: 300px;
    padding-top: 68px;
    padding-bottom: 68px;
  }
}

/* Centre the title block within the fixed-height band so every tinted
   hero is the same height regardless of whether the title is one line
   (e.g. Contattaci) or two (Info ECM, Corsi FAD, Chi siamo). */
.sx-hero--tinted .sx-hero__inner {
  width: 100%;
}

/* Drop the trailing margin under the last hero element (title / lede)
   so it doesn't stack onto the bottom padding and push the content up —
   the symmetric padding then truly centres it in the band. */
.sx-hero--tinted .sx-hero__inner > :last-child {
  margin-bottom: 0;
}

/* Muted hero band — warm-paper background behind the page title. The
   default hero is top-heavy (it expects a lede/CTAs below the title); as
   a standalone coloured band the title needs balanced vertical padding. */
.sx-hero--muted {
  background: var(--se-surface-2);
  padding: 56px 0;
}

@media (min-width: 768px) {
  .sx-hero--muted {
    padding: 88px 0;
  }
}

/* When a sx-section follows a sx-hero, the section's top padding
   compounds with the hero's bottom padding to leave a huge gap
   between the page title and the first piece of content. The hero
   already breathes — tighten the section's top side. */
.sx-hero + .sx-section {
  padding-top: 40px;
}

@media (min-width: 768px) {
  .sx-hero + .sx-section {
    padding-top: 56px;
  }
}

/* Bare hero (e.g. Contattaci, Info ECM): just a title, no eyebrow/lede/CTAs below.
   Drop the divider line and balance the bottom padding against the top so
   the title has equal breathing room above and below. */
.sx-hero--bare {
  border-bottom: none;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .sx-hero--bare {
    padding-bottom: 78px;
  }
}

.sx-hero--bare .sx-hero__title {
  margin-bottom: 0;
}

/* Balanced hero (home): equal top/bottom padding so the space above the
   eyebrow matches the space below the cards at the bottom of the band. */
.sx-hero--balanced {
  padding-top: 48px;
  padding-bottom: 48px;
}

@media (min-width: 768px) {
  .sx-hero--balanced {
    padding-top: 68px;
    padding-bottom: 68px;
  }
}

.sx-hero__inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* One orchestrated page-load reveal: hero elements rise and settle in
   sequence. Higher impact than scattered micro-interactions. */
.sx-hero__inner > * {
  animation: sx-rise 0.72s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sx-hero__inner > *:nth-child(1) { animation-delay: 0.04s; }
.sx-hero__inner > *:nth-child(2) { animation-delay: 0.12s; }
.sx-hero__inner > *:nth-child(3) { animation-delay: 0.2s; }
.sx-hero__inner > *:nth-child(4) { animation-delay: 0.28s; }
.sx-hero__inner > *:nth-child(5) { animation-delay: 0.36s; }
.sx-hero__inner > *:nth-child(6) { animation-delay: 0.44s; }

@keyframes sx-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-hero__inner > * { animation: none; }
}

.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 13px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--se-primary);
  border: 1.5px solid var(--se-primary-600);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.sx-eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--se-primary);
  animation: sx-pulse 2.4s ease-in-out infinite;
}

@keyframes sx-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.sx-hero__title {
  font-size: clamp(2.2rem, 4.4vw + 0.5rem, 3.9rem);
  font-weight: 560;
  letter-spacing: -0.018em;
  line-height: 1.04;
  color: var(--se-ink);
  max-width: 18ch;
  margin: 0 auto 22px;
}

/* Accent word: cobalt ink with a soft hand-laid azure highlight swept
   beneath it — an editorial emphasis that reads warmer than a flat
   gradient fill. */
.sx-hero__title .sx-accent {
  position: relative;
  color: var(--se-primary);
  white-space: nowrap;
}

.sx-hero__title .sx-accent::after,
.sx-section__title .sx-accent::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.07em;
  height: 0.34em;
  background: linear-gradient(90deg, rgba(79, 134, 247, 0.28), rgba(79, 134, 247, 0.42));
  border-radius: 999px;
  z-index: -1;
  transform: rotate(-0.6deg);
}

/* Same cobalt + highlighter accent for emphasised words in section
   titles (e.g. "tre passi", "zero problemi" on the home page). Unlike
   the hero, a plain section has no stacking context, so `isolation`
   keeps the z-index:-1 highlight local and above the section background
   instead of disappearing behind the page. */
.sx-section__title .sx-accent {
  position: relative;
  isolation: isolate;
  color: var(--se-primary);
  white-space: nowrap;
}

.sx-hero__lede {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.2rem);
  line-height: 1.55;
  color: var(--se-text-secondary);
  max-width: 56ch;
  margin: 0 auto 32px;
}

.sx-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

/* "-gratis" landings: highlighted callout for the free Dossier Formativo
   bonus credits, sitting between the hero lede and the CTA. Cobalt-tinted
   panel with a "+N" chip, echoing the radioprotezione-gratis hero box. */
.sx-hero__bonus {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 56ch;
  margin: 0 auto 32px;
  padding: 16px 18px;
  text-align: left;
  background: var(--se-primary-50);
  border: 1.5px solid var(--se-primary);
  border-radius: 14px;
}

.sx-hero__bonus-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--se-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.sx-hero__bonus-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--se-text);
}

.sx-hero__bonus-text strong {
  color: var(--se-primary);
  font-weight: 700;
}

.sx-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 24px;
  font-size: 16px;
  color: #000;
}

.sx-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sx-hero__trust-item::before {
  content: "✓";
  color: var(--se-primary);
  font-weight: 700;
  font-size: 17px;
}

/* ---- Section headings ---- */

.sx-section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

/* Small uppercase kicker that sits above a section title — the
   editorial index line. Optional; pages opt in via markup. */
.sx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--se-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--se-primary);
  margin: 0 0 16px;
}

.sx-kicker::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--se-primary);
  opacity: 0.6;
}

.sx-section__head--left {
  text-align: left;
  margin-left: 0;
}

.sx-section__head--left .sx-kicker {
  justify-content: flex-start;
}

.sx-section__title {
  font-size: clamp(1.7rem, 1.9vw + 1rem, 2.5rem);
  font-weight: 580;
  letter-spacing: -0.012em;
  line-height: 1.12;
  color: var(--se-ink);
  margin: 0 0 14px;
}

.sx-section__lede {
  font-size: 1.06rem;
  color: var(--se-text-secondary);
  line-height: 1.62;
  margin: 0;
}

/* ---- Feature grid (3-up benefits) ---- */

.sx-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 720px) {
  .sx-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sx-feature {
  position: relative;
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  padding: 30px 26px;
  box-shadow: var(--se-shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* Hairline accent that wipes across the top edge on hover. */
.sx-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--se-primary), var(--se-azure));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sx-feature:hover {
  transform: translateY(-5px);
  border-color: var(--se-primary-100);
  box-shadow: var(--se-shadow-card-hover);
}

.sx-feature:hover::before {
  transform: scaleX(1);
}

.sx-feature__icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #ffffff, var(--se-primary-50)) padding-box,
    linear-gradient(180deg, var(--se-primary-100), rgba(219, 230, 255, 0)) border-box;
  border: 1px solid transparent;
  color: var(--se-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  box-shadow: 0 6px 14px -8px rgba(20, 50, 138, 0.4);
}

.sx-feature__title {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--se-ink);
  margin: 0 0 8px;
}

/* Editorial variant (Chi siamo "Cosa ci guida"): flat cards with a plain
   line icon — no gradients, no card shadow, no accent rule. On hover the
   card just lifts a touch. */
.sx-feature--editorial {
  box-shadow: none;
}

.sx-feature--editorial::before {
  display: none;
}

.sx-feature--editorial:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: var(--se-border);
}

.sx-feature--editorial .sx-feature__icon {
  width: auto;
  height: auto;
  margin-bottom: 16px;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--se-primary);
}

.sx-feature--editorial .sx-feature__icon svg {
  width: 30px;
  height: 30px;
}

.sx-feature--editorial .sx-feature__title {
  font-family: var(--se-font-display);
  font-size: 1.32rem;
  font-weight: 560;
  letter-spacing: -0.014em;
}

.sx-feature__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--se-text-secondary);
  margin: 0;
}

.sx-feature__body strong {
  color: var(--se-text);
}

/* Eyebrow + text link variant (used by the home "solution" cards). */
.sx-feature__eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--se-primary);
  margin: 0 0 10px;
}

.sx-feature__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--se-primary);
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.sx-feature__link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.sx-feature:hover .sx-feature__link {
  color: var(--se-primary-600);
}

.sx-feature:hover .sx-feature__link::after {
  transform: translateX(3px);
}

/* Numbered index in the corner of a feature card (opt-in via markup). */
.sx-feature__index {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--se-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--se-border-strong);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 0.3s ease;
}

.sx-feature:hover .sx-feature__index {
  color: var(--se-primary-100);
}

/* ---- Intro prose (Chi siamo lead copy) ---- */

.sx-prose {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

/* Flush variant — full-width, left-aligned (used inside a split layout
   next to an image rather than as a standalone centred block). */
.sx-prose--flush {
  max-width: none;
  margin: 0;
  text-align: left;
}

/* ---- Split: image beside text (Chi siamo intro) ---- */

.sx-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

@media (min-width: 860px) {
  .sx-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.sx-split__media {
  border-radius: var(--se-radius-lg);
  overflow: hidden;
  border: 1px solid var(--se-border);
  box-shadow: var(--se-shadow-card);
}

.sx-split__media img {
  display: block;
  width: 100%;
  height: auto;
}

.sx-prose p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #000000;
  margin: 0 0 20px;
}

.sx-prose p:last-child {
  margin-bottom: 0;
}

.sx-prose strong {
  color: #000000;
  font-weight: 700;
}

/* ---- Team grid (responsabili scientifici on Chi siamo) ---- */

.sx-team {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 28px;
  row-gap: 38px;
}

/* Cards keep a fixed track width (2 / 3 / 4 per row) so an incomplete
   last row stays centred rather than stretching or hugging the left. */
.sx-team__card {
  flex: 0 1 calc((100% - 28px) / 2);
  max-width: calc((100% - 28px) / 2);
}

@media (min-width: 600px) {
  .sx-team__card {
    flex-basis: calc((100% - 56px) / 3);
    max-width: calc((100% - 56px) / 3);
  }
}

@media (min-width: 900px) {
  .sx-team__card {
    flex-basis: calc((100% - 84px) / 4);
    max-width: calc((100% - 84px) / 4);
  }
}

.sx-team__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  padding: 26px 18px;
  box-shadow: var(--se-shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.sx-team__card:hover {
  transform: translateY(-5px);
  border-color: var(--se-primary-100);
  box-shadow: var(--se-shadow-card-hover);
}

.sx-team__photo {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--se-surface-2);
  border: 1px solid var(--se-border);
}

.sx-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sx-team__photo--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--se-font-display);
  font-size: 2rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--se-primary);
  background: linear-gradient(180deg, #ffffff, var(--se-primary-50));
}

.sx-team__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--se-ink);
  margin: 0;
}

/* ---- Stat bar (credibility numbers under the hero) ---- */

.sx-statbar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--se-border);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  overflow: hidden;
  box-shadow: var(--se-shadow-card);
  max-width: 1180px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .sx-statbar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sx-statbar__item {
  background: var(--se-surface);
  padding: 26px 22px;
  text-align: center;
}

.sx-statbar__num {
  font-family: var(--se-font-display);
  font-size: clamp(1.6rem, 1vw + 1.2rem, 2.1rem);
  font-weight: 560;
  letter-spacing: -0.02em;
  color: var(--se-ink);
  line-height: 1;
  margin: 0 0 6px;
}

.sx-statbar__num .sx-statbar__sup {
  color: var(--se-primary);
}

.sx-statbar__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--se-text-tertiary);
  margin: 0;
  line-height: 1.4;
}

/* ---- Numbered process steps ---- */

/* Image placeholder below the "tre passi" heading — a neutral panel to
   reserve space for artwork to be supplied later. */
.sx-img-placeholder {
  max-width: 820px;
  margin: 0 auto 40px;
  aspect-ratio: 16 / 7;
  border-radius: var(--se-radius-lg);
  border: 1px solid var(--se-border);
  background: var(--se-surface-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sx-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stacked vertically (not a 3-up grid) so the "tre passi" read as a
   sequence and stand apart from the card grid above them. */
.sx-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: sx-step;
  max-width: 620px;
  margin: 0 auto;
}

.sx-step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  box-shadow: var(--se-shadow-card);
  counter-increment: sx-step;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

/* Match the "Cosa ci guida" cards on Chi siamo (.sx-feature--editorial):
   the card just lifts a touch on hover, with no shadow growth and the
   border staying neutral. */
.sx-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--se-shadow-card);
  border-color: var(--se-border);
}

.sx-step::before {
  content: counter(sx-step, decimal-leading-zero);
  display: inline-flex;
  align-items: baseline;
  font-family: var(--se-font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--se-primary);
  letter-spacing: 0.02em;
  padding: 5px 12px;
  border: 1px solid var(--se-primary-100);
  border-radius: 999px;
  background: var(--se-primary-50);
  margin-bottom: 16px;
}

/* Vertical connector spanning the gap between stacked steps, so they
   read as a top-to-bottom sequence. */
.sx-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  width: 1.5px;
  height: 28px;
  background: var(--se-primary-100);
  z-index: 1;
}

.sx-step__title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--se-ink);
  margin: 0 0 8px;
}

.sx-step__body {
  font-size: 14.8px;
  line-height: 1.6;
  color: var(--se-text-secondary);
  margin: 0;
}

.sx-step__body strong {
  color: var(--se-text);
}

/* ---- Trust marquee (scrolling credential strip) ---- */

.sx-marquee {
  border-block: 1px solid var(--se-border);
  background: var(--se-surface-2);
  overflow: hidden;
  padding: 18px 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.sx-marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: sx-marquee 34s linear infinite;
}

.sx-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--se-text-secondary);
  white-space: nowrap;
}

.sx-marquee__item::before {
  content: "✦";
  color: var(--se-primary);
  font-size: 12px;
}

@keyframes sx-marquee {
  to { transform: translateX(calc(-50% - 28px)); }
}

@media (prefers-reduced-motion: reduce) {
  .sx-marquee__track { animation: none; }
}

/* ---- Two-column split (image + text) ---- */

.sx-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 880px) {
  .sx-split {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
  .sx-split--reverse > :first-child {
    order: 2;
  }
}

.sx-split__media {
  border-radius: 20px;
  overflow: hidden;
  background: var(--se-surface-3);
  box-shadow: var(--se-shadow-card);
  aspect-ratio: 5 / 4;
}

.sx-split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sx-split__body h3 {
  font-size: clamp(1.4rem, 1.2vw + 0.9rem, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--se-text);
  margin: 0 0 14px;
  line-height: 1.2;
}

.sx-split__body p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--se-text-secondary);
  margin: 0 0 18px;
}

.sx-split__body strong {
  color: var(--se-text);
}

/* ---- Pricing cards ---- */

.sx-pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 720px) {
  .sx-pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sx-price {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-lg);
  padding: 34px 30px;
  box-shadow: var(--se-shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.sx-price:hover {
  transform: translateY(-4px);
  box-shadow: var(--se-shadow-card-hover);
}

/* Featured tier: a light, flat highlight in line with the rest of the
   site — a soft cool tint and a primary hairline instead of the old dark
   gradient + heavy drop shadow. */
.sx-price--featured {
  border: 1.5px solid var(--se-primary);
  background: var(--se-primary-50);
  box-shadow: none;
  transform: translateY(-6px);
}

.sx-price--featured:hover {
  transform: translateY(-9px);
  box-shadow: none;
}

.sx-price--featured .sx-price__name {
  color: var(--se-primary);
}

/* Flat primary CTA on the featured tier — no shadow, no gradient. */
.sx-price--featured .sx-btn--primary {
  box-shadow: none;
}

.sx-price--featured .sx-btn--primary:hover {
  box-shadow: none;
}

.sx-price__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--se-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.sx-price__name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--se-text-tertiary);
  margin: 0 0 8px;
}

.sx-price__credits {
  font-family: var(--se-font-display);
  font-size: 2.7rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--se-ink);
  margin: 0 0 4px;
}

.sx-price__credits small {
  font-family: var(--se-font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--se-text-secondary);
  letter-spacing: 0;
}

/* "-gratis" landings: the free Dossier Formativo bonus, shown right under
   the package's credit count as a cobalt pill. */
.sx-price__bonus {
  display: inline-flex;
  align-items: center;
  margin: 0 0 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--se-primary-50);
  color: var(--se-primary);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.sx-price__amount {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--se-primary);
  margin: 12px 0 2px;
  letter-spacing: -0.012em;
}

.sx-price__per {
  font-size: 13px;
  color: var(--se-text-tertiary);
  margin: 0 0 18px;
}

.sx-price__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--se-border);
  padding-top: 18px;
}

.sx-price__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--se-text);
  line-height: 1.5;
}

.sx-price__features li::before {
  content: "✓";
  color: var(--se-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.sx-price .sx-btn {
  margin-top: auto;
  width: 100%;
}

/* ---- Article list (info-ecm) ---- */

/* Topic group: a fancy display-font heading above an articles grid.
   Used on /info-ecm to break the listing into sections by subject. */
.sx-topic + .sx-topic {
  margin-top: 76px;
}

/* A little extra breathing room above the first card group and below the
   last one (sx-topic is used only on /info-ecm). */
.sx-topic:first-child {
  margin-top: 8px;
}

.sx-topic:last-child {
  margin-bottom: 16px;
}

.sx-topic__title {
  font-family: var(--se-font-display);
  font-optical-sizing: auto;
  font-weight: 580;
  font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem);
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--se-ink);
  margin: 0 0 28px;
}

/* More space between the cards on /info-ecm without touching the shared
   .sx-articles grid used elsewhere (e.g. the Corsi FAD listing). */
.sx-topic .sx-articles {
  gap: 28px;
}

.sx-articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 640px) {
  .sx-articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .sx-articles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sx-article {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--se-shadow-card);
}

/* Match the Pacchetti ECM cards: a gentle lift on hover, with no
   border-color or shadow change. */
.sx-article:hover {
  transform: translateY(-4px);
}

/* Cover image: bleeds to the card edges at the top (cancels the card's
   24px padding) and crops to a consistent 16:9 banner. */
.sx-article__media {
  position: relative;
  display: block;
  margin: -24px -24px 4px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  aspect-ratio: 32 / 9;
  background: var(--se-surface-secondary, #f1efe8);
  /* Force the media into its own paint/clipping context so the scaled
     image stays inside the rounded corners on hover. Without this, an
     ancestor transform (the card's translateY) can break overflow
     clipping in WebKit/Chromium and the image spills past the radius. */
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  isolation: isolate;
}

.sx-article__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sx-article:hover .sx-article__media img {
  transform: scale(1.05);
}

.sx-article__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--se-primary);
}

/* Course listing: the blue "X crediti ECM" line is the key fact — bump it
   up a touch so it reads clearly. Scoped to the course cards only. */
.sx-articles--course .sx-article__category {
  font-size: 13px;
}

/* "Iscrizioni aperte" pill on open courses: reuse the brand eyebrow,
   shown inline below the course title. */
.sx-article__badge {
  align-self: flex-start;
  margin-bottom: 0;
  padding: 5px 12px 5px 10px;
}

.sx-article__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.35;
  color: var(--se-text);
  margin: 0;
}

.sx-article__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--se-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sx-article__more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.sx-article:hover .sx-article__more::after {
  transform: translateX(3px);
}

/* Course listing: roomier gap between cards and a shorter, cropped cover
   compared with the Info ECM article cards (see __media override below). */
.sx-articles--course {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px;
}

/* flex-grow 0 so a short final row keeps the cards at their normal width
   and centers them instead of stretching to fill the row. Basis mirrors
   the default sx-articles breakpoints: 1 / 2 / 3 columns. */
.sx-articles--course .sx-article {
  flex: 0 1 100%;
}

@media (min-width: 640px) {
  .sx-articles--course .sx-article {
    flex-basis: calc((100% - 44px) / 2);
  }
}

@media (min-width: 980px) {
  .sx-articles--course .sx-article {
    flex-basis: calc((100% - 88px) / 3);
  }
}

/* Cover height reduced ~20% (58.5 → 46.8) for a shorter, more cropped
   banner on the course cards. */
.sx-articles--course .sx-article__media {
  aspect-ratio: 128 / 46.8;
}

/* Home offering row — a horizontally scrollable carousel. On wide screens
   the cards grow to share the row; once they no longer fit (narrow
   viewports, or simply too many cards) the row scrolls sideways with
   scroll-snap instead of wrapping. Overrides the wrapping flex layout
   inherited from .sx-articles--course. */
.sx-articles--carousel {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Breathing room so the cards' shadow and hover lift aren't clipped by
     the scroll container, plus space for the scrollbar below. */
  padding: 8px 2px 16px;
}

/* grow 1 so the cards share the row when there's spare width; shrink 0 with
   a 260px basis so they keep their size and overflow into a scroll once the
   row is too narrow to hold them. */
.sx-articles--carousel .sx-article {
  flex: 1 0 260px;
  scroll-snap-align: start;
}

/* Package card placeholder media — a solid brand panel in lieu of a
   course cover, keeping the four cards the same height in their row. */
.sx-article__media--package {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--se-primary), var(--se-azure));
  color: #ffffff;
  font-family: var(--se-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

/* Course-listing extras: cards reuse .sx-article but add a short blurb
   and a price/CTA footer row. */
.sx-article__desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--se-text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sx-article__footer {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sx-article__price {
  font-family: var(--se-font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--se-ink);
}

.sx-article__footer .sx-article__more {
  margin-top: 0;
  padding-top: 0;
}

/* ---- CTA section (full-bleed gradient) ---- */

.sx-cta {
  background: var(--se-primary);
  color: #ffffff;
  padding: 80px 24px;
  text-align: center;
  border-radius: var(--se-radius-xl);
  max-width: 1180px;
  margin: 64px auto;
  position: relative;
  overflow: hidden;
}

/* Faint clinical "+" lattice — a quiet nod to healthcare without a
   literal cross icon. */
.sx-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.14) 0%, transparent 45%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><g fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1.4' stroke-linecap='round'><path d='M30 22v16M22 30h16'/></g></svg>");
  background-size: auto, 60px 60px;
  pointer-events: none;
}

.sx-cta__title {
  position: relative;
  font-size: clamp(1.8rem, 2.2vw + 1rem, 2.7rem);
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.12;
  margin: 0 0 14px;
  color: #ffffff;
}

.sx-cta__lede {
  position: relative;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  max-width: 52ch;
  margin: 0 auto 30px;
}

.sx-cta .sx-btn {
  position: relative;
}

.sx-cta .sx-btn--primary {
  background: #ffffff;
  color: var(--se-primary-700);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5);
}

.sx-cta .sx-btn--primary:hover {
  background: var(--se-surface-2);
  color: var(--se-primary-700);
}

/* ---- Promo card (light CTA) ---- */

/* A light, bordered call-to-action card — the calmer counterpart to the
   full-bleed gradient .sx-cta. Dark serif title, an inline row of
   checkmarked points, and a single flat primary button. */
.sx-promo {
  max-width: 1180px;
  margin: 24px auto 64px;
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: var(--se-radius-xl);
  padding: 56px 24px;
  text-align: center;
}

.sx-promo__title {
  font-family: var(--se-font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.3rem);
  font-weight: 580;
  letter-spacing: -0.012em;
  line-height: 1.12;
  color: var(--se-ink);
  margin: 0 0 22px;
}

.sx-promo__points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  padding: 0;
  margin: 0 0 30px;
}

.sx-promo__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--se-text);
}

.sx-promo__points li::before {
  content: "✓";
  color: var(--se-primary);
  font-weight: 700;
}

/* Flat primary button — no shadow, no gradient. */
.sx-promo .sx-btn--primary {
  box-shadow: none;
}

.sx-promo .sx-btn--primary:hover {
  box-shadow: none;
}

/* ---- Contact section ---- */

.sx-contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 880px) {
  .sx-contact {
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
  }
}

/* Each contact channel is its own self-contained section/panel. */
.sx-contact__panel {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--se-shadow-card);
}

.sx-contact__panel .sx-contact__icon {
  display: flex;
  margin-bottom: 16px;
}

/* Inside a panel the form is borderless — the panel is the frame. */
.sx-contact__panel .sx-form {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-top: 18px;
}

.sx-btn--whatsapp {
  background: #25d366;
  color: #ffffff;
}

.sx-btn--whatsapp:hover {
  background: #1ebe5d;
  color: #ffffff;
  transform: translateY(-2px);
}

.sx-contact__icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--se-primary-50);
  color: var(--se-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sx-contact__icon svg {
  display: block;
}

/* Official WhatsApp brand colour for the contact glyph. */
.sx-contact__icon--whatsapp {
  background: #25d366;
  color: #ffffff;
}

/* Email glyph: solid brand blue to match the WhatsApp badge. */
.sx-contact__icon--email {
  background: var(--se-primary);
  color: #ffffff;
}

.sx-contact__panel-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--se-text);
  margin: 0 0 6px;
}

.sx-contact__panel-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--se-text-secondary);
  margin: 0 0 20px;
}

.sx-contact__panel-text strong {
  color: var(--se-text);
  font-weight: 700;
}

.sx-form {
  background: var(--se-surface);
  border: 1px solid var(--se-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--se-shadow-card);
}

.sx-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (min-width: 600px) {
  .sx-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.sx-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--se-text);
  margin-bottom: 6px;
}

.sx-form input,
.sx-form textarea,
.sx-form select {
  width: 100%;
  border: 1px solid var(--se-border-strong);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: var(--se-font);
  font-size: 15px;
  color: var(--se-text);
  background: var(--se-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sx-form input:focus,
.sx-form textarea:focus,
.sx-form select:focus {
  outline: none;
  border-color: var(--se-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sx-form textarea {
  min-height: 140px;
  resize: vertical;
}

.sx-form .sx-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 15.5px;
}

/* ---- FAQ ---- */

.sx-faq {
  max-width: 820px;
  margin: 0 auto;
  border: 1px solid var(--se-border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--se-surface);
  box-shadow: var(--se-shadow-card);
}

.sx-faq > details + details {
  border-top: 1px solid var(--se-border);
}

.sx-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--se-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: background 0.15s ease;
}

.sx-faq summary::-webkit-details-marker { display: none; }

.sx-faq summary:hover {
  background: var(--se-surface-2);
}

.sx-faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--se-primary);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.sx-faq details[open] summary::after {
  transform: rotate(45deg);
}

.sx-faq__answer {
  padding: 0 22px 20px;
  color: var(--se-text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.sx-faq__answer p {
  margin: 0 0 10px;
}

.sx-faq__answer strong {
  color: var(--se-text);
}

/* ---- Footer ---- */

.sx-footer {
  position: relative;
  background: var(--se-surface-2);
  color: var(--se-text);
  padding: 51px 0 0;
  border-top: 1px solid var(--se-border);
}

.sx-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 38px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
}

@media (min-width: 880px) {
  .sx-footer__inner {
    grid-template-columns: 1fr 3fr;
    gap: 96px;
  }
}

.sx-footer .sx-brand__name {
  color: var(--se-ink);
  font-size: 1.25rem;
}

.sx-footer .sx-brand__name strong {
  color: var(--se-primary);
}

.sx-footer__legal {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--se-text-secondary);
  margin: 14px 0 0;
  max-width: 38ch;
}

.sx-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-areas:
    "naviga account"
    "naviga legale";
  align-items: start;
  gap: 26px 20px;
}

.sx-footer__cols > .sx-footer__col:nth-child(1) {
  grid-area: naviga;
}

.sx-footer__cols > .sx-footer__col:nth-child(2) {
  grid-area: account;
}

.sx-footer__cols > .sx-footer__col:nth-child(3) {
  grid-area: legale;
}

@media (min-width: 720px) {
  .sx-footer__cols {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas: none;
  }

  .sx-footer__cols > .sx-footer__col:nth-child(1),
  .sx-footer__cols > .sx-footer__col:nth-child(2),
  .sx-footer__cols > .sx-footer__col:nth-child(3) {
    grid-area: auto;
  }
}

.sx-footer__col h3 {
  font-family: var(--se-font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--se-text);
  margin: 0 0 10px;
}

.sx-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sx-footer__col a {
  color: var(--se-text-secondary);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.sx-footer__col a:hover {
  color: var(--se-primary);
}

.sx-footer__col p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--se-text-secondary);
  margin: 0;
}

.sx-footer__col strong {
  color: var(--se-text);
}

.sx-footer__bottom {
  border-top: 1px solid var(--se-border);
  padding: 16px;
  text-align: center;
}

.sx-footer__bottom p {
  font-size: 13px;
  color: var(--se-text-secondary);
  margin: 0;
}

/* ============================================================
   14. Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
