/* ===========================
   Site overrides on top of Bootstrap 5.3
   =========================== */

/* ---------------------------------------------------------------------------
   Design tokens & theming
   ---------------------------------------------------------------------------
   Two layers:

   1. Semantic tokens (--color-*) — what each color is used FOR. These are the
      only values that change between themes; everything in the stylesheet
      should consume these instead of hardcoded literals.

   2. Brand aliases (--helea-*) — kept for backward compatibility with the
      existing stylesheet. They map onto the semantic tokens so older rules
      still react to theme changes for free.

   Theme switching:
   - Default :root values define the DARK theme (current production look).
   - [data-theme="light"] on <html> overrides them for the LIGHT theme.
   - When the user has not made an explicit choice (data-theme="auto"),
     prefers-color-scheme: light drives the same overrides via a media query.
   --------------------------------------------------------------------------- */

:root {
  /* Brand */
  --color-accent: #e63946;
  --color-accent-hover: #c92c39;

  /* Surfaces & text — DARK theme (default) */
  --color-surface: #06334a;
  --color-surface-elevated: rgba(255, 255, 255, 0.04);
  --color-surface-elevated-strong: rgba(255, 255, 255, 0.08);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-text-faint: rgba(255, 255, 255, 0.5);
  --color-border: rgba(255, 255, 255, 0.18);
  --color-border-soft: rgba(255, 255, 255, 0.1);
  --color-shadow: rgba(0, 0, 0, 0.25);
  --color-grid-line: rgba(255, 255, 255, 0.04);

  /* Backward-compat aliases — DO NOT add new usages. */
  --helea-bg: var(--color-surface);
  --helea-accent: var(--color-accent);
  --helea-accent-hover: var(--color-accent-hover);
  --helea-text: var(--color-text);
  --helea-muted: var(--color-text-muted);
  --helea-faint: var(--color-text-faint);
  --helea-border: var(--color-border);
}

/* LIGHT theme — explicit user choice. */
[data-theme="light"] {
  --color-surface: #f6f8fa;
  --color-surface-elevated: rgba(6, 51, 74, 0.04);
  --color-surface-elevated-strong: rgba(6, 51, 74, 0.08);
  --color-text: #06334a;
  --color-text-muted: rgba(6, 51, 74, 0.7);
  --color-text-faint: rgba(6, 51, 74, 0.5);
  --color-border: rgba(6, 51, 74, 0.18);
  --color-border-soft: rgba(6, 51, 74, 0.1);
  --color-shadow: rgba(6, 51, 74, 0.15);
  /* Lower alpha than the dark theme's grid: dark-on-light grids read
     perceptually heavier than light-on-dark at the same alpha. */
  --color-grid-line: rgba(6, 51, 74, 0.03);
}

