:root {
  --bg: #f4f7fc;
  --bg-soft: #eef3fb;
  --surface: #ffffff;
  --surface-alt: #f8faff;
  --text: #152033;
  --muted: #5f6b82;
  --primary: #1f4f9a;
  --primary-dark: #163a73;
  --primary-light: #e8f0ff;
  --accent: #2f7d6d;
  --accent-soft: #e7f5f1;
  --border: #d9e2f0;
  --border-strong: #c3d0e4;
  --shadow-sm: 0 8px 24px rgba(21, 32, 51, 0.06);
  --shadow: 0 18px 42px rgba(21, 32, 51, 0.1);
  --shadow-lg: 0 28px 60px rgba(21, 32, 51, 0.14);
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(47, 125, 109, 0.06), transparent 28%),
    radial-gradient(circle at top left, rgba(31, 79, 154, 0.08), transparent 32%),
    var(--bg);
  line-height: 1.65;
}

.home-page {
  min-height: 100vh;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, #17345f 0%, #1f4f9a 48%, #255fae 100%);
  color: #ffffff;
  padding-bottom: 3.5rem;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 24%),
    radial-gradient(circle at 10% 80%, rgba(47, 125, 109, 0.18), transparent 28%);
  pointer-events: none;
}

.site-header .container {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 1.02rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
  background: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.hero {
  padding: 4rem 0 1rem;
  max-width: 760px;
}

.hero-compact {
  padding-bottom: 0;
}

.hero-home {
  padding: 0;
  max-width: 620px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.section-label {
  color: var(--primary);
}

.section-label::before {
  background: var(--accent);
}

.hero h1 {
  margin: 0.7rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-text,
.section-intro {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.06rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 4.8rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 255, 0.95) 100%);
  border-top: 1px solid rgba(217, 226, 240, 0.8);
  border-bottom: 1px solid rgba(217, 226, 240, 0.8);
}

.section-focus {
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: stretch;
  padding: 1.2rem 0 2rem;
}

.home-panel {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.home-heading {
  margin-bottom: 1.2rem;
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0.35rem 0 0.8rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 68ch;
}

.section-note {
  max-width: 760px;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.index-card {
  display: block;
}

.index-card:hover,
.index-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(31, 79, 154, 0.28);
  box-shadow: var(--shadow);
}

.index-number {
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.card p:last-child,
.info-list li:last-child {
  margin-bottom: 0;
}

.info-list {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}

.timeline-step {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.fls-roadmap {
  margin-bottom: 0.4rem;
}

.fls-roadmap-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  padding-top: 1.8rem;
}

.fls-roadmap-five .fls-roadmap-track {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fls-roadmap-track::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 8%;
  right: 8%;
  height: 4px;
  background: linear-gradient(90deg, #c8d7ee 0%, var(--primary) 50%, #c8d7ee 100%);
  border-radius: 999px;
}

.fls-roadmap-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.95rem;
}

.fls-roadmap-marker {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.fls-roadmap-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 5px rgba(31, 79, 154, 0.12);
}

.fls-roadmap-year {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.fls-roadmap-card {
  width: 100%;
  text-align: left;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.fls-roadmap-card h3 {
  margin-bottom: 0.45rem;
}

.fls-roadmap-card h3 a:hover,
.fls-roadmap-card h3 a:focus-visible {
  color: var(--primary);
  text-decoration: underline;
}

.fls-year {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fls-experiences {
  display: grid;
  gap: 1.4rem;
}

.fls-experience-detail {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.fls-experience-detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.fls-experience-detail h3 {
  margin-top: 0;
  font-size: 1.35rem;
}

.fls-experience-detail p:last-of-type {
  margin-bottom: 0;
}

.fls-media-attestato {
  max-width: 460px;
  margin-top: 1.3rem;
}

.fls-media-attestato img {
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.fls-media-attestato figcaption {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.app-showcase {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border-radius: calc(var(--radius) - 2px);
  background:
    linear-gradient(135deg, rgba(31, 79, 154, 0.06) 0%, rgba(47, 125, 109, 0.08) 100%),
    #f7faff;
  border: 1px solid rgba(195, 208, 228, 0.95);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.app-showcase-intro {
  margin-bottom: 1.2rem;
}

.app-showcase-label {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-showcase-intro h4 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.app-showcase-intro p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}

.app-showcase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: center;
}

.app-preview {
  margin: 0;
}

.app-preview img {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 18px 28px rgba(21, 32, 51, 0.16));
}

.app-preview figcaption {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.app-showcase-side {
  display: grid;
  gap: 1rem;
}

.app-icon-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.app-icon-tile img {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 20px rgba(21, 32, 51, 0.12);
}

.app-icon-title {
  margin: 0 0 0.25rem;
  font-weight: 800;
  color: var(--text);
}

.app-icon-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.app-feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.app-feature-list li {
  position: relative;
  padding: 0.8rem 0.95rem 0.8rem 2.35rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 226, 240, 0.95);
  color: var(--text);
  font-size: 0.95rem;
}

.app-feature-list li::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 1.05rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent) 0%, #25695c 100%);
  box-shadow: 0 0 0 4px rgba(47, 125, 109, 0.14);
}

.profile-showcase {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.profile-visual {
  display: grid;
  gap: 1rem;
}

.profile-photo-frame {
  position: relative;
  padding: 0.75rem;
  border-radius: calc(var(--radius) + 4px);
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: none;
}

.profile-logo-card {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.profile-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(21, 32, 51, 0.12);
}

.profile-logo-label,
.profile-kicker,
.extra-featured-label,
.link-card-label {
  margin: 0 0 0.35rem;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-logo-text {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.profile-content h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.2rem 0 1.35rem;
  padding: 0;
  list-style: none;
}

.profile-tags li {
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  border: 1px solid rgba(31, 79, 154, 0.12);
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin: 0;
}

.profile-facts div {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.profile-facts dt {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.profile-facts dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.highlight-card {
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.highlight-icon {
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.link-card {
  display: block;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(31, 79, 154, 0.28);
  box-shadow: var(--shadow);
}

.link-card h3 {
  margin-bottom: 0.55rem;
}

.extra-attestati-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.attestati-block + .attestati-block {
  margin-top: 2.2rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--border);
}

.cert-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.cert-card {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.cert-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

.cert-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.capolavoro-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.capolavoro-spotlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capolavoro-spotlight:hover,
.capolavoro-spotlight:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(21, 32, 51, 0.18);
}

.capolavoro-spotlight-home {
  margin-bottom: 0.4rem;
}

.capolavoro-spotlight-compact {
  margin-top: 1rem;
  padding: 0.7rem 0.85rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.capolavoro-spotlight-compact:hover,
.capolavoro-spotlight-compact:focus-visible {
  box-shadow: var(--shadow);
}

.capolavoro-spotlight-compact img {
  width: 88px;
  height: 50px;
}

.capolavoro-spotlight-compact .capolavoro-spotlight-copy h2 {
  font-size: 0.95rem;
}

.capolavoro-spotlight-compact .capolavoro-spotlight-cta {
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
}

.capolavoro-spotlight-hero {
  margin-top: 1rem;
  margin-bottom: 0.2rem;
}

.capolavoro-spotlight img {
  width: 112px;
  height: 63px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.capolavoro-spotlight-copy h2 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text);
}

.capolavoro-spotlight-copy p:last-child {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.capolavoro-spotlight-label {
  margin: 0 0 0.3rem;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capolavoro-spotlight-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.section-capolavoro {
  padding-top: 3.2rem;
}

.capolavoro-copy p:last-of-type {
  margin-bottom: 1rem;
}

.capolavoro-stack {
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.capolavoro-stack li {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.95rem;
}

.capolavoro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.capolavoro-preview {
  margin: 0;
}

.capolavoro-preview a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capolavoro-preview a:hover,
.capolavoro-preview a:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.capolavoro-preview img {
  width: 100%;
  display: block;
}

.capolavoro-preview figcaption {
  margin-top: 0.65rem;
  font-size: 0.86rem;
  color: var(--muted);
  text-align: center;
}

.pdf-viewer-shell {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  min-height: 520px;
}

.pdf-viewer-shell iframe {
  width: 100%;
  height: min(72vh, 680px);
  border: 0;
  display: block;
  background: #ffffff;
}

.extra-attestato-card {
  margin: 0;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.extra-attestato-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.extra-attestato-frame {
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  border: 1px solid var(--border);
}

.extra-attestato-frame img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.extra-attestato-card figcaption h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.extra-attestato-card figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.extra-featured-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 2.4rem;
  padding: 1.5rem;
  background:
    linear-gradient(135deg, rgba(31, 79, 154, 0.05) 0%, rgba(47, 125, 109, 0.07) 100%),
    var(--surface);
}

.extra-featured-copy h3 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
}

.extra-featured-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading-tight {
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
}

.section-heading-tight h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.video-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.video-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.video-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.video-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.video-shell {
  overflow: hidden;
  border-radius: 16px;
  background: #0f1c31;
  border: 1px solid rgba(21, 32, 51, 0.18);
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0f1c31;
}

.video-shell-large video {
  min-height: 260px;
}

.video-shell-vertical {
  max-width: 100%;
  margin: 0 auto;
}

.video-shell-vertical video {
  aspect-ratio: 9 / 16;
  min-height: 420px;
  max-height: 72vh;
  object-fit: cover;
}

.home-page .site-header {
  min-height: 100vh;
  padding-bottom: 0;
  display: flex;
}

.home-page .site-header .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-page .nav {
  padding: 0.6rem 0 1.2rem;
}

.home-page .hero h1 {
  margin: 0.45rem 0 0.95rem;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
}

.home-page .hero-text {
  max-width: 56ch;
  font-size: 1.04rem;
}

.home-page .hero-actions {
  margin-top: 1.35rem;
}

.home-page .section-heading {
  margin-bottom: 1.1rem;
}

.home-page .section-heading h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
}

.home-page .section-heading p {
  font-size: 0.96rem;
}

.home-page .cards-grid {
  gap: 1rem;
}

.home-page .card {
  padding: 1.15rem;
  min-height: 100%;
}

.home-page .card h3 {
  margin-bottom: 0.45rem;
}

.home-page .index-number {
  margin-bottom: 0.4rem;
}

.home-page .site-footer {
  display: none;
}

.home-page .index-card {
  border-color: #dbe5f3;
}

.home-page .button-secondary {
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  background: linear-gradient(180deg, #12233f 0%, #0f1c31 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

.page-meta {
  margin-top: 0.35rem;
  opacity: 0.42;
  font-size: 0.72rem;
  line-height: 1.4;
}

.page-meta p {
  margin: 0;
}

.page-meta-separator {
  margin: 0 0.35rem;
}

@media (max-width: 1100px) {
  .fls-roadmap-five .fls-roadmap-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
  }

  .two-columns,
  .cards-grid,
  .fls-roadmap-track,
  .fls-roadmap-five .fls-roadmap-track {
    grid-template-columns: 1fr;
  }

  .app-showcase-layout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .app-preview img {
    max-width: 280px;
  }

  .profile-showcase,
  .capolavoro-showcase,
  .capolavoro-spotlight,
  .extra-featured-video,
  .extra-attestati-grid,
  .cert-list-grid,
  .video-gallery,
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .capolavoro-spotlight {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .capolavoro-spotlight img {
    width: 100%;
    height: auto;
    max-height: 140px;
  }

  .capolavoro-spotlight-cta {
    justify-self: start;
  }

  .fls-roadmap-track {
    padding-top: 0;
    gap: 1.2rem;
  }

  .fls-roadmap-track::before {
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.55rem;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, #c8d7ee 0%, var(--primary) 50%, #c8d7ee 100%);
  }

  .fls-roadmap-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }

  .fls-roadmap-marker {
    flex-shrink: 0;
    padding-top: 0.15rem;
  }

  .fls-roadmap-card {
    flex: 1;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem;
    border-radius: 18px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-home {
    padding-top: 0;
  }

  .section {
    padding: 3.6rem 0;
  }

  .home-page .site-header {
    min-height: auto;
  }

  .home-page .site-header .container {
    justify-content: flex-start;
  }

  .home-layout {
    padding: 0.6rem 0 2.2rem;
  }

  .home-panel {
    padding: 1.2rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-step {
    width: 48px;
    height: 48px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-meta {
    margin-top: 0.55rem;
  }
}
