/* Prevenzione overflow orizzontale */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Hero Section Migliorata */
.hero-section {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 10vh;
    padding: 0 2vh;
    width: 100%;
    max-width: 100vw;
    margin-bottom: 50vh;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    padding: 0 2vh;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin: 0 0 1vh 0;
    line-height: 1.1;
    background: linear-gradient(135deg, #c9c9c9 0%, #fff 50%, #c9c9c9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    max-width: 100%;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #999;
    margin: 0 0 4vh 0;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2vh;
    margin: 4vh 0;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5vh;
    background: rgba(50, 50, 50, 0.3);
    border-radius: 1vh;
    border: 1px solid #444243;
    backdrop-filter: blur(10px);
    min-width: 100px;
    max-width: 120px;
    flex: 1;
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: #c9c9c9;
    line-height: 1;
}

.stat-label {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    color: #999;
    margin-top: 0.5vh;
    text-align: center;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 2vh;
    margin-top: 4vh;
    flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
    padding: 1.5vh 3vh;
    border-radius: 1vh;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-width: 150px;
    font-family: 'Montserrat-Alt1', sans-serif;
}

.cta-primary {
    background: linear-gradient(135deg, #494949 0%, #666565 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(73, 73, 73, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(73, 73, 73, 0.4);
}

.cta-secondary {
    background: transparent;
    color: #c9c9c9;
    border: 2px solid #444243;
}

.cta-secondary:hover {
    background: rgba(73, 73, 73, 0.2);
    border-color: #666565;
}

/* Innovation Section Migliorata */
.innovation-section {
    padding: 2vh 2vh 4vh 2vh;
    margin: 4vh auto 20vh auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 2vh;
    margin-top: 8vh;
}

.suite{
    margin-bottom: -20vh;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #c9c9c9;
    margin: 0 0 1vh 0;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #999;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2vh;
}

.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2vh;
    width: 100%;
}

.innovation-card {
    padding: 2.5vh;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    border-radius: 2vh;
    transition: all 0.3s ease;
    background: rgba(40, 40, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.innovation-card:hover {
    transform: translateY(-3px);
    background: rgba(40, 40, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.card-icon {
    color: #c9c9c9;
    margin-bottom: 1.5vh;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 3rem;
    flex-shrink: 0;
}

.card-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
    overflow: visible;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1vh;
    margin: 2vh 0;
    flex-grow: 1;
}

.feature-tag {
    background: rgba(73, 73, 73, 0.3);
    color: #c9c9c9;
    padding: 0.5vh 1vh;
    border-radius: 2vh;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #444243;
}

/* Pulsante all'interno delle innovation-card */
.innovation-card .common_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: auto;
    width: 100%;
    max-width: 160px;
    height: 4vh;
    min-height: 35px;
    padding: 1vh 2vh;
    border-radius: 1.5vh;
    background-color: #131313;
    color: #c9c9c9;
    border: 1px solid #444243;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Montserrat-Alt1', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1;
    visibility: visible;
}

.innovation-card .common_btn:hover {
    background-color: #494949;
    border-color: #666565;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features-section {
    padding: 8vh 2vh;
    margin-top: 6vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3vh;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2vh;
}

.feature-item {
    text-align: center;
    padding: 3vh 2vh;
    background: rgba(50, 50, 50, 0.2);
    border-radius: 2vh;
    border: 1px solid #444243;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(50, 50, 50, 0.4);
}

.feature-icon {
    color: #c9c9c9;
    margin-bottom: 1.5vh;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.5rem;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
    display: block;
    overflow: visible;
}

.feature-item h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c9c9c9;
    margin: 0 0 1vh 0;
}

.feature-item p {
    color: #999;
    font-size: 1rem;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    padding: 8vh 2vh;
    margin-top: 8vh;
    text-align: center;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.cta-content {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 3vh 2vh;
    /* background: rgba(50, 50, 50, 0.3); */
    /* border: 1px solid #444243; */
    border-radius: 2vh;
    backdrop-filter: blur(10px);
}

.cta-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #c9c9c9;
    margin: 0 0 2vh 0;
}

.cta-content p {
    font-size: 1.1rem;
    color: #999;
    margin: 0 0 4vh 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 2vh;
    flex-wrap: wrap;
}

/* Footer migliorato */
footer {
    padding: 3vh 0;
    margin-top: 10vh;
    border-top: 1px solid #444243;
    clear: both;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        margin-top: 8vh;
        padding: 0 1vh;
    }
    
    .hero-stats {
        gap: 1.5vh;
        margin: 3vh 0;
    }
    
    .stat-item {
        min-width: 80px;
        max-width: 100px;
        padding: 1vh;
    }
    
    .innovation-grid {
        grid-template-columns: 1fr;
        gap: 2vh;
        padding: 0 1vh;
        margin: 0 auto;
        max-width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2vh;
        padding: 0 1vh;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5vh;
    }
    
    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 250px;
    }
    
    .innovation-section,
    .features-section,
    .cta-section {
        padding: 6vh 2vh;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 60vh;
        margin-top: 6vh;
    }
    
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
    
    .innovation-section,
    .features-section,
    .cta-section {
        padding: 4vh 2vh;
        margin-left: auto;
        margin-right: auto;
    }
    .cta-section {
        margin-top: 20vh;
    }
    
    .cta-content {
        padding: 3vh 1.5vh;
    }
    
    .stat-item {
        min-width: 70px;
        max-width: 90px;
    }
    
    .hero-stats {
        gap: 1vh;
    }
}

/* Animazioni aggiuntive */
.feature-item,
.stat-item {
    animation: slideInUp 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.6s; }
.stat-item:nth-child(3) { animation-delay: 0.7s; }

/* Migliora l'aspetto del testo */
.text_p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    color: #999;
    word-wrap: break-word;
    max-width: 100%;
}

.card_title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #c9c9c9;
    margin-bottom: 1vh;
    word-wrap: break-word;
    max-width: 100%;
}

/* Assicura che tutti gli elementi rispettino i limiti */
.hero-content,
.section-header,
.innovation-grid,
.features-grid,
.cta-content {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevenzione overflow per elementi specifici */
.feature-tag {
    background: rgba(73, 73, 73, 0.3);
    color: #c9c9c9;
    padding: 0.5vh 1vh;
    border-radius: 2vh;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 500;
    border: 1px solid #444243;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