/* AUTO mode — follow the OS when no manual choice has been persisted. */
@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --color-surface: #f6f8fa;
    --color-surface-elevated: rgba(6, 51, 74, 0.04);
    --color-surface-elevated-strong: rgba(6, 51, 74, 0.08);
    --color-text: #06334a;
    --color-text-muted: rgba(6, 51, 74, 0.7);
    --color-text-faint: rgba(6, 51, 74, 0.5);
    --color-border: rgba(6, 51, 74, 0.18);
    --color-border-soft: rgba(6, 51, 74, 0.1);
    --color-shadow: rgba(6, 51, 74, 0.15);
    --color-grid-line: rgba(6, 51, 74, 0.03);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Open Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--helea-text);
  background-color: var(--helea-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family:
    "Montserrat",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   Navbar
   ===========================
   The navbar's surface, text, border and dropdown shadow all read from
   the semantic theme tokens, so flipping [data-theme] on <html> retints
   the header for free. Bootstrap's data-bs-theme on the <nav> is flipped
   in tandem by theme.js so Bootstrap utilities (toggler icon, etc.) match.

   Per-breakpoint sizing was three almost-identical media queries; they
   are now collapsed into a single rule that reads two CSS custom
   properties (--nav-link-font-size, --nav-link-padding-x) which the
   breakpoints override. */
.site-navbar {
  --nav-link-font-size: 1rem;
  --nav-link-padding-x: 0.5rem;
  --nav-link-gap: 0.5rem;

  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
}

/* Theme-aware logo swap. Both <img>s are in the DOM; we toggle visibility
   based on the resolved theme so there's no JS reload and no flash.
   Default (no data-theme attr yet, e.g. JS disabled or pre-paint) shows
   the dark-theme logo, since the default theme is dark. */
.site-navbar .navbar-brand .site-logo {
  display: none;
}
.site-navbar .navbar-brand .site-logo-dark {
  display: block;
}

/* In light mode (explicit or auto-resolved), swap. */
[data-theme="light"] .site-navbar .navbar-brand .site-logo-dark,
[data-theme="auto"][data-resolved-theme="light"]
  .site-navbar
  .navbar-brand
  .site-logo-dark {
  display: none;
}
[data-theme="light"] .site-navbar .navbar-brand .site-logo-light,
[data-theme="auto"][data-resolved-theme="light"]
  .site-navbar
  .navbar-brand
  .site-logo-light {
  display: block;
}

.site-navbar .nav-link {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: var(--nav-link-font-size);
  padding-left: var(--nav-link-padding-x);
  padding-right: var(--nav-link-padding-x);
  color: var(--color-text-muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus,
.site-navbar .nav-item.show > .nav-link {
  color: var(--color-text);
}

/* Dropdown panels keep their light surface (set via data-bs-theme="light"
   in the markup) so they read cleanly against either header theme. */
.site-navbar .dropdown-menu {
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 24px var(--color-shadow);
  padding: 0.5rem 0;
}

.site-navbar .dropdown-item {
  padding: 0.6rem 1.25rem;
  font-weight: 500;
}

/* Breakpoint tweaks — only the custom properties change.
   The navbar collapses to a hamburger below 1200px (navbar-expand-xl), so
   there's no shrink rule for the 992–1199px range. From 1200–1399px we
   tighten the links so the full menu fits comfortably on smaller laptops. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-navbar {
    --nav-link-font-size: 0.9rem;
    --nav-link-padding-x: 0.6rem;
    --nav-link-gap: 0.25rem;
  }
}

/* !important needed to win against Bootstrap's .gap-xl-2 utility on the
   <ul> at the xl breakpoint (the markup keeps that class for safety). */
.site-navbar .navbar-nav {
  gap: var(--nav-link-gap) !important;
}

/* ---------------------------------------------------------------------------
   Theme toggle button (sun/moon)
   ---------------------------------------------------------------------------
   Lives inside .site-navbar. Renders both icons stacked; the inactive one
   is hidden via the theme attribute on <html>, so the button needs no JS
   to update its own icon — it just dispatches the theme change. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: 0.5rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--color-text);
  outline: none;
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Show the sun in dark mode (click to go light); hide the moon. */
.theme-toggle .theme-toggle-icon-moon {
  display: none;
}
.theme-toggle .theme-toggle-icon-sun {
  display: block;
}

/* In light mode (explicit or resolved-auto), swap the icons. */
[data-theme="light"] .theme-toggle .theme-toggle-icon-sun,
[data-theme="auto"][data-resolved-theme="light"]
  .theme-toggle
  .theme-toggle-icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .theme-toggle-icon-moon,
[data-theme="auto"][data-resolved-theme="light"]
  .theme-toggle
  .theme-toggle-icon-moon {
  display: block;
}

/* Labels are hidden on desktop (icon-only button). Mobile menu rules below
   reveal whichever label matches the *destination* mode (dark → "Tema
   chiaro", light → "Tema scuro"), mirroring the icon swap. */
.theme-toggle .theme-toggle-label {
  display: none;
}

/* ---------------------------------------------------------------------------
   Theme toggle inside the collapsed mobile menu (below xl)
   ---------------------------------------------------------------------------
   The button is the same DOM node as the desktop circle, just restyled to
   read as a menu row: full-width, left-aligned, icon + label horizontal,
   matching the surrounding .nav-link rhythm. */
@media (max-width: 1199.98px) {
  .site-navbar .theme-toggle {
    width: 100%;
    height: auto;
    margin-left: 0;
    padding: 0.5rem 0;
    justify-content: flex-start;
    gap: 0.65rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--color-text-muted);
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 600;
    font-size: 1rem;
  }

  .site-navbar .theme-toggle:hover,
  .site-navbar .theme-toggle:focus-visible {
    background: transparent;
    border: 0;
    color: var(--color-text);
  }

  /* Reveal the label that matches the destination mode. */
  [data-theme="light"] .theme-toggle .theme-toggle-label-dark,
  [data-theme="auto"][data-resolved-theme="light"]
    .theme-toggle
    .theme-toggle-label-dark,
  .theme-toggle .theme-toggle-label-light {
    display: inline;
  }

  /* Hide the other label (the inverse of the rule above). */
  [data-theme="light"] .theme-toggle .theme-toggle-label-light,
  [data-theme="auto"][data-resolved-theme="light"]
    .theme-toggle
    .theme-toggle-label-light {
    display: none;
  }
}

/* ===========================
   Main
   =========================== */
.site-main {
  flex: 1;
  padding: 2rem 0;
}

.site-main h1 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--color-border-soft);
  padding: 4rem 0 1.5rem;
  margin-top: auto;
  color: var(--helea-muted);
}

.site-footer a {
  color: var(--helea-muted);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--helea-text);
  text-decoration: none;
}

.footer-top {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--helea-border);
  margin-bottom: 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

.footer-logo {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--helea-text);
  letter-spacing: 0.02em;
}

.footer-tagline {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--helea-accent);
}

.footer-brand-text {
  color: var(--helea-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 0.4rem;
}

.footer-col-title {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-text);
  margin-bottom: 1rem;
}

.footer-nav li {
  margin-bottom: 0.55rem;
}

