/* VRC Academy - design tokens from Figma */
:root {
  --color-bg: #212222;
  --color-white: #ffffff;
  --color-accent: #d0ff00;
  --color-footer-bg: #f8f9fa;
  --color-btn-hover: #f8f9fa;
  --color-text-muted: #565656;
  --font-family: "Poppins", sans-serif;
  --container-max: 1180px;
  --page-padding: 93px;
  --mobile-gutter: 25px;
  --radius-pill: 100px;
  --radius-card: 20px;
  --card-gap: 24px;
  --card-width: 220px;
  --card-height: 402px;
  --nav-offset-top: 48px;
  --nav-logo-height: 48px;
  --nav-bar-height: calc(var(--nav-offset-top) + var(--nav-logo-height));
  --nav-block-height: calc(var(--nav-bar-height) + 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-accent {
  color: var(--color-accent);
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--page-padding) * 2);
  margin: 0 auto;
  padding-left: var(--page-padding);
  padding-right: var(--page-padding);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  min-height: 39px;
  white-space: nowrap;
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn--primary:focus {
  outline: none;
}

.btn--primary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn--large {
  padding: 14px 40px;
  font-size: 16px;
  min-height: 54px;
  min-width: 283px;
}

.btn--static {
  cursor: default;
  pointer-events: none;
}

.btn--ghost {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  min-height: 39px;
  font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}

/* Pulsanti: hover solo su desktop; su touch :active breve, poi stato default */
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn--primary):hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  .btn--primary:hover {
    background-color: var(--color-white);
    color: var(--color-bg);
    border-color: var(--color-accent);
  }

  .newsletter__submit:hover {
    background: var(--color-white);
    color: var(--color-bg);
  }

  .event-card__actions .btn--ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
}

@media (hover: none), (pointer: coarse) {
  .btn--primary:active {
    background-color: var(--color-white);
    color: var(--color-bg);
    border-color: var(--color-accent);
  }

  .newsletter__submit:active {
    background: var(--color-white);
    color: var(--color-bg);
  }

  .event-card__actions .btn--ghost:active {
    border-color: var(--color-accent);
    color: var(--color-accent);
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 1080px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  color: var(--color-white);
  padding-top: var(--nav-bar-height);
  box-sizing: border-box;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(33, 34, 34, 0.62);
  pointer-events: none;
}

/* Navigation — barra fissa visibile durante lo scroll */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: var(--nav-offset-top) var(--page-padding) 12px;
  max-width: calc(var(--container-max) + var(--page-padding) * 2);
  margin: 0 auto;
  width: 100%;
  background: transparent;
}

.nav::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: min(280px, 38vh);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(0, 0, 0) 0%,
    rgba(0, 0, 0, 0.72) 28%,
    rgba(0, 0, 0, 0.38) 52%,
    rgba(0, 0, 0, 0.12) 72%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nav.nav--scrolled::before {
  opacity: 1;
}

.hero .nav::before,
.page-header--overlay .nav::before,
.docenti-section--intro > .nav.nav--docenti::before {
  opacity: 0;
}

.hero .nav.nav--scrolled::before,
.page-header--overlay .nav.nav--scrolled::before,
.docenti-section--intro > .nav.nav--docenti.nav--scrolled::before {
  opacity: 1;
}

.nav__logo {
  position: relative;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 48px;
}

.nav__logo-img {
  height: 48px;
  width: auto;
  transition: opacity 0.25s ease;
}

.nav__logo-img--hover {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

.nav__logo:hover .nav__logo-img--default,
.nav__logo:focus-visible .nav__logo-img--default {
  opacity: 0;
}

.nav__logo:hover .nav__logo-img--hover,
.nav__logo:focus-visible .nav__logo-img--hover {
  opacity: 1;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 89px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 1;
  min-width: 0;
}

.nav__links a {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--color-accent);
}

.nav__links a.is-active {
  color: var(--color-accent);
}

.nav__links .nav__link--disabled {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav__dropdown-toggle:hover,
.nav__dropdown-toggle:focus,
.nav__dropdown-toggle:active,
.nav__dropdown.is-open .nav__dropdown-toggle {
  color: var(--color-accent);
  background: transparent;
  outline: none;
  box-shadow: none;
}

.nav__dropdown-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.nav__dropdown.is-open .nav__dropdown-chevron {
  transform: rotate(-135deg) translateY(2px);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 100;
}

.nav__dropdown-menu::before {
  content: "";
  display: block;
  width: 1px;
  height: 12px;
  margin: 8px 0 10px;
  background: var(--color-accent);
}

.nav__dropdown.is-open .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-menu li {
  text-align: left;
}

.nav__dropdown-menu a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.nav__dropdown-menu a:hover,
.nav__dropdown-menu a:focus,
.nav__dropdown-menu a:active,
.nav__dropdown-menu a.is-active {
  color: var(--color-accent);
  background: transparent;
  outline: none;
  box-shadow: none;
}

.nav__toggle {
  display: none;
  position: relative;
  z-index: 101;
  flex-shrink: 0;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav__close {
  display: none;
  position: absolute;
  top: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 36px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__close:hover,
.nav__close:focus-visible {
  color: var(--color-accent);
  outline: none;
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--page-padding) 120px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  gap: 30px;
}

.hero__titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.hero__title-line {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero__title-main {
  display: block;
  font-size: clamp(48px, 7.5vw, 109px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero__tagline {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  max-width: 1180px;
}

.hero__body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  max-width: 1060px;
  white-space: pre-line;
}

.hero__cta.btn--large {
  min-width: 283px;
  margin-top: 10px;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--color-bg);
}

.section__title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 64px;
  line-height: 1.1;
}

/* Course cards */
.cards-grid {
  display: grid;
  gap: var(--card-gap);
  column-gap: var(--card-gap);
  row-gap: var(--card-gap);
}

.cards-grid--courses,
.cards-grid--online {
  display: grid;
  gap: var(--card-gap);
  grid-template-columns: repeat(4, var(--card-width));
  justify-content: center;
  width: 100%;
}

.cards-presenza-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

/* Corsi in presenza: desktop 5+3, mobile un carosello orizzontale */
.cards-presenza-carousel {
  display: grid;
  grid-template-columns: repeat(5, var(--card-width));
  gap: var(--card-gap);
  justify-content: center;
  width: 100%;
}

.cards-presenza-carousel .course-card:nth-child(6) {
  grid-column: 2;
}

.cards-presenza-carousel .course-card:nth-child(7) {
  grid-column: 3;
}

.cards-presenza-carousel .course-card:nth-child(8) {
  grid-column: 4;
}

a.course-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.course-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  width: var(--card-width);
  height: var(--card-height);
  max-width: var(--card-width);
  flex-shrink: 0;
  cursor: pointer;
  isolation: isolate;
}

.course-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 0;
}

