:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2c2c2c;
    --accent-color: #00bcd4;
    --accent-hover: #00e5ff;
    --text-light: #f0f0f0;
    --text-muted: #b0b0b0;
    --border-color: #444444;
    --shadow-dark: 0 8px 16px rgba(0, 0, 0, 0.4);
    --border-radius: 12px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--primary-dark);
    color: var(--text-light);
}

/* Header */
header {
    background-color: var(--secondary-dark);
    padding: 4rem 1rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    box-shadow: var(--shadow-dark);
}

.header-logo {
    max-width: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
    margin-bottom: 1rem;
}

header h1 { font-size: 3.5rem; margin: 0; color: var(--accent-color); letter-spacing: 2px; }
header p { color: var(--text-muted); max-width: 700px; margin: 1rem auto 0; font-size: 1.1rem; }

/* Layout */
.container { max-width: 1100px; margin: 3rem auto; padding: 0 1.5rem; }

section {
    background-color: var(--secondary-dark);
    padding: 2.5rem;
    margin-bottom: 3.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-dark);
}

h2 { font-size: 2.5rem; text-align: center; margin-bottom: 2.5rem; color: var(--text-light); }

/* Griglie */
.features-grid, .support-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background-color: var(--primary-dark);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover { transform: translateY(-8px); border-color: var(--accent-color); }
.card i { font-size: 3rem; color: var(--accent-color); margin-bottom: 1.5rem; }
.card h3 { color: var(--accent-color); margin-bottom: 1rem; }

/* Tabs & Gallery */
.tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border-color); }
.tab-btn {
    background: none; border: none; padding: 1rem 2rem; color: var(--text-muted);
    cursor: pointer; font-weight: 600; font-size: 1.1rem; transition: 0.3s;
    border-bottom: 3px solid transparent;
}
.tab-btn.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.image-gallery img:hover { border-color: var(--accent-color); transform: scale(1.05); }

/* Form Supporto */
.form-container {
    max-width: 600px;
    margin: 2rem auto 0;
    padding: 2rem;
    background: var(--primary-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 1.2rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--accent-color); font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.8rem; border-radius: 6px; border: 1px solid var(--border-color);
    background: var(--secondary-dark); color: white; font-family: inherit; box-sizing: border-box;
}

.btn-submit {
    width: 100%; background: var(--accent-color); color: var(--primary-dark);
    padding: 1rem; border: none; border-radius: 50px; font-weight: 700;
    cursor: pointer; transition: 0.3s; font-size: 1rem;
}
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* Footer */
footer {
    background-color: var(--secondary-dark); padding: 4rem 1rem; text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-flex { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.social-links a { color: var(--accent-color); margin: 0 1rem; transition: 0.3s; }
.donate-btn {
    background: #0070ba; color: white; padding: 0.8rem 1.5rem;
    border-radius: 50px; text-decoration: none; font-weight: 600;
}

#backToTop {
    display: none; position: fixed; bottom: 2rem; right: 2rem;
    background: var(--accent-color); color: var(--primary-dark);
    width: 50px; height: 50px; border-radius: 50%; border: none; cursor: pointer;
    z-index: 1000;
}

@media (min-width: 768px) { .footer-flex { flex-direction: row; justify-content: center; gap: 6rem; } }

/* --- Stili specifici per Download Page --- */
.status-container {
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader {
    border: 6px solid var(--primary-dark);
    border-top: 6px solid var(--accent-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.1);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.text-muted-custom {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

.status-container {
    text-align: center;
    padding: 2rem 0;
}

/* QR Code rimpicciolito */
.qr-small {
    max-width: 120px; /* Più piccolo rispetto alla home */
    margin: 1.5rem auto;
    border: 5px solid white;
    border-radius: 10px;
    display: block;
}

/* Contenitore badge piccoli */
.mini-badge-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.mini-badge {
    height: 40px; /* Badge rimpiccioliti */
    transition: transform 0.2s;
}

.mini-badge:hover {
    transform: scale(1.05);
}
