/* style.css - Versione Finale Corretta v2 */
:root {
    --brand-orange: #ff5e00;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6e6e6e;
    --bg-light: #f7f7f7;
    --bg-white: #ffffff;
    --border-light: #e0e0e0;
    --border-extralight: #eeeeee;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-medium);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1020;
}

header img {
    height: 45px;
}

.main-container-wrapper {
    width: 100%;
    overflow-x: hidden;
}

.container {
    padding: 0 1.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-fadeIn {
    animation: fadeIn 1s ease-out forwards;
}

.hero-section-wrapper {
    background-color: var(--bg-white);
    padding: 6rem 0 5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-extralight);
    overflow: hidden;
}

.hero-section-wrapper h1.main-hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 auto 1.5rem auto;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-align: center;
    max-width: 900px;
}

.hero-section-wrapper p.lead {
    font-size: 1.2rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

.hero-image-container {
    margin-top: 3rem;
    animation-delay: 0.6s;
}

.hero-image-container img {
    max-width: 100%;
    width: 700px;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.landing-section {
    padding: 5rem 1rem;
    text-align: center;
}

.landing-section.bg-white {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-extralight);
}

.landing-section.bg-light {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.landing-section:last-of-type {
    border-bottom: none;
}

.landing-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.landing-section h2.left-align {
    text-align: left;
}

/* --- REGOLA CORRETTA PER CENTRARE IL PARAGRAFO --- */
.landing-section p.lead {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 500px;
    margin: 0 auto 2.5rem auto; /* Modifica chiave per centrare */
    line-height: 1.75;
}

.landing-section p.lead.left-align {
    text-align: left;
    margin-left: 0; /* Sovrascrive la centratura solo se ha la classe .left-align */
    margin-right: 0;
}

.feature-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
}

.feature-showcase .text-content {
    max-width: 500px;
    text-align: left;
}

.feature-showcase .image-content {
    max-width: 500px;
    width: 100%;
}

.feature-showcase .image-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.use-cases-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
    margin-top: 3rem;
    align-items: flex-start;
}

.use-case-item h4 {
    font-size: 1.3rem;
    color: var(--brand-orange);
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.use-case-item p {
    color: var(--text-medium);
    margin-bottom: 0;
    line-height: 1.7;
}

.cta-section {
    padding: 5rem 1rem;
    background-color: var(--brand-orange);
    color: white;
}

.cta-section h2 {
    color: white;
    font-size: 2.8rem;
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background-color: white;
    color: var(--brand-orange);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 2rem;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

footer {
    background-color: #1a1a1a;
    color: #a0a0a0;
    padding: 2.5rem 1.5rem;
    font-size: 0.9rem;
    text-align: center;
}

footer .footer-links {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

footer .footer-links a {
    color: #a0a0a0;
    text-decoration: none;
}

footer .footer-links a:hover {
    color: white;
}

footer .footer-copy {
    color: #6e6e6e;
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll, .cta-button {
        animation: none;
        transition: none;
    }
}

@media (max-width: 768px) {
    .hero-section-wrapper h1.main-hero-title {
        font-size: 2.4rem;
    }
    .landing-section h2, .cta-section h2 {
        font-size: 1.9rem;
    }
    .feature-showcase {
        flex-direction: column !important;
    }
    .feature-showcase .text-content, .landing-section h2.left-align, .landing-section p.lead.left-align {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .use-cases-wrapper {
        grid-template-columns: 1fr;
    }
}