.footer-nav a {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--helea-muted);
}

.footer-nav a:hover {
  color: var(--helea-accent);
}

/* Partners strip */
.footer-partners {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--helea-border);
}

.footer-partners-header {
  margin-bottom: 1.75rem;
}

.footer-section-title {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-text);
  margin-bottom: 0.45rem;
}

.footer-section-desc {
  color: var(--helea-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 820px;
}

.footer-partners-grid {
  margin-bottom: 1.75rem;
}

.footer-partners-grid:last-child {
  margin-bottom: 0;
}

.footer-partners-label {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--helea-muted);
  margin-bottom: 0.9rem;
}

.footer-partner-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.6rem;
  height: 100%;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.footer-partner-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: rgba(230, 57, 70, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.footer-partner-icon {
  width: 38px;
  height: 38px;
  border-radius: 0.45rem;
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  color: var(--helea-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.footer-partner-card:hover .footer-partner-icon {
  background-color: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
}

.footer-partner-name {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--helea-text);
  margin-bottom: 0.2rem;
}

.footer-partner-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--helea-muted);
  line-height: 1.55;
}

.footer-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-partner-logo {
  padding: 0.5rem 0.95rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--helea-text);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.footer-partner-logo:hover {
  background-color: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
}

.footer-partner-logo a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
}

.footer-partner-logo a:hover {
  color: inherit;
}

/* Footer bottom */
.footer-bottom {
  padding-top: 2rem;
}

.footer-legal {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--helea-muted);
}

.footer-legal strong {
  color: var(--helea-text);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-start;
}

@media (min-width: 992px) {
  .footer-bottom-links {
    justify-content: flex-end;
  }
}

.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--helea-muted);
}

.footer-bottom-links a:hover {
  color: var(--helea-accent);
}

/* Footer credentials / patrocini — white plates for institutional logos */
.footer-credentials {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 0.75rem;
  row-gap: 0.75rem;
}

.footer-credential {
  background-color: #ffffff;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  height: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: inherit;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.footer-credential:hover,
.footer-credential:focus-visible {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.footer-credential:focus-visible {
  outline: 2px solid var(--helea-accent);
  outline-offset: 3px;
}

.footer-credential img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .footer-credentials {
    column-gap: 0.5rem;
    row-gap: 0.5rem;
  }
  .footer-credential {
    height: 60px;
    padding: 0.4rem 0.7rem;
  }
  .footer-credential img {
    max-width: 150px;
  }
}

.footer-copy {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--helea-border);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--helea-faint);
}

@media (max-width: 767.98px) {
  .site-footer {
    padding-top: 3rem;
  }
  .footer-top {
    padding-bottom: 1.75rem;
  }
  .footer-partners {
    padding: 1.75rem 0;
  }
}

/* ===========================
   AI Governance Legale page
   =========================== */

/* The hero reuses .hero / .hero-title / .hero-actions and the
   .visione-text / .visione-quote / .visione-portrait suite from
   index.html. Only legale-specific tweaks below. */
.legale-hero-guide {
  color: var(--helea-accent);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* Replace the portrait caption (name + role) with badges + mini-cards.
   `figcaption.legale-hero-meta` is intentionally more specific than the
   shared `.visione-portrait-caption` rule (which is declared later in
   the file and would otherwise override the padding here). */
figcaption.legale-hero-meta {
  text-align: left;
  /* Equal vertical breathing room above the badges row, between the two
     rows, and below the mini-cards row. */
  padding: 0.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legale-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.legale-hero-badge {
  padding: 0.32rem 0.75rem;
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--helea-text);
}

.legale-hero-mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.legale-hero-mini-card {
  padding: 0.65rem 0.7rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.5rem;
  text-align: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--helea-text);
}

@media (max-width: 575.98px) {
  .legale-hero-mini-cards {
    grid-template-columns: 1fr;
  }
}

/* Posizionamento */
.posizionamento-section {
  background-color: var(--helea-bg);
}

.posizionamento-section .section-title,
.percorsi-section .section-title,
.quando-section .section-title,
.macroaree-section .section-title,
.metodo-legale-section .section-title,
.team-section .section-title,
.profilo-section .section-title {
  color: var(--helea-text);
}

.pos-accent {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-left: 3px solid var(--helea-accent);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 1.75rem;
  position: sticky;
  top: 88px;
}

.pos-accent-label {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-accent);
  margin-bottom: 0.85rem;
}

.pos-accent-quote {
  font-style: italic;
  color: var(--helea-text);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.pos-accent-name {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--helea-muted);
}

.pos-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pos-tag {
  padding: 0.32rem 0.75rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--helea-text);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.pos-tag:hover {
  background-color: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.4);
  color: var(--helea-accent);
}

@media (max-width: 991.98px) {
  .pos-accent {
    position: static;
  }
}

/* Percorsi */
.percorsi-section {
  background-color: var(--helea-bg);
}

