      /* SMOOTH SCROLL */
        html {
          scroll-behavior: smooth;
        }

        /* NAVBAR */
        .navbar {
          transition: background 0.3s ease, padding 0.3s ease;
        }

        /* NAVBAR SCROLLED */
        .navbar.scrolled {
          background: rgba(0,0,0,0.85);
          padding: 10px 0;
        }

        /* HERO */
        .hero {
          height: 100vh;
          background: url('https://images.unsplash.com/photo-1517649763962-0c623066013b') center/cover no-repeat;
          position: relative;
          display: flex;
          align-items: center;
          justify-content: center;
          text-align: center;
          color: white;
        }

        /* OVERLAY */
        .hero::before {
          content: "";
          position: absolute;
          inset: 0;
          background: rgba(0,0,0,0.4);
        }

        /* HERO CONTENT */
        .hero-content {
          position: relative;
          z-index: 2;
          animation: fadeUp 1s ease;
        }

        /* ANIMAZIONE */
        @keyframes fadeUp {
          from {
            opacity: 0;
            transform: translateY(30px);
          }
          to {
            opacity: 1;
            transform: translateY(0);
          }
        }

        /* SEZIONI */
        section {
          padding: 80px 0;
        }

        /* DEMO COLORS */
        #corsi { background: #f5f5f5; }
        #news { background: #e9ecef; }

#corsi {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  padding: 40px;
}

#corsi .card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

#corsi .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

#corsi .card-image {
  position: relative;
  width: 100%;
  padding-top: 60%; /* rapporto 5:3 */
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

#corsi .card:hover .card-image {
  transform: scale(1.05);
}

#corsi .card-title {
  position: absolute;
  bottom: 8px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

#corsi .card-body {
  padding: 14px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#corsi .card-info {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

#corsi .button {
  align-self: flex-start;
  padding: 8px 14px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

#corsi .button:hover {
  background: #0b5ed7;
}}


/*Settore NEWS*/

#news {
  background: #f8f9fa;
}

.news-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.12);
}

.news-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.news-text {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}
.card {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.card h2 {
  position: relative;
  z-index: 1;
  font-size: 2rem;
}

.card:hover {
  transform: scale(1.05);
}

/* base */
.cta {
  opacity: 0;
  transition: opacity 0.3s;
}

/* desktop */
@media (min-width: 768px) {
  .card:hover .cta {
    opacity: 1;
  }
}

/* mobile */
@media (max-width: 767px) {
  .cta {
    opacity: 1;
    font-size: 0.9rem;
    margin-top: 8px;
  }
}