/* ===== MOBILE FOUNDERS PERFECT ALIGNMENT FIX ===== */

@media (max-width: 968px) {
    
    /* CONTAINER FOUNDERS - CENTRATURA ASSOLUTA */
    .founders-presentation {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 40px !important;
        margin-top: 40px !important;
        padding: 20px !important;
    }
    
    /* FOUNDER ITEM - CENTRATURA PERFETTA */
    .founder-item {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* WRAPPER IMMAGINE - CENTRATURA E DIMENSIONI OTTIMALI - RETTANGOLARE */
    .founder-image-wrapper {
        width: 320px !important;
        height: 400px !important;
        margin: 0 auto 20px auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        position: relative !important;
    }
    
    /* FORZA RIMOZIONE SFONDO - TUTTI I SELETTORI POSSIBILI */
    .founder-image-wrapper,
    .founder-image-wrapper::before,
    .founder-image-wrapper::after,
    .about-enterprise .founder-image-wrapper,
    .founders-presentation .founder-image-wrapper {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    /* RIMOZIONE SPECIFICA OMBREGGIATURE INTERNE PER GIUSEPPE */
    .giuseppe-img,
    .founder-image-wrapper .giuseppe-img,
    .about-enterprise .giuseppe-img {
        box-shadow: none !important;
        filter: none !important;
        text-shadow: none !important;
        -webkit-box-shadow: none !important;
        -moz-box-shadow: none !important;
    }
    
    /* FOTO FOUNDERS - CENTRATURA PERFETTA E OTTIMIZZAZIONE - RETTANGOLARE */
    .founder-photo,
    .roberto-img,
    .giuseppe-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        border-radius: 15px !important;
        transform: scale(1.0) !important;
        transition: transform 0.3s ease !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* HOVER EFFECT MOBILE-FRIENDLY - RETTANGOLARE */
    .founder-image-wrapper:hover .founder-photo {
        transform: scale(1.05) !important;
        filter: brightness(1.05) contrast(1.05) !important;
    }
    
    /* DETTAGLI FOUNDERS - CENTRATURA */
    .founder-details {
        width: 100% !important;
        text-align: center !important;
        margin-top: 0 !important;
    }
    
    /* NOME FOUNDER - STILE OTTIMIZZATO */
    .founder-name {
        font-size: 1.3rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    
    /* ROLE CONTAINER - CENTRATURA */
    .role-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
    }
    
    /* FOUNDER ROLE - STILE MIGLIORATO */
    .founder-role {
        background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
        color: white !important;
        padding: 8px 16px !important;
        border-radius: 20px !important;
        font-size: 0.75rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3) !important;
        margin: 0 auto !important;
        display: inline-block !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    
    /* MOBILE PICCOLO - DIMENSIONI RIDOTTE - RETTANGOLARE */
    .founder-image-wrapper {
        width: 260px !important;
        height: 320px !important;
        margin-bottom: 15px !important;
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
        border: none !important;
        border-radius: 12px !important;
    }
    
    /* FORZA RIMOZIONE SFONDO MOBILE PICCOLO */
    .founder-image-wrapper,
    .founder-image-wrapper::before,
    .founder-image-wrapper::after,
    .about-enterprise .founder-image-wrapper,
    .founders-presentation .founder-image-wrapper {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .founder-item {
        max-width: 360px !important;
        gap: 15px !important;
    }
    
    .founders-presentation {
        gap: 30px !important;
        padding: 15px !important;
    }
    
    .founder-name {
        font-size: 1.1rem !important;
    }
    
    .founder-role {
        font-size: 0.7rem !important;
        padding: 6px 14px !important;
    }
    
    /* POSIZIONAMENTO SPECIFICO MOBILE PICCOLO - RETTANGOLARE */
    .roberto-img {
        object-position: center 10% !important; /* Spostato più in alto anche su mobile piccolo */
        transform: scale(1.3) !important; /* Ingrandito per usare più spazio */
        border-radius: 12px !important;
        box-shadow: none !important;
    }
    
    .giuseppe-img {
        object-position: center 25% !important; /* Riaggiustato per il nuovo zoom */
        transform: scale(1.2) !important; /* Ingrandito per usare più spazio */
        border-radius: 12px !important;
        box-shadow: none !important; /* Rimossa ombreggiatura interna */
        filter: none !important;
    }
}

/* FIX SPECIFICO PER ROBERTO E GIUSEPPE - RETTANGOLARE */
@media (max-width: 968px) {
    .roberto-img {
        object-position: center 10% !important; /* Spostato più in alto per usare lo spazio sopra */
        object-fit: cover !important;
        transform: scale(1.35) !important; /* Ingrandito ulteriormente per usare più spazio */
        border-radius: 15px !important;
    }
    
    .giuseppe-img {
        object-position: center 25% !important; /* Riaggiustato per il nuovo zoom */
        object-fit: cover !important;
        transform: scale(1.25) !important; /* Ingrandito per usare più spazio */
        border-radius: 15px !important;
        box-shadow: none !important; /* Rimossa ombreggiatura interna */
        filter: none !important; /* Rimossi filtri che potrebbero creare ombreggiature */
    }
    
    /* Hover specifici per ogni immagine - RETTANGOLARE */
    .founder-image-wrapper:hover .roberto-img {
        transform: scale(1.4) !important; /* Hover più grande */
        object-position: center 10% !important;
    }
    
    .founder-image-wrapper:hover .giuseppe-img {
        transform: scale(1.3) !important; /* Hover più grande */
        object-position: center 25% !important;
        box-shadow: none !important; /* Assicuro che non ci siano ombre anche in hover */
        filter: brightness(1.05) contrast(1.05) !important;
    }
}

/* ===== ELIMINAZIONE BRUTALE SFONDO CERCHIO ===== */
@media (max-width: 968px) {
    /* ELIMINA TUTTI I POSSIBILI SFONDI CIRCOLARI */
    .founder-image-wrapper,
    .founder-image-wrapper[style],
    html .founder-image-wrapper,
    body .founder-image-wrapper,
    .about-enterprise .founder-image-wrapper,
    .founders-presentation .founder-image-wrapper,
    .founder-image-wrapper::before,
    .founder-image-wrapper::after {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none !important;
        filter: none !important;
    }
    
    /* NASCONDE HAMBURGER MENU MOBILE */
    .enterprise-mobile-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* ===== MOBILE HEADER HEIGHT FIX ===== */
@media (max-width: 968px) {
    
    /* ALZA HEADER ENTERPRISE */
    .enterprise-header,
    .enterprise-header[style],
    html body .enterprise-header,
    html body header.enterprise-header {
        height: 70px !important;
        padding: 12px 20px !important;
        min-height: 70px !important;
    }
    
    /* CONTAINER HEADER - ALTEZZA AUMENTATA */
    .enterprise-header-container {
        height: 100% !important;
        min-height: 70px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* LOGO - DIMENSIONI OTTIMIZZATE */
    .enterprise-logo img,
    .enterprise-logo picture img {
        height: 46px !important;
        width: auto !important;
        max-height: 46px !important;
    }
    
    /* ACTIONS - ALLINEAMENTO CENTRATO */
    .enterprise-header-actions {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
}