.percorso-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.85rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.percorso-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--helea-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.percorso-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.percorso-card:hover::before {
  transform: scaleX(1);
}

.percorso-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-accent);
  background-color: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.32);
  margin-bottom: 1rem;
}

.percorso-card h3 {
  color: var(--helea-text);
  font-size: 1.2rem;
}

.percorso-text {
  color: var(--helea-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.percorso-list {
  flex: 1;
  margin-bottom: 1.5rem;
  padding: 0;
}

.percorso-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-bottom: 1px solid var(--helea-border);
  font-size: 0.88rem;
  color: var(--helea-text);
  line-height: 1.55;
}

.percorso-list li:last-child {
  border-bottom: none;
}

.percorso-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--helea-accent);
  font-size: 0.85rem;
}

/* Quando */
.quando-section {
  background-color: var(--helea-bg);
}

.quando-col {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.85rem;
  padding: 2rem;
  height: 100%;
}

.quando-col-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--helea-text);
  letter-spacing: 0.02em;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--helea-border);
}

.quando-col-sub {
  color: var(--helea-muted);
  font-size: 0.88rem;
  font-style: italic;
  margin-bottom: 1.1rem;
}

.quando-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.2rem;
  color: var(--helea-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

.quando-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--helea-accent);
}

/* Macro aree */
.macroaree-section {
  background-color: var(--helea-bg);
}

.area-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 1.85rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.area-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: rgba(230, 57, 70, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.area-num {
  display: inline-block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--helea-accent);
  padding-bottom: 0.5rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--helea-border);
  width: 100%;
}

