:root {
    --primary: #2563eb; /* Blu deciso */
    --dark-bg: #ffffff; /* Sfondo Bianco per nascondere il quadrato del logo */
    --card-bg: #f8fafc; /* Grigio chiarissimo per le card */
    --text-main: #0f172a; /* Blu notte scuro per il testo */
    --text-muted: #475569; /* Grigio medio */
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header & Logo */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 60px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px; /* Leggermente più grande */
    width: auto;
    mix-blend-mode: multiply;
    filter: contrast(1.2) brightness(1.1);
}

.logo span { color: var(--primary); }

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: radial-gradient(circle at center, #f1f5f9 0%, #ffffff 70%);
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 60px;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    /* Gradiente scuro per risaltare sul bianco */
    background: linear-gradient(to right, #0f172a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

/* Griglia Progetti */
.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: var(--text-main);
}

.card p { color: var(--text-muted); }

/* Video Container per YouTube */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Sezione Metodo (AI Quote) - Manteniamo scura per contrasto */
.method-section {
    background: #1e293b; 
    color: #f8fafc;
    padding: 60px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 200px;
}

.percentage {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.quote {
    margin-top: 40px;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #cbd5e1; /* Grigio chiaro per leggibilità su scuro */
}

/* International Section */
.international-section {
    margin-top: 60px;
    padding: 50px;
    background-color: #eff6ff; /* Azzurro chiarissimo */
    border-radius: 24px;
    border: 2px dashed #bfdbfe; /* Bordo tratteggiato stile "progetto" */
    text-align: center;
}

.international-section p {
    max-width: 700px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

/* Mobile */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero { padding: 40px 20px; }
}
