

/*FIx per contenitori che fuoriescono*/
.container, .navbar-container, .services {
    max-width: 1600px;
    margin: 0 auto;
    overflow-x: hidden;
}


/* Hero Header */

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 30px;
    width: 100%;
    max-width: 1600px;
    gap: 4rem;
    margin: 0 auto;
    margin-top: 60px;
    min-height: calc(100vh - 80px);
    overflow-x: hidden;
}

.hero-left {
    flex: 1;
    color: white;
    max-width: 600px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.highlight1,
.highlight2{
    color: black;
}

.p-hero {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    opacity: 0.95;
    color: black;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
}

.button-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 60px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 30px;
    background: var(--primary-blue);
    color: white;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 41, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.button-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button-hero:hover::before {
    left: 100%;
}

.button-hero:hover {
    background-color: #3840dd;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 41, 107, 0.4);
}

.button-hero:active {
    transform: translateY(-1px);
}

.button-hero-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    width: 200px;
    height: 50px;
    background-color: white;
    color: black;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.button-hero-2:hover {
    background-color: var(--accent-yellow);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 130, 230, 0.4);
    border-color: var(--secondary-blue);
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 600px;
}


.hero-image img {
    position: relative;
    z-index: 1;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    background: rgba(219, 221, 230, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.hero-image img {
    height: 500px;
    width: 500px;
    min-width: 350px;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.hero-image:hover img {
    transform: scale(1.05) rotate(2deg);
}

/* ========== RESPONSIVE HERO ========== */
@media (max-width: 1024px) {
    .hero {
        padding: 40px 30px;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-image img {
        height: 400px;
        width: 400px;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
   
   .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 20px 20px;
        gap: 1.5rem;
        min-height: auto;
        margin-top: 100px;
    }

   .hero-left {
        order: 1;
        margin-top: 0;
    }

    .hero-right {
        order: 2;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .p-hero {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        align-items: center;
        gap: 1.2rem;
    }

    .button-hero {
        width: 280px;
        height: 60px;
        font-size: 1.2rem;
    }

    .button-hero-2 {
        width: 280px;
        height: 50px;
        font-size: 1rem;
        
    }
    
    .hero-image img {
        height: 350px;
        width: 350px;
        min-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 20px 20px;
        gap: 1.5rem;
        min-height: auto;

    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .p-hero {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-buttons {
        align-items: center;
        gap: 1rem;
    }
    
    .button-hero {
        width: 260px;
        height: 55px;
        font-size: 1.1rem;
    }
    
    .button-hero-2 {
        width: 260px;
        height: 45px;
        font-size: 0.95rem;
    }
    
    .hero-image img {
        height: 280px;
        width: 280px;
        min-width: 250px;
    }
}

.banner1 {
    background: transparent;
    padding: 30px;
}

.banner1-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    color: white;
}


@media (max-width: 480px ){
    .banner1-text h1 {
        font-size: 2rem;
    }
}


/*Info*/
.info {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 50px;
    overflow-x: hidden;
}

.testo-materie h1{
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    background: transparent;
    padding: 30px;
}

.info-img {
    position: relative;
    flex: 1;
    display:flex;
    justify-content: center;
    align-items: center;
}

.info-img img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.info-card {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 35%;
    max-width: 450px;
    background: white;
    color: black;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgb(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
    border: 4px solid #3152b7    
}

.info-card h2 {
    color: black;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
}

.info-card h3 {
    position: relative;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    padding-left: 50px;
}

.info-card h3::before {
    content: "✓";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #000;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-info {
    display: inline-block;
    background: var(--primary-blue);
    color: white;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 30px;
    align-self: flex-start;
}

.btn-info:hover {
    background: var(--secondary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 41, 107, 0.3);
}

/*Responsive Info*/

@media (max-width: 1024px) {
    .info {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }
    .info-card {
        position: static;
        transform: none;
        width: 100%;
        max-width: none;
        margin-top: 30px;
    }

    .info-card h1 {
        font-size: 1.8rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
   
    .info {
        padding: 40px 15px;
        gap: 30px;
    }
    .info-img
    .info-card {
        width: 100%;
    }
    .info-img {
        margin-bottom: 20px;
    }
    .info-card {
        position: static;
        transform: none;
        padding: 25px;
    }
    .info-card h1 {
        font-size: 1.6rem;
        text-align: center;
    }
    .info-card h3 {
        font-size: 1rem;
        margin-bottom: 15px;
        padding-left: 40px;
    }
    .btn-info {
        display: block;
        width: 100%;
        padding: 12px 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
.info-card h1 {
    font-size: 1.4rem;
}
.info-card h3 {
    font-size: 0.9rem;
    padding-left: 25px;
}

}


/* Responsive hero Section */
@media (max-width: 768px){
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 20% 20px;
    }

    .hero-left {
        order: 1;
        margin-top: o;
        text-align: left;
    }

    .hero-right {
        order: 2;
        margin-top: 1rem;
    }
    .hero-title {
        font-size: 2.5rem;
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .p-hero {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        align-items: center;
        gap: 1.2rem;
        
    }

    .button-hero {
        width: 280px;
        height: 60px;
        font-size: 1.2rem;
        
    }

    .button-hero-2 {
        width: 180px;
        height: 50px;
        font-size: 1rem;
    }

    
    .hero-image img{
        height: 350px;
        width: 350px;
        min-width: 300px;
    }
}

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

.testo-materie {
    margin-bottom: 30px;
    margin-top: 60px;
    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;
    }
}

/*3 box*/

.container-3 {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.container-3 h1 {
    font-size: 3.5rem;
    font-weight: 700;
}


.container-3 > div:first-child {
  text-align: center;
  margin-bottom: 50px;
}

.container-3 > div:first-child h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.boxes-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.step-box {
  padding: 40px 30px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  color: white;
  border: 4px solid #3152b7;
}

.box-1 {
  background: rgb(51, 107, 238);
}

.box-2 {
  background: rgb(51, 107, 238);
}

.box-3 {
  background: rgb(51, 107, 238);
}

.step-box h2 {
  font-size: 2rem;
  color: black;
  font-weight: 900;
  margin: 0 0 20px 0;
  opacity: 0.9;
}

.step-box h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.step-box p {
  font-size: 1.5rem;
  margin-top: 20px;
  line-height: 1.6;
  margin: 0 0 30px 0;
  flex-grow: 1;
  color: white;
}

.step-box img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  align-self: center;
  margin-top: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

/* Responsive-box */
@media (max-width: 768px) {
  .container-3 > div:first-child h1 {
    font-size: 2rem;
  }
  
  .boxes-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .step-box {
    padding: 30px 25px;
    min-height: 350px;
  }
  
  .step-box h1 {
    font-size: 2rem;
  }
  
  .step-box img {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .container-3 {
    padding: 40px 15px;
  }
  
  .container-3 > div:first-child h1 {
    font-size: 1.8rem;
  }
  
  .step-box {
    padding: 25px 20px;
    margin: 10px ;
    min-height: 350px;
  }
}

/* Data Info*/

.dati-section {
    background: rgb(51, 107, 238);
    padding: 80px 20px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 20px;
}
.dati-section::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 4PX;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
}
.dati-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 60px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-description {
    font-size: 1.1rem;
    line-height: 1.5;
    opacity: 0.95;
    max-width: 280px;
    margin: 0 auto;
    text-align: left;
}

.btn-info {
    display: inline-block;
    background: linear-gradient(45deg, #1e3a8a, #1e40af);
    color: white;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

}

.btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-info:hover:before {
    left: 100%;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(30, 58, 138, 0.6);
    background: linear-gradient(45deg, #1e40af, #2563eb);
}
.btn-info:active {
    transform: translateY(-1px);
}

.data-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}


/* Responsive Info */
        @media (max-width: 768px) {
            .data-section {
                padding: 60px 15px;
            }

            .main-title {
                font-size: 2rem;
                margin-bottom: 40px;
            }

            .stats-grid {
                flex-direction: column;
                align-items: center;
            }

            .stat-number {
                font-size: 3rem;
                text-align: left;
            }

            .stat-description {
                font-size: 1rem;
            }

            .btn-info {
                padding: 15px 35px;
                font-size: 1.1rem;
            }
        }

        @media (max-width: 480px) {
            .main-title {
                font-size: 1.8rem;
            }

            .stat-number {
                font-size: 2.5rem;
            }
        }

.scroll-indicatore {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgb(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
}

/* Customer's Reviews*/

.reviews {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
}
.reviews h1 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.review-container {
    justify-content: space-between;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.customer{
    background: white;
    border-radius: 25px;
    width: 100%;
    max-width: 350px;
    height: auto;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.customer:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.customer::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 6rem;
    color: #667eea;
    opacity: 0.2;
            
}

.customer h2 {
    color: #333;
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}
.customer h3 {
    text-align: center;
}
.customer p {
    margin-top: 5px;
}


.stars {
    display: flex;
    gap: 5px;
    margin-top: 20px;
    justify-content: center;
}
.star {
    color: #f7be14;
    font-size: 1.2rem;
}
/* Responsive Customer's Reviews */
@media (max-width: 480px) {
    .review-container {
        flex-direction: column;
        align-items: stretch;
    }

    .customer {
        width: 100%;
        max-width: 400px;
        margin-bottom: 20px;
        padding: 40px 30px;
    }

    .reviews h1 {
        font-size: 2rem;
    }
    .reviews p {
        margin-bottom: 8px;
    }
}


       
       
    
    