.area-card h3 {
  color: var(--helea-text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.area-desc {
  color: var(--helea-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Metodo legale */
.metodo-legale-section {
  background-color: var(--helea-bg);
}

.metodo-legale-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.metodo-legale-step {
  display: flex;
  gap: 1rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 1.3rem;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.metodo-legale-step:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.metodo-legale-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 0.55rem;
  background-color: rgba(230, 57, 70, 0.14);
  border: 1px solid rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.metodo-legale-tag {
  display: inline-block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-accent);
  margin-bottom: 0.45rem;
}

.metodo-legale-body h3 {
  color: var(--helea-text);
  font-size: 1rem;
}

.metodo-legale-body p {
  color: var(--helea-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.metodo-legale-note {
  padding: 1rem 1.2rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-left: 3px solid var(--helea-accent);
  border-radius: 0 0.55rem 0.55rem 0;
  color: var(--helea-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  font-style: italic;
}

/* Team */
.team-section {
  background-color: var(--helea-bg);
}

.team-note {
  background-color: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.32);
  border-radius: 0.85rem;
  padding: 1.5rem;
}

.team-note-label {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-accent);
  margin-bottom: 0.7rem;
}

.team-note p {
  color: var(--helea-text);
  font-size: 0.94rem;
  line-height: 1.65;
}

.team-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.team-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.team-card .context-card-icon {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.team-card:hover .context-card-icon {
  background-color: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
}

.team-card h3 {
  color: var(--helea-text);
  font-size: 1.1rem;
}

.team-card-text {
  color: var(--helea-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Profilo */
.profilo-section {
  background-color: var(--helea-bg);
}

.profilo-photo-wrap {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--helea-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.profilo-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.profilo-name-block {
  padding: 1rem 1.1rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.65rem;
}

.profilo-name {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--helea-text);
  margin-bottom: 0.2rem;
}

.profilo-role {
  display: block;
  font-size: 0.8rem;
  color: var(--helea-muted);
  line-height: 1.55;
}

.profilo-highlight {
  background-color: rgba(230, 57, 70, 0.08);
  border-left: 3px solid var(--helea-accent);
  border-radius: 0 0.55rem 0.55rem 0;
  padding: 0.95rem 1.15rem;
  margin: 0.5rem 0 1.1rem;
  color: var(--helea-text);
  font-size: 0.98rem;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .legale-hero-mini-cards {
    grid-template-columns: 1fr;
  }
  .percorso-card,
  .quando-col,
  .team-card,
  .area-card,
  .metodo-legale-step {
    padding: 1.4rem;
  }
}

/* ===========================
   Reusable accents & buttons
   =========================== */
.text-accent {
  color: var(--helea-accent);
}

.btn-helea-primary,
.btn-helea-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

.btn-helea-primary {
  background-color: var(--helea-accent);
  color: #ffffff;
}

.btn-helea-primary:hover,
.btn-helea-primary:focus {
  background-color: var(--helea-accent-hover);
  color: #ffffff;
}

.btn-helea-outline {
  background-color: transparent;
  color: var(--helea-text);
  border-color: var(--helea-border);
}

.btn-helea-outline:hover,
.btn-helea-outline:focus {
  background-color: var(--color-surface-elevated-strong);
  color: var(--helea-text);
  border-color: var(--helea-border);
}

/* Mixed-case white / ghost variants (used in the homepage hero) */
.btn-helea-light,
.btn-helea-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.1s ease;
}

.btn-helea-light {
  background-color: var(--helea-text);
  color: var(--helea-bg);
}

.btn-helea-light:hover,
.btn-helea-light:focus {
  /* Theme-agnostic hover: fade the whole button slightly instead of
     swapping to a hardcoded white background. Works for any theme. */
  opacity: 0.9;
}

.btn-helea-ghost {
  background-color: transparent;
  color: var(--helea-text);
  border-color: var(--helea-border);
}

.btn-helea-ghost:hover,
.btn-helea-ghost:focus {
  background-color: var(--color-surface-elevated-strong);
  color: var(--helea-text);
  border-color: var(--helea-border);
}

/* ===========================
   Hero
   =========================== */
.hero {
  /* Subtle grid background — line color is theme-aware via --color-grid-line. */
  background-image:
    linear-gradient(var(--color-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  padding: 6rem 0 5rem;
}

.hero-inner {
  max-width: 880px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  color: var(--helea-text);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--helea-accent);
  box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.18);
}

.hero-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(2.25rem, 4.2vw + 0.5rem, 3.5rem);
  line-height: 1.16;
  letter-spacing: -0.005em;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-subtitle {
  color: var(--helea-muted);
  font-size: 1.125rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-caption {
  color: var(--helea-faint);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
}

/* On phones the hero shouldn't crowd the screen edges. */
@media (max-width: 575.98px) {
  .hero {
    padding: 3rem 0 2.5rem;
    background-size: 32px 32px;
  }
  .hero-title br {
    display: none;
  }
  .btn-helea-primary,
  .btn-helea-outline,
  .btn-helea-light,
  .btn-helea-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* ===========================
   Hero: eyebrow label + framework diagram
   =========================== */
.hero-eyebrow {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--helea-accent);
}

.framework-card {
  padding: 2rem;
}

.framework-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--helea-muted);
  margin-bottom: 1.25rem;
}

.framework-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.framework-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.6rem;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.framework-step:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
}

.framework-step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--helea-text);
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  border-radius: 0.45rem;
}

.framework-step.is-accent .framework-step-num {
  background-color: var(--helea-accent);
  border-color: var(--helea-accent);
  color: #ffffff;
}

.framework-step-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.framework-step-label {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: var(--helea-text);
}

.framework-step-desc {
  color: var(--helea-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.framework-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--helea-border);
  background-color: var(--color-surface-elevated);
  color: var(--helea-accent);
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

@media (max-width: 575.98px) {
  .framework-card {
    padding: 1.25rem;
  }
  .framework-step {
    padding: 0.7rem 0.85rem;
  }
}

/* ===========================
   Course / checkout page
   =========================== */
.course-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.course-subtitle {
  color: var(--helea-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 2.5rem;
}

.course-caption {
  color: var(--helea-faint);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

.checkout-status {
  color: var(--helea-muted);
  font-size: 1rem;
}

.checkout-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 1.75rem;
  margin: 0 auto;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
}

.checkout-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--helea-border);
}

.checkout-card-name {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--helea-muted);
}

.checkout-card-price {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--helea-text);
}

.checkout-card .form-label {
  color: var(--helea-text);
}

.checkout-card .form-control {
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  color: var(--helea-text);
  padding: 0.7rem 0.9rem;
  border-radius: 0.5rem;
}

.checkout-card .form-control::placeholder {
  color: var(--helea-faint);
}

.checkout-card .form-control:focus {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  color: var(--helea-text);
  box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.18);
}

.checkout-card .form-control.is-invalid,
.checkout-card .was-validated .form-control:invalid {
  border-color: var(--helea-accent);
  background-image: none;
}

.checkout-card .invalid-feedback {
  color: var(--helea-accent);
}

.checkout-error {
  background-color: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.4);
  color: var(--helea-text);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
}

/* ===========================
   Il Contesto section
   =========================== */
.contesto-section {
  background-color: var(--helea-bg);
}

.section-eyebrow {
  display: inline-block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--helea-accent);
  margin-bottom: 0.875rem;
}

.contesto-section .section-title {
  color: var(--helea-text);
  margin-bottom: 0.875rem;
}

.contesto-section .section-lead {
  max-width: none;
  color: var(--helea-muted);
  font-size: 1.05rem;
  line-height: 1.76;
  margin-bottom: 0;
}

.context-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  backdrop-filter: blur(4px);
}

.context-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.context-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  border: 1px solid var(--helea-border);
}

.context-icon-accent {
  background-color: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
}

.context-icon-light {
  background-color: var(--color-surface-elevated-strong);
  color: var(--helea-text);
}

.context-icon-muted {
  background-color: var(--color-surface-elevated);
  color: var(--helea-muted);
}

.context-card h3 {
  color: var(--helea-text);
  font-size: 1.15rem;
}

