/* --- 1. Variabili Globali e Reset --- */
:root {
    --primary-color: #007bff;
    --primary-color-dark: #0056b3;
    --text-color: #343a40;
    --background-color: #f8f9fa;
    --card-background: #ffffff;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* --- 2. Sezione Hero (Intestazione) --- */
.hero {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero__content h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.hero__content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- 3. Layout Principale --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* --- 4. Griglia degli Strumenti --- */
.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* --- 5. Stile delle Card --- */
.tool-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative; /* Per il badge "Prossimamente" */
}

a.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tool-card__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card__title {
    font-size: 1.4rem;
    margin: 0 0 0.75rem 0;
    color: var(--primary-color-dark);
}

.tool-card__description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1; /* Fa in modo che la descrizione occupi lo spazio disponibile */
}

.tool-card__cta {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
    align-self: center;
    transition: color 0.3s ease;
}

a.tool-card:hover .tool-card__cta {
    color: var(--primary-color-dark);
}

/* Stile per le card disabilitate */
.tool-card--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f1f3f5;
}

.tool-card--disabled .tool-card__icon {
    color: #adb5bd;
}
.tool-card--disabled .tool-card__title {
    color: #868e96;
}
.tool-card--disabled .tool-card__cta {
    color: #868e96;
}

.tool-card__badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #6c757d;
    color: white;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(15deg);
}


/* --- 6. Footer --- */
.footer {
    text-align: center;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: #6c757d;
}

/* --- 7. Media Queries per la Responsività --- */
@media (max-width: 600px) {
    .hero__content h1 {
        font-size: 2rem;
    }
}