/* Stile per la pagina Chi Siamo */

/* Sezione eroe */
.hero-section {
    background-color: #e6f2ff; /* Colore chiaro e rilassante */
    background-image: url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effetto parallasse */
    color: #333; /* Colore del testo scuro per contrasto */
    padding: 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1, .hero-section p {
    color: #333; /* Testo scuro per migliore leggibilità */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Filtro chiaro leggero */
    z-index: 1;
}

.hero-section img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.hero-section:hover img {
    transform: scale(1.1); /* Effetto di zoom al passaggio del mouse */
}

.hero-section h1, .hero-section p {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInText 2s forwards;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 24px;
    margin-bottom: 20px;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Sezione about us */
.about-us {
    padding-top: 20px; /* Ridotto da 30px */
}

.about-us .container {
    display: flex;
    gap: 40px;
}

.about-us .text-content {
    flex: 1;
}

.about-us .text-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-us .text-content p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.about-us .features-list {
    list-style-type: none;
    padding: 0;
}

.about-us .features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 18px;
}

.about-us .features-list li img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.about-us .image-content {
    flex: 1;
}

.about-us .image-content img {
    width: 100%;
    border-radius: 10px;
}

/* Sezione Call to Action */
.cta-section {
    background-color: #FF4500;
    color: white;
    padding: 50px;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
}

/* Stile globale per la pagina "Chi siamo" */
.about-us {
    max-width: 1200px; /* Larghezza massima della sezione */
    margin: 0 auto; /* Centra la sezione orizzontalmente */
    padding-left: 20px; /* Aggiungi padding a sinistra */
    padding-right: 20px; /* Aggiungi padding a destra */
    padding-top: 20px; /* Ridotto per meno spazio tra il menu e la sezione */
}

.about-us img {
    max-width: 100%;
    height: auto;
    border-radius: 5px; /* Per aggiungere bordi arrotondati all'immagine */
}

/* Sezione Innovazioni */
.innovation-section {
    background-color: #f8f8f8;
    padding: 50px 5%;
    text-align: center;
}

.innovation-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #333;
}

.innovation-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Disposizione in 2 colonne */
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.innovation-item {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    max-width: 100%;
}

.innovation-item img {
    max-width: 50px;
    margin-bottom: 15px;
}

.innovation-item h3 {
    font-size: 1.5em;
    color: #444;
    margin-bottom: 10px;
}

.innovation-item p {
    font-size: 1em;
    color: #666;
}

.innovation-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: #fafafa; /* Leggera variazione del colore di sfondo */
}

.about-us .image-content img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.5s ease, opacity 0.5s ease; /* Transizione fluida */
}

.about-us .image-content:hover img {
    transform: scale(1.1); /* Effetto zoom */
    opacity: 0.9; /* Leggera riduzione dell'opacità per un effetto elegante */
}

.about-us .text-content h2, .about-us .text-content p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-us .text-content h2 {
    transition-delay: 0.2s; /* Ritardo per l'entrata del titolo */
}

.about-us .text-content p {
    transition-delay: 0.4s; /* Ritardo per l'entrata del testo */
}

.about-us:hover .text-content h2, .about-us:hover .text-content p {
    opacity: 1;
    transform: translateY(0);
}

.hero-section {
    background: linear-gradient(to bottom, #ffffff, #e6e6e6); /* Gradiente chiaro */
    z-index: 100; /* Assicura che rimanga sopra il menu */
    position: relative;
    padding: 60px 0;
}

/* Adattabilità per dispositivi mobili */
@media (max-width: 768px) {
    .innovation-container {
        grid-template-columns: 1fr; /* Disposizione in 1 colonna sui dispositivi mobili */
    }
}

/* Sezione Auto-scrittura */
.auto-scrittura {
    text-align: center;
    margin-bottom: 20px; /* Riduce lo spazio sotto */
    padding: 20px;
    background-color: #f0f4f8; /* Sfondo leggero per separare la sezione */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.auto-scrittura span {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
}

.auto-scrittura .wrap {
    border-right: 0.1em solid #333;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #333;
    }
}

/* Riduzione dello spazio tra l'auto-scrittura e la sezione successiva */
.innovation-section {
    margin-top: 30px;
}

/* Sezione Carosello */
.carousel-section {
    position: relative;
    max-width: 60%; /* Adattiamo la larghezza per visualizzare due immagini */
    margin: 50px auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 10px; /* Spazio tra le immagini */
}



.carousel-slide img {
    width: 100%; /* Le immagini riempiono completamente il loro contenitore */
    height: 350px; /* Altezza ridotta per mantenere dimensioni piccole */
    object-fit: cover;
    border-radius: 10px;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7); /* Colore più scuro per maggiore visibilità */
    color: white;
    border: none;
    padding: 15px; /* Aumenta la dimensione */
    cursor: pointer;
    font-size: 24px; /* Aumenta la dimensione del carattere */
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3); /* Aggiungi un'ombra per un effetto più elegante */
    transition: background-color 0.3s ease, transform 0.3s ease; /* Aggiunge una transizione per un effetto al passaggio del mouse */
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0, 0, 0, 1); /* Colore più intenso al passaggio del mouse */
    transform: translateY(-50%) scale(1.1); /* Aggiunge un leggero ingrandimento al passaggio del mouse */
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Sezione Prima e dopo */
/* Stile per la sezione informativa generale */
.info-section {
    text-align: center;
    margin: 20px auto;
    font-size: 18px;
    color: #333;
    max-width: 800px;
}

/* Stile per i testi delle sezioni di confronto immagini */
.section-info {
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    font-style: italic;
}

.comparison-section {
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    position: relative;
}

.comparison-container {
    position: relative;
    width: 100%;
    height: 400px; /* Altezza fissa */
    overflow: hidden;
    display: flex;
}

/* Immagine "Dopo" (Sotto) */
.comparison-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Mantiene proporzioni senza distorsioni */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay che contiene l'immagine "Prima" */
.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%; 
    overflow: hidden;
    cursor: ew-resize;
    clip-path: inset(0 50% 0 0); /* Partenza a metà */
}

/* Immagine "Prima" che sta sopra */
.comparison-overlay img {
    width: 100%; /* Forza la stessa dimensione dell'immagine "Dopo" */
    height: 100%;
    object-fit: cover; /* Mantiene le proporzioni */
    position: absolute;
    top: 0;
    left: 0;
}