.context-card-text {
  color: var(--helea-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .context-card {
    padding: 1.5rem;
  }
}

/* ===========================
   La Visione section
   =========================== */
.visione-section {
  background-color: var(--helea-bg);
  position: relative;
}

.visione-section .section-title {
  color: var(--helea-text);
}

.visione-text {
  color: var(--helea-muted);
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 1rem;
}

.visione-text:last-of-type {
  margin-bottom: 1.5rem;
}

.visione-quote {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem 1.1rem 1.35rem;
  border-left: 3px solid var(--helea-accent);
  background-color: var(--color-surface-elevated);
  border-radius: 0 0.5rem 0.5rem 0;
}

.visione-quote p {
  font-style: italic;
  color: var(--helea-text);
  font-size: 1rem;
  line-height: 1.65;
}

.visione-portrait {
  position: relative;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.visione-portrait::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid var(--helea-border);
  border-radius: 1.05rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--color-accent) 8%, transparent) 0%,
    var(--color-surface-elevated) 100%
  );
  pointer-events: none;
}

.visione-portrait-img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 0.85rem;
  border: 1px solid var(--helea-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.visione-portrait-caption {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 1.1rem;
  padding: 0.85rem 1.1rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.65rem;
  text-align: center;
}

.visione-portrait-name {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--helea-text);
  margin-bottom: 0.15rem;
}

.visione-portrait-role {
  display: block;
  font-size: 0.78rem;
  color: var(--helea-muted);
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .visione-portrait {
    margin-top: 2rem;
  }
}

/* ===========================
   Il metodo Helea — Timeline
   =========================== */
.metodo-section {
  background-color: var(--helea-bg);
}

.metodo-section .section-title,
.servizi-section .section-title,
.legale-section .section-title,
.education-section .section-title {
  color: var(--helea-text);
}

.metodo-section .section-lead,
.servizi-section .section-lead {
  max-width: none;
  color: var(--helea-muted);
  font-size: 1.05rem;
  line-height: 1.76;
  margin-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  position: relative;
  margin: 0;
  padding: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--helea-border),
    var(--helea-border),
    transparent
  );
}

.timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
  position: relative;
}

.timeline-dot {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: var(--helea-bg);
  border: 1.5px solid var(--helea-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    color 0.25s ease;
}

.timeline-step:hover .timeline-dot {
  border-color: var(--helea-accent);
  background-color: var(--helea-accent);
  box-shadow: 0 0 0 6px rgba(230, 57, 70, 0.2);
}
.timeline-step:hover .timeline-num,
.timeline-step:hover .timeline-ico {
  color: var(--helea-text);
}

.timeline-num {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--helea-accent);
  letter-spacing: 0.06em;
  line-height: 1;
}

.timeline-ico {
  font-size: 1.05rem;
  color: var(--helea-text);
  margin-top: 0.2rem;
  transition: color 0.25s ease;
}

.timeline-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--helea-text);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--helea-muted);
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
  }
  .timeline::before {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   I servizi di AI Governance
   =========================== */
.servizi-section {
  background-color: var(--helea-bg);
}

.service-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.85rem;
  padding: 2rem 1.85rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--helea-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-accent);
  background-color: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.32);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  color: var(--helea-text);
  font-size: 1.2rem;
}

.service-desc {
  color: var(--helea-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-list {
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.service-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.25rem;
  border-bottom: 1px solid var(--helea-border);
  font-size: 0.88rem;
  color: var(--helea-text);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0.55rem;
  color: var(--helea-accent);
  font-size: 0.85rem;
}

.service-note {
  font-size: 0.8rem;
  color: var(--helea-muted);
  font-style: italic;
  padding: 0.65rem 0.85rem;
  background-color: var(--color-surface-elevated);
  border-left: 2px solid var(--helea-border);
  border-radius: 0 0.35rem 0.35rem 0;
  line-height: 1.55;
}

.service-card .btn-helea-ghost {
  align-self: flex-start;
}

/* ===========================
   AI Governance Legale
   =========================== */
.legale-section {
  background-color: var(--helea-bg);
  position: relative;
}

.legale-sub {
  color: var(--helea-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 960px;
  margin-bottom: 0;
}

.legale-text {
  color: var(--helea-muted);
  font-size: 0.99rem;
  line-height: 1.78;
  margin-bottom: 1rem;
}

.legale-profile {
  position: sticky;
  top: 88px;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.85rem;
  padding: 1.75rem;
  text-align: left;
  overflow: hidden;
}

.legale-profile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--helea-accent),
    rgba(230, 57, 70, 0.4)
  );
}

.legale-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--helea-border);
  display: block;
  margin-bottom: 1.1rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

.legale-profile-name {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--helea-text);
  margin-bottom: 0.2rem;
}

.legale-profile-role {
  display: block;
  font-size: 0.78rem;
  color: var(--helea-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.legale-profile-bio {
  font-size: 0.86rem;
  color: var(--helea-muted);
  line-height: 1.7;
  border-top: 1px solid var(--helea-border);
  padding-top: 0.85rem;
}

@media (max-width: 991.98px) {
  .legale-profile {
    position: static;
  }
}

.target-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.target-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--helea-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.target-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.target-card:hover::before {
  transform: scaleX(1);
}

.target-tag {
  display: inline-flex;
  padding: 0.15rem 0.55rem;
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--helea-muted);
  margin-bottom: 0.6rem;
}

.target-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--helea-text);
  margin-bottom: 0.45rem;
}

