.congress-page .hero .hero-overlay {
  align-items: center;
}

.congress-page .hero {
  overflow: hidden;
  background: #071225;
}

.congress-page .hero .hero-overlay-gradient {
  display: block;
  background:
    linear-gradient(90deg, rgba(6, 16, 42, 0.84) 0%, rgba(6, 16, 42, 0.62) 38%, rgba(6, 16, 42, 0.2) 68%, rgba(6, 16, 42, 0) 100%),
    linear-gradient(180deg, rgba(6, 16, 42, 0.12) 0%, rgba(6, 16, 42, 0.44) 100%);
}

.congress-page .hero .hero-bg-video {
  position: static;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.congress-page .hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-height) + 4rem) 20px 4rem;
}

.congress-page .hero h1 {
  max-width: 11ch;
  color: #fff;
  font-size: var(--fs-h1);
  line-height: 0.98;
  letter-spacing: 0;
}

.congress-page .hero .hero-content p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.65;
}

.congress-page .hero .hero-content .btn {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .congress-page .hero .hero-overlay-gradient {
    background:
      linear-gradient(90deg, rgba(6, 16, 42, 0.88) 0%, rgba(6, 16, 42, 0.66) 64%, rgba(6, 16, 42, 0.24) 100%),
      linear-gradient(180deg, rgba(6, 16, 42, 0.08) 0%, rgba(6, 16, 42, 0.48) 100%);
  }
}

.leone-history .main-title {
  width: auto;
  max-width: 11ch;
}

.leone-history .sub-title {
  max-width: 13ch;
}

.leone-history .row-top .history-img-col::after {
  display: none;
}

.cards-section {
  padding-top: var(--site-section-gap);
  padding-bottom: var(--site-section-gap);
}

.cards-section .section-title-cards {
  color: #121212;
  margin-bottom: 2rem;
  line-height: 1.1;
  letter-spacing: 0;
}

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

.card-overlay {
  border: 1px solid #e6e6e6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.card-overlay:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
}

.card-overlay-content {
  background: linear-gradient(to top, rgba(6, 22, 71, 0.86), transparent);
}

.card-overlay h3 {
  font-size: 1.35rem;
  margin-bottom: 0;
}

.congress-card-action {
  display: block;
  max-height: 2rem;
  margin-top: 0.75rem;
  overflow: hidden;
  color: #fff;
  font-weight: 700;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.25s ease;
}

.card-overlay:hover .congress-card-action,
.card-overlay:focus-visible .congress-card-action {
  transform: translateX(4px);
}

.congress-card-action [aria-hidden="true"] {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 0.25s ease;
}

.card-overlay:hover .congress-card-action [aria-hidden="true"],
.card-overlay:focus-visible .congress-card-action [aria-hidden="true"] {
  transform: translateX(6px);
}

.cards-section .card-overlay--disabled {
  cursor: default;
}

.cards-section .card-overlay--disabled .card-overlay-img {
  filter: grayscale(1);
  opacity: 0.45;
}

.cards-section .card-overlay--disabled:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.cards-section .card-overlay--disabled:hover .congress-card-action {
  transform: none;
}

.cards-section .card-overlay-img--2 {
  background-image: url("../../images/academy/17%20XCN%20Leone-243.webp");
}

.cards-section .card-overlay-img--4 {
  background-image: url("../../images/leoclub.webp");
}

.cards-section .card-overlay-img--symposium {
  background-image: url("../../images/Leone%20International%20Symposium%202027-%20Social%20SD.png");
  background-position: center 25%;
}

@media (max-width: 992px) {
  .cards-section {
    padding-top: var(--site-section-gap);
    padding-bottom: var(--site-section-gap);
  }

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

@media (prefers-reduced-motion: reduce) {
  .congress-page .card-overlay-img,
  .congress-page .card-overlay-content,
  .congress-page .congress-card-action,
  .congress-page .congress-card-action [aria-hidden="true"] {
    transition: none;
  }
}

/* Mantiene nascoste le sezioni sospese anche con display definito dai componenti. */
.congress-page [hidden] {
  display: none !important;
}
