/*==================================================text with parallax=====================================================*/

.image-container {
    position: relative;
    width: 100%;
    height: 100vh; 
    overflow: hidden;
    background-color: var(--black); 
}

.parallax {
  background-image: url("../content/certificazioni/ceritifcazioni-linguistiche-importanza.jpg");
  min-height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Text overlay */
.text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  color: var(--blue);
  text-shadow: 2px 2px 4px var(--black); 
  font-family: 'Viga';
}
  
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 50%;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: var(--white);
    text-shadow: 2px 2px 4px var(--black); 
    font-family: 'Viga';
}

/*=======================================================================================================*/


@media screen and (min-width: 1118px) {
  .image-container {
    height: 50vh;
  }
  .image-container img {
    width: 50%; 
    margin: 0 auto; 
  }
  .text-overlay {
    font-size: 4vw;
  }
  body {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1.5fr 1.2fr 0.7fr;
    grid-template-areas: 
      "main main"
      "content1 content2"
      "content3 content4"
      "footer footer";
    grid-gap: 0.2rem;
  }
}


@media screen and (max-width: 1118px) {
  .image-container {
    height: 100vh;
  }
  .text-overlay {
    font-size: 4vw;
  }

  body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1.5fr 1.2fr 0.8fr 0.5fr 0.7fr;
    grid-template-areas: 
      "main"
      "content1"
      "content2"
      "content3"
      "content4"
      "footer";
  }
}

h3{
font-size: 2rem;
font-family: var(--body-font);
color: var(--blue);
}
.content1{
  grid-area: content1;
  margin: 3rem;
  text-align: justify;
  font-size: 1.2rem;
}
.content2 {
    grid-area: content2;
    margin: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content2 img {
    width: 80%; 
    margin-bottom: 1rem; 
    max-width: 600px; 
    height: auto; 
}

.content2 img:last-child {
    margin-bottom: 0; 
}

.link-container {
    margin-top: 20px; 
    text-align: center; 
}

.link-container a {
    color: #0066cc; 
    text-decoration: none; 
    font-size: 1.2rem; 
    font-weight: bold; 
    padding: 10px 20px; 
    border-radius: 5px; 
    border: 2px solid #0066cc; 
    background-color: #e6f2ff; 
    display: inline-block; 
    transition: all 0.3s ease; 
}

.link-container a:hover {
    color: #004d99; 
    background-color: #cce0ff; 
    border-color: #004d99; 
}

.content4{
  grid-area: content4;
  margin: 3rem;
  text-align: justify;
  font-size: 1.2rem;
  margin-top: 9rem;
}

.content3 {
  grid-area: content3;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2rem;
}

.large-image {
  width: 100%;
  height: 50vh; 
  margin-bottom: var(--image-margin); 
  overflow: hidden; 
}

.large-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.small-images {
  display: flex;
  width: 100%;
  gap: var(--image-margin); 
}

.small-image {
  flex: 1;
  margin: 0;
  overflow: hidden; 
}

.small-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

:root {
  --image-margin: 1rem;
}
