:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #f0f0f0;
    --card-bg-color: rgba(255, 255, 255, 0.05);
    --card-border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0c0a1f;
    color: var(--text-color);
    overflow-x: hidden;
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 20px;
}

.site-brand {
    background: var(--card-bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border-color);
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 10px 40px var(--shadow-color);
}

.brand-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.85;
    margin: 0;
}

.site-main {
    position: relative;
    z-index: 2;
    padding: 30px 20px 80px;
}

.tools {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.tool-card {
    background: var(--card-bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid var(--card-border-color);
    padding: 24px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.tool-desc {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0 0 16px 0;
}

.tool-action {
    display: inline-block;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 117, 252, 0.4);
}

/* Pulsanti legacy non più usati nella home, mantenuti per compatibilità */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; font-size: 1.1em; font-weight: 600; color: white; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); border: none; border-radius: 12px; text-decoration: none; transition: all 0.4s ease; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); cursor: pointer; }
.btn:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(37, 117, 252, 0.4); }
.btn:active { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 117, 252, 0.3); }
.btn-icon { width: 24px; height: 24px; }

.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
}

.shape1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: 10%;
    left: 15%;
    animation: animateShape 20s infinite alternate ease-in-out;
}

.shape2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 15%;
    right: 20%;
    animation: animateShape 25s infinite alternate-reverse ease-in-out;
}

.shape3 {
    width: 200px;
    height: 200px;
    background: #ff00ff;
    top: 50%;
    left: 50%;
    animation: animateShape 18s infinite alternate ease-in-out;
}

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

@keyframes animateShape {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    100% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
    }
}

@media (max-width: 768px) {
    .brand-title { font-size: 2.2rem; }
    .brand-subtitle { font-size: 1rem; }
    .tools { grid-template-columns: 1fr; }
}

@media (min-width: 1024px) {
    .tools { grid-template-columns: repeat(3, 1fr); }
}
