.video-background{
    position: relative;
}
.video-background video{
    width: 100%;
}
.video-background .span-inner-video{
    position: absolute;
    bottom: 40px;
    left: 15%;
}
.video-background .span-inner-video span{
    font-size: 40px;
    color: #fff;
    font-weight: 300;
}


section.school .intro-paragraph{
    font-size: 13px;
}
section.school .school-list{
    display: grid;
    grid-template-columns: auto auto auto auto;
    width: 100%;
    column-gap: 35px;
    row-gap: 23px;
}
section.school .school-list a {
    color: #fff;
    font-weight: 500;
    font-size: 25px;
    transition: 0.4s;
    cursor: pointer;
}
section.school .school-list a.selected {
    color: var(--yellow-comics);
    text-decoration: underline;
    transition: 0.4s;
}
.school-img{
    max-width: 400px;
}
.school-img img{
    width: 100%;
}

@media screen and (max-width: 991px) {
    .school-img {
        max-width: 250px;
    }
    section.school .school-list{
        grid-template-columns: repeat(3, 1fr);
    }
}
@media screen and (max-width: 768px) {
    section.school .school-list{
        grid-template-columns: repeat(2, 1fr);
    }
    .video-background .span-inner-video{
        bottom: 20px;
        left: 20px;
    }
    .video-background .span-inner-video {
        font-size: 20px;
    }

}



.school-list2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  width: 100%;
}

.school-list2 a {
  position: relative;
  display: block;
  font-weight: 700;
  font-size: 30px;
  padding: 20px;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #fff;
  transition: color 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.school-list2 a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: var(--yellow-comics);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: -1; /* 👈 manda il giallo sotto il testo */
  pointer-events: none;
  will-change: transform;
}




.school-list2 a:hover::before {
  transform: translateY(0);
}

.school-list2 a:hover {
  color: #000;
}

@media screen and (max-width: 768px) {
  .school-list2 {
    grid-template-columns: 1fr;
  }
}

.intro-header {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.intro-icon img {
  width: 100px;
  height: auto;
  flex-shrink: 0;
	margin-top: 10px;
}

.intro-text {
  max-width: 600px;
}

@media screen and (max-width: 768px) {
  .intro-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .intro-icon img {
    width: 50px;
  }
}