.course-card__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  border-radius: inherit;
  /* Clip arrotondato: evita angoli vivi con mix-blend/opacity su mobile */
  clip-path: inset(0 round var(--radius-card));
  background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0.75) 35%, transparent 100%);
  mix-blend-mode: multiply;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.course-card:hover .course-card__gradient,
.course-card:focus-visible .course-card__gradient {
  opacity: 1;
}

.course-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 16px;
  pointer-events: none;
}

.course-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 8px;
}

.course-card__desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.9;
}

/* Newsletter */
.newsletter {
  background: var(--color-accent);
  padding: 80px 0;
}

.newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.newsletter__title {
  font-size: clamp(24px, 2.8vw, 40px);
  font-weight: 700;
  color: var(--color-bg);
  text-transform: uppercase;
  max-width: 1176px;
  line-height: 1.2;
}

.newsletter__subtitle {
  font-size: clamp(22px, 2.5vw, 36px);
  font-weight: 700;
  color: var(--color-bg);
}

.newsletter__lead {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-bg);
  max-width: 900px;
}

.newsletter--events {
  margin-top: 8px;
  padding: 72px 0;
}

.newsletter--events .newsletter__inner {
  gap: 20px;
}

.newsletter--events .newsletter__title {
  text-transform: none;
  font-size: clamp(22px, 3vw, 34px);
}

.newsletter--events .newsletter__subtitle {
  font-size: clamp(20px, 2.4vw, 30px);
  margin-top: 4px;
}

.newsletter--events .newsletter__status {
  color: var(--color-bg);
}

.newsletter--events .newsletter__status.is-error {
  color: #8b0000;
}

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  margin-top: 16px;
}

.vrc-form-embed {
  width: 100%;
  max-width: 1180px;
  margin-top: 16px;
}

.vrc-form-embed iframe {
  display: block;
  width: 100%;
  background: transparent;
}

.vrc-form-embed--newsletter {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter__form input[type="email"] {
  flex: 1 1 280px;
  min-width: 0;
  width: auto;
  height: 55px;
  padding: 0 32px;
  border: 2px solid var(--color-bg);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-bg);
  outline: none;
}

.newsletter__form input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.newsletter__form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(33, 34, 34, 0.25);
}

.newsletter__submit {
  flex: 0 0 auto;
  height: 55px;
  padding: 0 32px;
  border: 2px solid var(--color-bg);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.newsletter__submit:focus {
  outline: none;
}

.newsletter__submit:focus-visible {
  outline: 2px solid var(--color-bg);
  outline-offset: 3px;
}

.newsletter__status {
  width: 100%;
  max-width: 1180px;
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-bg);
}

.newsletter__status.is-error {
  color: #b30000;
}

/* Footer */
.footer {
  background: var(--color-footer-bg);
  color: var(--color-bg);
  padding: 68px 0 32px;
  border-top: 3px solid var(--color-accent);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer__brand {
  flex: 0 1 auto;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 16px;
}

.footer__logo img {
  height: 49px;
  width: auto;
}

.footer__columns {
  display: flex;
  gap: 80px;
}

.footer__col--policies {
  display: flex;
  flex-direction: column;
}

.footer__heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-bg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer__links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-bg);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--color-accent);
}

.footer__info {
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-bg);
  max-width: 300px;
}

.footer__info strong {
  font-weight: 700;
}

.footer__info a {
  color: var(--color-bg);
  text-decoration: none;
}

.footer__info a:hover {
  color: var(--color-accent);
}

.footer__copyright-wrap {
  text-align: center;
  padding-top: 24px;
}

.footer__copyright {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-bg);
  text-align: center;
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.footer__social a {
  display: inline-flex;
  transition: opacity 0.2s ease;
}

.footer__social a:hover {
  opacity: 0.65;
}

.footer__social img {
  width: 24px;
  height: 24px;
}

/* Inner pages header — spacer per la barra fixed (z-index sopra overlay menu mobile) */
.page-header {
  position: relative;
  z-index: 100;
  width: 100%;
  min-height: var(--nav-block-height);
  background: transparent;
  pointer-events: none;
}

.page-header:not(.page-header--overlay) {
  background: var(--color-bg);
}

.page-header--overlay {
  min-height: var(--nav-bar-height);
  background: transparent;
}

.page-header .nav {
  pointer-events: auto;
}

/* Why section */
.why-section {
  padding: 80px 0;
  text-align: center;
}

.why-section__title {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.why-section__text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--color-white);
}

/* Course detail pages */
.page-courses {
  background: var(--color-bg);
  padding-top: 0;
}

.page-corsi-online .course-block,
.page-corsi-presenza .course-block {
  padding: 0 0 70px;
}

.page-corsi-online .course-block:first-of-type,
.page-corsi-presenza .course-block:first-of-type {
  padding-top: 0;
}

