/* Stili Generali */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
}
h1, h2, h3 {
    line-height: 1.2;
}
.highlight {
    background-color: #FFF000;
    padding: 0.1em 0.2em;
    border-radius: 3px;
}
a {
    color: #007BFF;
    text-decoration: none;
}
img {
    max-width: 100%;
    display: block;
}

/* Header - Ridotto del 20% */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 0.8rem 2rem; /* Ridotto da 1rem */
    position: sticky;
    top: 0;
    z-index: 1000;
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}
.logo {
    font-size: 1.6rem; /* Ridotto da 2rem */
    font-weight: bold;
    color: #2563eb;
}
nav ul {
    list-style: none;
    display: flex;
    gap: 1.2rem; /* Ridotto da 1.5rem */
    margin: 0;
    padding: 0;
}
nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #2563eb;
}
.github-link {
    background: #2563eb;
    color: white !important;
    padding: 0.4rem 0.8rem; /* Ridotto da 0.5rem 1rem */
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.github-link:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    padding: 5rem 2rem;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}
.hero-content {
    flex: 1;
    text-align: center;
}
.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.2;
}
.hero-content p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* Carousel styles */
.carousel-container {
    position: relative;
    width: 562px;
    height: 332px;
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 100%;
}
.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 562px;
    height: 332px;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.carousel-image.active {
    opacity: 1;
}
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    text-align: left;
}
.carousel-caption.active {
    opacity: 1;
}
.carousel-caption h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}
.carousel-caption p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}
.carousel-button:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.carousel-button.prev {
    left: 15px;
}
.carousel-button.next {
    right: 15px;
}

/* Sezioni Generiche */
section {
    padding: 4rem 2rem;
    text-align: center;
}
section h2 {
    font-size: 2.2rem;
    margin-bottom: 3rem;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Features Section - Padding ridotto del 50% */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.feature-item {
    text-align: center;
    padding: 1rem; /* Ridotto del 50% da 2rem */
    border-radius: 1rem;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}
.feature-item:hover {
    transform: translateY(-5px);
}
.feature-item span {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}
.feature-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}
.feature-item p {
    color: #6b7280;
    line-height: 1.6;
}
.feature-name {
    display: flex;
    flex-direction: column; /* Rende il contenuto della cella una colonna */
    align-items: flex-start; /* Allinea il testo a sinistra */
}

.feature-subtitle {
    font-size: 0.85em; /* Rende il sottotitolo leggermente più piccolo del testo principale */
    color: #777; /* Un colore grigio più chiaro per distinguerlo */
    margin-top: 0.2em; /* Un piccolo margine sopra per separarlo dal titolo */
}
/* Comparison Table Styles */
.comparison-table {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}
.comparison-table thead {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
}
.comparison-table th {
    padding: 1.5rem 1rem;
    font-weight: 600;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.comparison-table th:last-child {
    border-right: none;
}
.comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}
.comparison-table td:last-child {
    border-right: none;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}
.comparison-table tbody tr:hover {
    background-color: #eff6ff;
}
.feature-name {
    font-weight: 600;
    color: #374151;
    text-align: left;
}
.check-mark {
    color: #10b981;
    font-size: 1.5rem;
    font-weight: bold;
}
.x-mark {
    color: #ef4444;
    font-size: 1.25rem;
    font-weight: bold;
}
.partial-mark {
    color: #f59e0b;
    font-size: 1.25rem;
    font-weight: bold;
}
.bixit-column {
    background-color: #eff6ff !important;
    font-weight: 600;
}

/* How it Works Section */
#how-it-works {
    background-color: #f9fafb;
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}
.step {
    text-align: center;
    padding: 2rem;
}
.step span {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1f2937;
}
.step p {
    color: #6b7280;
    line-height: 1.6;
}
.step code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Genesis Section */
#genesis p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Call to Action Finale */
#cta {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1f2937;
}
#cta h2 {
    color: #1f2937;
    margin-bottom: 1.5rem;
}
#cta p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #1f2937;
    color: #fff;
    text-align: center;
    padding: 2rem;
}
footer a {
    color: #93c5fd;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Responsive Design */
@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
    .hero-content {
        text-align: left;
    }
    .hero-buttons {
        justify-content: flex-start;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-content p {
        font-size: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(8, 1fr);
    }
    .carousel-container {
        width: 100%;
        height: 250px;
        margin-top: 2rem;
    }
    .carousel-image {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    nav {
        flex-direction: column;
        gap: 0.8rem; /* Ridotto da 1rem */
    }
    nav ul {
        gap: 1rem;
    }
    .comparison-table {
        font-size: 0.875rem;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}
