@font-face {
  font-display: swap;
  font-family: Finlandica;
  font-style: normal;
  font-weight: 400 700;
  src: url('../fonts/finlandica-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --wp--preset--font-size--body-xs: 0.92rem;
  --site-gutter: clamp(1rem, 3vw, 2rem);
  --content: 760px;
  --wide: 1320px;
  --header-height: 5.5rem;
  --container: min(1240px, calc(100% - 48px));
  --radius-s: 0.65rem;
  --radius-m: 1.25rem;
  --shadow-card: 0 1rem 3rem rgb(16 52 69 / 0.08);
}

/* Global chrome shared with the approved homepage demo. */
.nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgb(255 255 255 / 0.72);
  border: 1px solid rgb(4 77 118 / 0.13);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgb(32 77 100 / 0.12);
  display: flex;
  gap: 1.375rem;
  justify-content: space-between;
  left: 50%;
  min-height: 3.875rem;
  padding: 0.75rem 1.25rem 0.75rem 1.5rem;
  position: fixed;
  top: 1.125rem;
  transform: translateX(-50%);
  transition: background-color 250ms ease, border-color 250ms ease;
  width: min(calc(100% - 2.5rem), 77.5rem);
  z-index: 1000;
}

.progress {
  background: linear-gradient(90deg, #247fb6, #9bc8ab);
  box-shadow: 0 0 18px rgb(58 169 220 / 0.35);
  height: 2px;
  left: 0;
  position: fixed;
  top: 0;
  width: 0;
  z-index: 1100;
}

.nav.is-scrolled {
  background: rgb(255 255 255 / 0.9);
  border-color: rgb(4 77 118 / 0.2);
}

.logo {
  flex: 0 0 auto;
  line-height: 1;
}

.logo .custom-logo-link,
.footer .custom-logo-link {
  display: block;
}

.logo img {
  display: block;
  filter: none;
  height: 1.6875rem;
  max-width: 10.5rem;
  object-fit: contain;
  width: auto;
}

.logo__fallback {
  color: #102638;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
}

.nav nav {
  margin-left: auto;
}

.nav-links {
  align-items: center;
  display: flex;
  font-size: 0.8125rem;
  font-weight: 600;
  gap: 1.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgb(16 38 56 / 0.58);
  position: relative;
  text-decoration: none;
  transition: color 250ms ease;
}

.nav-links a::after {
  background: #247fb6;
  bottom: -0.375rem;
  content: '';
  height: 1px;
  left: 0;
  position: absolute;
  transition: width 250ms ease;
  width: 0;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links .current-menu-item > a {
  color: #044d76;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links .current-menu-item > a::after {
  width: 100%;
}

.nav-links > .menu-item-has-children {
  padding-right: 0.75rem;
  position: relative;
}

.nav-links > .menu-item-has-children::after {
  border-bottom: 1px solid currentcolor;
  border-right: 1px solid currentcolor;
  color: rgb(16 38 56 / 0.48);
  content: '';
  height: 0.35rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
  width: 0.35rem;
}

.nav-links .sub-menu {
  background: rgb(255 255 255 / 0.96);
  border: 1px solid rgb(4 77 118 / 0.13);
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgb(32 77 100 / 0.16);
  display: grid;
  gap: 0.125rem;
  left: -1rem;
  list-style: none;
  margin: 0;
  min-width: 15.5rem;
  opacity: 0;
  padding: 0.625rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 0.625rem);
  transform: translateY(-0.4rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
  z-index: 30;
}

.nav-links .sub-menu::before {
  content: '';
  height: 0.875rem;
  inset: -0.875rem 0 auto;
  position: absolute;
}

.nav-links .sub-menu li {
  margin: 0;
  width: 100%;
}

.nav-links .sub-menu a {
  border-radius: 0.65rem;
  color: rgb(16 38 56 / 0.72);
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  padding: 0.7rem 0.8rem;
  white-space: normal;
}

.nav-links .sub-menu a::after {
  display: none;
}

.nav-links .sub-menu a:hover,
.nav-links .sub-menu a:focus-visible,
.nav-links .sub-menu .current-menu-item > a {
  background: rgb(36 127 182 / 0.08);
  color: #044d76;
}

.nav-links > .menu-item-has-children:hover > .sub-menu,
.nav-links > .menu-item-has-children:focus-within > .sub-menu,
.nav-links > .menu-item-has-children.submenu-is-open > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.nav-links > .menu-item-has-children:hover::after,
.nav-links > .menu-item-has-children:focus-within::after,
.nav-links > .menu-item-has-children.submenu-is-open::after {
  transform: translateY(-35%) rotate(225deg);
}

.primary-menu .menu-item-has-children > a {
  padding-right: 1.75rem;
  position: relative;
}

.primary-menu .menu-item-has-children > a::after {
  color: rgb(255 255 255 / 0.58);
  content: '↓';
  font-size: 0.8em;
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav-cta {
  align-items: center;
  background: linear-gradient(135deg, #247fb6, #044d76);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgb(47 152 211 / 0.25);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 700;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 1.375rem;
  text-decoration: none;
  transition: transform 250ms ease, background 250ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: linear-gradient(135deg, #3aa9dc, #247fb6);
  color: #fff;
  transform: translateY(-1px);
}

/* Give the desktop navigation the same visual presence as the page type.
   The compact tablet/mobile header keeps the existing dimensions. */
@media (min-width: 67.5625rem) {
  .nav-links {
    font-size: 0.9375rem;
    gap: clamp(1.75rem, 1.8vw, 2.25rem);
  }

  .nav-links .sub-menu a {
    font-size: 0.875rem;
  }

  .nav-cta {
    font-size: 0.875rem;
    min-height: 2.75rem;
    padding-inline: 1.5rem;
  }
}

body:not(.home) .site-content {
  padding-top: 0;
}

body.progesto-demo-page .site-content {
  padding-top: 0;
}

/* Shared visual grid for every contact CTA, including demo page templates. */
.contact > .container.contact-inner {
  margin-inline: auto;
  max-width: none;
  width: var(--container);
}

.footer {
  background:
    radial-gradient(circle at 10% 0%, rgb(58 169 220 / 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fbfc 0%, #eef5f6 100%);
  border-top: 1px solid rgb(4 77 118 / 0.12);
  color: var(--color-ink);
  position: relative;
  z-index: 12;
}

.footer__inner {
  margin-inline: auto;
  max-width: none;
  padding-block: clamp(3.5rem, 7vw, 6rem) 1.5rem;
  width: var(--container);
}

.footer__main {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(10rem, 0.7fr));
}

.footer-editor-column .footer-editor-logo {
  margin: 0 0 1.5rem;
}

.footer-editor-column .footer-editor-logo img {
  display: block;
  height: auto;
  max-height: 2.75rem;
  max-width: min(15rem, 100%);
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.footer__editor > .wp-block-group,
.footer__editor > .wp-block-group.alignfull {
  margin-inline: 0;
  max-width: none;
  width: 100%;
}

.footer-editor-grid {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(10rem, 0.7fr));
}

.footer-editor-column {
  margin: 0;
}

.footer-editor-column > :first-child {
  margin-top: 0;
}

.footer-editor-column > :last-child {
  margin-bottom: 0;
}

.footer-editor-column p {
  color: rgb(16 38 56 / 0.68);
  line-height: 1.65;
}

.footer-editor-eyebrow {
  color: var(--color-blue-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.footer-editor-links {
  display: grid;
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-editor-column .wp-block-image {
  margin-block: 1rem 0;
}

.footer-editor-column .wp-block-image img {
  max-height: 4rem;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.footer__brand {
  max-width: 25rem;
}

.footer__logo {
  color: var(--color-ink);
  font-size: 1.125rem;
  font-weight: 700;
}

.footer__logo img,
.footer__logo .custom-logo {
  display: block;
  height: auto;
  max-height: 2.25rem;
  max-width: min(15rem, 100%);
  object-fit: contain;
  width: auto;
}

.footer__brand p {
  color: rgb(16 38 56 / 0.68);
  line-height: 1.65;
  margin: 1.25rem 0 0;
  max-width: 32rem;
}

.footer__column h2 {
  color: var(--color-blue-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.footer-menu,
.footer-legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu {
  display: grid;
  gap: 0.625rem;
}

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

.footer a:hover,
.footer a:focus-visible {
  color: var(--color-blue);
}

.footer__contacts {
  align-content: start;
  display: grid;
  gap: 0.625rem;
}

.footer__contacts h2 {
  margin-bottom: 0.375rem;
}

.footer__contacts address {
  color: rgb(16 38 56 / 0.68);
  font-style: normal;
  line-height: 1.55;
  margin-bottom: 0.25rem;
}

.footer__badges {
  grid-column: 1 / -1;
}

.footer__badge-list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__badge-list img {
  display: block;
  height: auto;
  max-height: 3.5rem;
  max-width: 9rem;
  object-fit: contain;
  width: auto;
}

.footer__bottom {
  align-items: center;
  border-top: 1px solid rgb(4 77 118 / 0.11);
  color: rgb(16 38 56 / 0.52);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin-top: clamp(2.75rem, 6vw, 5rem);
  padding-top: 1.25rem;
}

.footer-legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

@media (max-width: 63.99rem) {
  .footer__main,
  .footer-editor-grid {
    grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(9rem, 1fr));
  }
}

@media (max-width: 56.25rem) {
  :root {
    --container: min(1240px, calc(100% - 32px));
  }

  .footer__inner {
    padding-top: 3.25rem;
  }

  .footer__main,
  .footer-editor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand,
  .footer-editor-column:first-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 34rem) {
  .footer__main,
  .footer-editor-grid {
    grid-template-columns: 1fr;
  }

  .footer__brand,
  .footer__badges,
  .footer-editor-column:first-child {
    grid-column: auto;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-wrap: break-word;
}

body.menu-is-open {
  overflow: hidden;
}

img,
svg,
video {
  height: auto;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

a,
button,
input,
select,
textarea,
[tabindex] {
  outline-color: var(--wp--preset--color--green);
  outline-offset: 0.25rem;
}

:focus:not(:focus-visible) {
  outline: 0;
}

:focus-visible {
  outline-style: solid;
  outline-width: 3px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #103445;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  height: auto;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  top: 0.5rem;
  width: auto;
  z-index: 100000;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: clip;
}

.site-content {
  flex: 1 0 auto;
}

.site-header {
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--wp--preset--color--line);
  position: relative;
  z-index: 100;
}

.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: calc(var(--wide) + var(--site-gutter) * 2);
  min-height: var(--header-height);
  padding: 0 var(--site-gutter);
}

.site-branding {
  flex: 0 0 auto;
  line-height: 1;
  position: relative;
  z-index: 110;
}

.site-branding a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.custom-logo {
  display: block;
  max-height: 2.65rem;
  max-width: 11rem;
  width: auto;
}

.site-branding__fallback {
  align-items: center;
  display: inline-flex;
  font-size: 1.25rem;
  font-weight: 700;
  gap: 0.65rem;
}

.site-branding__mark {
  align-items: center;
  background: var(--wp--preset--color--blue);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.primary-menu,
.primary-menu ul,
.footer-menu,
.legal-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 50%;
  color: var(--wp--preset--color--ink);
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 2.75rem;
  z-index: 110;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  background: currentcolor;
  content: '';
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 180ms ease, opacity 180ms ease;
  width: 1.1rem;
}

.menu-toggle__icon::before {
  transform: translateY(-0.18rem);
}

.menu-toggle__icon::after {
  transform: translateY(0.35rem);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon {
  background: transparent;
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded='true'] .menu-toggle__icon::after {
  transform: rotate(-45deg);
}

.primary-navigation__panel {
  background: var(--wp--preset--color--ink);
  color: #fff;
  height: calc(100dvh - var(--header-height));
  inset: var(--header-height) 0 auto;
  opacity: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--wp--preset--spacing--l) var(--site-gutter) calc(var(--wp--preset--spacing--l) + env(safe-area-inset-bottom));
  pointer-events: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  position: absolute;
  transform: translateY(-0.75rem);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  visibility: hidden;
}

.menu-is-open .primary-navigation__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.primary-menu > li {
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.primary-menu a {
  color: #fff;
  display: block;
  font-size: clamp(1.4rem, 6vw, 2.25rem);
  font-weight: 600;
  padding: 0.75rem 0;
  text-decoration: none;
}

.primary-menu .sub-menu {
  padding: 0 0 0.75rem 1rem;
}

.primary-menu .sub-menu a {
  color: rgb(255 255 255 / 0.78);
  font-size: 1rem;
  font-weight: 400;
  padding: 0.35rem 0;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
  color: var(--wp--preset--color--green);
}

.page-shell,
.wide-width,
.entry-content > .alignwide {
  margin-left: auto;
  margin-right: auto;
  max-width: calc(var(--wide) + var(--site-gutter) * 2);
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  width: 100%;
}

.content-width,
.entry-content > :where(:not(.alignwide):not(.alignfull)) {
  margin-left: auto;
  margin-right: auto;
  max-width: calc(var(--content) + var(--site-gutter) * 2);
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  width: 100%;
}

.entry-content > .alignfull {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  width: 100%;
}

.entry-content {
  overflow: clip;
}

.entry-content::after {
  clear: both;
  content: '';
  display: table;
}

.entry-content > * {
  margin-block-start: var(--wp--preset--spacing--m);
}

.entry-content > *:first-child {
  margin-block-start: 0;
}

.entry-content > *:last-child {
  margin-block-end: var(--wp--preset--spacing--xl);
}

.entry-header,
.archive-header {
  background: var(--wp--preset--color--mist);
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.entry-header h1,
.archive-header h1,
.course-hero h1,
.error-page h1 {
  margin: 0;
  max-width: 18ch;
}

.entry-header--single h1 {
  font-size: var(--wp--preset--font-size--heading-l);
}

.entry-lead,
.archive-description {
  font-size: var(--wp--preset--font-size--body-l);
  max-width: 60ch;
}

.eyebrow {
  color: var(--wp--preset--color--blue-dark);
  font-size: var(--wp--preset--font-size--eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

.breadcrumbs {
  font-size: var(--wp--preset--font-size--body-s);
  padding-block: 1rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
  color: #6a828d;
  content: '/';
  margin-left: 0.4rem;
}

.breadcrumbs a {
  color: var(--wp--preset--color--blue-dark);
}

.page-shell--breadcrumb + .entry-header,
.page-shell--breadcrumb + .course-hero {
  margin-top: 0;
}

.archive-header {
  background: transparent;
  padding-top: clamp(3rem, 7vw, 6rem);
}

.card-grid {
  display: grid;
  gap: var(--wp--preset--spacing--m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  padding-bottom: var(--wp--preset--spacing--xl);
}

.content-card {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.content-card:hover,
.content-card:focus-within {
  border-color: var(--wp--preset--color--blue);
  box-shadow: var(--shadow-card);
  transform: translateY(-0.25rem);
}

.content-card__link {
  inset: 0;
  position: absolute;
  z-index: 2;
}

.content-card__media {
  aspect-ratio: 16 / 10;
  background: var(--wp--preset--color--blue-light);
  margin: 0;
  overflow: hidden;
}

.content-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.content-card:hover .content-card__media img {
  transform: scale(1.025);
}

.content-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: var(--wp--preset--spacing--m);
}

.content-card h2 {
  font-size: var(--wp--preset--font-size--heading-s);
  margin: 0;
}

.content-card__cta {
  color: var(--wp--preset--color--blue-dark);
  font-weight: 700;
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--m);
}

.entry-meta {
  color: #506b77;
  display: flex;
  flex-wrap: wrap;
  font-size: var(--wp--preset--font-size--body-s);
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.entry-topic-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.entry-topic-links__label {
  color: #506b77;
  font-size: var(--wp--preset--font-size--body-s);
  font-weight: 700;
}

.entry-topic-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.entry-topic-links a {
  align-items: center;
  background: rgb(36 127 182 / 0.08);
  border: 1px solid rgb(36 127 182 / 0.18);
  border-radius: 999px;
  color: var(--wp--preset--color--blue-dark);
  display: inline-flex;
  font-size: var(--wp--preset--font-size--body-s);
  font-weight: 700;
  min-height: 2.25rem;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.entry-topic-links a:hover,
.entry-topic-links a:focus-visible {
  background: rgb(36 127 182 / 0.14);
  border-color: rgb(36 127 182 / 0.38);
  transform: translateY(-1px);
}

.entry-header--single.entry-header--has-image .entry-topic-links__label {
  color: rgb(255 255 255 / 0.82);
}

.entry-header--single.entry-header--has-image .entry-topic-links a {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.34);
  color: #fff;
}

.entry-header--single.entry-header--has-image .entry-topic-links a:hover,
.entry-header--single.entry-header--has-image .entry-topic-links a:focus-visible {
  background: rgb(255 255 255 / 0.2);
  border-color: rgb(255 255 255 / 0.58);
}

.featured-media {
  margin-block: var(--wp--preset--spacing--l);
}

.featured-media img {
  border-radius: var(--radius-m);
  display: block;
  width: 100%;
}

.course-hero {
  align-items: center;
  background: var(--wp--preset--color--mist);
  display: grid;
  gap: var(--wp--preset--spacing--l);
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  margin: 0 auto var(--wp--preset--spacing--xl);
  max-width: calc(var(--wide) + var(--site-gutter) * 2);
  padding: clamp(2rem, 5vw, 5rem) var(--site-gutter);
}

.course-hero figure {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  margin: 0;
  overflow: hidden;
}

.course-hero img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.course-hero__button {
  margin-top: var(--wp--preset--spacing--m);
}

.course-facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  margin-bottom: var(--wp--preset--spacing--xl);
  margin-top: calc(var(--wp--preset--spacing--xl) * -0.45);
}

.course-facts > div {
  background: var(--wp--preset--color--mist);
  padding: var(--wp--preset--spacing--m);
}

.course-facts dt {
  color: var(--wp--preset--color--blue-dark);
  font-size: var(--wp--preset--font-size--eyebrow);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.course-facts dd {
  font-size: var(--wp--preset--font-size--body-l);
  font-weight: 600;
  margin: 0.4rem 0 0;
}

.course-filters {
  align-items: end;
  background: var(--wp--preset--color--mist);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--radius-m);
  display: grid;
  gap: var(--wp--preset--spacing--m);
  grid-template-columns: repeat(2, minmax(12rem, 1fr)) auto;
  margin-bottom: var(--wp--preset--spacing--l);
  padding: var(--wp--preset--spacing--m);
}

.course-filters__field label {
  display: block;
  font-size: var(--wp--preset--font-size--body-s);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.course-filters select {
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23103445' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1rem center;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  color: var(--wp--preset--color--ink);
  min-height: 3rem;
  padding: 0.65rem 2.75rem 0.65rem 1rem;
  width: 100%;
}

.course-filters__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-filters__actions a {
  font-size: var(--wp--preset--font-size--body-s);
  white-space: nowrap;
}

.course-card__meta {
  color: #506b77;
  display: grid;
  font-size: var(--wp--preset--font-size--body-s);
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.course-card__meta a,
.course-facts a {
  position: relative;
  z-index: 3;
}

.course-list-block__all {
  font-weight: 700;
  margin-top: calc(var(--wp--preset--spacing--m) * -1);
  text-align: right;
}

.course-list-block__all a {
  text-decoration: none;
}

.empty-state--compact {
  background: var(--wp--preset--color--white);
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--radius-m);
  padding: var(--wp--preset--spacing--l);
}

.empty-state--compact p {
  margin: 0;
}

.page-hero {
  padding-block: clamp(4.5rem, 10vw, 9rem);
}

.page-hero h1 {
  margin-block: 0;
  max-width: 14ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 60ch;
}

.section-block {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.section-block > :where(h2, .wp-block-heading) {
  max-width: 20ch;
}

.section-block--dark .eyebrow {
  color: var(--wp--preset--color--green);
}

.numbered-cards,
.service-grid,
.product-grid,
.competence-list,
.people-grid {
  gap: var(--wp--preset--spacing--m);
  margin-top: 0;
}

.numbered-card,
.service-card,
.product-card,
.query-card {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--radius-m);
  padding: var(--wp--preset--spacing--m);
}

.numbered-card__number,
.service-card__index,
.product-card__label {
  color: var(--wp--preset--color--blue-dark);
  font-size: var(--wp--preset--font-size--eyebrow);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 0;
  text-transform: uppercase;
}

.numbered-card h3,
.service-card h3,
.product-card h3 {
  margin-top: var(--wp--preset--spacing--m);
}

.competence-list > .wp-block-column {
  border-top: 1px solid rgb(255 255 255 / 0.25);
  padding-top: var(--wp--preset--spacing--m);
}

.competence-list p {
  color: rgb(255 255 255 / 0.72);
}

.people-grid .wp-block-image {
  aspect-ratio: 4 / 5;
  background: var(--wp--preset--color--blue-light);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.people-grid .wp-block-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.service-grid + .service-grid {
  margin-top: 0;
}

.service-card {
  background: var(--wp--preset--color--white);
  min-height: 18rem;
}

.service-card__index {
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding-bottom: var(--wp--preset--spacing--s);
}

.process-list,
.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li,
.check-list li {
  border-top: 1px solid rgb(16 52 69 / 0.18);
  padding: 1rem 0 1rem 2rem;
  position: relative;
}

.process-list li::before,
.check-list li::before {
  color: var(--wp--preset--color--blue-dark);
  content: '→';
  font-weight: 700;
  left: 0;
  position: absolute;
}

.product-card {
  background: var(--wp--preset--color--white);
  display: flex;
  flex-direction: column;
  min-height: 25rem;
}

.product-card .wp-block-buttons {
  margin-top: auto;
  padding-top: var(--wp--preset--spacing--m);
}

.software-table {
  margin-top: var(--wp--preset--spacing--l);
  overflow-x: auto;
}

.software-table table {
  border-collapse: collapse;
  min-width: 44rem;
  width: 100%;
}

.software-table th,
.software-table td {
  border-color: var(--wp--preset--color--line);
  padding: 1rem;
  text-align: center;
}

.software-table th:first-child,
.software-table td:first-child {
  text-align: left;
}

.course-query {
  gap: var(--wp--preset--spacing--m);
}

.query-card {
  background: var(--wp--preset--color--white);
  height: 100%;
}

.query-card .wp-block-post-featured-image {
  border-radius: calc(var(--radius-m) - 0.35rem);
  margin: calc(var(--wp--preset--spacing--m) * -1) calc(var(--wp--preset--spacing--m) * -1) var(--wp--preset--spacing--m);
  overflow: hidden;
}

.query-card .wp-block-post-title a {
  color: var(--wp--preset--color--ink);
  text-decoration: none;
}

.query-card .wp-block-post-title a:hover,
.query-card .wp-block-post-title a:focus-visible {
  color: var(--wp--preset--color--blue-dark);
}

.button,
.wp-element-button,
button[type='submit'],
input[type='submit'] {
  background: var(--wp--preset--color--blue);
  border: 1px solid var(--wp--preset--color--blue);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover,
.wp-element-button:hover,
button[type='submit']:hover,
input[type='submit']:hover {
  background: var(--wp--preset--color--blue-dark);
  border-color: var(--wp--preset--color--blue-dark);
  color: #fff;
}

.search-form {
  align-items: stretch;
  display: flex;
  gap: 0.5rem;
  max-width: 36rem;
}

.search-form label {
  flex: 1;
}

.search-field {
  background: #fff;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  width: 100%;
}

.navigation.pagination,
.post-navigation {
  margin-block: var(--wp--preset--spacing--l);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.page-numbers {
  align-items: center;
  border: 1px solid var(--wp--preset--color--line);
  border-radius: 999px;
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.5rem 0.9rem;
  text-decoration: none;
}

.page-numbers.current {
  background: var(--wp--preset--color--ink);
  border-color: var(--wp--preset--color--ink);
  color: #fff;
}

.empty-state,
.error-page {
  padding-block: clamp(4rem, 10vw, 9rem);
}

.comments-area {
  border-top: 1px solid var(--wp--preset--color--line);
  margin-block: var(--wp--preset--spacing--xl);
  padding-top: var(--wp--preset--spacing--l);
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment-body {
  border-bottom: 1px solid var(--wp--preset--color--line);
  padding-block: var(--wp--preset--spacing--m);
}

.comment-form input:not([type='submit']),
.comment-form textarea {
  border: 1px solid var(--wp--preset--color--line);
  border-radius: var(--radius-s);
  padding: 0.75rem;
  width: 100%;
}

.error-page > p:not(.eyebrow) {
  font-size: var(--wp--preset--font-size--body-l);
  max-width: 50ch;
}

.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--wp--preset--spacing--l);
}

.site-footer {
  background: var(--wp--preset--color--ink);
  color: #fff;
  margin-top: auto;
}

.site-footer__inner {
  display: grid;
  gap: var(--wp--preset--spacing--l);
  margin: 0 auto;
  max-width: calc(var(--wide) + var(--site-gutter) * 2);
  padding: var(--wp--preset--spacing--xl) var(--site-gutter) var(--wp--preset--spacing--m);
}

.site-footer a,
.site-footer .site-branding a {
  color: #fff;
}

.site-footer .custom-logo {
  filter: brightness(0) invert(1);
}

.site-footer__brand p {
  color: rgb(255 255 255 / 0.72);
  max-width: 36ch;
}

.footer-menu {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.footer-menu a,
.legal-menu a {
  text-decoration: none;
}

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

.site-footer__bottom {
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  color: rgb(255 255 255 / 0.7);
  display: flex;
  flex-wrap: wrap;
  font-size: var(--wp--preset--font-size--body-s);
  gap: 1rem 2rem;
  justify-content: space-between;
  padding-top: var(--wp--preset--spacing--m);
}

.site-footer__bottom p {
  margin: 0;
}

.legal-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

@media (min-width: 67.5625rem) {
  body.menu-is-open {
    overflow: auto;
  }

  .menu-toggle {
    display: none;
  }

  .primary-navigation__panel {
    background: transparent;
    color: inherit;
    height: auto;
    inset: auto;
    opacity: 1;
    overflow: visible;
    padding: 0;
    pointer-events: auto;
    position: static;
    transform: none;
    transition: none;
    visibility: visible;
  }

  .primary-menu {
    align-items: center;
    display: flex;
    gap: clamp(1rem, 2vw, 2rem);
  }

  .primary-menu > li {
    border: 0;
    position: relative;
  }

  .primary-menu a {
    color: var(--wp--preset--color--ink);
    font-size: 1rem;
    padding: 1rem 0;
  }

  .primary-menu .sub-menu {
    background: var(--wp--preset--color--ink);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow-card);
    left: -1rem;
    min-width: 15rem;
    opacity: 0;
    padding: 0.65rem;
    pointer-events: none;
    position: absolute;
    top: calc(100% - 0.25rem);
    transform: translateY(-0.5rem);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
    visibility: hidden;
  }

  .primary-menu .sub-menu a {
    border-radius: 0.35rem;
    color: #fff;
    padding: 0.55rem 0.7rem;
  }

  .primary-menu .sub-menu a:hover,
  .primary-menu .sub-menu a:focus-visible {
    background: rgb(255 255 255 / 0.1);
  }

  .primary-menu li:hover > .sub-menu,
  .primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .site-footer__inner {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(20rem, 1.1fr);
  }

  .site-footer__bottom {
    grid-column: 1 / -1;
  }
}

@media (max-width: 52rem) {
  .course-hero {
    grid-template-columns: 1fr;
  }

  .course-filters {
    grid-template-columns: 1fr 1fr;
  }

  .course-filters__actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 67.5rem) {
  .nav {
    padding: 0.625rem 0.75rem 0.625rem 1rem;
    top: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .nav nav:not(.primary-navigation__panel) {
    display: none;
  }

  .logo img {
    height: 1.4375rem;
    max-width: 8.75rem;
  }

  .nav-cta {
    font-size: 0.75rem;
    min-height: 2.25rem;
    padding-inline: 1rem;
  }

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

@media (max-width: 36rem) {
  :root {
    --header-height: 4.75rem;
  }

  .course-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-form,
  .error-page__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .course-filters {
    grid-template-columns: 1fr;
  }

  .course-filters__actions {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .breadcrumbs,
  .post-navigation {
    display: none;
  }

  body {
    color: #000;
    font: 11pt/1.4 serif;
  }

  a {
    color: inherit;
  }
}

/* Mobile menu: the toggle appears only when the inline links are hidden. */
.menu-toggle {
  display: none;
}

.primary-navigation__panel {
  border-radius: 20px;
}

@media (min-width: 67.5625rem) {
  /* Il menu completo resta inline solo quando c'è davvero spazio sufficiente. */
  .primary-navigation__panel {
    display: none !important;
  }

  .nav > nav:not(.primary-navigation__panel) .nav-links {
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: space-between;
  }

  /* Evita il blocco dello scroll dopo un ridimensionamento da mobile. */
  body.menu-is-open {
    overflow: auto;
  }
}

@media (max-width: 67.5rem) {
  .menu-toggle {
    display: inline-flex;
  }
}

/* Global Gutenberg design primitives.
   They are selectable from the block Styles panel and work on every page. */
:where(.entry-content, .editor-styles-wrapper) :where(
  .is-style-progesto-hero,
  .is-style-progesto-section,
  .is-style-progesto-section-tint
) {
  box-sizing: border-box;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-hero {
  background: var(--wp--preset--color--mist);
  padding-top: clamp(7rem, 12vw, 10rem);
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-section-tint {
  background: linear-gradient(180deg, #f5fafb, #edf6f7);
}

:where(.entry-content, .editor-styles-wrapper) :where(
  .is-style-progesto-hero,
  .is-style-progesto-section,
  .is-style-progesto-section-tint
) > :where(.alignwide, .is-style-progesto-grid, .is-style-progesto-split) {
  margin-inline: auto !important;
  max-width: none !important;
  width: var(--container) !important;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-split {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-grid {
  align-items: stretch;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-card {
  background: rgb(255 255 255 / 0.82);
  border: 1px solid rgb(4 77 118 / 0.14);
  border-radius: 1.5rem;
  box-shadow: 0 1rem 3rem rgb(32 77 100 / 0.08);
  box-sizing: border-box;
  height: 100%;
  padding: clamp(1.35rem, 2.5vw, 2rem);
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-card > :first-child {
  margin-top: 0;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-kicker {
  color: var(--wp--preset--color--blue-dark);
  font-size: var(--wp--preset--font-size--eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-check-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding-left: 0;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-check-list li {
  padding-left: 1.35rem;
  position: relative;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-check-list li::before {
  color: var(--wp--preset--color--blue);
  content: '→';
  font-weight: 700;
  left: 0;
  position: absolute;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-cta {
  background: var(--wp--preset--color--ink);
  border-radius: 1.75rem;
  box-sizing: border-box;
  color: #fff;
  margin-block: clamp(3.5rem, 7vw, 6rem);
  margin-inline: auto !important;
  max-width: none !important;
  padding: clamp(2rem, 5vw, 4.5rem);
  width: var(--container) !important;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-cta :where(h2, h3, p, label) {
  color: inherit;
}

:where(.entry-content, .editor-styles-wrapper) .is-style-progesto-cta > :first-child {
  margin-top: 0;
}

@media (max-width: 52rem) {
  :where(.entry-content, .editor-styles-wrapper) .is-style-progesto-split {
    grid-template-columns: 1fr;
  }

  :where(.entry-content, .editor-styles-wrapper) :where(
    .is-style-progesto-hero,
    .is-style-progesto-section,
    .is-style-progesto-section-tint
  ) {
    padding-block: clamp(3.5rem, 12vw, 6rem);
  }
}

@media (max-width: 47.5rem) {
  :root {
    --container: min(1240px, calc(100% - 32px));
  }
}



/* Single article header */
.entry-header--single {
  position: relative;
  overflow: hidden;
}
.entry-header--single.entry-header--has-image {
  background:
    linear-gradient(90deg, rgb(4 30 45 / 0.92), rgb(4 30 45 / 0.62)),
    var(--featured-image) center / cover no-repeat;
  color: #fff;
}
.entry-header--single.entry-header--has-image .entry-meta,
.entry-header--single.entry-header--has-image .entry-lead {
  color: rgb(255 255 255 / 0.82);
}
.entry-header--single.entry-header--has-image .entry-meta__category a {
  color: #fff;
  font-weight: 700;
}
.entry-header--single.entry-header--has-image h1 {
  color: #fff;
  max-width: 16ch;
}
.entry-header--single h1 {
  text-wrap: balance;
}
@media (max-width: 47.5rem) {
  .entry-header--single.entry-header--has-image {
    background-position: 58% center;
  }
}


/* Single articles use the global reading width and breathe below the header. */
.entry--single > .entry-content {
  margin-top: clamp(2.5rem, 5vw, 5rem);
}
.entry--single > .entry-content > :where(:not(.alignwide):not(.alignfull)),
.entry--single .content-width {
  max-width: none;
  width: var(--container);
}


/* Single article navigation follows the same global container. */
.entry--single ~ .navigation.pagination,
.entry--single ~ .post-navigation {
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
  width: var(--container);
}


/* Directional cues for single article navigation. */
.entry--single ~ .post-navigation .nav-previous a,
.entry--single ~ .post-navigation .nav-next a {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
}
.entry--single ~ .post-navigation .nav-previous a::before {
  content: '←';
  font-size: 1.25em;
  line-height: 1;
}
.entry--single ~ .post-navigation .nav-next a::after {
  content: '→';
  font-size: 1.25em;
  line-height: 1;
}


/* Native cross-document transition. The official WordPress plugin
   supplies selectors, named elements and the animation selected in Settings. */
@view-transition {
  navigation: auto;
}

/* Match the plugin's default fade duration when it is not active. */
::view-transition-group(*) {
  animation-duration: 400ms;
}

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

/* Progesto cursor halo: the native pointer stays visible and precise. */
.progesto-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .progesto-cursor {
    border: 1px solid rgb(22 142 172 / 0.42);
    border-radius: 50%;
    display: block;
    height: 1.25rem;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform: translate3d(-6rem, -6rem, 0) translate(-50%, -50%);
    transition: background-color 160ms ease, border-color 160ms ease, height 180ms cubic-bezier(0.16, 1, 0.3, 1), opacity 120ms ease, width 180ms cubic-bezier(0.16, 1, 0.3, 1);
    width: 1.25rem;
    z-index: 100001;
  }

  body.progesto-cursor-active .progesto-cursor {
    opacity: 1;
  }

  body.progesto-cursor-action .progesto-cursor {
    background: rgb(40 174 218 / 0.08);
    border-color: rgb(22 142 172 / 0.62);
    height: 2rem;
    width: 2rem;
  }

  body.progesto-cursor-pressed .progesto-cursor {
    background: rgb(22 142 172 / 0.14);
    height: 1rem;
    width: 1rem;
  }
}

/* Global typography utility: mirrors the body-xs preset from theme.json. */
.has-body-xs-font-size {
  font-size: 0.92rem !important;
}


/* A single native link covers each dynamic course card, including blank space. */
.course-card > .course-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}
.course-card > .course-card__link:focus-visible {
  outline: 3px solid #044d76;
  outline-offset: -4px;
}
.course-card > .course-card__link:hover .course-link,
.course-card > .course-card__link:focus-visible .course-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}