.page-corsi-online .course-block:last-of-type,
.page-corsi-presenza .course-block:last-of-type {
  padding-bottom: 100px;
}

.course-block {
  padding: 80px 0 100px;
  border-bottom: 1px solid rgba(248, 249, 250, 0.06);
}

.course-block:last-of-type {
  border-bottom: none;
}

.course-block__title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 48px;
  line-height: 1.1;
  color: var(--color-white);
}

.course-block__grid {
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  column-gap: 80px;
  align-items: start;
}

.page-corsi-online .course-block__grid,
.page-corsi-presenza .course-block__grid {
  column-gap: 100px;
}

.course-block__aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.course-block__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.course-block__aside-text {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-white);
}

.course-block__image-wrap {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  flex-shrink: 0;
}

.course-block__image {
  width: 100%;
  height: auto;
  aspect-ratio: 460 / 637;
  object-fit: cover;
  display: block;
  border-radius: 30px;
}

.course-block__image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 45%, #000 100%);
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 30px;
}

.course-block__image-wrap:hover::after {
  opacity: 1;
}

.course-block__intro,
.course-block__text {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-white);
}

.course-block__intro {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-white);
}

.course-block__label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-transform: none;
}

.course-block__price {
  margin: 28px 0 32px;
}

.course-block__price-value {
  font-family: var(--font-family);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0;
}

.course-block__list {
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-footer-bg);
  white-space: pre-line;
}

.course-block__actions {
  margin-top: 8px;
}

.course-block__actions .btn--large {
  width: 100%;
  max-width: 460px;
}

/* Sedi page */
.page-sedi {
  background: var(--color-bg);
}

.page-sedi-hero {
  position: relative;
  min-height: 1443px;
  background: var(--color-bg);
}

.page-sedi-hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/images/sedi-hero.jpg") center / cover no-repeat;
  opacity: 0.4;
}

.page-sedi-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 34, 34, 0.55);
  pointer-events: none;
}

.page-sedi-hero__content {
  position: relative;
  z-index: 2;
  padding: 120px 0 80px;
}

.sedi-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0;
}

.sedi-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sedi-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 388px;
  max-width: 100%;
  height: 41px;
  background: var(--color-footer-bg);
  border-radius: 100px;
  padding: 0 16px 0 20px;
  flex-shrink: 0;
}

.sedi-search input {
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-bg);
  flex: 1;
  min-width: 0;
  outline: none;
}

.sedi-search input::placeholder {
  color: var(--color-bg);
  opacity: 0.65;
}

.sedi-search__pin {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-bg);
  cursor: pointer;
  flex-shrink: 0;
}

.sedi-search__pin-icon {
  display: block;
}

.sedi-search-result {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 40px;
}

.sedi-search-result strong {
  color: var(--color-accent);
  font-weight: 700;
}

.sedi-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 80px;
}

.sedi-location {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.sedi-location.is-dimmed {
  opacity: 0.45;
}

.sedi-location.is-highlighted .sedi-location__name {
  text-decoration: underline;
  text-underline-offset: 6px;
}

.sedi-location__name {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sedi-location__address,
.sedi-location__status {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.4;
}

.sedi-location__card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 400px;
  text-decoration: none;
}

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

.sedi-location__card--active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 50%, #000 100%);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.sedi-location__card--active:hover::after,
.sedi-location__card--active:focus-visible::after {
  opacity: 0;
}

.sedi-location__card-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.sedi-location__card--active:hover .sedi-location__card-cta,
.sedi-location__card--active:focus-visible .sedi-location__card-cta {
  opacity: 1;
}

/* About Us page */
.page-about {
  background: var(--color-bg);
}

.page-about-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 1443px;
  background: var(--color-bg);
}

.page-about-hero__bg {
  position: absolute;
  inset: 0;
  background: url("assets/images/about-us-bg.jpg") center / cover no-repeat;
  opacity: 0.4;
}

.page-about-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 34, 34, 0.55);
  pointer-events: none;
}

.page-about-hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 160px 0 100px;
  box-sizing: border-box;
}

.about-grid {
  display: grid;
  grid-template-columns: 460px minmax(0, 700px);
  justify-content: space-between;
  gap: 48px 80px;
  align-items: start;
  width: 100%;
}

.about-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
}

.about-title {
  margin: 0;
  line-height: 0;
}

.about-title__img {
  width: 460px;
  max-width: 100%;
  height: auto;
}

.about-cta {
  align-self: flex-start;
}

.about-body {
  max-width: 700px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);
}

.about-body p + p {
  margin-top: 1em;
}

.about-lead {
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent);
  margin-bottom: 1.25em;
}

.about-body .text-accent {
  color: var(--color-accent);
  font-weight: inherit;
}

/* Enrollment & forms */
.page-enrollment,
.page-enrollment-hub,
.page-policy {
  background: var(--color-bg);
}

.enrollment-hub,
.enrollment-page {
  padding: 48px 0 80px;
}

.enrollment-page-title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.enrollment-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  max-width: 820px;
  margin-bottom: 12px;
}

.enrollment-intro a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.enrollment-intro a:hover {
  color: var(--color-white);
}

.enrollment-back-links {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 40px;
}

.enrollment-payment-notice {
  display: block;
  max-width: 820px;
  margin: 0 0 48px;
  padding: 24px 28px;
  background: rgba(208, 255, 0, 0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
}

.enrollment-payment-notice__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.enrollment-payment-notice__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-white);
  margin: 0;
}

.enrollment-payment-notice__text strong {
  font-weight: 700;
}

.enrollment-back-links a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.enrollment-back-links a:hover {
  color: var(--color-white);
}

.enrollment-section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
}

.enrollment-courses__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--card-gap);
  margin-bottom: 48px;
}