.target-desc {
  font-size: 0.82rem;
  color: var(--helea-muted);
  line-height: 1.6;
}

/* ===========================
   AI Education
   =========================== */
.education-section {
  background-color: var(--helea-bg);
}

.education-text {
  color: var(--helea-muted);
  font-size: 1.05rem;
  line-height: 1.76;
}

.ai-act-box {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-left: 3px solid var(--helea-accent);
  border-radius: 0.6rem;
  padding: 1.1rem 1.25rem;
}

.ai-act-box p {
  color: var(--helea-text);
  font-size: 0.92rem;
  line-height: 1.65;
  font-style: italic;
}

.education-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.education-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.education-card .context-card-icon {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.education-card:hover .context-card-icon {
  background-color: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
}

.education-card h3 {
  color: var(--helea-text);
  font-size: 1.15rem;
}

.education-card-text {
  color: var(--helea-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 767.98px) {
  .service-card,
  .education-card {
    padding: 1.5rem;
  }
  .legale-profile {
    padding: 1.4rem;
  }
}

/* ===========================
   Metodo e ricerca
   =========================== */
.ricerca-section {
  background-color: var(--helea-bg);
}

.ricerca-section .section-title {
  color: var(--helea-text);
}

.ricerca-text {
  color: var(--helea-muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.research-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.6rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.research-point:hover {
  transform: translateX(3px);
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.research-point-icon {
  width: 36px;
  height: 36px;
  border-radius: 0.45rem;
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  color: var(--helea-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.research-point:hover .research-point-icon {
  background-color: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
}

.research-point-label {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--helea-text);
  margin-bottom: 0.15rem;
}

.research-point-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--helea-muted);
  line-height: 1.55;
}

.comitato-card {
  position: relative;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.85rem;
  padding: 2.1rem;
  overflow: hidden;
}

.comitato-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--helea-accent),
    rgba(230, 57, 70, 0.4)
  );
}

.comitato-badge {
  display: inline-flex;
  padding: 0.25rem 0.7rem;
  background-color: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.32);
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--helea-accent);
  margin-bottom: 1.1rem;
}

.comitato-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.comitato-photo {
  width: 106px;
  height: 106px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--helea-border);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.comitato-name {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--helea-text);
  margin-bottom: 0.2rem;
}

.comitato-role {
  display: block;
  font-size: 0.78rem;
  color: var(--helea-muted);
  line-height: 1.5;
}

.comitato-bio {
  font-size: 0.9rem;
  color: var(--helea-muted);
  line-height: 1.7;
  border-top: 1px solid var(--helea-border);
  padding-top: 0.95rem;
}

@media (max-width: 767.98px) {
  .comitato-card {
    padding: 1.6rem;
  }
  .comitato-photo {
    width: 84px;
    height: 84px;
  }
  .comitato-profile {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* ===========================
   Osservatorio AI e Lavoro
   =========================== */
.osservatorio-section {
  background-color: var(--helea-bg);
}

.osservatorio-section .section-title,
.idx-section .section-title,
.community-section .section-title,
.cta-final-section .section-title {
  color: var(--helea-text);
}

.osservatorio-section .section-lead,
.community-section .section-lead {
  max-width: none;
  color: var(--helea-muted);
  font-size: 1.05rem;
  line-height: 1.76;
  margin-bottom: 0;
}

.article-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.article-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.article-card-header {
  padding: 1.1rem 1.4rem 0;
}

.article-cat {
  display: inline-flex;
  padding: 0.22rem 0.7rem;
  background-color: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.32);
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--helea-accent);
}

