/* static/css/home.css */

.btn-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #0f0007 0%, #ff007f 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 0, 127, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 0, 127, 0.3);
    transition: all 0.4s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 0, 127, 0.6);
    background: linear-gradient(135deg, #1a000d 0%, #ff1a8c 100%);
}

.btn-small { padding: 0.8rem 2rem; font-size: 0.9rem; }
.btn-large { padding: 1.2rem 3rem; font-size: 1.1rem; }

.btn-outline {
    background: transparent;
    border: 2px solid #ff007f;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}
.btn-outline:hover { background: rgba(255, 0, 127, 0.1); }

/* --- 1. HERO SECTION --- */
.hero-section {
    min-height: 85vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    gap: 2rem;
}

.hero-text-block {
    flex: 1;
    max-width: 650px;
}

.hero-logo-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 350px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 127, 0.4));
    animation: float 6s ease-in-out infinite;
}

.hero-tagline {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    color: #e0e0e0;
    margin-bottom: 2.5rem;
    line-height: 1.3;
    text-align: left;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* --- STRUTTURA SEZIONI --- */
.teaser-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.teaser-section:last-child { border-bottom: none; }
.section-heading { text-align: center; margin-bottom: 4rem; }

/* TITOLI UNIFORMATI */
.section-heading h2 { 
    color: #ffffff; 
    font-size: 2.5rem; 
    font-family: 'Playfair Display', serif; 
    margin-bottom: 1.5rem; 
}
.section-heading p { color: #a0a0a0; font-size: 1.1rem; }

/* --- 2. CHI SONO --- */
.teaser-about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.teaser-text h2 { color: #ffffff; font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 1.5rem; }
.teaser-text p { color: #cccccc; font-size: 1.1rem; line-height: 1.8; margin-bottom: 2.5rem; }

.teaser-profile-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 0, 127, 0.5);
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.2);
    background-color: #111;
    display: block;
}

/* --- 3. I PROGETTI (Mini Card Solo Testo) --- */
.mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.text-only-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 127, 0.15);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px; 
}

.text-only-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 127, 0.5);
    box-shadow: 0 10px 25px rgba(0,0,0,0.8), 0 0 20px rgba(255, 0, 127, 0.2);
}

.mini-details h3 { color: #fff; font-size: 1.3rem; margin-bottom: 0.5rem; text-align: center; }
.tech-stack { color: #ff007f; font-size: 0.85rem; font-family: monospace; display: block; text-align: center; }
.center-btn { text-align: center; }

/* --- 4. IL METODO (4 Step) --- */
.method-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.badge {
    flex: 1;
    min-width: 180px;
}

.badge-number {
    display: block;
    font-size: 2.5rem;
    color: rgba(255, 0, 127, 0.3);
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.badge h4 { color: #fff; font-size: 1.2rem; }

/* --- 5. CONTATTAMI FINALE --- */
.contact-box {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 127, 0.3);
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: 0 0 40px rgba(255, 0, 127, 0.1);
}

.contact-box h2 { color: #fff; font-size: 2.5rem; font-family: 'Playfair Display', serif; margin-bottom: 1rem; }
.contact-box p { color: #a0a0a0; font-size: 1.2rem; margin-bottom: 3rem; }

/* =========================================
   RESPONSIVE SMARTPHONE
   ========================================= */
@media (max-width: 768px) {
    
    .hero-section { 
        flex-direction: column-reverse; 
        text-align: center;
        padding: 2rem 1rem;
        gap: 0; 
    }
    .hero-logo-block { margin-bottom: 2rem; }
    .hero-tagline { font-size: 2.2rem; text-align: center; }
    .hero-text-block { display: flex; flex-direction: column; align-items: center; }

    /* NUOVO: Più respiro verticale tra le sezioni */
    .teaser-section {
        padding: 4rem 1rem; /* Prima era 2rem o 6rem mischiati. Ora 4rem dà un ritmo perfetto */
    }

    /* NUOVO: Pareggio delle dimensioni di TUTTI i Titoli con il Design System (2.2rem) */
    .section-heading h2,
    .teaser-text h2,
    .contact-box h2 {
        font-size: 2.2rem;
    }
    
    .teaser-about { flex-direction: column-reverse; text-align: center; }
    
    /* Ridimensionato leggermente la foto profilo su mobile per non farla troppo invadente */
    .teaser-profile-img {
        width: 220px;
        height: 220px;
        margin-bottom: 1rem;
    }

    .mini-grid { grid-template-columns: 1fr; } 
    
    /* NUOVO: Respiro e maestosità per la Box Contatti finale */
    .contact-box { 
        padding: 4rem 1.5rem; /* Rialzato da 3rem a 4rem per dare più volume verticale */
    }
    .contact-box p { margin-bottom: 2.5rem; } /* Più spazio prima del bottone */
    
    /* Il bottone contattami finale occupa tutta la larghezza per un tocco più "App" */
    .contact-box .btn-gradient {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}