.enrollment-courses__grid--presenza {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.enrollment-courses__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  border: 2px solid rgba(208, 255, 0, 0.25);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.enrollment-courses__card:hover {
  border-color: rgba(208, 255, 0, 0.25);
  transform: none;
  box-shadow: none;
}

.enrollment-courses__card:hover .enrollment-courses__label {
  color: var(--color-accent);
}

.enrollment-courses__card.is-selected {
  border-color: var(--color-accent);
}

.enrollment-courses__card.is-selected .enrollment-courses__label {
  color: var(--color-accent);
}

.enrollment-courses__card--altro {
  justify-content: center;
  min-height: 200px;
  padding: 24px;
}

.enrollment-courses__img {
  width: 100%;
  aspect-ratio: 220 / 280;
  object-fit: cover;
}

.enrollment-courses__label {
  display: block;
  padding: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.35;
}

.enrollment-selected {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.enrollment-selected::before {
  content: "Corso selezionato: ";
  color: var(--color-white);
}

.enrollment-form-panel {
  max-width: 900px;
  padding: 40px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 48px;
}

.form-fieldset {
  border: none;
  margin: 0 0 40px;
  padding: 0;
}

.form-legend {
  font-family: var(--font-family);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 20px;
  padding: 0;
  width: 100%;
}

.form-hint {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.1);
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: 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='%23d0ff00' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-select option {
  color: var(--color-bg);
  background: var(--color-white);
}

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

.form-check-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.form-check-group--consents .form-check span {
  line-height: 1.45;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--color-white);
  cursor: pointer;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form-check a {
  color: var(--color-accent);
  text-decoration: underline;
}

.form-check--inline {
  display: inline-flex;
  margin-right: 8px;
}

.form-input--inline {
  display: inline-block;
  width: min(280px, 100%);
  margin-top: 8px;
}

.enrollment-form__actions {
  margin-top: 8px;
}

.enrollment-form__status {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-accent);
}

.enrollment-form__status.is-error {
  color: #ff6b6b;
}

.enrollment-success {
  max-width: 720px;
  margin-top: 32px;
  padding: 48px 40px;
  border-radius: 24px;
  background: rgba(208, 255, 0, 0.08);
  border: 2px solid var(--color-accent);
}

.enrollment-success__title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.enrollment-success__text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  margin-bottom: 24px;
}

.enrollment-hub__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.enrollment-hub__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 32px;
  border-radius: 24px;
  border: 2px solid rgba(208, 255, 0, 0.3);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.enrollment-hub__card:hover {
  border-color: rgba(208, 255, 0, 0.3);
  transform: none;
}

.enrollment-hub__card-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
}

.enrollment-hub__card-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-white);
  flex: 1;
}

.enrollment-hub__card .btn {
  align-self: flex-start;
  pointer-events: none;
}

/* Modulo iscrizione CRM (iframe iMedia) */
.crm-embed-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.crm-embed-wrap iframe {
  border: none;
  display: block;
  width: 100%;
  min-height: 600px;
}

/* Policy page */
.policy-page {
  padding: 48px 0 80px;
}

.policy-page__inner {
  max-width: 820px;
}

.policy-page__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.policy-page__updated {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px;
}

.policy-content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-white);
}

.policy-section {
  margin-bottom: 32px;
}

.policy-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.policy-section ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 8px;
}

.policy-section li + li {
  margin-top: 6px;
}

.policy-section a {
  color: var(--color-accent);
  text-decoration: underline;
}

.policy-page__back {
  margin-top: 40px;
  font-weight: 600;
}

.policy-page__back a {
  color: var(--color-accent);
}

.policy-page__links {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 600;
}

.policy-page__links a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Contatti */
.contact-page__faq-link {
  margin-top: 32px;
  font-size: 15px;
  font-weight: 600;
}

.contact-page__faq-link a {
  color: var(--color-accent);
  text-decoration: underline;
}

.contact-card {
  padding: 32px 36px;
  border: 2px solid rgba(208, 255, 0, 0.35);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.25);
}

.contact-card__brand {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.contact-card__project {
  font-size: 15px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 32px;
}

.contact-list__row {
  display: grid;
  grid-template-columns: minmax(100px, 140px) 1fr;
  gap: 12px 24px;
  align-items: start;
}

.contact-list dt {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin: 0;
}

.contact-list dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.contact-list a {
  color: var(--color-white);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--color-accent);
}

.contact-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-card__btn-phone {
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
}

.contact-card__btn-phone:hover,
.contact-card__btn-phone:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer__links a.is-active {
  color: var(--color-accent);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid rgba(208, 255, 0, 0.25);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.faq-item__question {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  color: var(--color-white);
}

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

.faq-item__question::after {
  content: "+";
  float: right;
  font-size: 22px;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1;
}

.faq-item[open] .faq-item__question::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.faq-item__answer p {
  margin: 0;
}

.faq-item__answer a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
}

.faq-page__cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .faq-item__question {
    padding: 16px var(--mobile-gutter);
    font-size: 15px;
  }

  .faq-item__answer {
    padding: 0 var(--mobile-gutter) 18px;
  }

  .faq-page__cta .btn--primary {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 24px var(--mobile-gutter);
  }

  .contact-list__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-card__actions {
    flex-direction: column;
  }

  .contact-card__actions .btn--primary,
  .contact-card__btn-phone {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

.policy-toc {
  margin-bottom: 32px;
  padding: 20px 24px;
  border: 1px solid rgba(208, 255, 0, 0.25);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.2);
}

.policy-toc ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-toc a {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
}

.policy-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--color-white);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.policy-table th,
.policy-table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  background: rgba(208, 255, 0, 0.12);
  color: var(--color-accent);
  font-weight: 700;
}

.policy-table code {
  font-size: 13px;
  color: var(--color-accent);
}