.article-card-body {
  padding: 1rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-body h3 {
  color: var(--helea-text);
  font-size: 1.05rem;
  line-height: 1.35;
}

.article-author {
  font-size: 0.78rem;
  color: var(--helea-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.article-excerpt {
  color: var(--helea-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
  flex: 1;
}

.article-link {
  align-self: flex-start;
  font-size: 0.85rem;
}

/* ===========================
   AI Governance Index
   =========================== */
.idx-section {
  background-color: var(--helea-bg);
}

.idx-claim {
  color: var(--helea-text);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.idx-text {
  color: var(--helea-muted);
  font-size: 0.99rem;
  line-height: 1.76;
  margin-bottom: 1.1rem;
}

.idx-note {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-left: 3px solid var(--helea-accent);
  border-radius: 0 0.45rem 0.45rem 0;
  padding: 0.85rem 1.1rem;
  color: var(--helea-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.idx-dims {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.idx-dim {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.55rem 0.85rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.45rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--helea-text);
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.idx-dim:hover {
  border-color: rgba(230, 57, 70, 0.45);
  background-color: rgba(230, 57, 70, 0.1);
  color: var(--helea-accent);
}

.idx-dim-wide {
  grid-column: 1 / -1;
}

.idx-scale {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.85rem;
  padding: 1.75rem;
}

.idx-level {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.idx-level-label {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--helea-text);
  letter-spacing: 0.02em;
}

.idx-level-bar {
  height: 10px;
  background-color: var(--color-surface-elevated-strong);
  border: 1px solid var(--helea-border);
  border-radius: 999px;
  overflow: hidden;
}

.idx-level-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(230, 57, 70, 0.55),
    var(--helea-accent)
  );
  transition: filter 0.25s ease;
}

.idx-level:hover .idx-level-fill {
  filter: brightness(1.12);
}

@media (max-width: 575.98px) {
  .idx-dims {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Community Helea
   =========================== */
.community-section {
  background-color: var(--helea-bg);
}

.community-card {
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.community-card:hover {
  background-color: var(--color-surface-elevated-strong);
  border-color: var(--helea-border);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
}

.community-card .context-card-icon {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.community-card:hover .context-card-icon {
  background-color: rgba(230, 57, 70, 0.14);
  border-color: rgba(230, 57, 70, 0.45);
  color: var(--helea-accent);
}

.community-card h3 {
  color: var(--helea-text);
  font-size: 1.15rem;
}

.community-card-text {
  color: var(--helea-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* ===========================
   Inizia da qui — Final CTA
   =========================== */
.cta-final-section {
  background-color: var(--helea-bg);
}

.cta-final-card {
  max-width: 820px;
  background: linear-gradient(
    135deg,
    rgba(230, 57, 70, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 60%
  );
  border: 1px solid var(--helea-border);
  border-radius: 1rem;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.cta-final-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--helea-accent),
    rgba(230, 57, 70, 0.4)
  );
}

.cta-final-card .section-eyebrow {
  margin-bottom: 0.75rem;
}

.cta-final-text {
  color: var(--helea-text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final-sub {
  color: var(--helea-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .article-card-header {
    padding: 0.9rem 1.1rem 0;
  }
  .article-card-body {
    padding: 0.85rem 1.1rem 1.1rem;
  }
  .idx-scale {
    padding: 1.25rem;
  }
  .community-card {
    padding: 1.5rem;
  }
  .cta-final-card {
    padding: 2rem 1.4rem;
  }
}

/* ===========================
   Osservatorio AI e Lavoro — Cover page
   =========================== */
.osservatorio-cover-section {
  background-color: var(--helea-bg);
  padding: 4rem 0 5rem;
  /* Grid is intentionally slightly fainter here than on .hero (the hero is
     the "feature" surface). On dark we step from 0.04 → 0.03 alpha; on
     light we approximate the same ratio. */
  background-image:
    linear-gradient(var(--color-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
}

.cover-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 3.5rem 3.5rem 3rem;
  background-color: var(--color-surface-elevated);
  border: 1px solid var(--helea-border);
  border-radius: 0.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.cover-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--helea-accent);
}

.cover-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

.cover-meta-left,
.cover-meta-right {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--helea-accent);
}

.cover-meta-left {
  color: var(--helea-muted);
}

.cover-eyebrow {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--helea-accent);
  margin-bottom: 1rem;
}

.cover-eyebrow span {
  margin: 0 0.35rem;
  color: var(--helea-accent);
}

.cover-title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--helea-text);
  margin-bottom: 1.5rem;
}

.cover-title-sub {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-style: italic;
  font-weight: 300;
  color: var(--helea-muted);
  margin-top: 0.25rem;
}

.cover-divider {
  display: block;
  width: 80px;
  height: 2px;
  background-color: var(--helea-accent);
  margin: 0 0 1.5rem;
}

.cover-lead {
  color: var(--helea-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.cover-authors {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--helea-border);
  margin-bottom: 2.5rem;
}

.cover-authors-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  flex: 1;
  min-width: 0;
}

.cover-author {
  min-width: 0;
}

.cover-author-name {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--helea-text);
  margin-bottom: 0.15rem;
}

.cover-author-role {
  color: var(--helea-muted);
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 0;
}

.cover-issue-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0.15rem;
  flex-shrink: 0;
}

.cover-issue-date,
.cover-issue-domain {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--helea-accent);
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cover-actions-end {
  justify-content: flex-end;
}

.cover-btn {
  min-width: 240px;
  justify-content: center;
}

@media (max-width: 767.98px) {
  .osservatorio-cover-section {
    padding: 2.5rem 0 3rem;
  }
  .cover-card {
    padding: 2rem 1.5rem 2rem;
    border-radius: 0.6rem;
  }
  .cover-card-top {
    margin-bottom: 1.5rem;
  }
  .cover-authors {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .cover-authors-list {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .cover-issue-meta {
    align-items: flex-start;
    text-align: left;
  }
  .cover-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .cover-card {
    padding: 2.5rem 2rem;
  }
  .cover-authors-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
