/* Favicon e icone */
.favicon {
    width: 32px;
    height: 32px;
}

/* Stili comuni */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Hero section */
.hero {
    background-color: #1e293b;
    background-image: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.8)), url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?ixlib=rb-1.2.1&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 85vh;
    display: flex;
    align-items: center;
    color: white;
}

.hero h1 {
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p {
    color: #e2e8f0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* Bottoni */
.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.39);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
    color: white;
}

/* Card e feature */
.feature-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(226, 232, 240, 0.8);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    border-color: #fca5a5;
}

.feature-card img {
    border-radius: 0.75rem;
    transition: transform 0.5s ease;
}

.feature-card:hover img {
    transform: scale(1.03);
}

.feature-card-image-wrapper {
    overflow: hidden;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background-color: #f8fafc;
    color: #334155;
    padding: 4rem 0 2rem;
    border-top: 4px solid #dc2626;
}

.footer h3 {
    color: #0f172a;
    font-weight: 700;
}

/* Language switcher */
.language-switcher {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1001;
}

.language-switcher a {
    margin: 0 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.language-switcher a:hover {
    color: #dc2626;
}

.language-switcher a.active {
    color: #dc2626;
}

/* Responsive design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .btn-container {
        flex-direction: column;
    }
    
    .btn-container .btn-primary,
    .btn-container .btn-secondary {
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }
}

/* Accessibilità */
:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Utilities aggiuntive */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}