.newsletter__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 100%;
  width: 100%;
  max-width: 1180px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  text-align: left;
  color: var(--color-bg);
}

.newsletter__consent input {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-bg);
  cursor: pointer;
}

.newsletter__consent a {
  color: var(--color-bg);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.newsletter__consent a:hover,
.newsletter__consent a:focus-visible {
  color: #000000;
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 16px var(--page-padding) 20px;
  background: rgba(33, 34, 34, 0.97);
  border-top: 2px solid var(--color-accent);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 0.35s ease, visibility 0.35s ease;
  visibility: hidden;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  visibility: visible;
}

.cookie-consent[hidden] {
  display: none !important;
}

/* Spazio sotto il contenuto mentre il banner cookie è visibile */
html.cookie-consent-active body {
  padding-bottom: 200px;
}

@media (max-width: 768px) {
  html.cookie-consent-active body {
    padding-bottom: 260px;
  }
}

.cookie-consent__inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.cookie-consent__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-accent);
}

.cookie-consent__text {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.cookie-consent__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cookie-consent__reject {
  padding: 10px 22px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.cookie-consent__reject:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.cookie-consent__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-consent__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent__actions .btn--primary,
  .cookie-consent__reject {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .policy-table {
    display: block;
    overflow-x: auto;
  }
}

/* Blog & Eventi content pages */
.content-page {
  padding: 48px 0 80px;
}

.content-page__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.content-page__intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  max-width: 720px;
  margin-bottom: 32px;
}

.content-page__placeholder {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
}

.page-blog .nav__dropdown-toggle,
.page-eventi .nav__dropdown-toggle,
.page-blog-article .nav__dropdown-toggle {
  color: var(--color-accent);
}

/* Blog hub */
.blog-hub {
  padding: 40px 0 88px;
}

.blog-hub__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.blog-hub__intro {
  font-size: 16px;
  line-height: 1.65;
  max-width: 760px;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, 0.92);
}

.blog-hub__list {
  display: grid;
  gap: 32px;
}

.blog-card__link {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 32px;
  align-items: stretch;
  border: 1px solid rgba(208, 255, 0, 0.2);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-card__link:hover,
.blog-card__link:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  outline: none;
}

.blog-card__media {
  min-height: 220px;
  background: #111;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.blog-card__media--logo {
  background: #0a0a0a;
}

.blog-card__media--logo img {
  object-fit: contain;
  padding: 20px;
}

.blog-card__body {
  padding: 28px 28px 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.blog-card__title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.blog-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
}

.blog-card__cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Eventi hub */
.events-hub {
  padding: 40px 0 88px;
}

.events-hub__title {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.events-hub__intro {
  font-size: 16px;
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.92);
}

.events-hub__heading {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 28px;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 56px;
}

.event-card {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 0;
  align-items: stretch;
  box-sizing: border-box;
  padding: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(208, 255, 0, 0.2);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.event-card--featured {
  border-color: var(--color-accent);
  order: -1;
}

.event-card--past {
  opacity: 0.92;
}

.event-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.event-card--featured:hover {
  border-color: var(--color-accent);
}

.event-card__media {
  position: relative;
  min-height: 220px;
  height: 100%;
  background: #111;
}

.event-card__media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.event-card__media--logo {
  background: #0a0a0a;
}

.event-card__media--logo img {
  object-fit: contain;
  padding: 20px;
  background: #0a0a0a;
}

.event-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.event-card__badge--soon {
  background: var(--color-accent);
  color: var(--color-bg);
}

.event-card__badge--past {
  background: rgba(0, 0, 0, 0.65);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.event-card__body {
  padding: 28px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.event-card__meta {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
}

.event-card__meta strong {
  color: var(--color-accent);
  font-weight: 700;
}

.event-card__title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
}

.event-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  flex: 1;
}

.event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.event-card__actions .btn--ghost {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.events-cta {
  margin-top: 16px;
  padding: 40px 32px;
  text-align: center;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(208, 255, 0, 0.1) 0%, rgba(0, 0, 0, 0.35) 100%);
  border: 1px solid rgba(208, 255, 0, 0.22);
}

.events-cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 16px;
}

.events-cta p {
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
}

.events-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.page-eventi-article .nav__dropdown-toggle {
  color: var(--color-accent);
}

/* Blog article */
.blog-article-page {
  padding: 32px 0 88px;
}

.blog-article__breadcrumb {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.7);
}

.blog-article__breadcrumb a {
  color: var(--color-accent);
  transition: opacity 0.2s ease;
}

.blog-article__breadcrumb a:hover {
  opacity: 0.85;
}

.blog-article__hero {
  margin-bottom: 40px;
}

.blog-article__hero-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-card);
  margin-bottom: 24px;
}

.blog-article__hero-image--contain {
  object-fit: contain;
  background: #0a0a0a;
  padding: 32px;
}

.blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-article__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(208, 255, 0, 0.45);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
}

.blog-article__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.blog-article__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.blog-article__abstract {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 900px;
  margin-bottom: 40px;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent);
}

.blog-article__content {
  max-width: 820px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.blog-article__content > p {
  margin-bottom: 1.25em;
}

.blog-article__content h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  margin: 2.5em 0 0.85em;
  color: var(--color-white);
}

.blog-article__content h2:first-of-type {
  margin-top: 0;
}

.blog-article__content ul {
  list-style: disc;
  padding-left: 1.35em;
  margin: 0 0 1.25em;
}

.blog-article__content li {
  margin-bottom: 0.5em;
}

.blog-article__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-article__content a:hover {
  opacity: 0.9;
}

.blog-article__media {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.blog-article__media > h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-article__media-intro {
  font-size: 16px;
  line-height: 1.65;
  max-width: 820px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.88);
}

