@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Montserrat", sans-serif; /*rubik*/
}


a.custom-link {
  color: #000; /* Cambia il colore del testo a quello desiderato, ad esempio, nero (#000) */
  text-decoration: none; /* Rimuovi la sottolineatura del link se non desideri */
}

.esercizi{
  display: grid;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

body {
  background: linear-gradient(to right, #e2e2e2, #c9d6ff);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html {
  scroll-behavior: smooth;
}

h1 {
  color: #002659;
  font-weight: 600;
}

h2 {
  color: #ffffff;
  font-weight: 600;
}

h3 {
  color: #000000;
  font-weight: 600;
}

h5 {
  font-weight: 600;
}

header {
  border-bottom: 1px solid #dee2e6;
}

.navbar-brand {
  font-size: 24px;
  font-weight: bold;
}

.navbar-nav .nav-item {
  margin-right: 20px;
}

.navbar-nav .nav-link {
  color: #333;
  font-size: 18px;
  transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
  color: #007bff;
}


.container {
  margin-top: 50px;
  flex: 1;
}

.btn-primary {
  background-color: #002659;
  border-color: #002659;
}

.btn-primary:hover {
  background-color: #1764c4;
  border-color: #1764c4;
}

.text-light {
  color: #fff;
}
footer {
  color: #fff;
  text-align: center;
  background-color: #040026;
  padding: 20px 0;
  min-height: 100px;
  width: 100% !important;
}


.wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  align-content: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.card {
  position: relative;
  width: 325px;
  height: 450px;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 10px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.poster {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.poster::before {
  content: '';
  position: absolute;
  bottom: -45%;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: .3s;
}

.card:hover .poster::before {
  bottom: 0;
}

.poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s;
}

.card:hover .poster img {
  transform: scale(1.1);
}

.details {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: auto;
  padding: 1.5em 1.5em 2em;
  background: #000a;
  backdrop-filter: blur(16px) saturate(120%);
  transition: .3s;
  color: #fff;
  z-index: 2;
}

.card:hover .details {
  bottom: 0;
}

.details h1,
.details h2 {
  font-weight: 700;
}

.details h1 {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.details h2 {
  font-weight: 400;
  font-size: 1em;
  margin-bottom: 10px;
  opacity: .6;
}

.details .rating {
  position: relative;
  margin-bottom: 15px;
  display: flex;
  gap: .25em;
}

.details .rating i {
  color: #e3c414;
}

.details .rating span {
  margin-left: 0.25em;
}

.details .desc {
  color: #fff;
  opacity: .8;
  line-height: 1.5;
  margin-bottom: 1em;
}


.card2 {
	transition: transform 0.2s;
	margin: 10px;
	width: 100%;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  }
  
  .card-columns2 {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px; /* Spazio tra le carte */
  }
  
  .card2:hover {
    transform: scale(1.1);
  }


