/* ============================================
   PORTFOLIO — MOBILE FIXES
   Incluso dopo style.css in portfolio.html
   ============================================ */

/* --- 3-colonne per Optiform (sostituisce lo stile inline rimosso) --- */
.lighthouse-scores--three {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- Immagine progetto: altezza adattiva ---- */
@media (max-width: 768px) {
    .project-image {
        height: 240px;
    }
}
@media (max-width: 480px) {
    .project-image {
        height: 200px;
    }
}

/* ---- Lighthouse scores su mobile ---- */
@media (max-width: 968px) {
    .lighthouse-scores {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 24px 20px;
    }
    .lighthouse-scores--three {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 20px 16px;
    }
}

@media (max-width: 640px) {
    .lighthouse-scores {
        gap: 14px;
        padding: 20px 16px;
    }
    .lighthouse-scores--three {
        gap: 8px;
        padding: 16px 12px;
    }

    .score-circle {
        width: 86px;
        height: 86px;
        border-width: 4px;
    }
    .score-number {
        font-size: 1.55rem;
        letter-spacing: -0.5px;
    }
    .score-label {
        font-size: 0.62rem;
        margin-top: 3px;
    }

    .performance-note {
        padding: 14px 16px;
        margin-bottom: 28px;
    }
    .performance-note span {
        font-size: 0.85rem;
    }

    .project-content {
        padding: 28px 20px;
    }
    .project-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    .project-header h3 {
        font-size: 1.6rem;
    }
    .project-tagline {
        font-size: 0.95rem;
    }

    .feature-item {
        padding: 12px;
    }
    .feature-item span {
        font-size: 0.88rem;
    }
}

@media (max-width: 380px) {
    .lighthouse-scores--three .score-circle {
        width: 72px;
        height: 72px;
    }
    .lighthouse-scores--three .score-number {
        font-size: 1.3rem;
    }
    .lighthouse-scores--three .score-label {
        font-size: 0.58rem;
    }
}