.blog-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.blog-media-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(208, 255, 0, 0.18);
  border-radius: var(--radius-card);
  background: rgba(0, 0, 0, 0.22);
  height: 100%;
}

.blog-media-card__source {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.blog-media-card__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  flex: 1;
}

.blog-media-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.blog-media-card .btn {
  align-self: flex-start;
  margin-top: auto;
  font-size: 13px;
  padding: 10px 22px;
}

.blog-article__cta-block {
  margin-top: 56px;
  padding: 40px 32px;
  text-align: center;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(208, 255, 0, 0.12) 0%, rgba(0, 0, 0, 0.35) 100%);
  border: 1px solid rgba(208, 255, 0, 0.25);
}

.blog-article__cta-block h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 16px;
}

.blog-article__cta-block p {
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
}

.blog-article__back {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.blog-article__back:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 1200px) {
  :root {
    --page-padding: 48px;
  }

  .cards-presenza-carousel {
    grid-template-columns: repeat(3, var(--card-width));
  }

  .cards-presenza-carousel .course-card:nth-child(6),
  .cards-presenza-carousel .course-card:nth-child(7),
  .cards-presenza-carousel .course-card:nth-child(8) {
    grid-column: auto;
  }

  .course-block__grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 20px;
  }

  .page-corsi-online .course-block__grid,
  .page-corsi-presenza .course-block__grid {
    column-gap: unset;
  }

  .course-block__aside {
    display: contents;
  }

  .course-block__image-wrap {
    order: 1;
    max-width: 460px;
  }

  .course-block__aside-text {
    order: 2;
  }

  .course-block__content {
    order: 3;
  }

  .course-block__actions {
    order: 4;
    margin-top: 48px;
  }

  .course-block__actions .btn--large {
    max-width: 100%;
  }

  .sedi-locations {
    grid-template-columns: 1fr;
  }

  .sedi-title {
    font-size: clamp(40px, 10vw, 64px);
  }

  .sedi-search-row {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .sedi-search {
    width: 100%;
  }

  .page-sedi-hero {
    min-height: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-aside {
    gap: 32px;
  }

  .cards-grid--online {
    grid-template-columns: repeat(2, var(--card-width));
  }
}

/* Navbar: drawer sotto 1520px (evita overlap logo / voci) */
@media (max-width: 1520px) {
  .nav__toggle {
    display: flex;
    margin-left: auto;
  }

  .nav__close {
    display: none;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex: none;
    background: var(--color-bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 100px 32px 32px;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 110;
    pointer-events: none;
  }

  .nav__toggle {
    z-index: 111;
  }

  .nav__menu.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    flex-shrink: 1;
  }

  .nav__dropdown {
    width: 100%;
  }

  .nav__dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .nav__dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    z-index: auto;
    transition: max-height 0.25s ease, visibility 0.2s ease;
  }

  .nav__dropdown-menu::before {
    height: 10px;
    margin: 6px 0 8px;
  }

  .nav__dropdown-menu li {
    text-align: left;
  }

  .nav__dropdown-menu a {
    padding: 4px 0;
    font-size: 15px;
  }

  .nav__dropdown.is-open .nav__dropdown-menu {
    visibility: visible;
    max-height: 120px;
    transform: none;
    opacity: 1;
  }

  .nav__menu .btn--primary {
    width: 100%;
  }

  .nav__toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
  }

  .nav__links a,
  .nav__dropdown-toggle,
  .nav__links .nav__link--disabled {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding-block: 10px;
  }

  .nav__dropdown-menu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 0;
  }

  .nav__dropdown.is-open .nav__dropdown-menu {
    max-height: 160px;
  }

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

  /* Overlay sotto .nav (z-index 100): scurisce tutta la pagina, il drawer resta luminoso */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1),
      visibility 0s linear 0.35s;
  }

  body.nav-menu-open::before {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1), visibility 0s;
  }

  body.nav-menu-open .nav__menu.is-open {
    z-index: 110;
    background: var(--color-bg);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
  }

  @media (prefers-reduced-motion: reduce) {
    body::before,
    .nav__menu {
      transition: none;
    }
  }
}

