
/*Hero-landing*/


.land-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 20px 10px px 20px;
  gap: 15vh;
}


.container-left {
  flex: 1;
  max-width: 500px;
}

.container-left h1 {
  padding: 0px 0px 15px;
  font-size: 3.5rem;
  font-weight: bold;
  color: white;
  line-height: 1.2;
}

.container-left h2 {

  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 10px;
  opacity: 0.9;

}

.materie-evidenziate {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: black;
  min-width: 120px;
  text-align: left;
  background: yellow;
  padding: 2px 8px;
  animation: highlight 0.8s ease-out forwards;
}

.container-right {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  background:#fff;  
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.2);

}

.container-right form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;

}

.container-right h2 {
  font-weight: 800;
}

.container-right .contact-inputs { 
  padding: 16px 19px;
}

.materie-evidenziate {
  position: relative;
  display: inline-block;
  font-weight: 600;
  color: black;
  min-width: 120px;
  text-align: left;
}

.materie-evidenziate::before {
  content: '';
  position:absolute; inset:0 -5px 2px -5px;
  background: linear-gradient(120deg, transparent 50%, #ffeb3b 50%);
  background-size: 220% 100%;
  background-position: 100% 0;
  z-index:-1; border-radius:3px;
  animation: highlight .8s ease-out forwards;
}


/* Nascondi campo honeypot su tutti i dispositivi */
input[name="bot-field"] {
 position: absolute !important;
 left: -9999px !important;
 top: -9999px !important;
 visibility: hidden !important;
 opacity: 0 !important;
 width: 0 !important;
 height: 0 !important;
 border: none !important;
 margin: 0 !important;
 padding: 0 !important;
}


@keyframes highlight {
  0% {transform: scale(0.8); opacity: 0;
    
  }
  100% {
    transform: scale(1); opacity: 1
  }
}

.price-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: yellow;
  margin: 20px 0;
}


/* Contact Form */


.container-right {
  max-height: 600px;
  max-width: 450px;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.container-right h2 {
  font-weight: 800;
  color: black;
  margin-bottom: 30px;
  text-align: center;
  font-size: 1.8rem;
}

.container-right form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.materie-evidenziate.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease-out;
}

.materie-evidenziate.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease-out;
}

.contact-inputs {
 width: 350px;
 height: 50px;
 outline: none;
 font-weight: 500;
 font-size: 16px;
 color: black;
 border-radius: 50px;
}

.contact-inputs:focus {
 border: 2px solid black;
}

.contact-inputs::placeholder {
 color: black;
}

.contact-inputs-message {
  width: 350px;
  height: 80px;
}

.btn-form{
 display: inline-flex;
 align-items: center;
 justify-content: center;
 margin-top: 20px;
 padding: 15px 15px 15px 15px;
 width: 350px;
 height: 60px;
 font-size: 30px;
 font-weight: bold;
 color: black;
 gap: 10px;
 text-align: center;
 border-radius: 50px;
 transition: all 0.3s ease;
 background: #FFD500;
 box-shadow: 0 4px 15px rgba(0, 41, 107, 0.3);
 transition: all 0.3s ease;
 border: none;
 cursor: pointer;
 position: relative;
 overflow: hidden;
}


/*Responsive Hero-land*/

@media (max-width: 768px) {
  .land-hero {
    flex-direction: column;
    margin-top: 90px;
    height: auto;
    min-height: 100vh;
    padding: 40px 20px;
    justify-content: center;
    gap: 10px;
  }

  .container-left h1 {
    font-weight: bold;
    font-size: 2.5rem;
    line-height: 1.25;
    text-align: left;
  }

  .container-left h2 {
    font-weight: 800;
    font-size: 1.5rem;
  }

}




/* Materie */


/*Le nostre Materie*/
.materie {
    max-width: 1200px;
    margin: 0 auto;
}

.testo-materie {
    margin-bottom: 30px;
    margin-top: 25px;
    font-size: 3rem;
}

.testo-materie h1 {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.schede-materie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.materia-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.materia-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.materia-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.materia-card:hover::before {
    opacity: 1;
}

.icon-materie img{
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.materia-card h2 {
    text-align: left;
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.4;
    margin-bottom: 15px;
    margin-top: 15px;
}

.materia-card p {
    text-align: left;
    color: #000000;
    font-size: 0.95rem;
    line-height: 1.6;
}

.card-ribbon {
    position: absolute;
    top: 10px;
    right: -50px;
    width: 250px;
    padding:10px 10px;
    display: block;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    transform: rotate(20deg);
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    border-radius: 3px;
    pointer-events: none;
    z-index: 10;

}

/*Responsive Materie*/

@media (max-width: 1025px) { /*Desktop: 3 colonne*/
    .schede-materie {
        grid-template-columns: repeat(3, 1fr);
    }
    
}


@media (max-width: 768px) {
    .materie {
        padding: 40px 15px;
    }

    .schede-materie {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 500px;
        margin: 0 auto;
    }
    .testo-materie h1 {
        font-size: 2rem;
    }
    .materia-card {
        padding: 25px 15px;
        min-height: 220px;
    }

    .materia-card h2 {
        font-size: 1.5rem;
        text-align: left;
    }

    .materia-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        text-align: left;
    }
    .icon-materie {
        width: 80px;
        height: 80px;
        margin-bottom: 30px;
    }   
    .card-ribbon {
        text-align: center;
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px;
        transform:rotate(20deg);
    }

}

@media (max-width: 480px) {
    .testo-materie h1 {
        font-size: 2rem;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 0 20px;
    }
    
    .materie {
        padding: 0 20px;
    }
}

/*Banner*/
.banner-call {
  margin-top: 20vh;
  max-width: 100px;
  padding: 15px 15px;
  background: rgb(51, 107, 238);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 40px;
  padding: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  color: #ffffff;
  margin: 10 10;
  

}

.banner-call h1 {
    font-size: 2.5rem;
    padding: 10px 10px;
    font-weight: 700;
    text-align: center;
    text-align: left;
    line-height: 1.2;
    margin: 0;


}


.btn-banner-call {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    letter-spacing: 0.5px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #ffffff;
    background-color: var(--primary-blue);
    border: 2px solid black;
    border-radius: 35px;
    padding: 10px 10px 10px 10px;
    text-align: center;
    cursor: pointer;
    align-items: center;
    width: 280px;
    height: 60px;
    margin-bottom: 10px;
}

.banner-call .banner-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.banner-img img {
    max-width: 100%;
    width: 350px;
    height: auto;
}

/*Responsive Banner*/
@media (max-width: 480px){
    .banner-call {
        flex-direction: column-reverse;
        align-items: center;
        padding: 1rem;
        margin: 10px 10px 10px;
        max-height: 300
    }
    .banner-call .banner-text {
        align-items: center;
        text-align: center;
    }

    .banner-call .banner-img {
        margin-bottom: 1rem;
    }

    .banner-img img {
        width: 80%;
        max-height: none;
    }

    .btn-banner-call {
        width: 100%;
        max-width: none;
        margin-top: 1rem;
    }
}
