/* Stili generali del corpo della pagina */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

/* Navbar orizzontale in alto */
.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: center; /* Centrato per icone vicine */
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-x: auto;
    white-space: nowrap;
}

/* Stili per i link della navbar */
.navbar a {
    color: #333333;
    margin: 0 0.75rem; /* Ridotto il margine per avvicinare le icone */
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
}

/* Effetto hover sui link */
.navbar a:hover {
    color: #28a745;
}

/* Icona corrente in verde */
.navbar a.active {
    color: #28a745;
}

/* Contenitore principale centrato */
.container {
    width: 90%; /* Occupa il 90% della larghezza */
    margin: 80px 5% 4rem; /* 5% di margine a sinistra e destra */
    padding: 2rem 1rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Sezione hero */
.hero-section {
    margin-bottom: 2.5rem;
}

/* Titolo della sezione hero */
.hero-section h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

/* Icona nel titolo */
.hero-section h1 i {
    color: #28a745;
}

/* Sottotitolo */
.subtitle {
    font-size: 1.1rem;
    color: #555555;
    font-weight: 400;
}

/* Card introduttiva */
.intro-card {
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

/* Icona nella card introduttiva */
.intro-icon {
    width: 70px;
    height: 70px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

/* Icona interna */
.intro-icon i {
    font-size: 2rem;
    color: white;
}

/* Titolo della card introduttiva */
.intro-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
}

/* Paragrafo della card introduttiva */
.intro-card p {
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* Griglia delle funzionalità */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

/* Card delle funzionalità */
.feature-card {
    background-color: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

/* Effetto hover per la card */
.feature-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Icona delle funzionalità */
.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

/* Colori specifici per le icone delle funzionalità */
.feature-icon.editor {
    background-color: #ff9800;
}

.feature-icon.tracker {
    background-color: #2196f3;
}

.feature-icon.pac {
    background-color: #9c27b0;
}

.feature-icon.variazione {
    background-color: #e91e63;
}

.feature-icon.calcolatrice {
    background-color: #28a745;
}

/* Titolo delle funzionalità */
.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

/* Paragrafo delle funzionalità */
.feature-card p {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Sezione "Come iniziare" */
.getting-started-section {
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

/* Titolo della sezione "Come iniziare" */
.getting-started-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 1.5rem;
}

/* Contenitore dei passaggi */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

/* Passaggio */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Numero del passaggio */
.step-number {
    width: 45px;
    height: 45px;
    background-color: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contenuto del passaggio */
.step-content h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

/* Paragrafo del passaggio */
.step-content p {
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 1rem;
}

/* Pulsante primario */
.btn-primary {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.7rem 1.4rem;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Effetto hover per il pulsante primario */
.btn-primary:hover {
    background-color: #218838;
}

/* Effetto attivo per il pulsante primario */
.btn-primary:active {
    transform: scale(0.98);
}

/* Sezione visione */
.vision-section {
    background-color: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Titolo della sezione visione */
.vision-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.75rem;
}

/* Paragrafo della sezione visione */
.vision-section p {
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

/* Avviso sulla privacy */
.privacy-notice {
    background-color: #e8f5e9;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 1.2rem;
    text-align: center;
    font-size: 0.95rem;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

/* Icona dell'avviso sulla privacy */
.privacy-notice i {
    font-size: 1.3rem;
    color: #28a745;
}

/* Sezione pulsante donazione */
.donation-button {
    margin-top: 2em;
    padding: 1.5em;
    background-color: #f8f9fa;
    border: 1px solid #28a745;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Paragrafo del pulsante donazione */
.donation-button p {
    color: #555555;
    margin-bottom: 0.75rem;
}

/* Pulsante donazione */
.donate-btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 0.5em;
    transition: all 0.3s ease;
}

/* Effetto hover per il pulsante donazione */
.donate-btn:hover {
    background-color: #218838;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Sezione pulsante Git */
.git-button {
    text-align: center;
    margin-bottom: 2rem;
}

/* Pulsante Git */
.git-btn {
    display: inline-block;
    padding: 0.75em 1.5em;
    background-color: #333333;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Effetto hover per il pulsante Git */
.git-btn:hover {
    background-color: #555555;
    box-shadow: 0 4px 15px rgba(51, 51, 51, 0.2);
}

/* Footer */
footer {
    background-color: #ffffff;
    color: #555555;
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid #e5e5e5;
    width: 100%;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 0;
}

/* Testo del footer */
footer p {
    margin: 0;
    font-size: 0.875rem;
}

/* Stili per dispositivi mobili */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 414px) {
    .navbar {
        height: 50px;
        justify-content: space-between;
        padding: 0 0.5rem;
    }

    .navbar a {
        margin: 0 0.5rem; /* Ulteriore riduzione per mobile */
        font-size: 1.2rem;
    }

    .navbar a::after {
        display: none;
    }

    .container {
        margin-top: 70px;
        margin-left: 5%;
        margin-right: 5%;
        padding: 1.5rem 1rem;
        margin-bottom: 4rem;
    }

    .hero-section h1 {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.4rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .intro-card {
        padding: 1.5rem;
    }

    .intro-card h2 {
        font-size: 1.3rem;
    }

    .intro-card p {
        font-size: 0.95rem;
    }

    .getting-started-section {
        padding: 1.5rem;
    }

    footer {
        padding: 1.5rem 1rem;
    }

    footer p {
        font-size: 0.8rem;
    }
}