/* Navbar desktop stretta: riduce spazi prima del drawer */
@media (min-width: 1521px) and (max-width: 1720px) {
  .nav__menu {
    gap: 32px;
  }

  .nav__links {
    gap: 16px;
  }

  .nav__links a,
  .nav__dropdown-toggle,
  .nav__links .nav__link--disabled {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 90vh;
  }

  .page-about-hero {
    min-height: auto;
  }

  .docenti-section {
    padding-bottom: 80px;
  }

  .docenti-section--intro {
    padding-bottom: 96px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .enrollment-hub__grid {
    grid-template-columns: 1fr;
  }

  .enrollment-form-panel {
    padding: 24px 20px;
  }

  .blog-card__link {
    grid-template-columns: 1fr;
  }

  .blog-card__body {
    padding: 24px;
  }

  .blog-media-grid {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-card__body {
    padding: 24px 20px 20px;
  }

}

@media (max-width: 768px) {
  :root {
    --page-padding: var(--mobile-gutter);
    --nav-offset-top: 24px;
    --nav-block-height: calc(var(--nav-bar-height) + 24px);
  }

  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .hero__content {
    padding: 32px var(--mobile-gutter) 72px;
    gap: 24px;
  }

  .hero__title-main {
    font-size: clamp(36px, 11vw, 64px);
  }

  .hero__body {
    font-size: 14px;
    line-height: 1.6;
  }

  .hero__cta.btn--large,
  .btn--large {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section__title {
    margin-bottom: 40px;
    font-size: clamp(32px, 9vw, 48px);
  }

  .course-block {
    padding: 48px 0 64px;
  }

  .page-corsi-online .course-block,
  .page-corsi-presenza .course-block {
    padding-bottom: 56px;
  }

  .course-block__title {
    margin-bottom: 28px;
    font-size: clamp(28px, 8vw, 40px);
  }

  .course-block__image-wrap {
    width: 100%;
    max-width: 100%;
  }

  .course-block__actions .btn--large {
    width: 100%;
    max-width: 100%;
  }

  /* About Us mobile */
  .page-about-hero__content.container {
    padding: 96px var(--mobile-gutter) 56px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-aside {
    width: 100%;
    gap: 28px;
    align-items: flex-start;
  }

  .about-title {
    width: 100%;
  }

  .about-title__img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .about-cta {
    align-self: flex-start;
    margin-top: 0;
  }

  .about-body {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }

  /* Corsi in presenza: un solo carosello orizzontale (tutte le card in fila) */
  .cards-presenza-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--card-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
    grid-template-columns: none;
  }

  .cards-presenza-carousel::-webkit-scrollbar {
    display: none;
  }

  .cards-presenza-carousel .course-card {
    grid-column: auto;
    scroll-snap-align: center;
    flex: 0 0 var(--card-width);
    width: var(--card-width);
    max-width: var(--card-width);
  }

  /* Corsi online: carosello separato */
  .cards-grid--online {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--card-gap);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .cards-grid--online::-webkit-scrollbar {
    display: none;
  }

  .cards-grid--online .course-card {
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  /* Mobile: gradiente fluido durante swipe (opacità da JS, clip-path per angoli) */
  .course-card {
    transform: translateZ(0);
  }

  .course-card__gradient {
    mix-blend-mode: normal;
    opacity: var(--card-gradient-opacity, 0);
    background: linear-gradient(
      to top,
      #000000 0%,
      rgba(0, 0, 0, 0.88) 38%,
      rgba(0, 0, 0, 0.35) 62%,
      transparent 100%
    );
    transition: opacity 0.45s cubic-bezier(0.33, 1, 0.68, 1);
  }

  .cards-presenza-carousel.is-carousel-scrolling .course-card__gradient,
  .cards-grid--online.is-carousel-scrolling .course-card__gradient {
    transition-duration: 0.12s;
    transition-timing-function: ease-out;
  }

  .course-card:active .course-card__gradient {
    opacity: 1;
    transition-duration: 0.2s;
  }

  .footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer__columns {
    flex-direction: column;
    gap: 32px;
    width: 100%;
  }

  .footer__col--policies {
    width: 100%;
  }

  .footer__social {
    margin-top: 8px;
  }

  .newsletter {
    padding: 56px 0;
  }

  .newsletter__form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .newsletter__form input[type="email"] {
    flex: 1 1 auto;
    width: 100%;
    font-size: 16px;
  }

  .newsletter__submit {
    width: 100%;
  }

  .newsletter__title {
    font-size: clamp(22px, 6vw, 32px);
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
  }

  .enrollment-courses__grid,
  .enrollment-courses__grid--presenza {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .enrollment-courses__card {
    width: 100%;
  }

  .enrollment-hub__card {
    padding: 28px 20px;
  }

  .enrollment-form-panel {
    padding: 20px 16px;
  }

  .enrollment-page-title {
    font-size: clamp(30px, 8vw, 40px);
  }

  .blog-article-page {
    padding: 24px 0 64px;
  }

  .blog-article__hero-image--contain {
    padding: 16px;
  }

  .blog-article__abstract {
    font-size: 16px;
    padding-left: 12px;
  }

  .blog-article__title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .blog-article__cta-block {
    padding: 28px 20px;
  }

  .blog-card__body {
    padding: 20px var(--mobile-gutter);
  }

  .events-cta {
    padding: 28px 20px;
  }

  .events-cta__buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .events-cta__buttons .btn {
    width: 100%;
    max-width: 100%;
  }

  /* Sedi — gutter 25px su tutti gli elementi */
  .page-sedi-hero__content.container {
    padding: 96px var(--mobile-gutter) 48px;
  }

  .page-sedi .sedi-search-row,
  .page-sedi .sedi-search-result,
  .page-sedi .sedi-locations,
  .page-sedi .sedi-location {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-sedi .sedi-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 20px;
  }

  .page-sedi .sedi-title {
    margin-bottom: 0;
    font-size: clamp(40px, 10vw, 56px);
  }

  .page-sedi .sedi-search {
    width: 100%;
    max-width: 100%;
  }

  .page-sedi .sedi-search__pin {
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
  }

  .page-sedi .sedi-search-result {
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.5;
  }

  .page-sedi .sedi-locations {
    gap: 40px;
  }

  .page-sedi .sedi-location__name {
    font-size: clamp(24px, 6vw, 30px);
  }

  .page-sedi .sedi-location__address,
  .page-sedi .sedi-location__status {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .page-sedi .sedi-location__card {
    width: 100%;
    max-width: 100%;
    min-height: 280px;
  }

  .form-check {
    padding: 6px 0;
    min-height: 44px;
    align-items: flex-start;
  }

  .form-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
  }

  .policy-page {
    padding: 32px 0 56px;
  }

  .content-page {
    padding: 32px 0 56px;
  }

  .why-section {
    padding: 56px 0;
  }

  /* Home — caroselli card edge-to-edge (titolo sezione resta con gutter) */
  .cards-presenza-wrap,
  .section--dark .container > .cards-grid--online {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .cards-presenza-carousel,
  .cards-grid--online {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
    scroll-padding-inline: var(--mobile-gutter);
  }

  .blog-hub {
    padding: 32px 0 56px;
  }

  .blog-hub__intro {
    font-size: 15px;
  }

  .event-card__body {
    padding: 24px 20px 20px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-padding: var(--mobile-gutter);
  }

  .cards-presenza-carousel,
  .cards-grid--online {
    scroll-snap-type: x mandatory;
  }

  .hero__tagline {
    font-size: 14px;
  }

  .teacher-course-title {
    font-size: clamp(24px, 7vw, 30px);
  }

  .docenti-title {
    font-size: clamp(36px, 10vw, 48px);
    margin-bottom: 32px;
  }

  .nav__menu {
    width: min(300px, 92vw);
    padding: 88px 24px 28px;
  }
}

/* Docenti page */
.page-docenti {
  background: var(--color-bg);
}

.docenti-main {
  display: flex;
  flex-direction: column;
}

.docenti-section {
  position: relative;
  overflow: hidden;
  padding: 0 0 120px;
}

.docenti-section--intro {
  min-height: 1080px;
  padding-bottom: 140px;
}

.docenti-section__bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  opacity: 0.4;
}

.docenti-section--intro .docenti-section__bg {
  background-image: url("assets/docenti/backgrounds/arti-visive.jpg");
}

.docenti-section--fotografia .docenti-section__bg {
  background-image: url("assets/docenti/backgrounds/fotografia.jpg");
  background-position: center top;
}

.docenti-section--teatro .docenti-section__bg {
  background-image: url("assets/docenti/backgrounds/teatro.jpg");
}

.docenti-section--scrittura .docenti-section__bg {
  background-image: url("assets/docenti/backgrounds/scrittura-creativa.jpg?v=screenwriting");
}

.docenti-section--oreficeria .docenti-section__bg {
  background-image: url("assets/docenti/backgrounds/oreficeria.jpg");
  background-position: center;
}

.docenti-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(33, 34, 34, 0.55);
  pointer-events: none;
}

.docenti-section__inner {
  position: relative;
  z-index: 2;
  padding-top: 48px;
}

.docenti-section--intro .docenti-section__inner {
  padding-top: 0;
}

.docenti-section--intro {
  padding-top: var(--nav-bar-height);
}

.nav--docenti {
  margin-bottom: 0;
}

.docenti-section--intro .docenti-title {
  margin-top: 89px;
}

.docenti-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 89px;
}

.teacher-card {
  display: flex;
  align-items: flex-start;
  gap: 135px;
  max-width: 1214px;
}

.teacher-card--stacked {
  margin-top: 109px;
}

.teacher-card__media {
  flex: 0 0 521px;
  max-width: 521px;
  width: 100%;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
}

.teacher-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 50%, #000 100%);
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-radius: 30px;
}

.teacher-card__media:hover::after {
  opacity: 1;
}

.teacher-card__photo {
  width: 100%;
  height: auto;
  aspect-ratio: 521 / 637;
  object-fit: cover;
  border-radius: 30px;
  filter: grayscale(100%);
}

.teacher-card__content {
  flex: 1;
  min-width: 0;
  max-width: 558px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.teacher-course-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 24px;
}

.teacher-role {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.teacher-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.teacher-bio {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);
}

.teacher-bio p + p {
  margin-top: 1em;
}

.teacher-cta {
  margin-top: 32px;
  align-self: flex-start;
}

.docenti-section--fotografia,
.docenti-section--teatro {
  padding-top: 120px;
}

.docenti-section--scrittura,
.docenti-section--oreficeria {
  padding-top: 120px;
}

.docenti-section--oreficeria {
  padding-bottom: 160px;
}

@media (max-width: 1200px) {
  .teacher-card {
    gap: 64px;
  }

  .teacher-card__media {
    flex-basis: 420px;
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .docenti-section--intro {
    min-height: auto;
  }

  .docenti-title {
    font-size: clamp(40px, 10vw, 64px);
    margin-bottom: 48px;
  }

  .teacher-card,
  .teacher-card--stacked {
    flex-direction: column;
    gap: 32px;
    margin-top: 0;
  }

  .teacher-card--stacked {
    margin-top: 64px;
  }

  .teacher-card__media {
    flex-basis: auto;
    max-width: 100%;
  }

  .teacher-card__content {
    max-width: none;
  }

  .nav--docenti {
    margin-bottom: 48px;
  }

  .teacher-course-title {
    font-size: clamp(28px, 6vw, 36px);
  }
}

/* Art Shop page */
.page-art-shop {
  background: var(--color-bg);
}

.hero--art-shop {
  min-height: 100vh;
  min-height: 1024px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero--art-shop .hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(33, 34, 34, 0.55) 0%,
    rgba(33, 34, 34, 0.72) 50%,
    rgba(33, 34, 34, 0.88) 100%
  );
}

.art-shop-hero {
  position: relative;
  z-index: 5;
  flex: 1;
  width: 100%;
  max-width: calc(var(--container-max, 1180px) + var(--page-padding, 93px) * 2);
  margin: 0 auto;
  padding: 60px var(--page-padding, 93px) 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
}

.art-shop-hero__title {
  font-size: clamp(56px, 9vw, 128px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0;
}

.art-shop-hero__card {
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.art-shop-hero__event {
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-accent);
  text-transform: uppercase;
  margin: 0;
}

.art-shop-hero__date {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-white);
  margin: 0;
}

.art-shop-hero__body {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-white);
  margin: 0;
}

.art-shop-hero__body a {
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.art-shop-hero__body a:hover {
  opacity: 0.8;
}

.art-shop-hero__cta {
  margin-top: 18px;
  align-self: flex-start;
  min-width: 240px;
}

@media (max-width: 1100px) {
  .art-shop-hero {
    padding: 40px var(--page-padding, 93px) 80px;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .hero--art-shop {
    min-height: auto;
  }

  .art-shop-hero {
    padding: 24px var(--mobile-gutter, 20px) 64px;
    gap: 40px;
  }

  .art-shop-hero__title {
    font-size: clamp(48px, 14vw, 84px);
  }

  .art-shop-hero__card {
    max-width: 100%;
  }

  .art-shop-hero__cta {
    width: 100%;
    min-width: 0;
  }
}

